/* ============================================================
   VERSORA.UZ — Complete CSS Redesign
   Mobile-first, premium SaaS quality, responsive at all sizes
   ============================================================ */

/* ---- 1. DESIGN TOKENS ---------------------------------------- */
:root {
  color-scheme: dark;
  --bg:           #090d16;
  --bg-strong:    #050812;
  --surface:      rgba(255, 255, 255, 0.06);
  --surface-md:   rgba(255, 255, 255, 0.09);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --text:         #f0f4ff;
  --muted:        #8a96ad;
  --line:         rgba(255, 255, 255, 0.11);
  --line-strong:  rgba(255, 255, 255, 0.18);
  --brand:        #42d6a4;
  --brand-strong: #14b87f;
  --brand-glow:   rgba(66, 214, 164, 0.18);
  --gold:         #f6c96d;
  --gold-glow:    rgba(246, 201, 109, 0.2);
  --blue:         #73a7ff;
  --danger:       #ff4d4d;
  --shadow-sm:    0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow:       0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 24px 72px rgba(0, 0, 0, 0.45);
  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-pill:  999px;
  --header-h:     72px;
  --transition:   0.2s ease;
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:           #f3f6fb;
  --bg-strong:    #ffffff;
  --surface:      rgba(8, 20, 39, 0.05);
  --surface-md:   rgba(8, 20, 39, 0.08);
  --surface-strong: rgba(8, 20, 39, 0.12);
  --text:         #0d1524;
  --muted:        #5a6779;
  --line:         rgba(10, 25, 45, 0.12);
  --line-strong:  rgba(10, 25, 45, 0.2);
  --brand:        #0f9f73;
  --brand-strong: #087c5a;
  --brand-glow:   rgba(15, 159, 115, 0.15);
  --gold:         #b07820;
  --gold-glow:    rgba(176, 120, 32, 0.18);
  --blue:         #2e5bbf;
  --shadow-sm:    0 4px 16px rgba(36, 52, 77, 0.10);
  --shadow:       0 12px 40px rgba(36, 52, 77, 0.14);
  --shadow-lg:    0 24px 72px rgba(36, 52, 77, 0.18);
}

/* ---- 2. BASE RESET & GLOBAL ---------------------------------- */
* {
  -webkit-tap-highlight-color: transparent;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 10% 8%,  rgba(66, 214, 164, 0.12), transparent 34rem),
    radial-gradient(ellipse at 88% 6%,  rgba(115, 167, 255, 0.10), transparent 30rem),
    linear-gradient(180deg, var(--bg-strong), var(--bg));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  transition: background 0.45s ease, color 0.45s ease;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p { margin-top: 0; }

h1, h2, h3, h4 {
  margin-top: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }


/* ---- 3. HEADER ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1180px, calc(100% - 24px));
  min-height: var(--header-h);
  margin: 10px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--bg-strong) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--surface-md);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Buttons — global */
.theme-toggle,
.search-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.theme-toggle:hover,
.search-toggle:hover {
  background: var(--surface-md);
  border-color: var(--line-strong);
}

.theme-toggle svg,
.search-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moon-icon,
:root[data-theme="light"] .sun-icon { display: none; }
:root[data-theme="light"] .moon-icon { display: block; }

.header-cta,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 20px;
  min-height: 42px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #03100a;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--brand-glow);
  transition: transform var(--transition-spring), box-shadow var(--transition), filter var(--transition);
}

.header-cta:hover,
.primary-btn:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 14px 36px var(--brand-glow);
  filter: brightness(1.08);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition-spring), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.secondary-btn:hover {
  transform: scale(1.02) translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  background: var(--brand-glow);
  box-shadow: 0 8px 24px var(--brand-glow);
}


/* ---- 4. MAIN WRAPPER ------------------------------------------ */
main {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}


/* ---- 5. PAGE-LEVEL SECTIONS (non-order) ----------------------- */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 96px);
  padding: 56px 0 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: -0.025em;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.76;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  z-index: 0;
}

.hero-card {
  z-index: 2;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 9% 2% 4% 14%;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(66, 214, 164, 0.13), rgba(115, 167, 255, 0.10));
  transform: rotate(-4deg);
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(460px, 96%);
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 32px 52px rgba(0, 0, 0, 0.32));
}

