/* ===== صاعقة TV — هوية داكنة + سماوي + برق ===== */
:root {
  --bg: #07111c;
  --bg-2: #0a1726;
  --surface: #0f1f31;
  --surface-2: #15293f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(0, 217, 255, 0.35);
  --cyan: #00d9ff;
  --cyan-2: #0091ff;
  --gold: #ffc93c;
  --text: #eef5fb;
  --text-dim: #93a8be;
  --danger: #ff4d6a;
  --success: #1ee39a;
  --radius: 16px;
  --header-h: 68px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
html, body { max-width: 100%; overflow-x: clip; }

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, .brand { font-family: "Cairo", "Tajawal", sans-serif; line-height: 1.4; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
/* الصفحة الرئيسية: الشريط الثابت للبحث والتصنيفات يحتاج مسافة إضافية عند الانتقال للأقسام */
body:has(.store-toolbar) section[id] { scroll-margin-top: calc(var(--header-h) + 140px); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0 8px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(21px, 3.4vw, 28px); font-weight: 800; }
.section-head p { color: var(--text-dim); font-size: 15px; margin-top: 6px; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 10px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
/* الخلفية الضبابية في طبقة مستقلة: لو وُضع backdrop-filter على الرأس نفسه لصار "حاوية" لكل عنصر fixed بداخله،
   فتنحبس قائمة الجوال الجانبية والطبقة الداكنة في ارتفاع الرأس وتظهر خلف محتوى الصفحة */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(7, 17, 28, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; white-space: nowrap; }
.bolt { display: inline-block; filter: drop-shadow(0 0 6px var(--cyan)); animation: pulse-bolt 2.8s ease-in-out infinite; }
@keyframes pulse-bolt {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px var(--cyan)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 12px var(--gold)); }
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 14px; font-weight: 700; color: var(--text-dim);
  padding: 8px 10px; border-radius: 10px; transition: color .2s, background .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(0, 217, 255, 0.08); }
.nav-close { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 800; font-size: 14px;
  background: rgba(0, 217, 255, 0.1); border: 1px solid var(--border-strong); color: var(--cyan);
}
.cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold); color: #1c1000; font-size: 12px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 20px;
}
.nav-overlay { display: none; }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 84vw); z-index: 320;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 18px 16px 24px;
    background: var(--bg-2); border-left: 1px solid var(--border); box-shadow: -20px 0 40px rgba(0, 0, 0, .45);
    transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; visibility: hidden;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { font-size: 16px; padding: 13px 14px; min-height: 48px; display: flex; align-items: center; }
  .nav-close {
    display: flex; align-self: flex-start; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 18px; cursor: pointer;
  }
  .nav-overlay { position: fixed; inset: 0; z-index: 310; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; pointer-events: none; display: block; }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; text-align: center; padding: 70px 20px 60px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 217, 255, 0.16), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255, 201, 60, 0.10), transparent 40%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.hero::before {
  content: "⚡"; position: absolute; font-size: 240px; opacity: .04; left: -30px; top: -40px; transform: rotate(-12deg); pointer-events: none;
}
.hero h1 {
  font-size: clamp(27px, 5.2vw, 46px); font-weight: 900;
  background: linear-gradient(90deg, #fff, #bfeeff); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fade-up .6s ease both;
}
.hero p { color: var(--text-dim); font-size: clamp(15px, 2.2vw, 19px); margin: 10px auto 26px; max-width: 620px; animation: fade-up .6s .1s ease both; }
.hero .btn { animation: fade-up .6s .2s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== Banner ===== */
.banner-section { padding-top: 8px; }
.banner-section h2 { text-align: center; font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin-bottom: 16px; }
.banner-frame {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong);
  aspect-ratio: 16 / 9; background: var(--surface-2);
  box-shadow: 0 0 40px rgba(0, 145, 255, 0.18);
}
.banner-frame .main-banner-image { width: 100%; height: 100%; object-fit: cover; }
.banner-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 217, 255, .25), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 201, 60, .15), transparent 45%),
    linear-gradient(135deg, #0b1a2b, #10263c);
}
.banner-fallback .bolt-big { font-size: clamp(40px, 7vw, 64px); filter: drop-shadow(0 0 16px var(--cyan)); animation: pulse-bolt 2.8s infinite; }
.banner-fallback strong { font-family: "Cairo"; font-size: clamp(22px, 4vw, 34px); font-weight: 900; }
.banner-fallback span { color: var(--text-dim); font-size: 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px;
  border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; text-align: center; line-height: 1.3; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); color: #03121c; box-shadow: 0 8px 24px rgba(0, 217, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(0, 217, 255, 0.45); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--cyan); }
