/* ================================================================
   Styli — استوديو الهوية (واجهة المنصّة نفسها)
   ================================================================ */

:root {
  --bg: #0c0d11;
  --panel: #13151b;
  --panel-2: #191c24;
  --ink: #f3f0ea;
  --muted: #9b9cab;
  --gold: #d8b26a;
  --gold-soft: #f0dcae;
  --line: #262a34;
  --ok: #34d399;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Tajawal', system-ui, sans-serif; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: 'Cairo', sans-serif; line-height: 1.25; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }

/* ---------- الشريط العلوي ---------- */
.top {
  position: sticky; top: 0; z-index: 70;
  background: rgba(12,13,17,.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 26px; height: 72px; }
.mark { display: flex; align-items: center; gap: 10px; }
.mark svg { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.5; }
.mark span { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 19px; display: flex; align-items: baseline; gap: 7px; }
.mark i { font-style: normal; font-size: 11px; letter-spacing: .24em; color: var(--gold); font-weight: 400; }
.steps { display: flex; gap: 6px; margin-inline: auto; }
.steps a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--muted); }
.steps a b {
  width: 21px; height: 21px; border-radius: 999px; background: var(--panel-2); color: var(--muted);
  display: grid; place-items: center; font-size: 11.5px; border: 1px solid var(--line);
}
.steps a:hover { color: var(--ink); }
.steps a.on { background: var(--panel-2); color: var(--ink); }
.steps a.on b, .steps a.done b { background: var(--gold); color: #14151a; border-color: var(--gold); }
.plan { font-size: 12px; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); padding: 6px 13px; border-radius: 999px; }

/* ---------- الواجهة ---------- */
.hero { padding: 68px 0 26px; }
.kicker { color: var(--gold); letter-spacing: .3em; font-size: 11.5px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(28px, 4vw, 48px); max-width: 20ch; }
.lede { color: var(--muted); max-width: 62ch; margin: 16px 0 0; font-size: 16px; }

/* ---------- اللوحات ---------- */
.panel { padding: 46px 0; }
.p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.num {
  width: 32px; height: 32px; border-radius: 999px; background: var(--gold); color: #14151a;
  display: grid; place-items: center; font-family: 'Cairo'; font-weight: 900; font-size: 15px; flex: none;
}
.p-head h2 { font-size: clamp(20px, 2.4vw, 28px); }
.rule { flex: 1; height: 1px; background: var(--line); }
.p-note { font-size: 12.5px; color: var(--muted); }

