/* ==========================================================================
   SMART TRADING COMPANY - TWOHABITS / TWINKLE DESIGN SYSTEM
   Direct Visual Implementation of Reference Image (Peaceful Investing / Mindful Wealth)
   Characteristics:
   - Pristine, luminous off-white canvas (#fafbfe / #ffffff)
   - Atmospheric soft radial pastel auras (peach/apricot glow top-right, sky cyan glow left)
   - Large squircle rounded corners (28px - 32px radius)
   - Distinctive 5-Card Signature System (Cyan, Obsidian, Coral Pink, Royal Blue, Warm Amber)
   - Deep diffused colored glow drop-shadows matching each card's hue
   - Layered floating frosted translucent cards with gold microchip & embossed numbering
   - Ultra-clean typography (Plus Jakarta Sans), high-contrast black display headings (-1.5px tracking)
   - Rounded pill buttons (black solid pill & white outline pill with 1.5px dark border)
   ========================================================================== */

:root {
  /* Canvas & Base Surfaces (Soft, Luminous Off-White) */
  --bg-canvas: #fafbfe;
  --bg-main: #fafbfe;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.82);
  --bg-subtle: #f4f5f8;
  --bg-elevated: #ffffff;

  /* Ambient Pastel Radial Aura Gradients (Directly From Reference Image) */
  --aura-peach: rgba(255, 186, 142, 0.32);
  --aura-cyan: rgba(162, 226, 255, 0.36);
  --aura-lavender: rgba(224, 234, 255, 0.30);
  --aura-blush: rgba(255, 202, 212, 0.22);

  /* Typography Palette */
  --text-primary: #121417;
  --text-secondary: #4a5160;
  --text-muted: #717680;
  --text-light: #9aa0ac;

  /* The 5 Iconic Reference Card Colors (Fintech-Calibrated) */
  /* Card 1: Cerulean Sky Cyan */
  --card-cyan: #17bcf0;
  --card-cyan-grad: linear-gradient(175deg, #1fcbf9 0%, #0db2e8 100%);
  --card-cyan-glow: 0 22px 42px -10px rgba(23, 188, 240, 0.46), 0 8px 18px -4px rgba(23, 188, 240, 0.22);
  --card-cyan-glow-hover: 0 30px 56px -8px rgba(23, 188, 240, 0.58), 0 12px 24px -4px rgba(23, 188, 240, 0.28);

  /* Card 2: Obsidian Jet Black */
  --card-black: #181b21;
  --card-black-grad: linear-gradient(175deg, #22262f 0%, #131519 100%);
  --card-black-glow: 0 22px 42px -10px rgba(20, 23, 29, 0.40), 0 8px 18px -4px rgba(20, 23, 29, 0.18);
  --card-black-glow-hover: 0 30px 56px -8px rgba(20, 23, 29, 0.54), 0 12px 24px -4px rgba(20, 23, 29, 0.24);

  /* Card 3: Coral Strawberry Pink */
  --card-coral: #ff6268;
  --card-coral-grad: linear-gradient(175deg, #ff7278 0%, #f94e54 100%);
  --card-coral-glow: 0 22px 42px -10px rgba(255, 98, 104, 0.46), 0 8px 18px -4px rgba(255, 98, 104, 0.22);
  --card-coral-glow-hover: 0 30px 56px -8px rgba(255, 98, 104, 0.58), 0 12px 24px -4px rgba(255, 98, 104, 0.28);

  /* Card 4: Royal Electric Blue */
  --card-blue: #2365eb;
  --card-blue-grad: linear-gradient(175deg, #3074f7 0%, #1756de 100%);
  --card-blue-glow: 0 22px 42px -10px rgba(35, 101, 235, 0.46), 0 8px 18px -4px rgba(35, 101, 235, 0.22);
  --card-blue-glow-hover: 0 30px 56px -8px rgba(35, 101, 235, 0.58), 0 12px 24px -4px rgba(35, 101, 235, 0.28);

  /* Card 5: Warm Tangerine Amber */
  --card-amber: #f7941d;
  --card-amber-grad: linear-gradient(175deg, #fba42a 0%, #ef820f 100%);
  --card-amber-glow: 0 22px 42px -10px rgba(247, 148, 29, 0.46), 0 8px 18px -4px rgba(247, 148, 29, 0.22);
  --card-amber-glow-hover: 0 30px 56px -8px rgba(247, 148, 29, 0.58), 0 12px 24px -4px rgba(247, 148, 29, 0.28);

  /* Professional Fintech-Grade Accents */
  --primary-blue: #2365eb;
  --primary-blue-dark: #1953d6;
  --primary-blue-light: #eef4ff;

  --accent-mint: #10b981;
  --accent-mint-light: #ecfdf5;
  --accent-danger: #ef4444;
  --accent-danger-light: #fef2f2;
  --accent-gold: #f59e0b;

  --mark-circle-red: #ff3b30;
  --mark-circle-orange: #ff9500;

  /* Geometry & Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  /* Borders */
  --border-subtle: rgba(18, 20, 23, 0.05);
  --border-card: rgba(18, 20, 23, 0.07);
  --border-glass: rgba(255, 255, 255, 0.88);
  --border-dark-pill: #181b20;

  /* Multi-Layered Soft Ambient Shadows */
  --shadow-xs: 0 1px 3px rgba(18, 20, 23, 0.03);
  --shadow-sm: 0 4px 12px -2px rgba(18, 20, 23, 0.04);
  --shadow-md: 0 12px 26px -6px rgba(18, 20, 23, 0.06);
  --shadow-lg: 0 22px 46px -10px rgba(18, 20, 23, 0.08);
  --shadow-xl: 0 32px 64px -14px rgba(18, 20, 23, 0.12);
  --shadow-floating-glass: 0 24px 50px -10px rgba(18, 20, 23, 0.12), 0 8px 20px -4px rgba(18, 20, 23, 0.05);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Base Canvas & Typography (Peaceful, Mindful, Airy)
   ========================================================================== */
html, body {
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Ambient Background Glows */
.twinkle-bg {
  background-color: #fafbfe;
  background-image: 
    radial-gradient(at 15% 10%, rgba(255, 186, 142, 0.45) 0px, transparent 45%),
    radial-gradient(at 85% 15%, rgba(162, 226, 255, 0.50) 0px, transparent 50%),
    radial-gradient(at 75% 45%, rgba(255, 202, 212, 0.35) 0px, transparent 45%),
    radial-gradient(at 20% 75%, rgba(224, 234, 255, 0.40) 0px, transparent 50%);
  background-attachment: fixed;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Frosted Card */
.glass-frosted {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -15px rgba(20, 30, 60, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 3D Soft Shadow Card */
.twinkle-card {
  border-radius: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12);
}
.twinkle-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}

/* Realistic Deep Charcoal to Slate-900 Fintech Card */
.bank-glass-card {
  background: linear-gradient(135deg, #1a1e27 0%, #131720 50%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Soft Ambient Radial Pastel Lights in Background (Exact match to Reference Image) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -999;
  pointer-events: none;
  background-color: #fafbfe;
  background-image: 
    radial-gradient(at 15% 10%, rgba(255, 186, 142, 0.45) 0px, transparent 45%),
    radial-gradient(at 85% 15%, rgba(162, 226, 255, 0.50) 0px, transparent 50%),
    radial-gradient(at 75% 45%, rgba(255, 202, 212, 0.35) 0px, transparent 45%),
    radial-gradient(at 20% 75%, rgba(224, 234, 255, 0.40) 0px, transparent 50%);
  transform: translateZ(0);
}

.grid-bg {
  background: transparent !important;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-blue-dark);
  text-decoration: none;
}

/* Global Headings Reset */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Secondary muted text */
.text-muted {
  color: var(--text-muted) !important;
}

/* ==========================================================================
   Navigation Bar (Frosted Glass, Twinkle-Inspired Clean Brand Mark)
   ========================================================================== */
.fin-navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 14px 0 !important;
  transition: all 0.3s ease;
  z-index: 1030;
}

/* Brand Logo Mark (Two Overlapping Circles - Mastercard / Twinkle Reference) */
.twinkle-brand-mark {
  position: relative;
  width: 32px;
  height: 22px;
  display: inline-flex;
  align-items: center;
}

.twinkle-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  top: 1px;
}

.twinkle-circle.circle-red {
  left: 0;
  background: var(--mark-circle-red);
  z-index: 1;
}

.twinkle-circle.circle-orange {
  left: 11px;
  background: var(--mark-circle-orange);
  opacity: 0.9;
  mix-blend-mode: multiply;
  z-index: 2;
}

.brand-orbital-logo {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a18 0%, #ff3b30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
}

.orbital-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.orbital-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.05;
}

.brand-accent {
  color: var(--primary-blue);
}

.brand-caption-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1px;
  text-transform: none;
  line-height: 1.1;
  margin-top: 1px;
}

.fin-nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px !important;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  margin: 0 2px;
}

.fin-nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--bg-subtle);
}

.fin-nav-link.active {
  color: var(--primary-blue) !important;
  background: var(--primary-blue-light);
  font-weight: 700;
}

.fin-navbar-toggler {
  border: none !important;
  outline: none !important;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.fin-navbar-toggler i {
  color: var(--text-primary) !important;
}

.header-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
}

.header-user-name {
  color: var(--text-primary) !important;
}

/* Primary Action Buttons */
.btn-neon,
.btn-primary-ref,
.btn-dark-fintech {
  background: var(--accent-dark) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.btn-neon:hover,
.btn-primary-ref:hover,
.btn-dark-fintech:hover {
  background: #1e293b !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.btn-ghost-dark,
.btn-outline-ref,
.btn-outline-fintech {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.btn-ghost-dark:hover,
.btn-outline-ref:hover,
.btn-outline-fintech:hover {
  background: var(--bg-subtle) !important;
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text-primary) !important;
  transform: translateY(-1px);
}

.btn-neon-sm {
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
}

.fin-admin-icon {
  color: var(--text-light) !important;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.fin-admin-icon:hover {
  color: var(--primary-blue) !important;
}

/* Live Metrics Ticker Bar */
.cyber-live-ticker {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 9px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: nowrap;
}

.cyber-ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cyber-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cyber-ticker-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

.cyber-ticker-item .text-neon {
  color: var(--primary-blue) !important;
  font-weight: 700;
}

.cyber-ticker-sep {
  color: rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   Hero Section & Floating Composition (Matches Reference Image 3)
   ========================================================================== */
.cyber-guest-hero,
.fin-guest-hero {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cyber-hero-badge,
.fin-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px;
}

.fin-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  display: inline-block;
}

.cyber-hero-title,
.fin-hero-display-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1.2px;
  line-height: 1.12;
}

.cyber-hero-title span,
.fin-hero-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 60%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyber-hero-sub,
.fin-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.65;
}

.cyber-hero-stat-pill {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}

.cyber-hero-stat-pill .text-neon {
  color: var(--primary-blue) !important;
}

/* Floating Fintech Cards Visuals in Hero (From Reference Image 3) */
.fin-hero-composition {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fin-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.fin-glow-peach {
  width: 240px;
  height: 240px;
  background: var(--aura-peach);
  filter: blur(50px);
  top: 5px;
  right: 15px;
}

.fin-glow-cyan {
  width: 220px;
  height: 220px;
  background: var(--aura-cyan);
  filter: blur(50px);
  bottom: 20px;
  left: 20px;
}

/* Frosted Translucent Card */
.fin-floating-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating-glass);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fin-floating-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.fin-card-glass {
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  padding: 24px;
  width: 320px;
  transform: rotate(-3deg);
}

.fin-card-chip {
  width: 36px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fcd34d 0%, var(--accent-gold) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.fin-card-brand-tag {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.fin-card-number {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.fin-card-sublabel {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fin-card-subval {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Floating Balance Pop Card Overlay */
.fin-card-balance-pop {
  position: absolute;
  right: 10px;
  bottom: 30px;
  z-index: 3;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  width: 250px;
  box-shadow: var(--shadow-lg);
}

.fin-pop-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.fin-pop-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 4px 0 8px;
}

/* Mini play circle in hero */
.fin-hero-play-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #121417;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* App Store & Google Play Badges matching Reference Image */
.fin-app-badge-btn {
  background: #121417;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px -3px rgba(18, 20, 23, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fin-app-badge-btn:hover {
  background: #1e2229;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -3px rgba(18, 20, 23, 0.35);
  color: #ffffff !important;
}

/* Mini Floating Frosted Card (Bottom Left in Reference) */
.fin-card-mini-pop {
  position: absolute;
  left: 10px;
  bottom: 25px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 10px 16px;
  box-shadow: 0 14px 28px -6px rgba(18, 20, 23, 0.12);
  display: flex;
  flex-direction: column;
}

/* Floating Badges & Orbs */
.fin-float-badge {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.fin-float-badge:hover {
  transform: scale(1.1);
}

.fin-badge-gold {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  top: 30px;
  left: 20px;
}

.fin-badge-pink {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
  top: 15px;
  right: 40px;
}

/* ==========================================================================
   Device Showcase Box (Matching Lower Half of Reference Image)
   ========================================================================== */
.fin-device-showcase-box {
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px -10px rgba(18, 20, 23, 0.06);
  position: relative;
  overflow: hidden;
}

.fin-phone-wrapper {
  position: relative;
  max-width: 320px;
  perspective: 1000px;
}

.fin-phone-frame {
  background: #181b20;
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(18, 20, 23, 0.35);
  border: 3px solid #2a2f38;
  position: relative;
}

.fin-phone-speaker {
  width: 60px;
  height: 4px;
  background: #333842;
  border-radius: 9999px;
  margin: 0 auto 10px;
}

.fin-phone-screen {
  background: #0f1216;
  border-radius: 28px;
  padding: 16px 14px;
  text-align: left;
}

.fin-phone-card {
  background: #1c2028;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fin-phone-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px 12px;
}

.fin-phone-floating-glass-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -25%) rotate(-6deg);
  width: 250px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
  z-index: 5;
  text-align: left;
}

/* ==========================================================================
   Master Balance Card (Single High-Performance Component)
   Frosted Glass & Ambient Glow (Matches Reference Floating Cards)
   ========================================================================== */
.dash-balance-hero {
  position: relative;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 32px !important;
  padding: 28px 30px !important;
  box-shadow: var(--shadow-floating-glass) !important;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 24px;
}

.dash-balance-hero:hover {
  box-shadow: var(--shadow-xl) !important;
}

.dash-balance-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--aura-cyan) 0%, var(--aura-peach) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Frosted Glass Credit Card Preview in Master Balance Hero */
.bal-credit-card-preview {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 245, 255, 0.55) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 16px 36px -8px rgba(18, 20, 23, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bal-credit-card-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -8px rgba(18, 20, 23, 0.12);
}

.bal-card-acc-number {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #121417;
}

.bal-card-sublabel {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
}

.bal-card-subval {
  font-size: 0.88rem;
  font-weight: 700;
  color: #121417;
}

/* Topbar inside Balance Card */
.bal-short-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.bal-short-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bal-short-icon-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.bal-short-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.bal-short-eye-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.bal-short-eye-btn:hover {
  color: var(--text-primary);
}

.bal-short-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-mint-light);
  color: var(--accent-mint);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.bal-short-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  display: inline-block;
  animation: balPulse 1.8s infinite;
}

@keyframes balPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.bal-short-user-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bal-short-vip-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.bal-short-id-chip {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* Main Balance Value & Actions */
.bal-short-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.bal-short-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bal-short-curr {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.bal-short-val {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.bal-short-yield-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-mint);
  background: var(--accent-mint-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}

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

.bal-short-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bal-short-btn-deposit {
  background: #181b20 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(24, 27, 32, 0.25);
}
.bal-short-btn-deposit:hover {
  background: #282f3a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(24, 27, 32, 0.35);
  color: #ffffff !important;
}

.bal-short-btn-withdraw {
  background: #ffffff !important;
  color: #181b20 !important;
  border: 1.5px solid #181b20 !important;
  box-shadow: var(--shadow-xs);
}
.bal-short-btn-withdraw:hover {
  background: #f4f5f8 !important;
  color: #181b20 !important;
  transform: translateY(-2px);
}

/* Balance Substrip Stats */
.bal-short-substrip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.bal-short-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.bal-short-stat .stat-lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.bal-short-stat .stat-val {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.bal-short-sep {
  color: var(--border-card);
}

/* ==========================================================================
   VIBRANT COLORFUL PLAN CARDS (Exact Match To The 5 Iconic Cards in Reference)
   Large Squircle Corners (28px-30px), Pure Saturated Palette, Colored Glow Shadows
   ========================================================================== */
.plan-color-card {
  position: relative;
  border-radius: 28px !important;
  padding: 24px 20px 20px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  color: #ffffff !important;
  border: none !important;
}

.plan-color-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* 5 Signature Palettes from Reference Image (Repeats for 10 plans) */

/* Theme 1 & 6: Vivid Cyan / Sky Blue (Card 1 in Reference) */
.plan-theme-1, .plan-theme-6 {
  background: var(--card-cyan-grad) !important;
  box-shadow: var(--card-cyan-glow) !important;
}
.plan-theme-1:hover, .plan-theme-6:hover {
  box-shadow: var(--card-cyan-glow-hover) !important;
}

/* Theme 2 & 7: Obsidian / Jet Black (Card 2 in Reference) */
.plan-theme-2, .plan-theme-7 {
  background: var(--card-black-grad) !important;
  box-shadow: var(--card-black-glow) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.plan-theme-2:hover, .plan-theme-7:hover {
  box-shadow: var(--card-black-glow-hover) !important;
}

/* Theme 3 & 8: Coral Rose / Strawberry Pink (Card 3 in Reference) */
.plan-theme-3, .plan-theme-8 {
  background: var(--card-coral-grad) !important;
  box-shadow: var(--card-coral-glow) !important;
}
.plan-theme-3:hover, .plan-theme-8:hover {
  box-shadow: var(--card-coral-glow-hover) !important;
}

/* Theme 4 & 9: Royal Electric Blue (Card 4 in Reference) */
.plan-theme-4, .plan-theme-9 {
  background: var(--card-blue-grad) !important;
  box-shadow: var(--card-blue-glow) !important;
}
.plan-theme-4:hover, .plan-theme-9:hover {
  box-shadow: var(--card-blue-glow-hover) !important;
}

/* Theme 5 & 10: Warm Tangerine / Amber (Card 5 in Reference) */
.plan-theme-5, .plan-theme-10 {
  background: var(--card-amber-grad) !important;
  box-shadow: var(--card-amber-glow) !important;
}
.plan-theme-5:hover, .plan-theme-10:hover {
  box-shadow: var(--card-amber-glow-hover) !important;
}

/* 5 Column Grid on Desktop Screen (To mirror the 5 cards in reference) */
@media (min-width: 1200px) {
  .plan-five-col-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
  }
  .plan-five-col-row > .plan-col {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 10px;
    padding-left: 10px;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .plan-five-col-row > .plan-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 10px;
    padding-left: 10px;
  }
}
@media (max-width: 767px) {
  .plan-five-col-row > .plan-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Plan Card Icon Box at the Top (Mirrors Reference Image Icons) */
.plan-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 14px;
}

/* Plan Card Typography & Elements */
.plan-num-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
}

.plan-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.plan-top-duration-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

/* Frosted Boxes Inside Plan Cards */
.plan-invest-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-invest-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-invest-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1;
}

.plan-daily-return-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.daily-return-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
}

.daily-return-amount strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff !important;
}

.daily-return-amount .daily-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.plan-details-strip {
  padding: 4px 2px;
}

.plan-details-strip .detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.plan-details-strip .detail-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff !important;
}

