/* ============================================================
   Webdazzle — Editorial Tech (v2)
   A bolder, layered take on the brand:
   - Navy + orange + warm paper, with a touch of dotted/hex texture
   - Display: Bricolage Grotesque  ·  Body: DM Sans
   - Arabic: Reem Kufi (display) + Tajawal (body)
   ============================================================ */

:root {
    /* Palette */
    --navy:        #0F2A4A;
    --navy-2:      #163A65;
    --navy-deep:   #081A33;
    --ink:         #0B1B30;
    --orange:      #EE8434;
    --orange-hot:  #F26B1F;
    --orange-deep: #C8631A;
    --gold:        #E7B66B;
    --peach:       #F8C893;
    --cream:       #FAEBD3;
    --paper:       #FBF5E7;
    --bone:        #FFFBF1;
    --muted:       #5A6B81;
    --line:        rgba(15, 42, 74, 0.12);
    --line-strong: rgba(15, 42, 74, 0.22);

    --radius-sm: 12px;
    --radius:    20px;
    --radius-lg: 32px;

    --shadow-sm: 0 6px 18px rgba(8, 26, 51, 0.07);
    --shadow-md: 0 22px 50px rgba(8, 26, 51, 0.14);
    --shadow-lg: 0 40px 90px rgba(8, 26, 51, 0.22);

    --font-display: 'Bricolage Grotesque', 'Cairo', system-ui, sans-serif;
    --font-body:    'DM Sans', 'Cairo', system-ui, sans-serif;

    /* Decorative dotted-hex texture (inline SVG, navy dots on transparent) */
    --dots: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><circle cx='2' cy='2' r='1.4' fill='%230F2A4A' opacity='0.16'/></svg>");
}

