:root {
    --bg-0: #06080d;
    --bg-1: #0c111a;
    --bg-2: #121925;
    --glass: rgba(18, 26, 40, 0.55);
    --glass-strong: rgba(22, 32, 48, 0.78);
    --stroke: rgba(232, 196, 120, 0.14);
    --stroke-strong: rgba(232, 196, 120, 0.28);
    --text: #eef2f7;
    --muted: #8b97a8;
    --accent: #e8a23a;
    --accent-2: #37c5a4;
    --accent-soft: rgba(232, 162, 58, 0.16);
    --danger: #ff6b7a;
    --success: #3dd68c;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --radius: 22px;
    --nav-h: 74px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
}

.hub-random-fab {
    position: fixed;
    right: max(16px, calc(50% - 240px + 16px));
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px);
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    background: var(--glass-strong);
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}

.hub-random-fab i {
    color: var(--accent);
    font-size: 1.05rem;
}

.hub-random-fab:active {
    transform: scale(0.96);
}

[data-char-count].is-near-limit {
    color: var(--accent);
}

[data-char-count].is-at-limit {
    color: var(--danger);
    font-weight: 700;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(55, 197, 164, 0.16), transparent 55%),
        radial-gradient(900px 600px at 110% 10%, rgba(232, 162, 58, 0.18), transparent 50%),
        radial-gradient(700px 500px at 50% 120%, rgba(70, 110, 180, 0.14), transparent 55%),
        linear-gradient(180deg, var(--bg-1), var(--bg-0) 40%, #05070b);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    opacity: 0.5;
    z-index: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 18px 16px calc(var(--nav-h) + var(--safe-bottom) + 18px);
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(232, 162, 58, 0.95), rgba(55, 197, 164, 0.75));
    color: #10141c;
    box-shadow: 0 10px 30px rgba(232, 162, 58, 0.25);
    font-size: 1.15rem;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(232, 162, 58, 0.95), rgba(55, 197, 164, 0.75));
    color: #10141c;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.03em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-copy {
    line-height: 1.15;
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: block;
}

.balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    font-weight: 700;
    font-size: 0.9rem;
}

.balance-chip i {
    color: var(--accent);
}

.glass {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--shadow);
}

.glass-strong {
    background: var(--glass-strong);
}

.hero-card {
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -40px;
    top: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 162, 58, 0.28), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-card h1,
.section-title {
    font-family: var(--font-display);
    letter-spacing: -0.04em;
    margin: 0 0 8px;
}

.hero-card h1 {
    font-size: 1.85rem;
    line-height: 1.05;
}

.muted {
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stat {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat .label {
    color: var(--muted);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.stat .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.section {
    margin-top: 18px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.list-stack {
    display: grid;
    gap: 10px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.list-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
    font-size: 1.15rem;
}

.list-body {
    flex: 1;
    min-width: 0;
}

.list-body strong {
    display: block;
    font-size: 0.95rem;
}

.list-body span {
    color: var(--muted);
    font-size: 0.8rem;
}

.premium-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    color: var(--text);
    border: 1px solid var(--stroke-strong);
    background:
        linear-gradient(135deg, rgba(232, 162, 58, 0.16), rgba(55, 197, 164, 0.08)),
        var(--glass);
}

.premium-promo:hover,
.premium-promo:focus {
    color: var(--text);
}

.premium-promo-copy {
    flex: 1;
    min-width: 0;
}

.premium-promo-copy strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.2;
}

.premium-promo-copy small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 4px;
    line-height: 1.35;
}

.premium-promo-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #1a1208;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.premium-promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #1a1208;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.premium-promo-chevron {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.premium-promo.is-active {
    border-color: rgba(55, 197, 164, 0.35);
}

.premium-promo.is-active .premium-promo-icon {
    background: var(--accent-2);
    color: #04110e;
}

.reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(55, 197, 164, 0.12);
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-glass,
.btn-accent,
.btn-ghost {
    border: 0;
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 700;
    font-family: var(--font-body);
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn-glass:active,
.btn-accent:active,
.btn-ghost:active {
    transform: scale(0.97);
}

.btn-accent {
    background: linear-gradient(135deg, #f0b14d, #d88920);
    color: #16120a;
    box-shadow: 0 12px 28px rgba(232, 162, 58, 0.28);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--stroke);
    color: var(--text);
}

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

.btn-accent:disabled,
.btn-glass:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--stroke) !important;
    color: var(--text) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--stroke-strong) !important;
    box-shadow: 0 0 0 3px rgba(232, 162, 58, 0.15) !important;
}

