/* ============================================================
   VERSORA.UZ — Minimal Black-and-White SaaS Order Stylesheet
   Modern, ultra-clean, mobile-first, and fully responsive
   ============================================================ */

/* ---- 1. DESIGN TOKENS (LIGHT MINIMAL SAAS) ------------------ */
:root {
  color-scheme: light;
  --bg:              #ffffff;
  --bg-strong:       #fafafa;
  --surface:         #ffffff;
  --surface-md:      #f4f4f5;
  --surface-strong:  #e4e4e7;
  --text:            #09090b;
  --muted:           #71717a;
  --line:            #e4e4e7;
  --line-strong:     #d4d4d8;
  --border:          #e4e4e7;
  --brand:           #000000;
  --brand-strong:    #18181b;
  --brand-glow:      rgba(0, 0, 0, 0.08);
  --gold:            #b07820;
  --gold-glow:       rgba(176, 120, 32, 0.15);
  --blue:            #2563eb;
  --danger:          #ef4444;
  --shadow-sm:       0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow:          0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg:       0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-soft:     0 4px 20px rgba(0, 0, 0, 0.03);
  --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);
}

/* Base Reset & Global */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
*, *::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: #ffffff;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

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.025em;
  line-height: 1.15;
  color: var(--text);
}

::-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); }


/* ============ UNIFIED SITE HEADER ============ */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 1vw, 14px);
  width: min(1240px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 8px clamp(10px, 1.2vw, 18px);
  border: 1px solid var(--border, rgba(17, 24, 39, 0.06));
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  transition: all 300ms ease;
  box-sizing: border-box;
}

.brand-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  flex-shrink: 0;
  display: block;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.35vw, 6px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav li {
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px clamp(6px, 0.5vw, 9px);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 200ms ease;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
}

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

/* Button & Header CTA */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.84rem;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: #111827;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
}

.button--primary:hover {
  background: #1f2937;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.25);
}

.header-cta-desktop {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #09090b;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1140px) {
  .site-header {
    top: 10px;
    margin: 10px auto 0;
    padding: 10px 16px;
  }
  
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transform-origin: top center;
    animation: slideDownMenu 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .site-nav.is-open {
    display: block !important;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(0, 0, 0, 0.02);
  }

  .site-nav a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .nav-toggle {
    display: flex;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Input Fields Clean Styling */
.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 16px;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.stepper-form input:focus,
.stepper-form textarea:focus,
.stepper-form select:focus {
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06) !important;
}

.stepper-form fieldset {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.stepper-form legend {
  color: var(--text) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 0 8px !important;
}

.primary-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  border-radius: var(--radius-pill) !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.primary-btn:hover {
  background: #27272a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

.secondary-btn {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-pill) !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.secondary-btn:hover {
  background: var(--surface-md) !important;
  border-color: var(--line-strong) !important;
}

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

/* Page section */
.order-page-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 64px;
  box-sizing: border-box;
}

/* Page header text */
.order-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#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 310px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.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: 28px;
  height: 28px;
  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: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
  opacity: 1;
}

.step-indicator.is-active {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.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: #000000 !important;
}

/* 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: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transition: box-shadow var(--transition), z-index var(--transition);
  margin: 0;
  position: relative;
  z-index: 1;
}

.stepper-form fieldset:focus-within,
.stepper-form fieldset:hover,
.stepper-form fieldset.fieldset-popover-open {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  z-index: 20 !important;
}

.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;
}

.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 var(--line);
  background: var(--surface-strong);
  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: var(--bg-strong);
  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 var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
  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: var(--surface-md);
  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: var(--surface-md);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.dynamic-row.popover-open {
  z-index: 100 !important;
}

/* Icon Picker styling */
.icon-picker-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.icon-picker-trigger {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-md);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition), background var(--transition);
}

.icon-picker-trigger:hover {
  border-color: var(--brand);
  background: var(--surface-strong);
}

.icon-picker-trigger svg,
.icon-picker-trigger i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

.icon-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 999;
  background: var(--bg-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow);
  width: 236px;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.icon-picker-grid button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.icon-picker-grid button:hover {
  background: var(--brand);
  color: #ffffff;
}

.icon-picker-grid button svg,
.icon-picker-grid button i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

/* Static Preview for default rows */
.icon-preview-static {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-md);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-preview-static svg,
.icon-preview-static i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

.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: 110px;
  flex: 0 0 110px;
  min-width: 0;
}

.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: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow), 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);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

.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 Selector Dropdown */
.pattern-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
  z-index: 105;
}

.pattern-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pattern-select-trigger:hover {
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(0, 229, 148, 0.15);
}

