:root {
  --navy-900: #0a192f;
  --navy-800: #112240;
  --navy-700: #1a365d;
  --navy-600: #234876;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-gold: 0 4px 20px rgba(245,158,11,0.25);
  --shadow-blue: 0 4px 20px rgba(59,130,246,0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ========== LAYOUT ========== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.main-content {
  flex: 1;
  margin-left: 0;
  transition: margin-left .3s ease;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .app-wrapper {
    height: 100vh;
  }
  .main-content {
    margin-left: 260px;
    padding-bottom: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
  }
  .mobile-bottom-nav { display: none !important; }
}

@media (max-width: 991.98px) {
  .sidebar-desktop { display: none !important; }
  .app-wrapper {
    display: block;
  }
  .main-content {
    overflow-y: visible;
    padding-bottom: 80px;
  }
}

/* ========== SIDEBAR (Desktop) ========== */
.sidebar-desktop {
  width: 260px;
  background: var(--navy-900);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.sidebar-brand-icon {
  width: 40px; height: 40px;
  background: var(--gold-500);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy-900);
  font-weight: 700;
}

.sidebar-brand-text {
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.sidebar-brand-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gold-400);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-menu { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; min-height: 0; }

.sidebar-menu li { margin-bottom: 4px; }

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.sidebar-menu a.active {
  background: var(--blue-600);
  box-shadow: var(--shadow-blue);
}

.sidebar-menu i { font-size: 18px; width: 24px; text-align: center; }

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 16px 8px;
}

.sidebar-footer {
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: var(--slate-500);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ========== TOPBAR ========== */
.topbar {
  background: white;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
  .topbar {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0 24px 24px;
    width: calc(100% - 48px);
  }
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-900);
}

.topbar-brand-icon {
  width: 36px; height: 36px;
  background: var(--gold-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--navy-900);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  font-size: 18px;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}

.topbar-btn:hover { background: var(--slate-200); color: var(--navy-900); }

.topbar-btn .badge {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== BOTTOM NAV (Mobile) ========== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--slate-200);
  z-index: 1030;
  padding: 6px 0 10px;
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  color: var(--slate-400);
  font-size: 11px;
  font-weight: 500;
  transition: all .2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.bottom-nav-item i { font-size: 22px; }

.bottom-nav-item.active {
  color: var(--blue-600);
}

.bottom-nav-item.active i { color: var(--blue-600); }

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ========== CARDS ========== */
.card-premium {
  background: white;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-gradient-navy {
  background: var(--navy-900);
  color: white;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-gradient-blue {
  background: var(--blue-600);
  color: white;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-blue);
  overflow: hidden;
}

.card-gradient-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

.card-gradient-emerald {
  background: var(--emerald-500);
  color: white;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 4px 20px rgba(16,185,129,0.25);
  overflow: hidden;
}

.card-body { padding: 20px; }

/* ========== BUTTONS ========== */
.btn-premium {
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border: none;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-premium:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-premium:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}

.btn-gold:hover { background: var(--gold-600); color: var(--navy-900); }

.btn-navy {
  background: var(--navy-900);
  color: white;
}

.btn-navy:hover { background: var(--navy-800); }

.btn-blue {
  background: var(--blue-600);
  color: white;
}

.btn-blue:hover { background: var(--blue-700); }

.btn-emerald {
  background: var(--emerald-500);
  color: white;
}

.btn-emerald:hover { background: var(--emerald-600); color: white; }

.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--gold-500);
  color: var(--gold-600);
}

.btn-outline-gold:hover { background: var(--gold-500); color: var(--navy-900); }

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

.btn-sm-premium { padding: 8px 16px; font-size: 13px; }

/* ========== BADGES ========== */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-vip {
  background: var(--gold-500);
  color: var(--navy-900);
}

.badge-success { background: rgba(16,185,129,0.15); color: var(--emerald-600); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--gold-600); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--blue-600); }

