/* ═══ صفحات المتجر: طاولة التبديل، صفحة اللعبة، السلة، التتبّع، الحساب، المساعد ═══ */

/* ── الهيرو: طاولة التبديل ── */
.hero { position: relative; padding: 18px 0 8px; }
.floaties { position: absolute; inset: -20px 0 0 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floaties .shp { position: absolute; width: 34px; height: 34px; opacity: .35; animation: floaty var(--t, 9s) ease-in-out infinite; animation-delay: var(--d, 0s); }
.floaties .shp:nth-child(1) { top: 6%; right: 6%; --t: 9s; --dx: -12px; --dy: 16px; }
.floaties .shp:nth-child(2) { top: 18%; left: 8%; --t: 11s; --d: -2s; width: 26px; height: 26px; }
.floaties .shp:nth-child(3) { top: 46%; right: 2%; --t: 10s; --d: -4s; width: 22px; height: 22px; --rot: -24deg; }
.floaties .shp:nth-child(4) { top: 64%; left: 4%; --t: 12s; --d: -1s; --dx: 18px; }
.floaties .shp:nth-child(5) { top: 2%; left: 38%; --t: 13s; --d: -6s; width: 18px; height: 18px; opacity: .25; }
.floaties .shp:nth-child(6) { top: 82%; right: 30%; --t: 10s; --d: -3s; width: 20px; height: 20px; opacity: .25; }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 {
  margin: 6px 0 2px; font-family: var(--display); font-weight: normal; font-size: clamp(40px, 11vw, 66px); line-height: 1.05;
  background: linear-gradient(95deg, #fff 10%, #cfe0ff 40%, var(--gold) 75%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme='light'] .hero h1 { background: linear-gradient(95deg, var(--tx) 20%, var(--pri2) 55%, var(--gold2)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { margin: 0 0 16px; color: var(--tx2); font-size: 16px; }
.hero .lead b { color: var(--tx); font-weight: 600; }

.machine {
  position: relative; border-radius: var(--r4); padding: 16px; background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(140deg, rgba(62, 232, 165, .5), rgba(90, 169, 255, .4) 35%, rgba(255, 122, 224, .4) 70%, rgba(255, 216, 77, .55)) border-box;
  border: 1.5px solid transparent; box-shadow: var(--sh);
}
@media (min-width: 720px) { .machine { padding: 22px; } }
.m-find { display: flex; gap: 8px; position: relative; }
.m-find .input { min-height: 56px; border-radius: 18px; padding-inline-start: 46px; font-size: 16.5px; }
.m-find .s-ic { position: absolute; right: 15px; top: 17px; color: var(--tx3); pointer-events: none; }
.m-find .cam {
  flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; position: relative;
  background: linear-gradient(140deg, var(--sqr), var(--pri2)); box-shadow: 0 8px 20px rgba(255, 122, 224, .3);
}
.m-find .cam .ic { width: 26px; height: 26px; }
.m-find .cam::after { content: 'AI'; position: absolute; top: -6px; left: -6px; font: 700 10px/1 var(--font); padding: 4px 5px; border-radius: 6px; background: var(--gold); color: #2a1a00; }
/* الكاميرا داخل الحقل (يسار) حتى النص ياخذ العرض كله وما ينقص */
.m-find.with-cam .input { padding-inline-end: 64px; font-size: 16px; text-overflow: ellipsis; }
.m-find .input::placeholder { font-size: 15px; }
.m-find.with-cam .cam { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border-radius: 13px; z-index: 2; }
.m-find.with-cam .cam .ic { width: 22px; height: 22px; }
.m-find.with-cam .cam::after { top: -4px; left: -4px; font-size: 9px; padding: 3px 4px; border-radius: 5px; }
.m-sugg { position: absolute; z-index: 50; inset: 62px 0 auto 0; background: var(--bg2); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--sh); padding: 6px; max-height: 340px; overflow-y: auto; }
.m-sugg:empty { display: none; }
.m-pop { margin-top: 12px; }
.m-pop .lbl { font-size: 13px; color: var(--tx3); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

.m-table { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 18px; }
.slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r2); overflow: hidden; display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--line2); background: var(--s1); color: var(--tx3); padding: 10px; font-size: 13.5px; transition: border-color .2s;
}
.slot .shp { width: 34px; height: 34px; margin: 0 auto 8px; opacity: .8; }
.slot.full { border: 0; padding: 0; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); animation: pop .4s ease both; }
.slot.full img { width: 100%; height: 100%; object-fit: cover; }
.slot .cap { position: absolute; inset: auto 0 0 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(5, 6, 16, .92)); color: #fff; font-weight: 600; font-size: 13px; text-align: right; line-height: 1.3; }
.slot .x { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(5, 6, 16, .75); color: #fff; display: grid; place-items: center; }
.slot .x .ic { width: 16px; height: 16px; }
.slot .ttl { position: absolute; top: 8px; right: 8px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: rgba(5, 6, 16, .75); color: #fff; }
.slot.want-slot:not(.full) { border-color: rgba(255, 216, 77, .35); }
.swap-orb {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 0deg, var(--tri), var(--crs), var(--sqr), var(--cir), var(--gold), var(--tri)); position: relative;
}
.swap-orb::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg2); }
.swap-orb .ic { position: relative; width: 26px; height: 26px; }
.swap-orb.spin { animation: spin 1.2s cubic-bezier(.6, 0, .3, 1) 1; }

