/* صفحة عروض نوفمبر /shop/nov — تصميم جيمناي «شاشة العروض» بثيمٍ داكن واحد عن قصد، على ألوان الباب الداكنة (حمزة 11-07) */
:root {
    color-scheme: dark;
    /* ألوان الباب الداكنة نفسها (market.css): الخصم بالزمرّدي لا بأحمر الإلحاح، وبلا سماوي نيون */
    --bg-base: #0E1413;
    --surface: #182220;
    --surface-hover: #1D2926;
    --accent: #3CC9AE;
    --accent-solid: #0FA98E;
    --accent-glow: rgba(60, 201, 174, 0.16);
    --cyan: #3CC9AE;
    --text-main: #F3F0E8;
    --text-muted: #A9B6B0;
    --border: #24302D;
    --deal: #F23051; /* لون الخصم المميّز وحده */
    
    --font-head: 'NaamNum', 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif;
    --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
    
    --radius: 12px;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4, .font-head {
    font-family: var(--font-head);
    font-weight: 500;
}

/* Accessibility & Buttons */
a, button, input { outline-offset: 4px; outline-color: var(--cyan); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-accent {
    background-color: var(--accent-solid);
    color: #FFF;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-accent:hover { background-color: #0B8F7C; }

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-outline:hover { background-color: var(--surface-hover); }

.container {
    width: 100%;
    max-width: 600px; /* Kept narrow for mobile-first focus */
    margin: 0 auto;
    padding: 0 16px;
}

/* --- 1. Live Hero Section --- */
.hero {
    position: relative;
    padding: 24px 16px 32px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    background: linear-gradient(to bottom, rgba(14, 20, 19, 0.45) 0%, rgba(14, 20, 19, 0.55) 45%, var(--bg-base) 100%), url(/shop/nov-hero.jpg) center 42% / cover no-repeat var(--bg-base);
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 20, 19, 0.78);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.hero p {
    color: #E4EAE7;
    font-size: 0.95rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
}
.stat-box {
    background: rgba(24, 34, 32, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 8px;
}
.stat-num {
    display: block;
    font-size: 1.5rem;
    color: var(--cyan);
    font-family: var(--font-head);
    font-weight: 500;
}
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); }
.stats-line { margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* --- 3. Filters & Tabs --- */
.controls-wrapper {
    position: sticky; top: 0; z-index: 10;
    background: rgba(14, 20, 19, 0.95);
    backdrop-filter: blur(12px);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.tabs {
    display: flex; gap: 8px; padding: 0 16px;
}
.tab-btn {
    flex: 1; min-height: 44px; border-radius: 6px;
    background: var(--surface); color: var(--text-muted);
    border: 1px solid var(--border); font-family: var(--font-head);
    font-size: 0.85rem; font-weight: 500; cursor: pointer;
}
.tab-btn.active {
    background: var(--text-main); color: var(--bg-base); border-color: var(--text-main);
}
.tab-tele {
    flex: none; width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 6px;
    background: var(--surface); color: var(--cyan); border: 1px solid var(--border);
}
.tab-tele svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tab-tele:hover { background: var(--surface-hover); }

.filters-scroll {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 0 16px; scrollbar-width: none;
}
.filters-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
    white-space: nowrap; padding: 0 16px; min-height: 44px; font-family: var(--font-body);
    border-radius: 20px; background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); font-size: 0.85rem; cursor: pointer;
}
.filter-chip.active { background: var(--border); color: var(--text-main); }

/* --- 4. The Trading Ticket (Offers) --- */
.offers-list {
    display: flex; flex-direction: column; gap: 16px; padding: 16px;
}
.ticket {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.ticket-hero {
    display: flex; background: #141C1A; border-bottom: 1px solid var(--border);
}
.ticket-discount {
    flex: 0 0 45%; padding: 24px 16px;
    display: flex; flex-direction: column; justify-content: center;
    background: var(--surface);
}
.pct-val {
    font-size: 1.7rem; line-height: 1; color: var(--deal);
    font-family: var(--font-head); font-weight: 500;
}
.pct-lbl { font-size: 0.8rem; color: var(--text-muted); font-weight: bold; }

.ticket-image {
    flex: 1; position: relative; min-height: 120px;
    background: #FFF; display: flex; align-items: center; justify-content: center;
}
.ticket-image img { max-width: 90%; max-height: 90px; object-fit: contain; }
.ticket-image .no-img { color: #CCC; font-family: var(--font-head); font-size: 1.5rem; }

.store-tag {
    position: absolute; top: 8px; left: 8px;
    background: var(--bg-base); color: var(--text-main);
    padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700;
}

.ticket-body { padding: 16px; }
.ticket-title { font-size: 1rem; line-height: 1.4; margin-bottom: 8px; font-weight: 500; }
.ticket-why {
    display: inline-block; font-size: 0.8rem; line-height: 1.5; background: var(--border);
    padding: 4px 8px; border-radius: 4px; margin-bottom: 16px; color: var(--cyan);
}

.ticket-finance {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 16px;
}
.price-now { font-size: 1.8rem; color: var(--text-main); font-family: var(--font-head); font-weight: 500; line-height: 1; }
.price-currency { font-size: 0.9rem; color: var(--text-muted); font-weight: normal; }
.price-old {
    display: flex; flex-direction: column; align-items: flex-end;
    font-size: 0.9rem; color: var(--text-muted);
}
.price-old del { text-decoration-color: var(--deal); }
.was-src { font-size: 0.7rem; }

/* موعد النهاية سطرٌ هادئ: بلا صندوق أحمر ولا إطارٍ ينبض (الإلحاح المصطنع ليس لغة نعم) */
.ticket-timer {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding: 10px 0; margin-bottom: 12px;
    border-top: 1px solid var(--border);
}
.timer-lbl { font-size: 0.78rem; color: var(--text-muted); }
.timer-val {
    font-size: 1.05rem; font-family: var(--font-head); font-weight: 500;
    color: var(--text-main); font-variant-numeric: tabular-nums;
}

.ticket-actions { display: flex; flex-direction: column; gap: 8px; }
.ticket-actions .btn { width: 100%; }

/* --- 5. Track Anything --- */
.track-box {
    background: var(--surface); border: 1px solid var(--border);
    padding: 24px 16px; margin: 0 0 40px; border-radius: var(--radius);
}
.track-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.track-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.track-input {
    width: 100%; min-height: 48px; background: var(--bg-base);
    border: 1px solid var(--border); color: var(--text-main);
    padding: 0 16px; border-radius: 8px; font-family: var(--font-body);
    font-size: 1rem; margin-bottom: 12px;
}
.track-box .btn { width: 100%; }

/* --- 6. Calendar --- */
.calendar-section { padding: 0 16px 40px; }
.calendar-section h3 { font-size: 1.2rem; margin-bottom: 16px; color: var(--cyan); }
.timeline { border-right: 2px solid var(--border); padding-right: 16px; margin-right: 8px; }
.tl-item { position: relative; margin-bottom: 24px; }
.tl-item::before {
    content: ''; position: absolute; right: -21px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg-base); border: 2px solid var(--cyan);
}
.tl-date { font-family: var(--font-head); font-weight: 500; color: var(--text-main); }
.tl-name { font-size: 0.95rem; color: var(--text-muted); margin-top: 4px; }
.tl-note { font-size: 0.8rem; color: var(--text-muted); }

/* --- 7. Footer Truth Line --- */
.footer {
    text-align: center; padding: 24px 16px 40px;
    border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem;
}
.footer span.time { color: var(--text-main); font-variant-numeric: tabular-nums; }

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

/* ما أضافته النسخة الحية: الباب إلى التسوق، وصفّا التصفية، وحالات الفراغ، والمكتب */
.hero-brand { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; color: #E4EAE7; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 4px; }
.hero-brand:hover { color: var(--text-main); }
.hero-next { margin: 6px 0 0; }
.filters { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.partner-tag { display: inline-block; margin-inline-start: 8px; font-size: 0.7rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.state-box { text-align: center; padding: 40px 16px; color: var(--text-muted); grid-column: 1 / -1; }
.state-box .btn { margin-top: 16px; }
.track-hint { min-height: 1.2em; margin-top: 8px; font-size: 0.8rem; color: var(--accent); }
.footer a { color: inherit; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.ticket-image .no-img { color: #667085; }
@media (min-width: 960px) {
    .container { max-width: 1080px; }
    .hero-content.container { max-width: 720px; }
    .offers-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
    .track-box { max-width: 640px; margin-inline: auto; }
    .track-box .btn { width: 100%; }
    .calendar-section { max-width: 640px; }
    .gl-section { max-width: 720px; margin-inline: auto; }
}

/* لغة السطوح الموحّدة: بلا كرات blur ولا توهّج، والعناوين بلون النص */
.pulse-dot { box-shadow: none; }
.btn-accent { box-shadow: none; }
.pct-val { font-size: 1.35rem; }
.calendar-section h3 { color: var(--text-main); }

/* ─────────── حملات العالم /shop/global: تصميم جيمناي، وبلا شريط الموسم منذ 11-07 ─────────── */
.gl-section {
  /* رموز الصفحة نفسها، فيتبع القسم ثيم الباب: الياقوتي للقائم الآن وحده */
  --gl-bg: var(--bg-base); --gl-surface: var(--surface); --gl-surface-alt: var(--surface-hover); --gl-border: var(--border);
  --gl-ruby: var(--deal); --gl-cyan: var(--cyan); --gl-text: var(--text-main); --gl-text-muted: var(--text-muted);
  --gl-unfirm: rgba(60, 201, 174, 0.12);
  color: var(--gl-text); font-family: var(--font-body); font-size: 14px; padding: 8px 0 24px; scroll-margin-top: 80px;
}
.gl-section *, .gl-section *::before, .gl-section *::after { box-sizing: border-box; min-width: 0; }
.gl-title { font-family: var(--font-head); font-size: 20px; color: var(--gl-cyan); margin: 0 0 6px; font-weight: 700; }
.gl-lead { font-size: 13px; color: var(--gl-text-muted); line-height: 1.6; margin: 0 0 12px; }

.gl-board { background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: var(--radius); padding: 4px 12px; margin-bottom: 8px; }

.gl-store-track + .gl-store-track { border-top: 1px solid var(--gl-border); }
.gl-st-sum { display: block; cursor: pointer; list-style: none; padding: 6px 0; min-height: 44px; }
.gl-st-sum::-webkit-details-marker, .gl-fold::-webkit-details-marker { display: none; }
.gl-st-sum:focus-visible, .gl-fold:focus-visible { outline: 2px solid var(--gl-cyan); outline-offset: 2px; }
.gl-st-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; }
.gl-st-name { font-family: var(--font-head); font-size: 14px; font-weight: 600; background: var(--gl-surface); padding-inline: 0 6px; }
.gl-st-status { font-size: 12px; font-weight: 600; background: var(--gl-surface); padding-inline: 6px 0; white-space: nowrap; }
.gl-c-ruby { color: var(--gl-ruby); }
.gl-c-cyan { color: var(--gl-cyan); }

.gl-st-body { padding: 4px 0 8px; }
.gl-st-who { font-size: 12px; color: var(--gl-text-muted); margin-bottom: 8px; }
.gl-det-wave { background: var(--gl-bg); border: 1px solid var(--gl-border); border-radius: 4px; padding: 10px; margin-bottom: 8px; }
.gl-dw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; margin-bottom: 8px; }
.gl-dw-name { font-weight: 600; font-size: 14px; }
.gl-unfirm-tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 6px; background: var(--gl-unfirm); border: 1px solid var(--gl-cyan); color: var(--gl-text); border-radius: 4px; }
.gl-timer { font-family: var(--font-head); font-size: 16px; font-variant-numeric: tabular-nums; }
.gl-timer-none { font-size: 12px; color: var(--gl-text-muted); }
.gl-src { font-size: 12px; color: var(--gl-text-muted); line-height: 1.5; }
.gl-src a { color: inherit; text-decoration: underline; }
.gl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gl-btn { flex: 1 1 140px; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; font-family: var(--font-head); font-size: 12px; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.3; border-radius: 4px; }
.gl-btn-out { background: var(--gl-surface-alt); color: var(--gl-text); border: 1px solid var(--gl-border); }
.gl-btn-follow { background: rgba(60, 201, 174, 0.06); color: var(--gl-cyan); border: 1px solid var(--gl-cyan); }
.gl-note { font-size: 12px; color: var(--gl-text-muted); background: rgba(255, 255, 255, 0.02); padding: 8px; border-radius: 4px; line-height: 1.5; }

.gl-calc-box, .gl-ud-box { background: var(--gl-surface); border: 1px solid var(--gl-border); border-radius: var(--radius); padding: 0 12px; margin-bottom: 8px; }
.gl-fold { display: flex; align-items: center; min-height: 44px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; line-height: 1.4; }
.gl-calc-box .gl-fold { font-family: var(--font-head); color: var(--gl-cyan); }
.gl-ud-box .gl-fold { color: var(--gl-text-muted); }
.gl-calc-row { display: flex; gap: 8px; margin: 4px 0 12px; }
.gl-calc-input { flex: 1; width: 100%; background: var(--gl-bg); border: 1px solid var(--gl-border); color: var(--gl-text); height: 44px; padding: 0 10px; font-size: 16px; border-radius: 4px; font-family: var(--font-body); }
.gl-calc-input::placeholder { font-size: 13px; color: var(--gl-text-muted); }
.gl-calc-input:focus { outline: none; border-color: var(--gl-cyan); }
.gl-calc-res { display: none; font-size: 13px; color: var(--gl-text-muted); background: var(--gl-surface-alt); padding: 12px; border-radius: 4px; margin-bottom: 12px; }
.gl-calc-res.gl-active { display: block; }
.gl-res-line { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.gl-res-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--gl-cyan); font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--gl-border); font-variant-numeric: tabular-nums; }
.gl-calc-warn { color: var(--gl-ruby); font-weight: 600; font-size: 14px; line-height: 1.5; }
.gl-calc-legal { font-size: 12px; color: var(--gl-text-muted); line-height: 1.6; padding-bottom: 12px; }
.gl-calc-legal a { color: var(--gl-cyan); text-decoration: none; }
.gl-ud-grid { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.gl-ud-item { background: var(--gl-bg); border: 1px solid var(--gl-border); padding: 10px 12px; border-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
.gl-ud-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gl-ud-item-head b { font-family: var(--font-head); font-size: 14px; }
.gl-ud-item-head a { flex: none; color: var(--gl-cyan); text-decoration: none; font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--gl-border); border-radius: 4px; }
.gl-ud-who, .gl-ud-note { font-size: 12px; color: var(--gl-text-muted); line-height: 1.5; }