/* ========== FORMS ========== */
.form-premium .form-control,
.form-premium .form-select {
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  transition: all .2s ease;
  background: white;
}

.form-premium .form-control:focus,
.form-premium .form-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.form-premium .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 8px;
}

.input-group-premium .input-group-text {
  border: 2px solid var(--slate-200);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--slate-100);
  color: var(--slate-500);
  padding: 12px 16px;
}

.input-group-premium .form-control {
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ========== STAT CARDS ========== */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: none;
}

.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.stat-card-icon.icon-navy { background: rgba(10,25,47,0.1); color: var(--navy-900); }
.stat-card-icon.icon-blue { background: rgba(59,130,246,0.1); color: var(--blue-600); }
.stat-card-icon.icon-gold { background: rgba(245,158,11,0.1); color: var(--gold-600); }
.stat-card-icon.icon-emerald { background: rgba(16,185,129,0.1); color: var(--emerald-600); }

.stat-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.5px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ========== TRANSACTION CARDS ========== */
.tx-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: all .2s ease;
}

.tx-card:hover { box-shadow: var(--shadow-md); }

.tx-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tx-icon.income { background: rgba(16,185,129,0.1); color: var(--emerald-600); }
.tx-icon.expense { background: rgba(239,68,68,0.1); color: var(--danger); }
.tx-icon.pending { background: rgba(245,158,11,0.1); color: var(--gold-600); }

.tx-details { flex: 1; min-width: 0; }

.tx-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-meta {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 2px;
}

.tx-amount {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

.tx-amount.positive { color: var(--emerald-600); }
.tx-amount.negative { color: var(--danger); }

/* ========== PROGRESS ========== */
.progress-premium {
  height: 8px;
  border-radius: 100px;
  background: var(--slate-200);
  overflow: hidden;
}

.progress-premium .progress-bar {
  border-radius: 100px;
  background: var(--blue-600);
  transition: width .3s ease;
}

.progress-premium .progress-bar.gold { background: var(--gold-500); }
.progress-premium .progress-bar.emerald { background: var(--emerald-500); }

/* ========== MARQUEE / TICKER ========== */
.earning-ticker {
  background: var(--navy-900);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-wrap { display: flex; animation: ticker 30s linear infinite; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  flex-shrink: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== MODALS ========== */
.modal-premium .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.modal-premium .modal-header {
  border-bottom: 1px solid var(--slate-100);
  padding: 20px 24px;
}

.modal-premium .modal-body { padding: 24px; }

.modal-premium .modal-footer {
  border-top: 1px solid var(--slate-100);
  padding: 16px 24px;
}

/* ========== TOASTS ========== */
.toast-premium {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 16px;
}

.toast-premium .toast-header {
  border: none;
  padding: 0 0 8px;
  background: transparent;
}

.toast-premium .toast-body { padding: 0; }

/* ========== ACCORDION ========== */
.accordion-premium .accordion-item {
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-premium .accordion-button {
  border-radius: var(--radius-md) !important;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-800);
  background: white;
}

.accordion-premium .accordion-button:not(.collapsed) {
  background: var(--slate-50);
  color: var(--blue-600);
  box-shadow: none;
}

.accordion-premium .accordion-button:focus { box-shadow: none; border-color: transparent; }

.accordion-premium .accordion-body {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--slate-600);
}

/* ========== TABS ========== */
.nav-tabs-premium {
  border: none;
  gap: 8px;
  padding: 4px;
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs-premium .nav-link {
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
  white-space: nowrap;
  transition: all .2s ease;
}

.nav-tabs-premium .nav-link:hover { color: var(--slate-700); }

.nav-tabs-premium .nav-link.active {
  background: white;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

/* ========== EMPTY STATES ========== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--slate-400);
  margin: 0 auto 16px;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--slate-500);
}

/* ========== SKELETON ========== */
.skeleton {
  background: var(--slate-200);
  border-radius: var(--radius-md);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ========== LANDING PAGE ========== */
.landing-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy-900);
  position: relative;
  overflow-x: hidden;
}

.landing-page::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 600px; height: 600px;
  background: var(--blue-600);
  border-radius: 50%;
  opacity: .15;
  filter: blur(80px);
}

.landing-page::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -20%;
  width: 500px; height: 500px;
  background: var(--gold-500);
  border-radius: 50%;
  opacity: .1;
  filter: blur(80px);
}

.landing-content { position: relative; z-index: 1; }

.landing-hero {
  padding: 60px 24px 40px;
  text-align: center;
  color: white;
}

.landing-logo {
  width: 72px; height: 72px;
  background: var(--gold-500);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--navy-900);
  font-weight: 700;
  margin: 0 auto 24px;
}

