/* ==========================================================
   دكانك — نظام التصميم (إصدار Premium فاتح)
   منصّة تجارة إلكترونية بجودة SaaS عالمية.
   لوحة نظيفة باردة الحياد + لمسة العلامة (تراكوتا الختم + ذهبي الخيط
   + أخضر الحبر الداكن)، مساحات واسعة، ظلال ناعمة، زوايا ناعمة،
   وحركات دقيقة. تُحافظ على كل أسماء الأصناف الحالية دون تغيير أي HTML.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@500;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    /* ---- الحبر والأسطح (فاتح Premium) ---- */
    --ink: #14231C;          /* حبر داكن: نص/لمسات داكنة/شارات ذهبية */
    --ink-2: #FFFFFF;        /* سطح البطاقات الأساسي */
    --ink-3: #F3F5F4;        /* سطح ثانوي/تحويم/حقول هادئة */
    --paper: #182420;        /* لون النص الأساسي فوق الأسطح الفاتحة */
    --sage: #6A756E;         /* نص ثانوي هادئ */

    /* ---- لوحة الصفحة ---- */
    --canvas: #F7F8F7;       /* خلفية الصفحة الواسعة */
    --canvas-2: #EEF1EF;     /* أقسام متبادلة خفيفة */

    /* ---- ألوان العلامة ---- */
    --stamp: #E4572E;        /* التراكوتا — اللون الأساسي للعلامة */
    --stamp-dark: #C4451F;
    --stamp-soft: #FCEDE7;   /* خلفية تراكوتا فاتحة جداً */
    --gold: #B9852A;         /* ذهبي الخيط (يقرأ فوق الأبيض) */
    --gold-soft: #F7EFDD;
    --forest: #0F3D2E;       /* أخضر عميق للتدرّجات الفاخرة */

    /* ---- حدود وظلال ---- */
    --line: rgba(20, 35, 28, 0.09);
    --line-2: rgba(20, 35, 28, 0.14);
    --shadow-xs: 0 1px 2px rgba(20, 35, 28, 0.04);
    --shadow-sm: 0 1px 3px rgba(20, 35, 28, 0.05), 0 2px 6px rgba(20, 35, 28, 0.04);
    --shadow-md: 0 4px 16px rgba(20, 35, 28, 0.06);
    --shadow-lg: 0 12px 34px rgba(20, 35, 28, 0.08);
    --shadow-color: 0 6px 16px rgba(228, 87, 46, 0.20);

    --font-display: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 16px;
    --radius-lg: 22px;
    --ease: cubic-bezier(.22, .68, .32, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.75;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

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

/* ---- أفاتار الحساب بالهيدر ---- */
.account-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; text-decoration: none;
}
.account-avatar img {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--line-2);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.account-avatar img:hover { transform: scale(1.06); box-shadow: var(--shadow-sm); }
.avatar-letter {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--stamp); color: #fff; font-weight: 700;
    box-shadow: var(--shadow-xs);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- خط تقسيم على شكل ثقوب فاتورة (توقيع العلامة) ---- */
.perforation {
    height: 2px;
    background-image: radial-gradient(circle, var(--line-2) 1.6px, transparent 2px);
    background-size: 15px 2px;
    background-position: center;
    position: relative;
    opacity: .9;
}
.perforation::before {
    content: '';
    position: absolute; inset: 0;
    border-top: 1px dashed var(--line);
}

/* ================= الهيدر ================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 248, 247, 0.72);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::before {
    content: '';
    position: absolute; inset: 0;
    background: inherit;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    z-index: -1;
}
/* حالة التمرير (تُضاف عبر ui.js) */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 28px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.5rem;
    color: var(--ink);
    display: flex; align-items: center; gap: 8px;
    letter-spacing: -.02em;
}
.logo span { color: var(--stamp); }

.nav-links {
    display: flex; align-items: center; gap: 30px;
    font-weight: 600;
}
.nav-links a {
    color: var(--sage);
    transition: color .2s var(--ease);
    position: relative;
    font-size: .96rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
    content: '';
    position: absolute; right: 0; left: 0; bottom: -20px;
    height: 2px; background: var(--stamp); border-radius: 2px;
}
/* أزرار داخل شريط التنقّل تحتفظ بألوانها ولا ترث لون الروابط عند
   التفعيل/التحويم — "ابدأ متجرك" يبقى نصّه أبيض دائماً */
