/* =========================================================
   BNDR STORE — الأنماط العامة
   كل ألوان الهوية في قسم :root — عدّلها هنا فقط لتتغير في الموقع كله
   ========================================================= */

/* خط الهوية الإنجليزي Space Grotesk للحروف الإنجليزية والأرقام والرموز فقط.
   المسافة مستثناة عمدًا حتى تبقى المسافات بين الكلمات العربية بعرض خط Readex Pro */
@font-face {
  font-family: "BNDR Latin";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format("woff2");
  unicode-range: U+0021-009F, U+00A1-00FF, U+0131, U+0152-0153, U+2010-2027, U+2030-205E, U+20AC, U+2122, U+2212;
}

:root {
  /* ألوان الهوية — مأخوذة من شعار BNDR STORE */
  --brand: #90ce85;              /* أخضر البرسيم */
  --brand-strong: #a9dda0;
  --brand-ink: #111111;          /* لون النص فوق لون الهوية */

  /* الخلفيات والأسطح (أسود الشعار #111111) */
  --bg: #0c0c0c;
  --bg-elev: #111111;
  --surface: #191919;
  --surface-2: #222222;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* النصوص */
  --text: #ffffff;
  --muted: #a6a6a6;
  --faint: #6b6b6b;

  /* المقاسات */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --header-h: 76px;

  /* خطوط الهوية: Space Grotesk للإنجليزي والأرقام، و Readex Pro للعربي
     (المتصفح يختار الخط تلقائيًا حسب الحرف) */
  --font: "BNDR Latin", "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-brand: "BNDR Latin", "Readex Pro", system-ui, sans-serif;  /* خط اسم المتجر */
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- أساسيات ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -12%, rgba(144, 206, 133, 0.13), transparent 62%),
    radial-gradient(700px 420px at 0% 30%, rgba(255, 255, 255, 0.03), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1; }

/* ---------- الشريط العلوي ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand {
  direction: ltr;               /* الشعار ثم الاسم كما في الهوية */
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(45deg); }

.brand__mono {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-ink);
  background: linear-gradient(145deg, var(--brand-strong), var(--brand));
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-brand);
  line-height: 1;
  white-space: nowrap;
}
.brand__name {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text);
}
.brand__sub {
  margin-top: 4px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.62em;
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link.is-active { color: var(--brand-ink); background: var(--brand); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}
.btn--primary {
  color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-strong), var(--brand));
  box-shadow: 0 10px 30px -10px rgba(144, 206, 133, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(144, 206, 133, 0.8); }
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  transform: none;
  color: var(--muted);
  background: var(--surface-2);
  box-shadow: none;
}

/* ---------- القسم الرئيسي ---------- */
.hero {
  padding-block: 56px 96px;
}

.hero__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(144, 206, 133, 0.1);
  border: 1px solid rgba(144, 206, 133, 0.25);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(144, 206, 133, 0.2);
}

.hero__title {
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
}

/* بطاقة عرض المنتج */
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.showcase::before {
  /* إطار متدرّج بلون الهوية */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(144, 206, 133, 0.6), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.showcase__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(144, 206, 133, 0.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.showcase__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface);
  cursor: pointer;
}
.showcase__thumb.is-active { border-color: var(--brand); }
.showcase__thumb img { width: 100%; height: 100%; object-fit: cover; }

.showcase__info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase__name {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
}

.showcase__desc {
  color: var(--muted);
  font-size: 17px;
}

.showcase__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.showcase__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.showcase__features li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 6px;
  background: rgba(144, 206, 133, 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390ce85' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.showcase__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.price { display: flex; flex-direction: column; }
.price__label { font-size: 13px; color: var(--faint); font-weight: 600; }
.price__value { font-size: 32px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.price__currency { font-size: 16px; font-weight: 700; margin-inline-start: 4px; }

/* حالة "بانتظار البيانات" */
.placeholder-media {
  position: absolute;
  inset: 16px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 2px dashed var(--border-strong);
  border-radius: 16px;
  color: var(--faint);
  font-weight: 600;
  text-align: center;
}
.placeholder-media svg { width: 56px; height: 56px; opacity: 0.7; }

.is-placeholder { color: var(--faint) !important; }
.showcase__name.is-placeholder { opacity: 0.55; }

.skeleton {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}
.skeleton + .skeleton { margin-top: 10px; }
.skeleton--80 { width: 80%; }
.skeleton--60 { width: 60%; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- رأس الصفحات الفرعية ---------- */
.page-hero {
  padding-block: 64px 32px;
  text-align: center;
}
.page-hero__title {
  margin-top: 14px;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
}
.page-hero__lead {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.page-body { padding-bottom: 96px; }

.empty-state {
  max-width: 720px;
  margin-inline: auto;
  padding: 56px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
}
.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--brand);
  background: rgba(144, 206, 133, 0.1);
}
.empty-state__icon svg { width: 30px; height: 30px; }
.empty-state__title { font-size: 20px; font-weight: 700; }
.empty-state__text { margin-top: 6px; color: var(--muted); }

/* ---------- صفحة مجتمعنا ---------- */
.community-card {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding: 56px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(144, 206, 133, 0.12), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.community-card__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--brand);
  background: rgba(144, 206, 133, 0.1);
  border: 1px solid rgba(144, 206, 133, 0.25);
}
.community-card__icon svg { width: 38px; height: 38px; }
.community-card__title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.community-card__text { margin-top: 8px; color: var(--muted); font-size: 16px; }
.community-card__btn { margin-top: 28px; min-width: 200px; }

/* صفحة مجتمعنا: ألوان ديسكورد */
.community-card--discord {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(88, 101, 242, 0.22), transparent 70%),
    var(--bg-elev);
  border-color: rgba(88, 101, 242, 0.35);
}
.community-card--discord .community-card__icon {
  color: #fff;
  background: #5865f2;
  border-color: #5865f2;
  box-shadow: 0 12px 30px -10px rgba(88, 101, 242, 0.7);
}
.community-card--discord .btn--discord { background: #5865f2; border-color: #5865f2; box-shadow: 0 12px 30px -12px rgba(88, 101, 242, 0.8); }
.community-card--discord .btn--discord:hover { background: #4752c4; border-color: #4752c4; }
.community-card--discord .btn__discord-icon { color: #fff; }
/* زر ديسكورد: خلفية داكنة وأيقونة بلون ديسكورد */
.btn--discord {
  gap: 12px;
  color: #ffffff;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}
.btn--discord:hover {
  transform: translateY(-2px);
  background: #232323;
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 14px 34px -14px rgba(88, 101, 242, 0.45);
}
.btn__discord-icon { width: 24px; height: 24px; color: #5865f2; flex-shrink: 0; }

/* زر واتساب: نفس أسلوب زر ديسكورد بلون واتساب */
.btn--whatsapp {
  gap: 12px;
  color: #ffffff;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  background: #232323;
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow: 0 14px 34px -14px rgba(37, 211, 102, 0.4);
}
.btn__whatsapp-icon { width: 24px; height: 24px; color: #25d366; flex-shrink: 0; }

@media (max-width: 560px) {
  .community-card { padding: 40px 20px; }
  .community-card__btn { width: 100%; }
}

/* ---------- صفحة المنتج ---------- */
.product-page { padding-block: 28px 96px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--faint);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--text); }

.pp-head { margin: 28px 0 32px; }
.pp-head__title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.3; }
.pp-head__desc { margin-top: 8px; color: var(--muted); font-size: 17px; }

.pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas: "levels result" "desc result";
  grid-template-rows: auto 1fr;
  gap: 24px;
  align-items: start;
}
.pp-levels { grid-area: levels; }
.pp-result { grid-area: result; }
.pp-desc { grid-area: desc; }

/* وصف المنتج */
.pp-desc__text { margin: 10px 0 0; color: var(--muted); line-height: 1.8; font-size: 15px; }
.pp-desc__points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.pp-desc__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; }
.pp-desc__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(144, 206, 133, 0.15);
  color: var(--brand);
}
.pp-desc__tick svg { width: 13px; height: 13px; }
.pp-desc__sub { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 16px; }
.pp-desc__steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pp-desc__steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.pp-desc__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.panel__hint { margin: 4px 0 20px; color: var(--muted); font-size: 15px; }

