/* ══════════════════════════════════════════════════
   BackTrackR — App landing page styles
   Visual DNA from BackTrackR Theme.swift (slate console)
   ══════════════════════════════════════════════════ */

:root {
    --btr-accent: #0ea5e9;
    --btr-accent-bright: #38bdf8;
    --btr-accent-dark: #0284c7;
    --btr-accent-glow: rgba(14, 165, 233, 0.15);
    --btr-accent-dim: rgba(14, 165, 233, 0.08);
    --btr-cue-now: #10b981;
    --btr-cue-next: #f59e0b;
    --btr-logo-from: #d946ef;
    --btr-logo-mid: #818cf8;
    --btr-logo-to: #38bdf8;
    --btr-shell-border: #1e293b;
    --btr-widget-border: #334155;
    --btr-font-display: 'Sora', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --btr-font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --btr-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── Page shell — override MHX base tokens with app slate ─ */
.btr-page {
    --bg-deep: #0f172a;
    --bg-dark: #111827;
    --bg-card: #151d2e;
    --bg-card-hover: #1a2438;
    --border: rgba(30, 41, 59, 0.95);
    --border-hover: rgba(51, 65, 85, 0.95);
    --text: #f8fafc;
    --text-muted: #c5d0de;
    --text-dim: #94a3b8;
    --font: var(--btr-font);
    --radius: 12px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    background: var(--bg-deep);
    font-family: var(--btr-font);
    color: var(--text);
    color-scheme: dark;
    --btr-gutter: clamp(20px, 3vw, 40px);
    --btr-hero-h: min(86svh, 1200px);
    --btr-max: min(calc(100vw - 2 * var(--btr-gutter)), calc(var(--btr-hero-h) * 3 / 2));
}

.btr-page h1,
.btr-page h2,
.btr-page h3,
.btr-page .btr-nav-title,
.btr-page .btr-hero-appname {
    font-family: var(--btr-font-display);
    overflow-wrap: break-word;
}

.btr-page {
    overflow-x: clip;
}

.btr-section[id],
.btr-manual-section,
.btr-manual-hero,
.btr-support,
.btr-privacy {
    scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px));
}

.btr-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--btr-shell-border);
    transition: background 0.25s ease, border-color 0.25s ease;
}

body.btr-nav-open {
    overflow: hidden;
}

.btr-nav-inner {
    position: relative;
    width: var(--btr-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.btr-nav.scrolled {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--btr-shell-border);
}

.btr-landing .btr-nav {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.btr-landing .btr-nav.scrolled {
    border-bottom-color: var(--btr-shell-border);
}

.btr-nav.scrolled .btr-nav-inner {
    padding-top: 14px;
    padding-bottom: 14px;
}

.btr-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

a.btr-nav-brand:hover .btr-nav-title {
    color: var(--btr-accent);
}

.btr-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 0;
    object-fit: contain;
}

.btr-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.btr-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 22px;
}

.btr-nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.92);
    white-space: nowrap;
    transition: var(--transition);
}

.btr-nav-links a:hover {
    color: var(--text);
}

.btr-nav-links a[aria-current="page"] {
    color: #fff;
}

.btr-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.btr-nav-back:hover {
    color: var(--btr-accent);
}

.btr-nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btr-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Hero — 3:2 photo column, page width locked to it ─ */
.btr-hero-frame {
    position: relative;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    background: var(--bg-deep);
}

.btr-hero-blur {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-50%);
}

.btr-hero-blur-inner {
    position: absolute;
    top: -48px;
    right: -48px;
    bottom: -48px;
    left: -48px;
    filter: blur(24px) saturate(1.08);
}

.btr-hero-blur::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
}

.btr-hero {
    position: relative;
    z-index: 1;
    width: var(--btr-max);
    margin: 0 auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    max-height: var(--btr-hero-h);
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
    background: #050608;
}

.btr-hero-slides {
    position: absolute;
    inset: 0;
}

.btr-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.btr-hero-photo.is-active {
    opacity: 1;
}

.btr-hero-dots {
    position: absolute;
    right: clamp(16px, 2vw, 28px);
    bottom: clamp(16px, 2vw, 28px);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.btr-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
}

.btr-hero-dots button::before {
    content: '';
    position: absolute;
    inset: -14px;
}

.btr-hero-dots button[aria-selected="true"] {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .btr-hero-photo,
    .btr-eq-slide,
    .btr-fade {
        transition: none;
        animation: none;
    }

    .btr-fade {
        opacity: 1;
        transform: none;
    }
}

.btr-hero-shade {
    display: none;
}

.btr-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-width: 42rem;
    margin: 20px;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    background: rgba(5, 6, 8, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.btr-hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(248, 250, 252, 0.82);
    margin-bottom: 10px;
}

.btr-hero-inner h1 {
    max-width: 18ch;
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 18px;
}

.btr-hero-tagline {
    max-width: none;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.92);
    margin-bottom: 20px;
}

.btr-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.btr-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    background: none;
    color: rgba(248, 250, 252, 0.88);
    border: 0;
}

.btr-badge-soon {
    background: none;
    color: rgba(248, 250, 252, 0.88);
    border: 0;
}

.btr-requirements {
    font-size: 14px;
    color: rgba(148, 163, 184, 0.9);
}

.btr-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    background: var(--btr-accent);
    color: #fff;
    font-family: var(--btr-font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 6px;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.btr-hero-cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

.btr-hero-cta-note {
    margin-top: 12px;
    font-size: 15px;
    color: rgba(226, 232, 240, 0.92);
}

.btr-hero-cta-note a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btr-hero-beta {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    text-shadow: none;
    background: rgba(21, 29, 46, 0.94);
    border: 1px solid var(--btr-widget-border);
    border-left: 3px solid var(--btr-cue-now);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transition: var(--transition);
}

.btr-hero-beta:hover {
    border-color: var(--btr-widget-border);
    border-left-color: var(--btr-cue-next);
    background: rgba(26, 36, 56, 0.96);
    transform: translateY(-2px);
}

.btr-hero-beta-soon {
    cursor: default;
}

.btr-hero-beta-soon:hover {
    border-color: var(--btr-widget-border);
    border-left-color: var(--btr-cue-now);
    background: rgba(21, 29, 46, 0.94);
    transform: none;
}

.btr-hero-beta-soon .btr-hero-beta-action {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--btr-widget-border);
}