.form-control::placeholder {
    color: #6f7c8e;
}

.form-label {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.tap-stage {
    display: grid;
    place-items: center;
    padding: 28px 16px 18px;
    text-align: center;
}

.tap-orb {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 1px solid var(--stroke-strong);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 220, 150, 0.35), transparent 35%),
        linear-gradient(160deg, rgba(232, 162, 58, 0.9), rgba(55, 197, 164, 0.55));
    color: #14110c;
    display: grid;
    place-items: center;
    font-size: 3rem;
    box-shadow:
        0 0 0 10px rgba(232, 162, 58, 0.08),
        0 22px 50px rgba(232, 162, 58, 0.28);
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
    animation: orbPulse 2.8s ease-in-out infinite;
}

.tap-orb:active {
    transform: scale(0.94);
}

.tap-orb.is-cooldown {
    animation: none;
    filter: grayscale(0.25);
    opacity: 0.8;
}

@keyframes orbPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 10px rgba(232, 162, 58, 0.08),
            0 22px 50px rgba(232, 162, 58, 0.28);
    }
    50% {
        box-shadow:
            0 0 0 16px rgba(55, 197, 164, 0.1),
            0 26px 60px rgba(232, 162, 58, 0.34);
    }
}

.float-sats {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    pointer-events: none;
    animation: floatUp 0.9s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-56px) scale(1.15);
    }
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(480px, 100%);
    padding: 10px 14px calc(10px + var(--safe-bottom));
    z-index: 50;
}

.bottom-nav-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(10, 14, 22, 0.82);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}

.bottom-nav-inner.nav-cols-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
}

.bottom-nav-inner.nav-cols-6 .nav-link {
    font-size: 0.62rem;
    padding: 8px 2px;
}

.nav-indicator {
    position: absolute;
    top: 8px;
    left: 0;
    height: calc(100% - 16px);
    width: 0;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(232, 162, 58, 0.28), rgba(232, 162, 58, 0.08));
    box-shadow:
        inset 0 0 0 1px rgba(232, 162, 58, 0.18),
        0 8px 20px rgba(232, 162, 58, 0.12);
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        transform 0.48s cubic-bezier(0.22, 1.2, 0.36, 1),
        width 0.48s cubic-bezier(0.22, 1.2, 0.36, 1);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.nav-indicator.is-ready {
    opacity: 1;
}

.nav-indicator.is-jumping {
    animation: navIndicatorPop 0.48s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.nav-link {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    transition: color 0.22s ease;
    background: transparent;
}

.nav-link i {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1), color 0.22s ease;
}

.nav-link span {
    transition: transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.22s ease;
}

.nav-link.active {
    color: var(--text);
    background: transparent;
}

.nav-link.active i {
    color: var(--accent);
    animation: navIconHop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.nav-link.active span {
    animation: navLabelIn 0.35s ease;
}

@keyframes navIndicatorPop {
    0% {
        filter: brightness(1);
    }
    35% {
        filter: brightness(1.18);
    }
    100% {
        filter: brightness(1);
    }
}

@keyframes navIconHop {
    0% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(-4px) scale(1.18);
    }
    70% {
        transform: translateY(1px) scale(0.96);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes navLabelIn {
    from {
        opacity: 0.55;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-indicator {
        transition: none;
        animation: none;
    }

    .nav-link.active i,
    .nav-link.active span {
        animation: none;
    }
}

.toast-host {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 24px));
    z-index: 100;
    display: grid;
    gap: 8px;
}

.toast-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(16, 22, 34, 0.92);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.25s ease;
}

.toast-item.success i {
    color: var(--success);
}

.toast-item.error i {
    color: var(--danger);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-row input {
    flex: 1;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.75rem;
}

.history-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-row:last-child {
    border-bottom: 0;
}

.page-enter {
    animation: pageIn 0.28s ease;
}

#spa-content.spa-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* —— Splash loader —— */
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(900px 500px at 20% 0%, rgba(55, 197, 164, 0.18), transparent 55%),
        radial-gradient(800px 480px at 90% 20%, rgba(232, 162, 58, 0.2), transparent 50%),
        #06080d;
    overflow: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.app-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-aurora {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 162, 58, 0.22), transparent 70%);
    filter: blur(8px);
    animation: loaderDrift 4.5s ease-in-out infinite;
}