.domain-card {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 12%;
  width: min(300px, 84%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-strong) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.domain-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.domain-card strong {
  font-size: clamp(1rem, 2.2vw, 1.24rem);
}

/* Generic sections */
.audience-section,
.highlights-section,
.how-section,
.nfc-section,
.order-section,
.features-section,
.tiers-section {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.demo-section .section-heading {
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 720px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section-heading h2,
.nfc-copy h2,
.order-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1.04;
}

.audience-grid,
.flow,
.feature-grid,
.tier-grid {
  display: grid;
  gap: 16px;
}

.audience-grid,
.feature-grid,
.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-grid article,
.flow-item,
.order-panel,
.feature-card,
.tier-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.audience-grid article,
.feature-card,
.tier-card {
  min-height: 240px;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-glow);
  color: var(--brand);
  font-weight: 900;
}

.audience-grid h3,
.feature-card h3,
.tier-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.audience-grid p,
.nfc-copy p,
.order-panel p,
.flow-item p,
.feature-card p,
.tier-card p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.feature-icon svg { width: 22px; height: 22px; }

/* ---- 9. HOMEPAGE RESPONSIVE TWEAKS -------------------------- */
@media (max-width: 992px) {
  /* Stack hero columns on tablets and small laptops */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 40px 0 28px;
  }

  .hero-media {
    order: -1;
    min-height: 320px;
    align-self: center;
  }

  .domain-card {
    position: static;
    width: 100%;
    max-width: 520px;
    margin: 12px auto 0;
    right: auto;
    bottom: auto;
    border-radius: var(--radius-lg);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .audience-grid,
  .feature-grid,
  .tier-grid,
  .flow {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .control-grid {
    display: block;
  }

  .control-visual {
    margin-top: 16px;
    position: static;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nfc-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .nfc-card {
    max-width: 360px;
  }

  .desktop-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 28px;
    padding-bottom: 20px;
    gap: 18px;
    overflow-x: hidden;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 6px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .hero-media::before {
    display: none;
  }

  .hero-visual {
    width: min(240px, 100%);
    max-width: 100%;
    max-height: none;
    filter: none;
    margin: 0 auto;
    transform: none;
  }

  .domain-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 320px);
    max-width: 100%;
    margin: 12px auto 0;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background: color-mix(in srgb, var(--bg-strong) 86%, transparent);
  }

  .domain-card strong {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
    line-height: 1.05;
  }

  .hero-text {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero-media {
    min-height: 260px;
  }

  .domain-card {
    padding: 12px;
  }

  .flow {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .flow-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: auto;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    width: 100%;
  }

  .flow-item span {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .flow-item p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .control-visual {
    position: static !important;
    min-height: auto !important;
    padding: 0 12px;
    margin-top: 12px;
  }

  .glass-dashboard {
    width: 100% !important;
    max-width: 320px !important;
    aspect-ratio: 9 / 16;
    padding: 16px;
    border-radius: 18px;
    z-index: 1;
  }

  .glow-orb {
    display: none !important;
  }

  .control-copy {
    z-index: 2;
  }
}

@media (max-width: 420px) {
  .control-grid {
    display: block !important;
  }

  .control-copy,
  .control-visual {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .control-copy {
    margin-bottom: 12px;
    padding-right: 12px;
  }

  .control-visual {
    padding-left: 12px;
    padding-right: 12px;
  }

  .glass-dashboard {
    max-width: 260px !important;
    aspect-ratio: 3 / 5;
    margin: 0 auto;
  }
}

@media (max-width: 360px) {
  .glass-dashboard {
    max-width: 220px !important;
    padding: 12px;
  }

  .dash-skeleton.title {
    width: 70%;
    height: 22px;
  }
}

  .flow-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: auto;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    width: 100%;
  }

  .flow-item span {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .flow-item p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
  }

.tier-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tier-badge {
  align-self: flex-start;
  margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    border: 1px solid rgba(255,255,255,0.08);
  }

.gold-tier   { border-color: rgba(246,201,109,.28); background: linear-gradient(135deg,rgba(246,201,109,.09),var(--surface)); }
.gold-tier   .tier-badge { background: rgba(246,201,109,.24); color: #f7d37d; }
.rare-tier   { border-color: rgba(115,167,255,.28); background: linear-gradient(135deg,rgba(115,167,255,.09),var(--surface)); }
.rare-tier   .tier-badge { background: rgba(115,167,255,.24); color: #8fb9ff; }
.premium-tier{ border-color: rgba(66,214,164,.28);  background: linear-gradient(135deg,rgba(66,214,164,.09),var(--surface)); }
.premium-tier .tier-badge { background: rgba(66,214,164,.24); color: #5fe3b1; }

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 16px;
  padding: 8px 2px 10px;
}

.highlight-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.highlight-ring {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg-strong), var(--bg-strong)) padding-box,
    linear-gradient(135deg, var(--brand), var(--gold), var(--blue)) border-box;
  border: 2px solid transparent;
  appearance: none;
  cursor: pointer;
  font: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-ring:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(0,0,0,.28);
}

.highlight-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #02040a;
  color: #f7f9ff;
}

.highlight-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-item h3 {
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  appearance: none;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.highlight-link:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: var(--brand-glow);
  color: var(--text);
}

/* Story Viewer */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.story-viewer.is-open { opacity: 1; pointer-events: auto; }

.story-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.72);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.story-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: min(750px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: #050812;
  color: #f7f9ff;
  box-shadow: 0 32px 90px rgba(0,0,0,.55);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
}

.story-viewer.is-open .story-panel { transform: translateY(0) scale(1); }

.story-progress {
  position: absolute;
  top: 13px;
  left: 14px;
  right: 56px;
  z-index: 2;
  height: 3px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.26);
}

.story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform-origin: left;
}

.story-viewer.is-open .story-progress span { animation: storyProgress 7s linear forwards; }
.story-viewer.is-open .story-progress span.is-resetting { animation: none; }

@keyframes storyProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.story-close {
  position: absolute;
  top: 7px;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.32);
  color: #fff;
  cursor: pointer;
}

.story-close svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.story-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(0,0,0,.1)), #0b1020;
}

.story-media img,
.story-media video { width: 100%; height: 100%; object-fit: contain; object-position: top center; }

.story-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 68px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.24);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--transition), opacity var(--transition);
}

.story-nav:hover { background: rgba(0,0,0,.42); }
.story-nav svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.story-prev { left: 8px; }
.story-next { right: 8px; }

.story-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 13px 20px 16px;
  border-top: 1px solid rgba(255,255,255,.11);
  background: rgba(0,0,0,.9);
}