.btr-hero-beta-app {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(14, 165, 233, 0.25));
}

.btr-hero-beta-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.btr-hero-beta-copy strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.btr-hero-beta-copy span {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}

.btr-hero-beta-action {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--btr-accent);
    color: #041018;
    font-size: 13px;
    font-weight: 700;
}

.btr-hero-beta-page {
    max-width: 42rem;
    margin-top: 28px;
    padding: 18px 22px;
}

.btr-hero-beta-page .btr-hero-beta-app {
    width: 52px;
    height: 52px;
}

.btr-hero-beta-page .btr-hero-beta-copy strong {
    font-size: 17px;
}

.btr-hero-beta-page .btr-hero-beta-copy span {
    font-size: 14px;
}

.btr-hero-beta-page .btr-hero-beta-action {
    padding: 10px 18px;
    font-size: 14px;
}

/* Keep unused hero bits from colliding if referenced elsewhere */
.btr-hero-bg,
.btr-hero-orb,
.btr-hero-brand,
.btr-hero-icon-wrap,
.btr-hero-visual {
    display: none;
}

/* Legacy simple frame — used in screenshot gallery */
.btr-ipad-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.btr-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #111827 50%, #0c1220 100%);
    border: 1px dashed rgba(14, 165, 233, 0.25);
    color: var(--text-dim);
    text-align: center;
    padding: 24px;
}

.btr-screenshot-placeholder svg {
    opacity: 0.4;
}

.btr-screenshot-placeholder span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.btr-screenshot-placeholder small {
    font-size: 12px;
    color: var(--text-dim);
}

/* ─── Sections ─────────────────────────────────── */
.btr-section {
    padding: 88px var(--btr-gutter);
    border-top: 1px solid var(--btr-shell-border);
    background: var(--bg-deep);
}

.btr-section-alt {
    background: var(--bg-dark);
}

.btr-feature-bands {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 24px;
}

.btr-feature-bands > .btr-section-inner {
    padding: 0 0 20px;
}

.btr-shot-band {
    width: var(--btr-max);
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto 12px;
    padding: 32px 24px;
    border-radius: 14px;
}

.btr-shot-band-accent {
    background: rgba(14, 165, 233, 0.05);
}

.btr-shot-band-now {
    background: rgba(16, 185, 129, 0.045);
}

.btr-shot-band-next {
    background: rgba(245, 158, 11, 0.04);
}

.btr-shot-band .btr-shot,
.btr-shot-band .btr-shot-mid {
    margin: 0;
}

.btr-shot-band .btr-feature-text {
    margin-top: 0;
}

.btr-shot-band:last-child {
    margin-bottom: 0;
}

.btr-section-inner {
    max-width: var(--btr-max);
    margin: 0 auto;
}

.btr-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--btr-accent);
    margin-bottom: 14px;
}

.btr-section h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--text);
}

.btr-section-intro {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 40px;
}

.btr-audience-band {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
    gap: 20px 48px;
    align-items: start;
}

.btr-audience-band .btr-section-intro {
    margin-bottom: 14px;
}

.btr-audience-band h2 {
    margin-bottom: 0;
}

.btr-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    max-width: none;
}

.btr-audience span {
    padding: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: 0;
    color: var(--text-muted);
}

.btr-audience span:not(:last-child)::after {
    content: ' · ';
    color: var(--text-dim);
}

.btr-shot {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 0.80fr);
    gap: 24px 36px;
    align-items: center;
    margin: 0 0 36px;
}

.btr-shot-flip {
    grid-template-columns: minmax(300px, 1.28fr) minmax(220px, 0.72fr);
}

.btr-shot-flip .btr-shot-copy {
    order: 2;
}

.btr-shot-copy {
    margin-bottom: 0;
    max-width: 28rem;
    padding: 22px 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--btr-widget-border);
    border-left: 3px solid var(--btr-accent);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.btr-shot:has(.btr-shot-frame-now) .btr-shot-copy {
    border-left-color: var(--btr-cue-now);
}

.btr-shot:has(.btr-shot-frame-next) .btr-shot-copy {
    border-left-color: var(--btr-cue-next);
}

.btr-shot-copy h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}

.btr-shot-copy p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
}

.btr-shot-frame {
    position: relative;
    display: block;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--btr-widget-border);
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.btr-shot-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
    background: var(--btr-accent);
}

.btr-shot-frame-now::before {
    background: var(--btr-cue-now);
}

.btr-shot-frame-next::before {
    background: var(--btr-cue-next);
}

.btr-shot-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.btr-shot,
.btr-shot-mid,
.btr-shot-frame {
    min-width: 0;
}

.btr-shot-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: 4 / 3;
    box-sizing: border-box;
    padding: 24px 20px;
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.06), transparent 42%),
        #0c1220;
    border-radius: 8px;
    text-align: center;
}

.btr-shot-ph strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.btr-shot-ph span {
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.btr-shot-ph small {
    font-family: var(--btr-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--btr-accent-bright);
}

.btr-shot-ph-card {
    margin-bottom: 14px;
    padding: 16px 12px;
    gap: 8px;
}

.btr-shot-ph-card strong {
    font-size: 15px;
}

.btr-shot-ph-card span {
    font-size: 12px;
    max-width: 28ch;
}

.btr-shot-ph-card small {
    font-size: 10px;
}

.btr-shot-mid {
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) minmax(280px, 1.2fr);
    gap: 20px 28px;
    align-items: center;
    margin: 40px 0 24px;
}

