/* ============== Password toggle ============== */
.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-pw:hover { color: var(--primary-500); }

@media (min-width: 481px) {
  .dashboard-banner {
    padding: 0;
  }
  
}


/* ============== Preset amount buttons ============== */
.preset-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.preset-btn {
  padding: 16px 8px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.preset-btn:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 18, 15, 0.20);
}
.preset-btn.active {
  border-color: var(--gold-accent);
  background: linear-gradient(135deg, var(--gold-bg), #F5A9A6);
  color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(200, 18, 15, 0.25);
  transform: translateY(-1px);
}

/* ============== Deposit step header ============== */
.deposit-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.deposit-step-header .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* ============== Deposit narration box ============== */
.deposit-narration-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.narration-icon {
  font-size: 20px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}
.narration-code {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-700);
  margin-top: 8px;
  font-family: 'Plus Jakarta Sans', monospace;
  letter-spacing: 1.5px;
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* ============== Bank details card ============== */
.bank-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10, 46, 123, 0.06);
}
.bank-details-title {
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.bank-detail-row:last-child {
  border-bottom: none;
}
.bank-detail-row.highlight {
  background: var(--primary-50);
}
.bank-label {
  color: var(--text-muted);
  font-size: 13px;
}
.bank-value {
  font-weight: 700;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.bank-detail-row.highlight .bank-value {
  color: var(--primary-700);
  font-size: 16px;
}

/* ============== Deposit countdown ============== */
.deposit-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

/* ============== File upload area ============== */
.file-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  font-size: 13px;
}
.file-upload-area:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
  color: var(--primary-600);
}
.file-upload-area.has-file {
  border-color: var(--success);
  background: #F0FDF4;
  color: var(--success);
  border-style: solid;
}

/* ============== Clickable stat cards ============== */
a.stat-card {
  cursor: pointer;
  transition: all 0.15s;
  display: block;
}
a.stat-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* =========================================================
   PRESENT — Stellar Investment Platform
   Red gift-box design system (extracted from the PRESENT flyer)
   ========================================================= */


:root {
  /* PRESENT Brand — Red Gift-Box Theme (extracted from flyer #C8120F) */
  --primary:        #C8120F;
  --primary-700:    #8F0D0A;
  --primary-600:    #A60F0C;
  --primary-500:    #C8120F;
  --primary-400:    #E0241F;
  --primary-200:    #F5A9A6;
  --primary-100:    #FBD4D3;
  --primary-50:     #FEF0EF;

  /* Backgrounds — clean flyer white */
  --bg:             #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-elevated:    #FFFFFF;
  --bg-overlay:     rgba(143, 13, 10, 0.6);

  /* Text */
  --text:           #33110F;
  --text-muted:     #7A2E28;
  --text-light:     #A05B54;
  --text-inverse:   #FFFFFF;

  /* Borders */
  --border:         #F3D2D0;
  --border-strong:  #E5A9A5;

  /* Semantic Colors */
  --success:        #C8120F;
  --success-bg:     #FFF1F0;
  --warning:        #B45309;
  --warning-bg:     #FEF6E7;
  --error:          #B91C1C;
  --error-bg:       #FEF2F2;
  --info:           #C8120F;
  --info-bg:        #FFF1F0;

  /* PRESENT Red Accents (variable names preserved for backward compat) */
  --gold:           #C8120F;
  --gold-bg:        #FBD4D3;
  --gold-accent:    #A60F0C;
  --rose:           #C8120F;
  --rose-bg:        #FBD4D3;

  /* Soft Red Shadows */
  --shadow-xs: 0 1px 2px rgba(143, 13, 10, 0.05);
  --shadow-sm: 0 2px 6px rgba(143, 13, 10, 0.07),
               0 1px 2px rgba(143, 13, 10, 0.04);
  --shadow:    0 4px 14px rgba(143, 13, 10, 0.10),
               0 1px 3px rgba(143, 13, 10, 0.05);
  --shadow-md: 0 8px 24px rgba(143, 13, 10, 0.12),
               0 2px 6px rgba(143, 13, 10, 0.05);
  --shadow-lg: 0 16px 40px rgba(143, 13, 10, 0.15),
               0 4px 10px rgba(143, 13, 10, 0.06);

  /* Rounded Corners */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max-width: 480px;
}


/* ============== Admin Tab Badges ============== */
.admin-tabs a { position: relative; }
.tab-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background: #EF4444;
  color: #fff;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 4px;
  line-height: 1;
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============== Admin Layout ============== */
.admin-shell {
  min-height: 100vh;
  background: var(--primary-50);
}
.admin-header {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: #fff;
  padding: 0 24px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(10, 46, 123, 0.18);
  border-bottom: 1px solid var(--gold);
}
.admin-header .brand {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #fff;
}
.admin-header .brand img {
  height: 32px;
  border-radius: 8px;
}
.admin-header .brand .admin-badge {
  font-size: 9px;
  background: var(--gold-bg);
  color: var(--primary-700);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--gold);
}
.admin-header .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-header .actions a {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.10);
}
.admin-header .actions a:hover {
  background: var(--gold);
  color: var(--primary-700);
  border-color: var(--gold);
}

/* Admin Tabs */
.admin-tabs {
  background: #FFFFFF;
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid var(--border);
  padding: 0 16px;
  position: sticky;
  top: 60px;
  z-index: 90;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a {
  padding: 14px 18px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-tabs a:hover {
  color: var(--text);
  background: var(--primary-50);
}
.admin-tabs a.active {
  color: var(--primary-600);
  border-bottom-color: var(--gold);
}

/* Admin Content */
.admin-content {
  padding: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.admin-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.admin-content h2 i {
  color: var(--gold);
  margin-right: 8px;
}

/* ============== Admin Stat Cards ============== */
.admin-content .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin-bottom: 24px;
}
.admin-content .stat-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.admin-content .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.admin-content .stat-card .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-content .stat-card .label i {
  font-size: 14px;
  color: var(--gold);
}
.admin-content .stat-card .value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-700);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* ============== Admin Tables ============== */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 700px;
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--primary-100);
  vertical-align: middle;
}
.admin-table th {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background 0.1s; }
.admin-table tbody tr:hover { background: var(--primary-50); }

/* ============== Admin Cards ============== */
.admin-content .card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.admin-content .card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--primary-100);
}
.admin-content .card .card-title i { color: var(--gold); }

/* ============== Admin Forms ============== */
.admin-content .form-group {
  margin-bottom: 16px;
}
.admin-content .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-content .form-group input,
.admin-content .form-group select,
.admin-content .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #FFFFFF;
  color: var(--text);
}
.admin-content .form-group input:focus,
.admin-content .form-group select:focus,
.admin-content .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 18, 15, 0.18);
}