.btn-outline:hover { background: rgba(0, 217, 255, 0.08); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 0 30px; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite;
}
.btn.is-disabled-link { opacity: .45; cursor: not-allowed; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Product grid & card ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.iptv-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .iptv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .iptv-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, var(--surface), #0c1b2b); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; animation: fade-up .45s ease both;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.product-card.is-featured { border-color: rgba(255, 201, 60, .55); box-shadow: 0 0 0 1px rgba(255, 201, 60, .25), 0 14px 36px rgba(255, 201, 60, .08); }
.product-img-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #050c16; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.product-card:hover .product-img-wrap img { transform: scale(1.03); }
.badges { position: absolute; top: 10px; right: 10px; left: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; pointer-events: none; }
.badge { font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.badge-featured { background: linear-gradient(135deg, var(--gold), #ff9f1a); color: #231400; }
.badge-discount { background: linear-gradient(135deg, #ff4d6a, #c2003f); color: #fff; margin-right: auto; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 16px; font-weight: 800; }
.product-body h3 a:hover { color: var(--cyan); }
.product-desc { font-size: 13.5px; color: var(--text-dim); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-size: 22px; font-weight: 900; color: var(--gold); font-family: "Cairo"; }
.price small { font-size: 13px; font-weight: 700; }
.old-price { font-size: 14px; color: var(--text-dim); text-decoration: line-through; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.card-actions .details-link { grid-column: 1 / -1; }

/* ===== شريط البحث والتصنيفات أعلى الصفحة (يبقى ظاهرًا أثناء التمرير) ===== */
.store-toolbar {
  position: sticky; top: var(--header-h); z-index: 150; padding: 12px 0;
  background: rgba(7, 17, 28, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.store-toolbar .toolbar { margin-bottom: 0; gap: 10px; }
.store-toolbar .search-box { min-height: 48px; }
.results-note { margin-bottom: 14px; }
.results-note[hidden] { display: none; }

/* ===== Filters ===== */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; max-width: 520px; width: 100%; margin: 0 auto; min-height: 50px; }
.search-box:focus-within { border-color: var(--cyan); }
.search-box input { border: none; outline: none; flex: 1; min-width: 0; background: transparent; color: var(--text); padding: 12px 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.category-chip { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 760px) {
  /* صف واحد قابل للتمرير أفقيًا داخل الشريط فقط (بدون تمرير أفقي للصفحة) */
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; margin: 0 -20px; padding-inline: 20px; }
  .chips::-webkit-scrollbar { display: none; }
  .store-toolbar { padding: 10px 0; }
  .category-chip { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
}
.category-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 22px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); font-size: 14px; font-weight: 700; color: var(--text-dim); transition: all .2s;
}
.category-chip:hover { color: var(--text); }
.category-chip.active { background: var(--cyan); color: #03121c; border-color: transparent; }
.results-note { text-align: center; color: var(--text-dim); font-size: 13px; }

/* ===== States ===== */
.state-box { text-align: center; padding: 44px 20px; color: var(--text-dim); border: 1px dashed var(--border); border-radius: var(--radius); grid-column: 1 / -1; }
.state-box .btn { margin-top: 14px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); min-height: 330px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===== Slider ===== */
.slider-shell { position: relative; }
.slider-wrap { overflow: hidden; touch-action: pan-y; border-radius: var(--radius); }
.slider-wrap:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.slider-track { display: flex; gap: 16px; transition: transform .5s ease; will-change: transform; }
.slide-card { flex: 0 0 240px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.slide-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #050c16; }
.slide-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.slide-body h4 { font-size: 14.5px; font-weight: 800; min-height: 44px; }
.slide-body .price { font-size: 18px; }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.slider-nav button { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 20px; }
.slider-nav button:hover { border-color: var(--cyan); color: var(--cyan); }
@media (max-width: 560px) { .slide-card { flex-basis: 78vw; } }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--cyan); object-fit: cover; border: 1px solid var(--border); }
.review-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.review-text { font-size: 14.5px; color: var(--text-dim); }
.review-date { font-size: 12px; color: var(--text-dim); margin-top: 10px; opacity: .75; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.about-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--surface-2); }
.about-text h2 { font-size: clamp(21px, 3vw, 27px); margin-bottom: 12px; }
.about-text p { color: var(--text-dim); font-size: 16px; line-height: 1.95; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; text-align: center; } }

/* ===== Contact ===== */
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 15px;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, color .2s;
}
.contact-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.contact-btn.disabled { opacity: .45; cursor: not-allowed; }
.contact-btn.disabled:hover { border-color: var(--border); color: inherit; }

/* ===== Payments ===== */
.payments-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pay-logo { background: #fff; border-radius: 12px; padding: 8px 14px; display: flex; align-items: center; justify-content: center; min-width: 96px; height: 56px; color: #0b1a2b; font-weight: 800; font-size: 14px; }
.pay-logo img { max-width: 72px; max-height: 34px; object-fit: contain; }
.payment-note { margin: 16px auto 0; max-width: 620px; text-align: center; font-size: 14px; color: var(--text-dim); }

/* ===== Footer ===== */
.site-footer { background: #040b13; border-top: 1px solid var(--border); padding: 40px 20px 26px; margin-top: 60px; color: var(--text-dim); font-size: 14px; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer-top .brand { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.footer-col h4 { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.footer-col a, .footer-col span.disabled-link { display: block; padding: 5px 0; }
.footer-col a:hover { color: var(--cyan); }
.footer-col .disabled-link { opacity: .45; }
.copyright { text-align: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.5px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; text-align: center; } .footer-top .brand { justify-content: center; } }

/* ===== Page layouts ===== */
/* هامش علوي وسفلي فقط، والهامش الجانبي يبقى من .container */
.page { padding-top: 32px; padding-bottom: 20px; }
.page h1 { font-size: clamp(23px, 3.6vw, 30px); margin-bottom: 18px; }
.narrow { max-width: 720px; }
.card-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card-box h3 { font-size: 17px; margin-bottom: 12px; }
.breadcrumb { font-size: 13.5px; color: var(--text-dim); margin-bottom: 16px; }
.breadcrumb a { color: var(--cyan); }

/* ===== Product page ===== */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.product-layout .main-img { width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 18px; background: #050c16; border: 1px solid var(--border); }
.product-info h1 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 10px; }
.product-info .price { font-size: 30px; }
.list { padding-right: 20px; color: var(--text-dim); }
.list li { margin-bottom: 4px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.qty-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 20px; font-weight: 800; }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-value { min-width: 28px; text-align: center; font-weight: 900; font-size: 18px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 820px) { .product-layout { grid-template-columns: 1fr; } }

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-dim); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-2); color: var(--text); text-align: right;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--cyan); }
.form-group input:disabled { opacity: .6; }
.form-hint { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--cyan); }
.check-row a { color: var(--cyan); }

