/*
 * Wolf IPTV — Foundation CSS Bundle (always loaded; auto-generated from core/ partials)
 *
 * AUTO-GENERATED FILE — DO NOT EDIT DIRECTLY
 * Source files in: assets/css/core/
 * Build script: dashboard/scripts/build-css.php
 * Generated:    2026-05-10 19:33:54
 */


/* ═══ FROM: _variables.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/_variables.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — CSS Variables & Reset
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css (Section 1)
 *  Source lines: 29-140
 *
 *  Loaded by: wolf-foundation.css bundle (always loaded)
 *  Dependencies: NONE
 * ═══════════════════════════════════════════════════════════════════════════
 */

:root {
    /* ── Brand ──────────────────────────────── */
    --wolf-primary: #7C4DFF;
    --wolf-primary-dark: #5E35B1;
    --wolf-primary-light: #B388FF;
    --wolf-primary-glow: rgba(124,77,255,0.25);

    /* ── Surfaces ───────────────────────────── */
    --wolf-bg: #0a0a0f;
    --wolf-surface: #12121a;
    --wolf-surface2: #1a1a26;
    --wolf-border: rgba(124,77,255,0.12);
    --wolf-border2: rgba(255,255,255,0.06);

    /* ── Text ───────────────────────────────── */
    --wolf-text: #f0f0f5;
    --wolf-sub: #8888a0;
    --wolf-muted: #55556a;

    /* ── Semantic ────────────────────────────── */
    --wolf-red: #C8102E;
    --wolf-green: #22c55e;
    --wolf-gold: #f59e0b;
    --wolf-blue: #3b82f6;

    /* ── Radius ──────────────────────────────── */
    --wolf-radius: 16px;
    --wolf-radius-sm: 10px;
    --wolf-radius-md: 12px;
    --wolf-radius-lg: 18px;
    --wolf-radius-xs: 6px;
    --wolf-radius-pill: 999px;

    /* ── Spacing Scale (Phase 1 — 2026-05-07) ──
       Scale موحد للـ spacing عبر الموقع كله (cards, sections, buttons).
       مستخرج من الـ patterns الفعلية في wolf-home.css.            ── */
    --wolf-space-xs: 0.5rem;    /*  8px  — tight spacing (gaps in flex) */
    --wolf-space-sm: 1rem;      /* 16px  — default gap */
    --wolf-space-md: 1.5rem;    /* 24px  — card padding */
    --wolf-space-lg: 2rem;      /* 32px  — section padding (mobile) */
    --wolf-space-xl: 3rem;      /* 48px  — section padding (tablet) */
    --wolf-space-2xl: 4rem;     /* 64px  — section padding (desktop) */
    --wolf-space-3xl: 6rem;     /* 96px  — hero/large sections */

    /* ── Section Layout Tokens ──
       الـ container max-width + section padding للـ Page Builder pages
       والـ marketing sections في الـ homepage.                       ── */
    --wolf-container-max: 1200px;
    --wolf-container-narrow: 800px;
    --wolf-section-padding-y: var(--wolf-space-3xl);
    --wolf-section-padding-x: var(--wolf-space-md);
    --wolf-hero-min-height: 600px;
    --wolf-hero-padding-y: var(--wolf-space-3xl);

    /* ── Shadows (Phase 1 — 2026-05-07) ──
       Shadow scale مستخرج من wolf-home.css patterns. الكل بـ يستخدم
       الـ primary purple glow عشان يحافظ على الـ Wolf brand feel.    ── */
    --wolf-shadow-sm: 0 4px 12px rgba(124, 77, 255, 0.06);
    --wolf-shadow-md: 0 8px 25px rgba(124, 77, 255, 0.08);
    --wolf-shadow-lg: 0 12px 40px rgba(124, 77, 255, 0.10);
    --wolf-shadow-glow: 0 0 30px var(--wolf-primary-glow);

    /* ── Transitions ──
       Speeds موحدة (سرعة hover/animation متناسقة).                  ── */
    --wolf-transition-fast: 0.2s ease;
    --wolf-transition-base: 0.3s ease;
    --wolf-transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Typography Scale ──
       Modular scale للـ headings + body. Hero responsive (clamp).   ── */
    --wolf-font-hero: clamp(2.2rem, 5vw, 3.8rem);
    --wolf-font-h2: clamp(1.6rem, 3vw, 2.2rem);
    --wolf-font-h3: 1.5rem;
    --wolf-font-body: 1rem;
    --wolf-font-sm: 0.875rem;
    --wolf-font-xs: 0.75rem;
    --wolf-line-tight: 1.2;
    --wolf-line-base: 1.7;
    --wolf-line-loose: 1.9;
    --wolf-weight-regular: 400;
    --wolf-weight-medium: 500;
    --wolf-weight-bold: 700;
    --wolf-weight-black: 900;

    /* ── Compatibility aliases ────────────────
       الصفحات الفرعية بتستخدم أسماء أقصر
       موحّدة مع الـ wolf- variables          ── */
    --red: #C8102E;
    --red-hover: #e01535;
    --red-glow: rgba(200, 16, 46, 0.15);
    --blue: var(--wolf-blue);
    --blue-glow: rgba(59, 130, 246, 0.12);
    --green: var(--wolf-green);
    --green-glow: rgba(34, 197, 94, 0.12);
    --gold: var(--wolf-gold);
    --bg: var(--wolf-bg);
    --surface: var(--wolf-surface);
    --surface2: var(--wolf-surface2);
    --border: var(--wolf-border);
    --border2: var(--wolf-border2);
    --text: var(--wolf-text);
    --muted: var(--wolf-muted);
    --whatsapp: #57AE4D;
    --accent: var(--wolf-primary);
    --accent-glow: var(--wolf-primary-glow);

    /* ══════════════════════════════════════════════════════════════
       Z-Index System v1 (2026-04-29)
       
       نظام موحّد للـ z-index. كل الـ values محطوطة هنا — مفيش 
       magic numbers في الـ codebase. الـ gaps (10/100) بـ تسمح
       بإضافة layers جديدة في المستقبل بدون renumbering.
       
       Layers (ascending):
       0-2     → Component-local stacking (raw, NO var)
       100-300 → Page structure (sticky/fixed)
       500     → Floating actions (FAB)
       1000+   → Navigation
       1500    → Custom modals
       3000+   → Toasts/Confirms
       9000+   → Max priority (debug, system)
       
       Note: bs-compat.css بـ يستخدم 1000/1050/1055 للـ Bootstrap
       compat layer — ميـ بـ تتغيرش (compatibility intentional).
       ══════════════════════════════════════════════════════════════ */

    /* Page structure (sticky/fixed) */
    --z-sticky:           100;   /* sticky elements (blog share sidebar) */
    --z-sidebar-overlay:  150;   /* mobile sidebar darken overlay */
    --z-sidebar:          200;   /* dashboard sidebar */
    --z-sidebar-toggle:   300;   /* hamburger above sidebar */

    /* Floating actions */
    --z-fab:              500;   /* floating action buttons (WhatsApp) */

    /* Navigation */
    --z-nav:              1000;  /* main navbar (matches BS dropdown) */
    --z-nav-dropdown:     1010;  /* dropdowns from nav */
    --z-nav-drawer:       1020;  /* mobile nav drawer */

    /* Modals (custom, above Bootstrap modal at 1055) */
    --z-modal-backdrop:   1500;  /* custom modal dark backdrop */
    --z-modal:            1510;  /* custom modal content */

    /* Notifications */
    --z-toast:            3000;  /* toast notifications */
    --z-confirm:          3010;  /* confirm dialogs (above toast) */

    /* Maximum priority (use sparingly!) */
    --z-debug:            9000;  /* developer overlays (profiler) */
    --z-system-toast:     9100;  /* critical system messages (push perm) */
}

