/* ══════════════════════════════════════════════════════════════════════════
   المظهر الهادئ (المالك 2026-11-02: «كل عناصر الموقع تبدو من صنع الذكاء الاصطناعي»).
   آخر ورقة أنماط في index.html: تُعيد ضبط ما سبقها على قاعدة واحدة — خلفية الموقع كما هي (.site-backdrop)،
   بطاقات بإطار رفيع بلا ظلال، زوايا 12/16 فقط، لون تمييز واحد (تركواز العلامة) للأزرار والروابط والاختيار،
   حالة نصّاً بلونها. الحركات والعناصر البصرية في أوراقها (motion/art/checkout) تبقى — المالك 2026-11-10: «أعدها».
   الأقسام: 1 الأرضية والبطاقات · 2 الرجوع والعناوين · 3 رأس القسم والبحث · 4 صفحة الشراء · 5 قائمة الطلبات ·
   6 صفحة الطلب · 7 عناصر متفرّقة
   ══════════════════════════════════════════════════════════════════════════ */

/* ───────── 1. الأرضية والبطاقات ───────── */
:root { --card-r: 16px; --card-border: 1px solid var(--border); }
/* the site's backdrop (App.jsx .site-backdrop: picture + dots) stays: the owner never asked to remove it (2026-11-07) */
.sidebar { background-color: var(--surface); border-inline-end: 1px solid var(--border); }
.buy-step, .buy-hero, .trk-side, .keep, .trk-save, .rows, .or-wrap, .panel > .buy-step, .co-side, .maint-card {
  border-radius: var(--card-r); border: var(--card-border); box-shadow: none;
}
.maint-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
.public-header::after { box-shadow: none; }
.public-header[data-scrolled]::after { box-shadow: 0 1px 0 var(--border); }
.banner { box-shadow: none; border-radius: var(--card-r); }
.ui-btn-secondary { box-shadow: none; }
.ui-btn-lg { border-radius: var(--r-2); }

/* ───────── 2. الرجوع والعناوين ───────── */
/* «‹ سجل الشحن المباشر»: رابط نصّي كمسار التصفّح، لا حبّة بظلّ */
.buy-back { min-height: 36px; padding: 0 !important; border: 0; border-radius: var(--r-1); background: none; box-shadow: none; color: var(--text-2); font: var(--t-callout-strong); }
.buy-back:hover { background: none; color: var(--text); }
.buy-back:active { transform: none; opacity: .7; }
@media (max-width: 768px), (pointer: coarse) { .buy-back { min-height: 44px; } }
.page-head h1 { font: var(--t-title-1); letter-spacing: 0; }
@media (max-width: 1023.98px) { .page-head h1 { font: var(--t-title-2); } }

/* ───────── 3. رأس القسم والبحث (components/CategoryBand.jsx، pages/Store.jsx) ───────── */
.cat-head { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.cat-head-img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex: none; background: var(--surface-3); }
.cat-head-title { margin: 0; font: var(--t-title-3); font-size: 18px; line-height: 26px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.cat-head-hero .cat-head-img { width: 40px; height: 40px; border-radius: 11px; }
.cat-head-hero .cat-head-title { font: var(--t-title-1); }
@media (max-width: 1023.98px) { .cat-head-hero .cat-head-title { font: var(--t-title-2); } }
.cat-head-actions { margin-inline-start: auto; }
.section { display: flex; flex-direction: column; gap: var(--section-gap); }
/* the search field on the plain grey page: a white field with a hairline, like the other inputs */
.control-search { background: var(--surface); border-color: var(--border); border-radius: var(--r-2); min-height: 44px; }
.search-none-here { margin: 0; font: var(--t-callout); color: var(--text-2); }
.search-elsewhere { display: flex; flex-direction: column; gap: var(--page-gap); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.search-elsewhere-title { margin: 0 0 calc(var(--s-4) - var(--page-gap)); font: var(--t-callout-strong); color: var(--text-2); }
/* «عرض الكل» و«غير متوفر»: في مصدريهما (art.css، store.css) — لا تجاوز هنا */

/* ───────── 4. صفحة الشراء ───────── */
.buy-hero .buy-pic, .co-hero .buy-pic, .product-page .co-hero .buy-pic { box-shadow: 0 0 0 1px var(--border); }
.buy-cat, .buy-region { background: none; padding: 0; height: auto; min-height: 0; color: var(--text-2); font: var(--t-callout); }
/* the step number: a quiet figure before the title, not a filled badge */
.buy-step-n { display: inline; width: auto; height: auto; background: none; color: var(--text-3); font: var(--t-title-3); border-radius: 0; }
.opt-chip, .pack, .pk { box-shadow: none; }

/* ───────── 5. قائمة الطلبات (components/OrderRows.jsx) ───────── */
.or-wrap { container: orders / inline-size; max-width: 1080px; background: var(--surface); overflow: hidden; }
.or-head { display: none; }
.or-list { margin: 0; padding: 0; list-style: none; }
/* phone: three short lines: the name and the price, what was bought and its state, the date («إعادة الطلب» is inside the
   order's page only — owner 2026-11-12) */
.or-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "pic what price" "pic what status" "pic date .";
  column-gap: var(--s-3); row-gap: 2px; align-items: center; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--border); }
