/* ==========================================================================
   BankStatementLab — FinTech Design System
   Inspired by BankStatementLab & Mercury/Stripe Quality Standard
   ========================================================================== */

:root {
  --bg-deep: #060911;
  --bg-surface: #0B101D;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.35);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06B6D4;
  --accent-indigo: #6366F1;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;
  
  --gradient-brand: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #6366F1 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --font-sans: 'Pretendard', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-ambient: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0) 70%);
  top: -80px;
  left: 25%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
  top: 45%;
  right: -100px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography & Utility */
.gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-emerald {
  color: #34D399 !important;
}

.text-rose {
  color: #FB7185 !important;
}

.text-cyan {
  color: #38BDF8 !important;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--accent-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn-pro-glow {
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  color: #060911;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-pro-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-glow {
  animation: glowPulse 2.5s infinite;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.7); }
  100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
}

.btn-paypal {
  background: #FFC439;
  color: #003087;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: none;
}

.btn-paypal:hover {
  background: #F4B828;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 196, 57, 0.35);
}

.paypal-logo {
  font-weight: 900;
  letter-spacing: -0.5px;
}

.paypal-logo i {
  color: #0079C1;
  font-style: italic;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-lang {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-pro {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34D399 !important;
  font-weight: 700;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: #6EE7B7;
}

.pill-badge {
  background: var(--accent-emerald);
  color: #060911;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.hero-title {
  font-size: 3.3rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Visual Showcase */
.hero-showcase-wrapper {
  margin: 1rem auto 0;
  max-width: 1040px;
}

.showcase-card {
  background: #0B101D;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(16, 185, 129, 0.15);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.showcase-tag-left {
  color: #F87171;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
}

.showcase-tag-center {
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sparkle-cyan {
  color: #06B6D4;
}

.showcase-tag-right {
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.showcase-image-container {
  position: relative;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-floating-cta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.btn-floating {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.6) !important;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
}

/* Converter Studio Container */
.converter-section {
  padding: 3rem 0 5rem;
}

.converter-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
  padding: 2rem;
}

.converter-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.source-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bank-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bank-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bank-chip:hover, .bank-chip.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: #FFFFFF;
}

.format-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Dual Split View: PDF Document vs Excel Grid */
.studio-split-view {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

/* Left Pane: PDF Document */
.split-pane-pdf {
  background: #080D1A;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.pdf-file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.badge-pdf-tag {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.pdf-zoom {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Simulated PDF Document Sheet */
.pdf-sheet {
  background: #FFFFFF;
  color: #1E293B;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  font-size: 0.75rem;
  min-height: 440px;
}

/* Vertical Laser Scanner Animation */
.pdf-laser-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #10B981;
  box-shadow: 0 0 12px 3px rgba(16, 185, 129, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.pdf-laser-scanner.scanning {
  opacity: 1;
  animation: scanLaser 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scanLaser {
  0% { top: 0%; }
  50% { top: 98%; }
  100% { top: 0%; }
}

.pdf-bank-header {
  border-bottom: 2px solid #0F172A;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.pdf-logo-mark {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0F172A;
}

.pdf-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748B;
  margin-top: 0.35rem;
}

.pdf-raw-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pdf-table-head {
  display: grid;
  grid-template-columns: 65px 1fr 65px 65px;
  font-weight: 700;
  font-size: 0.68rem;
  color: #475569;
  border-bottom: 1px solid #CBD5E1;
  padding-bottom: 0.35rem;
}

.pdf-table-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #334155;
  max-height: 280px;
  overflow-y: hidden;
}

.pdf-row-item {
  display: grid;
  grid-template-columns: 65px 1fr 65px 65px;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #E2E8F0;
}

.pdf-row-item span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.5rem;
}

.pdf-watermark-stamp {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.upload-inline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.upload-inline:hover {
  border-color: var(--accent-emerald);
}

.file-hidden {
  display: none;
}

/* Right Pane: Extracted Excel Grid */
.split-pane-excel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Status Bar */
.parser-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
}

.status-left strong {
  color: var(--text-main);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-reconciled {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-card.highlight-card {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(6, 182, 212, 0.35);
}

.metric-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Spreadsheet Wrapper */
.spreadsheet-wrapper {
  background: #060911;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.table-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  width: 260px;
}

.table-search input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
  width: 100%;
}

.table-tools {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.table-scroll-container {
  max-height: 380px;
  overflow-y: auto;
}

.fintech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.fintech-table th {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.fintech-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  position: relative;
}

.fintech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Category Badges (BankStatementLab Style) */
.category-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
  white-space: nowrap;
}

/* In-Cell Editing */
.editable-cell {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.editable-cell:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  outline: 1px dashed rgba(99, 102, 241, 0.4);
}

.cell-edit-input {
  width: 100%;
  background: #0B101D;
  border: 1px solid var(--accent-emerald);
  color: #FFFFFF;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* How It Works 3-Steps Section */
.how-it-works-section {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border-radius: 50%;
  color: #060911;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Supported Banks Grid */
.banks-section {
  padding: 3rem 0 6rem;
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.banks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.bank-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.bank-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-emerald);
  background: var(--bg-card-hover);
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0) 0%, rgba(11, 16, 29, 0.7) 50%, rgba(6, 9, 17, 0) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3.5rem 0 2.5rem;
  align-items: center;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(11, 16, 29, 0.95) 100%);
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 35px var(--accent-emerald-glow);
  transform: scale(1.04);
}

.pricing-card.featured:hover {
  transform: scale(1.06);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10B981, #06B6D4);
  color: #060911;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.75rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-val {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1;
  font-size: 0.9rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.pricing-features li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.5;
}

.check {
  color: var(--accent-emerald);
  font-weight: 800;
}

.cross {
  color: #EF4444;
  font-weight: 800;
}

.guarantee-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #6EE7B7;
}

/* Pro Banner below table */
.pro-upsell-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
}

.upsell-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.upsell-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Loading Modal & 4 Stages (BankStatementLab Style) */
.loading-card {
  background: #0B101D;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(16, 185, 129, 0.2);
}

.loading-spinner-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(16, 185, 129, 0.15);
  border-top-color: var(--accent-emerald);
  animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.loading-icon {
  font-size: 1.5rem;
}

.loading-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.loading-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.loading-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981, #06B6D4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.loading-percent {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.step-indicator {
  padding: 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.step-indicator.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  font-weight: 700;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-overlay:not(.hidden) {
  display: flex !important;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #FFFFFF;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-order-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--accent-emerald);
}

.paypal-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 52px;
}

#paypal-smart-button-container {
  min-height: 48px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.paypal-loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.modal-footer-note {
  text-align: center;
  margin-top: 1.25rem;
}

.btn-link-subtle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link-subtle:hover {
  color: var(--accent-emerald);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10B981;
  color: #060911;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  z-index: 2000;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: var(--bg-surface);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1080px) {
  .studio-split-view {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .banks-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   StatementForge AI - Enterprise FinTech Enhancements (Global & CPA Tools)
   ========================================================================== */

/* Logo Badge */
.logo-badge {
  background: var(--gradient-brand);
  color: #060911;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* Language Switcher Dropdown */
.lang-switch-dropdown {
  position: relative;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0F172A;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  width: 175px;
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.lang-dropdown.hidden {
  display: none;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-opt:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

/* Enterprise CPA Workspace Bar */
.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.workspace-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.client-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workspace-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.client-dropdown {
  background: #0B101D;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.client-dropdown:focus {
  border-color: var(--accent-emerald);
}

.workspace-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-tool-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-tier-req {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
  border-radius: 4px;
}

.workspace-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-indicator-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
}

.plan-sub-text {
  color: var(--text-dim);
}

.btn-link-action {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-link-action:hover {
  color: #38BDF8;
}

/* Multi-File Batch Queue Tab Bar */
.batch-queue-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(6, 9, 17, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.batch-tabs-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.batch-tabs-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.batch-file-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.batch-file-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.batch-file-tab.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--text-main);
  font-weight: 600;
}

.tab-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.tab-close-x {
  font-size: 0.9rem;
  opacity: 0.6;
}

.tab-close-x:hover {
  opacity: 1;
  color: var(--accent-rose);
}

.btn-batch-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-batch-add:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* Button & Tool Enhancements */
.btn-indigo {
  background: #4F46E5;
  color: #fff;
  border: none;
}

.btn-indigo:hover {
  background: #4338CA;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-table-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-table-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-emerald);
}

.btn-cell-delete {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-cell-delete:hover {
  color: var(--accent-rose);
}

/* Unbalanced / Discrepancy Alert */
.badge-unbalanced {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #FDA4AF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  animation: pulseDiscrepancy 2s infinite;
}

@keyframes pulseDiscrepancy {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
}

/* Large Modal */
.modal-large {
  max-width: 840px !important;
}

/* CPA Tax Rules Modal Table */
.rules-list-container {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.rules-table th {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-weight: 600;
}

.rules-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.add-rule-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 140px 100px;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.rule-input, .rule-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  outline: none;
}

.rule-input:focus, .rule-select:focus {
  border-color: var(--accent-emerald);
}

/* Official Audit Certificate Styling */
.audit-certificate-paper {
  background: #0D1322;
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.cert-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cert-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.825rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.cert-grid code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  word-break: break-all;
}

.cert-math-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.math-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.math-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0.5rem 0;
}

.math-highlight {
  font-size: 0.95rem;
  font-weight: 700;
}

.cert-verdict {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(16, 185, 129, 0.3);
  font-size: 0.95rem;
}

.cert-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-sign {
  width: 250px;
  text-align: center;
}

.sign-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
}

.cert-sign span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.cert-badge-official {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
}

/* CPA Team & API Key Modal */
.team-section {
  margin: 1.25rem 0 1.5rem;
}

.team-section h4, .api-section h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.team-member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #060911;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.member-info span {
  color: var(--text-dim);
  font-size: 0.725rem;
}

.member-role {
  font-size: 0.725rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

.badge-admin {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.api-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.api-key-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  justify-content: space-between;
}

.api-key-box code {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--accent-cyan);
}

.btn-copy-key {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-copy-key:hover {
  background: var(--accent-emerald);
  color: #060911;
}

/* Tier Picker Demo Grid */
.tier-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.tier-picker-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
}

.tier-picker-card:hover {
  border-color: var(--accent-emerald);
  background: rgba(255, 255, 255, 0.06);
}

.tier-picker-card.featured {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.05);
}

.tier-picker-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.tier-picker-card p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.tier-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
  display: inline-block;
}

/* ==========================================================================
   20. User Authentication, Customer Portal & Operator CRM Styles
   ========================================================================== */

/* Header Profile Pill */
.user-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.user-profile-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.nav-link-mypage {
  color: #34D399 !important;
  font-weight: 700 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  transition: all var(--transition-fast) !important;
}

.nav-link-mypage:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px);
}

