/* =====================================================================
   Souq — سوق. Marketplace surface (subdomain). Arabic RTL-first, built on
   the shared brand tokens (tokens.css). Lifetime-deal store for builder
   products. Prototype styling — visual pass for review before backend.
   ===================================================================== */

.sq-body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--fg-primary);
  font-family: var(--font-arabic);
  -webkit-font-smoothing: antialiased;
}
.sq-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* ---- Nav — reuses the site's .ao-nav smart navbar (navbar.css/.js) ----
   Only the Souq-specific brand + dark-fold + offset tweaks live here. */
/* Two-line brand: سوق (big) over من عبدول أسامة (small), beside the round mark. */
.sq-brandtext { display: inline-flex; flex-direction: column; line-height: 1.04; }
.sq-brandtext b { font-family: var(--font-arabic-display); font-weight: 800; font-size: 19px; }
.sq-brandtext small { font-size: 11px; font-weight: 600; color: var(--fg-tertiary); margin-top: 2px; }
/* Flat over the dark hero → brand text goes light (matches .ao-brand-name). */
.nav-top.nav-on-dark .sq-brandtext b { color: #fff; }
.nav-top.nav-on-dark .sq-brandtext small { color: rgba(255,255,255,.65); }
/* Sign-in — salmon so it reads on both the dark hero and the light pill. */
.sq-nav-signin.ao-nav-cta { background-image: var(--abdul-gradient-salmon); }
.sq-nav-me { cursor: default; color: var(--fg-tertiary); }
.nav-top.nav-on-dark .sq-nav-me { color: rgba(255,255,255,.75); }
/* The dark hero slides under the transparent bar — give it headroom. */
body.nav-overlap .sq-hero-inner { padding-top: clamp(104px, 13vh, 140px); }
/* (Skyline bottom-anchoring is now handled globally in tokens.css.) */

/* ---- Buttons ---------------------------------------------------------- */
.sq-btn {
  display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, filter .15s, background .15s, border-color .15s;
}
/* Block buttons are width:100% — border-box keeps padding INSIDE that width
   so a full-width CTA never spills past its card. */
.sq-btn-block { box-sizing: border-box; }
.sq-btn:active { transform: scale(.98); }
/* Grounded shadow (negative spread) sits directly under the button — no
   wide salmon halo bleeding out on light cards like the buybox. */
.sq-btn-primary { background: var(--abdul-gradient-salmon); color: #fff; box-shadow: 0 6px 16px -8px rgba(245,83,106,.55); }
.sq-btn-primary:hover { filter: brightness(1.04) saturate(1.05); box-shadow: 0 9px 20px -8px rgba(245,83,106,.6); }
.sq-btn-ghost { background: transparent; color: var(--fg-primary); border-color: var(--border-subtle); }
.sq-btn-ghost:hover { border-color: var(--fg-primary); }
.sq-btn-lg { padding: 15px 30px; font-size: 16px; }
.sq-btn-block { display: flex; width: 100%; justify-content: center; }

/* ---- Nav -------------------------------------------------------------- */
.sq-nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg-canvas) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.sq-nav-inner { max-width: 1120px; margin-inline: auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.sq-brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--fg-primary); }
.sq-brand-mark { font-family: var(--font-arabic-display); font-weight: 900; font-size: 26px; line-height: 1; }
.sq-brand-by { font-size: 12px; color: var(--fg-tertiary); font-weight: 600; }
.sq-nav-spacer { flex: 1; }
.sq-nav-link { color: var(--fg-secondary); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 10px; border-radius: var(--r-md); }
.sq-nav-link:hover { color: var(--fg-primary); background: var(--bg-sunken); }
.sq-nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-subtle); }