.step { display: flex; align-items: center; gap: 12px; }
.step__num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--brand);
}
.step__title { font-size: 22px; font-weight: 700; }

/* أزرار المستويات */
.levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.level {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 76px;
  padding: 8px 4px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.level:hover { border-color: rgba(144, 206, 133, 0.6); transform: translateY(-2px); }
.level__num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.level__label { font-size: 12px; color: var(--faint); }
.level.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 10px 28px -12px rgba(144, 206, 133, 0.8);
}
.level.is-selected .level__label { color: rgba(17, 17, 17, 0.65); }

/* توضيح بداية مدة التنفيذ */
.timing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.timing-note[hidden] { display: none; }
.timing-note svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }

/* خيار اختيار عدد الجدران */
.walls-opt {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  gap: 14px;
}
.walls-opt[hidden], .walls-opt__row[hidden] { display: none; }
.walls-opt__toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.walls-opt__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.walls-opt__text { display: grid; gap: 2px; }
.walls-opt__text b { font-size: 15px; }
.walls-opt__text small { color: var(--muted); font-size: 13px; }
.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.walls-opt__toggle input:checked + .switch { background: var(--brand); }
.walls-opt__toggle input:checked + .switch::after { transform: translateX(-18px); }
[dir="ltr"] .walls-opt__toggle input:checked + .switch::after { transform: translateX(18px); }
.walls-opt__toggle input:focus-visible + .switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.walls-opt__toggle input:disabled + .switch { opacity: 0.6; }
.walls-opt__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.walls-opt__label { font-weight: 600; font-size: 14px; }
.walls-opt__unit { color: var(--muted); font-size: 13px; }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
}
.stepper__btn {
  width: 40px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.stepper__btn:hover { background: var(--surface); }
.stepper input {
  width: 84px;
  height: 42px;
  border: 0;
  border-inline: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--surface); }
.stepper input:disabled, .stepper__btn:disabled { opacity: 0.6; }