/* ── Accent class overrides (subscription_details, checkout) ── */
.accent-red  { --accent: #C8102E; --accent-glow: rgba(200,16,46,0.12); }
.accent-blue { --accent: var(--wolf-blue); --accent-glow: rgba(59,130,246,0.12); }

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:80px; }
body { font-family:'Tajawal',sans-serif; background:var(--wolf-bg); color:var(--wolf-text); line-height:1.7; overflow-x:hidden; }
img { max-width:100%; height:auto; }

/* ── Focus Accessibility ────────────────────────────── */
:focus-visible { outline: 2px solid var(--wolf-primary); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--wolf-primary); outline-offset: 2px; }

/* ═══ FROM: _base.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/_base.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Base & Typography (.container)
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css (Section 2)
 *  Source lines: 145-148
 * ═══════════════════════════════════════════════════════════════════════════
 */


.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ═══ FROM: navbar.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/navbar.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Navbar
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css (LAYOUT > NAVBAR)
 *  Source lines: 154-217
 *
 *  Selectors:
 *    .wolf-nav, .wolf-nav-inner, .wolf-brand, .wolf-links, .wolf-link,
 *    .wolf-burger, .wolf-sidebar, .wolf-overlay
 *
 *  Loaded by: wolf-foundation.css bundle (navbar on every public page)
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ── NAVBAR ─────────────────────────────────────────── */
.wolf-nav { position:fixed; top:0; left:0; right:0; z-index:var(--z-nav); padding:14px 0; transition:all 0.3s; }
.wolf-nav.scrolled { background:rgba(10,10,15,0.95); backdrop-filter:blur(12px); border-bottom:1px solid var(--wolf-border); padding:10px 0; }
.wolf-nav .container { display:flex; align-items:center; justify-content:space-between; gap:16px; }