/* ---- Hero (night-sky band, ties Souq to the brand) -------------------- */
.sq-hero { position: relative; overflow: hidden; background: var(--abdul-gradient-core); color: #fff; }
.sq-hero-inner { max-width: 1120px; margin-inline: auto; padding: 62px 20px 56px; position: relative; z-index: 2; text-align: center; }
.sq-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
}
.sq-hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--abdul-salmon-400); }
.sq-hero-title { font-family: var(--font-arabic-display); font-weight: 700; font-size: clamp(30px, 5vw, 52px); line-height: 1.28; margin: 0 auto 16px; max-width: 16ch; }
.sq-hero-title .accent { background: var(--abdul-gradient-salmon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sq-hero-sub { font-size: clamp(15px, 2.2vw, 18px); line-height: 1.85; color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 26px; }
.sq-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sq-hero-note { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.62); }

/* ---- Toolbar ---------------------------------------------------------- */
.sq-toolbar { display: flex; align-items: center; gap: 12px; padding: 28px 0 18px; flex-wrap: wrap; }
.sq-toolbar h2 { font-family: var(--font-arabic-display); font-size: 24px; font-weight: 700; margin: 0; }
.sq-toolbar .count { color: var(--fg-tertiary); font-size: 14px; font-weight: 600; }
.sq-sort { margin-inline-start: auto; display: flex; gap: 6px; }
.sq-chip { padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--border-subtle); background: var(--bg-raised); font-size: 13.5px; font-weight: 600; color: var(--fg-secondary); cursor: pointer; }
.sq-chip.is-active { background: var(--fg-primary); color: #fff; border-color: var(--fg-primary); }

/* ---- Product grid + cards -------------------------------------------- */
.sq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 56px; }
.sq-card {
  position: relative; background: var(--bg-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.sq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sq-card:active { transform: translateY(0); }

/* cover uses the shared 8-palette recipe via [data-cover] (vars in tokens.css) */
.sq-cover {
  position: relative; aspect-ratio: 16 / 9; background: var(--cover-bg, var(--abdul-gradient-core));
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow: visible;
}
.sq-cover-title { font-family: var(--font-arabic-display); font-weight: 700; font-size: 26px; color: var(--cover-text, #fff); text-align: center; line-height: 1.2; opacity: .92; }
.sq-featured { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(16,12,44,.72); color: #fff; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(4px); }
.sq-featured svg { width: 13px; height: 13px; }

.sq-card-icon {
  position: absolute; inset-block-end: -24px; inset-inline-start: 18px;
  width: 56px; height: 56px; border-radius: 15px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-arabic-display); font-weight: 900; font-size: 24px; color: #fff;
  border: 3px solid var(--bg-raised); box-shadow: var(--shadow-md);
}
.sq-card-body { padding: 34px 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sq-card-name { font-family: var(--font-arabic-display); font-weight: 700; font-size: 19px; margin: 0; }
.sq-card-tag { color: var(--fg-secondary); font-size: 13.5px; line-height: 1.6; margin: 0; flex: 1; }
.sq-card-builder { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-tertiary); font-weight: 600; }
.sq-card-builder img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.sq-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.sq-price { font-weight: 800; font-size: 18px; color: var(--fg-primary); }
.sq-price .cur { font-size: 13px; color: var(--fg-tertiary); font-weight: 700; }
.sq-ltd { font-size: 11px; font-weight: 700; color: var(--abdul-mint-500); background: color-mix(in oklab, var(--abdul-mint-500) 14%, transparent); padding: 3px 8px; border-radius: var(--r-pill); }
.sq-foot-spacer { flex: 1; }
/* card upvote — a boxed ▲-over-count score, so a high vote count reads
   clearly as "more people recommend this" (Product-Hunt style). */
.sq-upvote { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-sizing: border-box; min-width: 50px; padding: 6px 8px; border-radius: var(--r-lg); border: 1.5px solid var(--border-subtle); background: var(--bg-canvas); font-family: var(--font-arabic-display); font-weight: 800; font-size: 15px; line-height: 1; color: var(--fg-secondary); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.sq-upvote svg { width: 15px; height: 15px; }
.sq-upvote.is-on { border-color: var(--abdul-salmon-600); color: var(--abdul-salmon-600); background: color-mix(in oklab, var(--abdul-salmon-600) 10%, transparent); }
.sq-card:hover .sq-upvote { border-color: color-mix(in oklab, var(--abdul-salmon-600) 45%, var(--border-subtle)); color: var(--abdul-salmon-600); }
.sq-sold { font-size: 12.5px; color: var(--fg-tertiary); font-weight: 600; }

/* ---- Product page ----------------------------------------------------- */
/* padding-block only — the 3-value shorthand this replaced also zeroed
   left/right, which fought .sq-wrap's padding-inline and let this page's
   content (cover, title, prose, buy box) run flush to the screen edges
   on mobile. */
.sq-product { padding-block: 32px 64px; }
.sq-back { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-tertiary); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.sq-back:hover { color: var(--fg-primary); }
.sq-product-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 34px; align-items: start; }
.sq-product-cover { position: relative; aspect-ratio: 16/9; border-radius: var(--r-2xl); background: var(--cover-bg, var(--abdul-gradient-core)); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.sq-product-cover .sq-cover-title { font-size: 40px; }
.sq-product-headrow { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; }
.sq-product-iconlg { width: 64px; height: 64px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-family: var(--font-arabic-display); font-weight: 900; font-size: 28px; color: #fff; box-shadow: var(--shadow-md); flex: none; }
.sq-product-name { font-family: var(--font-arabic-display); font-weight: 700; font-size: 30px; margin: 0; }
.sq-product-tag { color: var(--fg-secondary); font-size: 16px; line-height: 1.7; margin: 2px 0 0; }
.sq-prose { margin-top: 26px; font-size: 15.5px; line-height: 1.95; color: var(--fg-secondary); }
.sq-prose h3 { font-family: var(--font-arabic-display); color: var(--fg-primary); font-size: 20px; margin: 26px 0 10px; }
.sq-prose ul { padding-inline-start: 22px; }
.sq-prose li { margin-bottom: 8px; }

/* buy box (sticky sidebar) */
.sq-buybox { position: sticky; top: 84px; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-2xl); padding: 24px; box-shadow: var(--shadow-md); }
.sq-buy-priceline { display: flex; align-items: baseline; gap: 10px; }
.sq-buy-price { font-family: var(--font-arabic-display); font-weight: 800; font-size: 40px; }
.sq-buy-price .cur { font-size: 22px; color: var(--fg-tertiary); }
.sq-buy-ltd { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; font-size: 13px; color: var(--abdul-mint-500); }
.sq-buy-cta { margin-top: 18px; }
.sq-buy-meta { display: flex; gap: 8px; margin-top: 14px; }
.sq-buy-stat { flex: 1; text-align: center; background: var(--bg-canvas); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 10px 6px; }
.sq-buy-stat b { display: block; font-size: 18px; font-family: var(--font-arabic-display); }
.sq-buy-stat span { font-size: 11.5px; color: var(--fg-tertiary); font-weight: 600; }

/* prominent upvote (product page) — social proof + action in one control.
   The count lives in a filled ▲-chip so the vote reads as a real signal. */
.sq-vote { display: flex; align-items: stretch; gap: 13px; width: 100%; box-sizing: border-box; margin-top: 14px; padding: 11px 13px; border: 1.5px solid var(--border-subtle); border-radius: var(--r-2xl); background: var(--bg-canvas); color: var(--fg-primary); text-decoration: none; text-align: start; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.sq-vote:hover { border-color: var(--abdul-salmon-600); }
.sq-vote:active { transform: scale(.99); }
.sq-vote-up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; padding: 8px 0; border-radius: var(--r-lg); background: color-mix(in oklab, var(--abdul-salmon-600) 12%, transparent); color: var(--abdul-salmon-600); }
.sq-vote-up svg { width: 18px; height: 18px; }
.sq-vote-up b { font-family: var(--font-arabic-display); font-weight: 800; font-size: 21px; line-height: 1; }
.sq-vote-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.sq-vote-text .t { font-weight: 700; font-size: 14.5px; }
.sq-vote-text .s { font-size: 12px; color: var(--fg-tertiary); }
.sq-vote.is-on { border-color: var(--abdul-salmon-600); background: color-mix(in oklab, var(--abdul-salmon-600) 6%, transparent); }
.sq-vote.is-on .sq-vote-up { background: var(--abdul-gradient-salmon); color: #fff; }
.sq-sold-line { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--fg-tertiary); font-weight: 600; }
.sq-redeem { margin-top: 16px; padding: 12px 14px; background: color-mix(in oklab, var(--abdul-mint-500) 8%, transparent); border: 1px dashed color-mix(in oklab, var(--abdul-mint-500) 40%, transparent); border-radius: var(--r-lg); font-size: 13px; line-height: 1.7; color: var(--fg-secondary); }
.sq-scarce { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--abdul-salmon-600); font-weight: 700; }
.sq-guarantee { margin-top: 14px; text-align: center; font-size: 12px; color: var(--fg-tertiary); line-height: 1.6; }

/* builder mini card on product page */
.sq-builder-mini { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); background: var(--bg-canvas); text-decoration: none; color: inherit; }
.sq-builder-mini img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.sq-builder-mini .n { font-weight: 700; }
.sq-builder-mini .r { font-size: 12.5px; color: var(--fg-tertiary); }

/* ---- Builder page ----------------------------------------------------- */
.sq-builder-head { display: flex; align-items: center; gap: 22px; padding: 40px 0 8px; }
.sq-builder-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); flex: none; }
.sq-builder-name { font-family: var(--font-arabic-display); font-weight: 700; font-size: 30px; margin: 0; }
.sq-builder-role { color: var(--fg-tertiary); font-weight: 600; margin: 2px 0 0; }
.sq-builder-bio { color: var(--fg-secondary); line-height: 1.8; max-width: 60ch; margin: 14px 0 16px; }
.sq-socials { display: flex; gap: 10px; }
.sq-social { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-sunken); color: var(--fg-secondary); border: 1px solid var(--border-subtle); }
.sq-social:hover { background: var(--fg-primary); color: #fff; }
.sq-social svg { width: 18px; height: 18px; }

/* ---- Forms (become a builder / submit product) ----------------------- */
.sq-form-page { padding: 32px 0 64px; }
.sq-form-head { text-align: center; margin-bottom: 30px; }
.sq-form-head h1 { font-family: var(--font-arabic-display); font-weight: 700; font-size: clamp(26px,4vw,38px); margin: 0 0 8px; }
.sq-form-head p { color: var(--fg-secondary); font-size: 15.5px; line-height: 1.7; max-width: 52ch; margin: 0 auto; }
.sq-form { max-width: 680px; margin-inline: auto; }
.sq-section { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); padding: 24px; margin-bottom: 20px; }
.sq-section-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-arabic-display); font-weight: 700; font-size: 19px; margin: 0 0 4px; }
.sq-section-note { color: var(--fg-tertiary); font-size: 13px; margin: 0 0 18px; line-height: 1.6; }
.sq-badge-private { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--abdul-indigo-800) 12%, transparent); color: var(--abdul-indigo-800); border: 1px solid color-mix(in oklab, var(--abdul-indigo-800) 25%, transparent); }
.sq-badge-public { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--abdul-mint-500) 14%, transparent); color: var(--abdul-mint-500); }
.sq-field { margin-bottom: 16px; }
.sq-field:last-child { margin-bottom: 0; }
.sq-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.sq-req { color: var(--abdul-salmon-600); }
.sq-hint { color: var(--fg-tertiary); font-size: 12.5px; font-weight: 500; }
.sq-input, .sq-textarea, .sq-select {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 15px;
  background: var(--bg-canvas); border: 1.5px solid var(--border-subtle); border-radius: var(--r-md); color: var(--fg-primary);
}
.sq-input:focus, .sq-textarea:focus, .sq-select:focus { outline: none; border-color: var(--abdul-salmon-600); }
.sq-textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.sq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sq-upload { border: 2px dashed var(--border-subtle); border-radius: var(--r-lg); background: var(--bg-canvas); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--fg-tertiary); text-align: center; cursor: pointer; }
.sq-upload:hover { border-color: var(--abdul-salmon-600); color: var(--fg-secondary); }
.sq-upload svg { width: 26px; height: 26px; }
.sq-upload .dim { font-size: 12px; font-weight: 700; color: var(--fg-secondary); }
.sq-upload .sub { font-size: 11.5px; }
.sq-upload-cover { aspect-ratio: 16/9; }
.sq-upload-icon { width: 120px; height: 120px; }
.sq-upload-avatar { width: 120px; height: 120px; border-radius: 50%; }
.sq-uploads-row { display: flex; gap: 18px; align-items: flex-start; }
.sq-price-input { position: relative; }
.sq-price-input .cur { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-tertiary); font-weight: 700; }
.sq-price-input .sq-input { padding-inline-start: 34px; }