/* مستوى تحت الصيانة */
.level.is-maintenance:not(.is-selected) { border-style: dashed; border-color: rgba(240, 160, 32, 0.45); }
.level.is-maintenance:not(.is-selected) .level__num { opacity: 0.55; }
.level.is-maintenance .level__label { color: #f0a020; font-weight: 600; }
.level.is-maintenance.is-selected { background: #f0a020; border-color: #f0a020; color: #111; }
.level.is-maintenance.is-selected .level__label { color: rgba(17, 17, 17, 0.7); }
.btn--maintenance[disabled] { color: #f0a020; background: rgba(240, 160, 32, 0.1); border: 1px dashed rgba(240, 160, 32, 0.5); opacity: 1; }
.btn--maintenance svg { width: 18px; height: 18px; }

/* مقارنة قبل وبعد */
.compare {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.compare__arrow { width: 44px; color: var(--brand); }
.compare__arrow svg { width: 100%; height: auto; display: block; }
.compare.is-empty .compare__arrow { color: var(--faint); }
.compare__hint {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.wall { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wall-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wall-card img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.wall--after .wall-card {
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 6px rgba(144, 206, 133, 0.08), 0 20px 50px -20px rgba(144, 206, 133, 0.55);
}
.is-empty .wall-card,
.wall.is-empty .wall-card { border: 2px dashed var(--border-strong); box-shadow: none; background: var(--surface); }

.wall-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.wall-card__lv { font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1; color: var(--muted); }
.wall--after .wall-card__lv { color: var(--brand); }
.wall-card__note { font-size: 12px; color: var(--faint); }

.wall__cap { display: flex; flex-direction: column; align-items: center; line-height: 1.4; }
.wall__tag { font-weight: 700; font-size: 17px; color: var(--muted); }
.wall--after .wall__tag { color: var(--brand); }
.wall__lvl { font-size: 13px; color: var(--faint); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: rgba(144, 206, 133, 0.08);
  border: 1px solid rgba(144, 206, 133, 0.3);
}
.notice__icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.notice__icon svg { width: 100%; height: 100%; display: block; }

/* حقل بريد الحساب */
.account {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.field__label { font-size: 15px; font-weight: 600; }
.field__req { color: var(--brand); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;            /* 16px يمنع التكبير التلقائي في الجوال */
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__input::placeholder { color: var(--faint); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.28); }
.field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(144, 206, 133, 0.15);
}
.field__input.is-invalid { border-color: #e5726b; box-shadow: 0 0 0 4px rgba(229, 114, 107, 0.12); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; font-weight: 600; color: #f08a84; }
.field__error[hidden] { display: none; }

.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.summary__stats {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}
.duration { display: flex; flex-direction: column; }
.duration[hidden] { display: none; }
.duration__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}
.duration__value svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.summary__stats .price { padding-inline-end: 28px; border-inline-end: 1px solid var(--border); }
.summary__stats .price:only-child,
.summary__stats .price:has(+ .duration[hidden]) { padding-inline-end: 0; border-inline-end: 0; }

/* رابط بطاقة المنتج في الرئيسية */
.showcase__link { display: block; border-radius: 22px; }
.showcase__link .showcase__media { transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.showcase__link:hover .showcase__media { transform: translateY(-3px); border-color: rgba(144, 206, 133, 0.5); }

/* ---------- تسجيل الدخول في الشريط العلوي ---------- */
.site-header__end { display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn:hover, .cart-btn.is-active { color: var(--brand); border-color: var(--brand); }
.cart-btn__count {
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-ink);
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-btn__count[hidden] { display: none; }
.cart-btn.is-bump { animation: cartBump 0.5s var(--ease); }
@keyframes cartBump { 30% { transform: scale(1.18); } }
.nav-auth { display: flex; align-items: center; min-width: 40px; justify-content: flex-end; }

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  color: var(--brand);
  border: 1px solid rgba(144, 206, 133, 0.4);
  background: rgba(144, 206, 133, 0.08);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.auth-btn:hover { background: rgba(144, 206, 133, 0.16); border-color: var(--brand); }
.auth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  font-weight: 700;
  font-size: 17px;
  color: var(--brand-ink);
  background: linear-gradient(145deg, var(--brand-strong), var(--brand));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--skel { background: var(--surface-2); animation: shimmer 1.8s linear infinite; }
.avatar--lg { width: 64px; height: 64px; font-size: 26px; }

.account-menu { position: relative; }
.avatar-btn {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.avatar-btn:hover,
.avatar-btn[aria-expanded="true"] { border-color: var(--brand); }

.account-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  width: 250px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.account-menu__panel[hidden] { display: none; }
.account-menu__who {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.account-menu__who strong { font-size: 15px; }
.account-menu__who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; text-align: right; }
.account-menu__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
}
.account-menu__item:hover { background: rgba(255, 255, 255, 0.06); }
.account-menu__item--out { color: #f08a84; }
.account-menu__item--admin { color: var(--brand); font-weight: 600; }

/* ---------- أزرار إضافية ---------- */
.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }

.btn--google {
  width: 100%;
  gap: 12px;
  color: #ffffff;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn--google:hover:not([disabled]) { background: #232323; border-color: rgba(255, 255, 255, 0.3); }
.btn__google-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- صفحة تسجيل الدخول ---------- */
.auth-page { padding-block: 56px 96px; }
.auth-card {
  max-width: 460px;
  margin-inline: auto;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(144, 206, 133, 0.1), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.auth-card [hidden] { display: none !important; }
.auth-card__head { text-align: center; margin-bottom: 24px; }
.auth-card__logo { width: 56px; height: 56px; margin: 0 auto 14px; object-fit: contain; }
.auth-card__title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.auth-card__sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.auth-card .notice { margin: 0 0 20px; }
.notice--warn { background: rgba(240, 190, 90, 0.08); border-color: rgba(240, 190, 90, 0.35); color: #f3d28f; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.auth-tab:hover { color: var(--text); }
.auth-tab.is-active { color: var(--brand-ink); background: var(--brand); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
  color: var(--faint);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }

.auth-form { display: flex; flex-direction: column; }
.auth-form .field:first-child { margin-top: 12px; }
.field__input--rtl { text-align: right; }
.field__pw { position: relative; display: block; }
.field__eye {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--faint);
  cursor: pointer;
}
.field__eye:hover,
.field__eye[aria-pressed="true"] { color: var(--brand); }
.field__eye svg { width: 20px; height: 20px; }
.field__pw .field__input { padding-left: 48px; padding-right: 16px; }

.auth-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.auth-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-link--forgot { align-self: flex-start; margin-top: 12px; }
.auth-submit { margin-top: 22px; width: 100%; }
.auth-foot { margin-top: 18px; text-align: center; }

.form-msg {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.form-msg[hidden] { display: none; }
.form-msg--error { color: #f6a49f; background: rgba(229, 114, 107, 0.1); border: 1px solid rgba(229, 114, 107, 0.35); }
.form-msg--warn { color: #f3d28f; background: rgba(240, 190, 90, 0.08); border: 1px solid rgba(240, 190, 90, 0.35); }
.form-msg--ok { color: var(--brand-strong); background: rgba(144, 206, 133, 0.08); border: 1px solid rgba(144, 206, 133, 0.3); }

/* ---------- صفحة حسابي ---------- */
.acct-loading { max-width: 420px; margin-top: 40px; }
.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  align-items: start;
}
.acct-who { display: flex; align-items: center; gap: 14px; }
.acct-who__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.acct-who__name { font-size: 19px; font-weight: 700; }
.acct-who__email { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.acct-game { display: flex; flex-direction: column; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.acct-game .btn { margin-top: 16px; }
.acct-signout { width: 100%; margin-top: 12px; color: #f08a84; }

.acct-orders__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.orders { display: grid; gap: 12px; }
.order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.order--skel { display: block; }
.order__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.5; }
.order__title { font-size: 16px; font-weight: 700; }
.order__levels { font-size: 15px; color: var(--text); }
.order__meta { font-size: 13px; color: var(--faint); }
.order__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.order__price { font-size: 20px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.order__price .price__currency { font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--pending { color: #f3c96b; background: rgba(243, 201, 107, 0.1); }
.badge--awaiting_payment { color: #c9a7ff; background: rgba(201, 167, 255, 0.1); }
.badge--in_progress { color: #7db7ff; background: rgba(125, 183, 255, 0.1); }
.badge--done { color: var(--brand); background: rgba(144, 206, 133, 0.12); }
.badge--cancelled { color: #f08a84; background: rgba(240, 138, 132, 0.1); }

.orders__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}
.orders__empty strong { font-size: 17px; }
.orders__empty span { color: var(--muted); font-size: 15px; }
.orders__empty .btn { margin-top: 14px; }

/* ---------- التقييمات ---------- */
.stars { display: inline-flex; gap: 2px; flex-shrink: 0; }
.star { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.16); }
.star svg, .star-pick svg, .btn__star svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.star.is-on { color: #f5c451; }
.star { position: relative; }
.star__fill { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; overflow: hidden; color: #f5c451; }
.star__fill svg { position: absolute; top: 0; right: 0; width: auto; height: 100%; aspect-ratio: 1; }
.stars--sm .star { width: 15px; height: 15px; }

.rating-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.rating-chip[hidden] { display: none; }
.rating-chip:hover { color: var(--text); }
.rating-chip__score { font-weight: 700; color: var(--text); }
.rating-chip__count { font-size: 14px; }
.showcase__name + .rating-chip { margin-top: -8px; }
.pp-head .rating-chip { margin-top: 8px; }

.reviews { margin-top: 64px; scroll-margin-top: calc(var(--header-h) + 16px); }
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
}
.reviews__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.3; }
.reviews__sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.reviews__score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.reviews__avg { font-size: 38px; font-weight: 700; line-height: 1; color: var(--text); }
.reviews__score-side { display: flex; flex-direction: column; gap: 4px; }
.reviews__count { font-size: 13px; color: var(--muted); }

.reviews__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.review--skel { min-height: 150px; }
.review__top { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 40px; height: 40px; font-size: 16px; }
.review__who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.review__name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__date { font-size: 12px; color: var(--faint); }
.review__text { color: var(--text); font-size: 15px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.review__tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(144, 206, 133, 0.1);
}
.reviews__more { margin-top: 20px; text-align: center; }

.reviews__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-elev);
}
.reviews__empty-icon { width: 36px; height: 36px; margin-bottom: 8px; color: #f5c451; }
.reviews__empty-icon svg { width: 100%; height: 100%; fill: currentColor; }
.reviews__empty strong { font-size: 17px; }
.reviews__empty span { color: var(--muted); font-size: 15px; }

/* تقييم الطلب في صفحة «حسابي» */
.order { flex-wrap: wrap; }
.order__review { flex-basis: 100%; padding-top: 14px; border-top: 1px solid var(--border); }
.order__review:empty { display: none; }
.order__reviewed { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn__star { width: 18px; height: 18px; color: #f5c451; }

.review-form { display: flex; flex-direction: column; }
.review-form__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.star-input { display: flex; gap: 4px; }
.star-pick {
  width: 36px;
  height: 36px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.star-pick:hover { transform: scale(1.12); }
.star-pick.is-on { color: #f5c451; }
.star-word { font-size: 14px; font-weight: 600; color: #f5c451; }
.field__textarea { min-height: 96px; padding: 12px 16px; text-align: right; resize: vertical; line-height: 1.7; }
.field__opt { color: var(--faint); font-weight: 400; }
.review-form__actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- لوحة التحكم ---------- */
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 8px 0 24px;
}
.admin-head__sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 15px; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(144, 206, 133, 0.6);
  animation: live 2s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(144, 206, 133, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(144, 206, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(144, 206, 133, 0); }
}
.admin-head .btn svg { width: 18px; height: 18px; }
.admin-head .btn.is-on { color: var(--brand); border-color: rgba(144, 206, 133, 0.5); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.astat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.astat--money { cursor: default; }
button.astat:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.astat.is-active { border-color: currentColor; }
.astat__label { font-size: 14px; color: var(--muted); }
.astat__value { font-size: 30px; font-weight: 700; line-height: 1.2; }
.astat__value small { font-size: 15px; font-weight: 600; color: var(--muted); }
.astat--pending .astat__value { color: #f3c96b; }
.astat--in_progress .astat__value { color: #7db7ff; }
.astat--done .astat__value, .astat--money .astat__value { color: var(--brand); }
.astat--pending.is-active { color: #f3c96b; }
.astat--in_progress.is-active { color: #7db7ff; }
.astat--done.is-active { color: var(--brand); }

.admin-tabs { max-width: 360px; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.is-active { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.chip__n {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}
.chip.is-active .chip__n { background: rgba(17, 17, 17, 0.15); }

.admin-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 360px;
  min-width: 220px;
}
.admin-search svg { position: absolute; right: 14px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.admin-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.admin-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(144, 206, 133, 0.15); }

.aorders { display: grid; gap: 12px; }
.aorder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--border-strong);
}
.aorder--pending { border-inline-start-color: #f3c96b; }
.aorder--in_progress { border-inline-start-color: #7db7ff; }
.aorder--done { border-inline-start-color: var(--brand); }
.aorder--cancelled { border-inline-start-color: #f08a84; opacity: 0.75; }
.aorder.is-new { animation: newOrder 1.2s var(--ease) 3; }
@keyframes newOrder {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 4px rgba(243, 201, 107, 0.35); }
}

.aorder__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.aorder__id { font-weight: 700; font-size: 16px; }
.aorder__new {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-ink);
  background: #f3c96b;
}
.aorder__time { margin-inline-start: auto; font-size: 13px; color: var(--faint); }

.aorder__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 16px 24px;
  align-items: start;
}
.aorder__main { display: flex; flex-direction: column; gap: 2px; line-height: 1.6; }
.aorder__title { font-size: 16px; }
.aorder__levels { font-size: 15px; }
.aorder__levels b { color: var(--brand); }
.aorder__meta { font-size: 14px; color: var(--muted); }
.aorder__price { font-weight: 700; color: var(--text); }

.aorder__info { display: grid; gap: 8px; margin: 0; }
.aorder__info > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 10px; }
.aorder__info dt { font-size: 13px; color: var(--faint); }
.aorder__info dd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 15px; min-width: 0; }
.aorder__email { overflow-wrap: anywhere; }
.aorder__muted { color: var(--faint); font-size: 13px; }
.aorder__tools { display: inline-flex; gap: 4px; }

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn--wa { color: #25d366; }
.icon-btn--danger { margin-inline-start: auto; color: #f08a84; }
.icon-btn[disabled] { opacity: 0.5; cursor: wait; }

.aorder__status {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.seg {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg:hover:not([disabled]) { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.seg[disabled] { cursor: default; }
.seg.is-on { color: var(--brand-ink); }
.seg--pending.is-on { background: #f3c96b; }
.seg--in_progress.is-on { background: #7db7ff; }
.seg--done.is-on { background: var(--brand); }
.seg--cancelled.is-on { background: #f08a84; }

.areview .aorder__head strong { font-size: 15px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.toast[hidden] { display: none; }
.toast--ok { border-color: rgba(144, 206, 133, 0.5); }
.toast--error { border-color: rgba(229, 114, 107, 0.6); color: #f6a49f; }
.toast--new { border-color: #f3c96b; color: #f3c96b; }

.admin-denied { margin-top: 40px; }

/* ---------- الدفع بالتحويل البنكي ---------- */
.badge--pay-unpaid { color: #f3c96b; background: rgba(243, 201, 107, 0.08); }
.badge--pay-submitted { color: #c9a7ff; background: rgba(201, 167, 255, 0.1); }
.badge--pay-paid { color: var(--brand); background: rgba(144, 206, 133, 0.12); }

.pay {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.pay__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay__head > div:not(.pay__amount) { display: flex; flex-direction: column; flex: 1; min-width: 180px; line-height: 1.5; }
.pay__head strong { font-size: 17px; }
.pay__head span { font-size: 13px; color: var(--muted); }
.pay__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(144, 206, 133, 0.1);
}
.pay__icon svg { width: 24px; height: 24px; }
.pay__amount { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.pay__amount span { font-size: 12px; color: var(--faint); }
.pay__amount strong { font-size: 26px; color: var(--brand); }

.pay__bank {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.pay__bank > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.pay__bank > div + div { border-top: 1px solid var(--border); }
.pay__bank dt { font-size: 13px; color: var(--faint); }
.pay__bank dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-weight: 600; min-width: 0; }
.pay__mono { font-family: var(--font); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.pay .icon-btn.is-done { color: var(--brand); border-color: var(--brand); }
.pay__note { font-size: 13px; color: var(--muted); }
.pay__form { display: flex; flex-direction: column; }
.pay__form .field { margin-top: 0; }
.pay__form .btn { margin-top: 12px; }
.pay__wa { align-self: flex-start; }
.pay__wa .btn__whatsapp-icon { width: 20px; height: 20px; }
.pay__wa .btn__whatsapp-icon svg { width: 100%; height: 100%; display: block; }
.pay__hint { font-size: 13px; color: var(--faint); }

.pay__state, .pay--paid { display: flex; align-items: center; gap: 12px; }
.pay__state > div, .pay--paid > div { display: flex; flex-direction: column; line-height: 1.6; }
.pay__state strong, .pay--paid strong { font-size: 16px; }
.pay__state span, .pay--paid span { font-size: 14px; color: var(--muted); }
.pay__state-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.pay__state-icon svg { width: 20px; height: 20px; }
.pay--submitted .pay__state-icon { color: #c9a7ff; background: rgba(201, 167, 255, 0.12); }
.pay--soon .pay__state-icon { color: #f3c96b; background: rgba(243, 201, 107, 0.1); }
.pay--paid { border-color: rgba(144, 206, 133, 0.4); }
.pay--cancelled { border-color: rgba(240, 138, 132, 0.4); }
.pay--cancelled .pay__state-icon { color: #f08a84; background: rgba(240, 138, 132, 0.12); }
.pay--paid .pay__state-icon { color: var(--brand-ink); background: var(--brand); }

.order-done__actions--after { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.order-done__actions--after .btn { min-height: 44px; font-size: 15px; }

/* الدفع في صفحة «حسابي» */
.order__badges { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.order__pay { flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--border); }
.order__pay .pay { margin-top: 0; }

/* الدفع في لوحة التحكم */
.astat--awaiting_payment .astat__value, .astat--awaiting_payment.is-active { color: #c9a7ff; }
.aorder--awaiting_payment { border-inline-start-color: #c9a7ff; }
.seg--awaiting_payment.is-on { background: #c9a7ff; }
.aorder__del { margin-inline-start: 0; }
.btn--xs { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); }
.aorder__paid { color: var(--brand); font-weight: 600; }
.aorder__claim { color: #c9a7ff; font-size: 14px; }
.aorder__claim b { color: var(--text); }

/* ---------- السلة ---------- */
.btn > svg:not([class]) { width: 20px; height: 20px; flex-shrink: 0; }
.btn--in-cart { color: var(--brand); border-color: rgba(144, 206, 133, 0.5); }
.btn--in-cart__rm { color: #ff8a80; text-decoration: underline; text-underline-offset: 3px; }
.btn--in-cart:hover { border-color: rgba(255, 138, 128, 0.6); }
.level.is-in-cart:not(.is-selected) { border-color: rgba(144, 206, 133, 0.45); }
.level.is-in-cart:not(.is-selected) .level__label::after { content: " ✓"; color: var(--brand); }

.cart-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  background: rgba(144, 206, 133, 0.08);
  border: 1px solid rgba(144, 206, 133, 0.3);
}
.cart-note b { color: var(--brand); }

.empty-state__btn { margin-top: 20px; }

.cart-grid, .checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cart-item__img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.cart-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.6; }
.cart-item__title { font-size: 16px; }
.cart-item__levels { font-size: 15px; }
.cart-item__levels b { color: var(--brand); }
.cart-item__dur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cart-item__dur svg { width: 15px; height: 15px; color: var(--brand); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item__side .icon-btn--danger { margin-inline-start: 0; }
.cart-item__price { font-size: 20px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.cart-list__more { align-self: flex-start; margin-top: 4px; }

.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.cart-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.cart-summary__total { padding-top: 12px; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.cart-summary__total strong { font-size: 28px; color: var(--brand); }
.cart-summary__note { font-size: 13px; color: var(--muted); }
.cart-summary__btn { width: 100%; margin-top: 4px; }
.cart-summary__pay { text-align: center; font-size: 13px; color: var(--faint); }
.cart-summary__back { align-self: center; }

/* ---------- إتمام الطلب ---------- */
.checkout-main { display: flex; flex-direction: column; gap: 16px; }
.checkout-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.checkout-who > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.checkout-who > div span { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; text-align: right; }

.pay-methods { display: grid; gap: 10px; margin-top: 16px; }
.pay-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  cursor: pointer;
}
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method.is-selected { border-color: var(--brand); background: rgba(144, 206, 133, 0.06); }
.pay-method__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(144, 206, 133, 0.1);
}
.pay-method__icon svg { width: 22px; height: 22px; }
.pay-method__text { display: flex; flex-direction: column; flex: 1; line-height: 1.6; }
.pay-method__text span { font-size: 13px; color: var(--muted); }
.pay-method__check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-ink);
  background: var(--brand);
}
.pay-method__check svg { width: 14px; height: 14px; }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }

.pay-method:not(.is-selected) .pay-method__check { color: transparent; background: transparent; border: 2px solid var(--border-strong); }
.checkout-main [hidden] { display: none !important; }

.pay-methods.is-invalid .pay-method { border-color: #e5534b; }

.pay__bank .pay__bankname { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.pay__banklogo { width: 40px; height: 40px; padding: 4px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }

/* البطايق الرقمية */
.cards { display: grid; gap: 12px; margin-top: 14px; }
.cards .receipt { margin-top: 0; }
.cards__types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cards__type {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.cards__type input { position: absolute; opacity: 0; pointer-events: none; }
.cards__type strong { font-size: 14.5px; }
.cards__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cards__text small { font-size: 13px; color: var(--muted); }
.cards__logo { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #fff; }
.cards__logo svg { width: 32px; height: 32px; }
.cards__logo--steam { background: linear-gradient(160deg, #1b2838, #2a6f9e); }
.cards__logo--stc { background: #4f008c; font-size: 21px; font-weight: 700; line-height: 1; padding-bottom: 3px; }
.cards__type.is-selected { border-color: var(--brand); background: rgba(144, 206, 133, 0.06); }
.cards__type:has(.cards__logo--steam) { --card: #66c0f4; --card-bg: rgba(42, 111, 158, 0.28); }
.cards__type:has(.cards__logo--stc) { --card: #a35be0; --card-bg: rgba(79, 0, 140, 0.34); }
.cards__type.is-selected:has(.cards__logo) { border-color: var(--card); background: var(--card-bg); }
.cards__type:has(.cards__logo):has(input:focus-visible) { outline-color: var(--card); }
.cards__type:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.cards__code textarea { height: auto; min-height: 84px; padding-block: 12px; resize: vertical; line-height: 1.7; letter-spacing: 1px; }
.aorder__method { font-size: 13px; font-weight: 600; color: var(--text); }
.viewer__codes { width: 100%; display: grid; gap: 8px; margin-bottom: 12px; }
.viewer__code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-elev); font-size: 18px; font-weight: 700; letter-spacing: 1px; word-break: break-all; }
@media (max-width: 480px) { .cards__types { grid-template-columns: 1fr; } }

/* ---------- الكلانات ---------- */
.clans-banner { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 20px 24px; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--bg-elev); transition: border-color 0.2s; }
.clans-banner:hover { border-color: var(--brand); }
.clans-banner__icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; color: var(--brand); background: rgba(144, 206, 133, 0.1); }
.clans-banner__icon svg { width: 34px; height: 34px; }
.clans-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.clans-banner__text strong { font-size: 20px; }
.clans-banner__text span { color: var(--muted); font-size: 15px; }
.clans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.clan { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-elev); }
.clan__img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 0; border: 0; color: var(--faint); background: var(--surface); cursor: zoom-in; overflow: hidden; }
.clan__img img { width: 100%; height: 100%; object-fit: cover; }
.clan__img svg { width: 46px; height: 46px; }
.clan__flag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #111; background: var(--brand); }
.clan--reserved .clan__flag { background: #f0a020; }
.clan--sold .clan__flag, .clan--hidden .clan__flag { color: #fff; background: #555; }
.clan--reserved .clan__img img { filter: grayscale(0.7) brightness(0.7); }
.clan__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px; }
.clan__name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 18px; font-weight: 700; }
.clan__tag { font-size: 13px; font-weight: 600; color: var(--muted); }
.clan__facts { margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.clan__facts div { display: flex; justify-content: space-between; gap: 12px; }
.clan__facts dt { color: var(--muted); }
.clan__facts dd { margin: 0; font-weight: 600; }
.clan__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.clan__price { font-size: 24px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.clan__price small { font-size: 14px; }
.clan-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-elev); }
.clan-form .field { margin: 0; }
.clan-form__wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.clan-form__preview { width: 96px; height: 60px; border-radius: 10px; object-fit: cover; }
.clan-form__profit { margin: 0; color: var(--muted); }
.clan-form__profit:empty { display: none; }
.clan-form__profit b { color: var(--brand); }
.clan-form [hidden] { display: none; }
.admin-tabs { grid-template-columns: repeat(3, 1fr); }
.clan__buy .btn { flex: none; padding: 0 14px; white-space: nowrap; gap: 4px; }
#clans-home .clans-grid { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(220px, 30%)), 1fr)); }
#clans-home .clans-grid:empty { display: none; }
.site-footer__doc { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin-top: 10px; }
.site-footer__doc img { height: 36px; width: auto; }
.verify-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.acct-verify { display: block; margin-bottom: 14px; }
.guide__ai-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.admin-head__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.action-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; }
.action-icon svg { width: 40px; height: 40px; }
.action-icon--ok { color: var(--brand); background: rgba(144, 206, 133, 0.12); }
.action-icon--bad { color: #f08a84; background: rgba(229, 114, 107, 0.12); }
.action-icon--key { color: var(--brand); background: rgba(144, 206, 133, 0.12); }
#auth-card > .btn { display: flex; width: 100%; margin-top: 12px; }
.community-card__mail { margin-top: 18px; font-size: 14px; color: var(--muted); }
.community-card__mail a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.social--email .social__icon { color: var(--brand); }
.social--email:hover { border-color: rgba(144, 206, 133, 0.55); }
.clans-sub { margin: 6px 0 0; color: var(--muted); }
.clan-form__file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.clan-form__file:focus-visible + .clan-form__preview { outline: 2px solid var(--brand); }
h2.clan-form__wide { margin: 0; font-size: 20px; }
.clan-zoom { padding: 12px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--bg-elev); max-width: min(94vw, 1000px); }
.clan-ask { width: min(92vw, 440px); padding: 24px; color: inherit; border: 1px solid var(--border-strong); border-radius: 20px; background: var(--bg-elev); }
.clan-ask__title { margin: 0; font-size: 22px; }
.clan-ask__sub { margin: 6px 0 0; color: var(--muted); }
.clan-ask__acts { display: flex; gap: 10px; margin-top: 22px; }
.clan-ask__acts .btn--primary { flex: 1; }
.clan-ask::backdrop { background: rgba(0, 0, 0, 0.75); }
.clan-zoom::backdrop { background: rgba(0, 0, 0, 0.8); }
.clan-zoom img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto 12px; border-radius: 10px; }
.clan__count { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 3px 12px; border-radius: 999px; font-size: 13px; color: #fff; background: rgba(0, 0, 0, 0.65); }
.clan-zoom__bar { display: flex; align-items: center; justify-content: center; gap: 12px; }
.clan-zoom__n { min-width: 56px; text-align: center; color: var(--muted); }
.clan-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.clan-photos:empty { display: none; }
.clan-photo { position: relative; width: 120px; }
.clan-photo img { display: block; width: 120px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-strong); }
.clan-photo:first-child img { border-color: var(--brand); }
.clan-photo__acts { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; }
.clan-photo__acts button { padding: 4px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.clan-photo__acts button:last-child { color: #f08a84; }
.clan-photo__acts span { padding: 4px; color: var(--brand); }
.clan__admin { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .clans-banner { flex-wrap: wrap; padding: 18px; } .clans-banner .btn { width: 100%; } }

.co-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-items li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 15px; }
.co-items li span { display: flex; flex-direction: column; line-height: 1.5; }
.co-items small { font-size: 13px; color: var(--muted); }
.co-items b { white-space: nowrap; }

.checkout-done { max-width: 720px; margin-inline: auto; }

/* ---------- بيانات البنك والإيصال ---------- */
.co-bank { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.pay__due {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(144, 206, 133, 0.08);
  border: 1px solid rgba(144, 206, 133, 0.3);
  font-size: 15px;
}
.pay__due strong { font-size: 24px; color: var(--brand); line-height: 1.2; }

.receipt { margin-top: 12px; }
.receipt [hidden] { display: none !important; }
.receipt__drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 2px dashed var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.receipt__drop:hover { border-color: var(--brand); background: rgba(144, 206, 133, 0.05); }
.receipt__drop:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.receipt__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(144, 206, 133, 0.1);
}
.receipt__icon svg { width: 22px; height: 22px; }
.receipt__text { display: flex; flex-direction: column; line-height: 1.6; }
.receipt__text span { font-size: 13px; color: var(--muted); }
.receipt.is-busy .receipt__drop { opacity: 0.6; pointer-events: none; }
.receipt.is-busy .receipt__text strong::after { content: " …"; }

.receipt__chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(144, 206, 133, 0.45);
}
.receipt__thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: var(--brand);
  background: var(--surface-2);
}
.receipt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipt__thumb svg { width: 26px; height: 26px; }
.receipt__info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.5; }
.receipt__name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.receipt__size { font-size: 13px; color: var(--brand); }

.pay [data-pay-send] { width: 100%; }
.link-btn--danger { color: #f08a84; }
.link-btn--danger:hover { color: #f6a49f; }

/* عارض الإيصال في لوحة التحكم */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.viewer__box {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.viewer__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.viewer__tools { display: flex; gap: 8px; margin-inline-start: auto; }
.viewer__body { flex: 1; min-height: 200px; overflow: auto; padding: 16px; display: grid; place-items: center; background: var(--surface); }
.viewer__img { max-width: 100%; height: auto; border-radius: 10px; }
.viewer__pdf { width: 100%; height: 70vh; border: 0; border-radius: 10px; background: #fff; }

/* نافذة سبب الإلغاء */
.reason { width: min(480px, 100%); }
.reason .viewer__head .icon-btn { margin-inline-start: auto; }
.reason__body { display: grid; gap: 10px; padding: 16px; }
.reason__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reason__chips .chip { font-size: 13px; }
.reason__text { resize: vertical; min-height: 84px; font: inherit; line-height: 1.6; }
.reason__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.btn--danger { color: #fff; background: #d9443b; border-color: #d9443b; }
.btn--danger:hover { background: #c23a32; border-color: #c23a32; }
.aorder__reason { color: #ff9a92; font-size: 14px; }

/* ترقيات الطلب في لوحة التحكم */
.aorder__items { list-style: none; margin: 2px 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.aorder__items b { color: var(--brand); }

/* رسالة نجاح الطلب في صفحة المنتج */
.order-done {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 14px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(144, 206, 133, 0.08);
  border: 1px solid rgba(144, 206, 133, 0.35);
}
.order-done__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-ink);
  background: var(--brand);
}
.order-done__icon svg { width: 20px; height: 20px; }
.order-done__text { display: flex; flex-direction: column; line-height: 1.6; }
.order-done__text strong { font-size: 17px; }
.order-done__text span { font-size: 14px; color: var(--muted); }
.order-done__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.order-done__actions .btn { min-height: 46px; padding: 0 22px; font-size: 16px; }

/* ---------- التذييل ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.6);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 48px 36px;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.footer-col--about .brand { margin-bottom: 18px; }
.nowrap { white-space: nowrap; }
.footer-about { max-width: 420px; color: var(--muted); font-size: 15px; line-height: 1.9; }

.site-footer .brand__logo,
.site-footer .brand__mono { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.site-footer .brand__name { font-size: 18px; }
.site-footer .brand__sub { font-size: 8px; }

.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.site-footer__links a { transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--brand); }

/* مربع الموافقة على سياسات الموقع */
.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.agree__box svg { width: 14px; height: 14px; }
.agree input:checked + .agree__box { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.agree input:focus-visible + .agree__box { outline: 2px solid var(--brand); outline-offset: 2px; }
.agree a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.agree.is-invalid { border-color: #e5534b; }
.agree.is-invalid .agree__box { border-color: #e5534b; }

/* صفحات السياسات */
.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto 20px;
}
.policy-tabs a {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.policy-tabs a:hover { color: var(--text); }
.policy-tabs a[aria-current="page"] { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.policy {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  line-height: 1.9;
  font-size: 15.5px;
}
.policy__updated { color: var(--faint); font-size: 13px; margin: 0 0 8px; }
.policy__notice {
  margin: 4px 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(240, 160, 32, 0.45);
  border-inline-start: 4px solid #f0a020;
  border-radius: 12px;
  background: rgba(240, 160, 32, 0.08);
}
.policy__notice p { margin: 0 0 8px; color: var(--text); }
.policy__notice--danger { border-color: rgba(229, 83, 75, 0.5); border-inline-start-color: #e5534b; background: rgba(229, 83, 75, 0.08); }

/* صفحة طريقة مشاهدة البث */
.guide__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #000;
}
.guide__steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 22px 0 18px !important; gap: 14px !important; }
.guide__steps > li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 18px;
  padding-inline-start: 66px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.guide__steps > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 16px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}
.guide__steps > li::marker { content: ""; }
.guide__steps h2 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-size: 17px !important; }
.guide__steps p { margin: 0 0 6px; }
.guide__steps ul { margin-top: 6px; }
.guide__btn { margin-top: 8px; text-decoration: none !important; color: #fff !important; }
.guide kbd {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  direction: ltr;
}
.policy__notice p:last-child { margin: 0; }
.policy__lead { color: var(--text); font-size: 16.5px; margin: 0; }
.policy h2 {
  margin: 28px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 18px;
  color: var(--text);
}
.policy p { color: var(--muted); margin: 0 0 10px; }
.policy ul, .policy ol { margin: 0; padding-inline-start: 22px; color: var(--muted); display: grid; gap: 6px; }
.policy li::marker { color: var(--brand); }
.policy b { color: var(--text); font-weight: 600; }
.policy a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.socials { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 240px; }
.social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.social:hover { transform: translateY(-2px); background: var(--surface-2); }
.social__icon { width: 22px; height: 22px; flex-shrink: 0; }
.social__icon svg { width: 100%; height: 100%; display: block; }
.social--whatsapp .social__icon { color: #25d366; }
.social--whatsapp:hover { border-color: rgba(37, 211, 102, 0.5); }
.social--discord .social__icon { color: #5865f2; }
.social--discord:hover { border-color: rgba(88, 101, 242, 0.55); }

.site-footer__bottom {
  padding-block: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px;
  }
  .pp-grid { grid-template-columns: 1fr; grid-template-areas: "levels" "result" "desc"; grid-template-rows: auto; }
  .acct-grid { grid-template-columns: 1fr; }
  .reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats .astat--money { grid-column: 1 / -1; }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .aorder__body { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .brand { gap: 8px; }
  .brand__logo, .brand__mono { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 8px; }
  .nav { gap: 2px; }
  .nav__link { padding: 6px 8px; font-size: 13.5px; white-space: nowrap; }
  .hero { padding-block: 32px 64px; }
  .hero__head { margin-bottom: 24px; }
  .showcase { padding: 14px; border-radius: 22px; }
  .showcase__buy { flex-direction: column; align-items: stretch; }
  .showcase__buy .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 36px 28px; }
  .footer-col--about { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .policy { padding: 20px; font-size: 15px; }
  .socials { max-width: none; }
  .panel { padding: 18px; border-radius: 22px; }
  .levels { gap: 8px; }
  .level { min-height: 64px; }
  .level__num { font-size: 22px; }
  .compare { gap: 10px; }
  .compare__arrow { width: 30px; }
  .summary { flex-direction: column; align-items: stretch; }
  .summary .btn { width: 100%; }
  .site-header__end { gap: 6px; }
  .auth-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .cart-btn { width: 36px; height: 36px; }
  .auth-btn__text { display: none; }
  .avatar { width: 36px; height: 36px; font-size: 15px; }
  .avatar--lg { width: 56px; height: 56px; font-size: 22px; }
  .nav-auth { min-width: 36px; }
  .auth-page { padding-block: 28px 64px; }
  .auth-card { padding: 28px 18px; border-radius: 22px; }
  .order { flex-direction: column; align-items: stretch; }
  .order__side { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .order-done__actions .btn { flex: 1; }
  .reviews { margin-top: 44px; }
  .reviews__list { grid-template-columns: 1fr; }
  .reviews__score { width: 100%; }
  .review-form__actions .btn { flex: 1; }
  .admin-search { max-width: none; min-width: 0; flex-basis: 100%; }
  .pay { padding: 14px; }
  .pay__bank > div { grid-template-columns: 84px minmax(0, 1fr); }
  .pay__wa { align-self: stretch; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .cart-item__img { width: 64px; height: 64px; }
  .cart-item__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-note .btn { width: 100%; }
  .aorder { padding: 16px 14px; }
  .aorder__time { margin-inline-start: 0; flex-basis: 100%; order: 2; }
  .aorder__del { order: 1; margin-inline-start: auto; }
  .aorder__info > div { grid-template-columns: 76px minmax(0, 1fr); }
  .aorder__status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .astat__value { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
