/* ═══════════════════════════════════════════════════════════════════════════
   BAOX STUDIO LANDING PAGE — Luxury Pearl Light Editorial Theme
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-obsidian: #f7f9fc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-solid: #ffffff;
  --bg-elevated: #f1f5f9;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --border-blue: rgba(37, 99, 235, 0.34);

  --blue-primary: #0066dc;
  --blue-bright: #0284c7;
  --cyan-glow: #0284c7;
  --emerald: #059669;
  --amber: #d97706;
  --rose: #dc2626;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 46px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 20px 55px rgba(0, 102, 220, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #ffffff 0%, #f5f8fd 55%, #eef3fa 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Ambient Luxury Pearl Background ──────────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.orb-blue {
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  top: -260px;
  left: -140px;
  opacity: 0.75;
}

.orb-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
  top: 120px;
  right: -180px;
  opacity: 0.7;
}

.orb-gold {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 72%);
  bottom: -140px;
  left: 34%;
  opacity: 0.75;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 8%, black 35%, transparent 100%);
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  max-width: 100%;
}

.btn-simulate {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

.btn-xl {
  padding: 16px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0058c4 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 102, 220, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(0, 102, 220, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: rgba(0, 102, 220, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: #ffffff;
}

.btn-simulate {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.45);
  color: #b45309;
  margin-top: 8px;
}

.btn-simulate:hover {
  background: #fef3c7;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.65);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.04);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

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

.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--blue-primary);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue-primary);
}

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

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  padding: 64px 0 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-content,
.hero-visual {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid rgba(0, 102, 220, 0.2);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  margin-bottom: 22px;
  max-width: 100%;
}

.badge-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0058c4, #0284c7);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.badge-version {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.text-gradient {
  background: linear-gradient(100deg, #0052cc 0%, #0284c7 52%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 575px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.metric-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-divider {
  display: none;
}

.metric-item + .metric-divider + .metric-item {
  border-left: 1px solid var(--border-subtle);
  padding-left: 16px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 30px;
  background: var(--border-subtle);
}

/* ─── Studio Pipeline Console (Pearl Glass Window) ─────────────────────────── */
.studio-console {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1), 0 4px 14px rgba(0, 102, 220, 0.08);
  overflow: hidden;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.console-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.console-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
}

.pipeline-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipe-step {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: #f8fafc;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.pipe-step:hover {
  background: #f1f5f9;
  border-color: var(--border-subtle);
}

.pipe-step.active {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.09);
}

.pipe-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-primary);
  width: 26px;
  flex-shrink: 0;
}

.pipe-info {
  flex: 1;
  min-width: 0;
}

.pipe-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.pipe-info span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipe-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}

.pipe-tag.highlight {
  color: #ffffff;
  background: linear-gradient(135deg, #0058c4, #0284c7);
  font-weight: 700;
}

.console-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: #f0f7ff;
  font-size: 12.5px;
  font-weight: 500;
  color: #1e40af;
}

/* ─── Sections Common ──────────────────────────────────────────────────────── */
.section {
  padding: 76px 0;
}

.section-head {
  margin-bottom: 42px;
  max-width: 700px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue-primary);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #0b1220;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ─── Video Demo Stage ─────────────────────────────────────────────────────── */
.video-stage-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b101b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-wrap video,
.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-stage-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 6px;
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.08em;
}

.video-stage-sidebar h3 {
  margin: 6px 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.spec-list li {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-list li span {
  font-size: 12px;
  color: var(--text-muted);
}

.spec-list li strong {
  font-size: 13.8px;
  color: var(--text-main);
}

.sidebar-cta-box {
  margin-top: 16px;
  padding: 15px;
  background: #f0f7ff;
  border: 1px solid rgba(0, 102, 220, 0.2);
  border-radius: var(--radius-md);
}

.sidebar-cta-box p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── Bento Features ───────────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 102, 220, 0.35);
  box-shadow: var(--shadow-card);
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: #0b1220;
}

.bento-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ─── Templates Grid ───────────────────────────────────────────────────────── */
.template-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.highlight-cat {
  border-color: rgba(0, 102, 220, 0.38);
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 70%);
  box-shadow: 0 14px 36px rgba(0, 102, 220, 0.1);
}

.cat-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  background: rgba(0, 102, 220, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.cat-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0b1220;
}

.cat-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ─── Pricing Card ─────────────────────────────────────────────────────────── */
.pricing-wrapper {
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1.5px solid rgba(0, 102, 220, 0.32);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.09), 0 0 0 6px rgba(0, 102, 220, 0.04);
}

.pricing-ribbon {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #0058c4 60%, #0284c7 100%);
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.08em;
}

.pricing-top h3 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 800;
  color: #0b1220;
}

.plan-price-box {
  text-align: right;
}

.price-old {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  color: #0052cc;
}

.price-current span {
  font-size: 24px;
  color: #0284c7;
}

.price-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald);
}

.pricing-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 26px 0;
}

.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-bottom: 30px;
}

.pf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.pf-item .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.14);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.payment-trust-bar {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Contact Section ──────────────────────────────────────────────────────── */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-info h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: #0b1220;
}

.contact-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}

a.channel-box:hover {
  border-color: rgba(0, 102, 220, 0.35);
  background: #eff6ff;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.channel-icon.zalo {
  background: #0068ff;
  color: #fff;
}

.channel-icon.tiktok {
  background: #0f172a;
  color: #ffffff;
}

.channel-icon.bank {
  background: rgba(5, 150, 105, 0.14);
  color: var(--emerald);
}

.channel-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.channel-val {
  font-size: 15px;
  color: var(--text-main);
}

.channel-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 18px;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.7);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--blue-primary);
}

/* ─── Checkout Modal ───────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.25);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  color: var(--text-main);
  cursor: pointer;
  font-size: 15px;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #0b1220;
}

.modal-head p {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 13px 15px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 220, 0.16);
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid rgba(0, 102, 220, 0.22);
  border-radius: var(--radius-sm);
}

.order-summary-line strong {
  font-size: 20px;
  color: #0052cc;
}

.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13.5px;
}

/* QR Layout */
.qr-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.qr-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.qr-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.qr-status-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0051a8;
  background: #e8f3ff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 81, 168, 0.25);
  border-top-color: #0051a8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.bank-row span {
  color: var(--text-muted);
}

.copy-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

.highlight-money {
  color: #0052cc;
  font-size: 17px;
}

.mono-code {
  font-family: var(--font-mono);
  color: #b45309;
}

.qr-timer {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 4px 0;
}

/* Success & Auto Delivery */
.success-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald);
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-text {
  color: var(--emerald);
  margin-bottom: 4px;
}

.success-banner h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #064e3b;
}

.success-banner p {
  margin: 0;
  font-size: 13.5px;
  color: #065f46;
}

.delivery-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.delivery-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.deliv-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue-primary);
}

.delivery-item h4 {
  margin: 4px 0;
  font-size: 16px;
  color: #0b1220;
}

.delivery-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hwid-guide {
  padding: 18px;
  background: #eff6ff;
  border: 1px solid rgba(0, 102, 220, 0.24);
  border-radius: var(--radius-md);
}

.hwid-guide h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #0b1220;
}

.hwid-guide ol {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid,
  .video-stage-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .template-categories,
  .pricing-features-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-item + .metric-divider + .metric-item {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 10px;
  }

  .qr-layout {
    grid-template-columns: 1fr;
  }

  .qr-box {
    max-width: 260px;
    margin: 0 auto;
  }

  .pricing-card,
  .modal-panel {
    padding: 22px;
  }

  .plan-price-box {
    text-align: left;
  }
}