.btr-shot-mid.btr-shot-flip {
    grid-template-columns: minmax(280px, 1.2fr) minmax(200px, 0.8fr);
}

.btr-shot-mid + .btr-shot-mid {
    margin-top: 24px;
}

.btr-shot-mid .btr-shot-copy {
    max-width: 24rem;
    padding: 16px 18px 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btr-shot-mid .btr-shot-copy h3 {
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: 8px;
}

.btr-shot-mid .btr-shot-copy p {
    font-size: 15px;
    line-height: 1.6;
}

.btr-shot-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 0;
    align-items: start;
}

.btr-shot-pair .btr-shot-frame {
    min-width: 0;
}

.btr-feature-text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.btr-feature-text > div {
    padding: 16px 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--btr-widget-border);
    border-radius: 12px;
}

.btr-feature-text-plain > div {
    padding: 18px 20px 20px;
}

.btr-feature-text-now {
    border-left: 3px solid var(--btr-cue-now);
}

.btr-feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text);
}

.btr-feature-text p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.btr-eq-stage {
    position: relative;
    margin-bottom: 0;
    aspect-ratio: 1532 / 1583;
}

.btr-eq-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.btr-eq-slide.is-active {
    opacity: 1;
}

.btr-eq-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    border-radius: 8px;
    background: #0c1220;
}

.btr-eq-tabs {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
}

.btr-eq-tabs button {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--btr-widget-border);
    background: rgba(30, 41, 59, 0.65);
    color: var(--text-muted);
    font-family: var(--btr-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.btr-eq-tabs button[aria-selected="true"] {
    background: var(--btr-accent-dim);
    border-color: rgba(56, 189, 248, 0.45);
    color: var(--btr-accent-bright);
}

.btr-ph {
    margin-bottom: 14px;
}

.btr-ph-loops {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.btr-ph-loops span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--btr-widget-border);
    background: rgba(30, 41, 59, 0.65);
    font-family: var(--btr-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.btr-ph-loops span:nth-child(1) { border-top: 2px solid #3b82f6; }
.btr-ph-loops span:nth-child(2) { border-top: 2px solid #ef4444; }
.btr-ph-loops span:nth-child(3) { border-top: 2px solid #22c55e; }
.btr-ph-loops span:nth-child(4) { border-top: 2px solid #f59e0b; }
.btr-ph-loops span:nth-child(5) { border-top: 2px solid #8b5cf6; }
.btr-ph-loops span:nth-child(6) { border-top: 2px solid #ec4899; }
.btr-ph-loops span:nth-child(7) { border-top: 2px solid #06b6d4; }
.btr-ph-loops span:nth-child(8) { border-top: 2px solid #84cc16; }

.btr-ph-loops span.is-on {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(56, 189, 248, 0.5);
    color: var(--btr-accent-bright);
}

.btr-ph-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    background: #0c1220;
    border: 1px solid var(--btr-shell-border);
}

.btr-ph-ctrl i {
    flex: 1;
    height: 3px;
    background: #334155;
    position: relative;
}

.btr-ph-ctrl i.on::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -4px 0 0 -4px;
    border-radius: 2px;
    background: var(--btr-cue-next);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

.btr-ph-tc {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    background: #0c1220;
    border: 1px solid var(--btr-shell-border);
}

.btr-ph-tc-label {
    font-family: var(--btr-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--btr-accent-bright);
}

.btr-ph-tc-time {
    font-family: var(--btr-font-mono);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 44px;
}

.btr-ph-dash {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr 0.8fr;
    gap: 6px;
    height: 44px;
}

.btr-ph-dash span {
    border-radius: 8px;
    border: 1px solid var(--btr-widget-border);
    background: rgba(30, 41, 59, 0.65);
}

.btr-ph-dash span.is-now {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.12);
    color: var(--btr-cue-now);
    font-family: var(--btr-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btr-ph-dash span.is-next {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.12);
    color: var(--btr-cue-next);
    font-family: var(--btr-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btr-ph-import {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 44px;
    align-items: center;
}

.btr-ph-import span {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--btr-widget-border);
    background: rgba(30, 41, 59, 0.65);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Legacy feature grid kept for any leftover markup */

.btr-moment-panel {
    margin: 0;
    background: #0c1220;
    border: 1px solid var(--btr-widget-border);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
}

.btr-moment-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--btr-accent), var(--btr-logo-mid), var(--btr-cue-next));
    opacity: 0.85;
    z-index: 1;
}

.btr-moment-shot {
    display: block;
    width: 100%;
    height: auto;
}

/* Legacy feature grid kept for any leftover markup */
.btr-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.btr-feature {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--btr-widget-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.btr-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btr-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--btr-accent-dim);
    color: var(--btr-accent);
    margin-bottom: 20px;
}

.btr-feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.btr-feature p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ─── Complete feature list ────────────────────── */
.btr-feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

@media (max-width: 900px) {
    .btr-feature-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .btr-feature-text {
        grid-template-columns: 1fr;
    }

    .btr-shot,
    .btr-shot-flip {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btr-shot-flip .btr-shot-copy {
        order: 0;
    }

    .btr-shot-copy {
        max-width: none;
    }

    .btr-shot-mid,
    .btr-shot-mid.btr-shot-flip {
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .btr-shot-mid .btr-shot-copy {
        max-width: none;
    }

    .btr-shot-frame,
    .btr-shot-img {
        max-width: 100%;
        min-width: 0;
        max-height: none;
    }

    .btr-audience-band {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btr-hero-beta {
        flex-wrap: wrap;
    }
}

.btr-feature-list-group {
    padding: 18px 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--btr-widget-border);
    border-top: 3px solid var(--btr-accent);
    border-radius: 12px;
}

.btr-feature-list-group:nth-child(3n+2) {
    border-top-color: var(--btr-cue-now);
}

.btr-feature-list-group:nth-child(3n) {
    border-top-color: var(--btr-cue-next);
}

.btr-feature-list-group h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--btr-font-display);
    color: var(--btr-accent-bright);
    margin-bottom: 12px;
}

.btr-feature-list-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.btr-feature-list-group li {
    position: relative;
    padding-left: 14px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-muted);
}

.btr-feature-list-group li::before {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--btr-accent);
}

.btr-section-intro a {
    color: var(--btr-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── Pro routing callout ──────────────────────── */
.btr-callout {
    margin-top: 24px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--btr-widget-border);
    border-left: 4px solid var(--btr-cue-now);
    border-radius: 12px;
    max-width: none;
}

.btr-callout p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 72rem;
}

/* ─── Steps ────────────────────────────────────── */
.btr-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: step;
}

.btr-step {
    position: relative;
    padding: 24px 22px 26px;
    background: var(--bg-card);
    border: 1px solid var(--btr-widget-border);
    border-radius: 12px;
    counter-increment: step;
}

.btr-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--btr-accent-dim);
    color: var(--btr-accent-bright);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--btr-font-mono);
    letter-spacing: 0;
    margin-bottom: 14px;
}

.btr-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.btr-step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ─── Screenshot gallery ───────────────────────── */
.btr-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.btr-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
}

