/* ===== Tokens — ألوان Zdify ===== */
:root {
  /* الألوان الأساسية للعلامة */
  --blue: #2440F0;
  --lime: #E5FD76;
  --black: #0A0A0F;
  --white: #FFFFFF;

  /* التدرجات */
  --grad-brand: linear-gradient(120deg, var(--blue) 0%, var(--lime) 100%);
  --grad-blue: linear-gradient(135deg, #2440F0 0%, #4F66FF 100%);
  --grad-night: linear-gradient(155deg, #0A0A0F 0%, #121A5C 55%, #2440F0 100%);
  --grad-text: linear-gradient(90deg, #7D8FFF 0%, #E5FD76 100%);
  --grad-hero:
    radial-gradient(900px 420px at 15% 115%, rgba(229, 253, 118, .22), transparent 60%),
    radial-gradient(700px 400px at 95% -20%, rgba(120, 140, 255, .45), transparent 60%),
    linear-gradient(160deg, #1528B8 0%, #2440F0 50%, #3550FF 100%);

  /* الصفحة فاتحة — الجزء اللي فوق بس غامق */
  --bg: #FBF9F2;
  --surface: var(--white);
  --surface-solid: var(--white);
  --surface-2: #FDFCF8;
  --ink: var(--black);
  --ink-2: #474A5C;
  --muted: #80849C;
  --line: #ECE7DA;
  --line-strong: #DAD4C4;
  --accent: var(--blue);
  --accent-ink: var(--white);
  --accent-soft: #EDF0FE;
  --lime-soft: #F7FEDB;
  --ok: #1F9D55;
  --danger: #D92D20;
  --danger-soft: #FEF0EE;
  --placeholder: #A9ADC2;
  --dark: #05060F;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .72);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 10, 15, .04), 0 12px 32px -16px rgba(18, 26, 92, .18);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
@supports (background: linear-gradient(in oklch, red, blue)) {
  :root { --grad-brand: linear-gradient(in oklch 120deg, var(--blue) 0%, var(--lime) 100%); }
}
::selection { background: var(--lime); color: var(--black); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icon svg { width: 100%; height: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  direction: ltr;
  background: var(--grad-hero);
  color: var(--on-dark);
}
/* في الصفحة الأولى الهيدر شفاف فوق نفس التدرج */
.on-start .topbar { position: absolute; left: 0; right: 0; background: transparent; }
[dir=rtl] .topbar-end { direction: rtl; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); direction: ltr; }
.brand-mark { height: 30px; width: auto; display: block; }
.brand-name { height: 22px; width: auto; display: block; }
.topbar-end { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--on-dark);
  font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s;
}
.lang-toggle:hover { border-color: var(--lime); color: var(--lime); }
.save-status { font-size: 13px; color: var(--on-dark-2); display: flex; align-items: center; gap: 8px; }
.save-status:not(:empty)::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.save-status[data-state="saved"]::before { background: var(--ok); }
.save-status[data-state="saving"]::before { background: var(--accent); animation: pulse 1s infinite; }
.save-status[data-state="error"] { color: #FF8A7A; }
.save-status[data-state="error"]::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }

.app { max-width: 1360px; margin: 0 auto; padding: clamp(16px, 4vw, 40px); padding-bottom: 80px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-blue); color: var(--white); box-shadow: 0 8px 20px -10px rgba(36, 64, 240, .7); }
.btn-primary:hover { background: var(--blue); box-shadow: 0 12px 28px -10px rgba(36, 64, 240, .85); transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: #EEFF9A; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { min-height: 54px; font-size: 16px; width: 100%; }
.panel-nav .btn { min-width: 150px; }
.btn .icon { width: 18px; height: 18px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.is-loading .icon { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-4px); } }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 2px;
  color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong);
}
.link-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }
.icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ===== Start ===== */
.start { display: grid; justify-items: center; }
/* الجزء الغامق اللي فوق — عرض الشاشة كله */
.hero {
  position: relative; isolation: isolate; justify-self: stretch; margin-inline: calc(50% - 50vw); margin-top: calc(-1 * clamp(16px, 4vw, 40px));
  padding: calc(64px + clamp(40px, 7vw, 76px)) 16px clamp(140px, 15vw, 170px);
  background: var(--grad-hero); color: var(--on-dark); text-align: center; overflow: hidden;
  /* نهاية الأزرق منحنية بدل خط مستقيم حاد */
  border-radius: 0 0 50% 50% / 0 0 72px 72px;
}
.hero-inner { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; }
.hero .eyebrow { color: var(--lime); }
.hero .lead { color: rgba(255, 255, 255, .85); margin-inline: auto; }
.hero .grad-text { background: linear-gradient(90deg, #FFFFFF 0%, var(--lime) 100%); -webkit-background-clip: text; background-clip: text; }
/* الأقسام دي بتاخد عرض الشاشة كله بنفس هامش الفوتر */
.start-body, .reviews { justify-self: stretch; margin-inline: calc(50% - 50vw); padding-inline: clamp(16px, 4vw, 56px); }
.start-body { display: grid; justify-items: center; gap: 28px; margin-top: clamp(-130px, -12vw, -104px); position: relative; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 14px; }
.start h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.2; letter-spacing: -0.025em; }
.hl { color: var(--lime); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }

.start-card {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; max-width: 480px;
  background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(10, 10, 15, .04), 0 40px 80px -30px rgba(18, 26, 92, .45);
}
.start-card::before {
  content: ''; position: absolute; z-index: -1; width: 320px; height: 320px; inset-block-end: -160px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(229, 253, 118, .35), transparent 65%);
}
.start-card > * { position: relative; }
.start-card::after { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-brand); }
.card-sub { color: var(--ink-2); font-size: 14px; margin-top: -6px; }
.phone-form { display: grid; gap: 14px; }
.start-card .link-btn:disabled { opacity: .55; cursor: default; text-decoration: none; }
.btn-lime .icon { width: 1.3em; height: 1.3em; }
.otp-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(37, 211, 102, .14); color: #25D366; border: 1px solid rgba(37, 211, 102, .3); }
.otp-badge .icon { width: 26px; height: 26px; }
.otp-phone { font-family: var(--mono); color: var(--ink); font-weight: 600; white-space: nowrap; }
.otp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.otp-box {
  width: 52px; height: 56px; text-align: center; padding: 0;
  font: 600 22px/1 var(--mono); color: var(--ink); caret-color: var(--blue);
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.otp-box:focus { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.otp-box.is-filled { border-color: var(--blue); background: var(--accent-soft); }
.otp-row input.otp-box { width: 100%; padding: 0; }
.otp-row.has-error .otp-box { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.otp-status { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--blue); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--blue); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.otp-row.is-busy .otp-box { border-color: var(--blue); background: var(--accent-soft); opacity: .75; }
.otp-demo { font-size: 13px; color: var(--ink); background: var(--lime-soft); border: 1px dashed #C9E35A; border-radius: 10px; padding: 8px 12px; }
.otp-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.phone-label { font-weight: 600; font-size: 17px; }
.phone-group {
  display: flex; direction: ltr; align-items: stretch;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.phone-group:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--accent-soft); }
.phone-group.has-error { border-color: var(--danger); }
.start-card .phone-group { color: var(--ink); }
/* زرار كود الدولة */
.cc-trigger {
  display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; flex: none;
  border: 0; border-right: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
  transition: background .15s;
}
.cc-trigger:hover { background: var(--accent-soft); }
.cc-trigger[aria-expanded="true"] { background: var(--accent-soft); }
.cc-trigger[aria-expanded="true"] .cc-chevron { transform: rotate(180deg); }
.cc-dial { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.cc-chevron { display: inline-flex; color: var(--muted); transition: transform .2s; }
.cc-chevron .icon { width: 16px; height: 16px; }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; flex: none; background: var(--line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.flag-lg { width: 24px; height: 18px; }

/* نافذة اختيار الدولة */
.cc-backdrop { position: fixed; inset: 0; z-index: 50; background: transparent; }
.cc-popup {
  position: fixed; z-index: 51; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-solid); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 2px 6px rgba(10,10,15,.06), 0 30px 60px -20px rgba(18, 26, 92, .35);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .18s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}
.cc-popup.is-open { opacity: 1; transform: none; }
.cc-popup-head { padding: 8px 8px 6px; border-bottom: 1px solid var(--line); }
.cc-grip { display: none; }
.cc-popup-title { display: none; }
.cc-search-wrap {
  display: flex; align-items: center; gap: 8px; padding: 0 10px; min-height: 38px; cursor: text;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.cc-search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cc-search-wrap > .icon { color: var(--muted); }
.cc-search { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; padding: 6px 0 !important; font-size: 14px; }
.cc-search::-webkit-search-cancel-button { display: none; }
.cc-list { overflow-y: auto; overscroll-behavior: contain; padding: 4px; flex: 1; }
.cc-option {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 8px; background: transparent; text-align: start; cursor: pointer; font-size: 14px;
}
.cc-option.is-active { background: var(--surface-2); }
.cc-option[aria-selected="true"] { background: var(--accent-soft); font-weight: 600; }
.cc-name { flex: 1; min-width: 0; }
.cc-code { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.cc-check { display: inline-flex; width: 18px; color: var(--blue); }
.cc-check .icon { width: 18px; height: 18px; }
.cc-check svg { stroke-width: 2.4; }
.cc-empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 560px) {
  .cc-backdrop { background: rgba(5, 6, 15, .45); opacity: 0; transition: opacity .2s; }
  .cc-backdrop.is-open { opacity: 1; }
  .cc-popup {
    left: 0; right: 0; bottom: 0; top: auto; max-height: min(380px, 50vh);
    border-radius: 22px 22px 0 0; border-bottom: 0;
    transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .cc-popup.is-open { transform: none; }
  .cc-grip { display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 2px auto 6px; }
  .cc-popup-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; padding-inline-start: 4px; font-size: 15px; }
  .cc-option { min-height: 42px; font-size: 15px; }
}
.phone-input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 14px; font-family: var(--mono); font-size: 16px; letter-spacing: .04em; background: transparent; }
.phone-field { margin-top: 10px; max-width: 420px; }
.has-error .phone-group { border-color: var(--danger); }
.phone-input::placeholder { color: var(--placeholder); }

/* مميزات البريف تحت الكارت */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.perk {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  transition: transform .2s, box-shadow .2s;
}
.perk:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.perk-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--lime); color: var(--black); }
.perk-icon .icon { width: 22px; height: 22px; }
.perk-text { display: grid; gap: 2px; min-width: 0; }
.perk-text b { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.perk-text span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* شارة Shopify في الهيرو */
.shopify-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 16px 9px 14px;
  border-radius: 999px; text-decoration: none; color: var(--on-dark); font-size: 13.5px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.shopify-badge:hover { background: rgba(255, 255, 255, .16); border-color: rgba(229, 253, 118, .55); transform: translateY(-1px); }
.shopify-logo { height: 20px; width: auto; display: block; }
.badge-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .25); }
.badge-text { font-weight: 600; }
.shopify-badge b { font-weight: 700; }
.badge-count { color: rgba(255, 255, 255, .7); }
.stars {
  letter-spacing: 1px; font-size: 14px; line-height: 1;
  background: linear-gradient(180deg, #FFD966 0%, #F5B400 55%, #D99200 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* التقييمات */
.reviews {
  margin-top: clamp(56px, 8vw, 88px);
  display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start;
}
.rating-card {
  display: grid; align-content: start; justify-items: start; gap: 10px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  position: sticky; top: 24px;
}
.rating-logo { width: 100%; max-width: 320px; height: auto; margin-bottom: 8px; }
.rating-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.rating-score { display: flex; align-items: baseline; gap: 8px; }
.rating-score b { font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.rating-score span { font-size: 18px; color: var(--muted); }
.rating-card .stars { font-size: 22px; letter-spacing: 3px; }
.rating-sub { font-size: 14px; color: var(--ink-2); }
.rating-facts { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 8px; }
.rating-facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.rating-facts .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--lime); color: var(--black); }
.rating-btn { margin-top: 6px; width: 100%; text-decoration: none; }
.reviews-list { display: grid; gap: 16px; min-width: 0; }
/* كروسيل التقييمات */
.carousel-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  border-radius: 20px; outline-offset: 4px;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 16px; }
.carousel-track .review { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; }
@media (min-width: 1500px) { .carousel-track .review { flex-basis: calc((100% - 32px) / 3); } }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.carousel-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.carousel-btn .icon { width: 20px; height: 20px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--line-strong); cursor: pointer; transition: width .25s, background .25s; }
.carousel-dots button.is-active { width: 24px; background: var(--blue); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 4px 0; }
.reviews-head > div:first-child { display: grid; justify-items: start; gap: 8px; }
.reviews-head h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.pill.pill-light { color: var(--blue); background: var(--accent-soft); border-color: rgba(36, 64, 240, .15); }
.pill.pill-light::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(36, 64, 240, .18); }
.review {
  margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  transition: transform .2s, box-shadow .2s;
}
.review:hover { box-shadow: var(--shadow); }
.review-top { display: flex; align-items: center; justify-content: space-between; }
.review-bag { height: 22px; width: auto; }
.review blockquote { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.review figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad-blue); color: var(--white); font-weight: 700; }
.review figcaption b { font-size: 14.5px; }
.review figcaption span:last-child { font-size: 12.5px; color: var(--muted); }