/* ============== Admin Buttons ============== */
.admin-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.admin-content .btn-primary { background: linear-gradient(135deg, var(--primary-600), var(--primary-700)); color: #fff; }
.admin-content .btn-primary:hover { background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); box-shadow: 0 4px 12px rgba(10, 46, 123, 0.35); }
.admin-content .btn-secondary { background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--border-strong); }
.admin-content .btn-secondary:hover { background: var(--primary-100); }
.admin-content .btn-danger { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.admin-content .btn-danger:hover { background: #FECACA; }
.admin-content .btn-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.admin-content .btn-warning:hover { background: #FDE68A; }
.admin-content .btn-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.admin-content .btn-success:hover { background: #A7F3D0; }
.admin-content .btn-ghost { background: transparent; color: var(--text-light); }
.admin-content .btn-ghost:hover { background: var(--primary-50); color: var(--text); }
.admin-content .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.admin-content .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============== Admin Badges ============== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-error { background: #FEE2E2; color: #DC2626; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-rejected { background: #FEE2E2; color: #DC2626; }
.badge-completed { background: #DBEAFE; color: #1E40AF; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-expired { background: var(--primary-100); color: var(--text-light); }
.badge-suspended { background: #FEE2E2; color: #DC2626; }

/* ============== Admin Modals ============== */
.admin-content .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 46, 123, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.admin-content .modal {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease-out;
  border-top: 3px solid var(--gold);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-content .modal h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-content .modal .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--primary-100);
}

/* ============== Admin Responsive ============== */
@media (max-width: 1024px) {
  .admin-content .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .admin-header { padding: 0 16px; height: 56px; }
  .admin-header .brand { font-size: 16px; }
  .admin-header .brand img { height: 28px; }
  .admin-header .actions a { padding: 6px 10px; font-size: 12px; }
  .admin-header .actions a span.link-text { display: none; }
  .admin-tabs { top: 56px; padding: 0 8px; }
  .admin-tabs a { padding: 12px 14px; font-size: 12px; }
  .admin-content { padding: 16px 12px; }
  .admin-content h2 { font-size: 17px; margin-bottom: 16px; }
  .admin-content .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .admin-content .stat-card { padding: 14px; border-radius: 10px; }
  .admin-content .stat-card .label { font-size: 11px; margin-bottom: 6px; }
  .admin-content .stat-card .value { font-size: 18px; }
  .admin-content .card { padding: 16px; border-radius: 10px; margin-bottom: 16px; }
  .admin-content .form-group input,
  .admin-content .form-group select,
  .admin-content .form-group textarea { font-size: 14px; padding: 10px 12px; }
  .admin-content .btn { padding: 10px 14px; font-size: 13px; }
  .admin-content .btn-sm { padding: 6px 10px; font-size: 11px; }
  .admin-content .modal { max-width: 95vw; padding: 18px; margin: 10px; border-radius: 12px; }
  .admin-table-wrap { border-radius: 0; margin: 0 -12px; border-left: 0; border-right: 0; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 12px; }
  .admin-content .plan-editor-row > div:last-child { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .admin-header { padding: 0 12px; height: 52px; }
  .admin-header .brand { font-size: 15px; gap: 8px; }
  .admin-header .brand img { height: 24px; }
  .admin-header .actions { gap: 4px; }
  .admin-header .actions a { padding: 6px 8px; font-size: 11px; }
  .admin-tabs { top: 52px; }
  .admin-tabs a { padding: 10px 12px; font-size: 11px; gap: 6px; }
  .admin-content { padding: 12px 10px; }
  .admin-content .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-content .stat-card { padding: 12px; }
  .admin-content .stat-card .label { font-size: 10px; }
  .admin-content .stat-card .value { font-size: 16px; }
  .admin-content h2 { font-size: 16px; }
  .admin-table td:last-child { white-space: normal; }
  .admin-table td:last-child .btn { margin: 2px; }
  .admin-content .modal { padding: 14px; max-height: 90vh; }
  .admin-content .modal h3 { font-size: 15px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Raleway', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

a { color: var(--primary-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-500); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* App container */
.app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* ============== Topbar ============== */
.topbar {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(10, 46, 123, 0.28);
  border-bottom: 1px solid var(--gold);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}
.topbar .brand img.brand-logo {
  height: 32px;
  width: auto;
  border-radius: 6px;
}
.topbar .brand .brand-fallback {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.topbar .actions { display: flex; gap: 6px; align-items: center; }
.topbar .actions .icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: #fff;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.topbar .actions .icon-btn:hover { background: rgba(255,255,255,0.2); }
.topbar .actions .icon-btn .badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--gold);
  color: var(--primary-700);
  font-size: 10px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  padding: 0 5px;
  border: 2px solid var(--primary-700);
}

/* ============== Auth pages ============== */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 18, 15, 0.10), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(10, 46, 123, 0.08), transparent 40%),
    linear-gradient(160deg, var(--primary-50) 0%, #FFFFFF 50%, var(--primary-50) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--gold), var(--gold-accent));
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-banner {
  width: calc(100% + 56px);
  margin: -36px -28px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  height: 140px;
  position: relative;
}
.auth-banner img { width: 100%; height: 100%; object-fit: cover; }
.auth-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.95) 100%);
}

.auth-logo {
  margin: 0 auto 14px;
  width: auto;
  height: 48px;
  display: block;
}
.auth-logo img { height: 100px; margin: 0 auto;}
.auth-logo-fallback {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(10, 46, 123, 0.30);
  border: 2px solid var(--gold);
}

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.auth-tagline {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.02em;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

/* ============== Forms ============== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.15s;
  background: var(--bg-card);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 18, 15, 0.20);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.input-with-icon { position: relative; }
.input-with-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
}
.input-with-icon input { padding-left: 38px; }
.input-with-icon select { padding-left: 38px; width: 100%; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  width: 100%;
  letter-spacing: -0.005em;
}
.btn i { font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 46, 123, 0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 46, 123, 0.38);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-100);
}
.btn-secondary:hover { background: var(--primary-100); color: var(--primary-700); }

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #036949; color: #fff; }

.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #991B1B; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #92400E; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border-color: var(--primary-200);
}
.btn-outline:hover { background: var(--primary-50); color: var(--primary-600); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 7px 12px; font-size: 12px; width: auto; }
.btn-block { width: 100%; }

/* ============== Cards ============== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

/* ============== Balance card ============== */
.balance-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 18, 15, 0.20), transparent 50%),
    linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(10, 46, 123, 0.30);
  border: 1px solid var(--gold);
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -25%;
  width: 220px; height: 220px;
  background: none;
  border-radius: 50%;
}
.balance-card .label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.balance-card .amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: 'Raleway', sans-serif;
}
.balance-card .meta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 11px;
  opacity: 0.9;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.balance-card .meta > div { flex: 1; }
.balance-card .meta .label-mini {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  opacity: 0.8;
}
.balance-card .meta .val {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
  font-family: 'Raleway', sans-serif;
}

/* ============== Quick actions ============== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px 18px;
}
.quick-action {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 6px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all 0.15s;
}
.quick-action:hover { color: var(--text); }
.quick-action:active { transform: scale(0.96); }
.quick-action .icon {
  width: 38px; height: 38px;
  margin: 0 auto 7px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(10, 46, 123, 0.10);
}
.quick-action .icon.icon-primary { background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); }
.quick-action .icon.icon-success { background: linear-gradient(135deg, #047857, #059669); }
.quick-action .icon.icon-gold { background: linear-gradient(135deg, var(--gold-accent), var(--gold)); }
.quick-action .icon.icon-rose { background: linear-gradient(135deg, var(--primary-700), var(--primary-500)); }
.quick-action .icon.icon-info { background: linear-gradient(135deg, #1E40AF, #2563EB); }
.quick-action .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============== Plans ============== */
.plans-grid { display: grid; gap: 12px; padding: 16px; }
.plan-card {
  background: linear-gradient(160deg, #FFFFFF 0%, var(--primary-50) 100%);
  border-radius: var(--radius);
  padding: 0 18px 18px 18px;
  border: 1px solid var(--primary-100);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.plan-card .plan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-700);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}
.plan-card .plan-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}
.plan-card .plan-daily {
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin: 12px 0;
  display: none;
  font-size: 13px;
  border: 1px solid var(--primary-100);
}
.plan-card .plan-daily .value { color: var(--success); }
.plan-card .plan-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.plan-card .plan-meta i { color: var(--primary-400); margin-right: 4px; }
.plan-card .plan-bonus {
  color: var(--gold);
  font-weight: 700;
  margin-top: 8px;
  font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}

/* ============== Plan product image ============== */
.plan-card-image {
  width: calc(100% + 36px);
  margin-left: -18px;
  height: 140px;
  object-fit: contain;
  display: block;
  padding: 10px 18px 0 18px;
  box-sizing: border-box;
  pointer-events: none;
}
.plan-card .badge-popular {
  position: absolute; top: 14px; right: -32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-accent));
  color: var(--primary-700);
  padding: 4px 36px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: rotate(35deg);
  text-transform: uppercase;
}