.btr-gallery-item.btr-gallery-hero {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
}

.btr-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Videos ───────────────────────────────────── */
.btr-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.btr-video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    padding: 24px;
    text-align: center;
}

.btr-video-placeholder span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.btr-video-placeholder small {
    font-size: 12px;
    color: var(--text-dim);
}

/* ─── Media / video library page ───────────────── */
.btr-media-page {
    padding-bottom: 80px;
}

.btr-media-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.btr-media-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btr-media-filter {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btr-media-filter:hover {
    color: var(--text);
    border-color: rgba(14, 165, 233, 0.3);
}

.btr-media-filter.active {
    color: var(--btr-accent);
    background: var(--btr-accent-dim);
    border-color: rgba(14, 165, 233, 0.35);
}

.btr-media-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btr-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.btr-media-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.btr-media-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.btr-media-card.is-hidden {
    display: none;
}

.btr-media-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0f172a 0%, #111827 50%, #0c1220 100%);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    overflow: hidden;
}

.btr-media-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.btr-media-thumb-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
}

.btr-media-play {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.9);
    color: #fff;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    transition: var(--transition);
}

.btr-media-card:hover .btr-media-play {
    transform: scale(1.08);
    background: var(--btr-accent);
}

.btr-media-thumb-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.btr-media-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    z-index: 1;
}

.btr-media-yt-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 6px;
    z-index: 1;
}

.btr-media-yt-badge svg {
    flex-shrink: 0;
}

.btr-media-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btr-media-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--btr-accent);
}

.btr-media-body h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
}

.btr-media-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.btr-media-placeholder-note {
    font-size: 11px;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 4px;
}

.btr-media-no-results {
    display: none;
    grid-column: 1 / -1;
    padding: 64px 24px;
    text-align: center;
    color: var(--text-muted);
}

.btr-media-no-results.visible {
    display: block;
}

.btr-media-count {
    font-size: 13px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ─── Getting started ──────────────────────────── */
.btr-manual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.btr-manual-block h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.btr-manual-block p,
.btr-manual-block li {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-muted);
}

.btr-manual-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btr-manual-block li {
    padding-left: 20px;
    position: relative;
}

.btr-manual-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--btr-accent);
}

/* ─── FAQ ──────────────────────────────────────── */
.btr-faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 42rem;
}

.btr-faq-item {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    overflow: visible;
    background: none;
}

.btr-faq-item summary {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.btr-faq-item summary::-webkit-details-marker {
    display: none;
}

.btr-faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dim);
    transition: var(--transition);
}

.btr-faq-item[open] summary::after {
    content: '−';
    color: var(--text);
}

.btr-faq-item summary:hover {
    color: #fff;
}

.btr-faq-answer {
    padding: 0 0 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.btr-faq-col {
    max-width: 42rem;
    margin: 0 auto;
}

.btr-faq-col .btr-faq,
.btr-faq-col .btr-hero-beta-page {
    max-width: none;
}

.btr-close-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    gap: 36px 48px;
    align-items: start;
}

.btr-close-grid .btr-faq {
    max-width: none;
}

.btr-close-grid > div > h2 {
    margin-bottom: 8px;
}

.btr-cta-card {
    position: sticky;
    top: 96px;
    padding: 28px 24px;
    background: #0c1220;
    border: 1px solid var(--btr-widget-border);
    border-radius: 10px;
}

.btr-cta-card h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    color: var(--text);
}

.btr-cta-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btr-cta-card .btr-cta-note {
    margin-top: 12px;
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.btr-landing .btr-section {
    padding-top: 44px;
    padding-bottom: 44px;
}

.btr-landing .btr-section-slim {
    padding-top: 28px;
    padding-bottom: 24px;
}

.btr-landing .btr-section h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 12px;
}

.btr-landing .btr-audience-band h2 {
    margin-bottom: 0;
}

.btr-landing .btr-section-intro {
    font-size: 17px;
    margin-bottom: 28px;
}

.btr-landing .btr-audience-band .btr-section-intro {
    margin-bottom: 14px;
}