/* قسم البراندات */
.brands {
  position: relative; overflow: hidden; isolation: isolate;
  justify-self: stretch; margin-top: clamp(56px, 8vw, 96px);
  /* كارت بحواف دائرية بنفس عرض الأقسام اللي فوقه */
  margin-inline: calc(50% - 50vw + clamp(16px, 4vw, 56px));
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--grad-hero); color: var(--on-dark);
  border-radius: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(36, 64, 240, .45);
}
.brands-head { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 0 20px; margin-bottom: clamp(24px, 3vw, 32px); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--lime); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(229, 253, 118, .25); }
.brands-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.brands-head p { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 52ch; }
.brands-rows { display: grid; gap: 12px; }
.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 2px 0; display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee.is-reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.brands:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.brand-tile {
  display: grid; place-items: center; flex: none; min-width: clamp(150px, 14vw, 180px); height: 76px; padding: 0 28px; white-space: nowrap;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s, transform .2s;
}
.brand-tile:hover { background: rgba(255, 255, 255, .14); border-color: rgba(229, 253, 118, .5); transform: translateY(-2px); }
/* اللوجوهات بتظهر أبيض على الأزرق */
.brand-tile img { max-height: 34px; max-width: 100%; width: auto; filter: brightness(0) invert(1); opacity: .75; transition: opacity .2s; }
.brand-tile:hover img { opacity: 1; }
.brand-tile a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; border-radius: inherit; }
.brand-text { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; transition: color .2s; }
.brand-tile:hover .brand-text { color: var(--lime); }