/* Beautiful White Pill CTA Button on Colorful Card */
.plan-action-btn {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: var(--radius-pill) !important;
  padding: 10px 18px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
}

.plan-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-primary) !important;
}

/* ==========================================================================
   INTERACTIVE PROFIT CALCULATOR (Clean White Fintech Card)
   ========================================================================== */
.cyber-calc-card {
  background: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-xl) !important;
  padding: 30px 28px !important;
  box-shadow: var(--shadow-lg) !important;
}

.cyber-calc-card h4 {
  color: var(--text-primary) !important;
}

.cyber-calc-slider-wrap {
  position: relative;
  margin: 18px 0 10px;
}

.cyber-range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.cyber-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

.cyber-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.cyber-calc-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 767px) {
  .cyber-calc-outputs {
    grid-template-columns: 1fr;
  }
}

.cyber-calc-out-box {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.cyber-calc-out-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cyber-calc-out-box.highlight {
  background: var(--accent-mint-light) !important;
  border-color: #a7f3d0 !important;
}

.cyber-calc-out-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 6px;
}

.cyber-calc-out-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cyber-calc-out-val.neon {
  color: var(--primary-blue) !important;
}

.cyber-calc-out-box.highlight .cyber-calc-out-val.neon {
  color: var(--accent-mint) !important;
}

