/* ============================================================================
   BÀN TAY VÀNG — DESIGN SYSTEM TOKENS & MODERN EDITORIAL BENTO KIT
   Zero external CSS framework, pure GPU-composited transforms, CSP-safe
   ============================================================================ */

:root {
    --btv-bg: #F7F6F2;
    --btv-surface: #FFFFFF;
    --btv-surface-subtle: #F1EFEA;
    --btv-border: #E7E5E0;
    --btv-border-hover: #D0CCC3;
    --btv-text: #141413;
    --btv-text-secondary: #5C5A55;
    --btv-text-muted: #8C8982;
    --btv-gold: #C68B2C;
    --btv-gold-soft: #FDF6E9;
    --btv-ink: #18181B;

    /* Per-product dynamic accent defaults */
    --btv-accent: #0F4C81;
    --btv-accent-soft: #EFF6FF;

    --btv-radius-lg: 20px;
    --btv-radius-md: 14px;
    --btv-radius-sm: 12px;
    --btv-radius-pill: 999px;

    --btv-shadow-xs: 0 1px 2px rgba(20, 20, 19, 0.04);
    --btv-shadow-sm: 0 4px 14px rgba(20, 20, 19, 0.05);
    --btv-shadow-hover: 0 12px 28px rgba(20, 20, 19, 0.08);
    --btv-font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --btv-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

html, body {
    font-family: var(--btv-font-sans);
    background-color: var(--btv-bg);
    color: var(--btv-text);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1:focus {
    outline: none;
}

.btv-choice-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    text-align: left;
    padding: 12px;
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.btv-choice-card.is-centered {
    align-items: center;
    text-align: center;
}

.btv-font-display {
    font-family: var(--btv-font-display);
}

.btv-tabular {
    font-variant-numeric: tabular-nums;
}

/* ---------- Page Ambient Shell ---------- */
.btv-page-shell {
    position: relative;
}

.btv-page-ambient {
    position: relative;
    background-image: radial-gradient(720px 320px at 14% 0%, color-mix(in srgb, var(--btv-accent) 8%, transparent), transparent 72%),
                      radial-gradient(560px 260px at 88% 4%, rgba(198, 139, 44, 0.07), transparent 70%);
}

/* ---------- Frosted Glass TopBar ---------- */
.btv-glass-bar.mud-appbar {
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--btv-text) !important;
    border-bottom: 1px solid var(--btv-border);
    box-shadow: 0 1px 0 rgba(20, 20, 19, 0.03) !important;
}

.btv-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #D99B38 0%, #B4741B 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(198, 139, 44, 0.28);
    flex-shrink: 0;
}

.btv-glass-bar .btv-brand-btn {
    font-size: 1rem !important;
}

.btv-topbar-actions {
    flex-shrink: 0;
}

@media (max-width: 599.98px) {
    .btv-glass-bar .mud-toolbar {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .btv-glass-bar .btv-brand-btn {
        font-size: 0.88rem !important;
    }
    .btv-glass-bar .btv-brand-mark {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }
    .btv-topbar-btn {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 0.78rem !important;
        min-width: 0 !important;
    }
    .btv-topbar-btn .mud-button-icon-start {
        margin-inline-end: 4px !important;
    }
}

.btv-nav-group-btn {
    color: var(--btv-text-secondary) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 6px 12px !important;
    border-radius: var(--btv-radius-pill) !important;
    text-transform: none !important;
}

.btv-nav-group-btn:hover {
    background-color: var(--btv-surface-subtle) !important;
    color: var(--btv-text) !important;
}

.btv-koc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--btv-radius-pill);
    background: var(--btv-gold-soft);
    color: #9A6412;
    border: 1px solid rgba(198, 139, 44, 0.28);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    min-height: 36px;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.btv-koc-pill:hover {
    background: #FBECC9;
    transform: translateY(-1px);
}

/* ---------- MudBlazor Refined Editorial Overrides ---------- */
.mud-button-root,
.mud-tab {
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    touch-action: manipulation;
}

