/* =====================================================
   TAMIM STUDIO — Cinematic Design System
   Thmanyah typeface:
   - Serif Display → headings   - Serif Text → body
   - Sans → UI / digits
   ===================================================== */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Text';
  src: url('fonts/thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Text';
  src: url('fonts/thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Serif Text';
  src: url('fonts/thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* =====================================================
   Design Tokens
   ===================================================== */
:root {
  --bg: #030304;
  --bg-2: #0a0a0e;
  --ink: #ffffff;
  --vio: #8b5cf6;
  --vio-deep: #6d28d9;
  --cyn: #22d3ee;
  --gold: #e9c372;
  --gold-deep: #c89a4b;
  --rose: #fb7185;
  --mint: #34d399;
  --grad-a: linear-gradient(120deg, #a78bfa 0%, #22d3ee 100%);
  --grad-gold: linear-gradient(120deg, #f3d9a4 0%, #c89a4b 100%);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.45s;
  --nav-h: 76px;
  --shadow-1: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
  --shadow-2: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow-vio: 0 0 60px -12px rgba(139, 92, 246, 0.45);
  --glow-gold: 0 0 50px -10px rgba(233, 195, 114, 0.35);
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Thmanyah Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
  animation: page-enter 0.6s var(--ease) both;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #060608; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 2px solid #060608;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.8);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =====================================================
   Typography
   ===================================================== */
.font-display {
  font-family: 'Thmanyah Serif Display', 'Thmanyah Sans', serif;
  line-height: 1.35;
  font-feature-settings: 'salt' 1, 'ss01' 1;
}
.font-serif-text {
  font-family: 'Thmanyah Serif Text', 'Thmanyah Sans', serif;
  line-height: 1.9;
  font-feature-settings: 'salt' 1;
}
.font-ui { font-family: 'Thmanyah Sans', system-ui, sans-serif; }

.text-kashida {
  text-align: justify;
  text-justify: inter-word;
  text-justify: kashida;
}
.tabular-nums { font-feature-settings: 'tnum' 1; font-variant-numeric: tabular-nums; }

.grad-text {
  background: var(--grad-a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(233, 195, 114, 0.9);
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 195, 114, 0.6));
}
.eyebrow::after {
  background: linear-gradient(90deg, rgba(233, 195, 114, 0.6), transparent);
}

/* =====================================================
   Liquid Glass Surfaces
   ===================================================== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
}
.liquid-glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.12) 22%,
    rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 58%,
    rgba(255, 255, 255, 0.12) 78%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255, 255, 255, 0.022);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), var(--shadow-2);
  position: relative;
}
.liquid-glass-strong::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.3px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.16) 22%,
    rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 58%,
    rgba(255, 255, 255, 0.16) 78%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-clip { overflow: hidden; }

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* Cursor spotlight — JS feeds --mx / --my */
.spotlight::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.spotlight:hover::after { opacity: 1; }

/* 3D tilt — JS feeds --rx / --ry */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease);
}
/* Promote to a compositor layer only while interacting — an always-on
   will-change kept every .tilt card (30+ in the grid) permanently layered,
   bloating GPU memory and compositing cost. */
.tilt:hover { will-change: transform; }

.hover-lift {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2), var(--glow-vio);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.96); }
.btn .icon { width: 18px; height: 18px; }

.btn-solid {
  background: #fff;
  color: #000;
  box-shadow: 0 12px 36px -12px rgba(255, 255, 255, 0.35);
}
.btn-solid:hover {
  box-shadow: 0 18px 50px -12px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-gradient {
  background: linear-gradient(120deg, #7c3aed, #2563eb 50%, #06b6d4);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: var(--glow-vio);
}
.btn-gradient:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 0 80px -10px rgba(139, 92, 246, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-gold {
  background: var(--grad-gold);
  color: #1a1205;
  font-weight: 700;
  box-shadow: var(--glow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 70px -8px rgba(233, 195, 114, 0.55); }

/* Sheen sweep on hover */
.btn-sheen::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.btn-sheen:hover::after { left: 130%; }

/* Ripple span injected by JS */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-out 0.6s var(--ease) forwards;
  pointer-events: none;
}
@keyframes ripple-out {
  to { transform: scale(3.2); opacity: 0; }
}

.btn.is-loading { pointer-events: none; opacity: 0.85; }
.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.spinner.light { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   Scroll Progress + Back-to-top
   ===================================================== */
.scroll-progress {
  position: fixed;
  top: 0; right: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyn), var(--vio), var(--gold));
  z-index: 90;
  border-radius: 0 0 0 4px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.back-top {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 60;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  color: #fff;
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-spring);
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { box-shadow: var(--glow-vio); }
.back-top .icon { width: 20px; height: 20px; }

/* =====================================================
   Toasts
   ===================================================== */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(92vw, 380px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 16px;
  padding: 0.8rem 1.1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  animation: toast-in 0.45s var(--ease-spring) both;
  box-shadow: var(--shadow-2);
}
.toast.leaving { animation: toast-out 0.3s var(--ease) both; }
.toast .toast-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.toast .toast-icon .icon { width: 15px; height: 15px; }
.toast.success .toast-icon { background: rgba(52, 211, 153, 0.18); color: var(--mint); }
.toast.info .toast-icon { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.toast.error .toast-icon { background: rgba(251, 113, 133, 0.18); color: var(--rose); }
.toast.gold .toast-icon { background: rgba(233, 195, 114, 0.16); color: var(--gold); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 0.9rem 1.25rem;
  transition: transform 0.45s var(--ease);
}
.navbar.hidden { transform: translateY(-120%); }

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.navbar.scrolled .nav-container {
  background: rgba(8, 8, 12, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), var(--shadow-1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-spring);
}
.nav-logo:hover { transform: scale(1.04); }
.nav-logo:active { transform: scale(0.97); }
.nav-logo .icon { width: 22px; height: 22px; color: var(--gold); }
.nav-logo .divider { color: rgba(255, 255, 255, 0.35); margin: 0 0.2rem; font-weight: 300; }
.nav-logo .latin { color: rgba(255, 255, 255, 0.75); font-weight: 400; }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.4rem;
}
@media (min-width: 860px) { .nav-links { display: flex; } }

.nav-links a {
  position: relative;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 50%;
  transform: translateX(50%);
  width: 18px; height: 2.5px;
  border-radius: 99px;
  background: var(--grad-gold);
  box-shadow: 0 0 10px rgba(233, 195, 114, 0.7);
}

.nav-actions { display: flex; align-items: center; gap: 0.55rem; }

.nav-icon-btn {
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-radius: 999px;
  width: 44px; height: 44px;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: color 0.2s, background 0.2s, transform 0.25s var(--ease-spring);
}
.nav-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); transform: scale(1.06); }
.nav-icon-btn:active { transform: scale(0.94); }
.nav-icon-btn .icon { width: 19px; height: 19px; }

.nav-cta { display: none; }
@media (min-width: 1020px) {
  .nav-cta {
    display: inline-flex;
    padding: 0.6rem 1.3rem;
    font-size: 0.875rem;
  }
}

.menu-btn { display: flex; }
@media (min-width: 860px) { .menu-btn { display: none; } }

.cart-count {
  position: absolute;
  top: -3px;
  inset-inline-start: -3px;
  min-width: 19px; height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #1a1205;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(233, 195, 114, 0.7);
  animation: badge-pop 0.4s var(--ease-spring);
}
@keyframes badge-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ---- Mobile full-screen menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 7, 0.82);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.6rem 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.mobile-menu nav a {
  font-size: 2.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.55rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover, .mobile-menu nav a.active { color: var(--gold); }
.mobile-menu nav a .icon { width: 22px; height: 22px; opacity: 0.5; }
.mobile-menu nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu nav a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu nav a:nth-child(5) { transition-delay: 0.32s; }

.mobile-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* =====================================================
   Hero — cinematic aurora stage
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38% 42% at 22% 28%, rgba(109, 40, 217, 0.34), transparent 70%),
    radial-gradient(34% 38% at 78% 24%, rgba(8, 145, 178, 0.26), transparent 70%),
    radial-gradient(40% 44% at 55% 82%, rgba(200, 154, 75, 0.14), transparent 70%);
  filter: blur(40px);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(3%, -2%) rotate(4deg) scale(1.06); }
  100% { transform: translate(-3%, 2%) rotate(-3deg) scale(1.02); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
  animation: orb-float 14s ease-in-out infinite alternate;
}
.hero-orb.o1 { width: 340px; height: 340px; top: 12%; right: 8%; background: rgba(139, 92, 246, 0.3); }
.hero-orb.o2 { width: 260px; height: 260px; bottom: 16%; left: 6%; background: rgba(34, 211, 238, 0.22); animation-delay: -5s; }
.hero-orb.o3 { width: 200px; height: 200px; top: 48%; left: 38%; background: rgba(233, 195, 114, 0.13); animation-delay: -9s; }
@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 36px) scale(1.12); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(3, 3, 4, 0.7) 0%, rgba(3, 3, 4, 0.18) 42%,
    rgba(3, 3, 4, 0.55) 78%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 5.5rem;
  text-align: center;
  max-width: 100%;
  will-change: transform, opacity;
}