/* status chips (builder dashboard / product states) */
.sq-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.sq-status--pending { background: color-mix(in oklab, #eab308 16%, transparent); color: #a16207; }
.sq-status--approved { background: color-mix(in oklab, var(--abdul-mint-500) 16%, transparent); color: #0c7d57; }
.sq-status--changes { background: color-mix(in oklab, var(--abdul-salmon-600) 14%, transparent); color: var(--abdul-salmon-600); }

/* ---- Footer ----------------------------------------------------------- */
.sq-foot { border-top: 1px solid var(--border-subtle); padding: 30px 20px; text-align: center; color: var(--fg-tertiary); font-size: 13px; }
.sq-foot a { color: var(--fg-secondary); text-decoration: none; font-weight: 600; }
.sq-foot .row { display: flex; gap: 16px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .sq-grid { grid-template-columns: repeat(2, 1fr); }
  .sq-product-grid { grid-template-columns: 1fr; }
  .sq-buybox { position: static; }
}
@media (max-width: 560px) {
  .sq-grid { grid-template-columns: 1fr; }
  .sq-row2 { grid-template-columns: 1fr; }
  .sq-builder-head { flex-direction: column; text-align: center; }
  .sq-nav-link.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sq-card, .sq-btn { transition: none; }
}

/* ---- Flash + feedback ------------------------------------------------- */
.sq-flash {
  max-width: 680px; margin: 0 auto 20px; padding: 13px 18px;
  border-radius: var(--r-lg); font-weight: 600; font-size: 14.5px; line-height: 1.7;
}
.sq-flash-ok   { background: color-mix(in oklab, var(--abdul-mint-500) 12%, transparent); color: #0c7d57; border: 1px solid color-mix(in oklab, var(--abdul-mint-500) 30%, transparent); }
.sq-flash-err  { background: color-mix(in oklab, var(--abdul-salmon-600) 10%, transparent); color: var(--abdul-salmon-600); border: 1px solid color-mix(in oklab, var(--abdul-salmon-600) 28%, transparent); }
.sq-flash-warn { background: color-mix(in oklab, #eab308 12%, transparent); color: #a16207; border: 1px solid color-mix(in oklab, #eab308 30%, transparent); }
.sq-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sq-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sq-card-icon { overflow: hidden; background: var(--bg-sunken); }

/* Match the site-wide homepage gradient + leave room for the skyline seam. */
.sq-hero { background: var(--abdul-gradient-radial-glow); }
.sq-hero-inner { padding-bottom: clamp(96px, 13vh, 150px); }

/* ======================================================================
   Souq v2 — creator wizard (resumable, mobile-first RTL)
   ====================================================================== */
.sq-sell-intro { max-width: 620px; }
.sq-sell-h1 { font-family: var(--font-arabic-display); font-weight: 800; font-size: clamp(28px, 5vw, 44px); margin: 14px 0 10px; }
.sq-sell-sub { color: var(--fg-secondary); line-height: 1.85; font-size: 16px; margin: 0 auto 22px; max-width: 48ch; }
.sq-sell-note { margin-top: 18px; font-size: 13.5px; color: var(--fg-tertiary); }
.sq-sell-note a, .sq-wiz-foot a { color: var(--abdul-salmon-600); font-weight: 700; }

.sq-wiz { max-width: 620px; padding-block: 28px 64px; }
.sq-wiz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sq-wiz-title { font-family: var(--font-arabic-display); font-weight: 800; font-size: clamp(24px, 4vw, 32px); margin: 0; }
.sq-wiz-help { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--abdul-mint-500); text-decoration: none; border: 1.5px solid color-mix(in oklab, var(--abdul-mint-500) 40%, transparent); border-radius: var(--r-pill); padding: 6px 12px; }
.sq-wiz-help:hover { background: color-mix(in oklab, var(--abdul-mint-500) 10%, transparent); }

/* progress rail — horizontal, scrolls on small screens */
.sq-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0 0 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sq-step { flex: 0 0 auto; }
.sq-step > a, .sq-step > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; text-decoration: none; color: var(--fg-tertiary); background: var(--bg-canvas); border: 1.5px solid var(--border-subtle); white-space: nowrap; }
.sq-step .n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; background: var(--bg-sunken); color: var(--fg-tertiary); }
.sq-step.is-current > a, .sq-step.is-current > span { color: #fff; background: var(--abdul-gradient-salmon); border-color: transparent; }
.sq-step.is-current .n { background: rgba(255,255,255,.25); color: #fff; }
.sq-step.is-done > a { color: var(--abdul-salmon-600); border-color: color-mix(in oklab, var(--abdul-salmon-600) 45%, var(--border-subtle)); }
.sq-step.is-done .n { background: color-mix(in oklab, var(--abdul-salmon-600) 14%, transparent); color: var(--abdul-salmon-600); }
.sq-step.is-locked > span { opacity: .5; }

.sq-wiz-card { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-2xl); padding: clamp(18px, 4vw, 28px); box-shadow: var(--shadow-md); }
.sq-step-h { font-family: var(--font-arabic-display); font-weight: 800; font-size: 21px; margin: 0 0 4px; }
.sq-step-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sq-step-p { color: var(--fg-secondary); font-size: 14px; line-height: 1.75; margin: 0 0 20px; }

.sq-field { display: block; margin-bottom: 16px; }
.sq-field > .l { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.sq-field > .l b { color: var(--abdul-salmon-600); }
.sq-field > .l em { color: var(--fg-tertiary); font-weight: 500; font-style: normal; font-size: 12.5px; }
.sq-field .sq-input + .sq-input { margin-top: 8px; }
.sq-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--fg-tertiary); line-height: 1.6; }

/* upload dropzones */
.sq-upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 16px; text-align: center; border: 1.5px dashed var(--border-default, var(--border-subtle)); border-radius: var(--r-xl, 16px); background: var(--bg-canvas); cursor: pointer; transition: border-color .15s, background .15s; }
.sq-upload:hover { border-color: var(--abdul-salmon-600); background: color-mix(in oklab, var(--abdul-salmon-600) 4%, transparent); }
.sq-upload-cta { font-size: 13.5px; font-weight: 700; color: var(--fg-secondary); }
.sq-upload-prev { width: 100%; max-height: 200px; object-fit: contain; border-radius: var(--r-lg); }
.sq-upload-icon .sq-upload-prev { width: 96px; height: 96px; object-fit: cover; }

/* flash */
.sq-flash { border-radius: var(--r-lg); padding: 11px 15px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.sq-flash.is-ok { background: color-mix(in oklab, var(--abdul-mint-500) 12%, transparent); color: #0b7d5a; border: 1px solid color-mix(in oklab, var(--abdul-mint-500) 40%, transparent); }
.sq-flash.is-err { background: color-mix(in oklab, var(--abdul-salmon-600) 10%, transparent); color: var(--abdul-salmon-600); border: 1px solid color-mix(in oklab, var(--abdul-salmon-600) 40%, transparent); }

/* codes table */
.sq-codes-count { font-size: 13px; font-weight: 700; color: var(--fg-tertiary); }
.sq-codes-table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); }
.sq-codes-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sq-codes-table th, .sq-codes-table td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.sq-codes-table th { background: var(--bg-canvas); font-weight: 700; color: var(--fg-tertiary); font-size: 12px; }
.sq-codes-table tr:last-child td { border-bottom: 0; }
.sq-codes-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sq-code-badge { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); }
.sq-code-badge.is-available { background: color-mix(in oklab, var(--abdul-mint-500) 14%, transparent); color: #0b7d5a; }
.sq-code-badge.is-sold { background: color-mix(in oklab, var(--abdul-salmon-600) 12%, transparent); color: var(--abdul-salmon-600); }
.sq-code-badge.is-void { background: var(--bg-sunken); color: var(--fg-tertiary); }

/* review */
.sq-review { border: 1px solid var(--border-subtle); border-radius: var(--r-xl, 16px); overflow: hidden; margin-bottom: 18px; }
.sq-review-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.sq-review-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-top: 1px solid var(--border-subtle); font-size: 14px; }
.sq-review-row span { color: var(--fg-tertiary); }
.sq-review-row:first-child { border-top: 0; }

.sq-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.sq-wiz-foot { text-align: center; margin-top: 20px; font-size: 13.5px; }

.sq-code-badge.is-delivered { background: color-mix(in oklab, var(--abdul-salmon-600) 12%, transparent); color: var(--abdul-salmon-600); }

/* ---- Phase 5: payout nudge + terms/legal ------------------------------ */
.sq-payout-nudge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-xl, 16px); background: color-mix(in oklab, var(--abdul-salmon-600) 8%, var(--bg-raised)); border: 1px solid color-mix(in oklab, var(--abdul-salmon-600) 30%, transparent); }
.sq-payout-nudge > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.sq-payout-nudge strong { font-size: 15px; }
.sq-payout-nudge span { font-size: 13px; color: var(--fg-secondary); }
.sq-payout-terms { background: var(--bg-canvas); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 14px 16px; }
.sq-payout-terms h3 { margin: 0 0 8px; font-size: 15px; }
.sq-payout-terms ul { margin: 0; padding-inline-start: 20px; }
.sq-payout-terms li { font-size: 13.5px; line-height: 1.9; color: var(--fg-secondary); }

.sq-legal { max-width: 760px; padding-block: 44px 64px; line-height: 1.9; }
.sq-legal h1 { font-family: var(--font-arabic-display); font-weight: 800; font-size: clamp(26px, 4vw, 36px); margin: 0 0 14px; }
.sq-legal-intro { color: var(--fg-secondary); font-size: 16px; margin-bottom: 28px; }
.sq-legal h2 { font-family: var(--font-arabic-display); font-weight: 700; font-size: 22px; margin: 30px 0 12px; }
.sq-legal ul { padding-inline-start: 22px; }
.sq-legal li { margin-bottom: 10px; color: var(--fg-secondary); }
.sq-legal-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--fg-tertiary); }
.sq-legal a { color: var(--abdul-salmon-600); font-weight: 700; }
