/* ===================================================================
   APEX CAPITAL ASSET MANAGEMENT — INSTITUTIONAL FINTECH DESIGN SYSTEM
   Professional Banking & Asset Protocol Aesthetic (Stripe/Revolut/Groww caliber)
   =================================================================== */

:root {
  /* Corporate Palette */
  --bg-app: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #131d31;
  --bg-card-hover: #17243d;
  --bg-elevated: #1e293b;
  --bg-subtle: #0b1120;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: #3b82f6;

  /* Institutional Accents */
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-soft: rgba(37, 99, 235, 0.12);

  --emerald-success: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);

  --amber-warning: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);

  --crimson-danger: #ef4444;
  --crimson-soft: rgba(239, 68, 68, 0.12);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, 0.5);
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

body {
  width: 100%;
  max-width: 100vw;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 72px; /* Reserved space for mobile bottom app bar */
}

button, a, input, select, .btn, .mob-nav-item {
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Ultra-lightweight background grid without GPU mask lag */
.bg-grid-mesh {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  opacity: 0.7;
}

/* ==================== INSTITUTIONAL TOPBAR ==================== */
.top-notice-bar {
  background: #080c14;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  z-index: 101;
}
.notice-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.security-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lock-icon {
  color: var(--emerald-success);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #090e18;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.auth-box {
  display: flex;
  gap: 8px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-sm);
}
.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1e3a8a;
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-meta {
  display: flex;
  flex-direction: column;
}
.user-uname {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.user-bal {
  font-size: 0.72rem;
  color: var(--emerald-success);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px 4px;
}
.logout-btn:hover {
  color: var(--crimson-danger);
}

/* ==================== TICKER ==================== */
.live-ticker-wrap {
  background: #080c14;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  height: 34px;
  font-size: 0.78rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.ticker-label {
  padding: 0 14px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #080c14;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.ticker-content {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
  padding-left: 20px;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.ticker-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.ticker-badge.deposit {
  background: var(--emerald-soft);
  color: var(--emerald-success);
}
.ticker-badge.withdraw {
  background: var(--primary-blue-soft);
  color: #60a5fa;
}
.ticker-badge.profit {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

/* ==================== MAIN CONTENT & SECTIONS ==================== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 16px 80px;
  position: relative;
  z-index: 1;
}

.view-section {
  display: none;
}
.view-section.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 30px;
}
.section-header.text-center {
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #60a5fa;
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
  line-height: 1.25;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-top: 8px;
  max-width: 650px;
}
.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.2;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-blue-hover);
}
.btn-success {
  background: var(--emerald-success);
  color: #fff;
}
.btn-success:hover {
  background: #059669;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}
.btn-admin-accent {
  background: #d97706;
  color: #fff;
}
.btn-admin-accent:hover {
  background: #b45309;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
}
.btn-block {
  width: 100%;
}

/* ==================== VIEW: LANDING ==================== */
.hero-wrapper {
  padding: 24px 0 36px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;
  flex-wrap: wrap;
}
.hero-headline {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #fff;
  word-break: break-word;
}
.hero-headline span {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Institutional Banking Bar */
.trust-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
  margin-bottom: 40px;
}
.trust-title {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  font-weight: 700;
}
.bank-partner-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bank-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease;
}
.stat-box:hover {
  border-color: var(--border-light);
}
.stat-box-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-box-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-box-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}
.arch-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.arch-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.arch-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==================== VIEW: PLANS ==================== */
.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.5);
}
.plan-card.featured {
  border-color: #2563eb;
  background: linear-gradient(180deg, #162444, var(--bg-card) 60%);
}
.plan-badge-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  padding-right: 70px; /* Prevent overlap with badge */
}
.plan-horizon {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.plan-rate-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.plan-rate-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.plan-rate-sub {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.plan-table-metrics {
  margin-bottom: 20px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.metric-lbl {
  color: var(--text-secondary);
}
.metric-val {
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.plan-features-list {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.plan-features-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features-list li::before {
  content: '✓';
  color: var(--emerald-success);
  font-weight: 800;
}

/* ==================== VIEW: CALCULATOR ==================== */
.calc-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
}
.calc-inputs-pane {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
}
.calc-outputs-pane {
  background: #0d1424;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 12px 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
  cursor: pointer;
}
.calc-result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}
.calc-result-item.total-row {
  border-top: 2px solid var(--border-light);
  border-bottom: none;
  margin-top: 14px;
  padding-top: 14px;
}

/* ==================== VIEW: DASHBOARD ==================== */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.dash-actions-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.pcard-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pcard-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.pcard-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.panel-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.referral-widget {
  background: linear-gradient(135deg, #101c36, var(--bg-card));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.ref-input-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

/* ==================== TABLES ==================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  min-width: 550px;
}
.data-table th {
  background: #090e1a;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.status-badge.approved {
  background: var(--emerald-soft);
  color: var(--emerald-success);
}
.status-badge.pending {
  background: var(--amber-soft);
  color: var(--amber-warning);
}
.status-badge.rejected {
  background: var(--crimson-soft);
  color: var(--crimson-danger);
}
.status-badge.active {
  background: var(--primary-blue-soft);
  color: #60a5fa;
}

/* ==================== MODALS & POPUPS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-backdrop.active {
  display: flex;
}
.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalEnter 0.2s ease-out;
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.modal-header-block {
  margin-bottom: 18px;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
}

.payment-dest-card {
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}
.qr-frame {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.qr-grid-sim {
  width: 60px;
  height: 60px;
  background-image: radial-gradient(#000 35%, transparent 35%);
  background-size: 8px 8px;
}
.qr-caption {
  font-size: 0.5rem;
  font-weight: 800;
  color: #000;
  position: absolute;
  bottom: 2px;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  left: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 769px) {
  .toast-container {
    left: auto;
    bottom: 24px;
    right: 24px;
    max-width: 380px;
  }
}
.toast {
  background: #111827;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastSlide 0.25s ease-out;
}
.toast.success { border-left: 3px solid var(--emerald-success); }
.toast.error { border-left: 3px solid var(--crimson-danger); }
.toast.info { border-left: 3px solid var(--primary-blue); }
@keyframes toastSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #070a12;
  padding: 36px 0 28px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer-brand h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.footer-disclaimer {
  font-size: 0.72rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  color: var(--text-tertiary);
}

/* ==================== MOBILE APP BOTTOM NAVIGATION BAR ==================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #090e18;
  border-top: 1px solid var(--border-subtle);
  z-index: 150;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
}

.mob-nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  flex: 1;
  text-decoration: none;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.mob-nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
}
.mob-nav-item.active {
  color: #60a5fa;
}
.mob-nav-item.active .mob-nav-label {
  font-weight: 700;
  color: #93c5fd;
}
.mob-nav-item:active {
  transform: scale(0.95);
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 992px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .calc-inputs-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .footer-row {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .nav-links {
    display: none; /* Replaced by native mobile bottom bar */
  }
  .top-notice-bar {
    display: none; /* Hide top notice on mobile to maximize viewport real estate */
  }

  /* Form inputs 16px to prevent iOS Safari auto-zoom bug */
  input.form-control, 
  select.form-control, 
  textarea.form-control {
    font-size: 16px !important;
  }

  .main-content {
    padding: 16px 14px 40px;
  }

  .hero-wrapper {
    padding: 12px 0 24px;
  }
  .hero-headline {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    letter-spacing: -0.5px;
  }
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .bank-partner-grid {
    gap: 8px;
  }
  .bank-tag {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .referral-widget {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .ref-input-wrap {
    width: 100%;
    max-width: none;
  }

  .dashboard-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .dash-actions-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dash-actions-group .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .site-footer {
    padding: 28px 0 calc(90px + env(safe-area-inset-bottom, 0px));
  }
  .footer-row {
    flex-direction: column;
    gap: 24px;
  }
  .footer-brand {
    max-width: 100% !important;
  }
}

/* Phones & Compact Mobile Viewports (<= 580px) */
@media (max-width: 580px) {
  .nav-container {
    padding: 0 12px;
  }
  .brand-sub {
    display: none; /* Hide subtitle so brand fits neatly on tiny screens */
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  .auth-box {
    gap: 6px;
  }
  .auth-box .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  .user-profile-badge {
    padding: 4px 8px;
    gap: 6px;
  }
  .user-bal {
    display: none; /* Clean navbar on small phone, full balance is in dashboard */
  }

  /* 2x2 Grid for Mobile Metric Cards */
  .stats-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-box {
    padding: 14px 12px;
  }
  .stat-box-label {
    font-size: 0.68rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .stat-box-number {
    font-size: 1.25rem;
  }
  .stat-box-sub {
    font-size: 0.65rem;
  }

  /* 2x2 Grid for Dashboard Portfolio Cards */
  .portfolio-overview-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .portfolio-card {
    padding: 14px 12px;
  }
  .pcard-lbl {
    font-size: 0.65rem;
  }
  .pcard-val {
    font-size: 1.2rem;
  }
  .pcard-sub {
    font-size: 0.65rem;
  }

  /* 1 Column for Architecture and Plans */
  .architecture-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .arch-card {
    padding: 16px;
  }

  .plans-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-card {
    padding: 20px 16px;
  }

  /* Modern FinTech Native Bottom Sheet Modal on Mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-left: none;
    border-right: none;
    border-bottom: none;
    max-height: 88vh;
    padding: 22px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .payment-dest-card > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .payment-dest-card .qr-frame {
    margin-bottom: 10px;
  }
  .payment-dest-card input.form-control {
    text-align: center;
  }

  .calc-inputs-pane, .calc-outputs-pane {
    padding: 18px 14px;
  }
}

/* Utilities */
.hidden { display: none !important; }
.text-success { color: var(--emerald-success); }
.text-bold { font-weight: 700; }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-success);
  display: inline-block;
}


/* ==================== PWA & DASHBOARD ENHANCEMENTS ==================== */

/* Empty Plans State */
.empty-plans-state {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1.5px dashed rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 44px 20px;
  text-align: center;
  margin: 18px 0;
  backdrop-filter: blur(10px);
}

.eps-icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4));
}

.eps-title {
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.eps-text {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto 22px auto;
  line-height: 1.6;
}

/* Active Investment Cards Grid */
.active-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.active-plan-card-item {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.active-plan-card-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.6);
}

.apc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.apc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.apc-tag {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.apc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.apc-stat-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.apc-stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.apc-stat-val.profit {
  color: #22c55e;
}

.apc-progress-wrap {
  margin-top: 10px;
}

.apc-progress-lbl-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.apc-progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.apc-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* PWA Install Banner in Dashboard */
.pwa-install-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(29, 78, 216, 0.25) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.pib-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pib-icon {
  font-size: 2rem;
}

.pib-left strong {
  color: #fff;
  font-size: 0.98rem;
  display: block;
}

.pib-left p {
  color: #94a3b8;
  font-size: 0.82rem;
  margin: 2px 0 0 0;
}

/* User Greeting Header on Dashboard */
.user-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.udh-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.udh-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.udh-info h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.udh-vip-badge {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.udh-uid {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Bottom App Navigation for Mobile */
.bottom-app-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px;
  }
  .bottom-app-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 16, 31, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
  }
  .ban-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.68rem;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
    padding: 6px 0;
  }
  .ban-item.active, .ban-item:hover {
    color: #60a5fa;
  }
  .ban-item svg {
    width: 20px;
    height: 20px;
  }
}


/* ==================== ULTRA-LUXURY APP DASHBOARD DESIGN ==================== */

/* Hide public navbar & ticker when logged in */
body.logged-in .unauth-only {
  display: none !important;
}

body.logged-in .auth-only {
  display: flex !important;
}

body.logged-in .live-ticker-wrap {
  display: none !important;
}

/* Dedicated App Navbar for Logged In User */
.app-logged-header {
  display: none;
  background: rgba(10, 16, 31, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  justify-content: space-between;
  align-items: center;
}

body.logged-in .app-logged-header {
  display: flex !important;
}

body.logged-in .navbar {
  display: none !important;
}

.alh-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alh-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.alh-meta h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alh-badge {
  background: linear-gradient(90deg, #f59e0b, #eab308);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.alh-uid {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
}

.alh-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alh-install-pill {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.alh-logout-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==================== LUXURY VIP WEALTH CARD ==================== */
.vip-wealth-card {
  background: radial-gradient(circle at 100% 0%, #1e293b 0%, #0f172a 50%, #030712 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
  margin-bottom: 24px;
}

.vip-wealth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.vwc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.vwc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vwc-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.vwc-chip::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.vwc-balance-section {
  margin-bottom: 20px;
}

.vwc-balance-lbl {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vwc-balance-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 4px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.vwc-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.vwc-metric-item {
  text-align: center;
}

.vwc-metric-lbl {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.vwc-metric-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}

.vwc-metric-val.green {
  color: #10b981;
}

/* Two Big Glow Action Buttons */
.vwc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vwc-btn-recharge {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s ease;
}

.vwc-btn-recharge:active {
  transform: scale(0.98);
}

.vwc-btn-withdraw {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease;
}

.vwc-btn-withdraw:active {
  transform: scale(0.98);
}

/* ==================== QUICK APP SERVICES 5-GRID ==================== */
.app-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 26px;
  padding: 0 4px;
}

.app-service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
}

.app-service-btn:active {
  transform: scale(0.92);
}

.asb-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.asb-icon-wrap.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
  border-color: rgba(245, 158, 11, 0.4);
}

.asb-icon-wrap.blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(29, 78, 216, 0.3));
  border-color: rgba(37, 99, 235, 0.4);
}

.asb-icon-wrap.purple {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(126, 34, 206, 0.3));
  border-color: rgba(147, 51, 234, 0.4);
}

.asb-icon-wrap.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
  border-color: rgba(16, 185, 129, 0.4);
}

.asb-icon-wrap.cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.3));
  border-color: rgba(6, 182, 212, 0.4);
}

/* ==================== VIBRANT ACTIVE PLANS / EMPTY STATE ==================== */
.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dash-section-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsh-pill {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* High-Contrast Empty State Box */
.vibrant-empty-plan-box {
  background: linear-gradient(145deg, rgba(20, 30, 48, 0.8) 0%, rgba(10, 16, 31, 0.95) 100%);
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.vep-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 16px rgba(245, 158, 11, 0.3));
}

.vep-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.vep-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 440px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.vep-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease;
}

.vep-btn:active {
  transform: scale(0.96);
}