.hero-tag {
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-tag .icon { width: 15px; height: 15px; color: var(--gold); }
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 7.2vw, 4.9rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.6rem;
  max-width: 1020px;
  line-height: 1.25;
  text-wrap: balance;
}

/* Rotating word */
.rotator {
  display: inline-grid;
  text-align: center;
  vertical-align: bottom;
  overflow: hidden;
}
.rotator > span {
  grid-area: 1 / 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(105%);
  transition: transform 0.65s var(--ease), opacity 0.5s var(--ease);
  white-space: nowrap;
}
.rotator > span.in { opacity: 1; transform: translateY(0); }
.rotator > span.out { opacity: 0; transform: translateY(-105%); }

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 46rem;
  margin: 0 auto 2.6rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.6rem;
  margin-top: 2.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust .icon { width: 15px; height: 15px; color: rgba(233, 195, 114, 0.8); }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  right: 50%;
  transform: translateX(50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  animation: hint-bob 2.4s ease-in-out infinite;
}
.scroll-hint .icon { width: 16px; height: 16px; }
@keyframes hint-bob {
  0%, 100% { transform: translate(50%, 0); opacity: 0.55; }
  50% { transform: translate(50%, 8px); opacity: 1; }
}

/* =====================================================
   Stats band
   ===================================================== */
.stats-band { padding: 1rem 1.5rem 0; }
.stats-grid {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-cell {
  padding: 1.9rem 1.2rem;
  text-align: center;
  position: relative;
}
.stat-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
@media (max-width: 859px) {
  .stat-cell:nth-child(2)::after { display: none; }
}
.stat-value {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
}
.stat-suffix { font-size: 0.6em; color: var(--gold); font-weight: 500; }
.stat-label { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; margin-top: 0.35rem; }

/* =====================================================
   Logo marquee
   ===================================================== */
.marquee-section { padding: 4.5rem 0 1rem; }
.marquee-label {
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.6rem;
}
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-rtl 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.marquee-pill {
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
.marquee-pill:hover { color: #fff; }
.marquee-pill .icon { width: 15px; height: 15px; opacity: 0.6; }

/* =====================================================
   Sections base
   ===================================================== */
.section { position: relative; padding: 6.5rem 1.5rem; overflow: hidden; }
.section-tight { padding: 4.5rem 1.5rem; }

.container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.55;
}
.ambient.vio {
  background:
    radial-gradient(ellipse at 28% 0%, rgba(124, 58, 237, 0.16), transparent 58%),
    radial-gradient(ellipse at 72% 100%, rgba(14, 165, 233, 0.12), transparent 55%);
}
.ambient.gold {
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 154, 75, 0.1), transparent 55%);
}
.ambient.center {
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.05), transparent 55%);
}

.section-header { text-align: center; margin-bottom: 3.8rem; }
.section-header.start { text-align: start; }

.section-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.06em;
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-wrap: balance;
}
.section-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  max-width: 38rem;
  margin: 0 auto;
}
.section-header.start .section-desc { margin: 0; }

/* =====================================================
   Template / Portfolio Cards
   ===================================================== */
.tpl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 680px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }

.tpl-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  /* Skip rendering (layout, paint, the backdrop-filter blur) for cards that
     aren't near the viewport. With 30 glass cards this is the largest scroll
     win on a MacBook. contain-intrinsic-size reserves space so the scrollbar
     and IntersectionObservers stay stable while a card is skipped. */
  content-visibility: auto;
  contain-intrinsic-size: auto 460px;
}
.tpl-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-2), var(--glow-vio);
}
.tpl-card.entering { animation: card-enter 0.55s var(--ease) both; }
@keyframes card-enter {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.tpl-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tpl-preview .mock {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}
.tpl-card:hover .tpl-preview .mock { transform: scale(1.05) translateY(-6px); }

.window-chrome {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.85rem;
  display: flex;
  gap: 0.34rem;
  z-index: 5;
}
.window-chrome span { width: 9px; height: 9px; border-radius: 999px; }
.window-chrome span:nth-child(1) { background: rgba(255, 255, 255, 0.32); }
.window-chrome span:nth-child(2) { background: rgba(255, 255, 255, 0.2); }
.window-chrome span:nth-child(3) { background: rgba(255, 255, 255, 0.14); }

.floating-glow {
  position: absolute;
  bottom: -3rem;
  inset-inline-end: -3rem;
  width: 15rem; height: 15rem;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.85;
}

.tpl-badge-row {
  position: absolute;
  bottom: 0.9rem;
  inset-inline: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
}
.tpl-tag {
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tpl-tag .icon { width: 12px; height: 12px; }

.tpl-hot {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.8rem;
  z-index: 6;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--grad-gold);
  color: #1a1205;
  box-shadow: var(--glow-gold);
}

/* hover action veil */
.tpl-actions {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: rgba(3, 3, 6, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.tpl-card:hover .tpl-actions, .tpl-card:focus-within .tpl-actions { opacity: 1; }
.tpl-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.tpl-card:hover .tpl-actions .btn { transform: none; }
.tpl-actions .btn:nth-child(2) { transition-delay: 0.06s; }

.tpl-info { padding: 1.2rem 1.3rem 1.35rem; }
.tpl-name {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tpl-name .latin {
  font-family: 'Thmanyah Sans', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}
.tpl-desc {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpl-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
}
.tpl-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.tpl-meta .icon { width: 13px; height: 13px; }

/* ---- CSS faux mockup variants ---- */
.mock { padding: 2.4rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.mk-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); }
.mk-bar.w60 { width: 60%; }
.mk-bar.w40 { width: 40%; }
.mk-bar.w75 { width: 75%; }
.mk-bar.dim { background: rgba(255, 255, 255, 0.12); }
.mk-block { border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.mk-row { display: flex; gap: 0.55rem; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.mk-grid .mk-block { height: 3.1rem; }
.mk-grid .mk-block:nth-child(2) { background: rgba(255, 255, 255, 0.17); }

/* storefront */
.mock.v-store .mk-hero { height: 3.4rem; border-radius: 12px; background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)); }
.mock.v-store .mk-grid .mk-block { position: relative; }
.mock.v-store .mk-grid .mk-block::after {
  content: ''; position: absolute; bottom: 6px; right: 6px; left: 6px;
  height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.25);
}

/* dashboard */
.mock.v-dash { flex-direction: row; gap: 0.7rem; }
.mock.v-dash .mk-side { width: 22%; border-radius: 12px; background: rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 0.45rem; padding: 0.55rem; }
.mock.v-dash .mk-side i { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); }
.mock.v-dash .mk-main { flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.mk-chart { flex: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.07); display: flex; align-items: flex-end; gap: 8%; padding: 0.7rem 0.8rem; }
.mk-chart i {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12));
  transform-origin: bottom;
  animation: bar-grow 1.1s var(--ease) both;
}
.mk-chart i:nth-child(1) { height: 45%; }
.mk-chart i:nth-child(2) { height: 80%; animation-delay: 0.08s; }
.mk-chart i:nth-child(3) { height: 58%; animation-delay: 0.16s; }
.mk-chart i:nth-child(4) { height: 92%; animation-delay: 0.24s; }
.mk-chart i:nth-child(5) { height: 68%; animation-delay: 0.32s; }
@keyframes bar-grow { from { transform: scaleY(0); } }
.tpl-card:hover .mk-chart i { animation: bar-grow 0.8s var(--ease) both; }

/* editorial */
.mock.v-edit .mk-title { height: 14px; width: 70%; border-radius: 99px; background: rgba(255, 255, 255, 0.3); }
.mock.v-edit .mk-article { display: flex; gap: 0.6rem; align-items: center; }
.mock.v-edit .mk-article .mk-thumb { width: 30%; height: 2.4rem; border-radius: 8px; background: rgba(255, 255, 255, 0.13); flex-shrink: 0; }
.mock.v-edit .mk-article div { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }

/* showcase / masonry */
.mock.v-show .mk-masonry { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.55rem; flex: 1; }
.mock.v-show .mk-masonry .mk-block:nth-child(1) { grid-row: span 2; background: linear-gradient(160deg, rgba(255,255,255,0.2), rgba(255,255,255,0.07)); }
.mock.v-show .mk-masonry .mk-block { min-height: 2.4rem; }