.btr-landing .btr-cta-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ─── CTA band ─────────────────────────────────── */
.btr-cta-band {
    width: min(var(--btr-max), calc(100% - 2 * var(--btr-gutter)));
    margin: 0 auto;
    padding: 80px 0;
    text-align: left;
    background: transparent;
    border-top: 1px solid var(--btr-shell-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btr-cta-band h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.btr-cta-band p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 36rem;
}

.btr-cta-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.btr-cta-btn {
    min-width: 0;
    padding: 14px 26px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
}

.btr-cta-note {
    margin-top: 16px;
    margin-bottom: 0 !important;
    font-size: 15px !important;
    color: var(--text-muted);
    opacity: 0.95;
}

.btr-badge-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btr-badge-link:hover {
    border-color: var(--btr-accent);
    color: var(--btr-accent);
}

/* ─── Footer ───────────────────────────────────── */
.btr-footer {
    padding: 40px var(--btr-gutter);
    border-top: 1px solid var(--btr-shell-border);
    background: var(--bg-deep);
}

.btr-footer-inner {
    max-width: var(--btr-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.btr-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.btr-footer-links a {
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.btr-footer-links a:hover {
    color: var(--btr-accent);
}

.btr-footer-copy {
    font-size: 14px;
    color: var(--text-dim);
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ─── User manual page ─────────────────────────── */
.btr-manual-hero {
    padding: 120px 24px 48px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, transparent 100%);
}

.btr-manual-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.btr-manual-hero h1 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text);
}

.btr-manual-hero-intro {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 24px;
}

.btr-manual-draft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.1);
    color: var(--btr-cue-next);
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-bottom: 28px;
}

.btr-manual-search-wrap {
    position: relative;
    max-width: 480px;
}

.btr-manual-search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

.btr-manual-search {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.btr-manual-search:focus {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 0 3px var(--btr-accent-glow);
}

.btr-manual-search::placeholder {
    color: var(--text-dim);
}

.btr-manual-search-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-dim);
    min-height: 20px;
}

.btr-manual-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    align-items: start;
}

.btr-manual-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding-right: 8px;
}

.btr-manual-sidebar h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.btr-manual-toc {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btr-manual-toc a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.btr-manual-toc a:hover {
    color: var(--text);
    background: var(--btr-accent-dim);
}

.btr-manual-toc a.active {
    color: var(--btr-accent);
    background: var(--btr-accent-dim);
    border-left-color: var(--btr-accent);
}

.btr-manual-toc .btr-toc-group {
    margin-top: 16px;
    margin-bottom: 6px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.btr-manual-toc a.is-hidden {
    display: none;
}

.btr-manual-content {
    min-width: 0;
}

.btr-manual-section {
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 96px;
}

.btr-manual-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.btr-manual-section.is-hidden {
    display: none;
}

.btr-manual-section h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.btr-manual-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text);
}

.btr-manual-section p,
.btr-manual-section li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btr-manual-section ul,
.btr-manual-section ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.btr-manual-section li {
    margin-bottom: 8px;
}

.btr-manual-section a {
    color: var(--btr-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btr-manual-tip {
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--btr-accent-dim);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--btr-accent);
}

.btr-manual-tip strong {
    color: var(--btr-accent);
}

.btr-manual-tip p {
    margin-bottom: 0;
}

.btr-manual-media {
    margin: 24px 0;
}

.btr-manual-media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.btr-manual-glyph {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.42em;
    margin: 0 0.22em;
    height: 2.15em;
}

.btr-manual-glyph img {
    display: block;
    height: 2.15em;
    width: auto;
    max-width: 18em;
    border-radius: 4px;
}

.btr-manual-glyph-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 2.15em;
    min-width: 2.15em;
    padding: 0 0.38em;
    font-size: 0.62em;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    color: var(--text-dim);
    border: 1px dashed rgba(14, 165, 233, 0.4);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.85);
}

.btr-manual-glyph:has(> img) .btr-manual-glyph-ph {
    display: none;
}

.btr-manual-media .btr-ipad-frame {
    aspect-ratio: 4 / 3;
}

.btr-screenshot-placeholder:has(> img) {
    padding: 0;
    border-style: solid;
    border-color: var(--border);
    background: #000;
    cursor: zoom-in;
}

.btr-screenshot-placeholder > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.btr-manual-shot-link {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: zoom-in;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(14, 165, 233, 0.25);
    touch-action: manipulation;
}

.btr-manual-shot-link:focus-visible {
    outline: 2px solid var(--btr-accent);
    outline-offset: -2px;
}

.btr-screenshot-placeholder:has(> img):hover {
    border-color: rgba(14, 165, 233, 0.55);
}