.story-copy h2 { margin-bottom: 5px; font-size: 1.3rem; }
.story-copy p  { margin-bottom: 11px; color: rgba(255,255,255,.76); font-size: 0.9rem; line-height: 1.44; }

.story-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #04110d;
  font-weight: 900;
}

body.story-open { overflow: hidden; }

/* Flow */
.flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.flow-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 128px;
  padding: 20px;
  border-radius: 22px;
}

.flow-item span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #1c1200;
  font-weight: 900;
}

.flow-item p { margin: 0; }
.flow-item strong { color: var(--text); }

/* Control section */
.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.control-copy h2 { margin-bottom: 22px; }

.control-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 600;
}

.control-list svg { width: 20px; height: 20px; flex-shrink: 0; }

.control-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.glass-dashboard {
  position: relative;
  z-index: 2;
  width: 80%;
  aspect-ratio: 4/3;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(0,0,0,.38);
  backdrop-filter: blur(20px);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.dash-header { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.dash-dots   { display: flex; gap: 7px; }
.dash-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dash-dots span:nth-child(1) { background: #ff5f56; }
.dash-dots span:nth-child(2) { background: #ffbd2e; }
.dash-dots span:nth-child(3) { background: #27c93f; }

.dash-body  { display: flex; flex-direction: column; gap: 14px; }
.dash-skeleton { height: 15px; background: var(--line); border-radius: 7px; width: 100%; }
.dash-skeleton.title { height: 30px; width: 58%; margin-bottom: 10px; }
.dash-skeleton.short { width: 38%; }
.dash-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-radius: var(--radius-pill);
  color: #04110d;
  font-weight: 800;
  font-size: 0.88rem;
}

.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: var(--brand);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  z-index: 1;
}

/* NFC Section */
.nfc-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 32px;
  align-items: center;
}

.nfc-copy {
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface), rgba(66,214,164,.09));
  box-shadow: var(--shadow);
}

.nfc-copy p { max-width: 680px; margin: 20px 0; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stats span {
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-strong) 38%, transparent);
  color: var(--muted);
  font-weight: 800;
}

.mini-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.44rem;
}

.nfc-card {
  width: min(370px, 100%);
  border-radius: 18px;
  justify-self: center;
  filter: drop-shadow(0 26px 42px rgba(0,0,0,.26));
}

.order-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 5vw, 50px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,rgba(66,214,164,.12),rgba(246,201,109,.09)), var(--surface);
}

.order-panel p { max-width: 740px; margin: 16px 0 0; }

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 24px));
  min-height: 72px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--text); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ---- 6. SEARCH OVERLAY --------------------------------------- */
.search-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-viewer.is-open { opacity: 1; pointer-events: auto; }

.search-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.6);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.search-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-top: clamp(18px, 7vh, 90px);
  background: color-mix(in srgb, var(--bg-strong) 87%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 90px rgba(0,0,0,.38);
  backdrop-filter: blur(24px);
  transform: translateY(-18px) scale(0.98);
  transition: transform 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
}

.search-viewer.is-open .search-panel { transform: translateY(0) scale(1); }

.search-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.search-icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  width: 100%;
  font-family: inherit;
}

#search-input::placeholder { color: var(--muted); }

.search-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}

.search-close:hover { background: var(--surface-strong); }
.search-close svg { width: 16px; height: 16px; }

