:root {
    color-scheme: dark;
    --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --font-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --bg-0: #04070E;
    --bg-body: #080C18;
    --bg-surface: #0E1426;
    --bg-surface-2: #131A30;
    --bg-surface-3: #1A2340;
    --bg-input: #0A1020;

    --ink: #F3F5FA;
    --ink-2: #A9B3C9;
    --ink-3: #8390AA;
    --ink-inv: #0B0F1A;

    --line: rgba(205, 218, 255, 0.08);
    --line-2: rgba(205, 218, 255, 0.14);
    --line-3: rgba(205, 218, 255, 0.22);

    --gold: #F7C53E;
    --gold-hi: #FFE39A;
    --gold-lo: #D9930F;
    --gold-ink: #1C1302;
    --gold-text: #F9CF5A;
    --gold-soft: rgba(247, 197, 62, 0.12);
    --gold-line: rgba(247, 197, 62, 0.38);
    --foil: linear-gradient(118deg, #FFEBB0 0%, #F7C53E 34%, #E6A21B 62%, #FFD873 100%);

    --pix: #2DD4BF;
    --pix-soft: rgba(45, 212, 191, 0.12);
    --lime: #A3E635;
    --flame: #FB923C;

    --ok: #34D399;
    --ok-fill: #0F9F6E;
    --ok-soft: rgba(52, 211, 153, 0.12);
    --bad: #F87171;
    --bad-fill: #DC3B3B;
    --bad-soft: rgba(248, 113, 113, 0.12);
    --info: #6AA8FF;
    --info-soft: rgba(106, 168, 255, 0.12);
    --warn: #FBBF24;
    --warn-soft: rgba(251, 191, 36, 0.12);
    --whats: #25D366;

    --veil: rgba(3, 6, 14, 0.66);
    --glass: rgba(14, 20, 38, 0.72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
    --ring: 0 0 0 3px rgba(247, 197, 62, 0.35);

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-pill: 999px;

    --topbar-h: 64px;
    --tabbar-h: 70px;
    --rail-w: 252px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --ic-amber: #FBBF24;
    --ic-teal: #2DD4BF;
    --ic-orange: #FB923C;
    --ic-violet: #A78BFA;
    --ic-blue: #6AA8FF;
    --ic-emerald: #34D399;
    --ic-rose: #FB7185;
    --ic-indigo: #818CF8;
    --ic-mint: #5EEAD4;
    --ic-lime: #A3E635;

    --text-primary: var(--ink);
    --text-secondary: var(--ink-2);
    --text-muted: var(--ink-3);
    --text-strong: #FFFFFF;
    --text-on-brand: var(--gold-ink);
    --border: var(--line);
    --border-strong: var(--line-2);
    --danger: var(--bad);
    --error: var(--bad);
    --success: var(--ok);
    --accent: var(--ok);
    --primary: var(--info);
    --primary-light: var(--info);
    --gold-text-start: var(--gold-hi);
    --gold-text-end: var(--gold-text);
    --logo-soft-yellow-start: var(--gold-hi);
    --logo-soft-yellow-end: var(--gold-text);
    --yellow-start: var(--gold-hi);
    --nav-bg-soft: var(--bg-input);
    --overlay-1: rgba(255, 255, 255, 0.03);
    --overlay-2: rgba(255, 255, 255, 0.06);
    --overlay-3: rgba(255, 255, 255, 0.09);
    --overlay-4: rgba(255, 255, 255, 0.12);
    --scrim: var(--veil);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-0: #E9E4D9;
    --bg-body: #F4F1EA;
    --bg-surface: #FFFFFF;
    --bg-surface-2: #FBF9F4;
    --bg-surface-3: #F2EEE5;
    --bg-input: #FAF8F3;

    --ink: #14161F;
    --ink-2: #4C5264;
    --ink-3: #616776;
    --ink-inv: #FFFFFF;

    --line: rgba(48, 36, 12, 0.10);
    --line-2: rgba(48, 36, 12, 0.17);
    --line-3: rgba(48, 36, 12, 0.26);

    --gold: #F5BD2E;
    --gold-hi: #FFDF8A;
    --gold-lo: #C98606;
    --gold-text: #8A5800;
    --gold-soft: rgba(245, 189, 46, 0.16);
    --gold-line: rgba(176, 116, 0, 0.35);

    --pix: #0F766E;
    --pix-soft: rgba(15, 118, 110, 0.10);
    --lime: #4D7C0F;
    --flame: #C2410C;

    --ok: #047857;
    --ok-fill: #047857;
    --ok-soft: rgba(4, 120, 87, 0.10);
    --bad: #B91C1C;
    --bad-fill: #C62828;
    --bad-soft: rgba(185, 28, 28, 0.09);
    --info: #1D4ED8;
    --info-soft: rgba(29, 78, 216, 0.09);
    --warn: #9A5B00;
    --warn-soft: rgba(217, 119, 6, 0.12);
    --whats: #128C4A;

    --veil: rgba(20, 16, 8, 0.42);
    --glass: rgba(255, 255, 255, 0.82);
    --shadow-sm: 0 1px 2px rgba(48, 36, 12, 0.08);
    --shadow-md: 0 12px 30px -14px rgba(48, 36, 12, 0.28);
    --shadow-lg: 0 30px 70px -24px rgba(48, 36, 12, 0.38);
    --ring: 0 0 0 3px rgba(176, 116, 0, 0.30);

    --ic-amber: #B45309;
    --ic-teal: #0F766E;
    --ic-orange: #C2410C;
    --ic-violet: #6D28D9;
    --ic-blue: #1D4ED8;
    --ic-emerald: #047857;
    --ic-rose: #BE123C;
    --ic-indigo: #4338CA;
    --ic-mint: #0F766E;
    --ic-lime: #4D7C0F;

    --text-strong: #0B0D14;
    --gold-text-start: #B07400;
    --logo-soft-yellow-start: #B07400;
    --yellow-start: #B07400;
    --overlay-1: rgba(48, 36, 12, 0.035);
    --overlay-2: rgba(48, 36, 12, 0.06);
    --overlay-3: rgba(48, 36, 12, 0.085);
    --overlay-4: rgba(48, 36, 12, 0.11);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--topbar-h) + 16px);
    background: var(--bg-body);
}