/* ============== List items ============== */
.list-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.list-item:hover { color: inherit; box-shadow: var(--shadow-sm); border-color: var(--primary-100); }
.list-item .info .title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.list-item .info .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.list-item .value { font-weight: 700; font-size: 14px; }
.list-item .icon-circle {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

/* ============== Badges ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}
.badge i { font-size: 9px; }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-approved,
.badge-completed,
.badge-success,
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-rejected,
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-expired,
.badge-cancelled { background: #F3F0F7; color: var(--text-muted); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* ============== Alerts ============== */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid;
}
.alert i { margin-top: 1px; font-size: 13px; }
.alert-success { background: var(--success-bg); color: #065F46; border-color: #A7F3D0; }
.alert-error { background: var(--error-bg); color: #991B1B; border-color: #FECACA; }
.alert-warning { background: var(--warning-bg); color: #92400E; border-color: #FDE68A; }
.alert-info { background: var(--info-bg); color: #1E40AF; border-color: #BFDBFE; }

/* ============== Bottom nav ============== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 10px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 16px rgba(31, 20, 40, 0.05);
  z-index: 100;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 0 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.bottom-nav a .icon {
  font-size: 18px;
  display: block;
  margin-bottom: 3px;
}
.bottom-nav a.active { color: var(--primary-600); }
.bottom-nav a.active .icon { color: var(--primary-600); }

/* ============== Content ============== */
.content { padding: 16px; padding-bottom: 84px; }
.content-tight { padding: 12px 16px 84px; }

/* ============== Section title ============== */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 10px;
  padding: 0 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--primary-500); font-size: 13px; }

/* ============== Stat grid ============== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.stat-card .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.stat-card .value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-700);
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* ============== Referral box ============== */
.referral-box {
  background:
    radial-gradient(circle at 100% 0%, var(--primary-100) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary-50), #FFFFFF);
  border: 1px dashed var(--primary-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}
.referral-box .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.referral-box .code {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-700);
  letter-spacing: 2px;
  margin: 8px 0;
  font-family: 'Plus Jakarta Sans', monospace;
}

/* ============== Empty states ============== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 36px;
  opacity: 0.4;
  margin-bottom: 12px;
  color: var(--primary-400);
}
.empty-state p { font-size: 13px; }

/* ============== Spinner ============== */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-dark {
  border: 2px solid var(--primary-100);
  border-top-color: var(--primary-600);
}
.spinner-lg { width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== Toast ============== */
.toast-container {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 440px;
  padding: 0 14px;
  pointer-events: none;
}
.toast {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.25s ease;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid var(--gold);
  pointer-events: auto;
}
.toast i { font-size: 14px; }
.toast.success { border-left-color: var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.error i { color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--primary-600); }
@keyframes slideDown {
  from { transform: translateY(-110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============== Modal ============== */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.modal .actions { display: flex; gap: 10px; margin-top: 18px; }

/* ============== Announcement banner ============== */
.announcement-banner {
  background: linear-gradient(135deg, var(--gold-accent), var(--gold));
  color: var(--primary-700);
  padding: 10px 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  border-bottom: 1px solid var(--primary-700);
}
.announcement-banner i { font-size: 14px; }
.announcement-banner span { flex: 1; line-height: 1.4; }

/* ============== Receipt ============== */
.receipt-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}
.receipt-preview {
  max-width: 100%;
  max-height: 360px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  border: 1px solid var(--border);
}

/* ============== Countdown ============== */
.countdown {
  background: var(--warning-bg);
  color: var(--warning);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #FDE68A;
}

/* ============== Progress bar ============== */
.progress-bar {
  background: var(--primary-50);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar > div {
  background: linear-gradient(90deg, var(--primary-600), var(--gold));
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s;
}

/* ============== Dashboard welcome ============== */
.welcome-strip {
  background: linear-gradient(135deg, var(--primary-50), #fff);
  padding: 14px 18px;
  border-bottom: 1px solid var(--gold);
  font-size: 13px;
  color: var(--text-muted);
}
.welcome-strip strong { color: var(--primary-700); }

/* ============== Footer link area ============== */
.footer-links {
  text-align: center;
  padding: 20px 16px 30px;
  font-size: 12px;
  color: var(--text-light);
}
.footer-links a {
  color: var(--text-muted);
  margin: 0 8px;
}

/* ============== Misc ============== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary-600); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }

/* ============== Responsive ============== */
@media (min-width: 768px) {
  body { background: var(--bg); }
  .app { box-shadow: 0 0 60px rgba(10, 46, 123, 0.12); }
}

/* ============== Maintenance page ============== */
.maintenance-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--warning), #92400E);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.3);
}

/* ============== Welcome popup ============== */
.welcome-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 46, 123, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.welcome-popup {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  animation: popupIn 0.25s ease;
  max-height: 85vh;
  overflow-y: auto;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.welcome-popup .popup-logo {
  width: 50px; height: 50px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 12px;
}
.welcome-popup h2 { font-size: 16px; font-weight: 800; margin-bottom: 12px; color: var(--primary-700); }
.welcome-popup .info-grid { text-align: left; margin-bottom: 12px; }
.welcome-popup .info-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.welcome-popup .info-row:last-child { border-bottom: none; }
.welcome-popup .info-row i { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.welcome-popup .info-row .info-label { color: var(--text-muted); font-size: 11px; }
.welcome-popup .info-row .info-value { font-weight: 700; color: var(--text); font-size: 12px; }
.welcome-popup .popup-telegram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #229ED9;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin: 10px 0 4px;
  padding: 8px;
  border-radius: var(--radius-xs);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  transition: all 0.15s;
}
.welcome-popup .popup-telegram-link:hover { background: #DBEAFE; color: #1E40AF; }
.welcome-popup .popup-telegram-link i { font-size: 16px; }

/* ============== Quick actions row 2 ============== */
.quick-actions-row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 16px; }

/* ============== Investment drop timer ============== */
.drop-timer { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--success); font-weight: 600; margin-top: 6px; }
.drop-timer i { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.checkin-cooldown { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============== Simple bank details (deposit step 2) ============== */
.simple-bank-details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.simple-bank-details .sbd-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.simple-bank-details .sbd-row:last-child { border-bottom: none; }
.simple-bank-details .sbd-label { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.simple-bank-details .sbd-value { font-weight: 700; color: var(--text); text-align: right; word-break: break-all; flex: 1; }
.copy-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--text-muted); font-size: 13px; flex-shrink: 0; margin-left: 8px; transition: all 0.2s; }
.copy-btn:hover { color: var(--primary-600); border-color: var(--primary-600); }
.copy-btn.copied { color: #16a34a; border-color: #16a34a; }
.simple-bank-details .sbd-row.highlight .sbd-value { color: var(--primary-600); font-size: 16px; }

/* ============== Upload receipt page ============== */
.upload-receipt-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 16px 0;
  background: var(--bg-card);
}
.upload-receipt-area:hover { border-color: var(--primary-400); background: var(--primary-50); }
.upload-receipt-area.has-file { border-color: var(--success); border-style: solid; background: var(--success-bg); }
.upload-receipt-area i { font-size: 32px; color: var(--text-light); margin-bottom: 8px; }
.upload-receipt-area.has-file i { color: var(--success); }
.upload-receipt-area .upload-text { font-size: 13px; color: var(--text-muted); }
.upload-receipt-area .upload-text strong { color: var(--primary-600); }

/* ============== Profile Header (Account page) ============== */
.profile-header {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(10, 46, 123, 0.30);
  border-top: 3px solid var(--gold);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}
.profile-email {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}


/* =========================================================
   PRESENT — Scrolling animations
   Scroll-reveal (IntersectionObserver in common.js) + marquee
   ========================================================= */

/* --- Scroll reveal: elements slide/fade in as you scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-left  { transform: translate(-26px, 0); }
.reveal-right { transform: translate(26px, 0); }
.reveal-left.revealed,
.reveal-right.revealed { transform: translate(0, 0); }

/* gentle "breathing" float for the gift-box brand mark */
@keyframes presentFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.auth-logo img, .welcome-popup .popup-logo { animation: presentFloat 3.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .auth-logo img, .welcome-popup .popup-logo { animation: none !important; }
   .marquee-track { animation: none !important; }
}

/* --- Marquee: scrolling announcement ticker --- */
.announcement-banner {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 10px 14px 0;
  padding: 8px 12px;
  
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  position: relative;
 
}
.announcement-banner i { flex-shrink: 0; }
.announcement-banner .marquee-wrap {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.announcement-banner .marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 22s linear infinite;
}
.announcement-banner .marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Generated using AppDeploy UI skill */
/* PRESENT premium festive identity — shared across customer and admin pages */
:root {
  --primary: #b90e12;
  --primary-700: #72080c;
  --primary-600: #920a0e;
  --primary-500: #c91519;
  --primary-400: #e83b35;
  --primary-200: #efaaa0;
  --primary-100: #f8d9cb;
  --primary-50: #fff3e7;
  --gold: #e7ad36;
  --gold-bg: #fff0c7;
  --gold-accent: #b87912;
  --rose: #bd2022;
  --rose-bg: #ffe4dd;
  --bg: #fffaf1;
  --bg-card: #fffdf8;
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(65, 5, 8, .72);
  --text: #42110f;
  --text-muted: #80514a;
  --text-light: #a77d70;
  --text-inverse: #fffaf1;
  --border: #f0d7b1;
  --border-strong: #dca64a;
  --success: #16834c;
  --success-bg: #e7f7ed;
  --warning: #a85b09;
  --warning-bg: #fff2d8;
  --error: #b42318;
  --error-bg: #fff0ed;
  --info: #8c351c;
  --info-bg: #fff1e5;
  --shadow-xs: 0 2px 7px rgba(91, 35, 12, .06);
  --shadow-sm: 0 5px 14px rgba(91, 35, 12, .09);
  --shadow: 0 9px 24px rgba(91, 35, 12, .11);
  --shadow-md: 0 14px 34px rgba(91, 35, 12, .14);
  --shadow-lg: 0 22px 54px rgba(91, 35, 12, .18);
  --radius-xs: 8px;
  --radius-sm: 13px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --max-width: 520px;
}

* { -webkit-tap-highlight-color: transparent; }
html { background: #f7ead7; }
body {
  background:
    radial-gradient(ellipse at 8% 4%, rgba(234, 181, 76, .14), transparent 28rem),
    radial-gradient(ellipse at 96% 72%, rgba(173, 25, 22, .07), transparent 30rem),
    #fffaf1;
  color: var(--text);
  font-family: 'Raleway', 'Trebuchet MS', sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: var(--primary-600); }
a:hover { color: var(--gold-accent); }

.app {
  max-width: var(--max-width);
  background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
  box-shadow: 0 0 0 1px rgba(183, 123, 31, .10), 0 20px 65px rgba(81, 26, 11, .12);
  overflow: clip;
}
.topbar {
  min-height: 78px;
  padding: 12px 17px;
  background:
    radial-gradient(circle at 80% -40%, rgba(255, 220, 117, .22), transparent 42%),
    linear-gradient(125deg, #69070b 0%, #a80b10 48%, #d21a1b 100%);
  border-bottom: 3px solid #e9b443;
  box-shadow: 0 7px 20px rgba(88, 8, 9, .23);
}
.topbar .brand { gap: 9px; font-size: 18px; letter-spacing: .025em; color: #ffe5a0; font-weight: 900; }
.topbar .brand img.brand-logo { height: 46px; max-width: 168px; object-fit: contain; border-radius: 0; filter: drop-shadow(0 3px 5px rgba(0,0,0,.24)); }
.topbar .brand > span { display: none; }
.topbar .actions { gap: 8px; }
.topbar .actions .icon-btn {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(80,0,0,.18));
  border: 1px solid rgba(255,221,135,.48); color: #fff4d6;
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 3px 9px rgba(45,0,0,.18);
}
.topbar .actions .icon-btn:hover { background: rgba(255,220,130,.22); }
.topbar .actions .icon-btn .badge { background: #ffcf4d; color: #6d090b; border-color: #8b080d; }

.dashboard-banner {
  height: 48px;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #76070b, #c71318 54%, #85090e);
  border-bottom: 3px solid #edb94c;
}
.dashboard-banner::before {
  content: '';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,224,151,.92); font-size: 12px; font-weight: 900;
  letter-spacing: .34em; text-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.dashboard-banner::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,220,130,.08) 17px 18px);
  pointer-events: none;
}
.welcome-strip {
  margin: 13px 16px 0; padding: 13px 16px;
  border: 1px solid #eac17a; border-radius: 18px;
  background: linear-gradient(110deg, #fffdf7, #fff0d4);
  color: #73302a; box-shadow: var(--shadow-xs);
  font-size: 14px;
}
.welcome-strip strong { color: #9d1014; font-weight: 900; }
.balance-card {
  margin: 16px; padding: 22px 20px 18px;
  border: 2px solid #f1c45d; border-radius: 26px;
  background:
    radial-gradient(circle at 86% 30%, rgba(255,206,76,.22), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.08), transparent 40%),
    linear-gradient(135deg, #71070b 0%, #bd1117 52%, #87090d 100%);
  box-shadow: 0 13px 28px rgba(112, 12, 13, .23), inset 0 0 0 3px rgba(255,220,129,.12);
}
.balance-card::before {
  content: ''; position: absolute; top: 15px; right: 15px;
  width: 94px; height: 94px; display: grid; place-items: center;
  font-size: 66px; opacity: .95; transform: rotate(7deg);
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.24));
}
.balance-card .label { color: #ffe5a1; opacity: 1; font-size: 12px; font-weight: 800; }
.balance-card .amount { color: #ffe08a; font-size: clamp(32px, 8vw, 44px); text-shadow: 0 3px 0 #6d090b, 0 5px 13px rgba(0,0,0,.3); }
.balance-card .meta { border-top: 1px solid rgba(255,220,133,.42); gap: 8px; margin-top: 19px; padding-top: 14px; }
.balance-card .meta > div + div { border-left: 1px solid rgba(255,220,133,.38); padding-left: 10px; }
.balance-card .meta .label-mini { color: #ffe7b4; font-size: 9px; opacity: 1; }
.balance-card .meta .val { color: #ffdb77; font-size: 14px; }

.quick-actions, .quick-actions-row2 { gap: 10px; }
.quick-actions { padding-bottom: 12px; }
.quick-action {
  border: 1px solid #e7bd72; border-radius: 19px;
  background: linear-gradient(155deg, #fffefa, #fff1d6);
  box-shadow: 0 4px 10px rgba(96, 45, 12, .09), inset 0 1px #fff;
  padding: 14px 5px 12px;
}
.quick-action:hover { border-color: #bd7b1b; box-shadow: 0 8px 18px rgba(126, 51, 13, .14); transform: translateY(-2px); }
.quick-action .icon {
  width: 52px; height: 52px; border-radius: 16px; font-size: 21px;
  box-shadow: 0 5px 10px rgba(87, 17, 9, .22), inset 0 1px rgba(255,255,255,.45);
  border: 1px solid rgba(255,220,143,.65);
}
.quick-action .icon.icon-primary, .quick-action .icon.icon-rose { background: linear-gradient(145deg, #f02b22, #9f080e); }
.quick-action .icon.icon-success { background: linear-gradient(145deg, #20b45a, #087c3c); }
.quick-action .icon.icon-gold { background: linear-gradient(145deg, #ffda57, #d99a13); color: #7b180c; }
.quick-action .icon.icon-info { background: linear-gradient(145deg, #29a6f7, #1263c6); }
.quick-action .label { color: #74251e; font-size: 12px; font-weight: 800; }
.quick-actions-row2 { margin: 0 16px 18px; }
.quick-actions-row2 .quick-action { padding: 13px 5px; }

.section-title { color: #6e1c17; font-size: 15px; font-weight: 900; margin-top: 20px; }
.section-title i { color: #bd811f; }
.card, .stat-card, .plan-card, .referral-box, .bank-details-card {
  background: linear-gradient(155deg, #fffefa, #fff7e8);
  border: 1px solid #ecd4ad; border-radius: 19px;
  box-shadow: 0 5px 16px rgba(93, 44, 15, .07);
}
.card-title { color: #70201a; font-weight: 800; }
.content { padding-top: 18px; }
.content-tight { padding-top: 10px; }
.btn, button.btn {
  border-radius: 13px; font-weight: 800; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary {
  color: #fff8e8; border: 1px solid #f1c45d;
  background: linear-gradient(135deg, #d51a1d 0%, #a4090e 58%, #77080d 100%);
  box-shadow: 0 5px 13px rgba(151, 12, 16, .2), inset 0 1px rgba(255,255,255,.18);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 8px 18px rgba(151,12,16,.25); transform: translateY(-1px); }
.btn-secondary, .btn-warning { background: linear-gradient(135deg, #f4c85c, #d69a28); color: #5e1b10; border: 1px solid #e7b44a; }
.btn-danger { background: linear-gradient(135deg, #a80b10, #76070b); color: white; border: 1px solid #e1a84b; }
.btn-ghost, .btn-outline { border: 1px solid #dcb56e; color: #7d261e; background: #fff9ed; }
input, select, textarea {
  border: 1px solid #e5c99b !important; border-radius: 12px !important;
  background: #fffefa !important; color: #42110f !important;
  box-shadow: inset 0 1px 2px rgba(86, 43, 12, .035);
}
input:focus, select:focus, textarea:focus { border-color: #bd811f !important; box-shadow: 0 0 0 3px rgba(220,166,74,.18) !important; outline: none; }
.form-group label { color: #73332b; font-weight: 800; }
.input-with-icon .icon { color: #a76c25; }

.auth-page {
  min-height: 100vh; padding: 26px 16px;
  background:
    radial-gradient(circle at 10% 5%, rgba(245,195,89,.25), transparent 30%),
    radial-gradient(circle at 95% 90%, rgba(158,10,17,.17), transparent 32%),
    linear-gradient(145deg, #fff8e9 0%, #f8e7cb 48%, #fffaf1 100%);
}

.auth-card {
  max-width: 440px; padding: 30px 28px 27px;
  border: 1px solid #e7bd72; border-radius: 26px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,247,229,.98));
  box-shadow: 0 22px 55px rgba(98, 38, 14, .18), inset 0 1px #fff;
  position: relative; overflow: hidden;
}
.auth-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #8d080d, #e7ad36, #c51117); }
.auth-logo { height: auto; width: 100%; margin: 0 auto 8px; display: flex; justify-content: center; }
.auth-logo img { height: auto; width: min(100%, 290px); max-height: 112px; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 4px 5px rgba(95,24,10,.13)); }
.auth-title { margin-top: 12px !important; color: #851016; font-size: 25px; font-weight: 900; }
.auth-subtitle { color: #87574c; }
.auth-card form { margin-top: 22px; }
.auth-card .btn-primary { min-height: 48px; }
.auth-card p a { font-weight: 800; }

.bottom-nav {
  background: linear-gradient(120deg, #68070b, #a50c12 52%, #76080c);
  border-top: 2px solid #efc45e; box-shadow: 0 -8px 22px rgba(89, 12, 12, .18);
  padding: 9px 0 calc(10px + env(safe-area-inset-bottom));
}
.bottom-nav a { color: rgba(255,241,209,.82); font-weight: 700; }
.bottom-nav a .icon { color: #f5d68b; }
.bottom-nav a.active, .bottom-nav a.active .icon { color: #ffe08a; }

.admin-shell { background: linear-gradient(145deg, #fff9ee, #f5e6d1); }
.admin-header {
  background: radial-gradient(circle at 80% 0%, rgba(255,215,117,.18), transparent 35%), linear-gradient(120deg, #68070b, #a50c12 55%, #78080d);
  border-bottom: 2px solid #e7b34b; box-shadow: 0 6px 18px rgba(89,12,12,.2);
}
.admin-header .brand { color: #ffe4a0; font-weight: 900; letter-spacing: .02em; }
.admin-header .brand img { height: 44px; width: auto; border-radius: 0; object-fit: contain; }
.admin-header .actions a { border-color: rgba(255,220,135,.35); color: #fff2d4; }
.admin-header .actions a:hover { background: #e7b34b; color: #651014; }
.admin-tabs { background: #fffaf0; border-bottom: 2px solid #e7bd72; }
.admin-tabs a { color: #84574d; }
.admin-tabs a.active { color: #9d1014; border-bottom-color: #bd811f; }
.admin-content { color: #42110f; }
.admin-content h2 { color: #78141a; }
.admin-content .stat-card, .admin-content .card { background: linear-gradient(150deg, #fffefa, #fff4df); border: 1px solid #e8d0a7; border-radius: 18px; box-shadow: var(--shadow-xs); }
.admin-content .stat-card .value { color: #981017; }
.admin-table-wrap { border-color: #e8d0a7; border-radius: 16px; }
.admin-table th { background: #fff0d4; color: #78141a; border-bottom-color: #d5a243; }
.admin-table td { border-bottom-color: #f0e1c8; }
.admin-table tbody tr:hover { background: #fff8e9; }
.admin-content .form-group label { color: #77443b; }
.admin-content input, .admin-content select, .admin-content textarea { background: #fffefa !important; }

.announcement-banner { background: linear-gradient(100deg, #8d080d, #c91519); border-color: #e9b443; color: #fff1cc; }
.badge-pending { background: #fff0d4; color: #8a4b08; }
.empty-state { color: #88645a; }
.empty-state .icon { color: #b77a24; }
.modal-overlay, .welcome-popup-overlay { backdrop-filter: blur(5px); background: rgba(50, 5, 8, .66); }
.welcome-popup { border: 1px solid #e5b958; border-radius: 24px; background: linear-gradient(150deg, #fffefa, #fff2d9); }
.welcome-popup .popup-logo { max-height: 88px; object-fit: contain; }

@media (min-width: 700px) {
  .app { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 26px; }
  .bottom-nav { max-width: var(--max-width); border-radius: 0 0 24px 24px; }
  .admin-content { padding: 30px clamp(24px, 4vw, 48px); }
}
@media (max-width: 380px) {
  .balance-card { padding: 19px 15px 16px; }
  .balance-card::before { font-size: 49px; width: 70px; height: 70px; }
  .balance-card .meta .label-mini { font-size: 8px; }
  .balance-card .meta .val { font-size: 12px; }
  .quick-action .icon { width: 46px; height: 46px; }
  .auth-card { padding: 27px 20px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ============== PRESENT premium welcome popup ============== */
.welcome-popup-overlay {
  background: radial-gradient(circle at 50% 18%, rgba(255, 207, 92, .16), transparent 42%), rgba(49, 0, 4, .78) !important;
  backdrop-filter: blur(7px);
  padding: 18px;
}
.welcome-popup {
  position: relative;
  max-width: 390px;
  width: min(100%, 390px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 0;
  border: 2px solid #dca83d;
  border-radius: 23px;
  background: linear-gradient(155deg, #fffdf8 0%, #fff3dc 100%);
  box-shadow: 0 22px 65px rgba(37, 0, 0, .42), inset 0 0 0 3px rgba(255,255,255,.75);
  scrollbar-width: thin;
  scrollbar-color: #c38b28 #fff1d6;
}
.welcome-popup .popup-top-ribbon {
  min-height: 42px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffe8a6;
  background: linear-gradient(105deg, #760006, #c90810 54%, #8b0008);
  border-bottom: 2px solid #e7b64c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.35px;
}
.welcome-popup .popup-top-ribbon span { display: flex; align-items: center; gap: 8px; }
.welcome-popup .popup-top-ribbon span i { color: #ffd45d; font-size: 14px; }
.welcome-popup .popup-close {
  width: 27px; height: 27px; border-radius: 50%; border: 1px solid rgba(255,225,153,.6);
  color: #fff4d2; background: rgba(255,255,255,.12); cursor: pointer; font-size: 13px;
}
.welcome-popup .popup-body { padding: 17px 21px 18px; text-align: center; }
.welcome-popup .popup-logo {
  width: min(82%, 260px); height: auto; max-height: 82px; object-fit: contain;
  margin: 0 auto 3px; display: block; border-radius: 0;
  filter: drop-shadow(0 4px 3px rgba(111, 22, 10, .12));
}
.welcome-popup .popup-gold-rule { display:flex; align-items:center; justify-content:center; gap:9px; margin: 2px auto 9px; color:#c38b22; font-size:10px; }
.welcome-popup .popup-gold-rule span { width:54px; height:1px; background:linear-gradient(90deg, transparent, #c58b2d); }
.welcome-popup .popup-gold-rule span:last-child { transform:scaleX(-1); }
.welcome-popup h2 { color:#8f090f; font-size:20px; line-height:1.2; font-weight:900; margin:0 0 7px; }
.welcome-popup .popup-intro { color:#76564a; font-size:11px; line-height:1.55; margin:0 auto 14px; max-width:290px; }
.welcome-popup .popup-benefit-heading { display:flex; align-items:center; gap:7px; color:#8e1715; font-size:10px; font-weight:900; letter-spacing:.85px; margin:0 0 7px; text-align:left; }
.welcome-popup .popup-benefit-heading i { color:#c28a20; }
.welcome-popup .info-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:0 0 11px; text-align:left;
}
.welcome-popup .info-row {
  min-width:0; display:flex; align-items:center; gap:8px; padding:9px 8px;
  border:1px solid #ead7b4; border-radius:11px; background:rgba(255,255,255,.78);
  box-shadow:0 2px 5px rgba(116,49,20,.045); border-bottom:1px solid #ead7b4; font-size:11px;
}
.welcome-popup .info-row i {
  width:27px; height:27px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  flex:0 0 27px; color:#fff; background:linear-gradient(145deg,#d91b1b,#870007); font-size:11px;
  box-shadow:0 2px 5px rgba(120,0,0,.18);
}
.welcome-popup .info-row:nth-child(2n) i { background:linear-gradient(145deg,#e8bd4e,#a66b10); color:#fffdf2; }
.welcome-popup .info-row .info-label { color:#886d5c; font-size:9px; line-height:1.3; }
.welcome-popup .info-row .info-value { color:#781015; font-size:11px; font-weight:900; line-height:1.35; overflow-wrap:anywhere; }
.welcome-popup .popup-telegram-link {
  display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 12px; margin:9px 0 10px;
  border-radius:11px; border:1px solid #dfb44e; color:#fff8e7;
  background:linear-gradient(105deg,#a90008,#d51a16); font-size:11px; font-weight:800; text-decoration:none;
  box-shadow:0 4px 10px rgba(130,0,0,.15);
}
.welcome-popup .popup-telegram-link i:first-child { color:#ffdc75; font-size:16px; }
.welcome-popup .popup-telegram-link .popup-link-arrow { margin-left:auto; font-size:10px; opacity:.8; }
.welcome-popup .popup-confirm {
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 16px;
  border:1px solid #f4d16e; border-radius:12px; color:#fff8e8; cursor:pointer;
  background:linear-gradient(110deg,#8d0007,#d51016 55%,#9a0007);
  box-shadow:0 5px 12px rgba(129,0,0,.22), inset 0 1px 0 rgba(255,255,255,.22);
  font-size:13px; font-weight:900; transition:transform .16s ease, box-shadow .16s ease;
}
.welcome-popup .popup-confirm:hover { transform:translateY(-1px); box-shadow:0 7px 16px rgba(129,0,0,.27); }
.welcome-popup .popup-footer-note { margin-top:10px; color:#9a7964; font-size:9px; font-weight:700; }
.welcome-popup .popup-footer-note i { color:#b88a2f; margin-right:4px; }
@media (max-width:420px) {
  .welcome-popup-overlay { padding:12px; }
  .welcome-popup { max-width:370px; max-height:88vh; }
  .welcome-popup .popup-body { padding:14px 14px 15px; }
  .welcome-popup .popup-logo { max-height:70px; }
  .welcome-popup h2 { font-size:18px; }
  .welcome-popup .info-grid { gap:6px; }
  .welcome-popup .info-row { padding:8px 6px; gap:6px; }
}
@media (max-width:340px) {
  .welcome-popup .info-grid { grid-template-columns:1fr; }
}


/* =========================================================
   PRESENT dashboard — close mobile recreation of the supplied reference
   ========================================================= */
.dashboard-page .app, body.dashboard-page .app {
  --max-width: 480px;
  max-width: 480px;
  background: #fff6e8;
  background-image: radial-gradient(ellipse at 8% 35%, rgba(255,226,168,.22), transparent 40%);
}
body.dashboard-page {
  background: #fff6e8;
}
body.dashboard-page .topbar {
  min-height: 132px;
  padding: 24px 18px 34px;
  position: relative;
  overflow: visible;
  z-index: 2;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(255,55,40,.48), transparent 42%),
    linear-gradient(120deg,#780006 0%,#c90009 48%,#8b0008 100%);
  box-shadow: 0 8px 18px rgba(104,0,5,.22);
}
body.dashboard-page .topbar::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 0; right: 0; bottom: -27px;
  height: 48px;
  background: url('/assets/present-ribbon-top.png') center top / 100% 100% no-repeat;
}
body.dashboard-page .topbar .brand img.brand-logo {
  height: 74px;
  max-width: min(58vw, 270px);
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(35,0,0,.34));
}
body.dashboard-page .topbar .actions { gap: 9px; }
body.dashboard-page .topbar .actions .icon-btn {
  width: 48px; height: 48px;
  border-radius: 15px;
  color: #fff5d7;
  background: linear-gradient(145deg,rgba(255,255,255,.18),rgba(95,0,0,.22));
  border: 2px solid #e8b83d;
  box-shadow: inset 0 1px rgba(255,255,255,.35),0 3px 8px rgba(40,0,0,.28);
  font-size: 19px;
}

body.dashboard-page .welcome-strip {
  min-height: 52px;
  margin: 11px 16px 0;
  padding: 8px 12px;
  display:flex; align-items:center; gap:10px;
  border: 2px solid #e9bd62;
  border-radius: 25px;
  background: linear-gradient(110deg,#fffefa,#fff0d5);
  box-shadow: 0 4px 9px rgba(120,54,10,.10);
  color:#6e1714;
  font-size:15px;
}
body.dashboard-page .welcome-avatar {
  width:39px;height:39px;flex:0 0 39px;
  display:grid;place-items:center;
  border:2px solid #c91419;border-radius:50%;
  color:#fff;background:linear-gradient(145deg,#f22a25,#9f0008);
  box-shadow:inset 0 1px rgba(255,255,255,.45);
  font-size:19px;
}
body.dashboard-page .welcome-strip strong { color:#a90008;font-weight:900; }
body.dashboard-page .balance-card {
  min-height: 230px;
  margin: 18px 13px 17px;
  padding: 22px 19px 16px;
  position:relative;
  overflow:hidden;
  border:3px solid #f2c44f;
  border-radius:31px;
  background:
    radial-gradient(circle at 70% 26%,rgba(255,225,95,.18),transparent 24%),
    linear-gradient(135deg,#9d0007 0%,#e00009 43%,#8f0007 100%);
  box-shadow:0 8px 18px rgba(110,0,5,.24),inset 0 0 0 3px rgba(255,239,166,.20),inset 0 1px 10px rgba(255,255,255,.20);
}
body.dashboard-page .balance-card::before {
  content:'';
  position:absolute;right:-7px;top:7px;width:44%;height:59%;
  background:radial-gradient(circle,rgba(255,221,90,.24),transparent 64%);
  border-radius:50%;
}
body.dashboard-page .balance-gift {
  display:block;position:absolute;z-index:1;
  width:30%;max-width:172px;height:auto;object-fit:contain;
  right:0;top:2px;
  filter:drop-shadow(0 5px 5px rgba(35,0,0,.32));
}
body.dashboard-page .balance-card .label {
  position:relative;z-index:2;
  display:inline-flex;align-items:center;
  margin:0 0 6px;padding:7px 12px;
  border-radius:0 24px 24px 0;
  background:rgba(100,0,4,.42);
  color:#fff2c5;font-size:14px;font-weight:900;letter-spacing:.025em;
}
body.dashboard-page .balance-card .label i { color:#ffd95e;font-size:20px; }
body.dashboard-page .balance-card .amount {
  position:relative;z-index:2;
  width:63%;min-height:74px;
  color:#ffdc59;font-size:clamp(43px,10vw,58px);line-height:1.12;font-weight:900;
  letter-spacing:-.035em;
  text-shadow:0 2px 0 #9a4b00,0 4px 0 #6b0800,0 7px 11px rgba(0,0,0,.35);
}
body.dashboard-page .balance-card .meta {
  position:relative;z-index:2;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  margin-top:10px;padding-top:12px;
  border-top:2px solid rgba(255,220,90,.82);
  opacity:1;
}
body.dashboard-page .balance-card .meta > div { min-width:0;padding:0 8px; }
body.dashboard-page .balance-card .meta > div:first-child { padding-left:0; }
body.dashboard-page .balance-card .meta > div + div { border-left:1px solid rgba(255,219,94,.68); }
body.dashboard-page .balance-card .meta .label-mini { color:#fff4d8;font-size:9px;line-height:1.25;font-weight:800;opacity:1; }
body.dashboard-page .balance-card .meta .val { color:#ffdb62;font-size:17px;font-weight:900;line-height:1.3; }
body.dashboard-page .quick-actions { gap:8px; padding:0 17px 10px; }
body.dashboard-page .quick-action {
  min-height:104px;padding:12px 4px 9px;
  border:2px solid #e6a82f;border-radius:23px;
  background:linear-gradient(155deg,#fffefa 0%,#fff0d1 100%);
  box-shadow:0 4px 8px rgba(114,52,7,.13),inset 0 1px #fff;
}
body.dashboard-page .quick-action .icon {
  width:55px;height:55px;margin:0 auto 8px;
  border-radius:17px;font-size:23px;
  border:1px solid rgba(255,224,143,.9);
  box-shadow:0 4px 7px rgba(75,0,0,.22),inset 0 1px rgba(255,255,255,.42);
}
body.dashboard-page .quick-action .label { color:#701714;font-size:13px;font-weight:900; }
body.dashboard-page .quick-action .icon.icon-gold { background:linear-gradient(145deg,#f02b22,#9f080e);color:#fff; }
body.dashboard-page .quick-actions-row2 { gap:9px;margin:0 17px 18px; }
body.dashboard-page .quick-actions-row2 .quick-action { min-height:99px;padding:12px 4px 9px; }
body.dashboard-page .quick-actions-row2 .quick-action .icon { width:55px;height:55px; }
/* Reference-matched shortcut icon palette: red, green, yellow, blue, green */
body.dashboard-page .quick-actions-row2 #checkInBtn .icon { background:linear-gradient(145deg,#ffe45b,#f3b900)!important;color:#7c160d!important; }
body.dashboard-page .quick-actions-row2 #groupBtn .icon { background:linear-gradient(145deg,#26a8ff,#0870d5)!important;color:#fff!important; }
body.dashboard-page .quick-actions-row2 #careBtn .icon { background:linear-gradient(145deg,#27c95a,#07853c)!important;color:#fff!important; }
body.dashboard-page .section-title {
  margin:17px 17px 8px;padding:0;
  color:#7b1713;font-size:15px;font-weight:900;
}
body.dashboard-page .section-title i { color:#c20b12; }
body.dashboard-page .content-tight { padding:0 17px 12px; }
body.dashboard-page .investment-summary-card {
  border:2px solid #e3b24e;border-radius:20px;
  background:linear-gradient(145deg,#fffefa,#fff0d2);
  box-shadow:0 4px 12px rgba(110,45,8,.12);
  padding:14px;
}
body.dashboard-page .investment-summary-card .progress-bar { background:#f0d7a5;height:9px; }
body.dashboard-page .investment-summary-card .progress-bar > div { background:linear-gradient(90deg,#e8b631,#a90008); }
body.dashboard-page #recentList .list-item {
  border:1px solid #e8c37e;border-radius:16px;
  margin-bottom:8px;background:#fffaf0;
  box-shadow:0 3px 8px rgba(105,45,8,.07);
}
body.dashboard-page .bottom-nav {
  overflow:visible;
  background:linear-gradient(110deg,#8c0007,#d00009 52%,#830007);
  border:0;border-top:3px solid #f3c84f;
  box-shadow:0 -7px 18px rgba(95,0,4,.22);
  padding:12px 0 calc(12px + env(safe-area-inset-bottom));
}
body.dashboard-page .bottom-nav::before {
  content:'';position:absolute;left:0;right:0;top:-22px;height:30px;
  background:url('/assets/present-ribbon-bottom.png') center center / 100% 100% no-repeat;
  pointer-events:none;
}
body.dashboard-page .bottom-nav::after {
  content:'';position:absolute;left:0;right:0;top:-46px;height:34px;
  background:
    url('/assets/present-gift-icon.png') left center / 52px 52px no-repeat,
    url('/assets/present-gift-icon.png') right center / 52px 52px no-repeat;
  pointer-events:none;
}
body.dashboard-page .bottom-nav a { color:#fff4dc;font-size:12px;font-weight:800;padding:4px 0; }
body.dashboard-page .bottom-nav a .icon { color:#ffe17a;font-size:25px;margin-bottom:4px; }
body.dashboard-page .bottom-nav a.active, body.dashboard-page .bottom-nav a.active .icon { color:#ffe17a; }
body.dashboard-page .app { padding-bottom:92px; }

/* The plans page uses premium plan symbols, never decorative gift-box photos. */
.plan-card-image { display:none !important; }
.plan-card .plan-name { color:#841016; }
.plan-card .plan-amount { color:#a60009; }
.plan-card .plan-daily .value { color:#168b45; }
.plan-card .badge-popular { background:linear-gradient(135deg,#f7d56b,#c28a21);color:#65110e;border:1px solid #fff0a9; }

@media (max-width:390px) {
  body.dashboard-page .topbar { min-height:116px;padding:20px 13px 29px; }
  body.dashboard-page .topbar .brand img.brand-logo { height:64px;max-width:56vw; }
  body.dashboard-page .topbar .actions { gap:6px; }
  body.dashboard-page .topbar .actions .icon-btn { width:42px;height:42px;font-size:17px; }
  body.dashboard-page .balance-card { min-height:214px;padding:18px 14px 14px;margin:16px 11px 14px; }
  body.dashboard-page .balance-gift { width:33%;right:0;top:7px; }
  body.dashboard-page .balance-card .amount { font-size:43px;min-height:65px; }
  body.dashboard-page .balance-card .meta .label-mini { font-size:8px; }
  body.dashboard-page .balance-card .meta .val { font-size:14px; }
  body.dashboard-page .quick-action { min-height:96px;border-radius:20px; }
  body.dashboard-page .quick-action .icon { width:49px;height:49px;font-size:20px; }
  body.dashboard-page .quick-action .label { font-size:12px; }
}

/* =========================================================
   PRESENT Plans page — same festive mobile shell as Home
   ========================================================= */
body.plans-page { background:#fff6e8; }
body.plans-page .app {
  --max-width:480px;
  max-width:480px;
  min-height:100vh;
  padding-bottom:94px;
  background:#fff6e8;
  background-image:radial-gradient(ellipse at 8% 35%,rgba(255,226,168,.22),transparent 40%);
  overflow-x:hidden;
}
body.plans-page .topbar {
  min-height:132px;
  padding:24px 18px 34px;
  position:relative;
  overflow:visible;
  z-index:2;
  border:0;border-radius:0;
  background:radial-gradient(ellipse at 75% 0%,rgba(255,55,40,.48),transparent 42%),linear-gradient(120deg,#780006 0%,#c90009 48%,#8b0008 100%);
  box-shadow:0 8px 18px rgba(104,0,5,.22);
}
body.plans-page .topbar::after {
  content:'';position:absolute;z-index:3;pointer-events:none;left:0;right:0;bottom:-27px;height:48px;
  background:url('/assets/present-ribbon-top.png') center top / 100% 100% no-repeat;
}
body.plans-page .topbar .brand img.brand-logo { height:74px;max-width:min(58vw,270px);object-fit:contain;filter:drop-shadow(0 3px 4px rgba(35,0,0,.34)); }
body.plans-page .topbar .brand span { display:none; }
body.plans-page .topbar .actions { gap:9px; }
body.plans-page .topbar .actions .icon-btn {
  width:48px;height:48px;border-radius:15px;color:#fff5d7;
  background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(95,0,0,.22));
  border:2px solid #e8b83d;box-shadow:inset 0 1px rgba(255,255,255,.35),0 3px 8px rgba(40,0,0,.28);font-size:19px;
}
body.plans-page .announcement-banner {
  display:flex;align-items:flex-start;gap:12px;min-height:48px;
  margin:12px 12px 0;padding:10px 15px;overflow:hidden;
  border:2px solid #e5ad35;border-radius:17px;color:#fff8e7;
  background:linear-gradient(110deg,#bd0008,#ef1718 48%,#a90008);
  box-shadow:0 4px 10px rgba(119,13,7,.19),inset 0 1px rgba(255,255,255,.28);
  font-size:12px;line-height:1.4;white-space:normal;
}
body.plans-page .announcement-banner > i { flex:0 0 auto;color:#fff4d1;font-size:19px;margin-top:1px; }
body.plans-page .announcement-banner .marquee-wrap { display:block;flex:1 1 auto;min-width:0;width:100%;overflow:visible;white-space:normal;mask-image:none;-webkit-mask-image:none; }
body.plans-page .announcement-banner .marquee-track { display:block;width:100%;padding:0;white-space:normal;animation:none; }
body.plans-page .announcement-banner .marquee-track span { display:block;white-space:normal;overflow-wrap:anywhere;word-break:normal; }
body.plans-page .content { padding:24px 13px 20px; }
body.plans-page .section-title { margin:4px 3px 8px;color:#7b1713;font-size:18px;font-weight:900; }
body.plans-page .section-title i { color:#d49b27; }
body.plans-page .content > p { margin:0 3px 15px!important;color:#8b6658!important;font-size:13px!important;line-height:1.45; }
body.plans-page .balance-card {
  min-height:150px;margin:0 0 18px;padding:19px 18px;position:relative;overflow:hidden;
  border:3px solid #f2c44f;border-radius:28px;
  background:radial-gradient(circle at 78% 28%,rgba(255,225,95,.18),transparent 25%),linear-gradient(135deg,#9d0007 0%,#e00009 43%,#8f0007 100%);
  box-shadow:0 8px 18px rgba(110,0,5,.2),inset 0 0 0 3px rgba(255,239,166,.18);
}
body.plans-page .balance-card .label { position:relative;z-index:2;color:#fff2c5;font-size:13px;font-weight:900; }
body.plans-page .balance-card .label i { color:#ffd95e; }
body.plans-page .balance-card .amount { position:relative;z-index:2;width:65%;color:#ffdc59;font-size:39px;font-weight:900;text-shadow:0 2px 0 #9a4b00,0 4px 7px rgba(0,0,0,.28); }
body.plans-page .balance-card::after {
  content:'';position:absolute;right:8px;top:4px;width:37%;height:100%;
  background:url('/assets/present-dashboard-gift.png') center / contain no-repeat;
  filter:drop-shadow(0 5px 5px rgba(35,0,0,.3));pointer-events:none;
}
body.plans-page .plans-grid { display:grid;grid-template-columns:minmax(0,1fr);gap:13px;padding:0;margin:0; }
body.plans-page .plan-card {
  position:relative;overflow:hidden;padding:14px 14px 13px;
  border:2px solid #e5b653;border-radius:23px;
  background:linear-gradient(145deg,#fffefa 0%,#fff0d5 100%);
  box-shadow:0 5px 12px rgba(114,52,7,.12),inset 0 1px #fff;
}
body.plans-page .plan-card-main { display:flex;align-items:center;gap:5px;min-height:128px; }
body.plans-page .plan-card-details { flex:1 1 62%;min-width:0;position:relative;z-index:1; }
body.plans-page .plan-card-gift-wrap { flex:0 0 34%;max-width:126px;display:flex;align-items:center;justify-content:center; }
body.plans-page .plan-card-image { display:block!important;width:100%;height:116px;object-fit:contain;padding:0;margin:0;filter:drop-shadow(0 4px 5px rgba(85,0,0,.18)); }
body.plans-page .plan-card .plan-name { display:block;color:#841016;font-size:16px;font-weight:900;line-height:1.25;margin:0 0 3px; }
body.plans-page .plan-card .plan-amount { color:#a60009;font-size:25px;font-weight:900;margin:0 0 4px; }
body.plans-page .plan-status { font-size:10px;font-weight:800;margin:0 0 7px; }
body.plans-page .plan-status.is-affordable { color:#168b45; }
body.plans-page .plan-status.is-insufficient { color:#b42318; }
body.plans-page .plan-card .plan-daily { display:flex;background:rgba(255,218,133,.24);border:1px solid #efd49c;border-radius:10px;padding:7px 8px;margin:6px 0;font-size:10px;gap:6px;justify-content:space-between;align-items:center; }
body.plans-page .plan-card .plan-daily .value { color:#168b45;font-weight:900;white-space:nowrap; }
body.plans-page .plan-card .plan-meta { margin-top:6px;color:#8b6658;font-size:11px; }
body.plans-page .plan-card .plan-meta i { color:#c20b12; }
body.plans-page .plan-card .plan-bonus-row { background:rgba(255,244,205,.72); }
body.plans-page .plan-card > .btn { width:100%;margin-top:10px!important;border-radius:13px;min-height:43px;font-weight:900; }
body.plans-page .plan-card .badge-popular { top:11px;right:-34px;z-index:2;background:linear-gradient(135deg,#f7d56b,#c28a21);color:#65110e;border:1px solid #fff0a9; }
body.plans-page .bottom-nav {
  overflow:visible;position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:480px;
  background:linear-gradient(110deg,#8c0007,#d00009 52%,#830007);border:0;border-top:3px solid #f3c84f;
  box-shadow:0 -7px 18px rgba(95,0,4,.22);padding:12px 0 calc(12px + env(safe-area-inset-bottom));z-index:50;
}
body.plans-page .bottom-nav::before { content:'';position:absolute;left:0;right:0;top:-22px;height:30px;background:url('/assets/present-ribbon-bottom.png') center/100% 100% no-repeat;pointer-events:none; }
body.plans-page .bottom-nav::after { content:'';position:absolute;left:0;right:0;top:-46px;height:34px;background:url('/assets/present-gift-icon.png') left center/52px 52px no-repeat,url('/assets/present-gift-icon.png') right center/52px 52px no-repeat;pointer-events:none; }
body.plans-page .bottom-nav a { color:#fff4dc;font-size:12px;font-weight:800;padding:4px 0; }
body.plans-page .bottom-nav a .icon { color:#ffe17a;font-size:25px;margin-bottom:4px; }
body.plans-page .bottom-nav a.active,body.plans-page .bottom-nav a.active .icon { color:#ffe17a; }
@media(max-width:390px) {
  body.plans-page .topbar { min-height:116px;padding:20px 13px 29px; }
  body.plans-page .topbar .brand img.brand-logo { height:64px;max-width:56vw; }
  body.plans-page .topbar .actions { gap:6px; }
  body.plans-page .topbar .actions .icon-btn { width:42px;height:42px;font-size:17px; }
  body.plans-page .plan-card { padding:12px 11px; }
  body.plans-page .plan-card-main { min-height:118px; }
  body.plans-page .plan-card-gift-wrap { flex-basis:32%; }
  body.plans-page .plan-card-image { height:104px; }
  body.plans-page .plan-card .plan-amount { font-size:23px; }
}


/* PRESENT agreed dashboard and payment refinements */
.announcement-banner .marquee-track { animation-duration: 32s; }
body.plans-page .announcement-banner { align-items:center; overflow:hidden; white-space:nowrap; }
body.plans-page .announcement-banner .marquee-wrap { overflow:hidden; white-space:nowrap; mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
body.plans-page .announcement-banner .marquee-track { display:inline-block; width:max-content; padding-left:100%; white-space:nowrap; animation:marqueeScroll 32s linear infinite!important; transform:none; }
body.plans-page .announcement-banner .marquee-track span { display:inline; white-space:nowrap; }
body.dashboard-page .balance-card { padding:20px 18px 16px; }
body.dashboard-page .quick-action { min-height:88px; padding:10px 5px; }
body.dashboard-page .quick-action .icon { width:45px;height:45px;font-size:18px; }
body.dashboard-page .quick-actions-row2 .quick-action { min-height:86px;padding:9px 4px 7px; }
body.dashboard-page .quick-actions-row2 .quick-action .icon { width:47px;height:47px; }
.payment-channel-group { margin-top:18px; }
.payment-channel-option { display:flex;align-items:center;gap:11px;padding:13px 14px;margin-top:9px;border:1px solid var(--border);border-radius:14px;background:#fff;cursor:pointer; }
.payment-channel-option input { accent-color:#b90e12;width:17px;height:17px; }
.payment-channel-option span { display:flex;flex-direction:column;gap:3px;flex:1; }
.payment-channel-option small { color:var(--text-muted);font-weight:500; }
.payment-channel-option > i { color:#b90e12; }
.payment-channel-option.unavailable { opacity:.55;cursor:not-allowed; }
.channel-unavailable { flex:0 0 auto!important;font-size:10px;color:#a00;font-weight:800; }
.withdraw-presets { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px; }
.withdraw-presets button { border:1px solid #e5b653;border-radius:12px;background:linear-gradient(145deg,#fffefa,#fff0d5);color:#861016;padding:11px 8px;font-weight:900;font-size:13px; }
.withdraw-presets button.active { background:linear-gradient(145deg,#c91519,#85070c);color:#fff2c5;border-color:#e8b83d; }
.withdraw-balance-card {  border:2px solid #e8b83d;background:linear-gradient(135deg,#9d0007,#e00009 48%,#8f0007);box-shadow:0 8px 18px rgba(110,0,5,.2),inset 0 0 0 2px rgba(255,239,166,.18);padding:19px 18px;min-height:135px;  }
.withdraw-balance-card .label { color:#fff2c5;font-weight:900; }
.withdraw-balance-card .label i { color:#ffd95e; }
.withdraw-balance-card .amount { color:#ffdc59;font-size:39px;font-weight:900;text-shadow:0 2px 0 #9a4b00,0 4px 7px rgba(0,0,0,.28); }
.toast.success { border-left-color:#c91519; }
.toast.success i { color:#d6a42d; }
#groupBtn { animation:presentGroupFloat 2.7s ease-in-out infinite; }
@keyframes presentGroupFloat { 0%,100%{transform:translateY(0) rotate(0)} 25%{transform:translateY(-3px) rotate(-1deg)} 50%{transform:translateY(0) rotate(1deg)} 75%{transform:translateY(-2px) rotate(-1deg)} }
@media (prefers-reduced-motion:reduce) { #groupBtn { animation:none; } .announcement-banner .marquee-track { animation-duration:60s; } }

body.dashboard-page .announcement-banner { display:flex;align-items:center;overflow:hidden;white-space:nowrap;margin:10px 14px 0;padding:9px 12px;border:1px solid #e9b443;border-radius:14px;background:linear-gradient(100deg,#8d080d,#c91519);color:#fff1cc; }
body.dashboard-page .announcement-banner .marquee-wrap { overflow:hidden;flex:1;white-space:nowrap;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
body.dashboard-page .announcement-banner .marquee-track { display:inline-block;width:max-content;padding-left:100%;white-space:nowrap;animation:marqueeScroll 32s linear infinite; }

/* ============== Withdraw page: marquee banner + gift-box on balance card ============== */
body.withdraw-page .announcement-banner { display:flex;align-items:center;overflow:hidden;white-space:nowrap;margin:10px 14px 0;padding:9px 12px;border:1px solid #e9b443;border-radius:14px;background:linear-gradient(100deg,#8d080d,#c91519);color:#fff1cc; }
body.withdraw-page .announcement-banner > i { flex:0 0 auto;color:#fff4d1;font-size:16px; }
body.withdraw-page .announcement-banner .marquee-wrap { overflow:hidden;flex:1;white-space:nowrap;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
body.withdraw-page .announcement-banner .marquee-track { display:inline-block;width:max-content;padding-left:100%;white-space:nowrap;animation:marqueeScroll 32s linear infinite; }

/* Make the withdraw balance card a positioned container and paint the gift-box PNG on the right, like the plans page */
.withdraw-balance-card { position:relative;overflow:hidden; }
.withdraw-balance-card .label,
.withdraw-balance-card .amount { position:relative;z-index:2; }
.withdraw-balance-card .amount { width:62%; }
.withdraw-balance-card::after {
  content:'';position:absolute;right:8px;top:4px;width:37%;height:100%;
  background:url('/assets/present-dashboard-gift.png') center / contain no-repeat;
  filter:drop-shadow(0 5px 5px rgba(35,0,0,.3));pointer-events:none;z-index:1;
}



/* PRESENT - Smaller Responsive Navbar */
.topbar {
    min-height: 58px !important;
    padding: 7px 10px !important;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.topbar .brand {
    min-width: 0;
    flex-shrink: 1;
    gap: 5px !important;
}

.topbar .brand img.brand-logo {
    height: 34px !important;
    max-width: 120px !important;
    width: auto !important;
    object-fit: contain;
}

.topbar .actions {
    display: flex;
    align-items: center;
    gap: 4px !important;
    flex-shrink: 0;
}

.topbar .actions .icon-btn {
    width: 33px !important;
    min-width: 33px !important;
    height: 33px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}
/* Extra adjustment for small mobile screens */
@media (max-width: 380px) {
    .topbar {
        padding: 6px 7px !important;
    }

    .topbar .brand img.brand-logo {
        height: 26px !important;
        max-width: 95px !important;
    }

    .topbar .actions {
        gap: 3px !important;
    }

    .topbar .actions .icon-btn {
        width: 27 px !important;
        min-width: 27px !important;
        height: 27px !important;
    }
}
.topbar .actions .icon-btn {
    transform: translateY(-3px);
}
.popup-telegram-link {
    animation: telegramShakePause 3.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes telegramShakePause {
    0%, 65%, 100% {
        transform: rotate(0deg);
    }
    68% {
        transform: rotate(-6deg);
    }
    71% {
        transform: rotate(6deg);
    }
    74% {
        transform: rotate(-6deg);
    }
    77% {
        transform: rotate(6deg);
    }
    80% {
        transform: rotate(0deg);
    }
}

/* PRESENT app installation */
body.dashboard-page .quick-actions-row2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.dashboard-page .quick-actions-row2 .download-app-home .icon {
  background: linear-gradient(145deg, #ffe7a3, #d5a02e) !important;
  color: #741b16 !important;
}
.profile-install-card {
  display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 15px;
  border: 1px solid rgba(196,145,43,.35); border-radius: 16px;
  background: linear-gradient(135deg,#fff9eb,#fff0cb); box-shadow: 0 7px 18px rgba(105,35,20,.07);
}
.profile-install-icon {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  border-radius: 13px; color: #fff; background: linear-gradient(145deg,#d9ad4d,#a86e13); font-size: 20px;
}
.profile-install-copy { flex: 1; min-width: 0; }
.profile-install-copy h3 { margin: 0 0 4px; color: #751a18; font-size: 14px; font-weight: 900; }
.profile-install-copy p { margin: 0; color: #795d36; font-size: 11px; line-height: 1.4; }
.profile-install-button {
  border: 0; border-radius: 10px; padding: 10px 12px; background: linear-gradient(135deg,#c8120f,#8f100e);
  color: #fff; font: inherit; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer;
}
@media (max-width: 390px) {
  body.dashboard-page .quick-actions-row2 { gap: 6px; }
  body.dashboard-page .quick-actions-row2 .quick-action { padding-left: 2px; padding-right: 2px; }
  body.dashboard-page .quick-actions-row2 .quick-action .label { font-size: 10px; }
  .profile-install-card { gap: 9px; padding: 12px; }
  .profile-install-button { padding: 9px 10px; font-size: 10px; }
}


/* PRESENT persistent music control */
.topbar .actions .present-volume-control {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 33px; width: 33px; min-width: 33px; height: 33px;
  padding: 0; margin: 0; background: transparent; color: inherit;
  font: inherit; border-radius: 10px;
}
.topbar .actions .present-volume-control i { font-size: 15px; line-height: 1; }
.topbar .actions .present-volume-control:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