.search-results {
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-empty-state {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  animation: slideInResult 0.28s ease forwards;
  opacity: 0;
  transform: translateY(8px);
  transition: background var(--transition);
}

@keyframes slideInResult {
  to { opacity: 1; transform: translateY(0); }
}

.search-result-item:hover { background: var(--brand-glow); }

.search-result-item img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

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

.search-result-name {
  display: block;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-url {
  display: block;
  font-size: 0.83rem;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-claim-btn {
  display: block;
  width: calc(100% - 20px);
  margin: 10px;
  padding: 13px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #04110d;
  font-weight: 800;
  text-decoration: none;
  animation: slideInResult 0.28s ease forwards;
}


/* ---- 7. MARQUEE (Premium Names) ------------------------------ */
.premium-names-marquee { padding: 72px 0; overflow: hidden; }

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 130px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrapper::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.marquee-track { display: flex; gap: 14px; width: max-content; }
.track-left    { animation: scrollLeft  120s linear infinite; }
.track-right   { animation: scrollRight 120s linear infinite; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

@keyframes scrollLeft  { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes scrollRight { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }

.premium-name-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease;
  flex-shrink: 0;
}

.premium-name-card:hover { transform: translateY(-4px); }

.card-inner { font-size: 17px; font-family: monospace; color: var(--text); transition: opacity 0.28s ease; }
.card-inner strong { color: var(--text); font-weight: 700; font-size: 19px; }

.premium-name-card.gold   { border-color: rgba(234,179,8,.28); }
.premium-name-card.gold   .card-inner strong { color: #eab308; }
.premium-name-card.gold:hover  { border-color: #eab308; box-shadow: 0 8px 28px rgba(234,179,8,.14); }
.premium-name-card.rare   { border-color: rgba(168,85,247,.28); }
.premium-name-card.rare   .card-inner strong { color: #a855f7; }
.premium-name-card.rare:hover  { border-color: #a855f7; box-shadow: 0 8px 28px rgba(168,85,247,.14); }
.premium-name-card.premium{ border-color: rgba(16,185,129,.28); }
.premium-name-card.premium .card-inner strong { color: #10b981; }
.premium-name-card.premium:hover{ border-color: #10b981; box-shadow: 0 8px 28px rgba(16,185,129,.14); }

.olish-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  border-radius: var(--radius);
}

.premium-name-card:hover .olish-overlay { opacity: 1; }
.premium-name-card:hover .card-inner { opacity: 0.28; }


/* ---- 8. ORDER PAGE LAYOUT ------------------------------------ */

/* Page section */
.order-page-section {
  padding: 44px 0 80px;
  max-width: 100%;
}

/* Page header text */
.order-header {
  text-align: center;
  margin-bottom: 44px;
  padding: 0 8px;
}

#order-title {
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.025em;
}

.order-header p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
  opacity: 0.9;
}

/* Two-column layout: form + preview */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: start;
}

.order-form-container {
  min-width: 0;
  width: 100%;
}

/* ---- 9. STEPPER FORM ----------------------------------------- */
.stepper-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Stepper header — all 9 steps */
.stepper-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 0;
}

.step-indicator {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.55;
  transition: all 0.25s ease;
  cursor: default;
  user-select: none;
}

.step-indicator.is-done {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  border-color: var(--brand);
  color: var(--brand);
  opacity: 1;
}

.step-indicator.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #03100a;
  opacity: 1;
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.step-line {
  flex: 1;
  height: 2px;
  margin: 0 4px;
  background: var(--line);
  border-radius: 1px;
  transition: background 0.25s ease;
}

.step-line.is-done {
  background: var(--brand);
}

/* Step panes */
.step-pane {
  display: none;
  animation: fadeInStep 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-pane.is-active { display: block; }

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

/* Fieldset */
.stepper-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: color-mix(in srgb, var(--bg-strong) 42%, rgba(255,255,255,.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transition: box-shadow var(--transition);
  margin: 0;
}

.stepper-form fieldset:hover {
  box-shadow: 0 12px 40px rgba(66,214,164,.06);
}

.stepper-form fieldset + fieldset { margin-top: 16px; }

.stepper-form legend {
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* Form groups */
.form-group {
  margin-bottom: 18px;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
  opacity: 0.82;
}

/* Inputs */
.stepper-form input[type="text"],
.stepper-form input[type="url"],
.stepper-form input[type="tel"],
.stepper-form textarea,
.stepper-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
}

.stepper-form input:focus,
.stepper-form textarea:focus,
.stepper-form select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(0,0,0,.36);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.stepper-form textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.55;
}

/* Domain / URL prefix input */
.domain-input {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.22);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.domain-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.domain-input > span {
  padding: 12px 12px 12px 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--surface-md);
  border-right: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  flex-shrink: 0;
}

.domain-input > input {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 14px;
}

#order-slug {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

/* ---- 10. GLOBAL PREMIUM SWITCH ------------------------------- */
.global-premium-wrapper {
  margin-bottom: 4px;
}

.premium-switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(246,201,109,.06);
  border: 1px solid rgba(246,201,109,.28);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
}

.premium-switch-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }

.premium-switch-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

.premium-switch-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  transition: background 0.3s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

input:checked + .slider { background: var(--gold); box-shadow: 0 0 14px var(--gold-glow); }
input:checked + .slider::before { transform: translateX(22px); }


/* ---- 11. IMAGE UPLOAD CARDS ---------------------------------- */
.image-upload-card {
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.image-upload-card h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.image-upload-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.preview-box {
  background: var(--surface-md);
  border: 1.5px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.preview-box:hover { border-color: var(--brand); }
.preview-box span  { color: var(--muted); font-size: 0.86rem; text-align: center; padding: 6px; }

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.circle-preview { width: 96px; height: 96px; border-radius: 50%; }
.rect-preview   { width: 180px; height: 100px; border-radius: var(--radius); }

.upload-controls { flex: 1; min-width: 120px; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn-group .secondary-btn {
  padding: 8px 15px;
  min-height: 38px;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
}


/* ---- 12. DYNAMIC ROWS (Links/Cards) -------------------------- */
.dynamic-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.dynamic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.18);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.stepper-form .dynamic-row .icon-preview {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  color: var(--text);
}

.stepper-form .dynamic-row .icon-preview svg { width: 18px; height: 18px; }

.stepper-form .dynamic-row select.icon-select {
  width: 108px;
  flex: 0 0 108px;
  padding: 8px 10px;
  min-height: 38px;
}

.stepper-form .dynamic-row input { padding: 8px 10px; min-height: 38px; }

.stepper-form .dynamic-row .link-label-input,
.stepper-form .dynamic-row .card-name-input {
  width: 106px;
  flex: 0 0 106px;
  min-width: 0;
}

.stepper-form .dynamic-row .link-url-wrapper {
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
}

.stepper-form .dynamic-row .link-url-wrapper > span {
  padding: 8px 7px;
  font-size: 0.83rem;
  white-space: nowrap;
}

.stepper-form .dynamic-row .link-url-input,
.stepper-form .dynamic-row .card-num-input {
  width: 100%;
  flex: 1 1 0%;
  min-width: 0;
}

.remove-row-btn {
  flex-shrink: 0;
  background: rgba(255,77,77,.10);
  color: var(--danger);
  border: 1px solid rgba(255,77,77,.20);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), border-color var(--transition);
}

.remove-row-btn:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.add-btn {
  width: 100%;
  min-height: 42px;
  border: 1.5px dashed var(--line);
  background: transparent;
  color: var(--brand);
  border-radius: var(--radius);
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition);
}

.add-btn:hover {
  background: var(--brand-glow);
  border-color: var(--brand);
}


/* ---- 13. PREMIUM FEATURE CARDS ------------------------------ */
.premium-feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.premium-feature-card:last-child { margin-bottom: 0; }

.premium-feature-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-md);
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.feature-title { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.feature-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }


/* ---- 14. COLOR PICKERS --------------------------------------- */
.color-picker-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: center;
}

.color-preset,
.text-color-preset,
.combo-color-preset {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--preset-color);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-spring), border-color var(--transition);
  outline: none;
  flex-shrink: 0;
}