/* ===== Form layout ===== */
.brief-bar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px; padding-inline-start: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.brand-picker { position: relative; min-width: 0; }
.brand-switch {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px; padding-inline-end: 12px;
  background: transparent; border: 1.5px solid transparent; border-radius: 14px; cursor: pointer; text-align: start;
  transition: background .15s, border-color .15s;
}
.brand-switch:hover, .brand-switch[aria-expanded="true"] { background: var(--surface-2); border-color: var(--line); }
.brand-avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: var(--grad-blue); color: var(--white); font-weight: 700; font-size: 18px; text-transform: uppercase;
}
.brand-avatar.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
.brand-avatar.is-add { background: var(--accent-soft); color: var(--blue); }
.brand-avatar .icon { width: 18px; height: 18px; }
.brand-meta { display: grid; gap: 1px; min-width: 0; }
.brand-meta small { font-size: 12px; color: var(--muted); font-weight: 500; }
.brand-meta b { color: var(--ink); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.brand-chevron { display: inline-flex; color: var(--muted); transition: transform .2s; }
.brand-switch[aria-expanded="true"] .brand-chevron { transform: rotate(180deg); }
.brand-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 30; width: min(340px, calc(100vw - 32px));
  padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 2px 6px rgba(10,10,15,.06), 0 24px 50px -16px rgba(18, 26, 92, .3);
  animation: menu-in .16s ease;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.brand-menu-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px 8px; }