.nav-links a.btn-stamp,
.nav-links a.btn-stamp:hover,
.nav-links a.btn-stamp.active { color: #fff; }
.nav-links a.btn.active::after { display: none; }

/* زر تبديل اللغة (عربي/إنجليزي) بالموقع الأساسي */
.nav-lang-switch {
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px !important;
    font-size: .78rem !important; font-weight: 700; letter-spacing: .03em;
}
.nav-lang-switch:hover { border-color: var(--stamp); }
.nav-lang-switch.active::after { display: none; }

/* ================= الأزرار ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700; font-size: .95rem;
    letter-spacing: -.01em;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
    will-change: transform;
}
.btn-stamp {
    background: linear-gradient(180deg, #E9633B, var(--stamp));
    color: #fff;
    box-shadow: var(--shadow-color);
}
.btn-stamp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(228, 87, 46, 0.26); }
.btn-stamp:active { transform: translateY(0); }
.btn-ghost {
    border: 1.5px solid var(--line-2);
    color: var(--ink);
    background: rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: var(--stamp); color: var(--stamp); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }

.hamburger {
    display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

body.dash-noscroll { overflow: hidden; }

/* ================= الهيرو ================= */
.hero {
    padding: 96px 0 78px;
    position: relative;
    overflow: hidden;
}
/* خلفية متحركة هادئة: هالات لونية ناعمة + شبكة خفيفة */
.hero::before {
    content: '';
    position: absolute; inset: -20% -10% auto -10%; height: 120%;
    background:
        radial-gradient(46% 40% at 82% 8%, rgba(228, 87, 46, 0.12), transparent 70%),
        radial-gradient(40% 42% at 12% 22%, rgba(15, 61, 46, 0.10), transparent 70%),
        radial-gradient(38% 40% at 60% 92%, rgba(185, 133, 42, 0.10), transparent 72%);
    z-index: -2;
    animation: aura 18s var(--ease) infinite alternate;
}
.hero::after {
    content: '';
    position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
    opacity: .5;
}
@keyframes aura {
    0%   { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px; align-items: center;
}
.eyebrow {
    font-family: var(--font-mono);
    color: var(--stamp);
    font-size: .8rem; font-weight: 600;
    letter-spacing: .12em;
    margin-bottom: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--stamp-soft);
    border: 1px solid rgba(228, 87, 46, 0.16);
    border-radius: 999px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 800; line-height: 1.18;
    letter-spacing: -.02em;
    margin-bottom: 22px;
    color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--stamp); position: relative; }
.hero p.lead {
    color: var(--sage);
    font-size: 1.14rem; max-width: 500px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
    display: flex; gap: 36px;
    font-family: var(--font-body);
    color: var(--sage); font-size: .86rem;
}
.hero-trust > div { position: relative; }
.hero-trust strong {
    color: var(--ink); font-size: 1.5rem; display: block;
    font-family: var(--font-mono); font-weight: 600; letter-spacing: -.02em;
    margin-bottom: 2px;
}