/* ===== Cart / checkout ===== */
.cart-row { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.cart-row img { width: 88px; height: 88px; border-radius: 12px; object-fit: contain; background: #050c16; flex-shrink: 0; }
.cart-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-row .name { font-weight: 800; }
.cart-row .row-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.cart-row .qty-row { margin: 0; gap: 8px; }
.cart-row .qty-btn { width: 40px; height: 40px; }
.remove-btn { background: transparent; border: 1px solid rgba(255, 77, 106, .4); color: var(--danger); border-radius: 10px; min-height: 40px; padding: 0 12px; cursor: pointer; font-weight: 700; }
.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.summary-row span:first-child { min-width: 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 900; font-size: 19px; color: var(--gold); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--cyan); background: rgba(0, 217, 255, .07); border-radius: 14px; padding: 14px; }
.pay-option .ic { font-size: 24px; }

/* ===== Alerts & toast ===== */
.alert { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 14px; }
.alert-error { background: rgba(255, 77, 106, .12); border: 1px solid rgba(255, 77, 106, .4); color: #ff9fb0; }
.alert-success { background: rgba(30, 227, 154, .1); border: 1px solid rgba(30, 227, 154, .4); color: #8ff5cb; }
.alert-warning { background: rgba(255, 201, 60, .1); border: 1px solid rgba(255, 201, 60, .4); color: var(--gold); }
.alert-info { background: rgba(0, 217, 255, .08); border: 1px solid var(--border-strong); color: #a8ecff; }
.toast-host { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: #10263c; border: 1px solid var(--border-strong); color: var(--text); border-radius: 14px; padding: 13px 16px; font-weight: 700; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 10px; animation: fade-up .25s ease both; }
.toast.error { border-color: rgba(255, 77, 106, .6); }
.toast a { color: var(--cyan); white-space: nowrap; }

/* ===== Success ===== */
.success-box { text-align: center; padding: 16px 0 22px; }
.success-icon { font-size: 60px; }
.success-title { font-size: clamp(22px, 4vw, 30px); font-weight: 900; margin: 8px 0; }
.order-id { direction: ltr; unicode-bidi: plaintext; font-family: Consolas, monospace; font-size: 14px; word-break: break-all; color: var(--cyan); }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); }
.st-new { color: var(--cyan); } .st-processing { color: var(--gold); } .st-completed, .st-paid { color: var(--success); }
.st-cancelled, .st-refunded { color: var(--danger); } .st-pending { color: var(--gold); }

/* ===== Admin ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; flex-shrink: 0; background: #040b13; padding: 20px 14px; border-left: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar h2 { font-size: 18px; margin-bottom: 20px; padding: 0 8px; }
.admin-sidebar a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--text-dim); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(0, 217, 255, .1); color: var(--cyan); }
.admin-main { flex: 1; min-width: 0; padding: 26px; }
.admin-main h1 { font-size: 24px; margin-bottom: 18px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.admin-head h1 { margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stat-card .num { font-size: 24px; font-weight: 900; color: var(--cyan); font-family: "Cairo"; }
.stat-card .label { font-size: 13px; color: var(--text-dim); }
.filters-bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; align-items: end; }
.filters-bar input, .filters-bar select { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; }
.filters-bar label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 4px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-tabs button { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 14px; font-weight: 700; cursor: pointer; }
.admin-tabs button.active { background: var(--cyan); color: #03121c; border-color: transparent; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: right; font-size: 13.5px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: var(--surface-2); font-weight: 800; white-space: nowrap; }
.admin-table tr.row-muted td { opacity: .55; }
.admin-table select { min-height: 38px; border-radius: 9px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); padding: 0 8px; }
.admin-table input.sort-input { width: 70px; min-height: 36px; border-radius: 8px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); padding: 0 8px; }
.cell-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.item-line { white-space: nowrap; }
.muted { color: var(--text-dim); font-size: 12.5px; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; border: 1px solid var(--border); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: none; align-items: center; justify-content: center; z-index: 400; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.modal-close { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 14px; }
.detail-grid div { font-size: 14px; } .detail-grid b { color: var(--text-dim); font-weight: 700; display: block; font-size: 12.5px; }

@media (max-width: 760px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 50; display: flex; gap: 6px; overflow-x: auto; padding: 10px; border-left: none; border-bottom: 1px solid var(--border); }
  .admin-sidebar h2 { display: none; }
  .admin-sidebar a { white-space: nowrap; margin: 0; flex-shrink: 0; }
  .admin-main { padding: 16px; }
  /* الجداول تتحول إلى بطاقات على الجوال */
  .table-wrap { border: none; overflow: visible; }
  .admin-table.responsive thead { display: none; }
  .admin-table.responsive, .admin-table.responsive tbody, .admin-table.responsive tr, .admin-table.responsive td { display: block; width: 100%; }
  .admin-table.responsive tr { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
  .admin-table.responsive td { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
  .admin-table.responsive td::before { content: attr(data-label); font-weight: 800; color: var(--text-dim); flex-shrink: 0; }
  .admin-table.responsive td > * { text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }
  .item-line { white-space: normal; }
}
