:root {
  --bg-dark: #090d16;
  --bg-dark-mesh: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                  radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
                  radial-gradient(at 50% 50%, rgba(236, 72, 153, 0.08) 0px, transparent 50%);
  --panel-dark: rgba(30, 41, 59, 0.75);
  --panel-solid: #1e293b;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --primary: #3b82f6;
  --primary-glow: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.7));
}

body.light-theme {
  --bg-dark: #f1f5f9;
  --bg-dark-mesh: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
                  radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  --panel-dark: rgba(255, 255, 255, 0.85);
  --panel-solid: #ffffff;
  --border-dark: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --grad-card: linear-gradient(145deg, #ffffff, #f8fafc);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background-image: var(--bg-dark-mesh);
  background-attachment: fixed;
  color: var(--text-main);
  scroll-behavior: smooth;
}

.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Ultra Glass */
.sidebar {
  width: 270px;
  background: var(--panel-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  z-index: 10;
  flex-shrink: 0;
}

.logo-container { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.logo-icon { width: 46px; height: 46px; background: var(--grad-primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); font-size: 20px; font-weight: bold; }
.logo-text h2 { font-size: 19px; font-weight: 800; background: linear-gradient(to right, #ffffff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text span { font-size: 11px; color: var(--accent-cyan); font-weight: 600; text-transform: uppercase; }

/* User Profile Chip */
.user-profile-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-dark); padding: 10px 12px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.user-avatar-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: white; box-shadow: 0 4px 12px rgba(99,102,241,0.3); }

/* Sector Switcher Pill */
.sector-switcher-chip { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15)); border: 1px solid var(--border-glow); padding: 12px 14px; border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 20px; transition: all 0.25s ease; }
.sector-switcher-chip:hover { background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.25)); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3); }
.sector-info .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.sector-info strong { font-size: 13px; color: var(--text-main); font-weight: 700; }

/* Navigation Links */
.nav-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-align: left; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-main); transform: translateX(4px); }
.nav-item.active { background: var(--grad-primary); color: white; box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35); }
.nav-item.Highlighted-nav { border: 1px dashed rgba(99, 102, 241, 0.4); background: rgba(99, 102, 241, 0.08); }

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.top-bar { height: 70px; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: var(--panel-dark); backdrop-filter: blur(16px); flex-shrink: 0; }
.disclaimer-chip { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1)); border: 1px solid rgba(99, 102, 241, 0.25); padding: 8px 16px; border-radius: 20px; color: #a5b4fc; font-size: 12px; }
.header-actions { display: flex; gap: 12px; align-items: center; }

/* Dynamic Smooth Scroll Body Container */
.content-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 28px;
  min-height: 0;
  position: relative;
}