body {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
body::before {
    background:
        radial-gradient(1100px 620px at 92% -12%, rgba(247, 197, 62, 0.11), transparent 62%),
        radial-gradient(900px 640px at -12% 108%, rgba(45, 212, 191, 0.09), transparent 62%),
        radial-gradient(700px 500px at 50% 120%, rgba(251, 146, 60, 0.05), transparent 70%),
        linear-gradient(180deg, var(--bg-body) 0%, var(--bg-0) 100%);
}
:root[data-theme="light"] body::before {
    background:
        radial-gradient(1100px 620px at 92% -12%, rgba(245, 189, 46, 0.20), transparent 62%),
        radial-gradient(900px 640px at -12% 108%, rgba(15, 118, 110, 0.08), transparent 62%),
        linear-gradient(180deg, var(--bg-body) 0%, var(--bg-0) 100%);
}
body::after {
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] body::after { opacity: 0.07; filter: invert(1); }

body.bp-fade { opacity: 0; transition: opacity 0.35s ease; }
body.bp-fade.loaded { opacity: 1; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }

::selection { background: rgba(247, 197, 62, 0.32); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
:root[data-theme="light"] :focus-visible { outline-color: var(--gold-lo); }

* { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: content-box; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }

.bp-faint { color: var(--ink-3); }
.bp-foil-text {
    background: var(--foil);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .bp-foil-text {
    background: linear-gradient(118deg, #A86A00, #7A4D00);
    -webkit-background-clip: text;
    background-clip: text;
}

.bp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.bp-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--foil);
}

.bp-main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--topbar-h) + 20px) 16px calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom));
}
.bp-main--wide { max-width: 1080px; }
.bp-main--narrow { max-width: 560px; }
.bp-main--solo { padding-bottom: 48px; }