.btr-screenshot-placeholder:has(> img)::after {
    content: "Click to enlarge";
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.btr-screenshot-placeholder:has(> img):hover::after {
    opacity: 1;
}

/* Manual screenshot lightbox — closed must not eat WKWebView touches/scroll */
.btr-manual-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 14, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.btr-manual-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.btr-manual-lightbox__img {
    max-width: min(1200px, 96vw);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    background: #000;
    pointer-events: none;
}

.btr-manual-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.btr-manual-lightbox__close:hover {
    background: rgba(14, 165, 233, 0.35);
}

.btr-manual-lightbox__hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

body.btr-lightbox-open {
    overflow: hidden;
}

.btr-manual-no-results {
    display: none;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.btr-manual-no-results.visible {
    display: block;
}

.btr-manual-mobile-toc {
    display: none;
    margin-bottom: 32px;
}

.btr-manual-mobile-toc summary {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    list-style: none;
}

.btr-manual-mobile-toc summary::-webkit-details-marker {
    display: none;
}

.btr-manual-mobile-toc[open] .btr-manual-toc {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

mark.btr-search-hit {
    background: rgba(14, 165, 233, 0.25);
    color: var(--text);
    border-radius: 2px;
    padding: 0 2px;
}

/* ─── Privacy page ─────────────────────────────── */
.btr-privacy {
    padding: 120px 24px 80px;
    max-width: 720px;
    margin: 0 auto;
}

.btr-privacy h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.btr-privacy-updated {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.btr-privacy h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text);
}

.btr-privacy p,
.btr-privacy li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btr-privacy ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.btr-privacy a {
    color: var(--btr-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── Fade-in animation ────────────────────────── */
.btr-fade {
    opacity: 0;
    transform: translateY(40px);
}

.btr-fade.visible {
    animation: btr-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes btr-rise {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .btr-nav-inner {
        width: 100%;
        max-width: none;
        padding-left: var(--btr-gutter);
        padding-right: var(--btr-gutter);
        box-sizing: border-box;
    }

    .btr-nav-toggle {
        margin-right: 0;
    }

    .btr-nav-links {
        display: none;
        position: fixed;
        top: calc(72px + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px max(20px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid var(--border);
        gap: 4px;
        max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 99;
    }

    .btr-nav.scrolled .btr-nav-links {
        top: calc(64px + env(safe-area-inset-top, 0px));
        max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px));
    }

    .btr-nav-links.open {
        display: flex;
    }

    .btr-nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 4px;
        font-size: 17px;
    }

    .btr-nav-toggle {
        display: flex;
    }

    .btr-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .btr-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .btr-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
    .btr-page {
        --btr-gutter: 16px;
        --btr-max: 100%;
        --btr-hero-h: auto;
    }

    .btr-nav-inner {
        width: 100%;
        max-width: none;
        padding-left: var(--btr-gutter);
        padding-right: var(--btr-gutter);
        box-sizing: border-box;
    }

    .btr-nav-toggle {
        margin-right: 0;
    }

    .btr-hero-frame {
        margin-top: 0;
        width: 100%;
    }

    .btr-hero {
        width: 100%;
        max-width: none;
        aspect-ratio: unset;
        max-height: none;
        min-height: 100svh;
        height: auto;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
    }

    .btr-hero-blur {
        width: 100%;
        left: 0;
        transform: none;
    }

    .btr-hero-blur-inner {
        filter: blur(18px) saturate(1.06);
    }

    .btr-hero-shade {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            to top,
            rgba(5, 6, 8, 0.82) 0%,
            rgba(5, 6, 8, 0.42) 46%,
            rgba(5, 6, 8, 0.12) 72%,
            transparent 100%
        );
    }

    .btr-hero-inner {
        z-index: 2;
        width: calc(100% - 32px);
        max-width: none;
        margin: 12px 16px 16px;
        padding: 16px 16px 18px;
        background: rgba(5, 6, 8, 0.42);
        box-sizing: border-box;
    }

    .btr-hero-inner h1 {
        max-width: 100%;
        font-size: clamp(26px, 7.2vw, 36px);
        margin-bottom: 12px;
    }

    .btr-hero-tagline {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 14px;
        overflow-wrap: break-word;
    }

    .btr-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 16px;
    }

    .btr-hero-dots {
        top: calc(80px + env(safe-area-inset-top, 0px));
        right: 12px;
        bottom: auto;
        z-index: 3;
    }

    .btr-hero-beta {
        gap: 12px;
        padding: 12px 12px 12px 14px;
    }

    .btr-hero-beta-copy span {
        font-size: 13px;
    }

    .btr-shot-band {
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 24px var(--btr-gutter);
        margin-bottom: 0;
    }

    .btr-section {
        padding: 56px var(--btr-gutter);
    }

    .btr-landing .btr-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .btr-feature-bands {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 16px;
    }

    .btr-cta-band {
        width: var(--btr-max);
        padding: 48px 0;
    }

    .btr-features,
    .btr-gallery,
    .btr-manual {
        grid-template-columns: 1fr;
    }

    .btr-steps,
    .btr-videos {
        grid-template-columns: 1fr;
    }

    .btr-callout {
        padding: 20px 22px;
    }

    .btr-close-grid {
        grid-template-columns: 1fr;
    }

    .btr-cta-card {
        position: static;
    }

    .btr-shot-copy {
        padding: 18px 16px 20px;
    }

    .btr-footer {
        padding: 28px var(--btr-gutter) max(28px, env(safe-area-inset-bottom, 0px));
    }

    .btr-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .btr-footer-links {
        gap: 4px 16px;
    }

    .btr-footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 0;
    }

    .btr-faq-item summary {
        min-height: 48px;
        padding: 16px 0;
    }

    .btr-manual-hero {
        padding: 108px var(--btr-gutter) 36px;
    }

    .btr-manual-layout {
        grid-template-columns: 1fr;
        padding: 28px var(--btr-gutter) 60px;
    }

    .btr-manual-sidebar {
        display: none;
    }

    .btr-manual-mobile-toc {
        display: block;
    }

    .btr-manual-media-row {
        grid-template-columns: 1fr;
    }

    .btr-manual-lightbox {
        padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
    }

    .btr-manual-lightbox__img {
        max-width: 100%;
        max-height: 82dvh;
    }

    .btr-media-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0 var(--btr-gutter);
    }

    .btr-media-grid-wrap {
        padding: 0 var(--btr-gutter);
    }

    .btr-media-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .btr-media-filter {
        min-height: 40px;
        padding: 10px 14px;
    }

    .btr-support {
        padding: 108px var(--btr-gutter) 64px;
    }

    .btr-support-panel,
    .btr-page-beta .btr-support-panel {
        padding: 20px 16px;
    }

    .btr-privacy {
        padding: 108px var(--btr-gutter) 64px;
    }

    .btr-privacy h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .btr-hero-beta-page {
        margin-top: 22px;
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .btr-section {
        padding: 48px var(--btr-gutter);
    }

    .btr-feature-bands {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 8px;
    }

    .btr-feature-list {
        grid-template-columns: 1fr;
    }

    .btr-shot-pair {
        grid-template-columns: 1fr;
    }

    .btr-hero-beta-app {
        width: 40px;
        height: 40px;
    }

    .btr-hero-beta-page .btr-hero-beta-app {
        width: 44px;
        height: 44px;
    }

    .btr-support-tabs {
        flex-wrap: wrap;
    }

    .btr-support-tab {
        min-height: 44px;
    }
}

/* ─── Support / admin ─────────────────────────── */
.btr-support {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.btr-support-intro {
    margin-bottom: 36px;
}

.btr-support-intro h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 12px;
}

.btr-support-intro p,
.btr-support-hint {
    color: var(--text-muted);
    line-height: 1.55;
}

.btr-support [hidden],
.btr-support-pane[hidden],
.btr-support-form[hidden],
.btr-create-success[hidden],
#admin-sign-out[hidden] {
    display: none !important;
}