/* Glass Card Panels */
.card-panel { background: var(--grad-card); border: 1px solid var(--border-dark); border-radius: 20px; padding: 24px; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.card-panel:hover { border-color: var(--border-glow); }

/* KPI Grid */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.kpi-card { background: var(--grad-card); border: 1px solid var(--border-dark); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: all 0.3s ease; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad-primary); }
.kpi-card.green::before { background: var(--grad-success); }
.kpi-card.purple::before { background: var(--grad-purple); }
.kpi-card.warning::before { background: var(--grad-warning); }
.kpi-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); border-color: var(--border-glow); }
.kpi-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.kpi-icon-badge { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(99, 102, 241, 0.15); color: #818cf8; font-weight: bold; }
.kpi-card.green .kpi-icon-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kpi-card.purple .kpi-icon-badge { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.kpi-card.warning .kpi-icon-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.kpi-value { font-size: 28px; font-weight: 800; }
.kpi-sub { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* SVG Chart */
.dashboard-visual-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 24px; }
.svg-chart-wrapper { width: 100%; height: 240px; position: relative; }
.svg-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: rgba(255, 255, 255, 0.05); stroke-dasharray: 4, 4; }
.chart-path-revenue { fill: url(#grad-rev-area); stroke: #10b981; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0px 4px 10px rgba(16, 185, 129, 0.4)); }
.chart-path-expenses { fill: url(#grad-exp-area); stroke: #ef4444; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0px 4px 10px rgba(239, 68, 68, 0.4)); }
.chart-dot { r: 5; cursor: pointer; transition: transform 0.2s, r 0.2s; }
.chart-dot:hover { r: 8; }
.chart-dot.rev { fill: #10b981; stroke: #ffffff; stroke-width: 2; }
.chart-dot.exp { fill: #ef4444; stroke: #ffffff; stroke-width: 2; }

.donut-chart-box { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.donut-svg-wrapper { width: 160px; height: 160px; position: relative; }
.donut-center-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.donut-center-text strong { font-size: 18px; font-weight: 800; display: block; }
.donut-center-text span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

/* Buttons */
.btn { padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.25s ease; }
.btn-primary { background: var(--grad-primary); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-main); border: 1px solid var(--border-dark); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }
.btn-google { background: #ffffff; color: #1f2937; border: 1px solid #e5e7eb; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-google:hover { background: #f9fafb; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.btn-success { background: var(--grad-success); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35); }
.btn-sm { padding: 7px 12px; font-size: 11px; border-radius: 8px; }

.form-input, .select-filter { width: 100%; padding: 12px 14px; background: var(--bg-dark); border: 1px solid var(--border-dark); border-radius: 10px; color: var(--text-main); font-size: 13px; }
.table-responsive { overflow-x: auto; width: 100%; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 14px; font-size: 13px; }
.data-table th { text-align: left; padding: 14px 16px; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--border-dark); background: rgba(15, 23, 42, 0.4); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-dark); }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.badge.accepted, .badge.success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge.sent, .badge.primary { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge.draft, .badge.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge.overdue, .badge.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.chip { padding: 4px 8px; background: rgba(255, 255, 255, 0.06); border-radius: 6px; font-size: 11px; color: var(--text-muted); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.modal-overlay.hidden { display: none !important; }
.modal-box { background: var(--panel-solid); border: 1px solid var(--border-glow); border-radius: 24px; width: 560px; padding: 28px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); }
.modal-box.wide { width: 850px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-dark); }
.close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-dark); }

.tab-pane { display: none; }
.tab-pane.active { display: block !important; }
.margin-top { margin-top: 20px; }

/* Responsive Mobile Layout with Full Touch Scrolling */
@media (max-width: 992px) { .dashboard-visual-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
    height: auto;
  }
  .app-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .sidebar {
    width: 100%;
    height: auto;
    padding: 14px 18px;
  }
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .main-content {
    height: auto;
    overflow: visible;
  }
  .top-bar {
    padding: 0 18px;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .content-body {
    padding: 18px;
    overflow-y: visible;
    height: auto;
  }
  .modal-box, .modal-box.wide { width: 100%; }
}

/* ─────────────────────────────────────────────
   MOBILE RESPONSIVE — Full Mobile Experience
   ───────────────────────────────────────────── */

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(9, 13, 22, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99,102,241,0.3);
  z-index: 9999;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-hamburger {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main);
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.mobile-overlay.active { display: block; }

@media (max-width: 768px) {
  .mobile-topbar { display: flex; }

  .app-layout {
    display: block;
    padding-top: 56px;
  }

  #main-sidebar {
    position: fixed;
    top: 56px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 56px);
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    border-right: 1px solid var(--border-glow);
  }

  #main-sidebar.open { left: 0; }

  .main-content {
    width: 100%;
    margin-left: 0;
    height: auto;
  }

  .top-bar { display: none; }

  .content-body {
    padding: 12px;
    overflow-y: visible;
    height: auto;
  }

  /* Card grids → 1 columna en móvil */
  .kpi-grid,
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Tablas en móvil: scroll horizontal */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .data-table {
    min-width: 600px;
    font-size: 12px;
  }

  .data-table th, .data-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* Botones en header se apilan */
  .header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Modal full screen en móvil */
  .modal-overlay { padding: 8px; }
  .modal-box, .modal-box.wide {
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Nav sector switcher más pequeño */
  .sector-switcher-chip { padding: 10px 12px; }

  /* Grids internos de modal → 1 columna */
  .modal-body div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Botones grandes en móvil */
  .btn { font-size: 13px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  h1[style*="font-size:24px"], h1[style*="font-size:26px"] {
    font-size: 20px !important;
  }
}

/* ─────────────────────────────────────────────
   NATIVE MOBILE BOTTOM NAVIGATION BAR & UX
   ───────────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(99, 102, 241, 0.25);
  z-index: 10000;
  padding: 0 8px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  body {
    padding-bottom: 74px !important;
  }

  .content-body {
    padding: 14px 14px 85px 14px !important;
  }

  /* Bottom Sheet Modals for Native Feel */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box, .modal-box.wide {
    width: 100% !important;
    max-height: 88vh !important;
    border-radius: 28px 28px 0 0 !important;
    border-bottom: none !important;
    animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 18px 30px 18px !important;
  }

  .form-input, .select-filter {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
  }
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  cursor: pointer;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn .icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.mobile-nav-btn.active {
  color: #6366f1;
}

.mobile-nav-btn.active .icon {
  transform: translateY(-2px) scale(1.15);
}

.mobile-nav-btn.active::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 16px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 4px;
}

/* Central Floating Action Button (FAB) */
.mobile-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  border: 3px solid #090d16;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.6);
  margin-top: -24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-fab-btn:active {
  transform: scale(0.92);
}

/* Touch Card Lists for Mobile */
.mobile-touch-card {
  background: var(--grad-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.mobile-touch-card:active {
  border-color: var(--border-glow);
  background: rgba(30, 41, 59, 0.95);
}

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mobile-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.mobile-card-price {
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
}

.mobile-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-card-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 10px;

/* Device Layout Simulation Modes & Multi-Language Styles */
body.device-mode-mobile .app-layout {
  max-width: 440px !important;
  margin: 0 auto !important;
  border-left: 2px solid var(--border-dark);
  border-right: 2px solid var(--border-dark);
  box-shadow: 0 0 50px rgba(0,0,0,0.9);
  min-height: 100vh;
}
body.device-mode-mobile .sidebar {
  display: none !important;
}
body.device-mode-mobile .mobile-topbar,
body.device-mode-mobile .mobile-bottom-nav {
  display: flex !important;
}

body.device-mode-tablet .app-layout {
  max-width: 840px !important;
  margin: 0 auto !important;
  border-left: 2px solid var(--border-dark);
  border-right: 2px solid var(--border-dark);
  box-shadow: 0 0 50px rgba(0,0,0,0.9);
  min-height: 100vh;
}
body.device-mode-tablet .sidebar {
  width: 220px !important;
  display: flex !important;
}

body.device-mode-desktop .app-layout {
  max-width: 100% !important;
  margin: 0 !important;
}
body.device-mode-desktop .sidebar {
  display: flex !important;
}
body.device-mode-desktop .mobile-topbar,
body.device-mode-desktop .mobile-bottom-nav {
  display: none !important;
}

.device-switcher-bar .device-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

.lang-select-dropdown option {
  background: #0f172a;
  color: #ffffff;
}

/* =============================================
   PAYMENT METHOD TABS (Multi-Method Checkout)
   ============================================= */
.pay-method-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(30,41,59,0.6);
  border: 2px solid var(--border-dark);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.pay-method-tab:hover {
  background: rgba(99,102,241,0.15);
  border-color: #6366f1;
  color: var(--text-main);
  transform: translateY(-2px);
}

.pay-method-tab.active {
  background: rgba(99,102,241,0.2);
  border-color: #6366f1;
  color: #a5b4fc;
  box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

.pay-panel {
  animation: fadeInPanel 0.25s ease;
}

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

/* Firebase Google button hover */
#firebase-google-signin-btn:active {
  transform: scale(0.98);
}