/* ==========================================================================
   INSTITUTIONAL TRUST GRID ("Why Choose Us")
   ========================================================================== */
.cyber-why-box {
  background: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px 22px !important;
  height: 100%;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-why-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}

.cyber-why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.cyber-why-box:nth-child(2) .cyber-why-icon {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}
.cyber-why-box:nth-child(3) .cyber-why-icon {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
}
.cyber-why-box:nth-child(4) .cyber-why-icon {
  background: var(--accent-coral-light);
  color: var(--accent-coral);
}

.cyber-why-box h5 {
  color: var(--text-primary) !important;
  font-size: 1.08rem;
  font-weight: 800;
}

/* ==========================================================================
   PAKISTANI PAYMENT GATEWAY CARDS (Deposit Page)
   Clean, Modern Cards with Vibrant Brand Color Hover States
   ========================================================================== */
.smart-gateway-card {
  background: #ffffff !important;
  border: 1.5px solid var(--border-card) !important;
  border-radius: var(--radius-lg) !important;
  padding: 18px 20px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.smart-gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}

.smart-gateway-card.card-ep:hover {
  border-color: #10b981 !important;
  box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.25) !important;
}

.smart-gateway-card.card-jc:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 14px 30px -6px rgba(245, 158, 11, 0.25) !important;
}

