/* ═══════════════════════════════════════════════════════════════════
   PROPENKI v3.0 — Next-Gen Interactive Bento Portal
   Aesthetics: Futuristic Dark Glassmorphism, Titanium Device Showcase,
   Dynamic Role Simulator & Live Firestore Synchronization
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Surface colors */
  --bg-cosmos: #030611;
  --bg-deep: #070c18;
  --bg-surface: #0d1424;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-strong: rgba(255, 255, 255, 0.07);

  /* Brand Accents */
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.28);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.24);

  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.22);

  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.22);

  --blue-apple: #0071e3;
  --blue-glow: rgba(0, 113, 227, 0.3);

  /* Text colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #fbbf24;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-hover: rgba(255, 255, 255, 0.24);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Shadow layers */
  --shadow-bento: 0 10px 40px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.07) inset;
  --shadow-glow: 0 0 50px rgba(245, 158, 11, 0.15);
  --shadow-float: 0 25px 60px -15px rgba(0, 0, 0, 0.7);

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cosmos);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient dynamic background lighting */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

/* ── Sticky Ultra-Glass Header ───────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 6, 17, 0.78);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid var(--border-subtle);
  height: 68px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-badge {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #030611;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 18px var(--gold-glow);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

/* ── Container Layout ────────────────────────────────────────── */
.page-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px) clamp(14px, 3vw, 28px) 80px;
  position: relative;
  z-index: 1;
}

/* Section Header Shared */
.section-header-block {
  text-align: center;
  margin-bottom: 32px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  margin-bottom: 12px;
}

.section-main-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-main-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   PANEL 1: HERO & DEVICE SIMULATOR SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.hero-showcase-panel {
  background: linear-gradient(145deg, rgba(13, 20, 36, 0.7) 0%, rgba(7, 12, 24, 0.85) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-bento);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-showcase-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--emerald), transparent);
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-headline .shimmer-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #10b981 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-description strong {
  color: var(--text-primary);
}

.hero-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.pill-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.pill-feature .ico {
  font-size: 14px;
}

.hero-action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #030611;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 6px 26px var(--gold-glow);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(245, 158, 11, 0.45);
}

.btn-secondary-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.btn-secondary-ghost:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-hover);
}

/* ── Interactive Titanium iPhone 16 Pro Mockup ───────────────── */
.device-interactive-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.iphone-frame {
  width: 290px;
  height: 580px;
  background: #18191d;
  border-radius: 52px;
  padding: 11px;
  box-shadow:
    0 0 0 3px #3d3e42,
    0 0 0 6px #1b1c20,
    0 30px 70px -10px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(245, 158, 11, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-spring);
}

.iphone-frame:hover {
  transform: translateY(-6px) scale(1.01);
}

.iphone-notch {
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-notch::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #111424;
  border-radius: 50%;
  border: 1.5px solid #1a223a;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #090e1a;
  position: relative;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.35s ease, transform 0.4s var(--ease-spring);
  display: block;
}

.iphone-screen img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

/* Device screen selector pills */
.device-tabs-selector {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 5px;
  max-width: 100%;
  overflow-x: auto;
}

.device-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease-smooth);
}

.device-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.device-tab-btn.active {
  background: var(--gold-gradient);
  color: #030611;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--gold-glow);
}

/* ═══════════════════════════════════════════════════════════════
   PANEL 2: LIVE STATS BENTO BAR
   ═══════════════════════════════════════════════════════════════ */
.stats-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.stat-bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-bento);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.stat-bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.stat-bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-bento-card:nth-child(1) .stat-bento-icon { background: rgba(245, 158, 11, 0.12); color: var(--gold-light); }
.stat-bento-card:nth-child(2) .stat-bento-icon { background: rgba(16, 185, 129, 0.12); color: var(--emerald-light); }
.stat-bento-card:nth-child(3) .stat-bento-icon { background: rgba(6, 182, 212, 0.12); color: var(--cyan); }
.stat-bento-card:nth-child(4) .stat-bento-icon { background: rgba(139, 92, 246, 0.12); color: var(--violet); }

.stat-bento-content {
  display: flex;
  flex-direction: column;
}

.stat-bento-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-bento-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════
   PANEL 3: INTERACTIVE ROLE DASHBOARD SIMULATOR
   ═══════════════════════════════════════════════════════════════ */
.roles-dashboard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-bento);
}