.or-row:first-child { border-top: 0; }
.or-row:hover { background: var(--surface-2); }
.or-row[data-highlight="true"] { background: var(--accent-soft); }
.or-pic { grid-area: pic; align-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-3); color: var(--gray-4); }
.or-pic > img { width: 100%; height: 100%; object-fit: cover; }
.or-pic > svg { width: 20px; height: 20px; }
.or-what { grid-area: what; display: flex; flex-direction: column; min-width: 0; }
/* the name's button opens the order; its ::after covers the whole row */
.or-open { display: block; max-width: 100%; padding: 0; text-align: start; color: var(--text); font: var(--t-callout-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-open::after { content: ""; position: absolute; inset: 0; }
.or-open:focus-visible { box-shadow: none; }
.or-open:focus-visible::after { box-shadow: inset var(--focus); }
.or-sub { font: var(--t-caption); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the player id under the name copies itself: above the row's own link (::after) */
.or-sub .tap-copy { z-index: 1; vertical-align: bottom; }
.or-date { grid-area: date; justify-self: start; font: var(--t-caption); color: var(--text-3); white-space: nowrap; }
.or-status { grid-area: status; justify-self: end; display: inline-flex; align-items: center; gap: 6px; font: var(--t-caption-strong); white-space: nowrap; color: var(--warning-text); }
.or-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.or-status[data-tone="ok"] { color: var(--success-text); }
.or-status[data-tone="bad"] { color: var(--danger-text); }
.or-status[data-tone="ask"] { color: var(--accent-text); }
.or-price { grid-area: price; justify-self: end; font: var(--t-callout-strong); }
.or-price .paid { align-items: flex-end; }
.or-price .price { font: var(--t-callout-strong); }
/* wide: one line per order with columns, and a header naming them once */
@container orders (min-width: 640px) {
  .or-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 10rem 7.5rem 6rem; column-gap: var(--s-4); padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--border); font: var(--t-caption-strong); color: var(--text-3); }
  .or-head .or-num { text-align: end; }
  .or-row { grid-template-columns: 44px minmax(0, 1fr) 10rem 7.5rem 6rem; grid-template-areas: "pic what date status price"; column-gap: var(--s-4); }
  .or-pic { align-self: center; }
  .or-date { font: var(--t-callout); color: var(--text-2); }
  .or-status { justify-self: start; font: var(--t-callout-strong); }
}

/* «إعادة الطلب» */
.ov-reorder > svg { width: 15px; height: 15px; }

/* قيمة تُنسخ بلمسها (ui/Copy.jsx): معرّف اللاعب واسمه — النص نفسه زرّ بلا أيقونة؛ «نُسخ» تحلّ محلّه لحظة بالعرض نفسه */
.tap-copy { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 4px;
  background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tap-copy-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: inherit; }
@media (hover: hover) { .tap-copy:hover .tap-copy-value { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; } }
.tap-copy:focus-visible { outline: 0; box-shadow: var(--focus); }
.tap-copy[data-done] .tap-copy-value { visibility: hidden; }
.tap-copy-done { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--success-text);
  font-weight: 600; white-space: nowrap; animation: tap-copy-in var(--dur-2) cubic-bezier(.2, .8, .2, 1); }