/* landing */
.mock.v-land { align-items: center; text-align: center; }
.mock.v-land .mk-bar { margin: 0 auto; }
.mock.v-land .mk-cta { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.2rem; }
.mock.v-land .mk-cta i { display: block; width: 3.2rem; height: 1.1rem; border-radius: 99px; }
.mock.v-land .mk-cta i:first-child { background: rgba(255, 255, 255, 0.85); }
.mock.v-land .mk-cta i:last-child { background: rgba(255, 255, 255, 0.15); }
.mock.v-land .mk-row { width: 100%; margin-top: 0.4rem; }
.mock.v-land .mk-row .mk-block { flex: 1; height: 2.2rem; }

/* app / phone */
.mock.v-app { flex-direction: row; align-items: center; justify-content: center; gap: 1.2rem; }
.mock.v-app .mk-phone {
  width: 34%; height: 82%;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.4rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.mock.v-app .mk-phone i { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); }
.mock.v-app .mk-phone i.big { height: 2rem; border-radius: 8px; background: rgba(255, 255, 255, 0.14); }
.mock.v-app .mk-copy { width: 38%; display: flex; flex-direction: column; gap: 0.5rem; }

/* =====================================================
   Filters bar (portfolio)
   ===================================================== */
.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.6rem;
}
@media (min-width: 900px) {
  .filters-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pill {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.filter-pill .count {
  font-size: 0.7rem;
  opacity: 0.6;
}
.filter-pill:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
.filter-pill.active {
  background: #fff;
  color: #000;
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.4);
}
.filter-pill.active .count { opacity: 0.55; }

.search-slot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  min-width: min(100%, 300px);
}
.search-slot .icon { width: 17px; height: 17px; color: rgba(255, 255, 255, 0.45); flex-shrink: 0; }
.search-slot input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
}
.search-slot input::placeholder { color: rgba(255, 255, 255, 0.38); }

.results-line {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}
.results-line b { color: var(--gold); font-weight: 700; }

.no-results {
  text-align: center;
  padding: 4.5rem 1rem;
  border-radius: var(--r-lg);
}
.no-results .icon { width: 38px; height: 38px; color: rgba(255, 255, 255, 0.3); margin: 0 auto 1rem; }
.no-results p { color: rgba(255, 255, 255, 0.55); }

/* =====================================================
   Template Modal
   ===================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(2, 2, 4, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal-card {
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--r-xl);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s var(--ease-spring);
}
.modal-backdrop.open .modal-card { transform: none; }

.modal-hero {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}
.modal-close:hover { transform: rotate(90deg) scale(1.08); background: rgba(255, 255, 255, 0.1); }
.modal-close .icon { width: 18px; height: 18px; }

.modal-body { padding: 1.8rem; }
@media (min-width: 768px) { .modal-body { padding: 2.2rem 2.4rem; } }

.modal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.modal-title { font-size: 1.9rem; color: #fff; }
.modal-desc { color: rgba(255, 255, 255, 0.7); margin-bottom: 1.6rem; max-width: 56ch; }

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.modal-stat {
  border-radius: var(--r-md);
  padding: 0.9rem;
  text-align: center;
}
.modal-stat b { display: block; font-size: 1.3rem; color: #fff; }
.modal-stat span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

.modal-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1.9rem;
}
@media (min-width: 640px) { .modal-features { grid-template-columns: repeat(2, 1fr); } }
.modal-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
.modal-feature .icon { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; }

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
@media (min-width: 640px) { .modal-actions { flex-direction: row; } }
.modal-actions .btn { flex: 1; }

/* =====================================================
   Service / Plan Cards
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 860px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  border-radius: var(--r-lg);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
@media (min-width: 860px) {
  .service-card.featured { transform: scale(1.03) translateY(-0.6rem); z-index: 2; }
  .service-card.featured:hover { transform: scale(1.03) translateY(-1rem); }
}
.service-card.featured {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14), var(--shadow-2), var(--glow-vio);
}
.service-card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), transparent 40%, transparent 65%, rgba(34, 211, 238, 0.1));
  pointer-events: none;
}

.popular-badge {
  position: absolute;
  top: -0.85rem;
  inset-inline-end: 1.6rem;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--grad-gold);
  color: #1a1205;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--glow-gold);
  z-index: 3;
  animation: badge-float 3.4s ease-in-out infinite;
}
.popular-badge .icon { width: 12px; height: 12px; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.service-info { margin-bottom: 1.3rem; position: relative; z-index: 2; }
.service-title { font-size: 1.55rem; color: #fff; margin-bottom: 0.5rem; }
.service-tagline { color: rgba(255, 255, 255, 0.62); font-size: 0.875rem; }

.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.price-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-currency { color: rgba(255, 255, 255, 0.55); font-size: 0.875rem; }
.price-period { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; margin-inline-start: 0.4rem; }
.price-was {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  text-decoration: line-through;
  margin-inline-start: 0.5rem;
}
.price-flip { animation: price-flip 0.45s var(--ease) both; }
@keyframes price-flip {
  0% { opacity: 0; transform: translateY(-12px); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: none; }
}

.features-list {
  margin-bottom: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  position: relative;
  z-index: 2;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}
.feature-item.muted { color: rgba(255, 255, 255, 0.35); }
.feature-check {
  border-radius: 999px;
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  background: rgba(52, 211, 153, 0.1);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.25);
}
.feature-check .icon { width: 11px; height: 11px; }
.feature-item.muted .feature-check {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-add-cart { width: 100%; position: relative; z-index: 2; }
.btn-add-cart.added { background: var(--mint) !important; color: #052e1f !important; }

/* ---- Billing toggle ---- */
.bill-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: -1.2rem 0 3rem;
}
.bill-toggle-wrap > span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
  cursor: pointer;
}
.bill-toggle-wrap > span.on { color: #fff; font-weight: 700; }

.bill-toggle {
  width: 62px; height: 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background 0.35s var(--ease);
}
.bill-toggle .thumb {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.bill-toggle.annual { background: rgba(233, 195, 114, 0.18); box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.45); }
.bill-toggle.annual .thumb { transform: translateX(-30px); background: var(--gold); }

.save-chip {
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(52, 211, 153, 0.14);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3);
  animation: badge-pop 0.45s var(--ease-spring);
}

/* ---- Comparison table ---- */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.compare-table th:first-child, .compare-table td:first-child {
  text-align: start;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}
.compare-table thead th {
  font-size: 1.05rem;
  color: #fff;
  padding: 1.3rem 1.2rem;
}
.compare-table thead th .th-price { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); font-weight: 400; margin-top: 2px; }
.compare-table tbody tr { transition: background 0.25s; }
.compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-hot { background: rgba(139, 92, 246, 0.06); position: relative; }
.compare-table td .icon { width: 17px; height: 17px; margin: 0 auto; }
.compare-table td .yes { color: var(--mint); }
.compare-table td .no { color: rgba(255, 255, 255, 0.22); }
.compare-table td b { color: var(--gold); font-weight: 700; }