[lang="ar"] {
    --font-display: 'Cairo', 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body:    'Cairo', 'DM Sans', system-ui, sans-serif;
}
[lang="ar"] body {
    line-height: 1.75;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 {
    font-weight: 800;
    line-height: 1.3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    position: relative;
}

/* Faint grain across the page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(1200px 600px at 90% -10%, rgba(238,132,52,0.10), transparent 60%),
      radial-gradient(900px 600px at -10% 60%, rgba(15,42,74,0.07), transparent 60%);
    z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 0.5em;
    font-weight: 700;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { letter-spacing: 0; line-height: 1.25; }

h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2.0rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }

p { color: var(--muted); margin: 0 0 1em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bone);
    color: var(--orange-deep);
    border: 1px solid var(--line-strong);
    padding: 7px 14px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(238,132,52,0.18);
}
[lang="ar"] .eyebrow { letter-spacing: 0; font-weight: 700; }

.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }

/* Accent highlight under display words */
.accent {
    color: var(--orange);
    position: relative;
    display: inline-block;
    font-style: italic;
    font-weight: 700;
}
[lang="ar"] .accent { font-style: normal; }
.accent::after {
    content: '';
    position: absolute;
    left: -2%; right: -2%; bottom: 0.12em;
    height: 0.28em;
    background: linear-gradient(90deg, rgba(238,132,52,0.32), rgba(238,132,52,0.12));
    border-radius: 4px;
    z-index: -1;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(251, 245, 231, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    min-height: 64px;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    color: var(--navy);
    line-height: 0;
}
.brand-logo {
    display: block;
    width: auto;
    transition: transform 0.25s;
}
.brand:hover .brand-logo { transform: scale(1.04); }

/* Per-context sizing — the logo height drives by context, not the PNG.
   The source PNG has transparent padding but small heights keep the
   navbar compact and proportional. */
.site-header .brand-logo  { height: 44px; }
.drawer-head  .brand-logo  { height: 48px; }
.site-footer  .brand-logo  { height: 80px; }
.admin-header .brand-logo  { height: 40px; }
.admin-login  .brand-logo  { height: 96px; }

@media (max-width: 960px) {
    .site-header .brand-logo { height: 40px; }
}
@media (max-width: 640px) {
    .site-header .brand-logo { height: 36px; }
    .nav { padding: 8px 0; min-height: 56px; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    font-weight: 500;
    color: var(--navy);
    font-size: 0.95rem;
    position: relative;
    transition: color 0.18s;
}
.nav-links a:hover { color: var(--orange-deep); }
.nav-links a.active {
    color: var(--orange-deep);
    font-weight: 700;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 3px;
    border-radius: 2px;
    background: var(--orange);
}
.nav-cta {
    background: var(--navy);
    color: var(--bone) !important;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover {
    background: var(--orange);
    transform: translateY(-1px);
}
.nav-cta::after { content: none !important; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--navy);
    transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover { background: var(--navy); color: var(--bone); }
.lang-toggle .globe {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    position: relative;
}
.lang-toggle .globe::before, .lang-toggle .globe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid currentColor;
}
.lang-toggle .globe::before { transform: scaleX(0.4); }
.lang-toggle .globe::after  { transform: scaleY(0.4); }

/* Hamburger */
.menu-toggle {
    display: none;
    background: var(--navy);
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform 0.25s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; left: 0; }
.menu-toggle span::after  { position: absolute; top:  6px; left: 0; }

/* ============================================================
   Off-canvas drawer
   ============================================================ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 26, 51, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 90;
}
.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.drawer {
    position: fixed;
    top: 0; bottom: 0;
    inset-inline-end: 0;
    width: min(420px, 88vw);
    background: var(--navy);
    color: var(--bone);
    z-index: 95;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.7,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -30px 0 80px rgba(0,0,0,0.3);
    overflow: hidden;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: translateX(0); }
.drawer::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: var(--dots);
    opacity: 0.25;
    pointer-events: none;
}
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.drawer-head .brand { color: var(--bone); }
.drawer-head .brand .dazzle { color: var(--orange); }
.drawer-close {
    background: rgba(255,255,255,0.08);
    border: 0;
    color: var(--bone);
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: grid; place-items: center;
    transition: background 0.2s, transform 0.2s;
}
.drawer-close:hover { background: var(--orange); transform: rotate(90deg); }
.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    position: relative;
}
.drawer-nav a {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--bone);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s, padding-inline-start 0.2s;
    text-decoration: none;
}
.drawer-nav a::after {
    content: '→';
    color: var(--orange);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s, transform 0.2s;
}
[dir="rtl"] .drawer-nav a::after { content: '←'; transform: translateX(8px); }
.drawer-nav a:hover { color: var(--orange); padding-inline-start: 6px; }
.drawer-nav a:hover::after { opacity: 1; transform: translateX(0); }

.drawer-foot {
    padding: 22px 26px 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}
.drawer-foot .lang-toggle {
    color: var(--bone);
    border-color: rgba(255,255,255,0.18);
}
.drawer-foot .lang-toggle:hover { background: var(--bone); color: var(--navy); }
.drawer-foot .btn { flex: 1; justify-content: center; }

body.drawer-open { overflow: hidden; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    cursor: pointer;
    border: 0;
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 14px 30px rgba(238,132,52,0.35);
}
.btn-primary:hover {
    background: var(--orange-hot);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(238,132,52,0.42);
}
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--bone); }
.btn-dark {
    background: var(--navy);
    color: var(--bone);
}
.btn-dark:hover { background: var(--navy-deep); }
.btn .arrow {
    display: inline-block;
    transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 70px 0 130px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dots);
    opacity: 0.4;
    mask-image: radial-gradient(80% 60% at 50% 30%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, black, transparent 75%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    margin-bottom: 24px;
}
.hero h1 .line {
    display: block;
    animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 .line:nth-child(2) { animation-delay: 0.08s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero p.lead {
    font-size: 1.12rem;
    color: var(--navy-2);
    max-width: 560px;
    animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: 0.24s;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
    animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: 0.32s;
}
.hero-meta {
    display: flex;
    gap: 36px;
    margin-top: 50px;
    flex-wrap: wrap;
    animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: 0.4s;
}
.hero-meta .stat {
    border-inline-start: 2px solid var(--orange);
    padding-inline-start: 14px;
}
.hero-meta .stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.hero-meta .stat span {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* Hero visual */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 540px;
    margin-inline-start: auto;
    animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: 0.2s;
}
.hero-disc {
    position: absolute;
    inset: 4%;
    background: var(--navy);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    /* Contain the logo's z-index inside the disc so it can't compete
       with the floating .hero-card siblings outside of it. */
    isolation: isolate;
}
.hero-disc::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-image: radial-gradient(circle, var(--orange) 1.8px, transparent 2.2px);
    background-size: 22px 22px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at 65% 35%, black 38%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 65% 35%, black 38%, transparent 72%);
}
.hero-disc-logo {
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
    animation: hero-logo-in 1.2s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: 0.3s;
}
@keyframes hero-logo-in {
    from { opacity: 0; transform: scale(0.88) rotate(-6deg); }
    to   { opacity: 1; transform: scale(1)    rotate(0deg); }
}