.landing-hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.landing-hero p {
  font-size: 16px;
  color: var(--slate-300);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.landing-features {
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.landing-feature-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  color: white;
  transition: all .2s ease;
}

.landing-feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.landing-feature-card i {
  font-size: 28px;
  color: var(--gold-400);
  margin-bottom: 12px;
  display: block;
}

.landing-feature-card span {
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.landing-cta {
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

/* ========== AUTH CARDS ========== */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy-900);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  padding-top: 5vh;
  padding-bottom: 5vh;
  position: relative;
  overflow-x: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%;
  width: 400px; height: 400px;
  background: var(--blue-600);
  border-radius: 50%;
  opacity: .15;
  filter: blur(80px);
}

.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  width: 56px; height: 56px;
  background: var(--gold-500);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy-900);
  font-weight: 700;
  margin: 0 auto 20px;
}

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 28px;
}

/* ========== SCROLLING NOTICE ========== */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.notice-banner .notice-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: rgba(59,130,246,0.1);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notice-banner .notice-content {
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  color: var(--slate-600);
}

.notice-banner .notice-content marquee { display: block; }

/* CSS marquee fallback for browsers without <marquee> support */
.notice-scroll {
  display: flex;
  white-space: nowrap;
  animation: noticeScroll 20s linear infinite;
}

@keyframes noticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.notice-scroll:hover {
  animation-play-state: paused;
}

/* ========== VIP CARDS ========== */
.vip-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all .2s ease;
  position: relative;
}

.vip-card:hover { border-color: var(--gold-400); transform: translateY(-2px); }

.vip-card.active { border-color: var(--gold-500); }

.vip-card-header {
  padding: 20px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vip-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
}

.vip-card-body { padding: 20px; }

.vip-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 14px;
}

.vip-stat-row:last-child { border-bottom: none; }

.vip-stat-label { color: var(--slate-500); }

.vip-stat-value { font-weight: 600; color: var(--slate-800); }

.vip-card-footer { padding: 16px 20px; border-top: 1px solid var(--slate-100); }

/* ========== TASK CARDS ========== */
.task-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: all .2s ease;
}

.task-card:hover { box-shadow: var(--shadow-lg); }

.task-card.locked { opacity: .7; }

.task-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-number {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--blue-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.task-title { font-size: 15px; font-weight: 600; color: var(--slate-800); flex: 1; margin-left: 12px; }

.task-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-600);
  margin-bottom: 12px;
}

.task-reward {
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald-600);
  margin-bottom: 16px;
}

/* ========== QUICK ACTIONS GRID ========== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 575.98px) {
  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}

.quick-action-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action-item i {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.quick-action-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-700);
  text-align: center;
}

/* ========== PROFILE SECTION ========== */
.profile-card {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: var(--gold-500);
  border-radius: 50%;
  opacity: .15;
  filter: blur(40px);
}

.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy-900);
  font-weight: 700;
  border: 3px solid rgba(255,255,255,0.2);
}

/* ========== MENU LIST ========== */
.menu-list {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-100);
  transition: all .2s ease;
  cursor: pointer;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:hover { background: var(--slate-50); }