.roles-dock-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.dock-role-tab {
  flex: 1;
  min-width: 220px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s var(--ease-spring);
  text-align: left;
}

.dock-role-tab:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-hover);
}

.dock-role-tab.active {
  background: rgba(245, 158, 11, 0.09);
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.dock-role-emoji {
  font-size: 30px;
  flex-shrink: 0;
}

.dock-role-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.dock-role-tab.active .dock-role-name {
  color: var(--gold-light);
}

.dock-role-sub {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

/* Simulated role view screen */
.role-simulated-view {
  background: rgba(7, 12, 24, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  animation: fadeIn 0.4s var(--ease-smooth);
}

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

.role-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.role-view-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.role-view-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}

.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--emerald-light); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-gold  { background: rgba(245, 158, 11, 0.15); color: var(--gold-light); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-blue  { background: rgba(6, 182, 212, 0.15); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.3); }

.role-grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 18px;
  transition: all 0.25s var(--ease-smooth);
}

.role-feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.rfc-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.rfc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.rfc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   PANEL 4: INTERACTIVE COST CALCULATOR & FLAT RATE BENTO
   ═══════════════════════════════════════════════════════════════ */
.pricing-bento-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.calc-interactive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.calc-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.slider-wrapper {
  margin-bottom: 24px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.slider-val-bubble {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.custom-range-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--r-pill);
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  cursor: pointer;
  box-shadow: 0 0 12px var(--gold-glow);
  border: 2px solid #030611;
  transition: transform 0.15s;
}

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

.calc-result-box {
  background: rgba(7, 12, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
}

.calc-stat-block span {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.calc-stat-block strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--emerald-light);
  display: block;
  margin-top: 4px;
}

.plans-bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
}