.m-cond { margin-top: 16px; display: grid; gap: 10px; }
.m-cond .lbl { font-size: 13.5px; color: var(--tx2); font-weight: 500; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--s1); padding: 5px; border-radius: 16px; border: 1px solid var(--line); }
.seg button { min-height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--tx2); font-weight: 500; font-size: 14px; transition: all .15s; }
.seg button .ic { width: 18px; height: 18px; }
.seg button.on { background: var(--s3); color: var(--tx); box-shadow: var(--sh2); }
.seg button { line-height: 1.2; padding: 0 6px; }
@media (max-width: 430px) { [data-grade-seg] button { font-size: 13px; gap: 4px; } [data-grade-seg] button .ic { display: none; } }
.seg button.on.g { color: var(--tri); } .seg button.on.y { color: var(--gold); } .seg button.on.r { color: var(--cir); }

.m-value {
  position: relative; margin-top: 16px; border-radius: var(--r3); padding: 16px 18px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 216, 77, .2), transparent 60%), var(--s1); box-shadow: var(--glow-gold);
  animation: pulse-gold 3s ease-in-out infinite;
}
.m-value .k { font-size: 14px; color: var(--tx2); }
.m-value .v { font-family: var(--display); font-size: clamp(44px, 13vw, 64px); line-height: 1.1; color: var(--gold); text-shadow: 0 6px 30px rgba(255, 176, 32, .35); direction: ltr; display: inline-block; }
.m-value .v small { font-size: .32em; color: var(--tx2); font-family: var(--font); margin-right: 6px; }
.m-value .sub { font-size: 13.5px; color: var(--tx2); }
.m-value.bad { animation: none; box-shadow: 0 0 0 1px rgba(255, 83, 112, .4); background: var(--s1); }
.m-value.bad .v { color: var(--cir); font-size: 20px; font-family: var(--font); font-weight: 600; text-shadow: none; padding: 8px 0; }
.coins { position: absolute; inset: 0; pointer-events: none; }
.coins i { position: absolute; left: 50%; top: 55%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c2, var(--gold) 45%, var(--gold2)); box-shadow: 0 0 0 2px rgba(120, 70, 0, .25) inset; animation: coin 1.1s cubic-bezier(.2, .7, .3, 1) both; }
.receipt { margin-top: 10px; }
.receipt summary { cursor: pointer; color: var(--tx2); font-size: 13.5px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.receipt summary::-webkit-details-marker { display: none; }
.receipt summary::after { content: '▾'; font-size: 11px; }
.receipt[open] summary::after { content: '▴'; }
.receipt ol { list-style: none; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--s2); text-align: right; font-size: 14px; }
.receipt li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line2); }
.receipt li:last-child { border: 0; font-weight: 700; color: var(--gold); }
.receipt li .a { direction: ltr; font-feature-settings: 'tnum'; }
.receipt li .a.neg { color: var(--cir); }