/* ---------- الهوية ---------- */
.ident { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.logo-box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.drop { display: block; cursor: pointer; }
.drop-in {
  border: 1.5px dashed var(--line); border-radius: 15px; padding: 30px 18px; text-align: center;
  transition: .2s; background: var(--panel-2);
}
.drop:hover .drop-in, .drop.over .drop-in { border-color: var(--gold); background: #1d2029; }
.drop-ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 999px; background: var(--bg); display: grid; place-items: center; color: var(--gold); }
.drop-ico svg { width: 21px; height: 21px; }
.drop-in b { display: block; font-size: 15px; margin-bottom: 4px; }
.drop-in span { font-size: 12px; color: var(--muted); }
.drop-in.has img { max-height: 108px; margin: 0 auto 10px; object-fit: contain; }

.logo-tests { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.lt { flex: 1; border-radius: 12px; padding: 12px; text-align: center; border: 1px solid var(--line); }
.lt.light { background: #fff; }
.lt.dark { background: #0a0a0c; }
.lt i { font-style: normal; display: block; font-size: 10.5px; margin-top: 7px; }
.lt.light i { color: #7a7a7a; }
.lt.dark i { color: #7a7a86; }
.lg { display: grid; place-items: center; height: 42px; }
.lg img { max-height: 42px; max-width: 100%; object-fit: contain; }
.lg span {
  font-family: 'Cairo'; font-weight: 900; font-size: 17px;
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-preview, #c9a227); color: #fff;
}
.lt-clear { font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.lt-clear:hover { color: #f87171; }

.fields { display: flex; flex-direction: column; gap: 14px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.f .hint { font-style: normal; color: var(--gold); }
.f input[type="text"], .f input:not([type]), .f input[inputmode] {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 15px; font-size: 15px; outline: none; transition: .15s;
}
.f input:focus { border-color: var(--gold); }
.colors { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
input[type="color"] {
  width: 52px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 4px; cursor: pointer;
}
.swatches { display: flex; gap: 7px; }
.swatches button { width: 30px; height: 30px; border-radius: 999px; border: 2px solid transparent; }
.swatches button.on { border-color: var(--ink); }
.reset { font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.reset:hover { color: var(--ink); }

/* ---------- ستايلات الموقع ---------- */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: .2s; position: relative; cursor: pointer;
}
.scard:hover { border-color: #3a4052; transform: translateY(-3px); }
.scard.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 44px rgba(216,178,106,.14); }
.chrome { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.chrome .dots { display: flex; gap: 5px; }
.chrome .dots i { width: 8px; height: 8px; border-radius: 999px; background: #3a4052; display: block; }
.chrome .url {
  flex: 1; background: var(--bg); border-radius: 7px; font-size: 10.5px; color: var(--muted);
  padding: 4px 10px; text-align: center; direction: ltr; overflow: hidden; white-space: nowrap;
}
.shot { position: relative; overflow: hidden; background: #fff; height: 300px; }
.shot iframe { position: absolute; inset-block-start: 0; inset-inline-start: 0; border: 0; transform-origin: top right; pointer-events: none; }
html[dir="ltr"] .shot iframe { transform-origin: top left; }
.shot .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,13,17,.45), transparent 30%); pointer-events: none; }
.shot .loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-size: 13px; }
.sinfo { padding: 15px 16px 17px; }
.sinfo .st { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.sinfo h3 { font-size: 16.5px; }
.sinfo .sw { display: flex; gap: 4px; margin-inline-start: auto; }
.sinfo .sw i { width: 13px; height: 13px; border-radius: 999px; display: block; border: 1px solid rgba(255,255,255,.14); }
.sinfo p { margin: 0; font-size: 12.8px; color: var(--muted); line-height: 1.6; }
.sinfo .best { display: block; margin-top: 8px; font-size: 11.5px; color: var(--gold); }
.sacts { display: flex; gap: 8px; padding: 0 16px 16px; }
.sacts button {
  flex: 1; padding: 10px; border-radius: 11px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); color: var(--muted); transition: .15s;
}
.sacts .pick { background: var(--panel-2); color: var(--ink); }
.sacts .pick:hover { border-color: var(--gold); color: var(--gold); }
.scard.on .sacts .pick { background: var(--gold); color: #14151a; border-color: var(--gold); }
.sacts .full:hover { color: var(--ink); border-color: #3a4052; }
.tick {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 5;
  width: 28px; height: 28px; border-radius: 999px; background: var(--gold); color: #14151a;
  display: none; place-items: center; font-size: 15px; font-weight: 900;
}
.scard.on .tick, .pcard-app.on .tick { display: grid; }

/* ---------- ستايلات التطبيق ---------- */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard-app {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  display: flex; gap: 18px; align-items: flex-start; cursor: pointer; transition: .2s; position: relative;
}
.pcard-app:hover { border-color: #3a4052; transform: translateY(-3px); }
.pcard-app.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 44px rgba(216,178,106,.14); }
.bezel {
  width: 172px; flex: none; border-radius: 26px; padding: 7px; background: #1f232c;
  border: 1px solid #333a47; box-shadow: 0 14px 30px rgba(0,0,0,.4); position: relative;
}
.bezel .screen-w { position: relative; overflow: hidden; border-radius: 20px; background: #fff; height: 330px; }
.bezel iframe { position: absolute; inset-block-start: 0; inset-inline-start: 0; border: 0; transform-origin: top right; pointer-events: none; }
.bezel .notch {
  position: absolute; inset-block-start: 10px; inset-inline-start: 50%; transform: translateX(50%);
  width: 52px; height: 5px; border-radius: 9px; background: rgba(0,0,0,.28); z-index: 3;
}
.pinfo { flex: 1; min-width: 0; padding-top: 4px; }
.pinfo h3 { font-size: 16.5px; margin-bottom: 6px; }
.pinfo p { margin: 0; font-size: 12.8px; color: var(--muted); }
.pinfo .best { display: block; margin-top: 8px; font-size: 11.5px; color: var(--gold); }
.pinfo .pacts { display: flex; gap: 8px; margin-top: 14px; }
.pinfo .pacts button { padding: 9px 14px; border-radius: 11px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.pinfo .pacts .pick { background: var(--panel-2); color: var(--ink); }
.pcard-app.on .pacts .pick { background: var(--gold); color: #14151a; border-color: var(--gold); }

/* ---------- الخلاصة ---------- */
.final { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fbox { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.fbox h3 { font-size: 17px; margin-bottom: 14px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.frow:last-child { border: 0; }
.frow span { color: var(--muted); flex: 1; }
.frow b { color: var(--ink); }
.frow .ok { color: var(--ok); }
.fbox .btn { width: 100%; margin-top: 14px; }
.price-tag { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price-tag b { font-family: 'Cairo'; font-size: 30px; color: var(--gold); }
.price-tag span { color: var(--muted); font-size: 13px; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 14px; transition: .16s;
  border: 1px solid var(--line); color: var(--ink);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.gold { background: var(--gold); color: #14151a; border-color: var(--gold); }
.btn.gold:hover { filter: brightness(1.07); }

/* ---------- الشريط السفلي ---------- */
.bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 80;
  background: rgba(19,21,27,.94); backdrop-filter: blur(18px); border-top: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 14px; height: 74px; }
.bar-logo {
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: none;
  display: grid; place-items: center; background: var(--gold); color: #14151a; font-family: 'Cairo'; font-weight: 900;
}
.bar-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bar-txt { flex: 1; min-width: 0; }
.bar-txt b { display: block; font-size: 15px; }
.bar-txt span { font-size: 12px; color: var(--muted); }
.bar-acts { display: flex; gap: 9px; }

/* ---------- معاينة كاملة ---------- */
.viewer { position: fixed; inset: 0; z-index: 120; background: #08090c; display: flex; flex-direction: column; }
.v-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.v-head b { font-size: 15px; }
.v-modes { display: flex; gap: 6px; margin-inline: auto; background: var(--panel); border-radius: 999px; padding: 4px; }
.v-modes button { padding: 7px 18px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.v-modes button.on { background: var(--gold); color: #14151a; font-weight: 700; }
.v-x { font-size: 18px; padding: 6px 12px; border-radius: 9px; }
.v-x:hover { background: var(--panel); }
.v-body { flex: 1; overflow: hidden; display: grid; place-items: center; background: #101218; padding: 18px; }
.v-body iframe { border: 0; background: #fff; }
.v-body.desk iframe { width: 100%; height: 100%; border-radius: 10px; }
.v-body.mob iframe { width: 390px; height: 100%; max-height: 844px; border-radius: 30px; border: 8px solid #1f232c; }

/* ---------- الفوتر والتنبيه ---------- */
.foot { padding: 40px 0 130px; border-top: 1px solid var(--line); margin-top: 30px; color: var(--muted); font-size: 13.5px; }
.foot b { color: var(--gold); }
.foot span { display: block; margin-top: 6px; }
.toast {
  position: fixed; inset-block-end: 96px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--gold); color: #14151a; padding: 13px 24px; border-radius: 12px; font-weight: 700;
  z-index: 130; font-size: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.4);
}

/* ---------- استجابة ---------- */
@media (max-width: 1080px) {
  .styles, .phones { grid-template-columns: repeat(2, 1fr); }
  .ident { grid-template-columns: 1fr; }
  .steps { display: none; }
  .final { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .styles, .phones { grid-template-columns: 1fr; }
  .f2 { grid-template-columns: 1fr; }
  .bar-acts .ghost { display: none; }
  .bar-in { height: 66px; }
}

/* إخفاء العناصر المخفية فعلاً (يغلب أي display بالكلاسات) */
[hidden] { display: none !important; }