.mypage-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-left: 0.25rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #34D399;
}

.user-avatar-circle {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #FFFFFF;
}

.user-profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-plan-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  letter-spacing: 0.04em;
}

/* Auth Modal */
.auth-modal-card {
  max-width: 440px;
}

.auth-icon {
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-tab.active {
  background: var(--accent-emerald);
  color: #060911;
}

.btn-social-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #FFFFFF;
  color: #1F2937;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 1rem;
}

.btn-social-google:hover {
  background: #F3F4F6;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 0.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.auth-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.auth-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.demo-auth-box {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
  text-align: left;
}

.demo-auth-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.demo-auth-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-demo-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-demo-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--accent-emerald);
}

/* Account Portal Modal */
.account-modal-card {
  max-width: 540px;
}

.account-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  text-align: left;
}

.account-avatar-large {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.account-info-main {
  flex: 1;
}

.account-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.account-name-row h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.acc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.acc-badge.admin {
  background: rgba(234, 179, 8, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

#acc-user-email {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.acc-joined-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.account-plan-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.plan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.plan-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.plan-card-top h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #34D399;
  margin-top: 0.2rem;
}

.acc-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.meta-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.meta-val.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #6EE7B7;
}

.sub-id-copy-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-icon-tiny {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.7;
  padding: 0.1rem;
  transition: opacity 0.2s;
}

.btn-icon-tiny:hover {
  opacity: 1;
}

.quota-progress-section {
  margin-bottom: 1.25rem;
}

.quota-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quota-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #06B6D4);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.plan-card-actions {
  display: flex;
  gap: 0.75rem;
}