.btr-support-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.btr-support-tab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btr-support-tab.is-active {
    color: #041018;
    background: var(--btr-accent);
    border-color: var(--btr-accent);
}

.btr-support-pane {
    max-width: 920px;
}

.btr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btr-support-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btr-support-form-compact {
    max-width: 420px;
}

.btr-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btr-upload-heading {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.btr-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btr-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.btr-upload-status {
    font-size: 13px;
    color: var(--text-muted);
}

.btr-upload-status.is-error {
    color: #f87171;
}

.btr-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btr-file-preview img,
.btr-file-preview video {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #000;
}

.btr-mine-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 18px;
    align-items: start;
}

.btr-ticket-item.is-selected button {
    border-color: var(--btr-accent);
    background: var(--btr-accent-dim);
}

.btr-msg-link {
    color: var(--btr-accent);
    text-decoration: underline;
    word-break: break-all;
}

.btr-embed-wrap {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btr-yt-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    background: #000;
}

.btr-msg-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btr-msg-image {
    max-width: 220px;
    max-height: 180px;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.btr-msg-video-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: min(420px, 100%);
}

.btr-msg-video {
    width: 100%;
    max-height: 280px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #000;
}

.btr-msg-file-name {
    font-size: 12px;
    color: var(--text-muted);
}

.btr-create-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btr-support-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.btr-support-panel h2,
.btr-admin h1 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.btr-support-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.btr-label-optional {
    font-weight: 400;
    opacity: 0.75;
}

.btr-support-form input,
.btr-support-form textarea,
.btr-support-form select,
.btr-admin-filters input,
.btr-admin-filters select,
.btr-admin-actions select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    max-width: 100%;
}

.btr-support-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.btr-support-form select option {
    background: #0f172a;
    color: #e2e8f0;
}

.btr-create-success-actions .btr-btn {
    text-decoration: none;
}

.btr-support-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btr-page-beta .btr-support-intro p {
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 42em;
}

.btr-beta-closed-actions {
    margin: 28px 0 0;
}

.btr-beta-closed-actions .btr-btn {
    text-decoration: none;
}

.btr-page-beta .btr-support-panel {
    padding: 36px;
}

.btr-page-beta .btr-support-form {
    gap: 20px;
}

.btr-page-beta .btr-support-form label {
    font-size: 1.0625rem;
    gap: 8px;
    color: var(--text);
}

.btr-page-beta .btr-support-form input,
.btr-page-beta .btr-support-form textarea,
.btr-page-beta .btr-support-form select {
    font-size: 1.125rem;
    line-height: 1.4;
    padding: 14px 18px;
    color: var(--text);
}

.btr-page-beta .btr-support-form select {
    height: 56px;
    line-height: 1.2;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 48px;
    background-color: rgba(0, 0, 0, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px 20px;
    color-scheme: dark;
}

.btr-page-beta .btr-support-form textarea {
    min-height: 168px;
}

.btr-page-beta .btr-support-hint {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.btr-page-beta .btr-support-form .btr-btn,
.btr-page-beta .btr-create-success-actions .btr-btn {
    font-size: 1.125rem;
    padding: 16px 22px;
    min-height: 54px;
}

.btr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btr-btn-primary {
    background: var(--btr-accent);
    color: #fff;
    border-radius: 6px;
}

.btr-btn-primary:hover {
    filter: brightness(1.08);
}

.btr-btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btr-btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.btr-btn-danger {
    background: transparent;
    border-color: rgba(220, 80, 80, 0.55);
    color: #f0a0a0;
}

.btr-btn-danger:hover {
    background: rgba(180, 40, 40, 0.22);
    border-color: rgba(240, 120, 120, 0.8);
    color: #ffd0d0;
}

.btr-btn-danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btr-support-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--btr-cue-now);
    min-height: 1.25em;
}

.btr-support-status:empty {
    display: none;
}

.btr-support-status.is-error {
    color: #f87171;
    padding: 10px 12px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.1);
}

.btr-support-status.is-success {
    color: #6ee7b7;
    padding: 12px 14px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
}

.btr-create-success {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
    margin-bottom: 8px;
}

.btr-create-success h3 {
    margin: 0 0 10px;
    color: #6ee7b7;
    font-size: 1.25rem;
}

.btr-create-success p {
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 12px;
}

.btr-create-success-ref code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--btr-accent);
}

.btr-support-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.btr-ticket-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    max-height: 70vh;
    overflow: auto;
}

.btr-ticket-item button {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btr-ticket-item button:hover {
    border-color: var(--btr-accent);
}

.btr-ticket-id {
    font-size: 12px;
    color: var(--btr-accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.btr-ticket-subject {
    font-weight: 600;
}

.btr-ticket-status,
.btr-ticket-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.btr-ticket-empty {
    color: var(--text-muted);
    padding: 12px 0;
}

.btr-ticket-detail {
    margin-top: 12px;
}

.btr-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0;
}

.btr-msg {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.025);
}

.btr-msg-staff {
    border-color: rgba(14, 165, 233, 0.4);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04));
}

.btr-msg-user {
    border-color: rgba(255, 255, 255, 0.1);
}

