:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Aurum Clean Bullion Palette (Template Match) */
  --bg-mist: #ffffff;
  --bg-surface: #eef1f6;
  --bg-cream: #fdf2d6;
  --bg-card-glass: #ffffff;
  --bg-card-subtle: #f7f8fb;
  --border-glass: #e2e6ee;
  --border-light: #e2e6ee;

  /* Navy-Charcoal Ink & Cobalt Action */
  --forest: #1546d4;
  --cobalt: #1546d4;
  --cobalt-hover: #1039b0;
  --cobalt-soft: #eef2ff;
  --ink-deep: #171d2b;
  --ink-primary: #1e2433;
  --ink-secondary: #646b7a;
  --ink-muted: #8b92a1;

  /* Deep Navy-Charcoal Feature Card */
  --forest-card: #171d2b;
  --forest-dot: rgba(255, 255, 255, 0.14);

  /* Bullion Gold, Silver & Status Accents */
  --gold: #b8840c;
  --gold-glow: #f4c446;
  --gold-bg: #fdf2d6;
  --gold-border: #f0d794;

  --emerald: #15803d;
  --emerald-bg: rgba(21, 128, 61, 0.12);
  --emerald-border: rgba(21, 128, 61, 0.25);
  --rose: #c53030;
  --rose-bg: rgba(197, 48, 48, 0.12);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-glass: 0 8px 24px rgba(23, 29, 43, 0.05);
  --shadow-card: 0 14px 30px rgba(23, 29, 43, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-mist);
  color: var(--ink-deep);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------- Top Commodity Ticker Stripe ---------------- */
.ticker-stripe {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.96);
  color: #f1f5f9;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: tickerMarquee 26s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.ticker-dot.gold {
  background: #f6cf6d;
  box-shadow: 0 0 8px #f6cf6d;
}

.ticker-dot.silver {
  background: #cbd5e1;
  box-shadow: 0 0 8px #ffffff;
}

.ticker-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* ---------------- Main Container (Responsive on Laptop & Mobile) ---------------- */
.site-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 100px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------------- Floating Frosted Glass Capsule Navbar ---------------- */
.app-header {
  position: sticky;
  top: 48px;
  z-index: 50;
  margin: 16px auto 26px;
  width: 100%;
  max-width: 1080px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(12, 38, 27, 0.06);
  padding: 8px 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-icon {
  width: 40px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-deep);
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-subtitle {
  display: none !important;
}

/* Desktop Navigation Links */
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(12, 38, 27, 0.04);
}

.nav-link {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.nav-link:hover {
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
  background: #ffffff;
  color: var(--ink-deep);
  box-shadow: 0 3px 10px rgba(12, 38, 27, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showroom-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-deep);
  box-shadow: 0 3px 12px rgba(12, 38, 27, 0.04);
}

.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-kf 2s infinite;
}

@keyframes pulse-kf {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.nav-signout-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid rgba(12, 38, 27, 0.12);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(12, 38, 27, 0.04);
  transition: all 0.2s ease;
}

.nav-signout-btn:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

/* ---------------- Mobile 3-line Hamburger Button ---------------- */
.mobile-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(12, 38, 27, 0.05);
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.mobile-hamburger-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.95);
}

.hamburger-line {
  display: block;
  width: 17px;
  height: 2px;
  background-color: var(--ink-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Dropdown Navigation Menu Drawer */
.mobile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(12, 38, 27, 0.08);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(12, 38, 27, 0.16);
  padding: 14px;
  z-index: 1000;
  animation: mobileSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-dropdown-menu.hidden {
  display: none !important;
}

@keyframes mobileSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-showroom {
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  margin-bottom: 10px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-deep);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
  background: var(--bg-surface);
}

.mobile-nav-item.active {
  background: var(--forest);
  color: #ffffff;
}

.mobile-nav-item.signout {
  color: var(--rose);
  border-top: 1px solid var(--border-light);
  margin-top: 6px;
  padding-top: 14px;
  border-radius: 0 0 14px 14px;
}

.icon-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(12, 38, 27, 0.04);
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  color: var(--ink-deep);
  transform: translateY(-1px);
}