/* ----- بطاقة السعر المعلّقة (العنصر التوقيعي) ----- */
.hero-visual {
    position: relative;
    display: flex; justify-content: center;
    padding-top: 44px;
}
.tag-string {
    position: absolute; top: -34px; right: 50%;
    width: 1.5px; height: 70px;
    background: linear-gradient(var(--line-2), transparent);
}
.price-tag {
    background: #fff; color: var(--ink);
    width: 280px; padding: 30px 28px 34px;
    border-radius: 14px;
    position: relative;
    transform: rotate(-4deg);
    animation: swing 6s ease-in-out infinite;
    transform-origin: top center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.price-tag::before {
    content: '';
    position: absolute; top: 16px; right: 50%;
    width: 15px; height: 15px;
    background: var(--canvas);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff inset, 0 0 0 4px var(--line-2);
    transform: translateX(50%);
}
.price-tag .tag-label {
    font-family: var(--font-mono); font-size: .72rem;
    color: var(--stamp-dark); font-weight: 600;
    display: inline-block; margin-top: 14px;
    padding: 3px 10px; background: var(--stamp-soft); border-radius: 6px;
}
.price-tag .tag-store {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.3rem; margin: 12px 0 20px; color: var(--ink);
}
.price-tag .tag-price {
    font-family: var(--font-mono); font-size: 2.7rem; font-weight: 600;
    line-height: 1; color: var(--ink); letter-spacing: -.03em;
}
.price-tag .tag-price sup { font-size: 1rem; color: var(--sage); }
.price-tag .tag-period { color: var(--sage); font-size: .85rem; display: block; margin-top: 8px; }
.price-tag .tag-cut {
    position: absolute; bottom: -1px; left: 22px; right: 22px; height: 22px;
    background: repeating-linear-gradient(-45deg, #fff 0 6px, transparent 6px 12px);
    border-radius: 0 0 14px 14px;
}
@keyframes swing {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(3deg); }
}

/* ================= الأقسام ================= */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head .eyebrow { display: inline-flex; }
.section-head h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    letter-spacing: -.02em; margin-bottom: 16px; color: var(--ink);
}
.section-head p { color: var(--sage); font-size: 1.08rem; }

/* ================= المميزات ================= */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-xs);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
    position: relative;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-2);
}
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(150deg, var(--stamp-soft), #fff);
    border: 1px solid rgba(228, 87, 46, 0.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
    transition: transform .28s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 10px; color: var(--ink); }
.feature-card p { color: var(--sage); font-size: .96rem; }

/* ================= خطوات البدء (تسلسل حقيقي) ================= */
/* نطاق دقيق للنسخة الشبكية (الصفحة الرئيسية) حتى لا تتعارض مع
   نسخة .steps الأفقية الخاصة بصفحة الدفع في ui.css */
.steps:has(.step-num) {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px; position: relative;
}
.steps:has(.step-num) .step {
    position: relative; padding: 30px 26px;
    background: var(--ink-2); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-xs);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.steps:has(.step-num) .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .step-num {
    font-family: var(--font-mono);
    color: var(--stamp);
    font-size: 1rem; font-weight: 600;
    background: var(--stamp-soft);
    border: 1px solid rgba(228, 87, 46, 0.18);
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.step h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.step p { color: var(--sage); font-size: .95rem; }

/* ================= بطاقات الباقات (تذاكر السوق) ================= */
.plans-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 26px; align-items: start;
}
.plan-ticket {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.plan-ticket:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.plan-ticket::before {
    content: '';
    position: absolute; top: 34px; right: -9px;
    width: 18px; height: 18px;
    background: var(--canvas);
    border-radius: 50%;
    border: 1px solid var(--line);
    z-index: 1;
}
.plan-featured {
    border-color: rgba(228, 87, 46, 0.4);
    box-shadow: 0 20px 50px rgba(228, 87, 46, 0.14);
}
.plan-featured::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(160deg, var(--stamp), transparent 60%);
    -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: 0;
}
.plan-badge {
    position: absolute; top: -14px; left: 30px;
    background: linear-gradient(180deg, #E9633B, var(--stamp));
    color: #fff; font-size: .75rem; font-weight: 700;
    padding: 6px 15px; border-radius: 999px;
    box-shadow: var(--shadow-color);
    z-index: 2;
}
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; color: var(--ink); }
.plan-price {
    font-family: var(--font-mono); font-size: 2.7rem; font-weight: 600;
    margin: 16px 0 4px; color: var(--ink); letter-spacing: -.03em;
}
.plan-price sup { font-size: 1rem; color: var(--sage); }
.plan-period { color: var(--sage); font-size: .85rem; margin-bottom: 26px; display: block; }
.plan-features { margin-bottom: 30px; }
.plan-features li {
    padding: 11px 0; border-bottom: 1px dashed var(--line);
    font-size: .93rem; color: var(--paper);
    display: flex; align-items: flex-start; gap: 12px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
    content:''; display:inline-block; width:1em; height:1em; background-color:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain; color: var(--stamp); flex:none; vertical-align:-.125em;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--stamp-soft); font-size: .72rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 2px;
}

