/* -------------------------------------------------------------
   AuraPay Production Fintech Stylesheet (Stageshow Inspired)
   ------------------------------------------------------------- */

:root {
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --emerald: #10B981;
  --emerald-dark: #047857;
  --emerald-bg: #ECFDF5;
  --emerald-border: #A7F3D0;
  --blue: #2563EB;
  --indigo: #6366F1;

  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Grids & Glows */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-radial {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 100%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* ==============================================================
   NAVBAR
   ============================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: #0F172A;
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.brand-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--emerald-bg);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-border);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watcher-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-nav-secondary {
  background: white;
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nav-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-nav-primary {
  background: #0F172A;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nav-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

/* ==============================================================
   VIEW MANAGER (SPA ANIMATIONS)
   ============================================================== */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================================
   VIEW 1: LANDING & STAGESHOW HERO
   ============================================================== */
.hero-container {
  max-width: 1080px;
  margin: 48px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-pill-badge {
  background: #0F172A;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #0F172A;
  max-width: 860px;
  margin: 0 auto 18px;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
}

.text-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 55%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-hero-interactive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-bg);
  color: var(--emerald-dark);
  border: 1.5px solid var(--emerald-border);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-interactive:hover {
  background: #D1FAE5;
}

/* STAGESHOW HERO ILLUSTRATION */
.stageshow-stage {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.faux-window {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.window-chrome {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.dot-red { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; }
.dot-green { width: 10px; height: 10px; border-radius: 50%; background: #10B981; }

.chrome-address-bar {
  background: white;
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chrome-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.window-body {
  padding: 32px 36px;
}

@media (max-width: 768px) {
  .window-body { padding: 20px; }
}

.faux-checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 640px) {
  .faux-checkout-grid { grid-template-columns: 1fr; }
}

.faux-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faux-merchant-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faux-avatar {
  width: 38px;
  height: 38px;
  background: #0F172A;
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.faux-m-name {
  font-size: 1rem;
  font-weight: 700;
}

.faux-verified {
  font-size: 0.72rem;
  color: var(--emerald-dark);
  font-weight: 600;
}

.faux-price-block {
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.faux-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.faux-price {
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
}

.faux-curr {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.faux-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.faux-status-radar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.faux-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulse-ring 2s infinite;
}

.faux-radar-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-dark);
}

.faux-radar-sub {
  font-size: 0.7rem;
  color: #065F46;
}

/* Faux Right QR */
.faux-right {
  display: flex;
  justify-content: center;
}

.faux-qr-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.faux-qr-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: inline-block;
}

.faux-scan-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  box-shadow: 0 0 8px var(--emerald);
  animation: faux-scan 2.4s infinite ease-in-out;
}

@keyframes faux-scan {
  0% { top: 5%; }
  50% { top: 92%; }
  100% { top: 5%; }
}

.faux-qr-img {
  width: 150px;
  height: 150px;
  display: block;
}

.faux-qr-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 8px;
}

.faux-upi-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* SATELLITE IPHONE */
.satellite-phone {
  position: absolute;
  top: -24px;
  right: -42px;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 900px) {
  .satellite-phone { display: none; }
}

.phone-rim {
  background: #0F172A;
  border-radius: 28px;
  padding: 7px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border: 2px solid #334155;
}

.phone-screen {
  background: #F8FAFC;
  border-radius: 22px;
  padding: 10px 8px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748B;
  padding: 0 4px;
}

.phone-notification {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.notif-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  color: #2563EB;
}

.notif-body strong {
  display: block;
  font-size: 0.72rem;
  margin-top: 2px;
}

.notif-body p {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 2px;
}

.phone-verified-pill {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-dark);
  padding: 6px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  transition: all 0.3s ease;
}

/* ARCHITECTURE PIPELINE SECTION */
.architecture-container {
  max-width: 1080px;
  margin: 90px auto;
  padding: 0 20px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 6px 0 10px;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-flow-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.arch-card {
  flex: 1;
  min-width: 210px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.arch-num {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--blue);
  background: #EFF6FF;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.arch-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.arch-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-card code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: #F1F5F9;
  padding: 1px 4px;
  border-radius: 4px;
}

.arch-arrow {
  font-size: 1.3rem;
  color: var(--text-muted);
  user-select: none;
}

@media (max-width: 900px) {
  .arch-arrow { display: none; }
}

/* COMPARISON TABLE SECTION */
.comparison-container {
  max-width: 980px;
  margin: 80px auto;
  padding: 0 20px;
}

.table-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.comparison-table th {
  padding: 16px 20px;
  background: #F8FAFC;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.col-highlight {
  background: #F0FDF4;
}

/* ==============================================================
   VIEW 2: AUTH SCREEN
   ============================================================== */
.auth-card-wrapper {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 16px;
}

.auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-xl);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand-logo {
  width: 44px;
  height: 44px;
  background: #0F172A;
  color: white;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab.active {
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-auth-submit {
  background: #0F172A;
  color: white;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.15s ease;
}

.btn-auth-submit:hover {
  background: #1E293B;
}

.btn-demo-account {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563EB;
  cursor: pointer;
  margin-top: 4px;
}

.btn-demo-account:hover {
  background: #EEF2F6;
}

/* ==============================================================
   VIEW 3: ONBOARDING WIZARD
   ============================================================== */
.onboarding-wrapper {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 16px;
}

.onboarding-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.progress-step.active {
  color: var(--text-primary);
}

.progress-step.active .step-num {
  background: #0F172A;
  color: white;
}

.progress-step.completed .step-num {
  background: var(--emerald);
  color: white;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 8px;
}

.carousel-deck {
  position: relative;
}

.carousel-slide {
  display: none;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.active {
  display: block;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
}

.slide-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 6px;
}

.slide-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.slide-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.center-footer {
  justify-content: center;
}

.btn-slide-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-slide-back {
  background: white;
  border: 1.5px solid var(--border);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  background: #F8FAFC;
  transition: all 0.15s ease;
}

.upload-dropzone:hover {
  border-color: var(--blue);
  background: #F1F5F9;
}

.file-hidden { display: none; }

.dropzone-icon {
  color: #64748B;
  margin-bottom: 8px;
}

.dropzone-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.dropzone-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 14px;
}

.btn-select-file {
  background: white;
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.qr-detection-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid var(--emerald-border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
}

.preview-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 4px;
  border: 1px solid var(--border);
}

.detection-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-dark);
}

.detected-id {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin: 2px 0;
}

.detected-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tutorial Grid */
.tutorial-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 600px) {
  .tutorial-grid { grid-template-columns: 1fr; }
}