.hero-card {
    position: absolute;
    background: var(--bone);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
    border: 1px solid var(--line);
    /* Always render the floating cards above the disc + logo. */
    z-index: 2;
}
.hero-card .ico {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--cream);
    color: var(--orange-deep);
    display: grid; place-items: center;
    font-weight: 800;
    font-family: var(--font-display);
}
.hero-card strong { display: block; color: var(--navy); font-size: 0.98rem; font-family: var(--font-display); font-weight: 700; }
.hero-card span   { color: var(--muted); font-size: 0.82rem; }
.hero-card.c1 { top: 4%;  inset-inline-start: -10%; animation: float 6s ease-in-out infinite; }
.hero-card.c2 { bottom: 22%; inset-inline-end: -12%; animation: float 7s ease-in-out infinite reverse; }
.hero-card.c3 { bottom: 2%;  inset-inline-start: 12%; animation: float 8s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
    background: var(--navy);
    color: var(--bone);
    padding: 22px 0;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.marquee::before, .marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee::before { inset-inline-start: 0; background: linear-gradient(to right, var(--navy), transparent); }
.marquee::after  { inset-inline-end:   0; background: linear-gradient(to left,  var(--navy), transparent); }
[dir="rtl"] .marquee::before { background: linear-gradient(to left,  var(--navy), transparent); }
[dir="rtl"] .marquee::after  { background: linear-gradient(to right, var(--navy), transparent); }

.marquee-track {
    display: flex;
    gap: 50px;
    animation: scroll-x 38s linear infinite;
    width: max-content;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    /* Layout direction stays LTR even when the page is RTL — so the
       keyframe translateX(-50%) lands on the duplicated half, not on
       empty whitespace. Arabic text inside each <span> still renders
       right-to-left via Unicode bidi, so visually it's correct.       */
    direction: ltr;
}
.marquee-track > span {
    /* Let each item render in its own natural direction. */
    unicode-bidi: plaintext;
}
.marquee-track .sep {
    color: var(--orange);
    font-weight: 800;
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
/* No [dir="rtl"] override — same animation direction in both languages. */

/* ============================================================
   Sections
   ============================================================ */
section { padding: 110px 0; position: relative; }
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 70px;
}
.section-head p { font-size: 1.05rem; }

/* ============================================================
   Apps grid
   ============================================================ */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.app-card {
    background: var(--bone);
    border-radius: var(--radius-lg);
    padding: 40px 36px 36px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dots);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.app-card::after {
    content: '';
    position: absolute;
    top: -80px;
    inset-inline-end: -80px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--peach), transparent 70%);
    transition: transform 0.5s;
    z-index: -1;
}
.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.app-card:hover::before { opacity: 0.5; }
.app-card:hover::after  { transform: scale(1.4); }

.app-card .num {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--orange);
    font-size: 0.78rem;
    margin-bottom: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
[lang="ar"] .app-card .num { letter-spacing: 0; }
.app-card .num .sep {
    margin: 0 8px;
    color: var(--line-strong);
}

.app-card .big-num {
    position: absolute;
    top: 14px;
    inset-inline-end: 22px;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: var(--cream);
    line-height: 1;
    letter-spacing: -0.04em;
    z-index: 0;
    pointer-events: none;
}
.app-card .ico-lg {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--navy);
    color: var(--orange);
    display: grid; place-items: center;
    margin-bottom: 26px;
}
.app-card h3 { font-size: 1.4rem; margin-bottom: 8px; line-height: 1.2; }
.app-card .tagline {
    color: var(--orange-deep);
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.95rem;
}
.app-card p { font-size: 0.95rem; flex: 1; }
.app-card .more {
    margin-top: 22px;
    color: var(--navy);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.app-card .more .arrow { transition: transform 0.2s; }
.app-card:hover .more { color: var(--orange-deep); }
.app-card:hover .more .arrow { transform: translateX(6px); }
[dir="rtl"] .app-card .more .arrow { transform: scaleX(-1); }
[dir="rtl"] .app-card:hover .more .arrow { transform: scaleX(-1) translateX(6px); }

/* ============================================================
   Why / features
   ============================================================ */
.feature-section {
    background: var(--bone);
    position: relative;
}
.feature-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dots);
    opacity: 0.4;
    mask-image: radial-gradient(60% 80% at 50% 100%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(60% 80% at 50% 100%, black, transparent 70%);
    pointer-events: none;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.feature {
    padding: 32px 30px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}
.feature .ico-sm {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--orange);
    display: grid; place-items: center;
    margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.93rem; }