/* ================= آراء العملاء: شريط متحرك (Marquee) ================= */
.testimonials-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    padding: 6px 0 10px;
}
.testimonials-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 28px;
    animation: testimonials-scroll 42s linear infinite;
}
.testimonials-viewport:hover .testimonials-track { animation-play-state: paused; }
@keyframes testimonials-scroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .testimonials-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}
.testimonial {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-xs);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
    position: relative;
    flex: 0 0 340px;
    width: 340px;
}
.testimonial::before {
    content: '"';
    position: absolute; top: 14px; left: 26px;
    font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
    color: var(--stamp-soft);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial p.quote { color: var(--paper); margin-bottom: 20px; font-size: 1rem; position: relative; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(150deg, var(--stamp), var(--stamp-dark));
    color: #fff; font-family: var(--font-display);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.who strong { display: block; font-size: .92rem; color: var(--ink); }
.who span { color: var(--sage); font-size: .82rem; }

/* ================= CTA نهائي ================= */
.cta-band {
    background: linear-gradient(150deg, var(--forest), var(--ink));
    border-radius: var(--radius-lg);
    padding: 68px 44px; text-align: center;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(40% 60% at 85% 15%, rgba(228, 87, 46, 0.35), transparent 70%),
        radial-gradient(40% 60% at 12% 90%, rgba(185, 133, 42, 0.22), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; color: #fff; letter-spacing: -.02em; }
.cta-band p { color: rgba(247, 243, 233, .72); margin-bottom: 30px; font-size: 1.08rem; }
.cta-band .btn-stamp { background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.cta-band .btn-stamp:hover { box-shadow: 0 18px 40px rgba(0,0,0,.3); }

/* ================= الفوتر ================= */
.site-footer { padding: 72px 0 34px; background: var(--ink-2); border-top: 1px solid var(--line); }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px; padding-bottom: 44px;
}
.footer-brand .logo { color: var(--ink); }
.footer-brand p { color: var(--sage); font-size: .92rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-size: .95rem; margin-bottom: 18px; color: var(--ink); }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--sage); font-size: .92rem; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--stamp); }
.footer-bottom {
    display: flex; justify-content: space-between;
    padding-top: 26px; border-top: 1px solid var(--line);
    color: var(--sage); font-size: .82rem; font-family: var(--font-mono);
}

/* ================= صفحات المصادقة ================= */
.auth-wrap {
    min-height: calc(100vh - 74px);
    display: flex; align-items: center; justify-content: center;
    padding: 64px 20px; position: relative; overflow: hidden;
}
.auth-wrap::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(40% 45% at 80% 10%, rgba(228, 87, 46, 0.08), transparent 70%),
        radial-gradient(40% 45% at 15% 85%, rgba(15, 61, 46, 0.07), transparent 70%);
}
.auth-card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 6px; color: var(--ink); letter-spacing: -.02em; }
.auth-card p.sub { color: var(--sage); font-size: .94rem; margin-bottom: 30px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .88rem; margin-bottom: 8px; color: var(--paper); font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px;
    background: var(--canvas);
    border: 1.5px solid var(--line-2);
    border-radius: 12px; color: var(--paper);
    font-family: var(--font-body); font-size: .95rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--stamp); background: #fff;
    box-shadow: 0 0 0 4px var(--stamp-soft); outline: none;
}
.field textarea { resize: vertical; min-height: 60px; }
.field-hint { font-size: .8rem; color: var(--sage); margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 24px; font-size: .9rem; color: var(--sage); }
.auth-alt a { color: var(--stamp); font-weight: 600; }