.smart-gateway-card.card-bank:hover {
  border-color: #0ea5e9 !important;
  box-shadow: 0 14px 30px -6px rgba(14, 165, 233, 0.25) !important;
}

.smart-gateway-card.card-sada:hover {
  border-color: #f43f5e !important;
  box-shadow: 0 14px 30px -6px rgba(244, 63, 94, 0.25) !important;
}

.smart-gw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.smart-gw-logo {
  height: 28px;
  max-width: 130px;
  object-fit: contain;
}

.smart-gw-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.smart-gw-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.smart-gw-acc-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.smart-gw-acc-val {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-primary);
}

.smart-gw-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.smart-gateway-card:hover .smart-gw-arrow {
  background: var(--primary-blue);
  color: #ffffff;
}

/* Single-Method Deposit Checkout Styles */
.smart-portal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 18px !important;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm) !important;
}

.smart-account-card {
  background: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px 24px !important;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm) !important;
}

.smart-acc-title-chip {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.smart-acc-num-box {
  display: flex;
  align-items: stretch;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 8px;
}

.smart-acc-num-val {
  flex-grow: 1;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-blue);
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.smart-acc-copy-btn {
  background: var(--accent-dark);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.smart-acc-copy-btn:hover {
  background: #1e293b;
}

.smart-form-card {
  background: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px 24px !important;
  box-shadow: var(--shadow-sm) !important;
}

.amount-quick-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.15s ease;
}

.amount-quick-chip:hover,
.amount-quick-chip.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

/* ==========================================================================
   GENERAL DASHBOARD & DATA CARDS (Modern Light Fintech)
   ========================================================================== */
.dash-card-dark {
  background: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-xl) !important;
  padding: 24px 26px !important;
  box-shadow: var(--shadow-md) !important;
  color: var(--text-primary) !important;
}