.mud-button-filled,
.mud-button-outlined {
    border-radius: var(--btv-radius-sm) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.mud-card,
.btv-surface-card {
    background-color: var(--btv-surface) !important;
    border: 1px solid var(--btv-border) !important;
    border-radius: var(--btv-radius-lg) !important;
    box-shadow: var(--btv-shadow-xs) !important;
}

.mud-dialog {
    border-radius: var(--btv-radius-lg) !important;
    border: 1px solid var(--btv-border);
}

.mud-input-outlined-border {
    border-radius: var(--btv-radius-sm) !important;
}

.mud-tabs-toolbar {
    background: var(--btv-surface-subtle) !important;
    border: 1px solid var(--btv-border);
    border-radius: var(--btv-radius-md) !important;
    padding: 4px !important;
}

.mud-tabs-toolbar .mud-tab {
    border-radius: 10px !important;
    color: var(--btv-text-secondary) !important;
    font-weight: 600 !important;
    min-height: 40px !important;
}

.mud-tabs-toolbar .mud-tab.mud-tab-active {
    background: #FFFFFF !important;
    color: var(--btv-accent) !important;
    box-shadow: var(--btv-shadow-xs) !important;
}

.mud-tabs-toolbar .mud-tab-slider {
    display: none !important;
}

/* ---------- Bento Cards & Home Grid ---------- */
.btv-bento-card {
    position: relative;
    background: var(--btv-surface);
    border: 1px solid var(--btv-border);
    border-radius: var(--btv-radius-lg);
    box-shadow: var(--btv-shadow-xs);
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.22s ease,
                box-shadow 0.22s ease;
}

.btv-bento-card:hover {
    transform: translateY(-2px);
    border-color: var(--btv-border-hover);
    box-shadow: var(--btv-shadow-hover);
}

.btv-bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--btv-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    width: fit-content;
}

.btv-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
}

.btv-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--btv-radius-pill);
    border: 1px solid var(--btv-border);
    background: var(--btv-surface);
    color: var(--btv-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btv-filter-pill:hover {
    border-color: var(--btv-border-hover);
    color: var(--btv-text);
}

.btv-filter-pill.is-active {
    background: var(--btv-ink);
    color: #FFFFFF;
    border-color: var(--btv-ink);
}

/* Live activity pulsing dot */
.btv-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: var(--btv-radius-pill);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--btv-border);
    box-shadow: var(--btv-shadow-xs);
    font-size: 0.825rem;
    color: var(--btv-text-secondary);
}

.btv-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: btv-ping 2.2s infinite;
    flex-shrink: 0;
}