.color-preset:hover,
.text-color-preset:hover,
.combo-color-preset:hover { transform: scale(1.12); }

.color-preset.active,
.text-color-preset.active,
.combo-color-preset.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 14px var(--preset-color);
  transform: scale(1.1);
}

.custom-color-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-md);
  padding: 6px 14px 6px 6px;
  border-radius: 30px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.custom-color-wrapper input[type="color"] {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
}

.custom-color-wrapper input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.custom-color-wrapper input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }
.custom-color-wrapper span { font-size: 0.87rem; color: var(--text); white-space: nowrap; }


/* ---- 15. SHAPE GRID (Step 8) --------------------------------- */
.shape-section { margin-top: 22px; }
.shape-section:first-child { margin-top: 0; }

.shape-section h4 {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shape-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.shape-option input[type="radio"] { display: none; }

.shape-preview-box {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  background: var(--surface);
  margin: 0 auto;
  transition: border-color 0.25s ease, background 0.25s ease, transform var(--transition-spring), box-shadow 0.25s ease;
}

.shape-preview-box:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
}

.shape-option input[type="radio"]:checked + .shape-preview-box {
  border-color: var(--brand);
  background: var(--brand-glow);
  box-shadow: 0 0 0 3px var(--brand-glow), 0 10px 24px var(--brand-glow);
  transform: scale(1.04) translateY(-3px);
}

.shape-preview-inner {
  width: 100%;
  height: 100%;
  background: var(--muted);
  transition: background 0.25s ease;
}

.shape-option input[type="radio"]:checked + .shape-preview-box .shape-preview-inner {
  background: var(--brand);
}

input[name="order-pattern"] + .shape-preview-box .shape-preview-inner {
  background: transparent !important;
  color: var(--muted);
}

input[name="order-pattern"]:checked + .shape-preview-box .shape-preview-inner {
  background: transparent !important;
  color: var(--brand);
}

.shape-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.shape-option input[type="radio"]:checked ~ .shape-label { color: var(--text); }

/* Pattern Tabs */
.pattern-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.pattern-tab {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pattern-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #03100a;
}

.pattern-cat-content { display: none; }
.pattern-cat-content.active { display: block; animation: fadeInStep 0.28s ease; }


/* ---- 16. PREMIUM LOCK OVERLAY ------------------------------- */
.premium-step-pane.is-locked { position: relative; overflow: hidden; }

.premium-step-pane.is-locked > fieldset {
  filter: blur(4px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.premium-lock-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.premium-step-pane.is-locked .premium-lock-overlay { display: flex; }
.premium-lock-overlay .lock-icon svg { width: 46px; height: 46px; stroke: var(--gold); margin-bottom: 14px; }
.premium-lock-overlay h3 { margin-bottom: 8px; font-size: 1.2rem; }
.premium-lock-overlay p  { color: var(--muted); margin-bottom: 22px; font-size: 0.92rem; line-height: 1.44; max-width: 300px; }
.locked-switch-wrapper   { display: block; }


/* ---- 17. RECEIPT (Step 9) ------------------------------------ */
.receipt-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.receipt-header svg { width: 22px; height: 22px; flex-shrink: 0; }

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}

.receipt-item { display: flex; justify-content: space-between; gap: 12px; font-size: 0.93rem; }
.receipt-item span:first-child { opacity: 0.78; }
.receipt-item span:last-child  { font-weight: 700; flex-shrink: 0; }

.nfc-included-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  cursor: default;
}

.nfc-extra-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 310px;
}

.nfc-extra-control > span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.nfc-stepper {
  display: grid;
  grid-template-columns: 38px 58px 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.nfc-stepper button,
.nfc-stepper input {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.nfc-stepper button {
  cursor: pointer;
}

.nfc-stepper button:hover {
  background: var(--surface-md);
}

.nfc-stepper input {
  border-inline: 1px solid var(--line);
  appearance: textfield;
}

.nfc-stepper input::-webkit-outer-spin-button,
.nfc-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  color: var(--text);
}


/* ---- 18. STEPPER FOOTER ------------------------------------- */
.stepper-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stepper-footer button {
  flex: 1;
  min-height: 48px;
  font-size: 1rem;
}

.submit-btn { width: 100%; min-height: 52px; font-size: 1.05rem; border-radius: var(--radius-lg); }


/* ---- 19. LIVE PREVIEW PANEL ---------------------------------- */
.preview-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;
  width: 100%;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 380 / 760;
  border-radius: 40px;
  border: 8px solid rgba(255,255,255,.08);
  background: #090d16;
  box-shadow:
    0 30px 72px rgba(0,0,0,.48),
    0 0 36px var(--brand-glow),
    inset 0 0 0 1.5px rgba(255,255,255,.07);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: rgba(0,0,0,.7);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 2;
}

.device-mockup iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0b1020;
}