.plan-card-actions > * {
  flex: 1;
}

.account-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.text-danger {
  color: #F87171 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.text-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
}

/* Admin CRM Modal */
.admin-modal-card {
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

.admin-crm-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-icon {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  margin: 0;
  flex-shrink: 0;
}

.admin-crm-header-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
}

.admin-crm-header-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.crm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.crm-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.crm-metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.crm-metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.25rem 0;
}

.crm-metric-sub {
  font-size: 0.75rem;
  color: #34D399;
}

.crm-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.crm-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  flex: 1;
  max-width: 450px;
}

.crm-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.85rem;
  width: 100%;
}

.crm-actions {
  display: flex;
  gap: 0.65rem;
}

.crm-table-container {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.25);
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.crm-table th {
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.crm-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.crm-user-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.crm-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.crm-user-details strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
}

.crm-user-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.crm-plan-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.crm-quota-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crm-quota-cell strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.crm-btn-topup {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
}

.crm-btn-topup:hover {
  background: rgba(16, 185, 129, 0.3);
}

.crm-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.crm-status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.crm-status-pill.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.crm-footer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 0.5rem;
}

.crm-sync-badge {
  color: #34D399;
  font-weight: 600;
}

@media (max-width: 768px) {
  .crm-metrics-grid {
    grid-template-columns: 1fr;
  }
  .crm-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-search-wrap {
    max-width: 100%;
  }
  .crm-actions {
    justify-content: flex-end;
  }
}