.dash-sidebar-ref,
.dash-sidebar {
  background: #ffffff !important;
  border-right: 1px solid var(--border-subtle) !important;
  min-height: 100vh;
  padding: 24px 16px;
}

.dash-nav-link,
.dash-nav-item,
.ref-side-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.dash-nav-link i,
.dash-nav-item i,
.ref-side-item i {
  width: 22px;
  margin-right: 10px;
  font-size: 1.05rem;
}

.dash-nav-link:hover,
.dash-nav-item:hover,
.ref-side-item:hover {
  color: var(--text-primary) !important;
  background: var(--bg-subtle);
}

.dash-nav-link.active,
.dash-nav-item.active,
.ref-side-item.active {
  background: var(--primary-blue-light) !important;
  color: var(--primary-blue) !important;
  font-weight: 700;
}

/* Mobile Submenu Pills */
.dash-mobile-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 8px;
  text-decoration: none !important;
  box-shadow: var(--shadow-xs);
}

.dash-mobile-pill.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* Tables in Light Fintech Style */
.table-ref-dark,
.table {
  color: var(--text-primary) !important;
}

.table-ref-dark th,
.table th {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  padding: 12px 16px;
}

.table-ref-dark td,
.table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-top: 1px solid var(--border-subtle) !important;
  font-size: 0.9rem;
}