/* ============================================================
   How / split
   ============================================================ */
.split {
    background: var(--navy);
    color: var(--bone);
    border-radius: var(--radius-lg);
    padding: 80px 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
    position: relative;
    overflow: hidden;
}
.split::before {
    content: '';
    position: absolute;
    inset-inline-end: -120px; top: -120px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background-image: radial-gradient(circle, var(--orange) 1.8px, transparent 2.2px);
    background-size: 22px 22px;
    opacity: 0.35;
}
.split::after {
    content: '';
    position: absolute;
    inset-inline-start: -100px; bottom: -100px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238,132,52,0.25), transparent 70%);
}
.split h2 { color: var(--bone); }
.split p { color: rgba(255,255,255,0.78); }
.split .eyebrow {
    background: rgba(238,132,52,0.18);
    color: var(--orange);
    border-color: rgba(238,132,52,0.35);
}

.split .step {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
}
.step .num {
    flex: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    font-family: var(--font-display);
}
.step h4 { color: var(--bone); margin-bottom: 4px; font-size: 1.1rem; }
.step p { margin: 0; font-size: 0.95rem; color: rgba(255,255,255,0.75); }

/* ============================================================
   Lead capture
   ============================================================ */
.lead-section {
    position: relative;
}
.lead-card {
    background: var(--bone);
    border-radius: var(--radius-lg);
    padding: 70px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
}
.lead-card::after {
    content: '';
    position: absolute;
    inset-inline-start: -120px; bottom: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--peach), transparent 70%);
    opacity: 0.7;
    z-index: 0;
}
.lead-card > * { position: relative; z-index: 1; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
[lang="ar"] label { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font: inherit;
    color: var(--ink);
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus {
    outline: 0;
    border-color: var(--orange);
    background: var(--bone);
    box-shadow: 0 0 0 4px rgba(238, 132, 52, 0.18);
}
textarea { resize: vertical; min-height: 120px; }

.flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 0.92rem;
}
.flash-success { background: #DFF5E5; color: #1F6F40; border: 1px solid #B7E2C2; }
.flash-error   { background: #FCE3E3; color: #9B2A2A; border: 1px solid #F2BFBF; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.78);
    padding: 90px 0 30px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dots);
    opacity: 0.25;
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
}
.footer-grid h4 {
    color: var(--bone);
    font-size: 0.78rem;
    margin-bottom: 22px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
}
[lang="ar"] .footer-grid h4 { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.footer-grid a {
    display: block;
    color: rgba(255,255,255,0.72);
    padding: 6px 0;
    font-size: 0.95rem;
    transition: color 0.2s, padding-inline-start 0.2s;
}
.footer-grid a:hover { color: var(--orange); padding-inline-start: 4px; }
.footer-grid .brand { color: var(--bone); margin-bottom: 18px; }
.footer-grid .brand .dazzle { color: var(--orange); }
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: grid; place-items: center;
    padding: 0;
    color: var(--bone);
    font-weight: 700;
    font-size: 0.85rem;
}
.socials a:hover { background: var(--orange); color: #fff; padding-inline-start: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    position: relative;
}

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
    padding: 90px 0 70px;
    background: var(--paper);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dots);
    opacity: 0.5;
    mask-image: radial-gradient(70% 70% at 50% 0%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, black, transparent 80%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.page-hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.breadcrumbs {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}
.breadcrumbs a { color: var(--orange-deep); font-weight: 600; }
.page-hero .hero-actions { justify-content: center; display: flex; margin-top: 32px; }

/* ============================================================
   App detail
   ============================================================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}
.detail-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.detail-grid ul li {
    padding: 22px 24px;
    background: var(--bone);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color 0.2s, transform 0.2s;
}
.detail-grid ul li:hover {
    border-color: var(--orange);
    transform: translateX(4px);
}
[dir="rtl"] .detail-grid ul li:hover { transform: translateX(-4px); }
.detail-grid ul li .check {
    flex: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.detail-grid ul li strong {
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
}
.detail-grid ul li span { color: var(--muted); font-size: 0.92rem; }

.pricing-tag {
    display: inline-block;
    padding: 8px 18px;
    background: var(--cream);
    color: var(--orange-deep);
    border: 1px solid rgba(238,132,52,0.3);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
[lang="ar"] .pricing-tag { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }

/* ============================================================
   Admin
   ============================================================ */
.admin-shell { min-height: 100vh; background: var(--paper); }
.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
      radial-gradient(50% 50% at 80% 20%, rgba(238,132,52,0.22), transparent 60%),
      var(--paper);
    padding: 40px 20px;
}
.admin-login .card {
    background: var(--bone);
    padding: 50px;
    border-radius: var(--radius-lg);
    width: min(440px, 100%);
    box-shadow: var(--shadow-lg);
}
.admin-login h1 { text-align: center; margin-bottom: 30px; font-size: 1.6rem; }
.admin-header {
    background: var(--navy);
    color: var(--bone);
    padding: 18px 0;
}
.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-header a { color: var(--bone); font-weight: 600; }
.admin-header .brand .dazzle { color: var(--orange); }
.admin-main { padding: 40px 0; }
.admin-card { background: var(--bone); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.lead-table { width: 100%; border-collapse: collapse; }
.lead-table th, .lead-table td {
    padding: 14px 12px;
    text-align: start;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.lead-table th {
    color: var(--navy);
    font-weight: 700;
    background: var(--paper);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}
.badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge.new       { background: rgba(238,132,52,0.18); color: var(--orange-deep); }
.badge.contacted { background: rgba(15,42,74,0.10);   color: var(--navy); }
.badge.converted { background: #DFF5E5; color: #1F6F40; }
.badge.closed    { background: #E8E8E8; color: #555; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--bone); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stat-card .lbl { color: var(--muted); font-size: 0.85rem; }
.stat-card .val { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--navy); margin-top: 6px; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    section { padding: 80px 0; }
    .hero-grid, .split, .lead-card, .detail-grid { grid-template-columns: 1fr; gap: 50px; }
    .apps-grid, .feature-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { max-width: 380px; margin: 0 auto; }
    .lead-card, .split { padding: 50px 30px; }
    .nav-links { display: none; }
    .menu-toggle { display: grid; place-items: center; }
    .lang-toggle.desktop { display: none; }
}
@media (min-width: 961px) {
    .menu-toggle { display: none; }
    .lang-toggle.mobile { display: none; }
}
@media (max-width: 640px) {
    .hero { padding: 40px 0 100px; }
    .hero-meta { gap: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .marquee { border-radius: var(--radius); }
    .lead-card, .split { padding: 36px 22px; }
    .hero-visual { max-width: 300px; }
    .app-card .big-num { font-size: 4rem; }
    .drawer-nav a { font-size: 1.4rem; }
}
@media (max-width: 420px) {
    .hero-card { min-width: 180px; padding: 12px 14px; }
    .hero-card .ico { width: 38px; height: 38px; }
}

/* ============================================================
   Hero background media (image/video) + overlay
   ============================================================ */
.hero.hero-has-bg { padding: 130px 0 150px; isolation: isolate; }
.hero.hero-has-bg::before { display: none; }
.hero-bg-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.hero-bg-media img,
.hero-bg-media video {
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.hero.hero-has-bg h1,
.hero.hero-has-bg .eyebrow,
.hero.hero-has-bg p.lead,
.hero.hero-has-bg .hero-meta strong,
.hero.hero-has-bg .hero-meta span {
    color: #fff;
}
.hero.hero-has-bg .eyebrow {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}
.hero.hero-has-bg .lead { color: rgba(255,255,255,0.85); }
.hero.hero-has-bg .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.hero.hero-has-bg .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero.hero-has-bg .hero-meta .stat { border-inline-start-color: var(--orange); }
.hero.hero-has-bg .hero-meta .stat span { color: rgba(255,255,255,0.75); }
.hero.hero-has-bg .hero-grid { grid-template-columns: 1fr; }

/* ============================================================
   Admin chrome v2 (sidebar + tabs + media library + forms)
   ============================================================ */
.admin-shell { min-height: 100vh; background: var(--paper); }
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--navy);
    color: var(--bone);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-side-brand {
    padding: 0 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 18px;
}
.admin-side-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 12px;
    gap: 2px;
}
.admin-side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.74);
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.93rem;
    transition: background 0.2s, color 0.2s;
}
.admin-side-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-side-nav a.active { background: var(--orange); color: #fff; }
.admin-side-nav a.active .icon { filter: none; }
.admin-side-nav .icon { font-size: 1.1rem; width: 24px; text-align: center; }

.admin-side-foot {
    padding: 18px 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-side-foot .who strong { display: block; color: #fff; font-size: 0.92rem; }
.admin-side-foot .who span   { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.admin-logout {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}
.admin-logout:hover { background: var(--orange); }

.admin-content { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding: 18px 30px;
    gap: 14px;
}
.admin-page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--navy);
}
.admin-topbar-actions a {
    color: var(--orange-deep);
    font-weight: 600;
    font-size: 0.92rem;
}
.admin-burger {
    display: none;
    background: var(--navy);
    color: var(--orange);
    border: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    font-size: 1.3rem;
    cursor: pointer;
}

.admin-main { padding: 28px 30px; }
.container-fluid { width: 100%; max-width: 1280px; margin: 0 auto; }

.admin-card {
    background: var(--bone);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--bone);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    margin-bottom: 20px;
    overflow-x: auto;
}
.admin-tabs a {
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.admin-tabs a:hover { color: var(--navy); }
.admin-tabs a.active { background: var(--navy); color: var(--bone); }

.form-section-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 6px; color: var(--navy); }
.form-section-desc  { color: var(--muted); margin: 0 0 22px; font-size: 0.93rem; }
.form-row    { margin-bottom: 14px; }
.form-grid-1 > div { margin-bottom: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.form-grid-2 .full { grid-column: 1 / -1; }
.form-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); font-weight: 400; font-size: 0.78em; }

.switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; background: var(--line-strong); border-radius: 999px; position: relative; transition: background 0.2s; cursor: pointer; flex: none; padding: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: inset-inline-start 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.switch input:checked { background: var(--orange); }
.switch input:checked::after { inset-inline-start: 23px; }

.hint-box {
    margin-top: 22px;
    padding: 18px 22px;
    background: rgba(238,132,52,0.08);
    border: 1px solid rgba(238,132,52,0.25);
    border-radius: 14px;
    color: var(--navy);
    font-size: 0.92rem;
}
.hint-box strong { display: block; margin-bottom: 8px; font-family: var(--font-display); }
.hint-box ul { margin: 0; padding-inline-start: 20px; }
.hint-box li { margin-bottom: 4px; color: var(--muted); }
.hint-box pre { background: var(--paper); padding: 14px; border-radius: 8px; font-size: 0.78rem; color: var(--ink); overflow-x: auto; margin: 8px 0 0; }

.btn-mini {
    display: inline-block;
    padding: 6px 12px;
    background: var(--navy);
    color: var(--bone);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}
.btn-mini:hover { background: var(--orange); }
.btn-danger { background: #C13F3F; }
.btn-danger:hover { background: #A12525; }
.icon-btn {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--navy);
    width: 28px; height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.icon-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.row-active { background: rgba(238,132,52,0.06); }

.chip {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.84rem;
    border: 1px solid var(--line);
    text-transform: capitalize;
}
.chip.active { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.chip:hover  { border-color: var(--orange); }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.media-card {
    background: var(--paper);
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.media-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.media-thumb {
    height: 140px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cream), var(--peach));
    overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-meta { padding: 12px 14px; }
.media-name { font-weight: 600; font-size: 0.88rem; color: var(--navy); word-break: break-all; }
.media-size { color: var(--muted); font-size: 0.78rem; margin-bottom: 8px; }
.media-url  { width: 100%; padding: 6px 8px; font-size: 0.74rem; border-radius: 6px; margin-bottom: 8px; }

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        inset-inline-start: -100%;
        height: 100vh;
        width: 280px;
        z-index: 200;
        transition: inset-inline-start 0.3s;
    }
    .admin-sidebar.open { inset-inline-start: 0; }
    .admin-burger { display: grid; place-items: center; }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .admin-main { padding: 20px 18px; }
    .admin-topbar { padding: 14px 18px; }
}

/* ============================================================
   Chip checkboxes (used in admin appointments weekday picker)
   ============================================================ */
.chip-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}
.chip-check input { display: none; }
.chip-check span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--paper);
    color: var(--navy);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.84rem;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chip-check input:checked + span {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

/* ============================================================
   Landing page tweaks (mostly reuse existing hero/marquee/feature)
   ============================================================ */
.landing-hero { min-height: 86vh; display: flex; align-items: center; }
.landing-hero-grid { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; text-align: center; }
.landing-hero-grid .eyebrow { margin: 0 auto; }
.landing-hero-grid .hero-actions { justify-content: center; }
.landing-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-bottom: 28px; }