/* ---------------- Main Content Layout Grid ---------------- */
.app-main {
  flex: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 880px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .desktop-nav-links {
    display: none !important;
  }
  .nav-signout-btn {
    display: none !important;
  }
  .showroom-status-pill {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
  }
}

/* ---------------- Hero Section: Zeni Card Tray ---------------- */
.portfolio-hero-card {
  background: var(--bg-card-subtle);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* The Navy-Charcoal Card Inside the Tray */
.zeni-inner-card {
  background: #171d2b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(23, 29, 43, 0.18) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 14px !important;
}

.zeni-inner-card::after {
  content: none;
}

.portfolio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.member-code-tag {
  font-family: var(--font-mono);
  color: #f4c446;
}

.showroom-flag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.portfolio-balance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa3b2 !important;
  margin-bottom: 6px;
  font-weight: 700;
}

.portfolio-balance-number {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink-deep);
  line-height: 1.1;
  margin-bottom: 8px;
}

.zeni-inner-card .portfolio-balance-number {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.portfolio-metal-worth {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tray Buttons */
.tray-buttons-row {
  display: flex;
  gap: 10px;
  padding: 2px 4px;
}

.tray-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tray-btn.ghost {
  background: #ffffff;
  color: var(--ink-deep);
  border: 1px solid var(--border-glass);
  box-shadow: none;
}

.tray-btn.ghost:hover {
  background: var(--bg-surface);
  color: var(--ink-deep);
}

.tray-btn.primary {
  background: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 70, 212, 0.22);
}

.tray-btn.primary:hover {
  background: var(--cobalt-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(21, 70, 212, 0.28);
}

/* ---------------- Dual Primary Action Buttons (Save or Redeem) ---------------- */
.hero-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-save-advance {
  background: var(--cobalt);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 15px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(21, 70, 212, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-save-advance:hover {
  transform: translateY(-1px);
  background: var(--cobalt-hover);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 70, 212, 0.28);
}

.btn-redeem-goods {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-deep);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 15px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(12, 38, 27, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-redeem-goods:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* ---------------- Commodity Board Card (Zeni Light Glass) ---------------- */
.commodity-board-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Ultra-Premium Personalized Gold & Sterling Silver Styles
   ========================================================================== */

/* Metal Selection Tabs */
.metal-selection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.metal-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(12, 38, 27, 0.1);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.metal-tab-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(12, 38, 27, 0.06);
}

.metal-tab-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.metal-tab-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.metal-tab-sub {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}

/* Active Ultra-Premium Glossy Gold Tab */
.metal-tab-btn.gold.active {
  background: linear-gradient(135deg, #fff3b0 0%, #ecd06c 25%, #cf9b22 65%, #9e7208 100%);
  border: 1.5px solid #fff5cc;
  color: #2b1800;
  box-shadow: 0 10px 28px rgba(207, 155, 34, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.metal-tab-btn.gold.active .metal-tab-icon {
  background: #2b1800;
  color: #ffe57f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.metal-tab-btn.gold.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Active Polished Sterling Silver Tab */
.metal-tab-btn.silver.active {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, #cbd5e1 65%, #94a3b8 100%);
  border: 1.5px solid #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(100, 116, 139, 0.35), inset 0 1px 3px rgba(255, 255, 255, 0.95);
}

.metal-tab-btn.silver.active .metal-tab-icon {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.metal-tab-btn.silver.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Inactive Icon States */
.metal-tab-btn.gold:not(.active) .metal-tab-icon {
  background: rgba(201, 142, 31, 0.15);
  color: #a87410;
}

.metal-tab-btn.silver:not(.active) .metal-tab-icon {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}

/* Personalized Metal Showcase Banners */
.metal-showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 14px 0 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.metal-showcase-card.gold-theme {
  background: linear-gradient(135deg, rgba(255, 253, 240, 0.98) 0%, rgba(254, 246, 218, 0.9) 100%);
  border: 1.5px solid rgba(220, 165, 30, 0.45);
  box-shadow: 0 10px 30px rgba(201, 142, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metal-showcase-card.silver-theme {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 10px 30px rgba(100, 116, 139, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Dashboard Asset Cards: Gold Bullion vs Silver Ingot */
.gold-bullion-card {
  background: linear-gradient(135deg, #fffdf2 0%, #fff8db 50%, #fdf0c0 100%) !important;
  border: 1.5px solid rgba(212, 160, 23, 0.35) !important;
  box-shadow: 0 12px 32px rgba(201, 142, 31, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  position: relative;
  overflow: hidden;
}

.gold-bullion-card::before {
  content: '24K BULLION';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(168, 116, 16, 0.35);
  pointer-events: none;
}

.silver-bullion-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.4) !important;
  box-shadow: 0 12px 32px rgba(100, 116, 139, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
  position: relative;
  overflow: hidden;
}

.silver-bullion-card::before {
  content: '999 FINE';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(100, 116, 139, 0.35);
  pointer-events: none;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.board-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.rate-card-item {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(12, 38, 27, 0.03);
  transition: all 0.2s ease;
}

.rate-card-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 38, 27, 0.06);
}

.rate-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metal-badge-sq {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(11, 36, 25, 0.08);
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.rate-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-deep);
}

.rate-item-sub {
  font-size: 11px;
  color: var(--ink-secondary);
}

.rate-item-price {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
}

/* ---------------- 11-Month Roadmap & Scheme Progress ---------------- */
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 26px 0 14px;
}

.section-heading {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scheme-progress-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glass);
}

.progress-track-container {
  margin: 16px 0 12px;
}

.progress-track-bg {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(11, 36, 25, 0.08);
  overflow: hidden;
}

.progress-track-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ink-deep);
  transition: width 0.4s ease;
}

.milestones-strip {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
}

.milestone-node {
  flex: 1;
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(11, 36, 25, 0.06);
  color: var(--ink-secondary);
  transition: all 0.2s ease;
}

.milestone-node.done {
  background: #10b981;
  color: #ffffff;
}

.milestone-node.current {
  background: #ffffff;
  color: var(--ink-deep);
  box-shadow: 0 3px 10px rgba(12, 38, 27, 0.15);
  font-weight: 800;
}

.milestone-node.m11 {
  background: var(--ink-deep);
  color: #ffffff;
  font-weight: 800;
}

/* ---------------- Form Controls, Inputs & Presets ---------------- */
label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
  margin: 14px 0 6px;
}

input, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(12, 38, 27, 0.12);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-deep);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(12, 38, 27, 0.03);
}

input:focus, select:focus {
  border-color: var(--ink-deep);
  box-shadow: 0 0 0 3px rgba(12, 38, 27, 0.08);
}

.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 10px 0 16px;
  scrollbar-width: none;
}

.amount-chip {
  flex: 1;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid rgba(12, 38, 27, 0.12);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.amount-chip:hover, .amount-chip.active {
  background: var(--ink-deep);
  color: #ffffff;
  border-color: var(--ink-deep);
}

/* Standard Buttons */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--cobalt);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(21, 70, 212, 0.18);
}

button:not(.ghost):not(.tray-btn):not(.nav-link):not(.nav-tab-item):not(.mobile-nav-item):not(.chip):not(.btn-redeem-goods):not(.icon-action-btn):not(.nav-signout-btn):not(.metal-tab-btn):hover:not(:disabled) {
  background: var(--cobalt-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

button.ghost {
  background: #ffffff;
  color: var(--ink-deep);
  border: 1px solid var(--border-glass);
  box-shadow: 0 2px 8px rgba(23, 29, 43, 0.04);
}

button.ghost:hover:not(:disabled) {
  background: var(--bg-surface);
  color: var(--ink-deep);
}

button.small {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: var(--radius-full);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(11, 36, 25, 0.08);
  color: var(--ink-deep);
  border: 1px solid rgba(11, 36, 25, 0.12);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill.ok {
  background: var(--emerald-bg);
  color: #065f46;
  border-color: var(--emerald-border);
}

.pill.bad {
  background: var(--rose-bg);
  color: #9f1239;
  border-color: var(--rose-bg);
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid rgba(12, 38, 27, 0.12);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-deep);
}

/* ---------------- Tables & Wrappers ---------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  scrollbar-width: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: rgba(11, 36, 25, 0.03);
  border-bottom: 1px solid rgba(12, 38, 27, 0.06);
}

td {
  padding: 14px;
  border-bottom: 1px solid rgba(12, 38, 27, 0.05);
  color: var(--ink-deep);
}

tr:last-child td {
  border-bottom: none;
}

/* Card Container */
.card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glass);
}

/* ---------------- Mobile Bottom Navigation Bar (Dark Pill Dock matching Template) ---------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  height: 62px;
  background: #171d2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 5px 6px;
  z-index: 50;
  box-shadow: 0 14px 36px rgba(23, 29, 43, 0.26);
}

@media (max-width: 880px) {
  .mobile-bottom-nav:not(.hidden) {
    display: flex;
  }
}

.mobile-bottom-nav.hidden {
  display: none;
}

.nav-tab-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  box-shadow: none;
}

.nav-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab-item.active {
  background: #ffffff;
  color: #171d2b;
}

.nav-tab-item.active:hover {
  background: #ffffff;
  color: #171d2b;
}

.nav-tab-label {
  font-size: 10px;
  font-weight: 700;
}

/* ---------------- Modal Overlay ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 36, 25, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(11, 36, 25, 0.18);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.wide {
  max-width: 960px;
  width: 94vw;
  padding: 30px;
}

/* Utility Helpers */
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row.between {
  justify-content: space-between;
}

.mute {
  color: var(--ink-secondary);
}

.ok {
  color: #065f46;
}

.bad {
  color: #9f1239;
}

/* ---------------- Floating Modern Toasts ---------------- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(12, 38, 27, 0.1);
  box-shadow: 0 16px 40px rgba(11, 36, 25, 0.16);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-deep);
  animation: slideToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
  max-width: 400px;
}

.toast-msg.success {
  border-left: 4px solid var(--emerald);
}

.toast-msg.error {
  border-left: 4px solid var(--rose);
}

.toast-msg.info {
  border-left: 4px solid var(--gold);
}

@keyframes slideToastIn {
  from { transform: translateY(-16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#dev {
  display: none !important;
}

#dev button {
  padding: 3px 10px;
  font-size: 10px;
  margin-left: 6px;
  background: #ffffff;
  color: var(--ink-deep);
  box-shadow: none;
  border: 1px solid rgba(12, 38, 27, 0.1);
  border-radius: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Debit Schedule Day Pills */
.debit-day-group {
  margin-bottom: 18px;
}

.debit-day-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.debit-day-pill {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.debit-day-pill:hover {
  border-color: var(--gold);
  color: var(--ink-deep);
}

.debit-day-pill.active {
  background: var(--emerald-bg);
  border-color: var(--emerald);
  color: var(--emerald);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

/* Showroom Bank Settlement Detector (Radar) */
.bank-radar-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.radar-signal-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ping-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  animation: radarPing 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.radar-center-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}

@keyframes radarPing {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.radar-ref-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(12, 38, 27, 0.06);
  font-size: 11px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.radar-ref-tag code {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
}

/* UPI App Grid & Checkout Badges */
.upi-apps-container {
  margin-bottom: 16px;
}
.upi-apps-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.upi-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.upi-app-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.upi-app-card:hover {
  border-color: var(--gold);
  background: rgba(200, 155, 60, 0.04);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.upi-app-card:active {
  transform: scale(0.98);
}
.upi-app-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upi-app-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-deep);
  line-height: 1.2;
}
.upi-app-hint {
  font-size: 10px;
  color: var(--ink-secondary);
  line-height: 1.2;
}
.upi-bhim-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  margin-top: 10px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.upi-bhim-card:hover {
  border-color: var(--gold);
  background: rgba(200, 155, 60, 0.04);
  transform: translateY(-1px);
}
.qr-divider {
  display: flex;
  align-items: center;
  margin: 18px 0 14px;
  gap: 12px;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.qr-divider::before, .qr-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