@keyframes btv-ping {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- Home Bento Mini-Mockups (Zero External Images) ---------- */
.btv-mockup-wedding {
    position: relative;
    width: 210px;
    min-height: 230px;
    border-radius: 16px;
    background: linear-gradient(160deg, #FFFDF9 0%, #F7EFE3 100%);
    border: 1px solid #DFCBB0;
    box-shadow: 0 18px 36px rgba(155, 34, 38, 0.14);
    padding: 18px 16px;
    transform: rotate(2.5deg);
    transition: transform 0.25s ease;
    text-align: center;
}

.btv-bento-card:hover .btv-mockup-wedding {
    transform: rotate(0deg) translateY(-3px);
}

.btv-wax-seal {
    width: 38px;
    height: 38px;
    margin: 10px auto 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #C8373C, #7F1D1D);
    border: 2px solid rgba(255, 232, 194, 0.55);
    color: #FCE7C6;
    font-family: var(--btv-font-display);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(127, 29, 29, 0.35);
}

.btv-mockup-fans {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    padding: 12px 0 4px;
}

.btv-mini-envelope {
    width: 44px;
    height: 62px;
    border-radius: 8px;
    background: linear-gradient(165deg, #EF4444, #991B1B);
    border: 1.5px solid #FBBF24;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FEF3C7;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(185, 28, 28, 0.22);
}

.btv-mini-envelope:first-child { transform: rotate(-10deg) translateY(4px); }
.btv-mini-envelope:nth-child(2) { transform: translateY(-4px); z-index: 2; }
.btv-mini-envelope:last-child { transform: rotate(10deg) translateY(4px); }

.btv-mini-tarot {
    width: 44px;
    height: 68px;
    border-radius: 8px;
    background: linear-gradient(160deg, #4C1D95, #2E1065);
    border: 1.5px solid #DDD6FE;
    color: #FDE68A;
    font-family: var(--btv-font-display);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(91, 33, 182, 0.2);
}

.btv-mini-tarot:first-child { transform: rotate(-9deg) translateY(4px); }
.btv-mini-tarot:nth-child(2) { transform: translateY(-3px); z-index: 2; }
.btv-mini-tarot:last-child { transform: rotate(9deg) translateY(4px); }

/* ---------- Page Hero & Compliance Pill ---------- */
.btv-page-hero {
    background: var(--btv-surface);
    border: 1px solid var(--btv-border);
    border-radius: var(--btv-radius-lg);
    padding: 22px 24px;
    box-shadow: var(--btv-shadow-xs);
    position: relative;
    overflow: hidden;
}

.btv-page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--btv-accent);
}

.btv-compliance-bar {
    background: var(--btv-surface-subtle);
    border: 1px solid var(--btv-border);
    border-radius: var(--btv-radius-md);
    padding: 12px 16px;
    color: var(--btv-text-secondary);
    font-size: 0.84rem;
}

/* ---------- Live Phone Frame Preview ---------- */
.btv-phone-frame {
    position: relative;
    max-width: 348px;
    margin: 0 auto;
    border-radius: 36px;
    border: 8px solid #1C1C1E;
    box-shadow: 0 24px 48px rgba(20, 20, 19, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: hidden;
    background: #141413;
}

.btv-phone-notch {
    width: 92px;
    height: 18px;
    background: #1C1C1E;
    border-radius: 999px;
    margin: 10px auto 6px;
}

/* ---------- Modern Upload Dropzone ---------- */
.btv-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--btv-border-hover);
    background: var(--btv-surface-subtle);
    border-radius: var(--btv-radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.btv-dropzone:hover {
    border-color: var(--btv-accent);
    background: var(--btv-accent-soft);
}

/* ---------- Tarot 3D Flip Cards ---------- */
.btv-tarot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 600px) {
    .btv-tarot-grid {
        grid-template-columns: 1fr;
    }
}

.btv-tarot-card-3d {
    perspective: 1000px;
    min-height: 304px;
    cursor: pointer;
    touch-action: manipulation;
}

.btv-tarot-inner {
    position: relative;
    width: 100%;
    min-height: 304px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.btv-tarot-card-3d.is-flipped .btv-tarot-inner {
    transform: rotateY(180deg);
}

.btv-tarot-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    overflow-y: auto;
}

.btv-tarot-front {
    background: linear-gradient(155deg, #2E1065 0%, #4C1D95 60%, #6D28D9 100%);
    border: 1.5px solid #DDD6FE;
    color: #F5F3FF;
    box-shadow: 0 12px 24px rgba(91, 33, 182, 0.22);
    text-align: center;
}

.btv-tarot-back {
    background: #FFFFFF;
    border: 1.5px solid #C4B5FD;
    color: var(--btv-text);
    transform: rotateY(180deg);
    box-shadow: var(--btv-shadow-sm);
}

/* ---------- Frosted Glass Paywall Mask ---------- */
.btv-paywall-blur {
    position: relative;
    border-radius: var(--btv-radius-md);
    border: 1px solid #DDD6FE;
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.6) 0%, #FFFFFF 100%);
    padding: 20px;
    overflow: hidden;
}

.btv-paywall-teaser {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0) 95%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0) 95%);
    color: var(--btv-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ---------- Breathing Pulse Orb (/song) ---------- */
.btv-pulse-orb {
    width: 184px;
    height: 184px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 35% 30%, #34D399 0%, #059669 65%, #047857 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px auto;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.35), 0 16px 32px rgba(5, 150, 105, 0.28);
    animation: btv-breathe 3.2s ease-in-out infinite;
    transition: transform 0.15s ease;
}

.btv-pulse-orb:hover {
    transform: scale(1.03);
}

.btv-pulse-orb:active {
    transform: scale(0.96);
}

@keyframes btv-breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.35), 0 16px 32px rgba(5, 150, 105, 0.25); }
    50% { box-shadow: 0 0 0 18px rgba(5, 150, 105, 0), 0 20px 38px rgba(5, 150, 105, 0.35); }
}

/* ---------- VietQR Fintech Scanner Corners ---------- */
.btv-qr-scanner-frame {
    position: relative;
    display: inline-flex;
    padding: 14px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--btv-border);
    box-shadow: var(--btv-shadow-sm);
}

.btv-qr-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--btv-ink);
    border-style: solid;
    pointer-events: none;
}