.landing-lead-card { background: var(--bone); }
.landing-lead-card form .form-grid { grid-template-columns: 1fr; }

/* ============================================================
   BOOKING PAGE — Dark cinematic mode
   The calendar IS the design. Navy depths, orange accents,
   layered glow + grid overlay for atmosphere.
   ============================================================ */
.book-shell {
    background: var(--navy-deep);
    color: #E9EEF7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}
.book-shell::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: -3;
    background: var(--navy-deep);
}
.book-bg {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: -2;
}
.book-grid-overlay {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(238,132,52,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(238,132,52,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: 50% 50%;
    mask-image: radial-gradient(80% 80% at 50% 50%, black, transparent 90%);
    -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, black, transparent 90%);
    opacity: 0.55;
}
.book-glow {
    position: absolute; inset: 0;
    background:
      radial-gradient(60% 40% at 80% -10%, rgba(238,132,52,0.35), transparent 70%),
      radial-gradient(50% 50% at -10% 110%, rgba(91,135,225,0.18), transparent 70%);
}

.book-header {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 2;
}
.book-stepper-text { display: inline !important; }

.book-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 40px 0 50px;
    flex-wrap: wrap;
}
.book-progress .step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    font-weight: 600;
}
.book-progress .step span {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    transition: all 0.3s;
}
.book-progress .step.active span {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(238,132,52,0.15);
}
.book-progress .step.active { color: #fff; }
.book-progress .step.done span {
    background: rgba(238,132,52,0.18);
    border-color: var(--orange);
    color: var(--orange);
}
.book-progress .step.done { color: rgba(255,255,255,0.85); }
.book-progress .step-line {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.book-progress .step-line.done::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--orange);
    transform-origin: left;
    animation: bookLineGrow 0.5s 0.3s ease-out backwards;
}
[dir="rtl"] .book-progress .step-line.done::after { transform-origin: right; }
@keyframes bookLineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.book-main {
    padding: 30px 0 80px;
    position: relative;
    z-index: 1;
}

