/* ============================================================
   PHD PLATFORM - Main Stylesheet
   Theme: White + Teal + Purple (light)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── VARIABLES ── */
:root {
  --navy:       #430955;   /* dark purple heading/label text on white */
  --navy-light: #6B2670;   /* secondary lighter purple surface */
  --ink:        #430955;   /* solid purple fill: headers, buttons, badges */
  --blue:       #00D1B2;
  --blue-dark:  #00A88F;
  --blue-light: rgba(0,209,178,0.14);
  --gold:       #430955;
  --gold-light: rgba(67,9,85,0.10);
  --bg:         #EDEDF2;
  --white:      #F7F7FA;   /* card surface (soft off-white) */
  --text:       #241129;
  --text-muted: #756F82;
  --text-light: #A39DB0;
  --border:     #E1DEE9;
  --card-bg:    #F7F7FA;
  --success:    #16A34A;
  --warning:    #D97706;
  --danger:     #DC2626;
  --orange:     #EA580C;
  --shadow-sm:  0 2px 10px rgba(31,15,45,0.06);
  --shadow-md:  0 4px 22px rgba(31,15,45,0.08);
  --shadow-lg:  0 8px 34px rgba(31,15,45,0.12);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --nav-h:      65px;
  --header-h:   60px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ============================================================
   LAYOUT
   ============================================================ */

.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.page-content {
  padding: 0 0 calc(var(--nav-h) + 16px);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 12px;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.15rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn:hover { background: var(--gold-light); color: var(--gold); }

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}

.site-header .site-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.site-header .site-title span {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.notif-btn {
  position: relative;
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  font-size: 1rem;
  transition: background 0.2s;
}

.notif-btn:hover { background: var(--gold-light); color: var(--gold); }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

/* ============================================================
   SIDE MENU
   ============================================================ */

.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 250;
  opacity: 1;
  transition: opacity 0.2s;
}
.side-overlay.hidden { opacity: 0; pointer-events: none; }

.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: var(--white);
  border-right: 1px solid var(--border);
  z-index: 251;
  transition: left 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.side-menu.open { left: 0; }

.side-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.side-menu-head img { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; }
.side-menu-head strong { display: block; font-size: 0.85rem; color: var(--navy); }
.side-menu-head span { font-size: 0.65rem; color: var(--gold); }
.side-menu-head button {
  position: absolute; right: 12px; top: 16px;
  background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer;
}

.side-menu-links { display: flex; flex-direction: column; padding: 8px; padding-bottom: calc(var(--nav-h) + 20px); }
.side-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}
.side-menu-links a i { width: 18px; text-align: center; color: var(--gold); }
.side-menu-links a:hover { background: var(--gold-light); }
.side-menu-links a.logout-link { color: var(--danger); margin-top: 8px; border-top: 1px solid var(--border); padding-top: 14px; border-radius: 0; }
.side-menu-links a.logout-link i { color: var(--danger); }

/* ============================================================
   TICKER
   ============================================================ */

.ticker-wrap {
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
}

.ticker-text {
  display: inline-block;
  animation: ticker 30s linear infinite;
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 500;
}

.ticker-text span {
  margin: 0 40px;
  color: var(--blue);
  font-weight: 600;
}

@keyframes ticker {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ============================================================
   QUICK ACTIONS GRID
   ============================================================ */

.quick-actions {
  padding: 16px;
}

.quick-actions-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}

.qa-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qa-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  transition: all 0.2s;
}

.qa-btn:hover .qa-icon {
  background: var(--blue);
  color: white;
}

.qa-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.6rem;
  font-weight: 600;
  transition: color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}

.nav-item i { font-size: 1.1rem; }

.nav-item.active {
  color: var(--gold);
}

.nav-item.active i {
  color: var(--gold);
}

.nav-home {
  background: var(--ink);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white !important;
  flex: 0 0 auto;
  gap: 0;
  box-shadow: 0 4px 14px rgba(13,27,62,0.3);
  margin-top: -15px;
}

