/* ============================================================================
 * LIVE DONATE STUDIO — PRO CLEAN DESIGN SYSTEM OVERRIDE (v8.15.0)
 * ============================================================================
 * Tinh gọn, dễ đọc, loại bỏ viền cầu vồng/nền chói, chuẩn giao diện Studio Pro.
 */

:root {
  --studio-bg: #070b14;
  --studio-surface: #0d1424;
  --studio-surface-2: #121b2f;
  --studio-border: rgba(148, 163, 184, 0.14);
  --studio-border-strong: rgba(148, 163, 184, 0.24);
  --studio-accent: #38bdf8;
  --studio-text: #f1f5f9;
  --studio-muted: #94a3b8;
}

body {
  background: var(--studio-bg) !important;
  color: var(--studio-text) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 138px !important;
}

/* Ẩn các mảng sáng blur thừa gây nhiễu mắt và nặng GPU tablet */
.app-card .blur-3xl {
  display: none !important;
}

/* Thống nhất thẻ Card: bề mặt sạch, viền mảnh, không chói màu */
.app-card {
  background: var(--studio-surface) !important;
  border: 1px solid var(--studio-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
}

/* Header dính gọn gàng hơn */
#topAppBar {
  background: rgba(7, 11, 20, 0.92) !important;
  border-bottom: 1px solid var(--studio-border) !important;
  backdrop-filter: none !important;
}

/* Khi chạy trong App Android đã có thanh Studio Native phía trên -> ẩn dòng tiêu đề trùng lặp */
body.in-android-app #topAppBar > div:first-child {
  padding-top: 2px;
  padding-bottom: 2px;
}
body.in-android-app #topAppBar img[alt="Logo"],
body.in-android-app #topAppBar h1,
body.in-android-app #topAppBar .bg-cyan-500\/15 {
  display: none !important;
}

/* Thanh Tab Desktop / Tablet mượt mà, 1 hàng gọn đủ cả 9 tab không bị cắt mép phải */
#topAppBar .hidden.md\:flex {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  gap: 4px !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
}
#topAppBar .hidden.md\:flex::-webkit-scrollbar {
  display: none;
}
#topAppBar .hidden.md\:flex button {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 6px 9px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
.nav-tab-active {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

/* Sửa lỗi thanh điều hướng Mobile 8 cột chữ 9px không thể bấm -> chuyển sang thanh cuộn ngang thoải mái */
nav.md\:hidden > div {
  display: flex !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  gap: 5px !important;
  padding: 6px !important;
  max-width: 100% !important;
  background: rgba(9, 14, 26, 0.96) !important;
  border: 1px solid var(--studio-border-strong) !important;
  backdrop-filter: none !important;
}
nav.md\:hidden > div::-webkit-scrollbar {
  display: none;
}
nav.md\:hidden > div > button {
  flex: 0 0 auto !important;
  min-width: 66px !important;
  padding: 7px 10px !important;
  font-size: 11px !important;
  border-radius: 11px !important;
}

/* Đồng hồ Subathon trong Admin rõ ràng, ít chói */
#liveClock {
  font-variant-numeric: tabular-nums;
  filter: none !important;
}

/* Input & Select thống nhất, dễ gõ cảm ứng trên Tablet */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="url"],
select,
textarea {
  background-color: #090e1a !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--studio-accent) !important;
  outline: none !important;
}

/* Mini Music Bar tinh gọn góc phải, nâng cao tránh đè lên Hero Bar hoặc nút VAR cuối trang */
#miniMusicBar {
  bottom: 78px !important;
  background: rgba(11, 17, 32, 0.95) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  backdrop-filter: none !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) !important;
}

/* Màn khóa PIN gọn gàng, chuyên nghiệp */
#adminLockScreen {
  background: rgba(7, 11, 20, 0.96) !important;
  backdrop-filter: none !important;
}