.brand-option {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; text-align: start; color: var(--ink);
}
.brand-option:hover, .brand-option:focus-visible { background: var(--surface-2); outline: none; }
.brand-option.is-current { background: var(--accent-soft); }
.brand-option-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.brand-option-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-tag { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #FFF4D6; color: #8A6100; }
.status-tag.is-done { background: #E3F7EA; color: #1F7A45; }
.brand-check { display: inline-flex; color: var(--blue); }
.brand-check .icon { width: 18px; height: 18px; }
.brand-check svg { stroke-width: 2.4; }
.brand-option.is-add { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 12px; color: var(--blue); }
.brand-option.is-add b { font-size: 14.5px; }
.brief-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--ink);
  transition: border-color .15s, background .15s, color .15s;
}
.chip-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }
.chip-btn .icon { width: 17px; height: 17px; }
.chip-btn.is-accent { background: var(--accent-soft); border-color: transparent; color: var(--blue); }
.chip-btn.is-accent:hover { background: var(--blue); color: var(--white); }
.chip-btn.is-quiet { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; }
.chip-btn.is-quiet:hover { color: var(--danger); background: var(--danger-soft); }
.brief-actions .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.done .brief-bar { width: 100%; margin-bottom: 4vh; }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.form-layout { position: relative; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

.stepper { position: sticky; top: 84px; }
.stepper-progress { margin-bottom: 18px; }
.stepper-progress-text { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--grad-brand); border-radius: inherit; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stepper li button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; text-align: start; cursor: pointer; color: var(--muted); font-size: 14.5px;
}
.stepper li button:hover { background: var(--surface-2); color: var(--ink); }
.step-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; background: var(--surface);
}
.step-num .icon { width: 14px; height: 14px; }
.stepper li.is-done button { color: var(--ink-2); }
.stepper li.is-done .step-num { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.stepper li.is-current button { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: var(--shadow); }
.stepper li.is-current .step-num { border-color: transparent; background: var(--grad-blue); color: var(--white); box-shadow: 0 0 0 4px var(--accent-soft); }

.panel {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 44px); min-width: 0;
}
.panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-brand); }
.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--lime-soft); border: 1px solid #E5F7A0; color: var(--ink); border-radius: var(--radius-sm); padding-block: 10px; padding-inline: 16px 6px;
  font-size: 14.5px; margin-bottom: 28px;
}
.notice-close { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink-2); display: grid; }

