/* ============================================================
   ON AIR — The Frequency Podcast vCard
   Next-gen ScaanMe theme · warm studio broadcast world
   Plum-black + broadcast-coral · waveform equalizer signature
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    --bg: var(--tk-bg, #1A1018);          /* deep plum-black */
    --bg-2: color-mix(in srgb, var(--tk-bg, #1A1018) 86%, #000);        /* darker recess */
    --panel: color-mix(in srgb, var(--tk-bg, #1A1018) 90%, var(--tk-text, #F6EEF2) 10%);       /* primary surface */
    --panel-2: color-mix(in srgb, var(--tk-bg, #1A1018) 84%, var(--tk-text, #F6EEF2) 16%);     /* raised surface (2nd elevation tier) */
    --panel-glass: color-mix(in srgb, var(--panel-2) 72%, transparent);
    --txt: var(--tk-text, #F6EEF2);
    --muted: color-mix(in srgb, var(--tk-text, #F6EEF2) 60%, var(--tk-primary, #E8603D) 18%);
    --dim: color-mix(in srgb, var(--tk-text, #F6EEF2) 38%, var(--tk-primary, #E8603D) 14%);
    --accent: var(--tk-primary, #E8603D);      /* broadcast-coral — the single accent */
    --accent-soft: var(--tk-secondary, #F08562);
    --line: rgb(from var(--tk-primary, #E8603D) r g b / .18);
    --line-2: rgb(from var(--tk-primary, #E8603D) r g b / .34);
    --hair: rgb(from var(--tk-text, #F6EEF2) r g b / .08);
    /* on-air glow uses the accent only — no rainbow */
    --glow: rgb(from var(--tk-primary, #E8603D) r g b / .42);
    --glow-soft: rgb(from var(--tk-primary, #E8603D) r g b / .22);
    /* the single signature gradient — warm coral, spent on ≤5 hero accents */
    --grad: linear-gradient(135deg, var(--tk-secondary, #F08562) 0%, var(--tk-primary, #E8603D) 58%, color-mix(in srgb, var(--tk-primary, #E8603D) 78%, #000) 100%);
    --r-lg: 22px;
    --r-md: 15px;
    --r-sm: 11px;
    --font-d: var(--tk-font-header, 'Bricolage Grotesque'), 'Almarai', system-ui, sans-serif;
    --font-b: var(--tk-font-content, 'Mulish'), 'Almarai', system-ui, sans-serif;
    --dock-h: 74px;
    --ease: cubic-bezier(.22, .8, .26, 1);
}

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

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    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(--accent); color: #fff; }

/* ---------- Ambient background system (warm studio room) ---------- */
.fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.fx::before { /* warm coral room-glow from above */
    content: ""; position: absolute; inset-block-start: -30%; inset-inline-start: 50%;
    width: 120vw; height: 90vh; transform: translateX(-50%);
    background: radial-gradient(60% 55% at 50% 0%, rgb(from var(--tk-primary, #E8603D) r g b / .20), transparent 70%);
}
.fx::after { /* fine vinyl grain */
    content: ""; position: absolute; inset: -50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: .05; mix-blend-mode: overlay;
}
.fx-blob { position: absolute; border-radius: 50%; filter: blur(95px); opacity: .26; will-change: transform; }
.fx-blob.b1 { width: 58vw; height: 58vw; max-width: 640px; max-height: 640px; background: var(--accent); inset-block-start: -14%; inset-inline-end: -22%; animation: drift1 32s ease-in-out infinite alternate; }
.fx-blob.b2 { width: 50vw; height: 50vw; max-width: 560px; max-height: 560px; background: color-mix(in srgb, var(--tk-primary, #E8603D) 38%, var(--tk-bg, #1A1018)); inset-block-end: -18%; inset-inline-start: -24%; opacity: .4; animation: drift2 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-10vw, 9vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(9vw, -8vh) scale(1.14); } }

/* ---------- Layout ---------- */
.air-wrap { max-width: 720px; margin-inline: auto; padding-inline: 20px; padding-block-end: calc(var(--dock-h) + 28px); }
.sec { padding-block: 48px; }
.sec-head { margin-block-end: 26px; }
.kicker {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-d); font-size: 11.5px; font-weight: 700;
    letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--accent); }
.sec-title { font-family: var(--font-d); font-size: clamp(1.9rem, 6.2vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; margin-block-start: 12px; }
.sec-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin-block-start: 10px; max-width: 52ch; }

/* ---------- Reveal choreography (scroll) ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* ---------- Hero page-load sequence ---------- */
.hero-load { opacity: 0; transform: translateY(20px); animation: heroIn .8s var(--ease) forwards; }
.hl-1 { animation-delay: .05s; }
.hl-2 { animation-delay: .14s; }
.hl-3 { animation-delay: .24s; }
.hl-4 { animation-delay: .38s; }
.hl-5 { animation-delay: .5s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; inset-block-start: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    margin-inline: -20px; padding: 12px 20px;
    background: rgb(from var(--tk-bg, #1A1018) r g b / .62);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-block-end: 1px solid var(--line);
}
.topbar-avatar { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-2); }
.topbar-name { font-family: var(--font-d); font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Hero (typographic statement) ---------- */
.hero { padding-block: 42px 18px; position: relative; }

/* glowing ON AIR chip — the signature broadcast sign */
.onair-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 13px; border-radius: 999px;
    background: rgb(from var(--tk-primary, #E8603D) r g b / .12);
    border: 1px solid var(--line-2);
    font-family: var(--font-d); font-size: 12.5px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft);
    box-shadow: 0 0 0 0 var(--glow);
    animation: onair-glow 2.6s ease-in-out infinite;
}
.onair-chip .dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 10px 1px var(--accent);
    animation: onair-blink 2.6s ease-in-out infinite;
}
@keyframes onair-glow {
    0%, 100% { box-shadow: 0 0 16px -4px var(--glow-soft); }
    50% { box-shadow: 0 0 26px 2px var(--glow); }
}
@keyframes onair-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

.hero-brand {
    margin-block-start: 22px;
    font-family: var(--font-d); font-weight: 300; font-size: clamp(1rem, 4.2vw, 1.35rem);
    letter-spacing: .02em; line-height: 1; color: var(--muted);
    display: flex; align-items: center; gap: 12px;
}
.hero-brand::after { content: ""; flex: 0 0 32px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
[dir="rtl"] .hero-brand::after { background: linear-gradient(270deg, var(--line-2), transparent); }

.hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.7rem, 12.5vw, 4.9rem);
    font-weight: 800; letter-spacing: -.035em; line-height: .95;
    margin-block-start: 10px; text-wrap: balance;
}
.hero-title .grad-word {
    background: var(--grad); background-size: 180% 180%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 26px rgb(from var(--tk-primary, #E8603D) r g b / .3));
}
.hero-tag { margin-block-start: 16px; font-family: var(--font-d); font-weight: 500; font-size: clamp(1.05rem, 4vw, 1.3rem); color: var(--txt); letter-spacing: -.01em; }
.hero-desc { margin-block-start: 14px; color: var(--muted); font-size: 15.5px; max-width: 56ch; }
.hero-desc p { margin-block-end: .6em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

/* ---------- Waveform equalizer (THE signature ambient) ---------- */
.waveform {
    display: flex; align-items: flex-end; justify-content: center; gap: 6px;
    height: 56px; margin-block-start: 28px;
    padding: 0 4px;
}
.waveform .bar {
    flex: 0 0 7px; height: 100%; border-radius: 6px;
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    transform-origin: bottom; transform: scaleY(.28);
    box-shadow: 0 0 12px -2px var(--glow);
    animation: wave 1.6s ease-in-out infinite;
}
[dir="rtl"] .waveform .bar { transform-origin: bottom; }
.waveform .bar:nth-child(1) { animation-delay: -.0s; }
.waveform .bar:nth-child(2) { animation-delay: -.2s; }
.waveform .bar:nth-child(3) { animation-delay: -.4s; }
.waveform .bar:nth-child(4) { animation-delay: -.6s; }
.waveform .bar:nth-child(5) { animation-delay: -.8s; }
.waveform .bar:nth-child(6) { animation-delay: -1.0s; }
.waveform .bar:nth-child(7) { animation-delay: -1.2s; }
.waveform .bar:nth-child(8) { animation-delay: -1.4s; }
@keyframes wave {
    0%, 100% { transform: scaleY(.24); }
    50% { transform: scaleY(1); }
}

/* ---------- Buttons ---------- */
.btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 24px; border: 0; border-radius: 15px;
    background: var(--grad); background-size: 160% 160%;
    color: #fff; font-family: var(--font-d); font-weight: 600; font-size: 15px;
    box-shadow: 0 10px 30px -8px var(--glow);
    transition: transform .25s ease, box-shadow .25s ease; overflow: hidden;
}
.btn-primary::after {
    content: ""; position: absolute; inset-block: 0; inset-inline-start: -60%;
    width: 40%; transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    transition: inset-inline-start .6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--glow); }
.btn-primary:hover::after { inset-inline-start: 120%; }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 22px; border-radius: 15px;
    background: var(--panel); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-d); font-weight: 600; font-size: 15px;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); }

/* ---------- Listen-on platform pills (conversion) ---------- */
.listen-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-block-start: 4px; }
.listen-pill {
    display: inline-flex; align-items: center; gap: 10px;
    flex: 0 1 auto;
    padding: 13px 20px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--txt); font-family: var(--font-d); font-weight: 600; font-size: 14px;
    transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s ease;
}
.listen-pill i { font-size: 19px; color: var(--accent); transition: transform .22s ease; }
.listen-pill:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 14px 30px -18px var(--glow); }
.listen-pill:hover i { transform: scale(1.12); }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric {
    padding: 22px 18px 18px; border-radius: var(--r-md);
    background: linear-gradient(165deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line); border-block-start: 1px solid var(--line-2);
    position: relative; overflow: hidden;
    box-shadow: inset 0 1px 0 rgb(from var(--tk-text, #F6EEF2) r g b / .05), 0 12px 30px -24px #000;
}
.metric::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 36%; height: 2px; background: var(--accent); }
.metric-num { font-family: var(--font-d); font-size: clamp(1.85rem, 6.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--txt); }
.metric-label { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-block-start: 6px; }

/* ---------- Quick actions (centered flex) ---------- */
.qa-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 28px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 0 1 110px; min-width: 92px;
    padding: 16px 6px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    color: var(--muted); font-size: 12px; font-weight: 600;
    transition: transform .22s ease, border-color .22s ease, color .22s ease;
}
.qa-item i { font-size: 19px; color: var(--accent); }
.qa-item:hover { transform: translateY(-3px); border-color: var(--line-2); color: var(--txt); }

/* ---------- Episode cards (services) — play ripple ---------- */
.ep-grid { display: grid; gap: 14px; counter-reset: ep; }
.ep-card {
    position: relative; display: flex; align-items: center; gap: 16px;
    border-radius: var(--r-lg); padding: 18px 18px;
    background: linear-gradient(165deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line); border-block-start: 1px solid var(--line-2);
    box-shadow: 0 18px 44px -34px #000;
    transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.ep-card::after { /* episode number watermark — ownable signature */
    counter-increment: ep; content: counter(ep, decimal-leading-zero);
    position: absolute; inset-block-start: -10px; inset-inline-end: 12px;
    font-family: var(--font-d); font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.3px rgb(from var(--tk-primary, #E8603D) r g b / .16);
    pointer-events: none;
}
.ep-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 28px 60px -28px var(--glow); }
.ep-play {
    position: relative; flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px; color: #fff;
    background: var(--grad);
    box-shadow: 0 8px 22px -8px var(--glow);
    overflow: hidden;
}
.ep-play img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ep-play .pico { position: relative; z-index: 2; }
/* ripple on hover */
.ep-play::before, .ep-play::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--accent); opacity: 0; transform: scale(.7);
}
.ep-card:hover .ep-play::before { animation: ripple 1.1s var(--ease) infinite; }
.ep-card:hover .ep-play::after { animation: ripple 1.1s var(--ease) .55s infinite; }
@keyframes ripple {
    0% { opacity: .6; transform: scale(.8); }
    100% { opacity: 0; transform: scale(1.7); }
}
.ep-body { min-width: 0; flex: 1; }
.ep-name { font-family: var(--font-d); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ep-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-block-start: 4px; }
.ep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block-start: 10px; }
.ep-dur { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent-soft); }
.ep-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-d); font-size: 12.5px; font-weight: 600; color: var(--txt); transition: gap .2s ease; }
.ep-link:hover { gap: 11px; }
[dir="rtl"] .ep-link i, [dir="rtl"] .ep-arrow i { transform: scaleX(-1); }

/* ---------- Packages (products as pricing) ---------- */
.pkg-grid { display: grid; gap: 16px; }
.pkg-card {
    position: relative; border-radius: var(--r-lg); padding: 24px;
    background: var(--panel); border: 1px solid var(--line);
    transition: transform .3s var(--ease), border-color .3s ease;
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pkg-card.is-featured {
    background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 24px 60px -22px var(--glow);
}
.pkg-badge {
    position: absolute; inset-block-start: -11px; inset-inline-start: 22px;
    padding: 4px 14px; border-radius: 999px; font-family: var(--font-d);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--grad); color: #fff;
}
.pkg-img { width: 100%; height: 148px; object-fit: cover; border-radius: var(--r-md); margin-block-end: 16px; }
.pkg-name { font-family: var(--font-d); font-size: 19px; font-weight: 700; }
.pkg-desc { color: var(--muted); font-size: 14px; margin-block-start: 6px; }
.pkg-price-row { display: flex; align-items: baseline; gap: 10px; margin-block-start: 16px; }
.pkg-price { font-family: var(--font-d); font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.pkg-price-old { color: var(--dim); font-size: 15px; text-decoration: line-through; }
.pkg-stock { font-size: 12px; font-weight: 600; margin-block-start: 4px; }
.pkg-stock.ok { color: var(--accent-soft); }
.pkg-stock.out { color: var(--dim); }
.pkg-card .btn-primary { width: 100%; justify-content: center; margin-block-start: 18px; padding-block: 13px; }

/* ---------- Cover art gallery (slow-drift carousel) ---------- */
.car { position: relative; }
.car-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;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item {
    flex: 0 0 72%; max-width: 320px; scroll-snap-align: center;
    position: relative; border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line); aspect-ratio: 1; background: var(--bg-2);
}
.car-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car-item:hover img { transform: scale(1.05); }
.mas-cap {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 26px 14px 12px; font-size: 12.5px; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, color-mix(in srgb, var(--bg-2) 90%, transparent));
}
.car-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--txt); backdrop-filter: blur(10px);
    display: grid; place-items: center; font-size: 14px; z-index: 5;
    transition: background .2s ease;
}
.car-nav:hover { background: var(--panel-2); }
.car-nav.prev { inset-inline-start: -6px; }
.car-nav.next { inset-inline-end: -6px; }
[dir="rtl"] .car-nav i { transform: scaleX(-1); }
@media (max-width: 759px) { .car-nav { display: none; } }

/* ---------- Reel (videos) ---------- */
.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-item { flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 24px 60px -32px var(--glow); }
.reel-item:only-child { flex-basis: 100%; margin-inline: auto; }
.reel-item iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.reel-label { padding: 13px 16px; font-size: 13px; color: var(--muted); background: var(--panel); }

/* ---------- Host (about) ---------- */
.host { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.host-photo {
    position: relative; width: 150px; height: 150px; flex-shrink: 0;
    border-radius: 50%; overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 0 0 6px rgb(from var(--tk-primary, #E8603D) r g b / .08), 0 24px 50px -22px var(--glow);
}
.host-photo img { width: 100%; height: 100%; object-fit: cover; }
.host-body { max-width: 56ch; }
.host-body p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.host-body p + p { margin-block-start: .7em; }

/* ---------- Testimonials (horizontal scroll) ---------- */
.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: 360px; scroll-snap-align: center; position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-block-start: 1px solid var(--line-2); box-shadow: 0 14px 36px -28px #000; }
.tm-card:only-child { margin-inline: auto; }
.tm-mark { position: absolute; inset-block-start: 6px; inset-inline-end: 18px; font-family: var(--font-d); font-weight: 800; font-size: 72px; line-height: 1; opacity: .2; color: var(--accent); }
.tm-stars { display: flex; gap: 3px; color: var(--accent); font-size: 13px; margin-block-end: 12px; }
.tm-text { font-size: 14.5px; color: var(--txt); }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; }
.tm-who img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-2); }
.tm-name { font-family: var(--font-d); font-weight: 700; font-size: 14px; }
.tm-sub { color: var(--dim); font-size: 12px; }

/* ---------- Info / links / iframes ---------- */
.link-grid { display: grid; gap: 10px; }
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    transition: transform .22s ease, border-color .22s 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: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-size: 16px; color: var(--accent); 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; }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Panels / forms ---------- */
.panel {
    position: relative; border-radius: var(--r-lg); padding: 26px 22px;
    background:
        radial-gradient(130% 100% at 100% 0%, rgb(from var(--tk-primary, #E8603D) r g b / .10), transparent 60%),
        linear-gradient(165deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line); border-block-start: 1px solid var(--line-2);
    box-shadow: inset 0 1px 0 rgb(from var(--tk-text, #F6EEF2) r g b / .05), 0 22px 50px -36px #000;
}
.f-label { display: block; font-family: var(--font-d); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-block: 14px 7px; text-transform: uppercase; }
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    background: rgb(from var(--tk-text, #F6EEF2) r g b / .04); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-b); font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(from var(--tk-primary, #E8603D) r g b / .22); }
.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='%23B097A6' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 16px) center;
    padding-inline-end: 42px; text-overflow: ellipsis;
}
[dir="rtl"] select.f-input { background-position: 16px center; }
select.f-input option { background: var(--bg-2); color: var(--txt); }
.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: 12px; font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: rgb(from var(--tk-primary, #E8603D) r g b / .12); border: 1px solid var(--line-2); color: var(--accent-soft); }
.alert-success { background: rgb(from var(--tk-success, #78C878) r g b / .1); border: 1px solid rgb(from var(--tk-success, #78C878) r g b / .32); color: var(--tk-success, #8fe08f); }

/* flatpickr dark skin */
.flatpickr-calendar { background: var(--panel) !important; border: 1px solid var(--line-2) !important; border-radius: 16px !important; box-shadow: 0 24px 60px -16px rgba(0,0,0,.7) !important; color: var(--txt) !important; }
.flatpickr-months, .flatpickr-weekdays { background: transparent !important; }
.flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, .flatpickr-weekday { color: var(--txt) !important; fill: var(--txt) !important; }
.flatpickr-day { color: var(--muted) !important; border-radius: 10px !important; }
.flatpickr-day:hover { background: var(--panel-2) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.flatpickr-day.flatpickr-disabled { color: rgb(from var(--tk-text, #F6EEF2) r g b / .16) !important; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--muted) !important; }

/* ---------- Hours ---------- */
.hour-row { display: flex; justify-content: space-between; align-items: center; padding-block: 11px; border-block-end: 1px solid var(--hair); font-size: 14px; }
.hour-row:last-child { border-block-end: 0; }
.hour-day { color: var(--muted); font-weight: 600; }
.hour-row.today .hour-day, .hour-row.today .hour-time { color: var(--accent-soft); font-weight: 700; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--accent-soft); font-weight: 700; font-size: 15px; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; gap: 12px; }
.pay-card { padding: 18px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); }
.pay-label { font-family: var(--font-d); font-weight: 700; font-size: 14px; margin-block-end: 6px; }
.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 + footer (centered flex) ---------- */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    flex: 0 1 108px; min-width: 96px;
    padding: 18px 8px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    font-size: 12px; color: var(--muted); font-weight: 600;
    transition: transform .22s var(--ease), border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.soc-item i { font-size: 22px; color: var(--txt); transition: color .22s ease; }
.soc-item:hover { transform: translateY(-3px); border-color: var(--line-2); color: var(--txt); box-shadow: 0 16px 34px -26px var(--glow); }
.soc-item:hover i { color: var(--accent); }
.footer { text-align: center; padding-block: 36px 10px; color: var(--dim); font-size: 12.5px; }
.footer a { color: var(--muted); }

/* ---------- Floating action 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 .35s var(--ease);
}
.dock.dock-hide { transform: translateY(120%); }
.dock-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 24px;
    background: color-mix(in srgb, var(--panel) 82%, transparent);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px -14px rgba(0,0,0,.8);
}
.dock-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 58px; padding: 8px 6px; border: 0; background: transparent;
    color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 14px;
    transition: color .2s ease, background .2s ease;
}
.dock-btn i { font-size: 17px; }
.dock-btn:hover, .dock-btn:focus-visible { color: var(--txt); background: var(--panel-2); }
.dock-btn.dock-main {
    background: var(--grad); color: #fff; border-radius: 18px;
    min-width: 64px; padding-block: 10px;
    box-shadow: 0 10px 26px -8px var(--glow);
    transform: translateY(-10px);
}

/* ---------- Modals ---------- */
.pm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: color-mix(in srgb, var(--tk-bg, #1A1018) 74%, transparent); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .3s ease; padding: 16px;
}
.pm-overlay.show { opacity: 1; }
.pm-box {
    position: relative;
    width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
    border-radius: 24px; padding: 26px 22px;
    background: var(--panel); border: 1px solid var(--line-2);
    transform: translateY(34px); transition: transform .35s var(--ease);
}
.pm-overlay.show .pm-box { transform: none; }
.pm-title { font-family: var(--font-d); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.pm-sub { color: var(--muted); font-size: 13.5px; margin-block-start: 4px; }
.pm-close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); }
.pm-head { position: relative; margin-block-end: 8px; }
.pm-actions { display: flex; gap: 10px; margin-block-start: 20px; }
.pm-actions .btn-ghost, .pm-actions .btn-primary { flex: 1; justify-content: center; }
.qr-wrap { display: grid; place-items: center; padding: 18px; background: #fff; border-radius: 18px; width: fit-content; margin: 18px auto; }
.share-row { display: flex; justify-content: center; gap: 12px; margin-block: 16px; }
.share-row a { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 17px; color: var(--txt); transition: transform .2s ease; }
.share-row a:hover { transform: translateY(-3px); }

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

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .air-wrap { max-width: 960px; }
    .sec { padding-block: 62px; }
    .metrics { grid-template-columns: repeat(4, 1fr); }
    .ep-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: repeat(3, 1fr); }
    .pkg-card.is-featured { transform: scale(1.03); }
    .reel-item { flex-basis: 56%; }
    .reel-item:only-child { flex-basis: 72%; max-width: 760px; }
    .tm-card { flex-basis: 42%; }
    .tm-card:only-child { flex-basis: 60%; }
    .soc-item { flex-basis: 140px; }
    .qa-item { flex-basis: 200px; }
    .car-item { flex-basis: 32%; }
    .waveform { height: 64px; }
    .host { flex-direction: row; text-align: start; align-items: center; gap: 32px; }
    .host-photo { width: 180px; height: 180px; }
}

/* ---------- Reduced motion (kill layer) ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-blob, .marquee-track, .onair-chip, .onair-chip .dot { animation: none !important; }
    .waveform .bar { animation: none !important; transform: scaleY(.5) !important; }
    .ep-card:hover .ep-play::before, .ep-card:hover .ep-play::after { animation: none !important; }
    .rv { opacity: 1; transform: none; transition: none; }
    .hero-load { opacity: 1 !important; transform: none !important; animation: none !important; }
    .btn-primary::after { display: none; }
}

/* ============================================================
   GLOBAL CONTAINMENT BASELINE
   overflow-x:clip on html is sticky-safe; stops horizontal pan;
   overscroll-behavior-x:none kills rubber-band; max-width:100%
   prevents children forcing the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
.car-track, .reel, .tm-track, .listen-row,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
