/* ============================================================
   LUMEN — Social Media Manager vCard
   Next-gen ScaanMe theme · creator-portfolio light glass
   Airy paper canvas, pastel aurora, coral CTAs, bento hero,
   story-ring actions, 9:16 story carousel, springy pops.
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    --bg: var(--tk-bg, #F5F4F9);
    --card: #FFFFFF;
    --glass: rgba(255, 255, 255, .68);
    --line: rgb(from var(--tk-text, #131319) r g b / .075);
    --line-2: rgb(from var(--tk-text, #131319) r g b / .15);
    --ink: var(--tk-text, #131319);
    --muted: color-mix(in oklab, var(--tk-text, #131319) 62%, var(--tk-bg, #F5F4F9));
    --dim: color-mix(in oklab, var(--tk-text, #131319) 42%, var(--tk-bg, #F5F4F9));
    --coral: var(--tk-primary, #FF5C7A);
    --coral-deep: color-mix(in oklab, var(--tk-primary, #FF5C7A) 84%, #000);
    --coral-soft: color-mix(in oklab, var(--tk-primary, #FF5C7A) 16%, #fff);
    --lilac: var(--tk-secondary, #C9B8FF);
    --peach: var(--tk-accent2, #FFC9A2);
    --sky: #A5DFFF;
    --mint: var(--tk-success, #2FA98C);
    --ring: conic-gradient(from 210deg, var(--tk-primary, #FF5C7A), #FFB36B, var(--tk-secondary, #C9B8FF), #6BC8FF, var(--tk-primary, #FF5C7A));
    /* Layered, softer elevation — two-stop ambient + contact shadow */
    --shadow-card: 0 1px 1px rgba(22, 22, 29, .03), 0 2px 6px -2px rgba(22, 22, 29, .06), 0 24px 48px -28px rgba(46, 28, 70, .22);
    --shadow-lift: 0 2px 4px rgba(22, 22, 29, .05), 0 30px 60px -26px rgba(46, 28, 70, .3);
    --shadow-pop: 0 24px 60px -22px rgb(from var(--tk-primary, #FF5C7A) r g b / .42);
    /* Hairline top-highlight that gives white cards a "glass lip" */
    --lip: inset 0 1px 0 rgba(255, 255, 255, .9);
    --r-xl: 30px;
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --font-d: var(--tk-font-header, 'Sora'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-b: var(--tk-font-content, 'Inter'), 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --w-body: 400;
    --w-display: 800;
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --ease-out: cubic-bezier(.22, .8, .26, 1);
    --dock-h: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

::selection { background: var(--tk-primary, #FF5C7A); color: #fff; }

/* ---------- Ambient: pastel aurora blobs over paper ---------- */
.fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.fx::after { /* faint dot weave */
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(22, 22, 29, .05) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
.fx-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .2; will-change: transform; }
.fx-blob.b1 { width: 62vw; height: 62vw; max-width: 660px; max-height: 660px; background: var(--lilac); inset-block-start: -14%; inset-inline-start: -18%; animation: lm-drift1 30s ease-in-out infinite alternate; }
.fx-blob.b2 { width: 54vw; height: 54vw; max-width: 580px; max-height: 580px; background: var(--peach); inset-block-start: 26%; inset-inline-end: -22%; animation: lm-drift2 38s ease-in-out infinite alternate; }
.fx-blob.b3 { width: 48vw; height: 48vw; max-width: 520px; max-height: 520px; background: var(--sky); inset-block-end: -14%; inset-inline-start: 12%; animation: lm-drift3 46s ease-in-out infinite alternate; }
@keyframes lm-drift1 { to { transform: translate(12vw, 9vh) scale(1.14); } }
@keyframes lm-drift2 { to { transform: translate(-10vw, -7vh) scale(.9); } }
@keyframes lm-drift3 { to { transform: translate(7vw, -11vh) scale(1.16); } }

/* ---------- Layout ---------- */
.lumen-wrap { max-width: 720px; margin-inline: auto; padding-inline: 20px; padding-block-end: calc(var(--dock-h) + 30px); }
.sec { padding-block: 46px; }
.sec-head { margin-block-end: 26px; }
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-d); font-size: 11px; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; color: var(--coral-deep);
    padding: 5px 11px 5px 9px; border-radius: 999px;
    background: var(--coral-soft); box-shadow: var(--lip);
}
.kicker::before { content: "\2726"; font-size: 11px; color: var(--coral); }
.sec-title {
    font-family: var(--font-d); font-size: clamp(1.72rem, 6.4vw, 2.4rem);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.06;
    margin-block-start: 11px; color: var(--ink);
}
.sec-sub { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-block-start: 10px; max-width: 52ch; }

/* ---------- Springy pop reveals ---------- */
.pop { opacity: 0; transform: translateY(22px) scale(.945); transition: opacity .55s var(--ease-out), transform .55s var(--spring); }
.pop.in { opacity: 1; transform: none; }
.pop-d1 { transition-delay: .07s; } .pop-d2 { transition-delay: .14s; } .pop-d3 { transition-delay: .21s; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; inset-block-start: 0; z-index: 60;
    display: flex; align-items: center; gap: 11px;
    margin-inline: -20px; padding: 10px 20px;
    background: rgb(from var(--tk-bg, #F5F4F9) r g b / .74);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-block-end: 1px solid var(--line);
}
.topbar-ring { width: 42px; height: 42px; border-radius: 50%; padding: 2px; background: var(--ring); flex-shrink: 0; }
.topbar-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.topbar-name { font-family: var(--font-d); font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Bento hero ---------- */
.hero { position: relative; }
/* coral spotlight that makes the hero the unmistakable screenshot moment */
.hero::before {
    content: ""; position: absolute; z-index: -1;
    inset-block-start: -4%; inset-inline-start: 50%; transform: translateX(-50%);
    width: 92%; height: 60%;
    background: radial-gradient(60% 70% at 50% 0%, rgb(from var(--tk-primary, #FF5C7A) r g b / .16), transparent 70%);
    pointer-events: none;
}
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-block-start: 22px; }
.tile {
    position: relative; border-radius: var(--r-xl);
    background: var(--card); border: 1px solid var(--line);
    box-shadow: var(--shadow-card), var(--lip); overflow: hidden;
}
.tile-photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lift); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tile-photo:hover img { transform: scale(1.04); }
/* subtle bottom vignette so the chip + edge read crisp over any photo */
.tile-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(22,22,29,.14) 0%, transparent 26%, transparent 78%, rgba(22,22,29,.16) 100%); }
.tile-chip {
    position: absolute; inset-block-start: 10px; inset-inline-start: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px);
    font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
    box-shadow: 0 6px 18px -6px rgba(22, 22, 29, .25);
}
.tile-chip i { color: var(--coral); font-size: 11px; }
.tile-id { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 18px 16px; }
.avail-chip {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px 5px 10px; border-radius: 999px;
    background: rgb(from var(--tk-success, #2FA98C) r g b / .1); border: 1px solid rgb(from var(--tk-success, #2FA98C) r g b / .2);
    font-size: 11px; font-weight: 700; letter-spacing: .01em; color: var(--mint);
}
.avail-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgb(from var(--tk-success, #2FA98C) r g b / .45); animation: lm-dot 2.4s ease-out infinite; }
@keyframes lm-dot { 70% { box-shadow: 0 0 0 7px rgb(from var(--tk-success, #2FA98C) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-success, #2FA98C) r g b / 0); } }
.bento-name { font-family: var(--font-d); font-size: clamp(1.5rem, 6.6vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; overflow-wrap: anywhere; }
.bento-role { font-size: 13px; font-weight: 700; color: var(--coral-deep); letter-spacing: .005em; }
.tile-desc { grid-column: 1 / -1; padding: 20px 18px; }
.bento-desc { color: var(--muted); font-size: 14.5px; max-width: 58ch; }
.bento-desc p { margin-block-end: .55em; }
.bento-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 14px; }
.tile-desc .bento-cta:first-child { margin-block-start: 0; }

/* Metric tiles: flex row inside the bento — fills rows at any count */
.bento-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.tile-stat {
    flex: 1 1 calc(50% - 6px); min-width: 130px;
    border-radius: var(--r-lg); border: 1px solid var(--line);
    padding: 18px 16px; box-shadow: var(--shadow-card), var(--lip);
}
.t-lilac { background: linear-gradient(150deg, color-mix(in oklab, var(--tk-secondary, #C9B8FF) 38%, #fff), color-mix(in oklab, var(--tk-secondary, #C9B8FF) 8%, #fff)); }
.t-peach { background: linear-gradient(150deg, color-mix(in oklab, var(--tk-accent2, #FFC9A2) 42%, #fff), color-mix(in oklab, var(--tk-accent2, #FFC9A2) 8%, #fff)); }
.t-sky   { background: linear-gradient(150deg, #DCF1FF, #F2FAFF); }
.t-coral { background: linear-gradient(150deg, color-mix(in oklab, var(--tk-primary, #FF5C7A) 22%, #fff), color-mix(in oklab, var(--tk-primary, #FF5C7A) 6%, #fff)); }
.bm-num { font-family: var(--font-d); font-size: clamp(1.7rem, 6.6vw, 2.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.bm-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; margin-block-start: 5px; }

/* ---------- Buttons: coral pills, springy ---------- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 26px; border: 0; border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--tk-primary, #FF5C7A) 88%, #fff), var(--coral) 55%, var(--coral-deep));
    color: #fff;
    font-family: var(--font-d); font-weight: 700; font-size: 14.5px; letter-spacing: .005em;
    box-shadow: 0 10px 26px -10px var(--coral-deep), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .35s var(--spring), box-shadow .25s ease, filter .2s ease;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.04); box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 24px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line-2);
    color: var(--ink); font-family: var(--font-d); font-weight: 700; font-size: 14.5px;
    transition: transform .35s var(--spring), border-color .2s ease, background .2s ease;
}
.btn-ghost:hover { transform: translateY(-2px) scale(1.02); border-color: rgb(from var(--tk-text, #131319) r g b / .3); }
.btn-ghost:active { transform: scale(.97); }
.btn-mini {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0; border: 0; background: transparent;
    font-family: var(--font-d); font-size: 13.5px; font-weight: 700; color: var(--coral);
    transition: gap .2s ease;
}
.btn-mini:hover { gap: 12px; }
/* Trailing "forward" arrows must point with the reading direction.
   Only mirror the plain horizontal arrow — never the diagonal
   external-link glyph (fa-arrow-up-right-from-square), which is a
   non-directional "opens elsewhere" mark and reads broken if flipped. */
[dir="rtl"] .btn-mini > i.fa-arrow-right,
[dir="rtl"] .bento-cta .btn-primary i.fa-arrow-right,
[dir="rtl"] .bento-cta .btn-ghost i.fa-arrow-right { transform: scaleX(-1); }

/* ---------- Story-highlight ring row (quick actions) ---------- */
.story-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; margin-block-start: 30px; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 72px; }
.story-disc { position: relative; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; transition: transform .4s var(--spring); box-shadow: 0 10px 22px -12px rgba(46, 28, 70, .4); }
.story-disc::before { content: ""; position: absolute; inset: -40%; background: var(--ring); animation: ring-spin 8s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.story-core {
    position: absolute; inset: 4px; border-radius: 50%;
    background: var(--card); border: 2.5px solid var(--bg);
    display: grid; place-items: center; font-size: 21px; color: var(--ink);
}
.story-item:hover .story-core { color: var(--coral-deep); }
.story-item:hover .story-disc { transform: scale(1.1) rotate(-4deg); }
.story-label { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- Social marquee ---------- */
.marquee { overflow: hidden; margin-block-start: 32px; margin-inline: -20px; padding-block: 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 11px; width: max-content; animation: marquee 28s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 18px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line);
    font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap;
    box-shadow: var(--shadow-card), var(--lip);
}
.mq-chip i { font-size: 15px; color: var(--coral); }

/* ---------- Cover video card ---------- */
.cover-video { margin-block-start: 14px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow-card); }
.cover-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ---------- Services ("What I manage") ---------- */
.mg-grid { display: grid; gap: 14px; }
.mg-card {
    position: relative; border-radius: var(--r-lg); padding: 22px 20px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip);
    transition: transform .4s var(--spring), box-shadow .3s ease;
}
.mg-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lift), var(--lip); }
.mg-head { display: flex; align-items: center; gap: 14px; margin-block-end: 11px; }
.mg-icon {
    width: 50px; height: 50px; border-radius: var(--r-md); flex-shrink: 0;
    display: grid; place-items: center; font-size: 19px; color: var(--coral-deep);
    border: 1px solid var(--line); overflow: hidden; box-shadow: var(--lip);
}
.mg-icon img { width: 100%; height: 100%; object-fit: cover; }
.mg-name { font-family: var(--font-d); font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.22; }
.mg-desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.mg-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-block-start: 15px; padding-block-start: 14px; border-block-start: 1px dashed var(--line-2); }

/* ---------- Collab rates (products — horizontal snap cards) ---------- */
.rate-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding: 14px 20px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rate-track::-webkit-scrollbar { display: none; }
.rate-card {
    position: relative; flex: 0 0 78%; max-width: 330px; scroll-snap-align: center;
    border-radius: var(--r-xl); padding: 22px 20px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip);
    display: flex; flex-direction: column;
    transition: transform .4s var(--spring), box-shadow .3s ease;
}
.rate-card:only-child { margin-inline: auto; }
.rate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift), var(--lip); }
.rate-card.is-featured {
    border: 1.5px solid var(--coral);
    background: linear-gradient(180deg, color-mix(in oklab, var(--tk-primary, #FF5C7A) 6%, #fff), #FFFFFF 28%);
    box-shadow: 0 2px 6px -2px rgb(from var(--coral-deep) r g b / .2), 0 32px 60px -24px rgb(from var(--coral-deep) r g b / .42), var(--lip);
}
.rate-badge {
    position: absolute; inset-block-start: -12px; inset-inline-start: 20px;
    padding: 4px 13px; border-radius: 999px;
    background: var(--coral); color: #fff;
    font-family: var(--font-d); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    box-shadow: 0 8px 18px -8px var(--coral-deep);
}
.rate-img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--r-md); margin-block-end: 14px; box-shadow: var(--lip); }
.rate-name { font-family: var(--font-d); font-size: 17.5px; font-weight: 800; letter-spacing: -.02em; }
.rate-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-block-start: 6px; }
.rate-price-row { display: flex; align-items: baseline; gap: 9px; margin-block-start: 15px; }
.rate-price { font-family: var(--font-d); font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.rate-price-old { color: var(--dim); font-size: 14px; text-decoration: line-through; }
.rate-stock { font-size: 12px; font-weight: 700; margin-block-start: 3px; }
.rate-stock.ok { color: var(--mint); }
.rate-stock.out { color: var(--coral-deep); }
.rate-card .btn-primary { width: 100%; justify-content: center; margin-block-start: auto; padding-block: 12px; }
.rate-card .rate-cta-gap { margin-block-start: 16px; }

/* ---------- Stories (gallery — 9:16 carousel, slow drift) ---------- */
.st-wrap { position: relative; }
.st-track {
    display: flex; gap: 13px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.st-track::-webkit-scrollbar { display: none; }
.st-item {
    flex: 0 0 58%; max-width: 250px; scroll-snap-align: center;
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    aspect-ratio: 9 / 16; background: color-mix(in oklab, var(--tk-bg, #F5F4F9) 84%, var(--tk-text, #131319));
    border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip);
}
.st-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.st-item:hover img { transform: scale(1.05); }
.st-top { position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; margin: 10px 12px 0; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.st-top::before { content: ""; display: block; height: 100%; width: 42%; border-radius: 999px; background: #fff; }
.st-cap {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 34px 16px 16px; font-size: 12.5px; line-height: 1.45; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgba(22, 22, 29, .72));
}
.st-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink);
    backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 14px; z-index: 5;
    box-shadow: var(--shadow-card);
    transition: transform .35s var(--spring), background .2s ease;
}
.st-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.st-nav.prev { inset-inline-start: -8px; }
.st-nav.next { inset-inline-end: -8px; }
[dir="rtl"] .st-nav i { transform: scaleX(-1); }
@media (max-width: 759px) { .st-nav { display: none; } }

/* ---------- Showreel (videos — play-overlay facade) ---------- */
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel-card { flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-card); }
.reel-card:only-child { margin-inline: auto; }
.reel-frame { position: relative; aspect-ratio: 16 / 9; background: #16161D; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.reel-cover { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.reel-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.reel-cover.is-vimeo { background: linear-gradient(140deg, var(--lilac), var(--peach) 55%, var(--sky)); }
.reel-play {
    position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(255, 255, 255, .94); color: var(--coral-deep);
    display: grid; place-items: center; font-size: 20px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .55), 0 14px 34px -10px rgba(22, 22, 29, .5);
    animation: play-pulse 2.6s ease-out infinite;
    transition: transform .35s var(--spring);
    pointer-events: none;
}
[dir="rtl"] .reel-play { transform: translate(50%, -50%); }
@keyframes play-pulse { 60% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), 0 14px 34px -10px rgba(22, 22, 29, .5); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 14px 34px -10px rgba(22, 22, 29, .5); } }
.reel-cover:hover .reel-play { transform: translate(-50%, -50%) scale(1.12); }
[dir="rtl"] .reel-cover:hover .reel-play { transform: translate(50%, -50%) scale(1.12); }
.reel-label { padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Testimonials (horizontal track) ---------- */
.tm-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card {
    flex: 0 0 84%; max-width: 380px; scroll-snap-align: center;
    position: relative; padding: 24px 20px 20px;
    border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip);
}
.tm-card:only-child { margin-inline: auto; }
.tm-mark { position: absolute; inset-block-start: 10px; inset-inline-end: 18px; font-family: var(--font-d); font-size: 58px; line-height: 1; color: var(--coral-soft); }
.tm-stars { display: flex; gap: 3px; color: #FFB36B; font-size: 13px; margin-block-end: 11px; }
.tm-text { font-size: 14.5px; color: var(--ink); }
.tm-who { display: flex; align-items: center; gap: 11px; margin-block-start: 15px; }
.tm-who-ring { width: 44px; height: 44px; border-radius: 50%; padding: 2px; background: var(--ring); flex-shrink: 0; }
.tm-who-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.tm-name { font-family: var(--font-d); font-weight: 700; font-size: 13.5px; }
.tm-sub { color: var(--dim); font-size: 12px; }

/* ---------- Links / iframes ---------- */
.link-grid { display: grid; gap: 10px; }
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 17px; border-radius: var(--r-md);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip);
    transition: transform .35s var(--spring), border-color .2s ease;
}
.link-card:hover { transform: translateX(4px); border-color: var(--line-2); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
.link-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-deep); font-size: 15px; flex-shrink: 0; }
.link-label { font-weight: 700; font-size: 14px; font-family: var(--font-d); }
.link-val { color: var(--muted); font-size: 12.5px; word-break: break-word; }
.link-arrow { margin-inline-start: auto; color: var(--dim); }
[dir="rtl"] .link-arrow i { transform: scaleX(-1); }
.iframe-wrap { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin-block-end: 12px; background: var(--card); }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Panels & forms ---------- */
.panel { border-radius: var(--r-xl); padding: 26px 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip); }
.f-label { display: block; font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); margin-block: 14px 7px; text-transform: uppercase; }
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 13px 16px; border-radius: var(--r-md);
    background: color-mix(in oklab, var(--tk-bg, #F5F4F9) 90%, var(--tk-text, #131319)); border: 1px solid transparent;
    color: var(--ink); font-family: var(--font-b); font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; background: #fff; border-color: var(--coral); box-shadow: 0 0 0 3.5px rgb(from var(--tk-primary, #FF5C7A) r g b / .18); }
.f-input::placeholder { color: var(--dim); }
select.f-input { 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='%235C5C6E' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - 16px) center; padding-inline-end: 42px; }
[dir="rtl"] select.f-input { background-position: 16px center; }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-box { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r-md); font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: var(--coral-soft); border: 1px solid rgb(from var(--coral-deep) r g b / .3); color: var(--coral-deep); }
.alert-success { background: color-mix(in oklab, var(--tk-success, #2FA98C) 12%, #fff); border: 1px solid rgb(from var(--tk-success, #2FA98C) r g b / .3); color: var(--mint); }

/* flatpickr light skin */
.flatpickr-calendar { border-radius: 18px !important; border: 1px solid var(--line) !important; box-shadow: 0 26px 60px -22px rgba(22, 22, 29, .3) !important; font-family: var(--font-b) !important; }
.flatpickr-day { border-radius: 10px !important; }
.flatpickr-day:hover { background: var(--coral-soft) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--coral) !important; border-color: var(--coral) !important; color: #fff !important; }
.flatpickr-day.today { border-color: var(--coral) !important; }

/* ---------- Hours ---------- */
.hour-row { display: flex; justify-content: space-between; align-items: center; padding-block: 11px; border-block-end: 1px dashed var(--line-2); font-size: 14px; }
.hour-row:last-child { border-block-end: 0; }
.hour-day { color: var(--muted); font-weight: 600; }
/* keep clock ranges (e.g. "9:00 AM - 6:00 PM") readable under RTL bidi */
.hour-time { unicode-bidi: isolate; }
[dir="rtl"] .hour-time { direction: ltr; }
.hour-row.today .hour-day, .hour-row.today .hour-time { color: var(--coral-deep); font-weight: 700; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--mint); font-weight: 700; font-size: 15px; }

/* ---------- Map ---------- */
.map-wrap {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip);
    background: color-mix(in oklab, var(--tk-bg, #F5F4F9) 86%, var(--tk-text, #131319));
}
/* Designed "studio map" placeholder so a blank/blocked iframe never reads as a dead box.
   The live iframe paints on top of this; if it fails to render, this is what shows. */
.map-wrap::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(42% 52% at 50% 46%, rgb(from var(--tk-primary, #FF5C7A) r g b / .14), transparent 70%),
        linear-gradient(rgba(22, 22, 29, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 22, 29, .045) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
}
.map-wrap::after {
    content: "\f3c5"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; inset-block-start: 50%; inset-inline-start: 50%; z-index: 0;
    transform: translate(-50%, -64%); font-size: 30px; color: var(--coral);
    text-shadow: 0 10px 22px rgb(from var(--coral-deep) r g b / .35); pointer-events: none;
}
.map-wrap iframe { position: relative; z-index: 1; width: 100%; height: 300px; border: 0; display: block; background: transparent; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; gap: 12px; }
.pay-card { padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip); }
.pay-label { font-family: var(--font-d); font-weight: 700; font-size: 14px; margin-block-end: 6px; }
.pay-label i { color: var(--coral); }
.pay-val { color: var(--muted); font-size: 13.5px; word-break: break-all; }
.pay-img { border-radius: var(--r-sm); max-height: 220px; margin-inline: auto; }

/* ---------- Socials (centered pill chips — balance at any count) ---------- */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: inline-flex; align-items: center; gap: 9px;
    flex: 0 1 auto;
    padding: 12px 19px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card), var(--lip);
    font-size: 13px; font-weight: 700; color: var(--ink);
    transition: transform .35s var(--spring), border-color .2s ease, color .2s ease;
}
.soc-item i { font-size: 16px; color: var(--coral); }
.soc-item:hover { transform: translateY(-3px) scale(1.04); border-color: var(--coral); color: var(--coral-deep); }
.footer { text-align: center; padding-block: 34px 10px; color: var(--dim); font-size: 12.5px; }
.footer a { color: var(--muted); font-weight: 600; }

/* ---------- Floating dock ---------- */
.dock {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 70;
    display: flex; justify-content: center;
    padding-block-end: calc(10px + env(safe-area-inset-bottom));
    pointer-events: none;
    transition: transform .4s var(--spring);
}
.dock.dock-hide { transform: translateY(130%); }
.dock-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px -14px rgba(22, 22, 29, .3);
}
.dock-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 56px; padding: 8px 6px; border: 0; background: transparent;
    color: var(--muted); font-size: 10.5px; font-weight: 700; border-radius: 999px;
    transition: color .2s ease, transform .35s var(--spring);
}
.dock-btn i { font-size: 17px; }
.dock-btn:hover, .dock-btn:focus-visible { color: var(--ink); transform: translateY(-2px); }
.dock-btn.dock-main {
    background: linear-gradient(180deg, color-mix(in oklab, var(--tk-primary, #FF5C7A) 88%, #fff), var(--coral) 55%, var(--coral-deep)); color: #fff;
    min-width: 62px; padding-block: 10px;
    box-shadow: 0 12px 26px -8px var(--coral-deep), inset 0 1px 0 rgba(255, 255, 255, .4);
    transform: translateY(-12px);
}
.dock-btn.dock-main:hover { transform: translateY(-14px) scale(1.05); color: #fff; }

/* ---------- Modals (lm = Lumen modal) ---------- */
.lm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(22, 22, 29, .42); backdrop-filter: blur(7px);
    opacity: 0; transition: opacity .3s ease; padding: 14px;
}
.lm-overlay.show { opacity: 1; }
.lm-box {
    position: relative; /* anchors .lm-close inside the box */
    width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
    border-radius: 28px; padding: 26px 22px;
    background: var(--card); border: 1px solid var(--line);
    box-shadow: 0 30px 80px -22px rgba(22, 22, 29, .4);
    transform: translateY(40px) scale(.97); transition: transform .5s var(--spring);
}
.lm-overlay.show .lm-box { transform: none; }
.lm-title { font-family: var(--font-d); font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.lm-sub { color: var(--muted); font-size: 13.5px; margin-block-start: 4px; }
.lm-close {
    position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line); background: color-mix(in oklab, var(--tk-bg, #F5F4F9) 90%, var(--tk-text, #131319)); color: var(--muted);
    display: grid; place-items: center;
    transition: transform .3s var(--spring), color .2s ease;
}
.lm-close:hover { transform: rotate(90deg); color: var(--ink); }
.lm-head { position: relative; margin-block-end: 8px; padding-inline-end: 44px; }
.lm-actions { display: flex; gap: 10px; margin-block-start: 20px; }
.lm-actions .btn-ghost, .lm-actions .btn-primary { flex: 1; justify-content: center; }
.qr-wrap { display: grid; place-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); width: fit-content; margin: 18px auto; box-shadow: var(--shadow-card); }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-block: 16px; }
.share-row a {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in oklab, var(--tk-bg, #F5F4F9) 90%, var(--tk-text, #131319)); border: 1px solid var(--line); font-size: 17px; color: var(--ink);
    transition: transform .35s var(--spring), background .2s ease, color .2s ease;
}
.share-row a:hover { transform: translateY(-3px) scale(1.08); background: var(--coral-soft); color: var(--coral-deep); }

@media (min-width: 480px) {
    .lm-overlay { align-items: center; }
}

/* ---------- Intro loader ---------- */
#loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .4s ease; }
#loader.hidden { display: none !important; }
.spinner { width: 46px; height: 46px; border-radius: 50%; padding: 3px; background: var(--ring); animation: ring-spin 1.1s linear infinite; }
.spinner::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--bg); }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .lumen-wrap { max-width: 980px; }
    .sec { padding-block: 60px; }
    .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; }
    .tile-photo { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 400px; }
    .tile-id { grid-column: span 2; padding: 28px 28px 20px; }
    .bento-name { font-size: clamp(2rem, 3.4vw, 2.7rem); }
    .tile-desc { grid-column: span 2; padding: 24px 26px; }
    .bento-stats { gap: 12px; }
    .tile-stat { flex-basis: calc(25% - 9px); }
    .story-disc { width: 82px; height: 82px; }
    .mg-grid { grid-template-columns: repeat(2, 1fr); }
    .rate-card { flex-basis: 340px; }
    .st-item { flex-basis: 24%; }
    .reel-card { flex-basis: 56%; }
    .tm-card { flex-basis: 42%; }
    .map-wrap iframe { height: 340px; }
    .pay-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-blob, .marquee-track, .story-disc::before, .avail-chip .dot, .reel-play, .spinner { animation: none !important; }
    .pop { opacity: 1; transform: none; transition: none; }
    .story-item:hover .story-disc, .btn-primary:hover, .btn-ghost:hover, .mg-card:hover, .rate-card:hover,
    .soc-item:hover, .dock-btn:hover, .lm-close:hover, .st-nav:hover { transform: none; }
    .st-item:hover img, .tile-photo:hover img { transform: none; }
}


/* ============================================================
   RTL FREE-TEXT BIDI SAFETY (founder remark: Arabic looks wrong).
   Owner-typed fields (bio, taglines, captions, link/pay values)
   can hold EN *or* AR copy. Under dir=rtl the page was forcing
   RTL alignment + bidi reordering onto English text, throwing the
   sentence-final period/dash to the wrong edge and right-aligning
   Latin paragraphs. `plaintext` lets each block auto-pick its own
   direction from its first strong char (AR stays RTL, EN stays
   LTR) and `text-align:start` follows that per-block direction —
   so mixed-language demos read correctly either way.
   ============================================================ */
.bento-desc, .bento-desc p, .sec-sub, .mg-desc, .rate-desc, .tm-text,
.st-cap, .reel-label, .link-val, .pay-val, .bento-role, .lm-sub {
    unicode-bidi: plaintext;
    text-align: start;
}

/* ============================================================
   GLOBAL CONTAINMENT BASELINE (founder remark: diagonal-scroll
   drift / horizontal "wiggle" on mobile + zoom-out).
   overflow-x:clip on html is sticky-safe (unlike hidden) and
   stops the horizontal pan; overscroll-behavior-x:none kills the
   rubber-band; max-width:100% + min-width:0 prevent any child
   from forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
/* horizontal scrollers keep their swipe to themselves */
.car-track, .reel, .film-reel, .tm-track, .letters, .marquee, .marquee-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
