/* ============================================
   iPhone 17 Funnel — Shared Styles
   Apple-inspired minimalism · RTL Arabic · Mobile-first
   ============================================ */

:root {
  /* Palette */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #0a0a0a;
  --bg-dark-soft: #1d1d1f;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #0058b8;
  --gold: #c9a961;
  --success: #1f9d55;
  --danger: #e02424;
  --warn: #f59e0b;

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(20, 20, 22, 0.65);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 30px 60px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 30px 80px rgba(0, 30, 80, 0.18);

  /* Type scale */
  --fs-display: clamp(2.4rem, 7vw, 4.6rem);
  --fs-h1: clamp(1.85rem, 5vw, 3rem);
  --fs-h2: clamp(1.4rem, 4vw, 2.1rem);
  --fs-h3: clamp(1.15rem, 3vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-tiny: 0.78rem;

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

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 360ms;
  --t-slow: 700ms;
}

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

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

body {
  margin: 0;
  font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  direction: rtl;
}

img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* Numerics: keep latin numerals readable */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ============================================
   Layout primitives
   ============================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding-block: clamp(56px, 9vw, 110px); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.h-display {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #0a0a0a 0%, #2a2a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { letter-spacing: -0.015em; margin: 0 0 12px; }
h2 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.1; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }

/* ============================================
   Navbar (glass)
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--glass);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding-inline: 22px;
  max-width: 1180px;
  margin-inline: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a0a0a, #3a3a3c);
  display: grid; place-items: center;
  color: #fff; font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.nav-cta {
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-press) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 113, 227, 0.38); }
.btn-primary:active { transform: translateY(0); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}
.btn-ghost:hover { background: #ececef; }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.08rem; }

/* CTA pulse hint */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0, 113, 227, 0.32), 0 0 0 0 rgba(0, 113, 227, 0.45); }
  50% { box-shadow: 0 8px 22px rgba(0, 113, 227, 0.32), 0 0 0 14px rgba(0, 113, 227, 0); }
}
.btn-pulse { animation: ctaPulse 2.4s ease-out infinite; }

/* ============================================
   Reveal-on-scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 60ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 140ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 220ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 380ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 460ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================
   Cards & glass surfaces
   ============================================ */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.card-glass {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Trust strip
   ============================================ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  font-weight: 600;
}
.trust-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #fff;
  display: grid; place-items: center;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item { font-size: 0.82rem; }
}

/* ============================================
   Form fields
   ============================================ */
.field {
  display: block;
  margin-bottom: 16px;
}
.field-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field-input,
.field-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.02rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}
.field-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(224, 36, 36, 0.10);
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: var(--fs-tiny);
  color: var(--danger);
  font-weight: 600;
}
.field-error.show { display: block; }

.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.phone-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}
.phone-input-wrap.error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(224, 36, 36, 0.10); }
.phone-prefix {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px;
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  border-inline-start: 1px solid var(--line);
  direction: ltr;
}
.phone-input-wrap input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 1.02rem;
  background: transparent;
  outline: none;
  direction: ltr;
  text-align: right;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 28px;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.footer .disclaimer {
  margin-top: 16px;
  font-size: var(--fs-tiny);
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 80ch;
}

/* ============================================
   Modal (privacy / terms)
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
  background: #fff;
  border-radius: var(--r-lg);
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.98);
  transition: transform 320ms var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal h3 { font-size: 1.4rem; margin-bottom: 14px; }
.modal p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.75; }
.modal-close {
  float: left;
  padding: 6px 10px;
  font-size: 1.4rem;
  color: var(--ink-mute);
}

/* ============================================
   ============================================
   LANDING PAGE
   ============================================
   ============================================ */

/* HERO */
.hero {
  position: relative;
  padding: 32px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(0, 113, 227, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 100%, rgba(201, 169, 97, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding: 18px 0 30px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-pill);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.18);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); }
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #0071e3 0%, #1f9d55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 50ch;
  line-height: 1.6;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.hero-meta {
  font-size: 0.92rem;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px;
}