.menu-item-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.menu-item-icon.icon-navy { background: rgba(10,25,47,0.08); color: var(--navy-900); }
.menu-item-icon.icon-blue { background: rgba(59,130,246,0.08); color: var(--blue-600); }
.menu-item-icon.icon-gold { background: rgba(245,158,11,0.08); color: var(--gold-600); }
.menu-item-icon.icon-emerald { background: rgba(16,185,129,0.08); color: var(--emerald-600); }

.menu-item-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--slate-800); }

.menu-item-arrow {
  color: var(--slate-400);
  font-size: 14px;
}

/* ========== RECHARGE / WITHDRAW ========== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--slate-200);
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: rgba(59,130,246,0.05);
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--slate-200);
  background: white;
  cursor: pointer;
  transition: all .2s ease;
  margin-bottom: 12px;
}

.payment-card:hover,
.payment-card.active {
  border-color: var(--blue-600);
  background: rgba(59,130,246,0.03);
}

.payment-card input[type="radio"] { accent-color: var(--blue-600); }

.payment-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--slate-600);
  flex-shrink: 0;
}

/* ========== WEALTH CENTER ========== */
.wealth-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.wealth-card-header {
  padding: 20px;
  background: var(--navy-900);
  color: white;
}

.wealth-card-body { padding: 20px; }

.countdown-timer {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.countdown-item {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: center;
  min-width: 56px;
}

.countdown-item .value {
  font-size: 20px;
  font-weight: 700;
  display: block;
}

.countdown-item .label {
  font-size: 10px;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== WISH BOOK / REWARDS ========== */
.reward-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all .2s ease;
}

.reward-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.reward-image {
  height: 160px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--slate-300);
}

.reward-body { padding: 16px; }

.reward-title { font-size: 15px; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }

.reward-points { font-size: 13px; color: var(--slate-500); margin-bottom: 12px; }

.reward-value { font-size: 18px; font-weight: 700; color: var(--emerald-600); margin-bottom: 12px; }

/* ========== REFERRAL ========== */
.referral-code-box {
  background: var(--slate-100);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.referral-code {
  flex: 1;
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 1px;
}

/* ========== TEAM REPORT ========== */
.team-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.team-user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--slate-600);
  flex-shrink: 0;
}

.team-user-info { flex: 1; }

.team-user-phone { font-size: 14px; font-weight: 600; color: var(--slate-800); }

.team-user-meta { font-size: 12px; color: var(--slate-400); margin-top: 2px; }

/* ========== COMPANY PROFILE ========== */
.company-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--slate-200);
}

.company-section:last-child { border-bottom: none; }

.company-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-section-title i { color: var(--gold-600); }

/* ========== HELP CENTER ========== */
.faq-search {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

/* ========== POSITION CARDS ========== */
.position-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: all .2s ease;
}

.position-card:hover { box-shadow: var(--shadow-lg); }

.position-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.position-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ========== UPDATES ========== */
.update-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: all .2s ease;
  border-left: 4px solid var(--blue-600);
}

.update-card:hover { box-shadow: var(--shadow-lg); }

.update-card.warning { border-left-color: var(--gold-500); }
.update-card.success { border-left-color: var(--emerald-500); }

.update-date {
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 8px;
}

.update-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.update-text {
  font-size: 14px;
  color: var(--slate-600);
}

/* ========== CERTIFICATE ========== */
.certificate-frame {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 32px 24px;
  text-align: center;
  border: 8px solid var(--gold-500);
  position: relative;
}

.certificate-frame::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.certificate-seal {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--navy-900);
  margin: 0 auto 20px;
}

/* ========== PAGE SECTIONS ========== */
.page-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header .back-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--slate-700);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
}

.page-content { padding: 16px; }

@media (min-width: 992px) {
  .page-content { padding: 24px; }
}

/* ========== DAILY SUMMARY ========== */
.daily-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.daily-summary-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.daily-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
}