/* ---- Countdown / FOMO ---- */
.offer-band {
  border-radius: var(--r-lg);
  padding: 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  background-image: radial-gradient(ellipse at 50% -40%, rgba(200, 154, 75, 0.16), transparent 65%);
}
@media (min-width: 900px) {
  .offer-band { flex-direction: row; justify-content: space-between; text-align: start; }
}
.offer-copy h3 { font-size: 1.45rem; color: #fff; margin-bottom: 0.3rem; }
.offer-copy p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.offer-copy code {
  font-family: 'Thmanyah Sans', monospace;
  background: rgba(233, 195, 114, 0.13);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.1rem 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.countdown { display: flex; gap: 0.6rem; direction: ltr; }
.count-tile {
  border-radius: var(--r-sm);
  min-width: 64px;
  padding: 0.6rem 0.5rem 0.5rem;
  text-align: center;
}
.count-tile b {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-feature-settings: 'tnum' 1;
}
.count-tile span { font-size: 0.65rem; color: rgba(255, 255, 255, 0.45); }
.count-tile.tick b { animation: count-tick 0.5s var(--ease); }
@keyframes count-tick {
  0% { transform: translateY(-8px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* =====================================================
   Testimonials
   ===================================================== */
.testi-stage {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  min-height: 320px;
}
@media (min-width: 768px) { .testi-stage { min-height: 270px; } }

.testi-slide {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 2.1rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  opacity: 0;
  transform: translateX(-40px) scale(0.97);
  visibility: hidden;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}
.testi-slide.active {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.testi-quote-mark {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.5rem;
  color: rgba(233, 195, 114, 0.16);
}
.testi-quote-mark .icon { width: 52px; height: 52px; }

.testi-text {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 2;
}
.testi-person { display: flex; align-items: center; gap: 0.9rem; }
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.testi-name { color: #fff; font-weight: 500; font-size: 0.95rem; }
.testi-role { color: rgba(255, 255, 255, 0.5); font-size: 0.78rem; }
.testi-stars { display: flex; gap: 2px; margin-inline-start: auto; }
.testi-stars .icon { width: 14px; height: 14px; color: var(--gold); }

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.testi-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-spring), color 0.2s;
}
.testi-arrow:hover { color: #fff; transform: scale(1.1); }
.testi-arrow:active { transform: scale(0.92); }
.testi-arrow .icon { width: 17px; height: 17px; }

.testi-dots { display: flex; gap: 0.45rem; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  padding: 0;
  transition: all 0.4s var(--ease);
}
.testi-dot.active { width: 26px; background: var(--grad-gold); }

/* =====================================================
   Process timeline
   ===================================================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  position: relative;
}
@media (min-width: 860px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-1), var(--glow-vio); }
.step-num {
  position: absolute;
  top: -1.4rem;
  inset-inline-end: 0.4rem;
  font-size: 6.2rem;
  font-weight: 900;
  font-family: 'Thmanyah Sans', sans-serif;
  color: rgba(255, 255, 255, 0.045);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s;
}
.step-card:hover .step-num { color: rgba(233, 195, 114, 0.1); }
.step-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 1.1rem;
  background: rgba(233, 195, 114, 0.08);
  box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.2);
  transition: transform 0.35s var(--ease-spring);
}
.step-card:hover .step-icon { transform: scale(1.1) rotate(-6deg); }
.step-icon .icon { width: 21px; height: 21px; }
.step-title { font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.step-desc { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

/* =====================================================
   FAQ accordion
   ===================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item.open { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), var(--shadow-1); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-align: start;
  transition: color 0.25s;
}
.faq-item:hover .faq-q { color: #fff; }
.faq-q .faq-chev {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-spring), background 0.3s, color 0.3s;
}
.faq-q .faq-chev .icon { width: 14px; height: 14px; }
.faq-item.open .faq-chev { transform: rotate(180deg); background: rgba(233, 195, 114, 0.14); color: var(--gold); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  padding: 0 1.4rem 1.3rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

/* =====================================================
   CTA band
   ===================================================== */
.cta-band {
  border-radius: var(--r-xl);
  padding: 3.6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at 20% 110%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% -10%, rgba(200, 154, 75, 0.16), transparent 55%);
}
.cta-band .cta-spark {
  position: absolute;
  color: rgba(233, 195, 114, 0.4);
  animation: spark-float 5s ease-in-out infinite;
}
.cta-band .cta-spark .icon { width: 18px; height: 18px; }
.cta-band .cta-spark.s1 { top: 18%; inset-inline-start: 10%; animation-delay: 0s; }
.cta-band .cta-spark.s2 { top: 64%; inset-inline-start: 84%; animation-delay: -1.8s; }
.cta-band .cta-spark.s3 { top: 26%; inset-inline-start: 74%; animation-delay: -3.2s; width: 12px; }
@keyframes spark-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.45; }
  50% { transform: translateY(-14px) scale(1.25); opacity: 1; }
}
.cta-title { font-size: clamp(1.9rem, 4.4vw, 3rem); color: #fff; margin-bottom: 0.9rem; }
.cta-sub { color: rgba(255, 255, 255, 0.68); max-width: 34rem; margin: 0 auto 2.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* =====================================================
   Contact page
   ===================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 980px) { .contact-layout { grid-template-columns: 5fr 7fr; } }

.contact-side { display: flex; flex-direction: column; gap: 1.1rem; }
.info-card {
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.info-card:hover { transform: translateX(-5px); box-shadow: var(--shadow-1); }
.info-card-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: rgba(233, 195, 114, 0.08);
  box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.2);
}
.info-card-icon .icon { width: 20px; height: 20px; }
.info-card-label { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; }
.info-card-value { color: #fff; font-size: 1rem; font-weight: 500; direction: ltr; text-align: end; }
.info-card-value.rtl { direction: rtl; text-align: start; }

.response-pill {
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  background-image: radial-gradient(ellipse at 0% 50%, rgba(52, 211, 153, 0.1), transparent 60%);
}
.response-pill .icon { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; }

.socials-row { display: flex; gap: 0.6rem; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease-spring);
}
.social-btn:hover { color: var(--gold); transform: translateY(-4px) rotate(-4deg); box-shadow: var(--glow-gold); }
.social-btn .icon { width: 18px; height: 18px; }

.contact-form-card {
  border-radius: var(--r-lg);
  padding: 1.8rem;
  position: relative;
}
@media (min-width: 768px) { .contact-form-card { padding: 2.3rem; } }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .full { grid-column: span 2; }
}

.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.05rem 0.55rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-top: 1.15rem;
}
.field select option { background: #101016; color: #fff; }
.field label {
  position: absolute;
  top: 0.95rem;
  inset-inline-start: 1.05rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(233, 195, 114, 0.55);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(233, 195, 114, 0.1);
}
.field input:focus ~ label, .field input.filled ~ label,
.field textarea:focus ~ label, .field textarea.filled ~ label,
.field select:focus ~ label, .field select.filled ~ label {
  top: 0.42rem;
  font-size: 0.68rem;
  color: var(--gold);
}
.field .select-chev {
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.field .select-chev .icon { width: 16px; height: 16px; }
.field.error input, .field.error textarea {
  border-color: rgba(251, 113, 133, 0.65);
  animation: shake 0.45s var(--ease);
}
.field-error-msg {
  color: var(--rose);
  font-size: 0.72rem;
  margin-top: 0.35rem;
  display: none;
}
.field.error .field-error-msg { display: block; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip-label { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; margin-bottom: 0.6rem; }
.chip {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.83rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease);
}
.chip:hover { color: #fff; transform: translateY(-2px); }
.chip.active {
  background: rgba(233, 195, 114, 0.13);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.5);
}

.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  animation: page-enter 0.6s var(--ease) both;
}
.form-success-icon {
  width: 76px; height: 76px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.13);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35), 0 0 50px -8px rgba(52, 211, 153, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--mint);
  animation: success-pop 0.6s var(--ease-spring) both;
}
.form-success-icon .icon { width: 32px; height: 32px; }
@keyframes success-pop {
  0% { transform: scale(0) rotate(-30deg); }
  70% { transform: scale(1.15) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
.form-success h3 { font-size: 1.7rem; color: #fff; margin-bottom: 0.6rem; }
.form-success p { color: rgba(255, 255, 255, 0.65); max-width: 30rem; margin: 0 auto 1.6rem; }

/* =====================================================
   Terms page
   ===================================================== */
.terms-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 940px) { .terms-layout { grid-template-columns: 250px 1fr; } }

.toc {
  border-radius: var(--r-md);
  padding: 1.2rem;
  display: none;
}
@media (min-width: 940px) { .toc { display: block; position: sticky; top: calc(var(--nav-h) + 1.2rem); } }
.toc-title {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  padding-inline-start: 0.8rem;
}
.toc a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border-inline-start: 2px solid transparent;
  transition: all 0.25s;
}
.toc a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.toc a.active {
  color: var(--gold);
  border-inline-start-color: var(--gold);
  background: rgba(233, 195, 114, 0.07);
}

.legal-flow { display: flex; flex-direction: column; gap: 1.2rem; }
.legal-card {
  border-radius: var(--r-md);
  padding: 1.7rem 1.8rem;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.legal-card h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.legal-card h2 .legal-num {
  font-family: 'Thmanyah Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(233, 195, 114, 0.1);
  box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.3);
  border-radius: 9px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.legal-card p, .legal-card li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
}
.legal-card p + p { margin-top: 0.7rem; }
.legal-card ul { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-card ul li {
  padding-inline-start: 1.3rem;
  position: relative;
}
.legal-card ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.2rem;
  top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 99px;
  background: rgba(233, 195, 114, 0.55);
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.legal-updated .icon { width: 14px; height: 14px; color: var(--gold); }

/* =====================================================
   Checkout
   ===================================================== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2.8rem;
  font-size: 0.8rem;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
}
.checkout-step .step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.checkout-step.done { color: var(--mint); }
.checkout-step.done .step-dot { background: rgba(52, 211, 153, 0.14); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.4); color: var(--mint); }
.checkout-step.done .step-dot .icon { width: 12px; height: 12px; }
.checkout-step.now { color: #fff; }
.checkout-step.now .step-dot { background: var(--grad-gold); color: #1a1205; box-shadow: var(--glow-gold); }
.step-link {
  width: 34px; height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: repeat(5, 1fr); } }

.checkout-main-col { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .checkout-main-col { grid-column: span 3; } }

.checkout-side-col { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) {
  .checkout-side-col { grid-column: span 2; position: sticky; top: calc(var(--nav-h) + 1rem); }
}

.checkout-section { border-radius: var(--r-lg); padding: 1.6rem; }
@media (min-width: 768px) { .checkout-section { padding: 1.9rem; } }

.checkout-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.checkout-section-icon {
  border-radius: 14px;
  width: 44px; height: 44px;
  color: var(--gold);
  background: rgba(233, 195, 114, 0.08);
  box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.checkout-section-icon .icon { width: 19px; height: 19px; }
.checkout-section-title { font-size: 1.45rem; color: #fff; font-weight: 500; line-height: 1.25; }
.checkout-section-subtitle {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  display: flex; align-items: center; gap: 0.35rem;
  margin-top: 0.25rem;
}
.checkout-section-subtitle .icon { width: 12px; height: 12px; }

.addon-card {
  border-radius: var(--r-md);
  padding: 1.05rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
  display: block;
  margin-bottom: 0.75rem;
}
.addon-card:hover { background: rgba(255, 255, 255, 0.025); transform: translateX(-3px); }
.addon-card.checked {
  background: rgba(233, 195, 114, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(233, 195, 114, 0.35);
}
.addon-card-container { display: flex; align-items: flex-start; gap: 0.8rem; }
.addon-checkbox-styled {
  margin-top: 0.22rem;
  width: 21px; height: 21px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s var(--ease-spring);
  color: #1a1205;
}
.addon-card.checked .addon-checkbox-styled {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.08);
}
.addon-checkbox-styled .icon { width: 12px; height: 12px; opacity: 0; transform: scale(0); transition: all 0.25s var(--ease-spring); }
.addon-card.checked .addon-checkbox-styled .icon { opacity: 1; transform: none; }
.addon-card-info { flex: 1; }
.addon-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.addon-card-title { font-size: 1.08rem; color: #fff; font-weight: 500; }
.addon-card-price { color: var(--gold); font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.addon-card-desc { color: rgba(255, 255, 255, 0.58); font-size: 0.85rem; margin-top: 0.25rem; }

.payment-inputs { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
  .payment-inputs { grid-template-columns: repeat(2, 1fr); }
  .payment-inputs .full-width { grid-column: span 2; }
}

.input-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-bottom: 0.45rem;
  margin-inline-start: 0.25rem;
}
.input-slot {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.input-slot .icon { width: 17px; height: 17px; color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.input-slot:focus-within {
  border-color: rgba(233, 195, 114, 0.55);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(233, 195, 114, 0.09);
}
input.glass-input, textarea.glass-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
input.glass-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.demo-fill-btn {
  background: none;
  border: none;
  color: rgba(167, 139, 250, 0.85);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.demo-fill-btn:hover { color: #c4b5fd; }

.btn-pay {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.05rem;
  font-weight: 700;
  font-size: 1.02rem;
}
.terms-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11.5px;
  margin-top: 1rem;
}
.terms-note a { color: rgba(233, 195, 114, 0.8); }

.secure-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.pay-method {
  border-radius: 9px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.checkout-summary { border-radius: var(--r-lg); padding: 1.6rem; }
.summary-items { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.25rem; }
.summary-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.summary-item-title { font-size: 1rem; color: #fff; font-weight: 500; }
.summary-item-qty { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; margin-top: 0.2rem; }
.summary-item-price-col { display: flex; align-items: flex-start; gap: 0.5rem; }
.summary-item-price { font-size: 0.875rem; color: #fff; }
.summary-item-remove {
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 0.1rem;
  display: flex;
  transition: color 0.2s, transform 0.2s;
}
.summary-item-remove:hover { color: var(--rose); transform: scale(1.15); }
.summary-item-remove .icon { width: 14px; height: 14px; }

.promo-box {
  border-radius: 999px;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.promo-input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 0.875rem;
  padding: 0 0.6rem;
  font-family: inherit;
  letter-spacing: 0.05em;
}
.promo-btn {
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background 0.2s;
  flex-shrink: 0;
}
.promo-btn:hover { background: var(--gold); transform: scale(1.04); }
.promo-btn:active { transform: scale(0.94); }
.promo-message { font-size: 0.75rem; margin-top: 0.55rem; display: flex; align-items: center; gap: 0.35rem; }
.promo-message .icon { width: 13px; height: 13px; }
.promo-message.success { color: var(--mint); }
.promo-message.error { color: var(--rose); }

.summary-rows { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.875rem; margin-top: 1rem; }
.summary-row { display: flex; align-items: center; justify-content: space-between; color: rgba(255, 255, 255, 0.62); }
.summary-row-val { color: rgba(255, 255, 255, 0.9); }
.summary-row-val.discount { color: var(--mint); }
.summary-grand-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}
.summary-grand-total-val { font-size: 1.65rem; color: #fff; font-weight: 700; }

.checkout-empty-card {
  border-radius: var(--r-lg);
  padding: 3.4rem 2rem;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.checkout-empty-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.checkout-empty-icon .icon { width: 28px; height: 28px; }
.checkout-empty-title { font-size: 1.6rem; color: #fff; margin-bottom: 0.7rem; }
.checkout-empty-desc { color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; margin-bottom: 1.7rem; }

/* ---- Success view ---- */
.success-view {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 5rem;
}
.success-card {
  position: relative;
  z-index: 10;
  border-radius: var(--r-xl);
  padding: 2.2rem;
  width: 100%;
  max-width: 33rem;
  text-align: center;
}
@media (min-width: 768px) { .success-card { padding: 3rem; } }
.success-check-halo { position: relative; margin: 0 auto 1.8rem; width: 6rem; height: 6rem; }
.success-check-glow {
  position: absolute; inset: -8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.3);
  filter: blur(22px);
  animation: glow-breathe 2.6s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.success-check-inner {
  position: relative;
  width: 6rem; height: 6rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.success-check-circle {
  width: 4rem; height: 4rem;
  border-radius: 999px;
  background: var(--mint);
  color: #052e1f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.7);
  animation: success-pop 0.65s var(--ease-spring) 0.15s both;
}
.success-check-circle .icon { width: 30px; height: 30px; }
.success-title { font-size: clamp(1.7rem, 4vw, 2.3rem); color: #fff; margin-bottom: 0.75rem; line-height: 1.25; }
.success-desc { color: rgba(255, 255, 255, 0.72); font-size: 1rem; margin-bottom: 1.8rem; }
.success-info-pill {
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
}
.success-info-label { color: rgba(255, 255, 255, 0.52); font-size: 0.75rem; margin-bottom: 0.2rem; }
.success-info-val { color: var(--gold); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.07em; }
.success-info-icon {
  border-radius: 999px;
  width: 44px; height: 44px;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.success-info-icon .icon { width: 18px; height: 18px; }
.success-next-steps {
  border-radius: var(--r-md);
  padding: 1.1rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: start;
}
.success-next-icon {
  border-radius: 999px;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.success-next-icon .icon { width: 16px; height: 16px; }
.success-next-title { font-size: 1.05rem; color: #fff; font-weight: 500; }
.success-next-desc { color: rgba(255, 255, 255, 0.62); font-size: 0.85rem; margin-top: 0.25rem; }

/* =====================================================
   Cart Drawer
   ===================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.cart-drawer-backdrop.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; bottom: 0;
  left: 0;
  width: 100%;
  z-index: 96;
  display: flex;
  flex-direction: column;
  transform: translateX(-103%);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.cart-drawer.open { transform: none; }
@media (min-width: 640px) {
  .cart-drawer {
    max-width: 440px;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
  }
}

.cart-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header-info { display: flex; align-items: center; gap: 0.75rem; }
.cart-header-icon {
  border-radius: 999px;
  width: 42px; height: 42px;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.cart-header-icon .icon { width: 18px; height: 18px; }
.cart-title { font-size: 1.5rem; color: #fff; font-weight: 500; line-height: 1.2; }
.cart-subtitle { color: rgba(255, 255, 255, 0.52); font-size: 0.75rem; }
.cart-close-btn {
  border-radius: 999px;
  width: 38px; height: 38px;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-spring), color 0.2s;
}
.cart-close-btn:hover { color: #fff; transform: rotate(90deg); }
.cart-close-btn .icon { width: 17px; height: 17px; }

.cart-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1rem;
  padding: 3rem 0;
}
.cart-empty-icon {
  border-radius: 999px;
  width: 74px; height: 74px;
  color: rgba(255, 255, 255, 0.65);
  display: flex; align-items: center; justify-content: center;
}
.cart-empty-icon .icon { width: 27px; height: 27px; }
.cart-empty-text { font-size: 1.25rem; color: #fff; }
.cart-empty-sub { color: rgba(255, 255, 255, 0.52); font-size: 0.875rem; max-width: 250px; margin: 0 auto; }

.cart-items-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-item {
  border-radius: var(--r-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: card-enter 0.4s var(--ease) both;
}
.cart-item.removing {
  animation: item-remove 0.35s var(--ease) both;
}
@keyframes item-remove {
  to { opacity: 0; transform: translateX(30px) scale(0.92); max-height: 0; }
}
.cart-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.cart-item-title { font-size: 1.1rem; color: #fff; font-weight: 500; }
.cart-item-period { color: var(--gold); font-size: 0.7rem; font-weight: 700; }
.cart-item-tagline {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-remove-btn {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.25s var(--ease-spring);
  flex-shrink: 0;
}
.cart-item-remove-btn:hover { color: var(--rose); transform: scale(1.15); }
.cart-item-remove-btn .icon { width: 16px; height: 16px; }
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; }

.qty-selector {
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.35rem;
}
.qty-btn {
  border-radius: 999px;
  width: 28px; height: 28px;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.qty-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.qty-btn:active { transform: scale(0.85); }
.qty-btn .icon { width: 13px; height: 13px; }
.qty-number { width: 1.75rem; text-align: center; font-size: 0.875rem; color: #fff; }
.cart-item-price { font-size: 0.9rem; color: #fff; font-weight: 500; }

.cart-footer { padding: 0.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}
.cart-total-value { color: #fff; font-size: 1.35rem; font-weight: 700; }

/* =====================================================
   Footer
   ===================================================== */
.footer {
  position: relative;
  background: var(--bg);
  padding: 4.5rem 1.5rem 2rem;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(124, 58, 237, 0.1), transparent 60%);
  pointer-events: none;
}
.footer-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1020px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.5fr; } }

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  max-width: 28rem;
  margin: 1rem 0 1.4rem;
}
.footer-col-title {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.88rem;
  width: fit-content;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.footer-links a:hover { color: var(--gold); transform: translateX(-4px); }

.newsletter-box {
  border-radius: 999px;
  padding: 0.4rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.newsletter-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0 0.7rem;
}
.newsletter-box input::placeholder { color: rgba(255, 255, 255, 0.35); }
.newsletter-box .btn { padding: 0.55rem 1.2rem; font-size: 0.8rem; flex-shrink: 0; }
.newsletter-hint { color: rgba(255, 255, 255, 0.4); font-size: 0.72rem; margin-top: 0.7rem; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-pay-row { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.footer-heart { color: var(--rose); display: inline-block; animation: heart-beat 1.8s ease-in-out infinite; }
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
}

/* =====================================================
   Reveal-on-scroll system
   ===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].revealed { opacity: 1; transform: none; }

@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
}
.page-hero .ambient { opacity: 0.7; }
.page-hero-title {
  font-size: clamp(2.3rem, 5.5vw, 3.7rem);
  color: #fff;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.25;
  text-wrap: balance;
}
.page-hero-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 40rem;
  margin: 0 auto;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
}

/* Utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
.mb-10 { margin-bottom: 2.5rem; }

/* =====================================================
   Reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =====================================================
   Template real-image overlay (lazy, optional)
   ===================================================== */
.tpl-photo, .tpl-video,
.pick-preview .tpl-photo, .pick-preview .tpl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  opacity: 0;
  animation: photo-in 0.6s var(--ease) forwards;
}
@keyframes photo-in { to { opacity: 1; } }

/* optional licensed-media credit caption */
.tpl-credit {
  position: absolute;
  bottom: 0.85rem;
  inset-inline-end: 0.9rem;
  z-index: 6;
  max-width: 62%;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(3, 3, 6, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-hero .tpl-credit { bottom: 1rem; inset-inline-end: 1.1rem; font-size: 0.72rem; }
.pick-preview .tpl-credit { bottom: 0.5rem; inset-inline-end: 0.5rem; font-size: 0.58rem; }
.tpl-price {
  margin-inline-start: auto;
  color: var(--gold);
  font-weight: 700;
  font-feature-settings: 'tnum' 1;
}

/* =====================================================
   Checkout: template picker
   ===================================================== */
.picker-filter { margin-bottom: 1.3rem; }
.tpl-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) { .tpl-picker-grid { grid-template-columns: repeat(2, 1fr); } }

.pick-card {
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.pick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.pick-card.picked { box-shadow: inset 0 0 0 1.5px rgba(233, 195, 114, 0.55), var(--glow-gold); }
.pick-preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pick-preview .mock { padding: 1.6rem 0.9rem 0.8rem; }
.pick-eye {
  position: absolute;
  top: 0.6rem; inset-inline-end: 0.6rem;
  z-index: 6;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(3, 3, 6, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}
.pick-card:hover .pick-eye { opacity: 1; }
.pick-eye:hover { transform: scale(1.12); }
.pick-eye .icon { width: 15px; height: 15px; }
.pick-flag {
  position: absolute;
  top: 0.6rem; inset-inline-start: 0.6rem;
  z-index: 6;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1a1205;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-gold);
  animation: badge-pop 0.4s var(--ease-spring);
}
.pick-flag .icon { width: 13px; height: 13px; }
.pick-info {
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pick-name { font-size: 1.05rem; color: #fff; }
.pick-cat { font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }
.pick-info .btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; white-space: nowrap; }

/* =====================================================
   Checkout: payment method selector + panels
   ===================================================== */
.pay-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
@media (min-width: 560px) { .pay-methods-grid { grid-template-columns: repeat(2, 1fr); } }

.pay-method-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: none;
  border-radius: var(--r-md);
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: start;
  transition: box-shadow 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.pay-method-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.025); }
.pay-method-card.active { box-shadow: inset 0 0 0 1.5px rgba(233, 195, 114, 0.6), var(--glow-gold); }
.pay-method-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.pay-method-card.active .pay-method-icon { color: var(--gold); }
.pay-method-icon .icon { width: 19px; height: 19px; }
.pay-method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-method-text b { color: #fff; font-size: 0.92rem; font-weight: 500; }
.pay-method-text span { color: rgba(255, 255, 255, 0.5); font-size: 0.74rem; }
.pay-method-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
  position: relative;
  transition: box-shadow 0.25s;
}
.pay-method-card.active .pay-method-radio { box-shadow: inset 0 0 0 6px var(--gold); }

.pay-panel { animation: page-enter 0.4s var(--ease) both; }
.pay-info { border-radius: var(--r-md); padding: 1.3rem; }
.pay-info-head { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 500; margin-bottom: 1rem; }
.pay-info-head .icon { width: 18px; height: 18px; color: var(--gold); }
.pay-info-note { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; margin-top: 0.9rem; }
.installments { display: flex; flex-direction: column; gap: 0.5rem; }
.inst-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.inst-row b { color: #fff; }
.bank-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}
.bank-row span { color: rgba(255, 255, 255, 0.55); min-width: 90px; }
.bank-row b { color: #fff; flex: 1; }
.copy-btn {
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(233, 195, 114, 0.14); }
.wallet-pay-box {
  border-radius: var(--r-md);
  padding: 1.6rem;
  text-align: center;
}
.wallet-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.wallet-mark .icon { width: 22px; height: 22px; }

/* =====================================================
   Checkout: success order summary + invoice + upsell
   ===================================================== */
.order-summary-box {
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  text-align: start;
}
.inv-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.inv-line b { color: #fff; font-weight: 500; }
.inv-line.total {
  border-bottom: none;
  border-top: 1.5px solid rgba(255, 255, 255, 0.14);
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  font-size: 1.05rem;
}
.inv-line.total b { font-size: 1.35rem; color: var(--gold); font-weight: 700; }

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.4rem;
}
@media (min-width: 520px) { .success-actions { flex-direction: row; } }
.success-actions .btn { flex: 1; }

.upsell-section {
  margin-top: 2.4rem;
  text-align: start;
}
.upsell-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.upsell-head .icon { width: 20px; height: 20px; color: var(--gold); }
.upsell-head h3 { font-size: 1.3rem; color: #fff; }
.upsell-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
@media (min-width: 620px) { .upsell-grid { grid-template-columns: repeat(2, 1fr); } }
.upsell-card {
  border-radius: var(--r-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.upsell-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.upsell-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(233, 195, 114, 0.09);
  box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.22);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.upsell-icon .icon { width: 19px; height: 19px; }
.upsell-title { font-size: 1.05rem; color: #fff; }
.upsell-desc { font-size: 0.8rem; color: rgba(255, 255, 255, 0.58); flex: 1; }
.upsell-card .btn { padding: 0.6rem; font-size: 0.83rem; }

/* design package card price "contact" variant */
.price-contact { font-size: 1.7rem; font-weight: 700; color: #fff; }
.pkg-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(233, 195, 114, 0.08);
  box-shadow: inset 0 0 0 1px rgba(233, 195, 114, 0.2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.pkg-icon .icon { width: 22px; height: 22px; }

/* =====================================================
   Complete Solutions showcase (portfolio page)
   ===================================================== */
.showcase-head { text-align: center; margin: 4.5rem auto 2.4rem; max-width: 640px; }
.showcase-head .section-desc { margin-inline: auto; }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.sc-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}
.sc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2), var(--glow-gold);
}
.sc-card.entering { animation: card-enter 0.55s var(--ease) both; }
.sc-card:nth-child(2) { animation-delay: 0.07s; }
.sc-card:nth-child(3) { animation-delay: 0.14s; }
.sc-card:nth-child(4) { animation-delay: 0.21s; }
.sc-card:nth-child(5) { animation-delay: 0.28s; }
.sc-grid .sc-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.sc-thumb {
  position: relative;
  height: 15.5rem;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.sc-thumb .page-mock { transition: transform 0.8s var(--ease); }
.sc-card:hover .sc-thumb .page-mock { transform: scale(1.04) translateY(-8px); }

.sc-solution-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 99px;
  background: var(--grad-gold);
  color: #2a1f08;
  font-size: 0.72rem; font-weight: 700;
}
.sc-solution-tag .icon { width: 12px; height: 12px; }

.sc-info { padding: 1.3rem 1.4rem 1.45rem; }
.sc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
  margin-top: 1.1rem;
}
.sc-note {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}
.sc-note .icon { width: 13px; height: 13px; }

/* ---------- generated full-page mockup ---------- */
.page-mock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 0.9rem 1rem;
  overflow: hidden;
}
.page-mock.full {
  position: relative; inset: auto;
  min-height: 100%;
  gap: 1rem;
  padding: 1.1rem 1.2rem 1.4rem;
  border-radius: var(--r-md);
  pointer-events: none; /* display-only: nothing inside is interactive */
  user-select: none;
}
.page-mock i, .page-mock span { display: block; }

.pm-nav { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.pm-logo { width: 1.6rem; height: 0.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.55); }
.pm-links { display: flex !important; gap: 0.45rem; margin-inline-start: auto; }
.pm-links i { width: 1.1rem; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); }
.pm-cta { width: 2rem; height: 0.75rem; border-radius: 99px; background: rgba(255, 255, 255, 0.85); }

.pm-hero { display: flex; gap: 0.9rem; align-items: center; flex-shrink: 0; }
.pm-hero-copy { flex: 1.2; display: flex; flex-direction: column; gap: 0.45rem; }
.pm-h1 { height: 11px; width: 85%; border-radius: 99px; background: rgba(255, 255, 255, 0.42); }
.pm-h1.short { width: 55%; }
.pm-line { height: 6px; width: 70%; border-radius: 99px; background: rgba(255, 255, 255, 0.2); }
.pm-line.dim { background: rgba(255, 255, 255, 0.12); }
.pm-btns { display: flex !important; gap: 0.45rem; margin-top: 0.25rem; }
.pm-btns i { width: 2.6rem; height: 0.95rem; border-radius: 99px; }
.pm-btns i:first-child { background: rgba(255, 255, 255, 0.85); }
.pm-btns i:last-child { background: rgba(255, 255, 255, 0.16); }
.pm-hero-art {
  flex: 1; min-height: 4.2rem; align-self: stretch;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}
.page-mock.full .pm-hero-art { min-height: 7rem; }

.pm-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; flex: 1; min-height: 3.6rem; }
.pm-portrait { border-radius: 10px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)); }
.pm-portrait.tall { background: linear-gradient(165deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)); }
.page-mock.full .pm-gallery { min-height: 9rem; flex: none; }

.pm-masonry { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.6rem; flex: 1; min-height: 3.6rem; }
.pm-masonry span { border-radius: 10px; background: rgba(255, 255, 255, 0.1); min-height: 1.8rem; }
.pm-masonry span:first-child { grid-row: span 2; background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)); }
.page-mock.full .pm-masonry { min-height: 10rem; flex: none; }