.nav-home i { font-size: 1.2rem !important; color: white !important; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title i { color: var(--blue); }

.card-body { padding: 14px 16px; }

/* ── Balance Cards ── */
.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.balance-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.balance-card.primary {
  background: var(--ink);
  border-color: var(--navy);
  grid-column: 1 / -1;
}

.balance-card.primary .balance-label { color: rgba(255,255,255,0.65); }
.balance-card.primary .balance-amount { color: white; }
.balance-card.primary .balance-icon { background: rgba(255,255,255,0.1); color: white; }

.balance-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.balance-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.balance-amount.blue { color: var(--blue); }

.balance-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.85rem;
  float: right;
  margin-top: -4px;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.stat-card.triple { grid-column: span 1; }

.stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-value.blue { color: var(--blue); }
.stat-value.green { color: var(--success); }

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--gold);
  object-fit: cover;
}

.auth-logo h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.auth-logo p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,169,226,0.12);
}

.form-control::placeholder { color: var(--text-light); }

.input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,169,226,0.12);
}

.input-group .form-control {
  border: none;
  border-radius: 0;
  flex: 1;
}

.input-group .form-control:focus {
  box-shadow: none;
}

.input-prefix {
  padding: 0 12px;
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.input-suffix {
  padding: 0 12px;
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  border-left: 1px solid var(--border);
  cursor: pointer;
}

.phone-group {
  display: flex;
  gap: 8px;
}

.country-select {
  flex: 0 0 auto;
  width: 120px;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
}

.country-select:focus {
  border-color: var(--blue);
}

.password-group { position: relative; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.password-strength {
  margin-top: 6px;
  display: flex;
  gap: 4px;
}

.strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.strength-bar.weak   { background: var(--danger); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

.captcha-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-question {
  flex: 1;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.captcha-input {
  width: 70px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

/* ── Toggle ── */
.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.toggle-label { font-size: 0.8rem; color: var(--text); }

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider { background: var(--ink); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover { background: #2D0740; transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }

.btn-blue {
  background: var(--blue);
  color: white;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); color: white; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); background: var(--bg); }

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: white; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #0da670; color: white; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }

.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.75rem; }
.btn-lg { padding: 14px 24px; font-size: 0.9rem; border-radius: var(--radius-md); }

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

/* ── Download App Button ── */
.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.download-btn:hover { background: #2D0740; color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.download-btn i { font-size: 1.4rem; color: var(--blue); }

.download-btn-text { flex: 1; }
.download-btn-text small { display: block; font-size: 0.6rem; opacity: 0.7; }
.download-btn-text strong { font-size: 0.85rem; }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: rgba(34,197,94,0.15); color: #16A34A; border: 1px solid rgba(34,197,94,0.35); }
.alert-danger   { background: rgba(240,80,95,0.15); color: #DC2626; border: 1px solid rgba(240,80,95,0.35); }
.alert-warning  { background: rgba(245,166,35,0.14); color: #D97706; border: 1px solid rgba(245,166,35,0.35); }
.alert-info     { background: var(--blue-light); color: var(--navy); border: 1px solid rgba(29,169,226,0.35); }

/* ============================================================
   LEVEL CARDS
   ============================================================ */

.level-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.level-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.level-card.active-level {
  border-color: var(--blue);
  background: var(--blue-light);
}

.level-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.level-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
}

.level-info { flex: 1; }

.level-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.level-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.level-detail .amount { color: var(--blue); font-weight: 600; }

.level-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.level-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-active { background: rgba(34,197,94,0.15); color: #16A34A; }
.badge-locked { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.badge-soon   { background: rgba(245,166,35,0.14); color: #D97706; }

/* ============================================================
   FLOATING ASSISTANT
   ============================================================ */

.chat-fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  right: 16px;
  z-index: 300;
}

.chat-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s;
}

.chat-fab-btn:hover { background: var(--blue); transform: scale(1.05); }

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.chat-window {
  position: fixed;
  bottom: calc(var(--nav-h) + 80px);
  right: 16px;
  width: 300px;
  max-height: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 299;
  overflow: hidden;
  transition: all 0.3s;
}

.chat-window.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

.chat-header {
  background: var(--ink);
  color: white;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-header i { color: var(--blue); font-size: 1rem; }
.chat-header strong { font-size: 0.82rem; flex: 1; }
.chat-close { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 0.9rem; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}

.chat-msg {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.chat-msg.user {
  background: var(--ink);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg.admin {
  background: var(--white);
  color: var(--text);
  align-self: flex-start;
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
}

.chat-msg .msg-time { font-size: 0.6rem; opacity: 0.6; margin-top: 3px; }

.chat-input-area {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  background: var(--white);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  outline: none;
}

.chat-input:focus { border-color: var(--blue); }

.chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================================
   NOTIFICATIONS PANEL
   ============================================================ */

.notif-panel {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(100vh - var(--header-h));
  background: var(--white);
  z-index: 220;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-h) + 20px);
  transition: all 0.3s;
}

.notif-panel.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-10px); }

.notif-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.notif-panel-header h3 { font-size: 0.9rem; font-weight: 700; color: var(--navy); }

.notif-actions { display: flex; gap: 8px; }

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--blue-light); }

.notif-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.notif-icon-wrap.success { background: rgba(34,197,94,0.15); color: var(--success); }
.notif-icon-wrap.warn    { background: rgba(245,166,35,0.14); color: var(--warning); }
.notif-icon-wrap.danger  { background: rgba(240,80,95,0.15); color: var(--danger); }
.notif-icon-wrap.earn    { background: rgba(34,197,94,0.15); color: var(--success); }
.notif-icon-wrap.info    { background: var(--blue-light); color: var(--blue); }
.notif-item.news-item { background: rgba(67,9,85,0.05); }
.notif-tag {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-light);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 5px;
  vertical-align: middle;
  text-transform: uppercase;
}

.notif-content { flex: 1; min-width: 0; }
.notif-title   { font-size: 0.78rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.notif-msg     { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }
.notif-time    { font-size: 0.62rem; color: var(--text-light); margin-top: 3px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title i { color: var(--blue); }
.section-link { font-size: 0.72rem; color: var(--blue); font-weight: 600; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.progress-wrap { margin: 4px 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.progress-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ink), var(--blue));
  transition: width 0.4s ease;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */

.countdown-banner {
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.countdown-banner i { color: var(--blue); }

.countdown-timer {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.countdown-unit {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 3px 7px;
  text-align: center;
  font-size: 0.65rem;
}

.countdown-unit strong { display: block; font-size: 0.9rem; line-height: 1; color: var(--blue); }

/* ============================================================
   TRANSACTIONS LIST
   ============================================================ */

.tx-list { display: flex; flex-direction: column; }

.tx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.tx-item:hover { background: var(--bg); }
.tx-item:last-child { border-bottom: none; }

.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tx-icon.credit { background: rgba(34,197,94,0.15); color: var(--success); }
.tx-icon.debit  { background: rgba(240,80,95,0.15); color: var(--danger); }
.tx-icon.pending{ background: rgba(245,166,35,0.14); color: var(--warning); }

.tx-info { flex: 1; min-width: 0; }
.tx-type { font-size: 0.75rem; font-weight: 600; color: var(--navy); }
.tx-desc { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: 0.6rem; color: var(--text-light); }

.tx-amount {
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tx-amount.credit { color: var(--success); }
.tx-amount.debit  { color: var(--danger); }

/* ============================================================
   LEADERBOARD
   ============================================================ */

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.rank-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rank-num.gold   { background: rgba(212,175,55,0.18); color: #A16207; }
.rank-num.silver { background: rgba(148,163,184,0.16); color: #64748B; }
.rank-num.bronze { background: rgba(212,175,55,0.18); color: #92400E; }

/* ============================================================
   PROFIT TABLE
   ============================================================ */

.profit-table-wrap {
  overflow-x: auto;
  padding: 0 16px;
}

.profit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  min-width: 500px;
}

.profit-table thead th {
  background: var(--ink);
  color: white;
  padding: 9px 10px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.profit-table thead th:first-child { border-radius: 8px 0 0 0; }
.profit-table thead th:last-child  { border-radius: 0 8px 0 0; }

.profit-table tbody tr:nth-child(even) { background: var(--bg); }
.profit-table tbody tr:hover { background: var(--blue-light); }

.profit-table tbody td {
  padding: 9px 10px;
  text-align: center;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.profit-table tbody td:first-child { font-weight: 700; color: var(--navy); }
.profit-table .amount-cell { color: var(--blue); font-weight: 600; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-blue   { color: var(--blue); }
.text-navy   { color: var(--navy); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }

.fw-bold { font-weight: 700; }
.fw-600  { font-weight: 600; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.p-16 { padding: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 600;
}

.pill-blue    { background: var(--blue-light); color: var(--blue); }
.pill-green   { background: rgba(34,197,94,0.15); color: #16A34A; }
.pill-red     { background: rgba(240,80,95,0.15); color: #DC2626; }
.pill-yellow  { background: rgba(245,166,35,0.14); color: #D97706; }
.pill-gray    { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.empty-state i { font-size: 2.5rem; color: var(--border); margin-bottom: 10px; display: block; }
.empty-state p { font-size: 0.8rem; }

/* ============================================================
   AUTH DIVIDER
   ============================================================ */

.auth-divider {
  position: relative;
  text-align: center;
  margin: 16px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--white);
  padding: 0 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */

.page-header {
  background: var(--ink);
  padding: 16px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header .back-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
}

.page-header h2 { font-size: 1rem; font-weight: 700; flex: 1; }

/* ============================================================
   WITHDRAWAL AMOUNTS
   ============================================================ */

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.amount-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.amount-btn:hover, .amount-btn.selected {
  background: var(--ink);
  color: white;
  border-color: var(--navy);
}

/* ============================================================
   SPIN WHEEL
   ============================================================ */

.spin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.spin-wheel-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 20px;
}

.spin-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid var(--navy);
  z-index: 2;
}

#spinCanvas {
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   WELCOME CARD (dashboard)
   ============================================================ */

.welcome-card {
  margin: 14px 16px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.welcome-avatar { position: relative; flex-shrink: 0; }
.welcome-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.welcome-avatar .online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--white);
}

.welcome-body { flex: 1; min-width: 0; }
.welcome-hi { font-size: 0.68rem; color: var(--gold); font-weight: 600; letter-spacing: 0.3px; }
.welcome-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.welcome-name i { color: var(--blue); font-size: 0.75rem; }
.welcome-phone { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }

.welcome-level-badge {
  flex-shrink: 0;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
}
.welcome-level-badge i { display: block; font-size: 0.85rem; margin-bottom: 1px; }

.welcome-meta {
  margin: 10px 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.welcome-meta strong { color: var(--navy); display: block; font-size: 0.72rem; }

/* ============================================================
   TOTAL WALLET CARD
   ============================================================ */

.wallet-total-card {
  margin: 12px 16px 0;
  background: linear-gradient(145deg, var(--ink), #2A0638);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.wallet-total-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.wallet-total-head button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; }
.wallet-total-amount { font-size: 1.7rem; font-weight: 800; color: #fff; margin: 4px 0 12px; letter-spacing: -0.5px; }
.wallet-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wallet-split-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px;
}
.wallet-split-label { font-size: 0.6rem; color: var(--text-muted); display:flex; align-items:center; gap:5px; }
.wallet-split-value { font-size: 0.9rem; font-weight: 700; margin-top: 3px; }
.wallet-split-value.green { color: var(--success); }
.wallet-split-value.gold  { color: var(--blue); }

/* ============================================================
   LIVE GALLERY
   ============================================================ */

.gallery-section { margin-top: 14px; }
.gallery-carousel {
  position: relative;
  margin: 0 16px;
}
.gallery-page {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-page.active { display: grid; }
.gallery-square {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-square img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-caption-mini {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3px 4px;
  font-size: 0.5rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0,0,0,0.72);
  color: #fff;
}
.gallery-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.gallery-dot.active { background: var(--ink); width: 16px; border-radius: 3px; }

/* ============================================================
   QUICK ACCESS (5-column dashboard grid)
   ============================================================ */

.qa-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 16px;
}
.qa-grid-5 .qa-btn { padding: 8px 2px; border: none; background: none; }
.qa-grid-5 .qa-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem;
}
.qa-grid-5 .qa-btn:hover { transform: translateY(-2px); background: none; box-shadow: none; }
.qa-grid-5 .qa-btn:hover .qa-icon { filter: brightness(1.12); }
.qa-c1 { background: linear-gradient(135deg,#1FA043,#17803A); }
.qa-c2 { background: linear-gradient(135deg,#94B91B,#6E8A10); }
.qa-c3 { background: linear-gradient(135deg,#6032AE,#432180); }
.qa-c4 { background: linear-gradient(135deg,#CA6C12,#9A500C); }
.qa-c5 { background: linear-gradient(135deg,#1C7475,#124E4F); }
.qa-c6 { background: linear-gradient(135deg,#E91E8C,#AC1268); }
.qa-c7 { background: linear-gradient(135deg,#1DA9E2,#0D7CB5); }
.qa-c8 { background: linear-gradient(135deg,#D4AF37,#A5841F); }
.qa-c9 { background: linear-gradient(135deg,#E9573F,#B23A26); }
.qa-c10{ background: linear-gradient(135deg,#5B6FE0,#3C4CB0); }

/* ============================================================
   LIVE ACTIVITY TICKER (replaces "Latest Updates")
   ============================================================ */

.live-ticker-section { margin: 16px 16px 0; }
.live-ticker {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 132px;
  position: relative;
}
.live-ticker::before, .live-ticker::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  z-index: 2;
  pointer-events: none;
}
.live-ticker::before { top: 0; background: linear-gradient(180deg, var(--white), transparent); }
.live-ticker::after  { bottom: 0; background: linear-gradient(0deg, var(--white), transparent); }
.live-ticker-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s ease;
}
.live-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  height: 44px;
  box-sizing: border-box;
  border-bottom: 1px dashed var(--border);
}
.live-ticker-item i { color: var(--gold); font-size: 0.85rem; width: 18px; text-align: center; }
.live-ticker-item span { font-size: 0.72rem; color: var(--text); }
.live-ticker-item span strong { color: var(--gold); }

.qa-btn { position: relative; }
.qa-dot {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-header-card {
  margin: 14px 16px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-wrap img {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold);
}
.profile-avatar-wrap label {
  position: absolute; bottom: -2px; right: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.65rem; border: 2px solid var(--white);
}
.profile-header-info { flex: 1; min-width: 0; }
.profile-header-name { font-size: 1rem; font-weight: 800; color: var(--navy); }
.profile-header-phone { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.profile-header-id { font-size: 0.62rem; color: var(--text-light); margin-top: 2px; }
.profile-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.profile-badge-level {
  background: var(--gold-light); border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.6rem; font-weight: 800; padding: 4px 9px; border-radius: 10px; white-space: nowrap;
  text-transform: uppercase;
}
.profile-badge-active {
  background: rgba(34,197,94,0.15); border: 1px solid var(--success); color: var(--success);
  font-size: 0.58rem; font-weight: 700; padding: 3px 8px; border-radius: 10px; white-space: nowrap;
}

.earnings-summary-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 16px 8px;
}
.earnings-summary-head span:first-child { font-size: 0.68rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.4px; }
.earnings-summary-head a { font-size: 0.66rem; color: var(--blue); text-decoration: none; font-weight: 600; }

.earnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px;
}
.earnings-cell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}
.earnings-cell-icon { color: var(--gold); font-size: 0.85rem; margin-bottom: 4px; }
.earnings-cell-value { font-size: 0.72rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.earnings-cell-label { font-size: 0.55rem; color: var(--text-muted); margin-top: 2px; }

.profile-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px 0;
}
.profile-quick-row a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--text);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 4px;
}
.profile-quick-row i { font-size: 1rem; color: var(--gold); }
.profile-quick-row span { font-size: 0.58rem; font-weight: 600; text-align: center; }

.menu-list { margin: 16px 16px 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.menu-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); cursor: pointer; background: none; width: 100%; text-align: left; border-left: none; border-right: none; border-top: none;
}
.menu-list-item:last-child { border-bottom: none; }
.menu-list-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--gold-light); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.menu-list-body { flex: 1; min-width: 0; }
.menu-list-title { font-size: 0.8rem; font-weight: 700; color: var(--navy); }
.menu-list-sub { font-size: 0.62rem; color: var(--text-muted); margin-top: 1px; }
.menu-list-item.danger .menu-list-icon { background: rgba(240,80,95,0.15); color: var(--danger); }
.menu-list-item.danger .menu-list-title { color: var(--danger); }
.menu-list-item > i.fa-chevron-right { color: var(--text-light); font-size: 0.75rem; }

.detail-panels { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 380px) {
  .qa-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .qa-btn  { padding: 10px 4px; }
  .qa-icon { width: 34px; height: 34px; font-size: 0.85rem; }
  .qa-label{ font-size: 0.55rem; }
  .balance-amount { font-size: 1.1rem; }
}

@media (min-width: 480px) {
  .page-wrapper { box-shadow: var(--shadow-lg); }
}