.bp-head { margin: 4px 0 22px; }
.bp-head h1, .bp-title { font-size: clamp(1.7rem, 4.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 6px; }
.bp-head p, .bp-sub { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; max-width: 52ch; }

.bp-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 28px 0 12px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.bp-section-title i { color: var(--gold-text); font-size: 0.95rem; }
.bp-section-title .bp-section-aside { margin-left: auto; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; color: var(--ink-3); }
@media (max-width: 479.98px) { .bp-section-title .bp-section-aside { display: none; } }

.bp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: calc(var(--topbar-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, var(--glass), color-mix(in srgb, var(--glass) 70%, transparent));
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--line);
}
.bp-topbar__title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.bp-topbar__title small {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.bp-topbar__title strong {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bp-topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.bp-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bp-brand img { width: 30px; height: 32px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(247, 197, 62, 0.25)); }
.bp-brand span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.bp-brand span em { font-style: normal; color: var(--gold-text); }

.bp-icon-btn {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--ink-2);
    background: var(--overlay-1);
    border: 1px solid var(--line);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.bp-icon-btn:hover { color: var(--ink); background: var(--overlay-3); border-color: var(--line-2); }
.bp-icon-btn:active { transform: scale(0.94); }
.bp-icon-btn svg { width: 18px; height: 18px; }

.bp-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
    background: var(--overlay-1);
    border: 1px solid var(--line-2);
    transition: background 0.2s, border-color 0.2s;
}
.bp-pill-link:hover { background: var(--gold-soft); border-color: var(--gold-line); }

[data-bp-theme-toggle] .bp-tt-sun { display: none; }
:root[data-theme="light"] [data-bp-theme-toggle] .bp-tt-sun { display: block; }
:root[data-theme="light"] [data-bp-theme-toggle] .bp-tt-moon { display: none; }

.bp-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    background: linear-gradient(0deg, var(--glass), color-mix(in srgb, var(--glass) 82%, transparent));
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-top: 1px solid var(--line);
}
.bp-nav__brand, .bp-nav__extra, .bp-nav__label { display: none; }
.bp-nav__list {
    height: var(--tabbar-h);
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}
.bp-nav__item {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding-bottom: 15px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-3);
    transition: color 0.2s;
}
.bp-nav__item i { font-size: 1.12rem; transition: transform 0.25s var(--spring); }
.bp-nav__item:hover { color: var(--ink); }
.bp-nav__item.is-active { color: var(--gold-text); }
.bp-nav__item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--foil);
}
.bp-nav__item.is-active i { transform: translateY(-1px); }
.bp-nav__item--play { color: var(--ink); }
.bp-nav__orb {
    width: 54px;
    height: 54px;
    margin-top: -26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background: var(--foil);
    color: var(--gold-ink);
    box-shadow: 0 12px 26px -8px rgba(247, 197, 62, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 5px var(--bg-body);
    transform: rotate(-6deg);
    transition: transform 0.3s var(--spring), box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}
.bp-nav__orb::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
    transform: translateX(-60%);
    animation: bp-sheen 4.5s ease-in-out infinite;
}
.bp-nav__orb i { font-size: 1.35rem; transform: rotate(6deg); position: relative; z-index: 1; }
.bp-nav__item--play:hover .bp-nav__orb { transform: rotate(0deg) translateY(-2px); }
.bp-nav__item--play.is-active::before { display: none; }

@keyframes bp-sheen {
    0%, 62% { transform: translateX(-60%); }
    80%, 100% { transform: translateX(60%); }
}