.pm-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; flex: 1; }
.pm-products.courses { grid-template-columns: repeat(3, 1fr); }
.pm-product {
  display: flex !important; flex-direction: column; gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}
.pm-img { flex: 1; min-height: 1.7rem; border-radius: 7px; background: rgba(255, 255, 255, 0.16); }
.pm-product .pm-line { width: 80%; height: 5px; }
.pm-price { width: 40%; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.5); }

.pm-stats { display: flex; gap: 0.6rem; flex-shrink: 0; }
.pm-stats i { flex: 1; height: 2.2rem; border-radius: 10px; background: rgba(255, 255, 255, 0.09); }
.pm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; flex: 1; }
.pm-cards span { border-radius: 10px; background: rgba(255, 255, 255, 0.08); min-height: 3.2rem; }

.pm-band {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.pm-quote { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); }
.pm-avatars { display: flex !important; gap: 0.3rem; }
.pm-avatars i { width: 1rem; height: 1rem; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }

.pm-offer { height: 2.6rem; border-radius: 12px; background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)); flex-shrink: 0; }

.pm-foot { display: flex; gap: 0.6rem; flex-shrink: 0; opacity: 0.7; }
.pm-foot i { flex: 1; height: 1.6rem; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }

/* ---------- showcase fullscreen modal ---------- */
.sc-modal-card {
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.5s var(--ease);
}
.modal-backdrop.open .sc-modal-card { transform: none; }