.eyebrow-dark {
    display: inline-block;
    padding: 7px 14px;
    background: rgba(238,132,52,0.14);
    color: var(--orange);
    border: 1px solid rgba(238,132,52,0.32);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
[lang="ar"] .eyebrow-dark { letter-spacing: 0; }

.book-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
    animation: bookFade 0.6s ease-out both;
}
@keyframes bookFade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.book-aside {
    position: sticky;
    top: 30px;
    padding: 36px 32px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.book-aside-title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.book-aside-sub {
    color: rgba(255,255,255,0.65);
    font-size: 0.98rem;
    margin: 0 0 26px;
}
.book-meta {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.book-meta-row { display: flex; gap: 14px; align-items: flex-start; }
.book-meta-row .ico {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(238,132,52,0.12);
    color: var(--orange);
    display: grid; place-items: center;
    font-size: 1rem;
}
.book-meta-row strong { display: block; color: #fff; font-size: 0.95rem; font-weight: 600; }
.book-meta-row span   { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

.book-mini {
    margin-top: 22px;
    padding: 14px 18px;
    background: rgba(238,132,52,0.08);
    border: 1px solid rgba(238,132,52,0.18);
    border-radius: 12px;
    color: rgba(255,255,255,0.78);
    font-size: 0.85rem;
}

.book-pick { min-width: 0; }
.book-pick-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.book-pick-head h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.book-pick-sub { color: rgba(255,255,255,0.5); font-size: 0.88rem; }

.book-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.book-date {
    position: relative;
    padding: 18px 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s cubic-bezier(.2,.7,.2,1), border-color 0.2s, background 0.2s;
    overflow: hidden;
    font-family: inherit;
    animation: bookDateIn 0.45s cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes bookDateIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.book-date:hover {
    border-color: rgba(238,132,52,0.4);
    transform: translateY(-3px);
    background: rgba(238,132,52,0.04);
}
.book-date.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 14px 30px rgba(238,132,52,0.25);
}
.book-date.active::before {
    content: '';
    position: absolute;
    top: 8px; inset-inline-end: 8px;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.book-date .bd-wk {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.7;
    margin-bottom: 4px;
}
[lang="ar"] .book-date .bd-wk { letter-spacing: 0; }
.book-date .bd-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 2px;
}
.book-date:not(.active) .bd-num { color: rgba(255,255,255,0.9); }
.book-date .bd-mo {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    opacity: 0.55;
    margin-bottom: 10px;
}
.book-date .bd-cnt {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.75;
}
.book-date.active .bd-cnt { opacity: 1; }

.book-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.book-time-form { margin: 0; animation: bookDateIn 0.4s cubic-bezier(.2,.7,.2,1) backwards; }
.book-time {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    transition: transform 0.25s, border-color 0.2s, background 0.2s;
    text-align: start;
}
.book-time:hover {
    background: rgba(238,132,52,0.12);
    border-color: var(--orange);
    transform: translateY(-2px);
}
.book-time .bt-when {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}
.book-time .bt-ampm {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-inline-start: 4px;
    font-weight: 600;
}
.book-time .bt-go {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
}
[dir="rtl"] .book-time .bt-go { transform: translateX(6px); }
.book-time:hover .bt-go { opacity: 1; transform: translateX(0); }

.book-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 50px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}
.book-card.book-confirmed h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin: 14px 0 36px;
    line-height: 1.1;
}
.book-card.book-confirmed .book-confirmed-when {
    display: block;
    color: var(--orange);
    font-style: italic;
    font-weight: 700;
}
.book-tick {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(238,132,52,0.14);
    color: var(--orange);
    margin: 0 auto;
    display: grid; place-items: center;
    box-shadow: 0 0 0 10px rgba(238,132,52,0.07);
}
@keyframes bookCircle { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes bookCheck  { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.book-confirmed-detail {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 30px auto 0;
    max-width: 460px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}
.book-bigdate {
    flex: 1;
    padding: 24px;
    border-inline-end: 1px solid rgba(255,255,255,0.08);
    background: rgba(238,132,52,0.06);
}
.book-bigtime { flex: 1.2; padding: 24px; }
.book-bigdate .bd-month {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--orange);
    font-weight: 700;
}
[lang="ar"] .book-bigdate .bd-month { letter-spacing: 0; }
.book-bigdate .bd-day {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 6px 0;
}
.book-bigdate .bd-year {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}
.book-bigtime .bt-time {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.book-bigtime .bt-ampm {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--orange);
    margin-inline-start: 6px;
    vertical-align: top;
    margin-top: 8px;
}
.book-bigtime .bt-dur {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    font-weight: 500;
    margin-top: 6px;
}
.book-confirmed-note {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin: 30px 0 0;
}
.book-confirmed-note strong { color: #fff; }

.book-empty { color: rgba(255,255,255,0.8); }
.book-empty h1 { color: #fff; font-size: 2rem; margin: 10px 0; }
.book-empty p  { color: rgba(255,255,255,0.6); }

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
    .book-layout { grid-template-columns: 1fr; gap: 24px; }
    .book-aside  { position: static; padding: 28px 24px; }
    .book-aside-title { font-size: 1.8rem; }
    .book-dates  { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .book-date .bd-num { font-size: 1.8rem; }
    .book-times { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .book-progress { gap: 8px; margin: 20px 0 30px; }
    .book-progress .step-line { width: 30px; }
    .book-progress .step label { display: none; }
    .book-card  { padding: 40px 24px; }
    .book-confirmed-detail { max-width: 100%; }
    .book-bigdate .bd-day { font-size: 2.6rem; }
    .book-bigtime .bt-time { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .book-dates  { grid-template-columns: repeat(3, 1fr); }
    .book-times  { grid-template-columns: repeat(2, 1fr); }
    .book-confirmed-detail { flex-direction: column; }
    .book-bigdate { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