.section-head { margin-bottom: 32px; }
.section-head .eyebrow { color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.section-head .eyebrow bdi { font-family: var(--mono); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); outline: none; }
.section-intro { margin-top: 8px; color: var(--ink-2); }

.panel-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* ===== Fields ===== */
.fields { display: grid; gap: 30px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { display: block; padding: 0; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.req { color: var(--blue); }
.opt { font-size: 13px; font-weight: 400; color: var(--muted); }
.field-hint { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.field-label + input, .field-label + textarea, .field-label + .chips, .field-label + div { margin-top: 10px; }
.field-hint + * { margin-top: 0 !important; }
.field-error { color: var(--danger); font-size: 14px; margin-top: 8px; }
.sub-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 16px 0 8px; }

input[type=text], input[type=email], input[type=url], textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
  padding: 12px 14px; font-size: 16px; line-height: 1.6; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.has-error input[type=text], .has-error input[type=email], .has-error input[type=url], .has-error textarea { border-color: var(--danger); background: var(--danger-soft); }
input[dir=ltr]::placeholder, textarea[dir=ltr]::placeholder { text-align: left; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 15px; font-weight: 500;
  transition: border-color .15s, background .15s, color .15s; user-select: none;
}
.chip:hover > span { border-color: var(--line-strong); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:checked + span { border-color: #C9E35A; background: var(--lime); color: var(--black); }
.chip-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.chip input:checked + span .chip-dot { border: 4px solid var(--black); background: var(--lime); }
.chip-check { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex: none; }
.chip-check .icon { width: 12px; height: 12px; opacity: 0; }
.chip input:checked + span .chip-check { background: var(--black); border-color: var(--black); color: var(--lime); }
.chip input:checked + span .chip-check .icon { opacity: 1; }
.other-input { margin-top: 12px; max-width: 360px; }
.reveal { animation: reveal .25s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

/* socials */
.socials { display: grid; gap: 10px; margin-top: 10px; }
.social-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.social-row label { font-size: 15px; font-weight: 500; color: var(--ink-2); }

/* file */
.file-field { display: grid; gap: 12px; }
.dropzone {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 16px; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone > .icon { width: 28px; height: 28px; color: var(--ink-2); margin-bottom: 4px; }
.dz-title { font-weight: 500; }
.dz-title u { text-decoration-color: var(--accent); text-underline-offset: 4px; }
.dz-hint { font-size: 12.5px; color: var(--muted); direction: ltr; }
.file-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; padding-inline-start: 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.file-chip > .icon { color: var(--accent); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-size { font-size: 13px; color: var(--muted); white-space: nowrap; }
.file-chip.is-loading { opacity: .7; }
.file-list { display: grid; gap: 10px; }
.file-list:empty { display: none; }
.file-item { display: grid; gap: 6px; }
.file-item .file-note { padding: 8px 12px; font-size: 14px; }
.template-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.template-btn { display: inline-flex; align-items: center; gap: 8px; }
.template-row .field-hint { margin: 0; }

/* إملاء بالصوت */
.dictate-wrap { position: relative; }
.dictate-wrap > input, .dictate-wrap > textarea { padding-inline-end: 48px; }
.mic-btn {
  position: absolute; inset-inline-end: 8px; top: 8px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s;
}
.dictate-wrap:not(.is-area) .mic-btn { top: 50%; transform: translateY(-50%); }
.mic-btn:hover { background: var(--accent-soft); color: var(--accent); }
.mic-btn .icon { width: 18px; height: 18px; }
.dictate-wrap.is-listening .mic-btn { background: #E53935; color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .45); } 50% { box-shadow: 0 0 0 7px rgba(229, 57, 53, 0); } }
.dictate-status { display: block; font-size: 13px; color: var(--muted); }
.dictate-status:empty { display: none; }
.dictate-wrap.is-listening .dictate-status { color: #C62828; margin-top: 6px; }
.or-link { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.or { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* colors */
.colors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.color-item {
  display: flex; align-items: center; gap: 6px; padding: 6px; padding-inline-end: 2px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.color-item { position: relative; }
/* البوب أب بيفتح من ناحية بداية السطر علشان مايخرجش برة الكارت */
html[dir=rtl] .cp-pop { left: auto; right: 0; }
.cp-swatch {
  width: 36px; height: 36px; padding: 0; flex: none; cursor: pointer;
  border: 1px solid rgba(0,0,0,.12); border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.cp-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* بوب أب اللون: تحت اللون نفسه */
.cp-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  width: 236px; max-width: calc(100vw - 32px); padding: 12px; display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(10, 10, 15, .16), 0 2px 6px rgba(10, 10, 15, .06);
}
.cp-sv { position: relative; height: 140px; border-radius: 10px; cursor: crosshair; touch-action: none; }
.cp-sv-thumb {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.25); pointer-events: none;
}
.cp-hue {
  -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 5px rgba(0,0,0,.25); }
.cp-hue::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.cp-presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cp-preset { aspect-ratio: 1; padding: 0; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; cursor: pointer; }
.cp-preset:hover { transform: scale(1.1); }
.color-item .hex { width: 92px; padding: 6px 8px; border: 0; background: transparent; font-family: var(--mono); font-size: 14px; text-transform: uppercase; }
.color-item .hex:focus { box-shadow: none; background: var(--surface); }
.add-color {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px; background: none; cursor: pointer; color: var(--ink-2); font-weight: 500;
}
.add-color:hover { border-color: var(--ink); color: var(--ink); }

/* features */
.features-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin: 10px 0 14px; }
.features-actions { display: flex; gap: 12px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.feature:hover { border-color: var(--line-strong); }
.feature input { position: absolute; opacity: 0; pointer-events: none; }
.feature:has(input:checked) { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.feature:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.feature-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.feature-title { font-weight: 600; }
.feature-en { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.feature-desc { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.switch { position: relative; width: 40px; height: 24px; border-radius: 24px; background: var(--line-strong); flex: none; transition: background .2s; margin-top: 2px; }
.switch::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.3,.7,.3,1);
}
.feature input:checked ~ .switch { background: var(--grad-blue); }
.feature input:checked ~ .switch::after { transform: translateX(-16px); }
[dir=ltr] .switch::after { right: auto; left: 3px; }
[dir=ltr] .feature input:checked ~ .switch::after { transform: translateX(16px); }

/* ===== Review ===== */
.review-phone { font-size: 15px; color: var(--ink-2); padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 20px; }
.review-block { border-top: 1px solid var(--line); padding: 22px 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-head h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.review-head h3 .mono { color: var(--muted); font-weight: 500; }
.review-block dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px 24px; margin: 0; }
.review-block dt { color: var(--muted); font-size: 14px; }
.review-block dd { margin: 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.review-colors { display: inline-flex; gap: 6px; }
.review-colors .dot { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); }
.review-list { margin: 0; padding-inline-start: 18px; }

/* ===== Done ===== */
.done { max-width: 720px; margin: 4vh auto 0; text-align: center; display: grid; justify-items: center; gap: 16px; }
.done-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--grad-night); color: var(--lime); box-shadow: 0 0 0 8px var(--lime-soft), 0 20px 40px -16px rgba(36, 64, 240, .6); margin-bottom: 8px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.done-mark .icon { width: 34px; height: 34px; }
.done-mark .icon svg { stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h1 { font-size: clamp(28px, 4vw, 40px); }
.done .lead { margin-top: 0; }
.ref { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 8px 0 12px; font-size: 14px; color: var(--ink-2); }
.ref b { color: var(--blue); font-size: 16px; }

.noscript { text-align: center; padding: 40px; }

/* ===== Footer ===== */
.site-footer {
  max-width: none; margin: 0; padding: 28px clamp(16px, 4vw, 56px) 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px;
}
.footer-follow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.socials-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social-link {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink-2);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.social-link:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }

/* ===== Responsive ===== */
/* ===== آيباد بالعرض وأصغر ===== */
@media (max-width: 1100px) {
  .reviews { grid-template-columns: 1fr; }
  /* كارت التقييم بيبقى عمودين جنب بعض بدل ما يتمط */
  .rating-card { position: static; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: center; }
  .rating-card > * { grid-column: 1; }
  .rating-card .rating-logo { grid-column: 2; grid-row: 1 / span 2; justify-self: end; max-width: 300px; }
  .rating-card .rating-facts { grid-column: 2; grid-row: 3 / span 2; }
  .rating-card .rating-btn { grid-column: 2; grid-row: 5; }
}
/* ===== آيباد بالطول ===== */
@media (max-width: 900px) {
  .shopify-badge { flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .hero { border-radius: 0 0 50% 50% / 0 0 32px 32px; }
  .form-layout { grid-template-columns: 1fr; gap: 16px; }
  .stepper { position: static; display: grid; gap: 12px; }
  .stepper-progress { margin: 0; }
  /* الأقسام بتبقى شريط أفقي بيتسحب */
  .stepper ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; scroll-snap-type: x proximity; }
  .stepper ol::-webkit-scrollbar { display: none; }
  .stepper li { flex: none; scroll-snap-align: center; }
  .stepper li button { padding: 6px 12px 6px 8px; padding-inline: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
  .stepper li.is-current button { border-color: var(--blue); }
  .step-num { width: 24px; height: 24px; }
}
/* ===== موبايل كبير / آيباد صغير ===== */
@media (max-width: 640px) {
  .perks { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .carousel-track .review { flex-basis: 86%; }
  .rating-card { grid-template-columns: 1fr; }
  .rating-card > *, .rating-card .rating-logo, .rating-card .rating-facts, .rating-card .rating-btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (max-width: 560px) {
  .app { padding-inline: 16px; }
  .panel { border-radius: 18px; padding: 22px 18px; }
  .panel-nav { position: sticky; bottom: 0; margin: 32px -18px -22px; padding: 14px 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-radius: 0 0 18px 18px; }
  .panel-nav .btn { flex: 1; }
  .panel-nav .btn { min-width: 0; }
  .brief-bar { padding: 10px; gap: 10px; border-radius: 18px; }
  .brand-picker, .brand-switch { width: 100%; }
  .brand-switch .brand-chevron { margin-inline-start: auto; }
  .brand-avatar { width: 40px; height: 40px; border-radius: 12px; }
  .brief-actions { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .brief-actions .sep { display: none; }
  .brief-actions .chip-btn { flex: 1; justify-content: center; min-height: 40px; padding: 0 10px; font-size: 13px; }
  /* تسجيل الخروج أيقونة بس على الموبايل */
  .brief-actions .chip-btn.is-quiet { flex: none; width: 40px; padding: 0; font-size: 0; gap: 0; border: 1.5px solid var(--line); }
  .brand-menu { width: 100%; }
  .panel-nav > span:empty { display: none; }
  .social-row { grid-template-columns: 1fr; gap: 6px; }
  .review-block dl { grid-template-columns: 1fr; gap: 2px; }
  .review-block dd { margin-bottom: 10px; }
  .or-link { grid-template-columns: 1fr; gap: 6px; }
  .lead { font-size: 16.5px; }
  .save-status { font-size: 12px; }
  .phone-input { padding: 10px 12px; font-size: 16px; letter-spacing: 0; }
  .cc-trigger { padding: 0 10px 0 12px; gap: 6px; }
}
/* أجهزة اللمس (آيفون/آيباد): سفاري بيعمل زوم لو خط الحقل أصغر من 16px */
@media (hover: none) and (pointer: coarse) {
  .cc-search, .file-item .file-note, .color-item .hex { font-size: 16px; }
  .color-item .hex { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* بعد الإرسال: تذكير إن الإجابات تتعدل في أي وقت */
.done-edit-note { max-width: 520px; margin: 4px auto 0; font-size: 14.5px; color: var(--ink-2); text-align: center; }