.sc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sc-modal-titles { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; min-width: 0; }
.sc-modal-titles .modal-title { font-size: 1.25rem; }
.sc-modal-titles .latin { color: rgba(255, 255, 255, 0.4); letter-spacing: 0.12em; font-size: 0.75rem; }
.sc-modal-head .modal-close { position: static; flex-shrink: 0; }

.sc-stage {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
  background: rgba(0, 0, 0, 0.35);
}
.sc-stage-inner { min-height: 24rem; position: relative; }
.sc-watermark {
  position: sticky; bottom: 0.8rem;
  margin: 0.8rem auto 0; width: fit-content;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  pointer-events: none;
}
.sc-watermark .icon { width: 14px; height: 14px; }

.sc-modal-foot {
  padding: 1.1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sc-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}
.sc-chip .icon { width: 13px; height: 13px; color: var(--mint); }
.sc-modal-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-grid .sc-card:last-child:nth-child(odd) { grid-column: auto; }
  .sc-thumb { height: 13rem; }
  .pm-products { grid-template-columns: repeat(2, 1fr); }
  .pm-products.courses { grid-template-columns: repeat(2, 1fr); }
  .sc-modal-card { width: calc(100vw - 1.2rem); max-height: calc(100vh - 1.6rem); }
  .sc-modal-foot .sc-highlights { display: none; }
}