.close-preview-btn {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  z-index: 20;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.close-preview-btn svg { width: 18px; height: 18px; }

.mobile-preview-toggle {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #03100a;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px var(--brand-glow);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}


/* ---- 20. CROP MODAL ------------------------------------------ */
.crop-modal-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.crop-modal-content {
  background: color-mix(in srgb, var(--bg-strong) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

.crop-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.crop-modal-header h3 { margin: 0; font-size: 1.1rem; }

.crop-modal-header button,
#crop-cancel-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.crop-modal-body {
  padding: 20px;
  flex: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  max-height: 60vh;
}

.img-container { width: 100%; max-height: 50vh; }
.img-container img { display: block; max-width: 100%; }

.crop-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.crop-modal-footer button { min-width: 110px; min-height: 42px; }


/* ---- 21. SHAPE DEFINITIONS (must be verbatim preserved) ------ */

/* Logo shapes */
.shape-logo-default    { border-radius: 50%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-squircle   { border-radius: 25%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-teardrop   { border-radius: 50% 50% 50% 0; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-teardrop-rev { border-radius: 50% 0 50% 50%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-pillow     { border-radius: 15% 50% 15% 50%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-heart      { border-radius: 0; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 20 C 35 -10 0 -5 0 35 C 0 70 50 100 50 100 C 50 100 100 70 100 35 C 100 -5 65 -10 50 20 Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 20 C 35 -10 0 -5 0 35 C 0 70 50 100 50 100 C 50 100 100 70 100 35 C 100 -5 65 -10 50 20 Z'/%3E%3C/svg%3E"); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none; }
.shape-logo-flower     { border-radius: 0; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 5 C 90 -20 120 20 95 50 C 120 80 90 120 50 95 C 10 120 -20 80 5 50 C -20 20 10 -20 50 5 Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 5 C 90 -20 120 20 95 50 C 120 80 90 120 50 95 C 10 120 -20 80 5 50 C -20 20 10 -20 50 5 Z'/%3E%3C/svg%3E"); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none; }
.shape-logo-leaf       { border-radius: 0 50% 50% 50%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-leaf-rev   { border-radius: 50% 50% 0 50%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-blob1      { border-radius: 41% 59% 45% 55% / 41% 43% 57% 59%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-blob2      { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-logo-blob3      { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; mask-image: none; -webkit-mask-image: none; clip-path: none; }

/* Banner shapes */
.shape-banner-default  { border-radius: 31px; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-pill     { border-radius: 100px; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-slant-r  { border-radius: 100px 20px 100px 20px; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-slant-l  { border-radius: 20px 100px 20px 100px; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-dome     { border-radius: 50% 50% 20px 20px / 100px 100px 20px 20px; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-bowl     { border-radius: 20px 20px 50% 50% / 20px 20px 100px 100px; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-heart    { border-radius: 0; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 20 C 35 -10 0 -5 0 35 C 0 70 50 100 50 100 C 50 100 100 70 100 35 C 100 -5 65 -10 50 20 Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 20 C 35 -10 0 -5 0 35 C 0 70 50 100 50 100 C 50 100 100 70 100 35 C 100 -5 65 -10 50 20 Z'/%3E%3C/svg%3E"); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none; }
.shape-banner-flower   { border-radius: 0; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 5 C 90 -20 120 20 95 50 C 120 80 90 120 50 95 C 10 120 -20 80 5 50 C -20 20 10 -20 50 5 Z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 5 C 90 -20 120 20 95 50 C 120 80 90 120 50 95 C 10 120 -20 80 5 50 C -20 20 10 -20 50 5 Z'/%3E%3C/svg%3E"); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none; }
.shape-banner-teardrop { border-radius: 100px 100px 100px 0; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-leaf     { border-radius: 0 100px 100px 100px; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-blob1    { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; mask-image: none; -webkit-mask-image: none; clip-path: none; }
.shape-banner-blob2    { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; mask-image: none; -webkit-mask-image: none; clip-path: none; }

.shape-preview-inner.banner-preview { height: 30px; }

/* Verify shapes */
.shape-verify-default .verify-bg,
.shape-verify-default .verify-inner,
.shape-preview-inner.shape-verify-default {
  border-radius: 50%;
  mask-image: none; -webkit-mask-image: none; clip-path: none;
}

.shape-verify-scallop .verify-bg,
.shape-verify-scallop .verify-inner,
.shape-preview-inner.shape-verify-scallop {
  border-radius: 0;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10.067.87a2.89 2.89 0 0 0-4.134 0l-.622.638-.89-.011a2.89 2.89 0 0 0-2.924 2.924l.01.89-.636.622a2.89 2.89 0 0 0 0 4.134l.637.622-.011.89a2.89 2.89 0 0 0 2.924 2.924l.89-.01.622.636a2.89 2.89 0 0 0 4.134 0l.622-.637.89.011a2.89 2.89 0 0 0 2.924-2.924l-.01-.89.636-.622a2.89 2.89 0 0 0 0-4.134l-.637-.622.011-.89a2.89 2.89 0 0 0-2.924-2.924l-.89.01-.622-.636z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10.067.87a2.89 2.89 0 0 0-4.134 0l-.622.638-.89-.011a2.89 2.89 0 0 0-2.924 2.924l.01.89-.636.622a2.89 2.89 0 0 0 0 4.134l.637.622-.011.89a2.89 2.89 0 0 0 2.924 2.924l.89-.01.622.636a2.89 2.89 0 0 0 4.134 0l.622-.637.89.011a2.89 2.89 0 0 0 2.924-2.924l-.01-.89.636-.622a2.89 2.89 0 0 0 0-4.134l-.637-.622.011-.89a2.89 2.89 0 0 0-2.924-2.924l-.89.01-.622-.636z'/%3E%3C/svg%3E");
  mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none;
}

.shape-verify-star .verify-bg,
.shape-verify-star .verify-inner,
.shape-preview-inner.shape-verify-star {
  border-radius: 0;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2l2.5 6.5L21 11l-5 4.5L17.5 22 12 18l-5.5 4L8 15.5 3 11l6.5-2.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2l2.5 6.5L21 11l-5 4.5L17.5 22 12 18l-5.5 4L8 15.5 3 11l6.5-2.5z'/%3E%3C/svg%3E");
  mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none;
}

.shape-verify-heart .verify-bg,
.shape-verify-heart .verify-inner,
.shape-preview-inner.shape-verify-heart {
  border-radius: 0;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 20 C 35 -10 0 -5 0 35 C 0 70 50 100 50 100 C 50 100 100 70 100 35 C 100 -5 65 -10 50 20 Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M 50 20 C 35 -10 0 -5 0 35 C 0 70 50 100 50 100 C 50 100 100 70 100 35 C 100 -5 65 -10 50 20 Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none;
}

.shape-verify-shield .verify-bg,
.shape-verify-shield .verify-inner,
.shape-preview-inner.shape-verify-shield {
  border-radius: 0;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
  mask-size: 100% 100%; -webkit-mask-size: 100% 100%; clip-path: none;
}

.shape-verify-hexagon .verify-bg,
.shape-verify-hexagon .verify-inner,
.shape-preview-inner.shape-verify-hexagon {
  border-radius: 0;
  mask-image: none; -webkit-mask-image: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape-preview-inner.verify-preview { width: 22px; height: 22px; margin: 4px; }


/* ---- 22. SMOOTH THEME TRANSITIONS ---------------------------- */
body,
.stepper-form fieldset,
.shape-preview-box,
.preview-panel,
.device-mockup {
  transition:
    background-color 0.4s ease,
    border-color     0.4s ease,
    color            0.4s ease,
    box-shadow       0.4s ease;
}


/* ====================================================================
   RESPONSIVE BREAKPOINTS — Mobile-first, clean cascade
   ================================================================== */

/* ---- 23. LARGE DESKTOP: 1200px+ ------------------------------ */
@media (min-width: 1200px) {
  .order-layout {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }
}

/* ---- 24. MEDIUM DESKTOP: 993px – 1199px ---------------------- */
@media (min-width: 993px) and (max-width: 1199px) {
  .order-layout {
    grid-template-columns: 1fr 340px;
    gap: 28px;
  }

  .shape-grid {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  }
}

/* ---- 25. TABLET LANDSCAPE: 769px – 992px --------------------- */
@media (min-width: 769px) and (max-width: 992px) {
  .order-layout {
    grid-template-columns: 1fr 280px;
    gap: 22px;
  }

  .preview-panel {
    top: calc(var(--header-h) + 16px);
  }

  .shape-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px;
  }

  .stepper-header {
    gap: 0;
  }

  .step-line {
    margin: 0 2px;
  }

  /* Shared 992px- breakpoints from index page */
  .hero-section,
  .section-heading,
  .nfc-section,
  .order-panel {
    grid-template-columns: 1fr;
  }

  .desktop-nav { display: none; }

  .hero-section   { min-height: auto; padding-top: 38px; }
  .hero-media     { min-height: 400px; }
  .audience-grid,
  .flow,
  .feature-grid,
  .control-grid,
  .tier-grid      { grid-template-columns: 1fr; }

  .highlight-strip {
    display: flex;
    gap: 16px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .highlight-item { flex: 0 0 110px; scroll-snap-align: start; }
  .audience-grid article { min-height: auto; }
  .order-actions { min-width: 0; flex-direction: row; flex-wrap: wrap; }
}

/* ---- 26. TABLET PORTRAIT: ≤768px ----------------------------- */
@media (max-width: 768px) {
  .desktop-nav { display: none; }

  /* Collapse to single column */
  .order-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Preview panel: hidden overlay — visible when .is-open */
  .preview-panel {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 60;
    align-items: flex-start;
    justify-content: center;
    /* no padding here — inner wrapper handles spacing */
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    /* overlay itself scrolls so device can be taller than viewport */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .preview-panel.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Scrollable inner wrapper — centers device, 2px side margins */
  .preview-panel .device-mockup {
    position: relative;
    /* 2px from each edge, full remaining width */
    width: calc(100vw - 4px);
    max-width: 420px;
    /* keep phone aspect ratio; device can be taller than viewport → overlay scrolls */
    border-radius: 32px;
    border-width: 6px;
    /* push down from top so close btn is reachable; bottom breathing room */
    margin: 52px auto 32px;
    flex-shrink: 0;
  }

  /* Close button — fixed to top-right of SCREEN, always reachable */
  .close-preview-btn {
    display: flex !important;
    position: fixed;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    z-index: 70;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  /* Toggle button — floating pill at bottom */
  .mobile-preview-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .premium-names-marquee { padding: 44px 0; }

  .hero-section,
  .section-heading,
  .nfc-section,
  .order-panel {
    grid-template-columns: 1fr;
  }

  .mini-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 27. MOBILE: max-width 640px ------------------------------ */
@media (max-width: 640px) {
  /* Prevent any overflow */
  html, body { overflow-x: hidden; width: 100%; }

  /* Header */
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 20px);
  }

  .site-header {
    min-height: 60px;
    margin-top: 8px;
    border-radius: 18px;
    padding: 8px 12px;
  }

  .brand span,
  .header-cta { display: none; }

  /* Page header */
  .order-page-section { padding: 32px 0 64px; }

  .order-header { margin-bottom: 28px; }

  #order-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.2;
    text-align: center;
  }

  .order-header p { font-size: 0.9rem; }

  /* Stepper — all 9 steps fit */
  .stepper-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .stepper-header::-webkit-scrollbar { display: none; }

  .step-indicator {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .step-line {
    flex: 1;
    min-width: 8px;
    margin: 0 1px;
  }

  /* Fieldsets */
  .stepper-form fieldset {
    padding: 16px 14px;
    border-radius: var(--radius);
  }

  /* Inputs — 16px prevents iOS zoom */
  .stepper-form input[type="text"],
  .stepper-form input[type="url"],
  .stepper-form input[type="tel"],
  .stepper-form textarea,
  .stepper-form select,
  .domain-input > input {
    font-size: 16px !important;
    min-height: 46px;
  }

  /* Domain input stacks vertically on mobile */
  .domain-input {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .domain-input > span {
    width: 100%;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .domain-input > input {
    width: 100%;
    border-radius: 0 0 var(--radius) var(--radius) !important;
    padding: 10px 14px !important;
  }

  /* Link URL wrappers specifically */
  .stepper-form .dynamic-row .link-url-wrapper {
    width: 100%;
    flex: none;
  }

  /* Dynamic rows stack vertically */
  .dynamic-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .dynamic-row .icon-preview { margin: 0 auto; }

  .stepper-form .dynamic-row select.icon-select,
  .stepper-form .dynamic-row .link-label-input,
  .stepper-form .dynamic-row .card-name-input {
    width: 100%;
    flex: none;
  }

  .stepper-form .dynamic-row .link-url-wrapper .domain-input { flex-direction: row; }
  .stepper-form .dynamic-row .link-url-wrapper .domain-input > span {
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    white-space: nowrap;
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .stepper-form .dynamic-row .link-url-wrapper .domain-input > input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  }

  .remove-row-btn { width: 100%; height: 40px; border-radius: var(--radius-sm); }

  /* Premium switch */
  .premium-switch-container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .premium-switch-info { flex: 1 1 calc(100% - 64px); }

  /* Feature cards */
  .premium-feature-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
  }

  /* Image upload */
  .image-upload-preview {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .circle-preview { width: 88px; height: 88px; }

  .rect-preview {
    width: 100%;
    max-width: 240px;
    height: 112px;
  }

  .upload-controls { width: 100%; text-align: center; }
  .btn-group { justify-content: center; }

  /* Color grid */
  .color-picker-grid { gap: 10px; }
  .color-preset,
  .text-color-preset,
  .combo-color-preset { width: 40px; height: 40px; }

  /* Shape grid */
  .shape-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px;
  }

  .shape-preview-box { max-width: 100%; padding: 5px; }
  .shape-label       { font-size: 0.66rem; }

  /* Stepper footer */
  .stepper-footer {
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(12px);
    padding: 12px 0 16px;
    margin: 0 -1px;
    z-index: 20;
  }

  .stepper-footer button { min-height: 48px; font-size: 0.97rem; }

  /* Preview panel — below form */
  .preview-panel {
    margin-top: 8px;
    justify-content: center;
  }

  .device-mockup {
    max-width: 300px;
    border-radius: 28px;
    border-width: 5px;
  }

  .device-notch { width: 90px; height: 18px; }

  /* Hero */
  h1 { font-size: clamp(2.2rem, 13vw, 3.8rem); }
  .hero-media { min-height: 340px; }
  .domain-card { right: 6px; bottom: 5%; }

  .audience-section,
  .highlights-section,
  .how-section,
  .nfc-section,
  .order-section,
  .control-section { padding: 44px 0; }

  .mini-stats { grid-template-columns: 1fr; }

  .primary-btn,
  .secondary-btn { width: 100%; }

  .order-actions { flex-direction: column; }
}

/* ---- 28. SMALL MOBILE: max-width 480px (390px / 375px) -------- */
@media (max-width: 480px) {
  #order-title { font-size: clamp(1.4rem, 6.5vw, 1.8rem); text-align: center; }

  .step-indicator { width: 26px; height: 26px; font-size: 0.72rem; }

  .step-line { min-width: 6px; }

  .stepper-form fieldset { padding: 14px 12px; }

  .color-picker-grid { gap: 8px; }
  .color-preset,
  .text-color-preset,
  .combo-color-preset { width: 36px; height: 36px; }

  .shape-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 6px;
  }

  .shape-preview-box { max-width: 100%; padding: 4px; }
  .shape-label       { font-size: 0.62rem; }

  .device-mockup { max-width: 260px; }

  .receipt-total { flex-direction: column; align-items: flex-start; gap: 4px; }

  .nfc-included-card {
    grid-template-columns: 1fr;
  }

  .nfc-extra-control {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .nfc-stepper {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }
}

/* ---- 29. TINY: max-width 320px ------------------------------- */
@media (max-width: 320px) {
  .site-header { padding: 6px 10px; }

  .step-indicator { width: 22px; height: 22px; font-size: 0.68rem; }
  .step-line { min-width: 4px; margin: 0; }

  .stepper-form fieldset { padding: 12px 10px; }

  .shape-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
  .shape-preview-box { max-width: 100%; }

  .device-mockup { max-width: 240px; border-radius: 22px; border-width: 4px; }

  .btn-group { flex-direction: column; }
  .btn-group .secondary-btn { width: 100%; }
}