.daily-summary-label {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp .5s ease forwards; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right { animation: slideInRight .4s ease forwards; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ========== UTILITIES ========== */
.text-gold { color: var(--gold-500) !important; }
.text-emerald { color: var(--emerald-500) !important; }
.text-blue { color: var(--blue-600) !important; }
.text-navy { color: var(--navy-900) !important; }
.text-slate { color: var(--slate-500) !important; }

.bg-navy { background: var(--navy-900) !important; }
.bg-blue { background: var(--blue-600) !important; }
.bg-gold { background: var(--gold-500) !important; }
.bg-emerald { background: var(--emerald-500) !important; }

.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }

.rounded-xl { border-radius: var(--radius-xl) !important; }

.shadow-premium { box-shadow: var(--shadow-lg) !important; }

.w-100 { width: 100% !important; }

/* Hide scrollbar on mobile bottom nav for Firefox */
.nav-tabs-premium { scrollbar-width: none; }
.nav-tabs-premium::-webkit-scrollbar { display: none; }

/* ========== MOBILE RESPONSIVE FIXES ========== */
@media (max-width: 575.98px) {
  .page-content { padding: 12px; }
  .page-header { padding: 12px; }
  .card-body { padding: 16px; }
  .stat-card { padding: 16px; }
  .stat-card-icon { width: 40px; height: 40px; font-size: 20px; }
  .stat-card-value { font-size: 20px; }
  .task-card { padding: 16px; }
  .task-title { font-size: 14px; }
  .vip-card-header { padding: 16px; }
  .vip-card-body { padding: 16px; }
  .vip-card-name { font-size: 16px; }
  .menu-item { padding: 14px 16px; gap: 12px; }
  .menu-item-icon { width: 36px; height: 36px; font-size: 16px; }
  .tx-card { padding: 12px; gap: 12px; }
  .tx-icon { width: 40px; height: 40px; font-size: 18px; }
  .position-card { padding: 20px; }
  .update-card { padding: 16px; }
  .certificate-frame { padding: 24px 16px; }
  .auth-card { padding: 24px 16px; }
  .landing-hero { padding: 40px 16px 32px; }
  .landing-hero h1 { font-size: 24px; }
  .landing-features { padding: 0 12px 32px; gap: 8px; }
  .landing-feature-card { padding: 16px 8px; }
  .quick-action-item { padding: 12px 4px; }
  .quick-action-item i { width: 40px; height: 40px; font-size: 18px; }
  .quick-action-item span { font-size: 10px; }
  .daily-summary-item { padding: 12px; }
  .daily-summary-value { font-size: 18px; }
  .amount-grid { gap: 8px; }
  .amount-btn { padding: 10px 4px; font-size: 12px; }
  .payment-card { padding: 12px; gap: 12px; }
  .referral-code-box { padding: 12px; }
  .referral-code { font-size: 14px; }
  .countdown-item { padding: 8px 10px; min-width: 48px; }
  .countdown-item .value { font-size: 16px; }
  .reward-image { height: 120px; font-size: 36px; }
  .reward-body { padding: 12px; }
  .reward-title { font-size: 13px; }
  .reward-value { font-size: 16px; }
  .team-user-row { padding: 12px; }
  .wealth-card-header { padding: 16px; }
  .wealth-card-body { padding: 16px; }
  .notice-banner { padding: 10px 12px; }
  .profile-card { padding: 20px; }
  .card-gradient-navy { padding: 20px !important; }
  .card-gradient-gold { padding: 20px !important; }
  .card-gradient-emerald { padding: 20px !important; }
  .card-premium { padding: 16px !important; }
  .form-premium .form-control,
  .form-premium .form-select { padding: 10px 12px; }
  .input-group-premium .input-group-text { padding: 10px 12px; }
  .btn-premium { padding: 10px 20px; }
  .btn-sm-premium { padding: 6px 12px; font-size: 12px; }
  .badge-premium { padding: 4px 10px; font-size: 11px; }
}