/* =====================================================
   Auth / account (account.html, profile modal, nav state)
   ===================================================== */
.auth-container { max-width: 560px; margin-inline: auto; }
.auth-card { padding: 2rem 1.8rem 2.2rem; border-radius: var(--r-lg); }
.auth-tabs {
  display: flex; gap: 0.3rem; padding: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md); margin-bottom: 1.6rem;
}
.auth-tab {
  flex: 1; padding: 0.6rem 0.4rem; border: none; background: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; border-radius: var(--r-sm);
  transition: color 0.25s, background 0.25s;
}
.auth-tab.active { color: #0a0a0e; background: var(--gold); font-weight: 600; }

.btn-google {
  width: 100%; justify-content: center; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff;
}
.btn-google:hover { background: rgba(255, 255, 255, 0.09); }
.btn-google .icon { width: 18px; height: 18px; }

.auth-divider {
  display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0;
  color: rgba(255, 255, 255, 0.4); font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1);
}
.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.7rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6);
}
.auth-remember { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.auth-remember input { accent-color: var(--gold); }
.auth-link { color: var(--gold); cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-switch { text-align: center; margin-top: 1.3rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.auth-fineprint { font-size: 0.72rem; color: rgba(255, 255, 255, 0.4); text-align: center; margin-top: 0.9rem; line-height: 1.7; }
.auth-fineprint a { color: rgba(233, 195, 114, 0.8); }
.auth-err {
  color: #fca5a5; font-size: 0.8rem; margin-top: 0.8rem; padding: 0.6rem 0.8rem;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); border-radius: var(--r-sm);
}

.pw-toggle { background: none; border: none; padding: 0; cursor: pointer; color: rgba(255, 255, 255, 0.4); display: flex; }
.pw-toggle:hover, .pw-toggle.on { color: var(--gold); }
.pw-toggle .icon { width: 17px; height: 17px; }

.pw-strength { display: flex; align-items: center; gap: 0.6rem; margin: 0.6rem 0.2rem 0.5rem; }
.pw-strength-track { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pw-strength-bar { height: 100%; width: 0; border-radius: 99px; transition: width 0.3s, background 0.3s; background: #ef4444; }
.pw-strength-bar[data-level="3"] { background: #f59e0b; }
.pw-strength-bar[data-level="4"] { background: #84cc16; }
.pw-strength-bar[data-level="5"] { background: var(--mint); }
.pw-strength-label { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); min-width: 56px; }
.pw-reqs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0.2rem; }
.pw-req {
  font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 99px;
  background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.pw-req.met { color: var(--mint); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }

.auth-success-box { text-align: center; padding: 2rem 1.4rem; border-radius: var(--r-md); }
.auth-success-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(233, 195, 114, 0.12); color: var(--gold);
}
.auth-success-icon .icon { width: 26px; height: 26px; }
.auth-success-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.5rem; }
.auth-success-box p { color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; line-height: 1.8; margin-bottom: 1.2rem; }

.auth-demo-note {
  display: flex; align-items: flex-start; gap: 0.6rem; max-width: 560px; margin: 1.2rem auto 0;
  font-size: 0.74rem; color: rgba(255, 255, 255, 0.45); line-height: 1.8;
  padding: 0.8rem 1rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-demo-note .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: rgba(233, 195, 114, 0.7); }
.auth-demo-note b { color: rgba(255, 255, 255, 0.7); }

/* signed-in dashboard */
.account-dash-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.account-avatar .icon { width: 26px; height: 26px; }
.account-rows { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.6rem; }
.account-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 0.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.88rem;
}
.account-row span { display: flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.55); }
.account-row span .icon { width: 16px; height: 16px; }
.account-row b { color: #fff; }
.account-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.account-actions .btn { width: 100%; justify-content: center; }

/* purchases (مشترياتي) */
.purchases-card { margin-top: 1.4rem; }
.purchases-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.purchases-head h2 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.3rem; color: #fff; }
.purchases-head h2 .icon { width: 22px; height: 22px; color: var(--gold); }
.purchases-state { color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; padding: 0.6rem 0; }
.purchases-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 0.6rem 0; }
.purchases-empty p { color: rgba(255, 255, 255, 0.6); }
.purchase-list { display: flex; flex-direction: column; gap: 1.1rem; }
.purchase-card {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03); padding: 1.3rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.purchase-card:hover { border-color: rgba(233, 195, 114, 0.3); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.purchase-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0.8rem; margin-bottom: 0.9rem;
}
.purchase-header h3 { font-size: 1.05rem; color: #fff; }
.purchase-date { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; }
.purchase-details { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 0.9rem; }
.purchase-details b { color: #fff; font-weight: 600; }
.purchase-status {
  display: inline-flex; align-items: center; padding: 0.15rem 0.7rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); color: var(--mint);
}
.purchase-status.st-pending { border-color: rgba(233, 195, 114, 0.45); background: rgba(233, 195, 114, 0.1); color: var(--gold); }
.purchase-status.st-cancelled { border-color: rgba(244, 63, 94, 0.45); background: rgba(244, 63, 94, 0.1); color: #fb7185; }
.purchase-items { background: rgba(255, 255, 255, 0.025); border-radius: var(--r-sm, 10px); padding: 0.9rem 1rem; margin-bottom: 1rem; }
.purchase-items h4 { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.5rem; }
.purchase-items ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.purchase-items li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.78); }
.purchase-items li b { color: #fff; font-weight: 600; }
.purchase-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.purchase-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 1rem; border-radius: var(--r-sm, 10px); border: none; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.purchase-btn:hover { transform: translateY(-2px); }
.download-btn { background: var(--gold); color: #1a1205; }
.download-btn:hover { background: #f0d28a; }
.access-site-btn { background: rgba(52, 211, 153, 0.16); color: var(--mint); border: 1px solid rgba(52, 211, 153, 0.4); }
.access-site-btn:hover { background: rgba(52, 211, 153, 0.26); }
.view-details-btn { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); }
.view-details-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* nav account button signed-in indicator */
#account-btn { position: relative; }
.account-dot {
  position: absolute; inset-block-start: 7px; inset-inline-end: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 2px rgba(3, 3, 4, 0.9); opacity: 0; transform: scale(0); transition: opacity 0.25s, transform 0.25s var(--ease-spring);
}
#account-btn.signed-in .account-dot { opacity: 1; transform: scale(1); }

/* =====================================================
   Free-template-with-package + custom design card
   ===================================================== */
.cart-item-price.free, .summary-item-price.free { color: var(--mint); display: inline-flex; align-items: center; gap: 0.35rem; }
.free-tag {
  font-size: 0.62rem; font-weight: 600; color: #0a0a0e; background: var(--mint);
  padding: 0.1rem 0.4rem; border-radius: 99px; letter-spacing: 0.01em;
}
.summary-item-qty .free-tag { color: #0a0a0e; }
.make-free-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--gold); font: inherit; font-size: 0.72rem; text-decoration: underline; text-underline-offset: 2px;
}
.make-free-btn:hover { color: #fff; }

.picker-free-banner {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem;
  padding: 0.85rem 1.1rem; border-radius: var(--r-md);
  border: 1px solid rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.07);
  color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; line-height: 1.7;
}
.picker-free-banner .icon { width: 22px; height: 22px; color: var(--mint); flex-shrink: 0; }
.picker-free-banner b { color: #fff; }

/* collapsed template picker (after a template is chosen) */
.tpl-picker-collapsed {
  border: 1px solid rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.06);
  border-radius: var(--r-md); padding: 1rem 1.1rem;
}
.tpl-collapsed-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
}
.tpl-collapsed-count {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #fff; font-size: 0.95rem; font-weight: 600;
}
.tpl-collapsed-count .icon { width: 20px; height: 20px; color: var(--mint); }
.tpl-collapsed-head .btn { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.tpl-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.8rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.88);
}
.tpl-chip.is-free { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); }
.tpl-chip-name { font-weight: 600; }
.tpl-chip-price { color: var(--gold); font-size: 0.76rem; }
.tpl-chip.is-free .tpl-chip-price { color: var(--mint); }
.tpl-chip-x {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7);
  transition: background var(--t-fast, 0.18s) ease, color var(--t-fast, 0.18s) ease;
}
.tpl-chip-x:hover { background: rgba(244, 63, 94, 0.22); color: #fff; }
.tpl-chip-x .icon { width: 13px; height: 13px; }

.custom-pick-preview {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(233, 195, 114, 0.18), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px);
}
.custom-pick-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border-radius: 99px; font-size: 0.82rem; color: #fff;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
}
.custom-pick-badge .icon { width: 17px; height: 17px; color: var(--gold); }