.tap-copy-done > svg { flex: none; width: 12px; height: 12px; }
@keyframes tap-copy-in { from { opacity: 0; transform: scale(.9); } }

/* ───────── 6. صفحة الطلب (components/OrderView.jsx) ─────────
   (المالك 2026-11-09: «صفحات الطلبات أكثر ما يبدو عاماً») الحالة كلمات بنقطة صغيرة بلونها — لا أيقونة في دائرة؛ خطّ
   المراحل بنقاط صغيرة؛ سبب الرفض وما أُعيد سطران عاديان بلا صناديق؛ «التفاصيل» صفوف إيصال: الاسم في البداية والقيمة في
   النهاية بخطّ فاصل رفيع. */
.trk-side { padding: var(--s-3) var(--s-4); background: var(--surface); }
.trk-pic { width: 48px; border-radius: 12px; }
.trk-again { display: flex; }
.trk-status { gap: var(--s-4); }
.trk-status[data-tone] { border-color: var(--border); }
/* رأس الحالة: علامة متحرّكة بلون الحالة والكلمات بجانبها (المالك 2026-11-10: أعد الحركات والعناصر البصرية) */
.trk-head { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.trk-head-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trk-head h1 { margin: 0; font: var(--t-title-3); font-size: 18px; line-height: 26px; }
.trk-head p { margin: 0; font: var(--t-callout); color: var(--text-2); }
.trk-badge { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text); animation: trk-pop .6s cubic-bezier(.34, 1.56, .64, 1) .1s backwards; }
.trk-badge > svg { position: relative; width: 22px; height: 22px; }
.trk-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid currentColor; opacity: 0; }
.trk-badge[data-tone="now"]::after { animation: trk-halo 2s var(--ease-out, ease-out) .7s infinite; }
.trk-badge[data-tone="now"] > svg { animation: trk-tick 2s ease-in-out .7s infinite; }
.trk-badge[data-tone="done"] { background: var(--success-soft); color: var(--success-text); }
.trk-badge[data-tone="done"]::after { animation: trk-halo .9s var(--ease-out, ease-out) .45s 1 both; }
.trk-badge[data-tone="done"] > svg { animation: trk-check .5s cubic-bezier(.34, 1.56, .64, 1) .35s backwards; }
.trk-badge[data-tone="bad"] { background: var(--danger-soft); color: var(--danger-text); }
.trk-badge[data-tone="bad"] > svg { animation: trk-shake .5s ease-in-out .5s 1; }
.ov-ring { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--warning-text);
  animation: trk-pop .6s cubic-bezier(.34, 1.56, .64, 1) .1s backwards; }