.table-ref-dark tr:hover td,
.table tr:hover td {
  background: #f8fafc;
}

/* Badges & Pills */
.badge-neon {
  background: var(--primary-blue-light) !important;
  color: var(--primary-blue) !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.badge-outline-dark {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Form Controls */
.form-control-ref,
.form-control {
  background: #ffffff !important;
  border: 1.5px solid var(--border-card) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 16px !important;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-ref:focus,
.form-control:focus {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

/* Footer (Light, Modern Fintech) */
.fin-footer {
  background: #ffffff !important;
  border-top: 1px solid var(--border-subtle) !important;
  padding: 60px 0 30px !important;
  color: var(--text-secondary);
}

.fin-footer h5 {
  color: var(--text-primary) !important;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.fin-footer a.text-muted {
  color: var(--text-muted) !important;
  transition: color 0.2s ease;
}

.fin-footer a.text-muted:hover {
  color: var(--primary-blue) !important;
}

/* Mobile Bottom Navigation (Frosted Pill Bar) */
.fin-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px 12px;
}

.fin-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none !important;
  gap: 3px;
  transition: all 0.2s ease;
}

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

.fin-bottom-nav-item.active .fin-bottom-icon {
  stroke: var(--primary-blue);
}

/* Gateway Cards Colorful Redesign */
.smart-gateway-card {
  border: none !important;
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.smart-gateway-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}
.smart-gateway-card .smart-gw-badge {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}
.smart-gateway-card .smart-gw-acc-label {
  color: rgba(255,255,255,0.8) !important;
}
.smart-gateway-card .smart-gw-acc-val {
  color: #fff !important;
}
.smart-gateway-card .smart-gw-arrow i {
  color: #fff !important;
}

/* Brand Specific Gradients */
.card-ep {
  background: linear-gradient(135deg, #00c073, #00995c) !important;
}
.card-jc {
  background: linear-gradient(135deg, #f7941d, #d1750d) !important;
}
.card-bank {
  background: linear-gradient(135deg, #00a8cc, #007a99) !important;
}
.card-sada {
  background: linear-gradient(135deg, #ff725e, #d85746) !important;
}

/* Make logos pop against dark backgrounds */
.smart-gw-brand {
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: inline-flex;
}

.smart-portal-brand {
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