.tut-phone {
  background: #0F172A;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.tut-screen {
  background: #F8FAFC;
  border-radius: 18px;
  min-height: 220px;
  padding: 8px;
}

.tut-screen-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 800;
  color: #0F172A;
  padding: 4px;
  border-bottom: 1px solid #E2E8F0;
}

.phone-card-sim {
  background: white;
  border-radius: 10px;
  padding: 14px 10px;
  margin-top: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sim-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563EB;
  margin: 0 auto 8px;
}

.sim-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.sim-desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 4px;
}

.tutorial-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tut-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tut-step-item:hover, .tut-step-item.active {
  background: #F8FAFC;
  border-color: #2563EB;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EEF2F6;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-step-item.active .step-circle {
  background: #2563EB;
  color: white;
}

.tut-step-item strong {
  display: block;
  font-size: 0.8rem;
}

.tut-step-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* App Pass Guide */
.app-pass-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .app-pass-guide { grid-template-columns: 1fr 1fr; }
}

.guide-col {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-step-tag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0F172A;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
}

.form-row {
  display: flex;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-row { flex-direction: column; }
}

.flex-1 { flex: 1; }

.connection-test-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.btn-test-connection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563EB;
  cursor: pointer;
}

.btn-test-connection:hover {
  background: #EEF2F6;
}

.test-feedback {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Celebration & Keys */
.celebration-circle {
  font-size: 3rem;
  margin-bottom: 12px;
}

.api-key-reveal-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.api-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.api-key-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
}

.btn-copy-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.api-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==============================================================
   VIEW 4: MERCHANT DASHBOARD
   ============================================================== */
.dashboard-wrapper {
  max-width: 1140px;
  margin: 32px auto 60px;
  padding: 0 20px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-header-actions {
  display: flex;
  gap: 10px;
}

.btn-dash-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-dash-secondary {
  background: white;
  border: 1.5px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}

.metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.metric-val {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.text-emerald { color: var(--emerald-dark) !important; }

.dash-split-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .dash-split-grid { grid-template-columns: 1fr; }
}

.dash-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.panel-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-search {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  outline: none;
  font-family: var(--font-sans);
}

.table-search:focus {
  border-color: var(--blue);
}

.btn-refresh {
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.table-container {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.dash-table th {
  padding: 10px 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.dash-table td {
  padding: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.badge-paid {
  display: inline-block;
  background: var(--emerald-bg);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-pending {
  display: inline-block;
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.sub-panel {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.sub-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dash-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
  font-size: 0.8rem;
}

.btn-copy-sm {
  background: #F1F5F9;
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.code-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.code-tab {
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.code-tab.active {
  background: #0F172A;
  color: white;
  border-color: #0F172A;
}

.code-block {
  background: #0F172A;
  color: #E2E8F0;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  overflow-x: auto;
  line-height: 1.5;
}

.btn-simulate-concurrency {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563EB;
  cursor: pointer;
}

.btn-simulate-concurrency:hover {
  background: #EEF2F6;
}

.sim-feedback {
  margin-top: 8px;
  font-size: 0.72rem;
  padding: 8px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  border-radius: 6px;
  color: var(--emerald-dark);
}

/* ==============================================================
   MODAL DIALOG
   ============================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-dialog {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.paywall-result {
  margin-top: 16px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.result-title {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.link-copy-row {
  display: flex;
  gap: 6px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  background: #0F172A;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