.ov-ring > svg { position: absolute; inset: 2px; width: 40px; height: 40px; transform: rotate(-90deg) scaleY(-1); }
.ov-ring circle { fill: none; stroke-width: 5; }
.ov-ring-track { stroke: var(--warning-soft); }
.ov-ring-fill { stroke: currentColor; stroke-linecap: round; animation: trk-draw 1.1s cubic-bezier(.16, 1, .3, 1) .35s backwards; }
@keyframes trk-pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
@keyframes trk-halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes trk-tick { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(10deg); } }
@keyframes trk-check { from { transform: scale(0) rotate(-40deg); } }
@keyframes trk-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
@keyframes trk-draw { from { stroke-dasharray: 0 var(--ov-c, 100); } }
@media (prefers-reduced-motion: reduce) {
  .trk-badge, .trk-badge > svg, .trk-badge::after, .ov-ring, .ov-ring-fill { animation: none !important; }
}
.track-line { gap: var(--s-3); }
.track-line > li > .stack > b { font: var(--t-callout-strong); }
.track-dot { width: 12px; height: 12px; margin-top: 5px; border-width: 2px; }
.track-line > li:not(:last-child)::after { inset-inline-start: 5px; top: 21px; bottom: calc(-1 * var(--s-3) + 3px); }
.track-line > li[data-state="part"] .track-dot { background: var(--warning-soft); }
.track-note.track-why { font-weight: 500; }
.track-note.ov-refund { margin-top: var(--s-1); padding: 0; background: none; border-radius: 0; }
.ov-refund::before, .ov-refund[data-to]::before { width: 6px; height: 6px; margin-top: 8px; box-shadow: none; }
/* «التفاصيل»: صفوف إيصال */
.trk-main .buy-step-title { font: var(--t-callout-strong); color: var(--text-2); }
.trk-main .rs-kv { display: flex; flex-direction: column; gap: 0; padding: 0; background: none; border-radius: 0; }
.trk-main .rs-row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding: 10px 0; border-top: 1px solid var(--border); }
.trk-main .rs-row:first-child { border-top: 0; padding-top: 0; }
.trk-main .rs-row:last-child { padding-bottom: 0; }
.trk-main .rs-row dt { flex: none; font: var(--t-callout); color: var(--text-2); }
.trk-main .rs-row dd { min-width: 0; text-align: end; font: var(--t-callout); }
.trk-main .rs-strong { font-weight: 600; }
.trk-main .rs-row dd > .copy { white-space: nowrap; align-items: center; font-size: 13px; }
.trk-main .ov-contact { text-align: left; }  /* direction ltr inside an RTL row: the physical end of the row */
.trk-code, .rec-body .rs-code { box-shadow: none; border-style: solid; border-width: 1px; border-color: var(--border-strong); }
/* «إعادة الطلب» داخل بطاقة المنتج وفي أسفلها، سطراً كاملاً تحت الاسم والباقة، على كل الشاشات (المالك 2026-11-10) */
.trk-side { grid-template-columns: auto minmax(0, 1fr); }
.trk-again { grid-column: 1 / -1; padding-top: var(--s-3); border-top: 1px solid var(--border); }
.trk-again > .ov-reorder { width: 100%; height: 40px; white-space: nowrap; }
@container co (min-width: 840px) {
  .trk-side { grid-template-columns: minmax(0, 1fr); justify-items: stretch; text-align: start; padding: var(--s-5); box-shadow: none; border-radius: var(--card-r); }
  .trk-pic { width: 72px; border-radius: 16px; box-shadow: 0 0 0 1px var(--border); }
  .trk-what { align-items: flex-start; }
  .trk-name { font: var(--t-body-strong); }
  .trk-pack { display: block; min-height: 0; padding: 0; background: none; color: var(--text-2); font: var(--t-callout); }
  .trk-again > .ov-reorder { width: 100%; }
}

/* ───────── 7. عناصر متفرّقة ───────── */
/* وسيلة دفع غير متاحة الآن (pages/PaymentMethods.jsx): باهتة، «غير متاح» تحت اسمها، لا تُلمس ولا تتحرّك (كما في SyriaProxy) */
.tile.pm-off { opacity: .6; pointer-events: none; }
.pm-off-note { margin-top: calc(-1 * var(--s-1)); font: var(--t-caption); color: var(--text-2); }
/* «المظهر» في القائمة: الاسم في البداية واختياره في النهاية — لا «المظهر: تلقائي» */
.nav-item:has(> .nav-val) { width: 100%; }
.nav-val { margin-inline-start: auto; font: var(--t-callout); color: var(--text-3); }
/* ملفات الارتباط: شريط رفيع واحد */
.cc { box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgb(0 0 0 / .08); }
/* شارات الحالة في الجداول الباقية: زوايا أقلّ استدارة */
.chip { border-radius: 6px; }
.site-footer { background: var(--surface); }
html[data-end] { background-color: var(--surface); }
@media (prefers-reduced-motion: reduce) { .or-open, .buy-back { transition: none; } }