.loader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
    opacity: 0.7;
}

.loader-stage {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
}

.loader-orb-wrap {
    position: relative;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}

.loader-orb {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    color: #14110c;
    background: linear-gradient(160deg, #f0b14d, #37c5a4);
    box-shadow:
        0 0 0 8px rgba(232, 162, 58, 0.1),
        0 18px 40px rgba(232, 162, 58, 0.3);
    animation: loaderPulse 1.8s ease-in-out infinite;
    z-index: 2;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(232, 162, 58, 0.35);
}

.loader-ring-a {
    animation: loaderSpin 2.4s linear infinite;
    border-top-color: rgba(240, 177, 77, 0.95);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.loader-ring-b {
    inset: 10px;
    border-color: rgba(55, 197, 164, 0.2);
    border-bottom-color: rgba(55, 197, 164, 0.9);
    border-left-color: transparent;
    animation: loaderSpin 1.7s linear infinite reverse;
}

.loader-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
}

.loader-tag {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.loader-track {
    width: min(180px, 55vw);
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.loader-bar {
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e8a23a, #37c5a4);
    animation: loaderSlide 1.15s ease-in-out infinite;
}

/* —— Soft SPA route bar —— */
.route-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 80;
    overflow: hidden;
    pointer-events: none;
}

.route-loader[hidden] {
    display: none;
}

.route-loader-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, #e8a23a, #37c5a4, transparent);
    animation: routeSlide 0.9s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderSlide {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@keyframes loaderDrift {
    0%,
    100% {
        transform: translate(-8%, -4%) scale(1);
    }
    50% {
        transform: translate(10%, 6%) scale(1.08);
    }
}

@keyframes routeSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* —— Legal gate —— */
html.legal-locked,
html.legal-locked body {
    overflow: hidden;
}

.legal-gate {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: end center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-gate-card {
    width: min(480px, 100%);
    max-height: min(88dvh, 720px);
    padding: 20px 18px 16px;
    display: grid;
    gap: 12px;
    overflow: hidden;
    animation: pageIn 0.3s ease;
}

.legal-gate-card h2 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.04em;
    font-size: 1.35rem;
}

.legal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-tab {
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-family: var(--font-body);
}

.legal-tab.active {
    background: rgba(232, 162, 58, 0.16);
    color: var(--text);
}

.legal-scroll {
    max-height: 36dvh;
    overflow: auto;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.84rem;
    line-height: 1.55;
    color: #c5ceda;
}

.legal-scroll h2,
.legal-scroll h3 {
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    margin: 0.8em 0 0.4em;
}

.legal-scroll h2 { font-size: 1.05rem; margin-top: 0; }
.legal-scroll h3 { font-size: 0.92rem; }
.legal-scroll ul { padding-left: 1.1rem; margin: 0.4rem 0; }
.legal-scroll li { margin: 0.25rem 0; }

.legal-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.84rem;
    color: var(--muted);
}

.legal-check input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.legal-links {
    text-align: center;
    font-size: 0.78rem;
}

.legal-doc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c5ceda;
}

.legal-doc h2,
.legal-doc h3 {
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.legal-doc h2 { font-size: 1.15rem; }
.legal-doc h3 { font-size: 1rem; margin-top: 1rem; }

.deposit-box {
    padding-top: 4px;
}

.deposit-amount {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.deposit-qr {
    display: grid;
    place-items: center;
}

.deposit-qr img {
    border-radius: 16px;
    background: #fff;
    padding: 10px;
    box-shadow: var(--shadow);
}

.community-card {
    animation: pageIn 0.28s ease;
}

.community-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.community-react.is-on {
    border-color: rgba(232, 162, 58, 0.45) !important;
    color: var(--accent);
}

.comment-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-row:last-child {
    border-bottom: 0;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 0.8rem;
    border-radius: 12px;
}

@media (min-width: 481px) {
    .app-shell {
        padding-top: 28px;
    }

    .legal-gate {
        place-items: center;
    }
}