.pattern-select-trigger i {
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.pattern-select-trigger.open {
  border-color: var(--brand);
  background: var(--surface-strong);
}

.pattern-select-trigger.open i {
  transform: rotate(180deg);
  color: var(--brand);
}

.pattern-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  z-index: 110;
}

.pattern-select-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pattern-select-option {
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pattern-select-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.pattern-select-option.active {
  background: rgba(0, 229, 148, 0.08);
  color: var(--brand);
  font-weight: 600;
}

.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) + 16px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;
  width: 100%;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 600px;
  border-radius: 38px;
  border: 7px solid #18181b;
  background: #090d16;
  box-shadow:
    0 16px 40px rgba(0,0,0,.14),
    0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden;
  --mockup-scale: 0.76;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 18px;
  background: #18181b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 5;
  pointer-events: none;
}

.device-mockup iframe {
  width: calc(100% / var(--mockup-scale, 0.76));
  height: calc(100% / var(--mockup-scale, 0.76));
  transform: scale(var(--mockup-scale, 0.76));
  transform-origin: 0 0;
  border: none;
  background: #0b1020;
  display: block;
}

.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: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: #000000; border: 1px solid #000000;
  color: #ffffff;
  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: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  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-page-section {
    width: min(1120px, calc(100% - 64px));
  }
  .order-layout {
    grid-template-columns: 1fr 310px;
    gap: 32px;
  }
}

/* ---- 24. MEDIUM DESKTOP: 993px – 1199px ---------------------- */
@media (min-width: 993px) and (max-width: 1199px) {
  .order-page-section {
    width: min(980px, calc(100% - 48px));
  }
  .order-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  .device-mockup {
    max-width: 275px;
    height: 560px;
  }

  .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;
  }

  
  .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;
  }

  /* Mobile layout for dynamic rows */
  .dynamic-row {
    display: grid !important;
    grid-template-columns: 38px 1fr 34px !important;
    gap: 8px !important;
    padding: 12px !important;
    align-items: center !important;
  }

  .dynamic-row .icon-picker-wrapper {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
  }

  .icon-picker-trigger {
    width: 38px !important;
    height: 38px !important;
  }

  .dynamic-row .remove-row-btn {
    grid-column: 3;
    grid-row: 1;
    width: 34px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Default links (Instagram/Telegram) - hide select dropdown and label input on mobile to make it o'ta ixcham */
  .dynamic-row:not(.is-extra-link) .link-label-input {
    display: none !important;
  }

  .dynamic-row:not(.is-extra-link) {
    grid-template-columns: 38px 1fr !important;
    grid-template-rows: auto !important;
  }

  .dynamic-row:not(.is-extra-link) .icon-preview-static {
    grid-column: 1;
    grid-row: 1;
  }

  .dynamic-row:not(.is-extra-link) .link-url-input {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Extra links: trigger on row 1 col 1, label on row 1 col 2, remove button on row 1 col 3 */
  .dynamic-row.is-extra-link .link-label-input {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    margin: 0 !important;
  }

  /* URL input spans row 2 on mobile */
  .dynamic-row.is-extra-link .link-url-input {
    grid-column: 1 / span 3;
    grid-row: 2;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Payment cards container on mobile */
  #cards-container .dynamic-row {
    grid-template-columns: 1fr 34px !important;
    grid-template-rows: auto auto !important;
  }

  #cards-container .dynamic-row .card-name-input {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    margin: 0 !important;
  }

  #cards-container .dynamic-row .remove-row-btn {
    grid-column: 2;
    grid-row: 1;
    width: 34px !important;
    height: 38px !important;
    margin: 0 !important;
  }

  #cards-container .dynamic-row .card-num-input {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100% !important;
    margin: 0 !important;
  }

  /* 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; }

}

/* ---- 30. MOBILE BOTTOM FLOATING NAVIGATION BAR ---------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 92%;
}

@media (max-width: 992px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.mobile-bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.mobile-bottom-nav a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.mobile-bottom-nav a:active {
  transform: scale(0.95);
}

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

.mobile-bottom-nav a.active svg {
  stroke: var(--brand);
  transform: scale(1.05);
}

/* Mobile responsive optimization */
@media (max-width: 480px) {
  /* Default: index.html (centered layout) */
  .mobile-bottom-nav {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    padding: 5px;
  }
  
  .mobile-bottom-nav a span {
    display: none;
  }
  
  .mobile-bottom-nav a.active span {
    display: inline;
  }
  
  .mobile-bottom-nav a {
    padding: 10px;
    gap: 0;
  }
  
  .mobile-bottom-nav a.active {
    padding: 8px 14px;
    gap: 6px;
  }

  /* Override for pages with preview button (e.g. order.html) */
  body.has-preview-btn .mobile-bottom-nav {
    left: 16px;
    right: 76px; /* 16px margin + 46px button + 14px gap */
    transform: none;
    width: auto;
    max-width: none;
  }

  body.has-preview-btn .mobile-preview-toggle {
    display: flex !important;
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    transform: none !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999 !important;
    box-shadow: var(--shadow-lg) !important;
  }

  body.has-preview-btn .mobile-preview-toggle span {
    display: none !important;
  }
}