@media (min-width: 1024px) {
    .bp-has-rail .bp-topbar { left: var(--rail-w); }
    .bp-has-rail .bp-main { padding-bottom: 56px; }
    body.bp-has-rail { padding-left: var(--rail-w); }
    body.bp-has-rail .toast-container { bottom: 24px; left: calc(50% + var(--rail-w) / 2); }
    .bp-nav {
        top: 0;
        right: auto;
        width: var(--rail-w);
        padding: 22px 14px 18px;
        display: flex;
        flex-direction: column;
        border-top: 0;
        border-right: 1px solid var(--line);
        background: linear-gradient(180deg, var(--glass), color-mix(in srgb, var(--glass) 88%, transparent));
        overflow-y: auto;
    }
    .bp-nav__brand { display: flex; padding: 4px 10px 22px; }
    .bp-nav__label {
        display: block;
        margin: 18px 12px 8px;
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--ink-3);
    }
    .bp-nav__list, .bp-nav__extra {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        height: auto;
        max-width: none;
        margin: 0;
    }
    .bp-nav__item {
        height: 44px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 0.92rem;
        color: var(--ink-2);
    }
    .bp-nav__item i { width: 20px; text-align: center; font-size: 1rem; }
    .bp-nav__item:hover { background: var(--overlay-2); }
    .bp-nav__item.is-active { color: var(--ink); background: var(--gold-soft); }
    .bp-nav__item.is-active::before { top: 10px; bottom: 10px; left: 0; width: 3px; height: auto; border-radius: 0 4px 4px 0; }
    .bp-nav__item.is-active i { transform: none; color: var(--gold-text); }
    .bp-nav__item--play { order: -1; margin-bottom: 10px; height: 52px; color: var(--gold-ink); background: var(--foil); font-weight: 800; box-shadow: 0 12px 24px -12px rgba(247, 197, 62, 0.7); }
    .bp-nav__item--play:hover { background: var(--foil); filter: brightness(1.05); }
    .bp-nav__item--play.is-active { background: var(--foil); color: var(--gold-ink); }
    .bp-nav__item--play .bp-nav__orb { width: 20px; height: auto; margin: 0; background: none; box-shadow: none; transform: none; border-radius: 0; color: inherit; overflow: visible; }
    .bp-nav__item--play .bp-nav__orb::after { display: none; }
    .bp-nav__item--play .bp-nav__orb i { transform: none; font-size: 1rem; }
    .bp-nav__item--play:hover .bp-nav__orb { transform: none; }
    .bp-nav__foot { margin-top: auto; padding: 18px 12px 0; font-size: 0.72rem; color: var(--ink-3); }
}
@media (max-width: 1023.98px) {
    .bp-nav__foot { display: none; }
    .bp-focus .bp-nav { display: none; }
    .bp-focus .bp-main { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
    .bp-focus .toast-container { bottom: calc(100px + env(safe-area-inset-bottom)); }
}

.bp-card {
    position: relative;
    background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}
:root[data-theme="light"] .bp-card { background: var(--bg-surface); }

.bp-ticket {
    --notch: 13px;
    --cut: 50%;
    position: relative;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
    -webkit-mask:
        radial-gradient(circle var(--notch) at 0 var(--cut), transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--notch) at 100% var(--cut), transparent 98%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle var(--notch) at 0 var(--cut), transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--notch) at 100% var(--cut), transparent 98%, #000) right / 51% 100% no-repeat;
}
:root[data-theme="light"] .bp-ticket { background: var(--bg-surface); box-shadow: none; }
.bp-ticket-wrap { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
:root[data-theme="light"] .bp-ticket-wrap { filter: drop-shadow(0 12px 22px rgba(48, 36, 12, 0.16)); }
.bp-perf {
    height: 0;
    border-top: 2px dashed var(--line-2);
    margin: 0 calc(var(--notch, 13px) + 6px);
}

.bp-btn {
    --h: 52px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--h);
    padding: 0 22px;
    border-radius: var(--r-md);
    font-family: var(--font-ui);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.005em;
    line-height: 1.1;
    text-align: center;
    color: var(--ink);
    background: var(--overlay-2);
    border: 1px solid var(--line-2);
    transition: transform 0.15s var(--ease), box-shadow 0.25s, background 0.2s, filter 0.2s, border-color 0.2s;
    user-select: none;
    overflow: hidden;
    isolation: isolate;
}
.bp-btn:hover { background: var(--overlay-3); border-color: var(--line-3); }
.bp-btn:active { transform: scale(0.98); }
.bp-btn--block { display: flex; width: 100%; }
.bp-btn--lg { --h: 58px; font-size: 1.04rem; border-radius: 18px; }
.bp-btn--sm { --h: 40px; padding: 0 14px; font-size: 0.86rem; border-radius: 12px; }
.bp-btn--gold {
    color: var(--gold-ink);
    background: var(--foil);
    border-color: transparent;
    box-shadow: 0 14px 28px -14px rgba(247, 197, 62, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.bp-btn--gold::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
}
.bp-btn--gold:hover { background: var(--foil); border-color: transparent; filter: brightness(1.04); box-shadow: 0 18px 34px -14px rgba(247, 197, 62, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.bp-btn--gold:hover::after { transform: translateX(120%); }
.bp-btn--ghost { background: transparent; border-color: var(--line-2); }
.bp-btn--soft { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }
.bp-btn--soft:hover { background: rgba(247, 197, 62, 0.2); border-color: var(--gold); }
.bp-btn--danger { color: #fff; background: var(--bad-fill); border-color: transparent; box-shadow: 0 12px 26px -14px rgba(220, 59, 59, 0.8); }
.bp-btn--danger:hover { background: var(--bad-fill); filter: brightness(1.08); border-color: transparent; }
.bp-btn--whats { color: #fff; background: linear-gradient(135deg, #25D366, #128C4A); border-color: transparent; }
.bp-btn--whats:hover { background: linear-gradient(135deg, #25D366, #128C4A); filter: brightness(1.06); border-color: transparent; }
.bp-btn:disabled, .bp-btn[aria-disabled="true"] {
    cursor: not-allowed;
    filter: grayscale(0.4);
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.bp-link { color: var(--gold-text); font-weight: 700; text-underline-offset: 3px; }
.bp-link:hover { text-decoration: underline; }

.bp-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bp-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink-2);
}
.bp-control { position: relative; display: flex; align-items: center; }
.bp-control__icon {
    position: absolute;
    left: 16px;
    color: var(--ink-3);
    font-size: 0.92rem;
    pointer-events: none;
    transition: color 0.2s;
}
.bp-control__end {
    position: absolute;
    right: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--ink-3);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.bp-control__end:hover { color: var(--ink); background: var(--overlay-2); }
.bp-control:focus-within .bp-control__icon { color: var(--gold-text); }

.bp-input, .bp-select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-2);
    background: var(--bg-input);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.bp-control .bp-input { padding-left: 46px; }
.bp-control--end .bp-input { padding-right: 52px; }
.bp-input::placeholder { color: var(--ink-3); opacity: 1; font-weight: 400; }
.bp-input:hover, .bp-select:hover { border-color: var(--line-3); }
.bp-input:focus, .bp-select:focus { border-color: var(--gold); box-shadow: var(--ring); background: var(--bg-surface); }
.bp-input:disabled, .bp-input[readonly] { opacity: 0.7; cursor: not-allowed; }
.bp-select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A9B3C9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.bp-select option { background: var(--bg-surface); color: var(--ink); }
input[type="date"].bp-input { min-height: 54px; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.75; }
:root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85); }

.bp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    border: 1px solid transparent;
}
.bp-alert i { margin-top: 2px; }
.bp-alert--error { background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.32); color: var(--bad); }
.bp-alert--ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, 0.32); color: var(--ok); }
.bp-alert--info { background: var(--info-soft); border-color: rgba(106, 168, 255, 0.3); color: var(--info); }
.bp-alert--warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.32); color: var(--warn); }

.bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bp-badge--ok { color: var(--ok); background: var(--ok-soft); }

.bp-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4em;
    height: 2.1em;
    padding: 0 0.7em;
    border-radius: 0.8em;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: var(--bg-surface-3);
    border: 1px solid var(--line-2);
    box-shadow: inset 0 -2px 0 var(--gold-line);
}

.bp-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .bp-tiles { grid-template-columns: repeat(4, 1fr); } }
.bp-tile {
    --c: var(--gold-text);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 118px;
    padding: 16px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
    border: 1px solid var(--line);
    color: var(--ink);
    overflow: hidden;
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
:root[data-theme="light"] .bp-tile { background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.bp-tile::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
    opacity: 0.8;
    transition: transform 0.4s var(--ease), opacity 0.3s;
}
.bp-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: var(--shadow-md); }
.bp-tile:hover::after { transform: scale(1.25); opacity: 1; }
.bp-tile__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.15rem;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
    position: relative;
    z-index: 1;
}
.bp-tile__label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.005em; }
.bp-tile__label::after { content: '\2192'; color: var(--ink-3); font-weight: 600; transition: transform 0.25s var(--ease), color 0.25s; }
.bp-tile:hover .bp-tile__label::after { transform: translateX(3px); color: var(--c); }

.bp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 44px 20px;
    text-align: center;
    color: var(--ink-3);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-lg);
}
.bp-empty i { font-size: 2rem; color: var(--ink-3); opacity: 0.8; }

.bp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 16px;
    color: var(--ink-3);
    text-align: center;
}
.bp-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--line-2);
    border-top-color: var(--gold);
    animation: bp-spin 0.8s linear infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }

.bp-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--veil);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.bp-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 26px 22px 22px;
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s var(--spring), opacity 0.25s;
}
:root[data-theme="light"] .bp-dialog { background: var(--bg-surface); }
.bp-dialog--wide { max-width: 620px; }
.bp-dialog__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.45rem;
    color: var(--gold-text);
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
}
.bp-dialog__icon--bad { color: var(--bad); background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.3); }
.bp-dialog__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.bp-dialog__text { margin-top: 8px; color: var(--ink-2); text-align: center; font-size: 0.94rem; }
.bp-dialog__actions { display: flex; gap: 10px; margin-top: 22px; }
.bp-dialog__actions > * { flex: 1; }
.bp-grabber { display: none; }

@media (max-width: 639.98px) {
    .bp-modal.bp-modal--sheet { align-items: flex-end; padding: 0; }
    .bp-modal--sheet .bp-dialog {
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 26px 26px 0 0;
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
        border-bottom: 0;
    }
    .bp-modal--sheet .bp-grabber {
        display: block;
        width: 42px;
        height: 5px;
        margin: -12px auto 16px;
        border-radius: 5px;
        background: var(--line-3);
    }
}

.bp-receipt {
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: #E9E9F8;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s var(--spring);
}
.bp-receipt__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 12px 18px;
    background: #0E1426;
    color: #F3F5FA;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.bp-receipt__bar span { display: inline-flex; align-items: center; gap: 10px; }
.bp-receipt__bar span i { color: #F9CF5A; }
.bp-receipt__actions { display: flex; gap: 6px; }
.bp-receipt__actions button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F3F5FA;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}
.bp-receipt__actions button:hover { background: rgba(255, 255, 255, 0.16); }
.bp-receipt__actions .is-share { color: #1C1302; background: linear-gradient(118deg, #FFEBB0, #F7C53E 45%, #E6A21B); }
.bp-receipt__body { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: 6px; }
.bp-receipt__body img { width: 100%; height: auto; border-radius: 14px; }

.toast-container {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92%, 420px);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--bg-surface-2);
    border: 1px solid rgba(248, 113, 113, 0.35);
    box-shadow: var(--shadow-lg);
    animation: bp-toast 0.35s var(--spring);
    transition: opacity 0.3s, transform 0.3s;
}
:root[data-theme="light"] .toast { background: var(--bg-surface); }
.toast i { color: var(--bad); font-size: 1.05rem; flex-shrink: 0; }
.toast.toast-sucesso { border-color: rgba(52, 211, 153, 0.4); }
.toast.toast-sucesso i { color: var(--ok); }
.toast.toast-info { border-color: rgba(106, 168, 255, 0.35); }
.toast.toast-info i { color: var(--info); }
.toast.saindo { opacity: 0; transform: translateY(10px); }
@keyframes bp-toast { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

.horarios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.horario-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.horario-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 78px;
    padding: 12px 8px;
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--bg-surface);
    border: 1.5px solid var(--line-2);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, color 0.2s;
}
.horario-label i { font-size: 1.05rem; color: var(--ink-3); transition: color 0.2s; }
.horario-label:hover { border-color: var(--line-3); transform: translateY(-1px); }
.horario-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 7px;
    right: 7px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.6rem;
    color: var(--ink-inv);
    background: var(--cor-horario, var(--gold));
    transform: scale(0);
    transition: transform 0.25s var(--spring);
}
.horario-checkbox:checked + .horario-label {
    color: var(--ink);
    background: var(--bg-horario);
    border-color: var(--cor-horario);
    box-shadow: 0 10px 22px -16px var(--cor-horario);
}
.horario-checkbox:checked + .horario-label i { color: var(--cor-horario); }
.horario-checkbox:checked + .horario-label::after { transform: scale(1); }
.horario-checkbox:focus-visible + .horario-label { outline: 2px solid var(--gold); outline-offset: 2px; }
:root[data-theme="light"] .horario-checkbox:checked + .horario-label { background: var(--bg-surface); border-color: var(--gold-lo); box-shadow: inset 0 0 0 2px var(--cor-horario), 0 10px 22px -16px rgba(48, 36, 12, 0.5); }
:root[data-theme="light"] .horario-checkbox:checked + .horario-label i { color: var(--gold-text); }
:root[data-theme="light"] .horario-label::after { background: var(--gold-lo); color: #fff; }

.bp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.bp-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
}
.bp-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.bp-table tr:last-child td { border-bottom: 0; }

.bp-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-3);
}
.bp-footer a { color: var(--ink-2); }
.bp-footer a:hover { color: var(--ink); }