/* Stock urgency bar */
.stock-bar {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  max-width: 460px;
}
.stock-bar .stock-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff5e1, #fde2c0);
  display: grid; place-items: center;
  color: #b8731a;
  flex-shrink: 0;
}
.stock-bar .stock-text { font-size: 0.92rem; }
.stock-bar .stock-text strong { color: var(--ink); }
.stock-bar .stock-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.stock-bar .stock-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 28%;
  background: linear-gradient(90deg, #f59e0b, #e02424);
  border-radius: 999px;
  animation: stockShimmer 3s ease-in-out infinite;
}
@keyframes stockShimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* HERO PHONE — pure CSS iPhone mockup, floating */
.phone-stage {
  position: relative;
  height: clamp(420px, 55vh, 580px);
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.25) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.iphone-mockup {
  position: relative;
  width: clamp(220px, 50vw, 300px);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2a2c 0%, #0a0a0a 60%, #1a1a1c 100%);
  box-shadow:
    0 60px 80px rgba(0, 0, 0, 0.35),
    0 30px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 4px rgba(0, 0, 0, 0.4);
  padding: 10px;
  z-index: 2;
  animation: floatPhone 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.iphone-mockup::before { /* side button */
  content: '';
  position: absolute;
  left: -3px;
  top: 30%;
  width: 4px;
  height: 60px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1a1a1c, #3a3a3c);
}
.iphone-mockup::after { /* volume */
  content: '';
  position: absolute;
  right: -3px;
  top: 20%;
  width: 4px;
  height: 90px;
  border-radius: 2px;
  background: linear-gradient(-90deg, #1a1a1c, #3a3a3c);
  box-shadow: 0 110px 0 -2px #1a1a1c;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-6deg); }
  50% { transform: translateY(-14px) rotateX(2deg) rotateY(-6deg); }
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(140deg, #001b3a 0%, #002b5e 30%, #1f9d55 100%);
  overflow: hidden;
}
.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 14px;
  background: #000;
  z-index: 3;
}
.iphone-screen .glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
  animation: glareSlide 5s ease-in-out infinite;
}
@keyframes glareSlide {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}
.iphone-screen .island-text {
  position: absolute;
  top: 70px; right: 22px; left: 22px;
  color: rgba(255,255,255,0.95);
  text-align: center;
}
.iphone-screen .island-text .big {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.iphone-screen .island-text .sm { font-size: 0.82rem; opacity: 0.85; }

.floating-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatTag 6s ease-in-out infinite;
}
.floating-tag .tag-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--accent);
}
.floating-tag.t1 { top: 16%; right: -10px; animation-delay: 0s; }
.floating-tag.t2 { bottom: 22%; left: -20px; animation-delay: -2s; }
.floating-tag.t3 { top: 50%; right: -30px; animation-delay: -4s; }
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 600px) {
  .floating-tag.t3 { display: none; }
  .floating-tag { padding: 8px 12px; font-size: 0.74rem; }
}

/* ============================================
   VARIANT PICKER
   ============================================ */
.picker {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
}
.picker-head { text-align: center; margin-bottom: 26px; }
.picker-head h2 { margin-bottom: 8px; }
.picker-head p { color: var(--ink-mute); margin: 0; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 720px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
}
.model-tile {
  position: relative;
  background: #fff;
  border: 2px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
  transition: all var(--t-fast) var(--ease);
}
.model-tile:hover { border-color: var(--ink-mute); transform: translateY(-2px); }
.model-tile.selected {
  border-color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  box-shadow: var(--shadow-md);
}
.model-tile .tile-name { font-weight: 800; font-size: 0.98rem; margin-bottom: 4px; }
.model-tile .tile-price { color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.model-tile .badge-pop {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem;
  background: linear-gradient(135deg, #f59e0b, #e02424);
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(224, 36, 36, 0.3);
}

.option-row { margin-bottom: 22px; }
.option-row .opt-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.option-row .opt-current { color: var(--ink-mute); font-weight: 500; }

.color-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.color-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  font-size: 0.88rem;
  font-weight: 600;
  background: #fff;
}
.color-swatch:hover { border-color: var(--ink-mute); }
.color-swatch.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--bg-soft);
}
.color-swatch .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.15);
}