.plan-switch-row {
  display: flex;
  background: rgba(7, 12, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}

.plan-switch-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.plan-switch-btn.active {
  background: var(--gold-gradient);
  color: #030611;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.active-plan-display {
  background: rgba(7, 12, 24, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.apd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.apd-price-block {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.apd-price-block span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.apd-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.apd-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.apd-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.apd-features-list li .check-icon {
  color: var(--emerald-light);
  font-weight: 800;
}

.apd-features-list li strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   PANEL 5: SMART NEIGHBOR PASS WIZARD
   ═══════════════════════════════════════════════════════════════ */
.wizard-glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-bento);
  position: relative;
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.w-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.w-step-item.active {
  opacity: 1;
}

.w-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-spring);
}

.w-step-item.active .w-step-number {
  background: var(--gold-gradient);
  color: #030611;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.w-step-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.w-step-divider {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 16px;
}

/* Form inputs & controls */
.form-title-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-lead-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group-block {
  margin-bottom: 20px;
}

.form-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input-control {
  width: 100%;
  padding: 13px 18px;
  background: rgba(7, 12, 24, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px !important; /* Prevents auto-zoom on iOS */
  outline: none;
  transition: all 0.25s var(--ease-smooth);
}

.form-input-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

select.form-input-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

select.form-input-control option {
  background: #0f172a;
  color: var(--text-primary);
}

.active-community-badge-box {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.acb-icon {
  font-size: 26px;
}

.acb-details strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
}

.acb-details span {
  font-size: 12px;
  color: var(--text-secondary);
}

.acb-pill {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-light);
}

.zero-cost-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--emerald-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.btn-nav-prev {
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav-prev:hover {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
}

.btn-nav-next {
  background: var(--gold-gradient);
  border: none;
  color: #030611;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--r-md);
  cursor: pointer;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: all 0.25s var(--ease-spring);
  flex: 1;
  max-width: 320px;
  text-align: center;
}

.btn-nav-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* ── Result Credentials Pass ─────────────────────────────────── */
.credential-pass-ticket {
  background: linear-gradient(145deg, #0d1424 0%, #080d18 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-float), 0 0 50px rgba(245, 158, 11, 0.15);
  animation: ticketPop 0.5s var(--ease-spring);
}

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

.ticket-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ticket-header-text h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.ticket-header-text p {
  color: var(--text-gold);
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.ticket-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ticket-field-block {
  background: rgba(7, 12, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 14px 18px;
}

.tfb-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.tfb-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.ticket-credentials-vault {
  background: rgba(3, 6, 17, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.tcv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.tcv-row:last-child {
  border-bottom: none;
}

.tcv-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.tcv-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

.copy-confirm-alert {
  display: none;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--r-md);
  text-align: center;
  margin-bottom: 16px;
}

.ticket-actions-row {
  display: flex;
  gap: 14px;
}

.btn-copy-action {
  flex: 1;
  background: var(--gold-gradient);
  border: none;
  color: #030611;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-open-app-action {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--r-md);
  text-align: center;
  transition: all 0.2s;
}

.btn-open-app-action:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-hover);
}

/* ═══════════════════════════════════════════════════════════════
   PANEL 6: FAQ ACCORDION & TRUST FOOTER
   ═══════════════════════════════════════════════════════════════ */
.faq-bento-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-bento);
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: rgba(7, 12, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s;
}

.accordion-item.open {
  border-color: rgba(245, 158, 11, 0.35);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.accordion-chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--gold-light);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-spring), padding 0.3s;
  padding: 0 22px;
}

.accordion-item.open .accordion-content {
  max-height: 280px;
  padding: 0 22px 20px;
}

.accordion-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Trust Badges Strip */
.trust-badges-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.trust-badge-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 36px 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ── Apple StoreKit Modal ────────────────────────────────────── */
.apple-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.apple-modal-box {
  background: #0d1424;
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: var(--shadow-float);
  position: relative;
  animation: modalPop 0.3s var(--ease-spring);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* ── Helper utilities ────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive Architecture: Fluid Containers & Multi-Device Breakpoints ── */

/* ── 1. Small Desktops & Laptops (max-width: 1200px) ── */
@media (max-width: 1200px) {
  .hero-showcase-panel {
    gap: 32px;
    padding: 40px 32px;
  }
  
  .hero-headline {
    font-size: clamp(28px, 3.8vw, 46px);
  }
  
  .roles-dock-nav {
    gap: 10px;
  }
  
  .dock-role-tab {
    padding: 16px 16px;
    min-width: 190px;
  }
}

/* ── 2. Tablets & Small Laptops (max-width: 992px) ── */
@media (max-width: 992px) {
  .page-wrapper {
    padding: 24px 20px 70px;
  }

  .hero-showcase-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
    gap: 36px;
  }

  .hero-left-content {
    align-items: center;
    text-align: center;
  }

  .hero-pills-row {
    justify-content: center;
  }

  .hero-action-buttons {
    justify-content: center;
  }

  .stats-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .roles-dashboard-panel {
    padding: 30px 24px;
  }

  .role-grid-features {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .pricing-bento-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wizard-glass-panel {
    padding: 32px 24px;
  }

  .faq-bento-panel {
    padding: 30px 24px;
  }
}

/* ── 3. Phablets & Large Phones (max-width: 768px) ── */
@media (max-width: 768px) {
  .header {
    height: 62px;
  }

  .nav-container {
    padding: 0 16px;
    gap: 8px;
  }

  .nav-badge {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-logo img {
    width: 34px;
    height: 34px;
  }

  .btn-nav-cta {
    padding: 7px 14px;
    font-size: 12px;
  }

  .section-main-title {
    font-size: clamp(24px, 5vw, 32px);
  }

  .section-lead {
    font-size: 14px;
  }

  .hero-showcase-panel {
    padding: 28px 20px;
    border-radius: var(--r-lg);
    margin-bottom: 30px;
  }

  .hero-headline {
    font-size: clamp(25px, 6vw, 34px);
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-action-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    gap: 10px;
  }

  .btn-primary-glow,
  .btn-secondary-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
    font-size: 14px;
  }

  .iphone-frame {
    width: min(260px, 80vw);
    height: auto;
    aspect-ratio: 9 / 18.5;
    max-height: 520px;
    border-radius: 46px;
    padding: 10px;
  }

  .device-tabs-selector {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 4px;
  }

  .device-tab-btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  .roles-dock-nav {
    flex-direction: column;
    gap: 8px;
  }

  .dock-role-tab {
    width: 100%;
    min-width: 100%;
    padding: 14px 16px;
  }

  .role-view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .role-grid-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calc-interactive-card,
  .plans-bento-card {
    padding: 24px 18px;
    border-radius: var(--r-lg);
  }

  .calc-title {
    font-size: 20px;
  }

  .calc-result-box {
    padding: 16px;
    gap: 12px;
  }

  .wizard-glass-panel {
    padding: 24px 16px;
    border-radius: var(--r-lg);
  }

  .wizard-steps-header {
    padding-bottom: 16px;
    margin-bottom: 22px;
  }

  .w-step-label {
    display: none;
  }

  .w-step-divider {
    margin: 0 8px;
  }

  .w-step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-actions-row {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .btn-nav-prev,
  .btn-nav-next {
    width: 100%;
    max-width: 100%;
  }

  .ticket-fields-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ticket-actions-row {
    flex-direction: column;
    gap: 10px;
  }

  .btn-copy-action,
  .btn-open-app-action {
    width: 100%;
  }

  .credential-pass-ticket {
    padding: 22px 18px;
    border-radius: var(--r-lg);
  }

  .modal-card {
    max-width: 94vw;
    padding: 24px 18px;
    margin: 16px;
  }
}

/* ── 4. Standard Mobile Phones (max-width: 480px) ── */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 14px 12px 50px;
  }

  .header {
    height: 58px;
  }

  .nav-container {
    padding: 0 12px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 8.5px;
    letter-spacing: 1px;
  }

  .btn-nav-cta {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
  }

  .hero-showcase-panel {
    padding: 20px 14px;
    border-radius: var(--r-md);
    margin-bottom: 24px;
  }

  .badge-tag {
    font-size: 9.5px;
    padding: 4px 10px;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .hero-headline {
    font-size: 23px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 13.5px;
    margin-bottom: 18px;
  }

  .hero-pills-row {
    gap: 6px;
    margin-bottom: 20px;
  }

  .pill-feature {
    font-size: 10.5px;
    padding: 4px 9px;
  }

  .iphone-frame {
    width: 220px;
    border-radius: 38px;
    padding: 8px;
    box-shadow: 0 0 0 2px #3d3e42, 0 0 0 4px #1b1c20, 0 15px 40px rgba(0,0,0,0.7);
  }

  .iphone-notch {
    width: 65px;
    height: 16px;
    top: 10px;
  }

  .iphone-screen {
    border-radius: 30px;
  }

  .stats-bento-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 26px;
  }

  .stat-bento-card {
    padding: 14px 14px;
    border-radius: var(--r-md);
  }

  .stat-bento-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .stat-bento-val {
    font-size: 24px;
  }

  .roles-dashboard-panel {
    padding: 18px 12px;
    border-radius: var(--r-md);
    margin-bottom: 24px;
  }

  .role-simulated-view {
    padding: 16px 12px;
    border-radius: var(--r-md);
  }

  .pricing-bento-panel {
    gap: 14px;
    margin-bottom: 24px;
  }

  .calc-interactive-card,
  .plans-bento-card {
    padding: 18px 12px;
    border-radius: var(--r-md);
  }

  .calc-result-box {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .calc-stat-block strong {
    font-size: 22px;
  }

  .plan-switch-btn {
    font-size: 11px;
    padding: 8px 10px;
  }

  .apd-price-block {
    font-size: 30px;
  }

  .wizard-glass-panel {
    padding: 18px 12px;
    border-radius: var(--r-md);
    margin-bottom: 24px;
  }

  .form-title-heading {
    font-size: 18px;
  }

  .form-input-control {
    padding: 11px 14px;
    font-size: 16px !important;
  }

  .active-community-badge-box {
    padding: 12px 14px;
    gap: 10px;
  }

  .ticket-credentials-vault {
    padding: 14px;
  }

  .tcv-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tcv-code {
    word-break: break-all;
    font-size: 13px;
  }

  .faq-bento-panel {
    padding: 18px 12px;
    border-radius: var(--r-md);
    margin-bottom: 24px;
  }

  .accordion-trigger {
    padding: 14px 12px;
    font-size: 13px;
    gap: 10px;
  }

  .accordion-content {
    padding: 0 12px;
  }

  .accordion-item.open .accordion-content {
    padding: 0 12px 16px;
  }

  .accordion-content p {
    font-size: 13px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── 5. Compact Small Screen Devices (max-width: 360px) ── */
@media (max-width: 360px) {
  .brand-sub {
    display: none;
  }

  .hero-headline {
    font-size: 21px;
  }

  .iphone-frame {
    width: 195px;
  }

  .btn-primary-glow,
  .btn-secondary-ghost {
    font-size: 13px;
    padding: 11px 14px;
  }
}