.alert {
    padding: 14px 16px; border-radius: 12px;
    font-size: .89rem; margin-bottom: 22px;
}
.alert-error { background: var(--stamp-soft); border: 1px solid rgba(228, 87, 46, 0.28); color: #9a3115; }
.alert-success { background: #E9F7EE; border: 1px solid rgba(34, 160, 90, 0.3); color: #17683f; }

/* ================= الأسئلة الشائعة ================= */
.faq-list {
    display: flex; flex-direction: column; gap: 14px;
    max-width: 760px; margin: 0 auto;
}
.faq-item {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.faq-item summary {
    cursor: pointer; font-weight: 700; color: var(--ink);
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; color: var(--stamp); font-size: 1.4rem; font-weight: 400;
    transition: transform .25s var(--ease); flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--sage); line-height: 1.75; }

/* ================= استجابة الموبايل ================= */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .features-grid, .steps:has(.step-num), .plans-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
    .nav-links {
        position: fixed; inset: 0;
        background: rgba(247, 248, 247, 0.92);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        flex-direction: column; align-items: center; justify-content: center;
        text-align: center; gap: 28px; padding: 30px; z-index: 150;
        overflow-y: auto;
        opacity: 0; visibility: hidden; transform: scale(.98);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    }
    .nav-links.open {
        opacity: 1; visibility: visible; transform: scale(1);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s;
    }
    .nav-links a { font-size: 1.2rem; }
    .hamburger { display: flex; z-index: 160; position: relative; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero { padding: 64px 0 44px; }
    .footer-grid { grid-template-columns: 1fr; text-align: right; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .auth-card { padding: 34px 26px; }
}

@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .hero { padding: 50px 0 32px; }
    .hero-trust { flex-wrap: wrap; gap: 22px; }
    .price-tag { width: 100%; max-width: 280px; }
    .section { padding: 64px 0; }
    .plan-ticket, .testimonial, .feature-card { padding: 26px 22px; }
    .auth-card { padding: 28px 20px; }
    .cta-band { padding: 46px 24px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   مربعات اختيار وأزرار دائرية مخصّصة (تُطبَّق تلقائياً على الموقع)
   ============================================================ */
input[type="checkbox"], input[type="radio"] {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    width: 20px; height: 20px; min-width: 20px;
    border: 2px solid var(--line-2);
    background: #fff; display: inline-block; position: relative;
    vertical-align: middle; cursor: pointer; margin: 0; flex-shrink: 0;
    transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .1s var(--ease), box-shadow .16s var(--ease);
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--stamp); }
input[type="checkbox"]:active, input[type="radio"]:active { transform: scale(.92); }
input[type="checkbox"]:checked, input[type="radio"]:checked {
    background: var(--stamp); border-color: var(--stamp);
    box-shadow: 0 0 0 4px var(--stamp-soft);
}
input[type="checkbox"]:checked::after {
    content: ''; position: absolute; right: 6px; top: 2px;
    width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input[type="radio"]:checked::after {
    content: ''; position: absolute; top: 50%; right: 50%;
    width: 8px; height: 8px; background: #fff; border-radius: 50%;
    transform: translate(50%, -50%);
}
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
    outline: 2px solid var(--stamp); outline-offset: 2px;
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   حقول النماذج العامة (تنسيق موحّد فاتح)
   ============================================================ */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):
    not([type="button"]):not([type="range"]):not([type="color"]):
    not([type="file"]):not([type="hidden"])),
:where(select),
:where(textarea) {
    width: 100%;
    font-family: var(--font-body); font-size: .94rem;
    color: var(--paper); background: #fff;
    border: 1.5px solid var(--line-2);
    border-radius: 12px; padding: 11px 14px; line-height: 1.5;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
:where(select) {
    cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23182420' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 14px center; padding-left: 34px;
}
:where(textarea) { resize: vertical; min-height: 110px; font-family: var(--font-body); }
:where(input::placeholder), :where(textarea::placeholder) { color: rgba(24, 36, 32, 0.42); }
:where(input:not([type="checkbox"]):not([type="radio"]):focus-visible),
:where(select:focus-visible), :where(textarea:focus-visible) {
    outline: none; border-color: var(--stamp);
    box-shadow: 0 0 0 4px var(--stamp-soft);
}
:where(input:disabled), :where(select:disabled), :where(textarea:disabled) {
    opacity: .6; cursor: not-allowed; background: var(--ink-3);
}

/* حقل رفع ملف */
input[type="file"] {
    width: 100%; font-family: var(--font-body); font-size: .88rem;
    color: var(--paper);
    border: 1.5px dashed var(--line-2);
    border-radius: 12px; padding: 12px 14px; cursor: pointer;
    background: var(--canvas);
    transition: border-color .16s var(--ease), background .16s var(--ease);
}
input[type="file"]:hover { border-color: var(--stamp); background: var(--stamp-soft); }
input[type="file"]::file-selector-button {
    font-family: inherit; font-size: .82rem; font-weight: 600;
    color: var(--ink); background: #fff;
    border: 1.5px solid var(--line-2); border-radius: 9px;
    padding: 7px 14px; margin-inline-end: 12px; cursor: pointer;
    transition: border-color .16s var(--ease), color .16s var(--ease);
}
input[type="file"]::file-selector-button:hover { border-color: var(--stamp); color: var(--stamp); }

label { display: inline-block; margin-bottom: 6px; font-size: .86rem; color: var(--paper); }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}

/* ================= جدول مقارنة الباقات (Premium) ================= */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; }
.compare-table thead th {
    background: var(--ink-3);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    padding: 16px 14px;
    position: sticky; top: 0;
}
.compare-table thead th:first-child { text-align: right; border-radius: 12px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 12px 0 0; }
.compare-table tbody td {
    padding: 15px 14px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
}
.compare-table tbody td:first-child { text-align: right; color: var(--sage); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) td { background: var(--ink-3); }
.compare-table tbody tr:hover td { background: var(--stamp-soft); }
/* العمود المميّز (الباقة المُوصى بها) */
.compare-table th.col-highlight, .compare-table td.col-highlight {
    background: var(--stamp-soft) !important;
    color: var(--stamp-dark);
    font-weight: 700;
    position: relative;
}
.compare-table th.col-highlight { background: var(--stamp) !important; color: #fff; }
.compare-table tbody tr:hover td.col-highlight { background: rgba(228, 87, 46, 0.22) !important; }
/* علامات صح و — بشكل شارات دائرية أنيقة (يُضيف ui.js أصناف yes/no) */
.compare-table td.cmp-yes {
    color: var(--ok);
}
.compare-table td.cmp-yes::after {
    content:''; display:inline-block; width:1em; height:1em; background-color:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E") no-repeat center/contain;  display:inline-flex; align-items:center; justify-content:center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: .8rem;
}
.compare-table td.cmp-no::after {
    content: '—'; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    color: var(--sage); font-size: .85rem;
}
html.dark .compare-table thead th { color: var(--paper); }
html.dark .compare-table th.col-highlight { color: #fff; }

/* ================= صفحات قانونية (الشروط والأحكام / سياسة الخصوصية) ================= */
.legal-content { max-width: 780px; margin: 0 auto; line-height: 1.9; }
.legal-content .legal-updated { color: var(--sage); font-size: .9rem; margin-bottom: 30px; }
.legal-content h2 { font-size: 1.35rem; margin: 40px 0 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin: 22px 0 10px; }
.legal-content p { margin: 0 0 14px; color: var(--ink-2, var(--ink)); opacity: .92; }
.legal-content ul, .legal-content ol { margin: 0 0 14px; padding-inline-start: 22px; }
.legal-content li { margin-bottom: 8px; opacity: .92; }
.legal-content strong { color: var(--ink); }
.legal-content .legal-toc { background: rgba(0,0,0,.03); border-radius: 12px; padding: 18px 22px; margin-bottom: 34px; }
.legal-content .legal-toc h3 { margin-top: 0; font-size: .95rem; }
.legal-content .legal-toc ol { margin-bottom: 0; }
.legal-content .legal-toc a { color: var(--ink); opacity: .8; }
.legal-content .legal-toc a:hover { color: var(--stamp); opacity: 1; }
.legal-content .legal-note { background: rgba(15,118,110,.08); border-radius: 10px; padding: 14px 18px; margin: 0 0 14px; font-size: .92rem; }
html.dark .legal-content .legal-toc { background: rgba(255,255,255,.05); }
html.dark .legal-content .legal-note { background: rgba(15,118,110,.15); }


/* ===== شعار العلامة (وردمارك دكانك) — نسخة style.css ===== */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-wm { height: 32px !important; width: auto !important; display: block; }
.dash-sidebar .brand-wm { height: 30px !important; }
.site-footer .brand-wm { height: 28px !important; }
@media (max-width: 720px) {
    .brand-wm { height: 26px !important; }
    .dash-sidebar .brand-wm { height: 26px !important; }
    .site-footer .brand-wm { height: 24px !important; }
}
.brand-wm-dark { display: none !important; }
html.dark .brand-wm-light { display: none !important; }
html.dark .brand-wm-dark { display: block !important; }