.m-take { margin-top: 18px; }
.m-take h3 { margin: 0 0 4px; font-family: var(--display); font-weight: normal; font-size: 22px; }
.m-take p { margin: 0 0 10px; color: var(--tx2); font-size: 13.5px; }
.tcard { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.tcard .cover { aspect-ratio: 3 / 4; }
.tcard.on .cover { box-shadow: 0 0 0 3px var(--gold), 0 14px 30px rgba(255, 176, 32, .25); }
.tcard .t { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .pay { font-size: 13px; color: var(--tx2); }
.tcard .pay b { color: var(--tx); font-family: var(--display); font-weight: normal; font-size: 16px; }
.tcard .pay.free b { color: var(--tri); }
.tcard .cond { position: absolute; bottom: 8px; right: 8px; }

.m-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.m-actions .btn { flex: 1; min-width: 160px; }

/* خطوات التبديل (الأشكال الأربعة) */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 18px; }
.steps4 div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--tx3); text-align: center; }
.steps4 i { width: 100%; height: 4px; border-radius: 4px; background: var(--s2); position: relative; overflow: hidden; }
.steps4 i::after { content: ''; position: absolute; inset: 0; transform: scaleX(0); transform-origin: right; transition: transform .4s ease; background: currentColor; }
.steps4 .shp { width: 22px; height: 22px; opacity: .45; transition: opacity .3s, transform .3s; }
.steps4 div.on { color: var(--tx); }
.steps4 div.on .shp { opacity: 1; transform: scale(1.12); }
.steps4 div.done i::after, .steps4 div.on i::after { transform: none; }
.steps4 div:nth-child(1) i { color: var(--tri); } .steps4 div:nth-child(2) i { color: var(--cir); } .steps4 div:nth-child(3) i { color: var(--crs); } .steps4 div:nth-child(4) i { color: var(--sqr); }
.gives { display: grid; gap: 10px; }
.give-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); animation: rise .35s ease both; }
.give-row img, .give-row .ph { width: 58px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; background: var(--s2); }
.give-row .gb { flex: 1; min-width: 0; }
.give-row .gb b { display: block; font-size: 15px; line-height: 1.3; }
.give-row .gb small { color: var(--tx3); font-size: 12.5px; }
.give-row .gv { text-align: left; font-family: var(--display); font-size: 21px; color: var(--gold); white-space: nowrap; }
.give-row .gv.bad { color: var(--cir); font-family: var(--font); font-size: 12.5px; font-weight: 600; white-space: normal; max-width: 120px; }
.give-row .rm { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--tx3); }
.add-give { border: 2px dashed var(--line2); border-radius: 18px; min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--tx2); font-weight: 500; width: 100%; }
.add-give:hover { border-color: var(--crs); color: var(--tx); }
.photo-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.photo-row img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.photo-row .add { width: 54px; height: 54px; border-radius: 10px; border: 1.5px dashed var(--line2); display: grid; place-items: center; color: var(--tx3); }

.sumbar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 30; margin-top: 18px;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 22px; background: var(--s2); border: 1px solid var(--line2); box-shadow: var(--sh);
}
@media (min-width: 900px) { .sumbar { bottom: 16px; } }
.sumbar .sb { flex: 1; min-width: 0; line-height: 1.3; }
.sumbar .sb small { display: block; color: var(--tx3); font-size: 12px; }
.sumbar .sb b { font-family: var(--display); font-weight: normal; font-size: 22px; }
.sumbar .sb b.g { color: var(--gold); } .sumbar .sb b.t { color: var(--tri); }