.btr-msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btr-msg-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btr-msg-avatar-initials {
    font-size: 14px;
    font-weight: 700;
    color: var(--btr-accent);
}

.btr-msg-main {
    min-width: 0;
}

.btr-msg-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 8px;
}

.btr-msg-from-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btr-msg-from {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.btr-msg-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 8px;
}

.btr-msg-staff .btr-msg-role {
    color: #7dd3fc;
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(14, 165, 233, 0.12);
}

.btr-msg-time {
    font-size: 12px;
    color: var(--text-muted);
}

.btr-msg-body {
    white-space: normal;
    line-height: 1.55;
    color: var(--text);
}

.btr-admin-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.btr-admin-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.btr-admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btr-admin-filters input {
    width: min(360px, 70vw);
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
}

.btr-status-lamps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.btr-status-lamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.btr-status-lamp strong {
    color: var(--text);
    font-weight: 700;
}

.btr-status-lamp.is-active {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btr-lamp {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.btr-lamp-all { background: #94a3b8; }
.btr-lamp-open {
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}
.btr-lamp-pending {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
.btr-lamp-resolved {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.45);
}
.btr-lamp-closed {
    background: #64748b;
}

.btr-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 8px;
    border: 1px solid var(--border);
}

.btr-status-chip-open {
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.12);
}
.btr-status-chip-pending {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.12);
}
.btr-status-chip-resolved {
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.12);
}
.btr-status-chip-closed {
    color: #cbd5e1;
    border-color: rgba(100, 116, 139, 0.5);
    background: rgba(100, 116, 139, 0.18);
}

.btr-admin-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) 1fr;
    gap: 20px;
    align-items: start;
}

.btr-bulk-bar {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btr-bulk-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.btr-bulk-row-secondary {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btr-bulk-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 5.5rem;
}

.btr-bulk-seg {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.btr-bulk-chip {
    appearance: none;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1.2;
}

.btr-bulk-chip:last-child {
    border-right: 0;
}

.btr-bulk-chip:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.btr-bulk-action {
    appearance: none;
    border: 1px solid rgba(220, 80, 80, 0.4);
    background: transparent;
    color: #e8a0a0;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.2;
    margin-left: auto;
}

.btr-bulk-action:hover:not(:disabled) {
    background: rgba(180, 40, 40, 0.18);
    border-color: rgba(240, 120, 120, 0.65);
    color: #ffd0d0;
}

.btr-bulk-action:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btr-bulk-action-quiet {
    margin-left: 0;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-weight: 500;
}

.btr-bulk-action-quiet:hover:not(:disabled) {
    background: rgba(180, 40, 40, 0.14);
    border-color: rgba(220, 80, 80, 0.45);
    color: #f0a0a0;
}

.btr-bulk-purge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.btr-bulk-purge select {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    padding: 5px 8px;
}

.btr-bulk-hint {
    margin: 0;
    margin-left: auto;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.85);
    line-height: 1.3;
}

/* Compact controls inside admin detail (logs, delete, etc.) */
.btr-admin .btr-btn {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.btr-admin .btr-admin-log-download,
.btr-admin #admin-log-download-active {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
}

.btr-admin-sidebar {
    position: sticky;
    top: 88px;
}

.btr-admin .btr-ticket-list {
    max-height: calc(100vh - 220px);
    overflow: auto;
    padding-right: 4px;
}

.btr-admin .btr-ticket-item {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.btr-admin .btr-ticket-item button {
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.btr-admin .btr-ticket-item.is-checked button {
    border-color: rgba(240, 120, 120, 0.45);
}

.btr-ticket-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.btr-ticket-check input {
    width: 16px;
    height: 16px;
    accent-color: #c86b6b;
    cursor: pointer;
}

.btr-ticket-check-spacer {
    width: 28px;
    flex-shrink: 0;
}

.btr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btr-ticket-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.btr-ticket-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.btr-ticket-email {
    font-size: 12px;
    color: var(--text-muted);
}

.btr-admin-detail-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.btr-admin-detail-status {
    margin-bottom: 8px;
}

.btr-admin-customer {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--text);
}

.btr-admin-empty {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.btr-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.btr-admin-actions label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.btr-admin-actions select {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

.btr-admin-meta {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    overflow: auto;
    max-height: 180px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 12px 0;
}

.btr-admin-logs {
    margin: 12px 0 4px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.btr-admin-logs-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.btr-admin-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btr-admin-log-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.btr-admin-log-list li.is-selected {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.btr-admin-log-select {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 2px 0;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.btr-admin-log-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.btr-admin-log-meta strong {
    font-size: 14px;
    color: var(--text);
}

.btr-admin-log-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.btr-admin-log-download {
    flex-shrink: 0;
}

.btr-admin-log-viewer-wrap {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.btr-admin-log-viewer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.btr-admin-log-viewer-bar span {
    font-size: 12px;
    color: var(--text-muted);
}

.btr-admin-log-viewer {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    overflow: auto;
    max-height: min(55vh, 520px);
    min-height: 160px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.btr-admin-log-viewer.is-loading {
    color: var(--text-muted);
    font-style: italic;
}

.btr-admin-back {
    display: none;
}

@media (max-width: 900px) {
    .btr-support-grid,
    .btr-admin-layout,
    .btr-mine-layout,
    .btr-form-row {
        grid-template-columns: 1fr;
    }

    .btr-admin-sidebar {
        position: static;
        top: auto;
    }

    .btr-admin .btr-ticket-list {
        max-height: none;
    }

    .btr-admin-layout.is-detail-open .btr-admin-sidebar,
    .btr-ticket-list.is-collapsed-mobile {
        display: none !important;
    }

    .btr-admin-layout.is-detail-open .btr-ticket-detail {
        margin-top: 0;
    }

    .btr-admin-back {
        display: inline-flex;
        margin-bottom: 12px;
    }

    .btr-admin-empty {
        display: none;
    }
}