/* Premium Gifts Grid */
.gifts-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding: 4px;
}

.gift-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.gift-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.gift-card.selected {
  border-color: var(--brand);
  background: rgba(0, 0, 0, 0.08);
}

.gift-card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gift-card:hover .gift-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.gift-card-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}

.gift-card-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
}

.gift-card-controls {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gift-buy-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.gift-card.selected .gift-buy-btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.gift-pin-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
  width: 100%;
}

.gift-card.selected .gift-pin-btn {
  display: flex;
}

.gift-card.selected .gift-pin-btn.pinned {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}



/* ============ LIVE PREVIEW & CLOSE BUTTON ============ */
.close-preview-btn {
  display: none;
}

@media (max-width: 768px) {
  .preview-panel {
    display: none;
  }

  .preview-panel.is-open {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }

  .preview-panel.is-open .device-mockup {
    margin: auto !important;
    transform: scale(0.92) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  }

  /* Screen top-right prominent close button */
  .preview-panel.is-open .close-preview-btn {
    display: flex !important;
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    z-index: 10001 !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.18s ease, background-color 0.18s ease !important;
  }

  .close-preview-btn:hover,
  .close-preview-btn:active {
    transform: scale(1.08) !important;
    background: #f4f4f5 !important;
  }

  .close-preview-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #000000 !important;
    stroke-width: 2.5 !important;
  }

  /* Floating Eye/Close toggle */
  .mobile-preview-toggle {
    display: flex !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    z-index: 10002 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
  }

  .mobile-preview-toggle:hover {
    transform: scale(1.06) !important;
  }

  .mobile-preview-toggle span {
    display: none !important;
  }
}


/* ============ UNIFIED FOOTER ============ */
.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.footer-links h3,
.footer-contact h3 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: #111827;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: all 200ms ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  color: #111827;
  transition: transform 200ms ease, color 200ms ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.social-btn.instagram:hover {
  border-color: #E1306C;
  color: #E1306C;
  background: rgba(225, 48, 108, 0.03);
}

.social-btn.instagram:hover svg {
  color: #E1306C;
}

.social-btn.telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
  background: rgba(0, 136, 204, 0.03);
}

.social-btn.telegram:hover svg {
  color: #0088cc;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}



@media (max-width: 768px) {
  .footer {
    margin-top: 64px;
    padding-top: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- Navigation & Mobile Header Styles --- */
.mobile-only-nav-item {
  display: none;
}

@media (max-width: 900px) {
  .mobile-only-nav-item {
    display: block;
    margin-top: 8px;
    width: 100%;
  }

  .mobile-only-nav-item .nav-boshlash-btn {
    display: flex !important;
    width: 100% !important;
    background: #000000 !important;
    color: #ffffff !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  }

  .mobile-only-nav-item .nav-boshlash-btn:hover {
    background: #27272a !important;
    color: #ffffff !important;
  }
}


/* Verify Badge Previews in Step 8 (Font Awesome) */
.verify-badge-round-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f17;
  font-size: 13px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.verify-badge-scallop-preview {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.verify-badge-scallop-preview .base {
  font-size: 28px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.verify-badge-scallop-preview .check {
  position: absolute;
  font-size: 11px;
  color: #0b0f17;
  font-weight: 900;
}

.shape-option input[name="order-verify-shape"]:checked + .shape-preview-box .verify-badge-round-preview {
  background: var(--brand);
  color: #0b0f17;
  transform: scale(1.15);
  box-shadow: 0 0 12px var(--brand-glow);
}

.shape-option input[name="order-verify-shape"]:checked + .shape-preview-box .verify-badge-scallop-preview {
  transform: scale(1.15);
}

.shape-option input[name="order-verify-shape"]:checked + .shape-preview-box .verify-badge-scallop-preview .base {
  color: var(--brand);
}

/* Global Mobile Form Auto-zoom Prevention (iOS Safari requires 16px+) */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Wide Screen (1440px - 1920px) Clean Centering */
.site-header,
.order-page-section,
.footer-container {
  max-width: 1200px;
  margin-inline: auto;
}