.storage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 540px) { .storage-grid { grid-template-columns: repeat(2, 1fr); } }
.storage-tile {
  background: #fff;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: all var(--t-fast) var(--ease);
}
.storage-tile:hover { border-color: var(--ink-mute); }
.storage-tile.selected { border-color: var(--ink); background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.storage-tile .s-size { font-weight: 800; font-size: 0.98rem; }
.storage-tile .s-extra { font-size: 0.78rem; color: var(--ink-mute); margin-top: 2px; }

/* Payment plan toggle */
.plan-section { margin-top: 28px; }
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative;
  border: 2px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: all var(--t-fast) var(--ease);
}
.plan-card:hover { border-color: var(--ink-mute); }
.plan-card .plan-title { font-weight: 800; font-size: 1.02rem; margin-bottom: 4px; }
.plan-card .plan-sub { font-size: 0.84rem; color: var(--ink-mute); }
.plan-card.selected.full {
  border-color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #f7f7f9 100%);
}
.plan-card.installment {
  background: linear-gradient(135deg, #0071e3 0%, #003d80 100%);
  color: #fff;
  border-color: transparent;
}
.plan-card.installment .plan-sub { color: rgba(255, 255, 255, 0.85); }
.plan-card.installment .badge-best {
  position: absolute; top: -10px; right: 14px;
  background: #c9a961; color: #0a0a0a;
  font-size: 0.66rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(201, 169, 97, 0.45);
}
.plan-card.installment.selected {
  outline: 3px solid #c9a961;
  outline-offset: 2px;
  transform: scale(1.005);
  box-shadow: 0 12px 28px rgba(0, 61, 128, 0.4);
}

/* Installment details panel */
.installment-panel {
  margin-top: 14px;
  background: linear-gradient(135deg, #fff8e8 0%, #fef3d2 100%);
  border: 1.5px solid #f3d97a;
  border-radius: var(--r-md);
  padding: 18px;
  display: none;
  animation: slideDown 380ms var(--ease);
}
.installment-panel.show { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.installment-panel .ip-headline {
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: #5a4209;
}
.installment-panel .ip-sub {
  color: #745318;
  font-size: 0.94rem;
  margin-bottom: 12px;
}
.installment-panel .ip-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed #d9b95c;
  font-size: 0.94rem;
}
.installment-panel .ip-row strong { color: #4a3608; font-weight: 800; }
.installment-panel .ip-note {
  margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem;
  color: #5a4209;
  font-weight: 600;
}

/* Total + CTA */
.total-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
}
.total-row .t-label { font-size: 0.86rem; color: var(--ink-mute); font-weight: 600; }
.total-row .t-amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.total-row .t-note { font-size: 0.78rem; color: var(--success); font-weight: 700; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  min-height: 260px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .f-tag {
  font-size: var(--fs-tiny);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.feature-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.feature-card.dark {
  background: linear-gradient(140deg, #0a0a0a 0%, #1d1d1f 100%);
  color: #fff;
  border-color: transparent;
}
.feature-card.dark p { color: rgba(255,255,255,0.78); }
.feature-card.dark .f-tag { color: #c9a961; }

.feature-visual {
  margin-top: 20px;
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  border-radius: var(--r-md);
}
.feature-visual.cam { background: radial-gradient(circle at 30% 30%, #2a2a2c, #0a0a0a); color: #c9a961; }
.feature-visual.chip {
  background: radial-gradient(circle at 50% 50%, #0071e3 0%, #001b3a 80%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.feature-visual.battery {
  background: linear-gradient(135deg, #1f9d55, #003e1d);
  color: #fff;
}
.feature-visual.display {
  background: linear-gradient(135deg, #ff8a00, #e91e63, #0071e3);
  color: #fff;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { background: var(--bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; font-size: 0.96rem; }
.review-card .review-text { color: var(--ink-soft); margin: 0 0 16px; font-size: 0.96rem; line-height: 1.7; }
.review-card .reviewer {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.review-card .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #1f9d55);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.review-card .who-name { font-weight: 700; font-size: 0.95rem; }
.review-card .who-loc { font-size: 0.8rem; color: var(--ink-mute); }
.review-card .verified {
  margin-inline-start: auto;
  font-size: 0.74rem;
  color: var(--success);
  font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}

/* Final CTA */
.final-cta {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(0,113,227,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(201,169,97,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #1d1d1f 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 80px) 28px;
  margin-block: 60px;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  background: linear-gradient(180deg, #fff 0%, #c9a961 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.final-cta p { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto 26px; }


/* ============================================
   ============================================
   CHECKOUT PAGE
   ============================================
   ============================================ */
.checkout-wrap {
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
  min-height: 100vh;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding-block: 32px 60px;
}
@media (max-width: 920px) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-section {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  padding: clamp(20px, 3.4vw, 32px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.checkout-section h2 {
  font-size: 1.3rem;
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.checkout-section h2 .step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Payment options */
.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: #fff;
}
.pay-option:hover { border-color: var(--ink-mute); }
.pay-option.selected {
  border-color: var(--ink);
  background: #fbfbfd;
  box-shadow: var(--shadow-sm);
}
.pay-option .pay-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: border-color var(--t-fast);
}
.pay-option.selected .pay-radio { border-color: var(--ink); }
.pay-option.selected .pay-radio::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.pay-option .pay-info { flex: 1; }
.pay-option .pay-title { font-weight: 700; font-size: 0.98rem; }
.pay-option .pay-desc { font-size: 0.84rem; color: var(--ink-mute); }
.pay-option .pay-icons { display: flex; gap: 6px; }
.pay-icon {
  height: 24px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* Order summary (sticky) */
.summary {
  position: sticky;
  top: 70px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.summary h3 { font-size: 1.1rem; margin: 0 0 16px; }
.summary-product {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.summary-thumb {
  width: 80px;
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(160deg, #2a2a2c 0%, #0a0a0a 100%);
  flex-shrink: 0;
  position: relative;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.summary-thumb::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 11px;
  background: linear-gradient(140deg, #001b3a 0%, #1f9d55 100%);
}
.summary-thumb::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 6px;
  border-radius: 3px;
  background: #000;
  z-index: 2;
}
.summary-product .sp-info { flex: 1; }
.summary-product .sp-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.summary-product .sp-meta { font-size: 0.84rem; color: var(--ink-mute); margin-bottom: 6px; }
.summary-product .sp-price { font-weight: 800; font-size: 1.05rem; color: var(--ink); }

.summary-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.summary-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
}
.summary-row.installment-row {
  color: #5a4209;
  background: linear-gradient(135deg, #fff8e8, #fef3d2);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-block: 6px;
  font-weight: 700;
}

.summary-trust {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.summary-trust .st {
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-weight: 600;
}
.summary-trust .st-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 4px;
}

/* ============================================
   ============================================
   OTP PAGE
   ============================================
   ============================================ */
.otp-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,113,227,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(31,157,85,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}
.otp-card {
  width: 100%;
  max-width: 460px;
  background: var(--glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: otpRise 600ms var(--ease-out) both;
}
@keyframes otpRise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.otp-icon {
  width: 70px; height: 70px;
  border-radius: 20px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #0071e3 0%, #003d80 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.35);
  position: relative;
}
.otp-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(0, 113, 227, 0.25);
  border-radius: 26px;
  animation: otpRing 2s ease-out infinite;
}
@keyframes otpRing {
  0% { opacity: 1; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.2); }
}
.otp-card h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.otp-card .otp-sub {
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-size: 0.98rem;
}
.otp-card .otp-phone {
  font-weight: 800;
  color: var(--ink);
  direction: ltr;
  display: inline-block;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 26px 0 18px;
  direction: ltr;
}
.otp-input {
  width: clamp(44px, 12vw, 56px);
  aspect-ratio: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
  font-variant-numeric: tabular-nums;
}
.otp-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
  transform: translateY(-2px);
}
.otp-input.filled {
  border-color: var(--accent);
  background: #f0f7ff;
}
.otp-inputs.error .otp-input {
  border-color: var(--danger);
  animation: shake 420ms ease-in-out;
}
.otp-inputs.success .otp-input {
  border-color: var(--success);
  background: #f0fdf4;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.otp-error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.otp-error-msg.show { display: block; }

.otp-resend {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.otp-resend .resend-btn {
  color: var(--accent);
  font-weight: 700;
  margin-inline-start: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.otp-resend .resend-btn:disabled {
  color: var(--ink-mute);
  text-decoration: none;
  cursor: not-allowed;
}
.otp-timer { font-weight: 800; color: var(--ink); direction: ltr; display: inline-block; }

.otp-success {
  display: none;
  text-align: center;
}
.otp-success.show { display: block; }
.success-tick {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f9d55, #047857);
  display: grid; place-items: center;
  color: #fff;
  font-size: 2.4rem;
  box-shadow: 0 14px 30px rgba(31, 157, 85, 0.35);
  animation: tickPop 600ms var(--ease-out) both;
}
@keyframes tickPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.otp-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--ink-mute);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
}