.btv-qr-corner.tl { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.btv-qr-corner.tr { top: 8px; right: 8px; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.btv-qr-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
.btv-qr-corner.br { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }

/* ---------- Realistic Excel Boss Key Shell (/congso) ---------- */
.btv-excel-shell {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--btv-shadow-sm);
}

.btv-excel-toolbar {
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btv-excel-fx {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #475569;
}

.btv-excel-tabs {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 6px 12px;
    display: flex;
    gap: 6px;
    font-size: 0.78rem;
}

.btv-excel-tab {
    padding: 4px 12px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    font-weight: 600;
    color: #0F766E;
}

/* ---------- Table Horizontal Scroll Guard ---------- */
.btv-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- Mobile Bottom Navigation Bar (< 768px) ---------- */
.btv-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    .btv-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--btv-border);
        padding: 4px 6px calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(20, 20, 19, 0.05);
    }

    .btv-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 48px;
        min-width: 44px;
        border: none;
        background: transparent;
        color: var(--btv-text-secondary);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
        touch-action: manipulation;
    }

    .btv-bottom-nav-item.is-active {
        color: var(--btv-accent);
        background: var(--btv-accent-soft);
    }

    .btv-main-content {
        padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    /* Prevent iOS Safari auto-zoom on focus */
    input, textarea, select, .mud-input-slot {
        font-size: 16px !important;
    }
}

/* ---------- Stepper Pills (/cuoi) ---------- */
.btv-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

@media (max-width: 599.98px) {
    .btv-stepper {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .btv-stepper::-webkit-scrollbar {
        display: none;
    }
}

.btv-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px;
    border-radius: var(--btv-radius-pill);
    border: 1px solid var(--btv-border);
    background: var(--btv-surface);
    color: var(--btv-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.18s ease;
}

.btv-step-pill.is-active {
    background: var(--btv-accent);
    color: #FFFFFF;
    border-color: var(--btv-accent);
}

.btv-step-pill.is-done {
    background: var(--btv-accent-soft);
    color: var(--btv-accent);
    border-color: color-mix(in srgb, var(--btv-accent) 35%, transparent);
}

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Compact Mobile Tabs & Footer Contrast & LiXi Rows ---------- */
.mud-tabs-tabbar {
    background: var(--btv-surface-subtle) !important;
    border-radius: 14px;
    padding: 4px;
    border: 1px solid var(--btv-border);
}

.mud-tab.mud-tab-active {
    background: var(--btv-surface) !important;
    color: var(--btv-text) !important;
    font-weight: 700 !important;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(20, 20, 19, 0.06);
}

.mud-tabs-indicator {
    height: 3px !important;
    border-radius: 999px;
}

.btv-footer-link {
    color: #E5E3DC !important;
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.btv-footer-link:hover, .btv-footer-link:focus-visible {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.btv-lixi-slot-row {
    display: grid;
    grid-template-columns: 1fr 140px auto auto;
    gap: 8px;
    align-items: center;
}

@media (max-width: 599.98px) {
    .btv-lixi-slot-row {
        grid-template-columns: 1fr 120px;
        background: var(--btv-surface-subtle);
        padding: 10px;
        border-radius: 12px;
        border: 1px solid var(--btv-border);
    }

    .mud-tab {
        min-width: 0 !important;
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }

    .mud-tab .mud-icon-root {
        margin-inline-end: 4px !important;
        font-size: 1rem !important;
    }
}

/* ---------- Native Zero-Circuit SEO FAQ Accordion ---------- */
.btv-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btv-faq-item {
    border: 1px solid var(--btv-border);
    border-radius: 12px;
    background: var(--btv-surface);
    overflow: hidden;
    transition: border-color 0.16s ease;
}

.btv-faq-item[open] {
    border-color: color-mix(in srgb, var(--btv-accent) 45%, var(--btv-border));
}

.btv-faq-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--btv-text);
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

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

.btv-faq-chevron {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--btv-surface-subtle);
    color: var(--btv-text-secondary);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btv-faq-item[open] .btv-faq-chevron {
    transform: rotate(45deg);
    background: var(--btv-accent-soft);
    color: var(--btv-accent);
}

.btv-faq-answer {
    padding: 0 16px 14px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--btv-text-secondary);
}

.btv-google-btn:not(:disabled):hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
}

/* ---------- Home Hero Banner Slider (Gomi-inspired × Warm Editorial Bento) ---------- */
.btv-hero-showcase {
    margin-bottom: 24px;
}

.btv-hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 16px;
    align-items: stretch;
}

.btv-hero-stage.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.btv-hero-slider {
    position: relative;
    border-radius: var(--btv-radius-lg);
    overflow: hidden;
    border: 1px solid var(--btv-border);
    background: #141413;
    box-shadow: var(--btv-shadow-sm);
    aspect-ratio: 16 / 9;
    max-height: 440px;
    width: 100%;
    outline: none;
}