/* =====================================================
   Add-on "?" info button + explanation modal
   ===================================================== */
.addon-card-title-row .addon-card-title { flex: 1 1 auto; min-width: 0; }
.addon-info-btn {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.addon-info-btn:hover { color: var(--gold); border-color: rgba(233, 195, 114, 0.5); background: rgba(233, 195, 114, 0.1); }
.addon-info-btn .icon { width: 14px; height: 14px; }

#addon-info-card { padding: 1.6rem 1.6rem 1.8rem; }
.addon-info-head { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.2rem; }
.addon-info-emoji { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.addon-info-head h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.2rem; }
.addon-info-price { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.addon-info-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 0; padding: 0; }
.addon-info-list li { display: flex; align-items: flex-start; gap: 0.6rem; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; line-height: 1.6; }
.addon-info-list .icon { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; margin-top: 3px; }
.addon-info-benefit {
  display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1.2rem; padding: 0.9rem 1rem;
  border-radius: var(--r-sm); background: rgba(233, 195, 114, 0.08); border: 1px solid rgba(233, 195, 114, 0.22);
  color: rgba(255, 255, 255, 0.8); font-size: 0.88rem; line-height: 1.7;
}
.addon-info-benefit .icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.addon-info-benefit b { color: var(--gold); }

/* ===== Tamara installment widget V2 (أقساط تمارا — عنصر مخصّص) ===== */
tamara-widget { display: block; width: 100%; max-width: 100%; margin: 0.7rem 0 0; }
tamara-widget:empty { margin: 0; }
.service-card tamara-widget { margin: 0.55rem 0 0.2rem; }
.checkout-summary tamara-widget { margin-top: 1rem; }
.pay-panel tamara-widget { margin-top: 0.6rem; }
/* لا يكسر شبكة الباقات: الودجت يأخذ عرض البطاقة دون فيض */
tamara-widget iframe { max-width: 100%; border: 0; }