.bp-rise > * { animation: bp-rise 0.55s var(--ease) both; }
.bp-rise > *:nth-child(2) { animation-delay: 0.05s; }
.bp-rise > *:nth-child(3) { animation-delay: 0.1s; }
.bp-rise > *:nth-child(4) { animation-delay: 0.15s; }
.bp-rise > *:nth-child(5) { animation-delay: 0.2s; }
.bp-rise > *:nth-child(6) { animation-delay: 0.25s; }
.bp-rise > *:nth-child(7) { animation-delay: 0.3s; }
.bp-rise > *:nth-child(n+8) { animation-delay: 0.35s; }
@keyframes bp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.bp-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    padding: calc(var(--topbar-h) + 12px) 16px 32px;
}
.bp-auth__brand { display: none; }
.bp-auth__panel {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.bp-auth__card {
    position: relative;
    padding: 30px 24px 26px;
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface-2) 92%, transparent), color-mix(in srgb, var(--bg-surface) 92%, transparent));
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
:root[data-theme="light"] .bp-auth__card { background: var(--bg-surface); }
.bp-auth__card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--pix), transparent);
}
.bp-auth__head { margin-bottom: 22px; }
.bp-auth__head h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.035em; margin-top: 8px; }
.bp-auth__head p { margin-top: 6px; color: var(--ink-2); font-size: 0.93rem; }
.bp-auth__foot { margin-top: 20px; text-align: center; color: var(--ink-2); font-size: 0.9rem; }
.bp-auth__mobile-mark { display: flex; justify-content: center; margin-bottom: 4px; }
.bp-auth__mobile-mark img { width: 64px; height: 68px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(247, 197, 62, 0.3)); }
.bp-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--pix);
}

@media (min-width: 980px) {
    .bp-auth {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }
    .bp-auth__brand {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        align-self: start;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-right: 1px solid var(--line);
        background:
            radial-gradient(600px 420px at 30% 20%, rgba(247, 197, 62, 0.16), transparent 65%),
            radial-gradient(520px 420px at 80% 90%, rgba(45, 212, 191, 0.14), transparent 65%),
            var(--bg-0);
    }
    :root[data-theme="light"] .bp-auth__brand {
        background:
            radial-gradient(600px 420px at 30% 20%, rgba(245, 189, 46, 0.28), transparent 65%),
            radial-gradient(520px 420px at 80% 90%, rgba(15, 118, 110, 0.12), transparent 65%),
            #EDE7DA;
    }
    .bp-auth__panel { padding: calc(var(--topbar-h) + 24px) 40px 40px; max-width: 520px; }
    .bp-auth__mobile-mark { display: none; }
    .bp-auth__card { padding: 38px 34px 32px; }
}

.bp-orbit {
    position: relative;
    width: min(440px, 80%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-orbit__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--line-2);
}
.bp-orbit__ring:nth-child(2) { inset: 12%; border-style: dashed; border-color: var(--gold-line); animation: bp-spin 60s linear infinite; }
.bp-orbit__ring:nth-child(3) { inset: 26%; border-color: rgba(45, 212, 191, 0.28); }
.bp-orbit__badge {
    position: relative;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 32%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9%;
    background: radial-gradient(circle at 30% 20%, var(--overlay-3), transparent 70%), var(--bg-surface);
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 var(--overlay-3);
    animation: bp-float 6s ease-in-out infinite;
}
:root[data-theme="light"] .bp-orbit__badge { box-shadow: 0 40px 80px -30px rgba(48, 36, 12, 0.35), inset 0 1px 0 #fff; }
.bp-orbit__badge img { width: 100%; height: 100%; object-fit: contain; }
@keyframes bp-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

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

@media (min-width: 768px) {
    body { font-size: 15.5px; }
    .bp-main { padding-left: 24px; padding-right: 24px; }
}

input[type="date"].bp-input { display: flex; align-items: center; text-align: left; }
input[type="date"].bp-input::-webkit-date-and-time-value { text-align: left; margin: 0; }

@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .bp-topbar, .bp-nav { background: var(--glass); }
    .bp-auth__card { background: var(--bg-surface); }
    .bp-tile::after { display: none; }
    .bp-tile:hover { border-color: var(--line-3); }
    .bp-tile__icon { background: var(--overlay-2); border-color: var(--line-2); }
}