.btv-hero-slider:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--btv-gold) 45%, transparent);
}

.btv-hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.btv-hero-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.btv-hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.btv-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(96deg, rgba(16, 15, 14, 0.88) 0%, rgba(16, 15, 14, 0.64) 44%, rgba(16, 15, 14, 0.14) 76%, transparent 100%),
        linear-gradient(0deg, rgba(16, 15, 14, 0.72) 0%, transparent 56%);
    pointer-events: none;
}

.btv-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 28px 68px 48px;
    max-width: 620px;
    color: #FFFFFF;
}

.btv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    background: color-mix(in srgb, var(--slide-accent, #C68B2C) 82%, #141413 18%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    margin-bottom: 10px;
}

.btv-hero-title {
    margin: 0;
    font-size: clamp(1.22rem, 2.35vw, 1.92rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.btv-hero-sub {
    margin: 8px 0 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    max-width: 470px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btv-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #FFFFFF;
    color: #141413;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    transition: transform 0.16s ease, background-color 0.16s ease;
    touch-action: manipulation;
}

.btv-hero-cta:hover {
    transform: translateY(-1px);
    background: #FDF6E9;
    color: #141413;
}

.btv-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 19, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.btv-hero-nav:hover {
    background: rgba(20, 20, 19, 0.78);
    transform: translateY(-50%) scale(1.04);
}

.btv-hero-nav.is-prev { left: 14px; }
.btv-hero-nav.is-next { right: 14px; }

.btv-hero-controls {
    position: absolute;
    left: 28px;
    right: 20px;
    bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.btv-hero-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(20, 20, 19, 0.42);
    backdrop-filter: blur(8px);
}

.btv-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.22s ease, background-color 0.22s ease;
}

.btv-hero-dot.is-active {
    width: 24px;
    background: #FFFFFF;
}

.btv-hero-counter {
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(20, 20, 19, 0.45);
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

/* Right Promo Side Card */
.btv-hero-side-card {
    position: relative;
    border-radius: var(--btv-radius-lg);
    overflow: hidden;
    border: 1px solid var(--btv-border);
    background: #1B1917;
    box-shadow: var(--btv-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btv-hero-side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--btv-shadow-hover);
}

.btv-hero-side-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btv-hero-side-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 19, 0.12) 0%, rgba(20, 20, 19, 0.65) 55%, rgba(20, 20, 19, 0.94) 100%);
    pointer-events: none;
}

.btv-hero-side-body {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.btv-hero-side-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    min-height: 38px;
    border-radius: 10px;
    background: var(--side-accent, #C68B2C);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 800;
}

/* Trust Marquee Strip */
.btv-trust-marquee {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid var(--btv-border);
    background: var(--btv-surface);
    overflow: hidden;
    padding: 10px 0;
    position: relative;
}

.btv-trust-track {
    display: flex;
    width: max-content;
    gap: 28px;
    animation: btvMarquee 34s linear infinite;
}

.btv-trust-marquee:hover .btv-trust-track {
    animation-play-state: paused;
}

.btv-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--btv-text-secondary);
    white-space: nowrap;
}

.btv-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--btv-gold);
    flex-shrink: 0;
}

@keyframes btvMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 959.98px) {
    .btv-hero-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .btv-hero-slider {
        aspect-ratio: 16 / 10;
        max-height: none;
    }

    .btv-hero-side-card {
        min-height: 152px;
    }
}

@media (max-width: 599.98px) {
    .btv-hero-slider {
        aspect-ratio: 16 / 11;
        min-height: 246px;
    }

    .btv-hero-content {
        padding: 46px 18px 44px;
        max-width: 100%;
    }

    .btv-hero-sub {
        display: none;
    }

    .btv-hero-title {
        font-size: 1.06rem;
        margin-bottom: 10px;
    }

    .btv-hero-cta {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .btv-hero-nav {
        top: 12px;
        transform: none;
        width: 34px;
        height: 34px;
    }

    .btv-hero-nav:hover {
        transform: scale(1.04);
    }

    .btv-hero-nav.is-prev { left: auto; right: 52px; }
    .btv-hero-nav.is-next { right: 12px; }

    .btv-hero-controls {
        left: 16px;
        right: 16px;
        bottom: 10px;
    }

    .btv-hero-side-body {
        padding: 14px 16px;
    }
}