/* ── شلون نبدّل (3 خطوات مرسومة) ── */
.how { display: grid; gap: 12px; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how-step { position: relative; padding: 18px; border-radius: var(--r3); background: var(--s1); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; overflow: hidden; }
.how-step .hi { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none; position: relative; }
.how-step .hi .ic { width: 28px; height: 28px; }
.how-step:nth-child(1) .hi { background: rgba(62, 232, 165, .13); color: var(--tri); }
.how-step:nth-child(2) .hi { background: rgba(255, 216, 77, .13); color: var(--gold); }
.how-step:nth-child(3) .hi { background: rgba(90, 169, 255, .13); color: var(--crs); }
.how-step b { display: block; font-size: 16.5px; }
.how-step small { color: var(--tx2); font-size: 13.5px; }
.how-step .no { position: absolute; left: 12px; top: 6px; font-family: var(--display); font-size: 46px; color: var(--line2); line-height: 1; }

/* ── المحل ── */
.shop-card { display: grid; gap: 14px; padding: 20px; border-radius: var(--r4); background: linear-gradient(140deg, rgba(255, 122, 224, .12), rgba(90, 169, 255, .10) 50%, var(--s1)); border: 1px solid var(--line2); position: relative; overflow: hidden; }
@media (min-width: 720px) { .shop-card { grid-template-columns: 1fr auto; align-items: center; } }
.shop-card h3 { margin: 0; font-family: var(--display); font-weight: normal; font-size: 26px; }
.shop-card p { margin: 2px 0 0; color: var(--tx2); }
.shop-card .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-card .pin { position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; opacity: .08; }

/* ── صفحة اللعبة ── */
.tp { position: relative; isolation: isolate; }
.tp-back { position: absolute; inset: -60px 0 auto 0; height: 520px; z-index: -1; overflow: hidden; }
.tp-back::before { content: ''; position: absolute; inset: 0; background: var(--cov) center / cover no-repeat; filter: blur(38px) saturate(1.4); opacity: .55; transform: scale(1.2); }
.tp-back::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--tint, #3b5bdb) 30%, transparent), var(--bg) 92%); }
.tp-head { display: grid; gap: 18px; padding-top: 16px; }
@media (min-width: 760px) { .tp-head { grid-template-columns: 300px 1fr; gap: 30px; align-items: start; padding-top: 30px; } }
.tp-cover { width: min(62%, 270px); margin: 0 auto; perspective: 900px; }
@media (min-width: 760px) { .tp-cover { width: 100%; position: sticky; top: calc(var(--head-h) + 16px); } }
.tp-cover .cover { box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); transform-style: preserve-3d; transition: transform .2s ease; }
.tp-name { margin: 0; font-family: var(--display); font-weight: normal; font-size: clamp(30px, 8vw, 44px); line-height: 1.1; }
.tp-en { color: var(--tx2); font-size: 14.5px; margin-top: 2px; direction: ltr; text-align: right; }
.tp-blurb { margin: 10px 0 0; font-size: 16px; color: var(--tx); }
.tp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tp-plat { margin-top: 16px; }
.tp-plat .seg { max-width: 300px; }
.buy { margin-top: 16px; display: grid; gap: 10px; }
.buy h3 { margin: 6px 0 0; font-size: 15px; color: var(--tx2); font-weight: 500; }
.copy-opt .ob .thumbs { display: flex; gap: 5px; margin-top: 6px; }
.copy-opt .ob .thumbs img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.copy-opt .oe .money { font-size: 17px; }
.new-opt .oi { background: rgba(62, 232, 165, .12); color: var(--tri); }
.used-opt .oi { background: rgba(255, 216, 77, .12); color: var(--gold); }
.swap-promo {
  margin-top: 16px; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r3);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 216, 77, .16), transparent 60%), var(--s1); box-shadow: var(--glow-gold);
}
.swap-promo .ic { width: 34px; height: 34px; color: var(--gold); flex: none; }
.swap-promo b { display: block; font-size: 15.5px; }
.swap-promo small { color: var(--tx2); }
.swap-promo .money .num { color: var(--gold); font-size: 1.3em; }
.tp-bar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 30; margin-top: 18px;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 22px; background: var(--s2); border: 1px solid var(--line2); box-shadow: var(--sh);
}
@media (min-width: 900px) { .tp-bar { bottom: 16px; } }
.tp-bar .pb { flex: 1; line-height: 1.25; }
.tp-bar .pb small { color: var(--tx3); font-size: 12px; display: block; }
.tp-bar .pb .money .num { font-size: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.facts div { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.facts small { display: block; color: var(--tx3); font-size: 12px; }
.facts b { font-size: 14.5px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 86vh; border-radius: 14px; }
.lightbox .close { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }

/* ── السلة والطلب ── */
.lines { display: grid; gap: 10px; }
.line { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.line img, .line .ph { width: 64px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; background: var(--s2); }
.line .lb { flex: 1; min-width: 0; }
.line .lb b { display: block; font-size: 15px; line-height: 1.3; }
.line .lb small { color: var(--tx3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.line .le { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.line.bad { opacity: .6; }
.line .warn { color: var(--cir); font-size: 12.5px; font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--tx2); }
.qty button .ic { width: 16px; height: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.totals { display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .tot { padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line2); font-size: 18px; font-weight: 700; }
.totals .tot .money .num { font-size: 26px; }
.totals .w { color: var(--gold); }
.checkout { display: grid; gap: 16px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.3fr 1fr; align-items: start; } .checkout .side { position: sticky; top: calc(var(--head-h) + 16px); } }
.wallet-use { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 216, 77, .14), transparent 60%), var(--s1); border: 1.5px solid rgba(255, 216, 77, .35); }
.switch { position: relative; width: 52px; height: 30px; border-radius: 30px; background: var(--s3); flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--gold2); }
.switch.on::after { transform: translateX(-22px); }

/* ── التتبّع ── */
.track-h { text-align: center; padding: 22px 0 10px; }
.track-h .big { font-family: var(--display); font-size: 34px; line-height: 1.15; margin: 8px 0 2px; }
.track-h .no { color: var(--tx3); font-size: 14px; direction: ltr; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stepper li { position: relative; display: flex; gap: 14px; padding: 0 0 22px; }
.stepper li::before { content: ''; position: absolute; right: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line2); }
.stepper li:last-child::before { display: none; }
.stepper .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); color: var(--tx3); flex: none; position: relative; z-index: 1; }
.stepper .dot .ic { width: 18px; height: 18px; }
.stepper li.done .dot { background: var(--tri); color: #052a1d; }
.stepper li.done::before { background: var(--tri); }
.stepper li.now .dot { background: var(--crs); color: #fff; box-shadow: 0 0 0 6px rgba(90, 169, 255, .2); }
.stepper li.bad .dot { background: var(--cir); color: #fff; }
.stepper .sb b { display: block; font-size: 15.5px; }
.stepper .sb small { color: var(--tx3); font-size: 12.5px; }
.stepper li:not(.done):not(.now):not(.bad) .sb { color: var(--tx3); }
.approve { padding: 18px; border-radius: var(--r3); background: radial-gradient(120% 140% at 50% 0%, rgba(255, 181, 71, .16), transparent 60%), var(--s1); border: 1.5px solid rgba(255, 181, 71, .4); text-align: center; }
.approve .vs { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 10px 0 14px; font-family: var(--display); font-size: 26px; }
.approve .vs s { color: var(--tx3); font-size: 20px; }
.approve .vs b { color: var(--gold); font-weight: normal; font-size: 34px; }
.approve .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── حسابي ── */
.wallet-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 22px; color: #2a1a00; min-height: 170px;
  background: radial-gradient(120% 120% at 0% 0%, #fff3b0, transparent 50%), linear-gradient(135deg, #ffd84d, #ffb020 60%, #ff8a1f);
  box-shadow: 0 20px 50px rgba(255, 150, 20, .3);
}
.wallet-card .shapes { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 8px; opacity: .3; }
.wallet-card .shapes .shp { width: 26px; height: 26px; color: #4a2a00; }
.wallet-card small { font-weight: 600; opacity: .8; }
.wallet-card .bal { font-family: var(--display); font-size: 52px; line-height: 1.1; direction: ltr; text-align: right; }
.wallet-card .bal span { font-size: 18px; font-family: var(--font); font-weight: 600; margin-right: 6px; }
.wallet-card .who { margin-top: 10px; font-size: 14px; font-weight: 600; opacity: .85; direction: ltr; text-align: right; }
.ledger { display: grid; gap: 2px; }
.ledger div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger .in { color: var(--tri); } .ledger .out { color: var(--cir); }
.mini-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { width: 58px; height: 64px; text-align: center; font-size: 26px; font-family: var(--display); border-radius: 16px; background: var(--s1); border: 1.5px solid var(--line2); color: var(--tx); }
.otp input:focus { border-color: var(--crs); outline: none; }

/* ── المساعد ── */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 14px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.55; animation: rise .3s ease both; white-space: pre-wrap; }
.msg.me { align-self: flex-start; background: linear-gradient(120deg, var(--crs), var(--pri2)); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-end; background: var(--s2); border-bottom-left-radius: 6px; }
.msg.typing { display: flex; gap: 5px; padding: 15px 18px; }
.msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--tx3); animation: bob 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.chat .picks { align-self: stretch; }
.chat .picks .rail { grid-auto-columns: minmax(120px, 36%); margin: 0; padding: 4px 0 6px; }
.chat .gives-q { align-self: flex-end; display: grid; gap: 8px; width: min(100%, 360px); }
.ask-bar { display: flex; gap: 8px; align-items: center; position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); background: var(--bg); padding: 8px 0; }
@media (min-width: 900px) { .ask-bar { bottom: 0; } }
.ask-bar .input { border-radius: 999px; }
.ask-bar .send { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(120deg, var(--sqr), var(--pri2)); color: #fff; }
.ask-intro { text-align: center; padding: 20px 0 6px; }
.ask-intro .orb { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(140deg, var(--sqr), var(--pri2)); box-shadow: 0 14px 34px rgba(255, 122, 224, .3); }
.ask-intro .orb .ic { width: 38px; height: 38px; color: #fff; }
.ask-intro h1 { margin: 0; font-family: var(--display); font-weight: normal; font-size: 30px; }

/* ═══ مربع «تاخذ» الذكي + ورقة المقترحات ═══ */
.m-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--tx2); text-align: center; }
.m-hint .ic { width: 16px; height: 16px; color: var(--gold); flex: none; }
.m-hint.hide { display: none; }
button.slot { font: inherit; color: var(--tx3); cursor: pointer; width: 100%; }
.want-slot:not(.full) { animation: wantPulse 2.2s ease-in-out infinite; }
@keyframes wantPulse { 0%, 100% { border-color: rgba(255, 216, 77, .3); } 50% { border-color: rgba(255, 216, 77, .75); } }
.slot .sug { position: absolute; top: 8px; right: 8px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--gold); color: #2a1a00; display: inline-flex; gap: 3px; align-items: center; }
.slot .chg { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(5, 6, 16, .78); color: #fff; display: grid; place-items: center; }
.slot .chg .ic { width: 15px; height: 15px; }
.slot .sug { max-width: calc(100% - 46px); white-space: nowrap; }
.slot .cap small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.slot .cond-tag { position: absolute; bottom: 44px; right: 8px; }
.slot .pay { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 12.5px; font-weight: 600; text-align: center; background: var(--gold); color: #2a1a00; }
.slot .pay.free { background: var(--tri); color: #052a1d; }
.slot.full .cap.has-pay { bottom: 30px; }

.pk { display: flex; flex-direction: column; gap: 10px; }
.pk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pk-head b { font-family: var(--display); font-weight: normal; font-size: 22px; }
.pk-head .cr { font-size: 13px; color: var(--tx2); }
.pk-head .cr .num { color: var(--gold); font-size: 17px; }
.pk-search { position: relative; }
.pk-search .input { min-height: 48px; border-radius: 14px; padding-inline-start: 42px; }
.pk-search .ic { position: absolute; right: 14px; top: 14px; color: var(--tx3); width: 20px; height: 20px; }
.pk-tools { display: flex; gap: 8px; align-items: center; }
.pk-tools .seg { flex: 1; }
.pk-keep { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 44px; border-radius: 14px; border: 1.5px dashed rgba(255, 216, 77, .45); color: var(--gold); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.pk-keep .ic { width: 18px; height: 18px; }
.pk-list { display: grid; gap: 6px; padding-bottom: 6px; }
.pk-sec { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; font-size: 13.5px; font-weight: 700; color: var(--tx2); }
.pk-sec .ic { width: 16px; height: 16px; }
.pk-sec.newer { color: var(--tri); } .pk-sec.free { color: var(--gold); } .pk-sec.hot { color: var(--cir); } .pk-sec.genre { color: var(--crs); }
.pk-row { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; background: var(--s1); border: 1.5px solid transparent; text-align: right; width: 100%; }
.pk-row.on { border-color: var(--gold); }
.pk-row img, .pk-row .ph { width: 52px; height: 68px; border-radius: 10px; object-fit: cover; flex: none; background: var(--s2); }
.pk-row .pb { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pk-row .pb > b { font-size: 14.5px; line-height: 1.3; }
.pk-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-opt { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 5px 10px; border-radius: 10px; background: var(--s2); border: 1.5px solid var(--line2); font-size: 11.5px; color: var(--tx2); line-height: 1.35; }
.pk-opt b { font-size: 13.5px; color: var(--tx); font-family: var(--display); font-weight: normal; letter-spacing: .3px; }
.pk-opt.free b { color: var(--tri); }
.pk-opt.on { border-color: var(--gold); background: rgba(255, 216, 77, .1); }
.pk-empty { text-align: center; color: var(--tx2); padding: 24px 8px; font-size: 14px; }
@media (min-width: 720px) { .pk-list { max-height: 56vh; overflow-y: auto; } }

/* ═══ الاشتراك الشهري ═══ */
.plans { display: grid; gap: 12px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: var(--r3); background: var(--s1); border: 2px solid var(--line2); text-align: right; transition: border-color .2s, transform .2s; }
.plan:active { transform: scale(.985); }
.plan.on { border-color: var(--gold); background: radial-gradient(120% 120% at 100% 0%, rgba(255, 216, 77, .14), transparent 60%), var(--s1); box-shadow: var(--glow-gold); }
.plan-badge { position: absolute; top: -11px; left: 14px; background: var(--gold); color: #2a1a00; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-slots { display: flex; gap: 4px; color: var(--crs); }
.plan-slots .ic { width: 26px; height: 26px; }
.plan-name { font-family: var(--display); font-weight: normal; font-size: 24px; line-height: 1.1; }
.plan-price .num { font-size: 34px; color: var(--gold); }
.plan-price small { color: var(--tx2); font-size: 13px; margin-right: 4px; }
.plan-feat { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--tx2); }
.plan-feat .ic { width: 17px; height: 17px; color: var(--tri); margin-top: 2px; }
.plan-dep { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--tx3); margin-top: auto; padding-top: 6px; }
.plan-dep .ic { width: 16px; height: 16px; }
.terms { margin: 0; padding: 0 18px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--tx2); }
.terms li::marker { color: var(--tri); }
.member-card { position: relative; overflow: hidden; border-radius: 28px; padding: 22px; margin-top: 16px; background: linear-gradient(140deg, #2a2f6b, #12152e 60%), var(--s1); border: 1px solid var(--line2); box-shadow: var(--sh); }
.member-card .shapes { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 8px; opacity: .35; }
.member-card .shapes .shp { width: 24px; height: 24px; }
.member-card .mt { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.member-card .mt b { font-family: var(--display); font-weight: normal; font-size: 26px; color: #fff; }
.member-card .days { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; color: #fff; }
.member-card .days .num { font-size: 52px; line-height: 1; color: var(--gold); }
.member-card .meta { color: #c9cdf0; font-size: 13.5px; margin-top: 6px; }
.member-card .slots-row { display: flex; gap: 6px; margin-top: 12px; }
.member-card .slots-row span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #8890c0; }
.member-card .slots-row span.on { background: var(--crs); color: #fff; }
.member-card .slots-row .ic { width: 18px; height: 18px; }
.loan { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.loan + .loan { margin-top: 8px; }
.loan img, .loan .ph { width: 56px; height: 74px; border-radius: 12px; object-fit: cover; flex: none; background: var(--s2); }
.loan .lb { flex: 1; min-width: 0; }
.loan .lb b { display: block; font-size: 15px; }
.loan .lb small { color: var(--tx3); font-size: 12.5px; }
.qrow { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: var(--s1); }
.qrow + .qrow { margin-top: 6px; }
.qrow .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); font-weight: 700; font-size: 13px; flex: none; }
.qrow img { width: 40px; height: 52px; border-radius: 8px; object-fit: cover; }
.qrow b { flex: 1; font-size: 14px; }
.qrow .icon-btn { width: 34px; height: 34px; }