/* Start group: burger + logo */
.wolf-nav-start { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.wolf-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.wolf-logo-img { width:40px; height:40px; border-radius:12px; }
.wolf-brand-text { font-size:20px; font-weight:900; color:var(--wolf-text); }
.wolf-brand-accent { color:var(--wolf-primary); }

/* Center: desktop links */
.wolf-nav-links { display:flex; align-items:center; gap:6px; flex:1; justify-content:center; }
.wolf-link { color:var(--wolf-sub); text-decoration:none; font-size:14px; font-weight:700; padding:8px 14px; border-radius:8px; transition:all 0.2s; white-space:nowrap; }
.wolf-link:hover { color:var(--wolf-text); }
.wolf-link.active { color:var(--wolf-text); background:var(--wolf-primary-glow); border:1px solid rgba(124,77,255,0.2); }
.wolf-link-icon { display:none; }

/* Sidebar-only elements — hidden on desktop */
.wolf-sidebar-close { display:none; }
.wolf-sidebar-brand { display:none; }

/* End group: actions */
.wolf-nav-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; height:40px; }
.wolf-notif { width:38px; height:38px; border-radius:10px; border:1px solid var(--wolf-border2); background:transparent; color:var(--wolf-sub); font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; position:relative; }
.wolf-notif:hover { color:var(--wolf-primary); border-color:var(--wolf-primary); }
.wolf-notif-wrap { position: relative; }
.wolf-notif-badge { position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; background:var(--wolf-red); color:#fff; font-size:10px; font-weight:900; border-radius:50px; display:flex; align-items:center; justify-content:center; padding:0 5px; border:2px solid var(--wolf-bg); }
.wolf-notif-dropdown { position:absolute; top:calc(100% + 10px); left:0; width:340px; background:var(--wolf-surface); border:1px solid var(--wolf-border); border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,0.5); z-index:var(--z-nav-dropdown); opacity:0; visibility:hidden; transform:translateY(-8px); transition:all 0.2s; overflow:hidden; }
.wolf-notif-dropdown.open { opacity:1; visibility:visible; transform:translateY(0); }
.wolf-notif-dd-head { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--wolf-border); font-size:14px; font-weight:900; }
.wolf-notif-dd-clear { font-size:11px; color:var(--wolf-primary-light); text-decoration:none; font-weight:700; }
.wolf-notif-dd-body { max-height:320px; overflow-y:auto; }
.wolf-notif-dd-empty { text-align:center; padding:30px 16px; color:var(--wolf-muted); font-size:13px; }
.wolf-notif-dd-empty i { display:block; font-size:24px; margin-bottom:8px; }
.wolf-notif-dd-item { display:flex; align-items:flex-start; gap:12px; padding:12px 18px; border-bottom:1px solid var(--wolf-border2); cursor:pointer; transition:background 0.2s; }
.wolf-notif-dd-item:last-child { border-bottom:none; }
.wolf-notif-dd-item:hover { background:var(--wolf-surface2); }
.wolf-notif-dd-item.unread { background:rgba(124,77,255,0.04); }
.wolf-notif-dd-icon { width:32px; height:32px; border-radius:9px; background:var(--wolf-surface2); display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--wolf-primary-light); flex-shrink:0; }
.wolf-notif-dd-content { flex:1; min-width:0; }
.wolf-notif-dd-title { font-size:13px; font-weight:700; line-height:1.4; }
.wolf-notif-dd-time { font-size:11px; color:var(--wolf-muted); margin-top:2px; }
.wolf-notif-dd-dot { width:7px; height:7px; border-radius:50%; background:var(--wolf-red); flex-shrink:0; margin-top:4px; }
.wolf-notif-dd-footer { display:block; text-align:center; padding:12px; font-size:13px; font-weight:700; color:var(--wolf-primary-light); text-decoration:none; border-top:1px solid var(--wolf-border); transition:background 0.2s; }
.wolf-notif-dd-footer:hover { background:var(--wolf-surface2); color:var(--wolf-primary-light); }
.wolf-login-btn { display:flex; align-items:center; gap:8px; padding:8px 18px; border-radius:10px; border:none; background:var(--wolf-primary); color:#fff; font-family:'Tajawal'; font-size:14px; font-weight:700; cursor:pointer; transition:all 0.2s; }
.wolf-login-btn:hover { background:var(--wolf-primary-dark); transform:scale(1.03); }
.wolf-user-btn { background:var(--wolf-surface2) !important; border:1px solid var(--wolf-border) !important; color:var(--wolf-text) !important; font-family:'Tajawal'; font-weight:700; font-size:14px; border-radius:10px !important; padding:8px 16px !important; display:flex !important; align-items:center !important; gap:6px; height:38px; }
.wolf-user-name { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wolf-dropdown { background:var(--wolf-surface) !important; border:1px solid var(--wolf-border) !important; border-radius:14px !important; overflow:hidden; margin-top:8px !important; }
.wolf-dropdown .dropdown-item { font-weight:700; font-size:14px; padding:10px 18px; }

/* Burger — hidden on desktop */
.wolf-burger { display:none; width:40px; height:40px; border:1px solid var(--wolf-border2); background:transparent; border-radius:10px; cursor:pointer; flex-direction:column; justify-content:center; align-items:center; gap:5px; padding:8px; flex-shrink:0; transition:border-color 0.2s; }
.wolf-burger:hover { border-color:var(--wolf-primary); }
.wolf-burger span { display:block; width:20px; height:2px; background:var(--wolf-text); border-radius:2px; }

/* Overlay */
.wolf-nav-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:var(--z-nav); opacity:0; visibility:hidden; transition:opacity 0.3s; }
.wolf-nav-overlay.open { opacity:1; visibility:visible; }
body.nav-open { overflow:hidden; }

/* ── Mobile Menu Z-Index Fix (Phase 1 — 2026-05-07) ──────────────
   المشكلة: الـ backdrop-filter: blur(12px) على .wolf-nav.scrolled
   بـ يعمل stacking context جديد (CSS spec). ده بـ يخلي الـ overlay
   والـ drawer (مع إن z-index أعلى نظرياً) يقعوا "وراء" الـ navbar.

   الحل: لما الـ menu يكون مفتوح، نـ disable الـ backdrop-filter على
   الـ navbar مؤقتاً. الـ stacking context بـ يـ collapse، الـ overlay
   يظهر على top زي ما المفروض.
   ─────────────────────────────────────────────────────────────── */
body.nav-open .wolf-nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ═══ FROM: footer.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/footer.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Footer (base + enhanced)
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css
 *  Source lines: 218-228 (base) + 494-504 (enhanced)
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ── Base footer ──────────────────────────────────────────── */

/* ── FOOTER ─────────────────────────────────────────── */
.wolf-footer { padding:30px 0; border-top:1px solid var(--wolf-border2); }
.wolf-footer-inner { display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px; }
.wolf-footer-payments { display:flex; align-items:center; gap:10px; }
.pay-icon { width:44px; height:44px; border-radius:50%; background:var(--wolf-surface2); border:1px solid var(--wolf-border2); display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--wolf-sub); transition:all 0.2s; }
.pay-icon:hover { border-color:var(--wolf-primary); color:var(--wolf-primary); }
.whatsapp-pay { color:#25D366; }
.whatsapp-pay:hover { border-color:#25D366; }
.wolf-footer-copy { font-size:13px; color:var(--wolf-muted); }
.wolf-footer-copy strong { color:var(--wolf-text); }


/* ── Enhanced footer ──────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   FOOTER ENHANCED
══════════════════════════════════════════════════════════════ */
.wolf-footer-social { display: flex; gap: 10px; justify-content: center; }
.wolf-social-link { width: 38px; height: 38px; border-radius: 10px; background: var(--wolf-surface2); border: 1px solid var(--wolf-border2); display: flex; align-items: center; justify-content: center; color: var(--wolf-sub); font-size: 16px; text-decoration: none; transition: all 0.2s; }
.wolf-social-link:hover { color: var(--wolf-primary); border-color: var(--wolf-primary); transform: translateY(-2px); }
.wolf-footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.wolf-footer-links a { color: var(--wolf-sub); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.wolf-footer-links a:hover { color: var(--wolf-primary); }

/* ═══ FROM: whatsapp-float.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/whatsapp-float.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — WhatsApp Float Button
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css
 *  Source lines: 265-270
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ── WHATSAPP FLOAT ─────────────────────────────────── */
.wolf-whatsapp { position:fixed; bottom:24px; right:24px; width:56px; height:56px; border-radius:50%; background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; text-decoration:none; z-index:var(--z-fab); transition:all 0.3s; box-shadow:0 4px 20px rgba(37,211,102,0.4); }
.wolf-whatsapp:hover { transform:scale(1.1); background:#20bd5a; color:#fff; }
.wolf-wa-pulse { position:absolute; inset:-4px; border-radius:50%; border:2px solid #25D366; animation:waPulse 2s infinite; }

/* ═══ FROM: buttons.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/buttons.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Buttons & Section Headers
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css (COMPONENTS)
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ── Primary & Ghost Buttons ──────────────────────────────── */

/* ── Primary & Ghost Buttons ────────────────────────── */
.btn-wolf-primary { display:inline-flex; align-items:center; gap:10px; padding:14px 32px; border-radius:12px; background:var(--wolf-primary); color:#fff; font-family:'Tajawal'; font-size:16px; font-weight:700; text-decoration:none; border:none; cursor:pointer; transition:all 0.25s; }
.btn-wolf-primary:hover { background:var(--wolf-primary-dark); transform:translateY(-2px); box-shadow:0 8px 30px var(--wolf-primary-glow); color:#fff; }
.btn-wolf-ghost { display:inline-flex; align-items:center; gap:8px; padding:14px 28px; border-radius:12px; border:1px solid var(--wolf-border); background:transparent; color:var(--wolf-sub); font-family:'Tajawal'; font-size:15px; font-weight:700; text-decoration:none; cursor:pointer; transition:all 0.2s; }
.btn-wolf-ghost:hover { border-color:var(--wolf-primary); color:var(--wolf-primary); }


/* ── Section Headers ──────────────────────────────────────── */

/* ── Section Headers ────────────────────────────────── */
.wolf-section { padding:90px 0; }
.wolf-section-alt { background:linear-gradient(180deg, var(--wolf-surface) 0%, rgba(124,77,255,0.03) 50%, var(--wolf-surface) 100%); }
.section-header { text-align:center !important; margin-bottom:50px; direction:rtl; }
.section-tag { display:inline-block; background:var(--wolf-primary-glow); color:var(--wolf-primary-light); font-size:12px; font-weight:900; padding:5px 16px; border-radius:50px; margin-bottom:14px; letter-spacing:1px; }
.section-title { font-size:clamp(1.6rem, 3vw, 2.4rem); font-weight:900; margin-bottom:12px; text-align:center !important; }
.section-desc { font-size:15px; color:var(--wolf-sub); max-width:500px; margin:0 auto; text-align:center !important; }


/* ── Copy Button ──────────────────────────────────────────── */

/* ── Copy Button ────────────────────────────────────── */
.copy-btn { background: var(--surface2); border: 1px solid var(--border2); color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 13px; font-family: 'Tajawal', sans-serif; font-weight: 700; transition: background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.copy-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }


/* ── Back Button ──────────────────────────────────────────── */

/* ── Back Button ────────────────────────────────────── */




/* ── Section Label ────────────────────────────────────────── */

/* ── Section Label (shared: checkout, referrals) ────── */
.section-label { font-size:12px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--muted); margin-bottom:12px; margin-top:32px; display:flex; align-items:center; gap:8px; }
.section-label::after { content:''; flex:1; height:1px; background:var(--border); }


/* ── Back Link ────────────────────────────────────────────── */

/* ── Back Link ──────────────────────────────────────── */
.back-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* ═══ FROM: modal-forms.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/modal-forms.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Modal, Forms, OTP, Error Messages
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css (COMPONENTS)
 *
 *  Loaded by: wolf-foundation.css bundle (always loaded)
 *
 *  Why is this in the always-loaded foundation?
 *  ────────────────────────────────────────────
 *  The auth_modal.php is included on every public page (login button is
 *  accessible from the navbar everywhere). Splitting these styles into a
 *  separate "auth bundle" would just add HTTP overhead without any savings
 *  since the bundle would load on every page anyway.
 *
 *  Selectors:
 *    .wolf-modal              — login/signup/OTP modal container
 *    .wolf-modal-close        — close button
 *    .form-control-custom     — text/tel inputs in modal
 *    .form-label-custom       — input labels
 *    .otp-input               — 4-digit OTP field
 *    .whatsapp-hint           — info text under OTP
 *    .otp-countdown           — expiry timer
 *    .error-msg               — form validation errors
 *
 *  Dependencies: _variables.css (colors)
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ── Modal ────────────────────────────────────────────────── */

/* ── Modal ──────────────────────────────────────────── */
.wolf-modal { background:var(--wolf-surface) !important; border:1px solid var(--wolf-border) !important; border-radius:20px !important; color:var(--wolf-text); }
.wolf-modal-close { position:absolute; top:16px; left:16px; width:34px; height:34px; border-radius:10px; border:1px solid var(--wolf-border2); background:var(--wolf-surface2); color:var(--wolf-sub); display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2; transition:all 0.2s; }
.wolf-modal-close:hover { color:var(--wolf-red); border-color:var(--wolf-red); }
.wolf-modal-icon { font-size:40px; text-align:center; margin-bottom:12px; }
.wolf-modal-title { text-align:center; font-size:22px; font-weight:900; margin-bottom:6px; }
.wolf-modal-sub { text-align:center; font-size:14px; color:var(--wolf-sub); margin-bottom:24px; }


/* ── Forms ────────────────────────────────────────────────── */

/* ── Forms ──────────────────────────────────────────── */
.form-label-custom { font-size:13px; font-weight:700; color:var(--wolf-sub); margin-bottom:6px; display:block; }
.form-control-custom { background:var(--wolf-bg) !important; border:1px solid var(--wolf-border2) !important; color:var(--wolf-text) !important; border-radius:10px !important; padding:12px 16px; font-family:'Tajawal' !important; font-size:15px !important; }
.form-control-custom:focus { border-color:var(--wolf-primary) !important; box-shadow:0 0 0 3px var(--wolf-primary-glow) !important; }
.btn-modal-primary { width:100%; padding:14px; border-radius:12px; border:none; background:var(--wolf-primary); color:#fff; font-family:'Tajawal'; font-size:15px; font-weight:700; cursor:pointer; transition:all 0.2s; }
.btn-modal-primary:hover { background:var(--wolf-primary-dark); }
.btn-modal-back { width:100%; padding:12px; border-radius:10px; border:1px solid var(--wolf-border2); background:none; color:var(--wolf-sub); font-family:'Tajawal'; font-size:14px; font-weight:700; cursor:pointer; }
.modal-switch-text { text-align:center; font-size:13px; color:var(--wolf-muted); margin-top:16px; margin-bottom:0; }
.modal-switch-link { color:var(--wolf-red); font-weight:700; text-decoration:none; transition:opacity 0.2s; }
.modal-switch-link:hover { opacity:0.8; }


/* ── OTP Input ────────────────────────────────────────────── */

/* ── OTP Input ──────────────────────────────────────── */
.otp-input { font-size: 2rem !important; letter-spacing: 10px !important; text-align: center !important; padding: 0 20px !important; height: 72px !important; -moz-appearance: textfield; }
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }


/* ── WhatsApp Hint ────────────────────────────────────────── */

/* ── WhatsApp Hint ──────────────────────────────────── */
.whatsapp-hint { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(87, 174, 77, 0.08); border: 1px solid rgba(87, 174, 77, 0.2); border-radius: 10px; padding: 10px 16px; font-size: 13px; color: var(--whatsapp); font-weight: 700; margin-bottom: 20px; }


/* ── OTP Countdown Timer ──────────────────────────────────── */

/* ── OTP Countdown Timer ───────────────────────────── */
/* عداد تنازلي بيوضح للعميل وقت صلاحية الكود */
.otp-countdown { text-align:center; margin-bottom:16px; font-size:13px; font-weight:700; color:var(--wolf-sub); padding:8px 12px; border-radius:10px; background:rgba(200,16,46,0.06); border:1px solid rgba(200,16,46,0.12); }
.otp-countdown .otp-timer-value { color:var(--wolf-primary); font-size:18px; font-weight:900; direction:ltr; display:inline-block; min-width:50px; }
.otp-countdown.expired { background:rgba(200,16,46,0.1); border-color:rgba(200,16,46,0.25); color:#ff6070; }


/* ── Error Message ────────────────────────────────────────── */

/* ── Error Message ──────────────────────────────────── */
.error-msg { background: rgba(200,16,46,0.1); border: 1px solid rgba(200,16,46,0.3); color: #ff6070; border-radius: 12px; padding: 12px 18px; margin-bottom: 20px; font-size: 14px; font-weight: 700; text-align: center; }

/* ═══ FROM: cards-utilities.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/cards-utilities.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Cards, Toast, Dividers, Spinners
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ── Toast ────────────────────────────────────────────────── */

/* ── Toast ──────────────────────────────────────────── */

.toast-success { background:#065f46; color:#6ee7b7; }
.toast-error { background:#7f1d1d; color:#fca5a5; }


/* ── Data Card ────────────────────────────────────────────── */

/* ── Data Card (shared: details + checkout) ─────────── */
.data-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 22px; overflow: hidden; margin-bottom: 20px; animation: fadeUp 0.5s 0.1s ease both; }
.data-card-header { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.data-item { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.data-item:last-child { border-bottom: none; }
.data-label { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 130px; }
.data-value { font-family: 'Courier New', monospace; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; flex: 1; word-break: break-all; }


/* ── Divider ──────────────────────────────────────────────── */

/* ── Divider ────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }


/* ── Spinner ──────────────────────────────────────────────── */

/* ── Spinner ────────────────────────────────────────── */
.spinner { width:18px; height:18px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; display:none; }

/* ═══ FROM: iti-overrides.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/iti-overrides.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — intl-tel-input v28 customizations
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css (Sections 5, 6, 7)
 *  Source lines: 364-478
 *
 *  Loaded by: wolf-foundation.css bundle (always loaded)
 *
 *  Why is this in the always-loaded foundation?
 *  ────────────────────────────────────────────
 *  The signup modal in auth_modal.php uses a phone input (intl-tel-input
 *  library). Since auth_modal.php is included on every public page, the
 *  phone input + its styling needs to be available everywhere too.
 *
 *  Splitting this into a conditional bundle would just add HTTP overhead
 *  without any real savings — the bundle would load on every page anyway.
 *
 *  Three logical sub-sections:
 *    1. Vendor color overrides — Wolf surfaces, borders, text colors for
 *       the country dropdown
 *    2. Phone input padding — reserves space for flag + dial code on the
 *       left side of the input field
 *    3. RTL fix — keeps scrollbar on the correct side in the country list
 *
 *  Dependencies: _variables.css + intlTelInput.min.css (vendor base)
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ── Vendor overrides ─────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════════

/* ══════════════════════════════════════════════════════════════════════════════
   8. VENDOR OVERRIDES — intl-tel-input v28.0.4
   ──────────────────────────────────────────────────────────────────────────────
   مكتبة intl-tel-input v28.0.4 — phone input + country dropdown.

   الـ migration من v17 → v28 (2026-05-03):
   ────────────────────────────────────────
   - v17 كان scattered styles بـ hardcoded colors (محتاجين override كل property)
   - v28 بـ CSS variables → بنـ override الـ variables بس وكل حاجة بتطبق تلقائياً
   - v28 بـ يـ handle responsive built-in (useFullscreenPopup على mobile)
     فمش محتاجين media queries

   ⚠️ Breaking changes من v17:
     - الـ class .iti--separate-dial-code اتشال (مفيش modifier class تاني)
     - الـ class .iti__flag-container اترنّمت لـ .iti__country-container
     - الـ class .iti__selected-flag اترنّمت لـ .iti__selected-country
     - الـ library دلوقتي بـ يحسب paddingLeft تلقائياً بـ JS
       → ميـ نـ override ـش الـ padding على الـ input يدوياً!

   Wolf customizations:
     1. Flag images path → webp files من الـ vendor folder
     2. Wolf dark theme via CSS variables
     3. Match form inputs (text color, transparent background)
   ══════════════════════════════════════════════════════════════════════════════ */

.iti {
    /* ── Flag asset paths (v28) ───────────────────────────────────────────── */
    --iti-path-flags-1x: url('/assets/vendor/intl-tel-input/img/flags.webp');
    --iti-path-flags-2x: url('/assets/vendor/intl-tel-input/img/flags@2x.webp');

    /* ── Wolf theme tokens ────────────────────────────────────────────────── */
    --iti-border-color:  var(--wolf-border);
    --iti-dropdown-bg:   var(--wolf-surface);
    --iti-icon-color:    var(--wolf-sub);
    --iti-hover-color:   var(--wolf-surface2);

    /* ── Layout ───────────────────────────────────────────────────────────── */
    width: 100%;
    display: block;
}

/* ── Phone input — direction LTR (الأرقام دايماً LTR) ─────────────────────── */
.iti input.iti__tel-input {
    direction: ltr;
}


/* ── Phone input padding (Section 6) ──────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════════
   Phone input padding — مساحة للـ flag + dial code على الشمال
   ──────────────────────────────────────────────────────────────────────────────
   الـ library v28 بـ يحسب inline padding-left ديناميكياً عبر JS، لكن
   الـ shorthand `padding: 12px 16px` على .form-control-custom بـ يـ shadow
   الـ inline value في بعض الـ rendering paths (specifically لما الـ form-control
   shorthand بـ يـ apply أولاً قبل الـ JS init).

   الحل: rule بـ specificity أعلى من .form-control-custom (0,1,0).
   .iti .iti__tel-input → specificity (0,2,0) = wins.

   92px = static value يكفي للـ flag (~28px) + dial code (~38px) +
          padding-arrow (7px + spacers). الـ value ده يطابق الـ JS calculation
          على Wolf's font-size (15px) + Tajawal font.

   لو الـ JS احتاج يحسب value مختلفة (ex: locale change)، الـ inline style
   بـ يفوز بـ specificity (1,0,0,0) > (0,2,0).
   ══════════════════════════════════════════════════════════════════════════════ */

.iti .iti__tel-input {
    padding-left: 92px;
}

/* ── Selected country area — transparent للـ Wolf form inputs ────────────── */
.iti__selected-country,
.iti__selected-country-primary {
    background: transparent;
}

/* ── Dropdown text color (v28 default uses dark text — Wolf needs light) ──── */
.iti__country-list,
.iti__country,
.iti__country-name,
.iti__selected-dial-code,
.iti__search-input {
    color: var(--wolf-text);
}

/* ── Search input background (لو countrySearch enabled في المستقبل) ──────── */
.iti__search-input {
    background: var(--wolf-bg);
    border-color: var(--wolf-border);
}

/* ── Highlighted country (keyboard navigation / hover) ───────────────────── */
.iti__country.iti__highlight {
    background: var(--wolf-surface2);
}


/* ── RTL fix (Section 7) ──────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════════
   RTL Fix — الـ scrollbar position
   ──────────────────────────────────────────────────────────────────────────────
   الـ library بـ يـ detect <html dir="rtl"> ويحط dir="rtl" على الـ
   dropdown-content container. الـ country-list بـ يـ inherit direction:rtl
   → الـ scrollbar بـ يظهر على اليسار (default RTL behavior).

   الحل: force direction:ltr على الـ country-list نفسها → scrollbar على اليمين.
   ـ items داخلها text-align يفضل right للـ Arabic readability.
   ـ specificity هنا (0,1,1) أعلى من أي vendor rule (0,0,1) فمش محتاجين !important.
   ══════════════════════════════════════════════════════════════════════════════ */

.iti .iti__country-list {
    direction: ltr;       /* scrollbar على اليمين */
    text-align: right;    /* النصوص right-aligned للـ Arabic */
}

/* ═══ FROM: animations.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/animations.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Animations (keyframes)
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css
 *  Source lines: 479-493
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════════════════════════════════════════════

   9. ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════════ */

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }
@keyframes waPulse { 0%{transform:scale(1);opacity:0.6} 100%{transform:scale(1.5);opacity:0} }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-14px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ═══ FROM: responsive.css ═══ */

/*
 * PROJECT: Wolf IPTV
 * FILE: wolf_iptv/assets/css/core/responsive.css
 *
 * ═══════════════════════════════════════════════════════════════════════════
 *  Wolf Core — Responsive (tablet, mobile)
 * ═══════════════════════════════════════════════════════════════════════════
 *  Day 14 Phase 2 — Extracted from wolf-core.css (Sections 11+12)
 *  Source lines: 516-572
 *
 *  Should be LAST in foundation bundle so media queries can override.
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Core selectors only (page-specific responsive rules in their own files)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Tablet ──────────────────────── */
@media (max-width: 992px) {
    /* Show burger */
    .wolf-burger { display:flex; }
    /* Sidebar */
    .wolf-nav-links {
        position:fixed; top:0; right:-300px; width:280px; height:100vh;
        background:var(--wolf-surface); flex-direction:column;
        justify-content:flex-start; padding:24px;
        gap:4px; transition:right 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index:var(--z-nav-drawer); border-left:1px solid var(--wolf-border);
        overflow-y:auto;
    }
    .wolf-nav-links.open { right:0; }
    /* Close button inside sidebar */
    .wolf-sidebar-close {
        display:flex; align-items:center; justify-content:center;
        width:36px; height:36px; border-radius:10px;
        border:1px solid var(--wolf-border2); background:var(--wolf-surface2);
        color:var(--wolf-sub); font-size:16px; cursor:pointer;
        position:absolute; top:18px; left:18px;
        transition:all 0.2s; z-index:2;
    }
    .wolf-sidebar-close:hover { color:var(--wolf-red); border-color:var(--wolf-red); }
    /* Brand inside sidebar */
    .wolf-sidebar-brand {
        display:flex; align-items:center; gap:10px;
        font-size:18px; font-weight:900; color:var(--wolf-text);
        padding:0 4px 20px; margin-bottom:8px;
        border-bottom:1px solid var(--wolf-border);
    }
    /* Sidebar links */
    .wolf-link {
        font-size:15px; padding:13px 16px; width:100%;
        border-radius:12px; transition:all 0.2s;
    }
    .wolf-link:hover { background:var(--wolf-surface2); color:var(--wolf-text); }
    .wolf-link.active { background:var(--wolf-primary-glow); }
    /* Show icons in sidebar */
    .wolf-link-icon { display:inline; margin-left:4px; font-size:13px; color:var(--wolf-muted); width:20px; text-align:center; }
}

/* ── Mobile landscape ──────────────────────── */
@media (max-width: 768px) {
    .wolf-footer-inner { flex-direction:column; text-align:center; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE FIXES — Core navigation
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .wolf-nav-actions { gap:6px; }
}
