:root {
    --bg-0: #060607;
    --bg-1: #0b0b0d;
    --bg-2: #111114;
    --panel: rgba(18, 18, 22, 0.56);
    --panel-strong: rgba(16, 16, 20, 0.78);
    --panel-soft: rgba(255, 255, 255, 0.035);
    --line: rgba(255, 255, 255, 0.075);
    --line-strong: rgba(229, 199, 107, 0.22);
    --gold: #e5c76b;
    --gold-strong: #f1d889;
    --gold-soft: rgba(229, 199, 107, 0.16);
    --white: #f7f7f4;
    --text: rgba(255, 255, 255, 0.94);
    --text-soft: rgba(255, 255, 255, 0.64);
    --text-dim: rgba(255, 255, 255, 0.48);
    --green: #59d98e;
    --green-soft: rgba(89, 217, 142, 0.16);
    --violet: #8b7cff;
    --danger: #ff8d8d;

    --radius-2xl: 32px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;

    --shadow-outer:
        0 24px 70px rgba(0, 0, 0, 0.52),
        0 8px 28px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.025);

    --shadow-inner:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        inset 0 -1px 0 rgba(0, 0, 0, 0.28),
        inset 0 0 44px rgba(255, 255, 255, 0.018);

    --gold-glow:
        0 0 0 1px rgba(229, 199, 107, 0.12),
        0 0 22px rgba(229, 199, 107, 0.13),
        0 0 54px rgba(229, 199, 107, 0.06);

    --green-glow:
        0 0 0 1px rgba(89, 217, 142, 0.12),
        0 0 22px rgba(89, 217, 142, 0.14),
        0 0 54px rgba(89, 217, 142, 0.06);

    --transition-fast: 180ms ease;
    --transition: 260ms ease;
}

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

html {
    min-height: 100%;
    background:
        radial-gradient(circle at 14% 18%, rgba(139, 124, 255, 0.09), transparent 26%),
        radial-gradient(circle at 84% 16%, rgba(229, 199, 107, 0.09), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 22%),
        linear-gradient(180deg, #09090b 0%, #070708 50%, #09090b 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    background: transparent;
    overflow-x: hidden;
}

a,
button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

.app-root {
    position: relative;
    min-height: 100vh;
    padding:
        calc(max(18px, env(safe-area-inset-top)) + 28px)
        14px
        max(22px, env(safe-area-inset-bottom))
        14px;
}

.screen {
    width: min(100%, 980px);
    margin: 0 auto;
}

.center-screen {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
}

.dashboard {
    display: grid;
    gap: 16px;
}

.glass {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        var(--panel);
    border: 1px solid var(--line);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    box-shadow: var(--shadow-outer), var(--shadow-inner);
}

.elevated {
    position: relative;
    overflow: hidden;
}

.elevated::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(229, 199, 107, 0.16),
            transparent 25%,
            transparent 72%,
            rgba(255, 255, 255, 0.07)
        );
    pointer-events: none;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-card,
.coming-card,
.stat-card,
.meta-card,
.info-card {
    border-radius: var(--radius-xl);
}

.hero-card {
    padding: 22px;
}

.hero-card-premium {
    background:
        radial-gradient(circle at 82% 24%, rgba(229, 199, 107, 0.07), transparent 26%),
        radial-gradient(circle at 18% 86%, rgba(139, 124, 255, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        var(--panel);
}

.panel-center {
    width: min(100%, 720px);
}

.hero-topline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.045);
    box-shadow: var(--shadow-inner);
}

.hero-topline-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.signal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(89, 217, 142, 0.68);
    animation: pulse 2.6s ease-in-out infinite;
}

.signal-danger {
    background: var(--danger);
    box-shadow: 0 0 14px rgba(255, 141, 141, 0.62);
}

.hero-layout {
    display: grid;
    gap: 18px;
}

.hero-layout-open {
    align-items: center;
}

.hero-layout-locked {
    align-items: start;
}

.hero-copy {
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(89, 217, 142, 0.09);
    border: 1px solid rgba(89, 217, 142, 0.2);
    color: #9beabc;
    box-shadow: var(--green-glow);
    font-size: 13px;
    font-weight: 600;
    animation: badgeBreathe 4.2s ease-in-out infinite;
}

.hero-badge-danger {
    background: rgba(255, 141, 141, 0.08);
    border-color: rgba(255, 141, 141, 0.15);
    color: #ffb4b4;
    box-shadow:
        0 0 0 1px rgba(255, 141, 141, 0.08),
        0 0 20px rgba(255, 141, 141, 0.11);
    animation: none;
}

.hero-title,
.coming-title {
    margin: 0;
    font-family: "Sora", system-ui, sans-serif;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--white);
    text-wrap: balance;
}

.hero-title {
    font-size: clamp(34px, 9vw, 62px);
    font-weight: 700;
}

.hero-title-locked {
    font-size: clamp(30px, 8vw, 54px);
}

.hero-subtitle,
.coming-text {
    margin: 14px 0 0;
    font-size: clamp(15px, 3.8vw, 18px);
    line-height: 1.62;
    color: var(--text-soft);
}

.hero-subtitle-wide {
    max-width: 700px;
}

.status-orb-wrap {
    display: flex;
    align-items: stretch;
}

.status-orb {
    width: 100%;
    min-height: 138px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 22px 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 40%, rgba(229, 199, 107, 0.18), transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        var(--panel-strong);
    border: 1px solid rgba(229, 199, 107, 0.16);
    box-shadow:
        var(--shadow-outer),
        var(--shadow-inner),
        0 0 44px rgba(229, 199, 107, 0.09);
    text-align: center;
    position: relative;
}

.status-orb::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.status-orb-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.status-orb-name {
    margin-top: 2px;
    font-family: "Sora", system-ui, sans-serif;
    font-size: clamp(26px, 6.2vw, 36px);
    font-weight: 700;
    color: var(--white);
    text-wrap: balance;
    text-shadow: 0 0 24px rgba(229, 199, 107, 0.12);
}

.stats-grid,
.meta-grid {
    display: grid;
    gap: 14px;
}

.stats-grid-premium {
    align-items: stretch;
}

.stat-card,
.coming-card {
    padding: 18px;
}

.stat-card-featured {
    background:
        radial-gradient(circle at 88% 20%, rgba(229, 199, 107, 0.09), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        var(--panel);
}

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

.stat-label,
.meta-label,
.card-kicker,
.coming-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(89, 217, 142, 0.09);
    border: 1px solid rgba(89, 217, 142, 0.16);
    color: #9beabc;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(89, 217, 142, 0.07);
    animation: badgeBreathe 4.8s ease-in-out infinite;
}

.stat-chip-gold {
    background: rgba(229, 199, 107, 0.08);
    border-color: rgba(229, 199, 107, 0.16);
    color: var(--gold);
    box-shadow: 0 0 16px rgba(229, 199, 107, 0.07);
    animation: none;
}

.stat-value,
.meta-value {
    font-family: "Sora", system-ui, sans-serif;
    color: var(--white);
    letter-spacing: -0.03em;
}

.stat-value {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    line-height: 1.04;
}

.stat-value-main {
    font-size: clamp(24px, 5.8vw, 36px);
}

.stat-value-gold {
    color: var(--gold-strong);
    text-shadow: 0 0 22px rgba(229, 199, 107, 0.1);
}

.stat-note {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.inset-panel {
    padding: 18px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(10, 10, 13, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -2px 12px rgba(0, 0, 0, 0.28),
        inset 0 0 30px rgba(255, 255, 255, 0.016);
}

.info-card-premium {
    min-height: 100%;
}

.meta-card {
    padding: 16px 18px;
}

.meta-value {
    margin-top: 10px;
    font-size: clamp(18px, 4.2vw, 24px);
    font-weight: 600;
    word-break: break-word;
}

.feature-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
    line-height: 1.7;
}

.feature-list li + li {
    margin-top: 6px;
}

.coming-card-premium {
    background:
        radial-gradient(circle at 12% 24%, rgba(139, 124, 255, 0.08), transparent 24%),
        radial-gradient(circle at 88% 82%, rgba(229, 199, 107, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        var(--panel);
}

.coming-title {
    margin-top: 10px;
    font-size: clamp(24px, 5.5vw, 40px);
    font-weight: 700;
    max-width: 760px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    position: relative;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition),
        opacity var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.btn:active {
    transform: translateY(1px) scale(0.992);
}

.btn-gold {
    color: #16130a;
    background:
        linear-gradient(180deg, #f4dc8d 0%, #e5c76b 52%, #cca94a 100%);
    box-shadow:
        0 12px 30px rgba(229, 199, 107, 0.22),
        0 0 28px rgba(229, 199, 107, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    font-weight: 600;
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(15, 15, 18, 0.72);
    box-shadow: var(--shadow-inner);
    font-weight: 500;
}

.btn-full {
    width: 100%;
}

.loader-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 30px auto 0;
    display: grid;
    place-items: center;
}

.loader-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid rgba(229, 199, 107, 0.2);
    box-shadow:
        0 0 30px rgba(229, 199, 107, 0.16),
        inset 0 0 24px rgba(229, 199, 107, 0.08);
    position: relative;
    animation: rotateSlow 2.8s linear infinite;
}

.loader-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border-top: 2px solid var(--gold);
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-left: 2px solid rgba(229, 199, 107, 0.2);
    animation: rotateSlow 1.35s linear infinite reverse;
}

.loader-core {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff7d5 0%, #e5c76b 68%, #caa94b 100%);
    box-shadow: 0 0 24px rgba(229, 199, 107, 0.5);
}

.ambient {
    position: fixed;
    inset: auto;
    border-radius: 50%;
    filter: blur(88px);
    pointer-events: none;
    opacity: 0.7;
    z-index: -1;
}

.ambient-gold {
    width: 250px;
    height: 250px;
    top: 7%;
    right: -44px;
    background: rgba(229, 199, 107, 0.11);
    animation: floatSoft 12s ease-in-out infinite;
}

.ambient-violet {
    width: 220px;
    height: 220px;
    bottom: 13%;
    left: -56px;
    background: rgba(139, 124, 255, 0.12);
    animation: floatSoft 14s ease-in-out infinite reverse;
}

.ambient-white {
    width: 170px;
    height: 170px;
    top: 42%;
    right: 24%;
    background: rgba(255, 255, 255, 0.04);
    animation: pulseGlow 8s ease-in-out infinite;
}

.reveal {
    animation: revealUp 520ms cubic-bezier(.2,.9,.2,1);
}

@media (max-width: 420px) {
    .app-root {
        padding-top: calc(max(16px, env(safe-area-inset-top)) + 30px);
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-card,
    .stat-card,
    .meta-card,
    .coming-card,
    .inset-panel {
        padding: 16px;
    }

    .hero-title {
        font-size: clamp(30px, 10vw, 48px);
    }

    .hero-title-locked {
        font-size: clamp(28px, 9vw, 42px);
    }

    .status-orb {
        min-height: 124px;
        padding: 18px 16px;
    }

    .status-orb-name {
        font-size: clamp(22px, 7vw, 30px);
    }

    .cta-row .btn {
        width: 100%;
    }
}

@media (min-width: 720px) {
    .app-root {
        padding:
            calc(max(28px, env(safe-area-inset-top)) + 22px)
            22px
            max(28px, env(safe-area-inset-bottom))
            22px;
    }

    .hero-card {
        padding: 28px;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .hero-card {
        padding: 34px;
    }

    .dashboard {
        gap: 18px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn-gold:hover {
        transform: translateY(-1px);
        box-shadow:
            0 16px 36px rgba(229, 199, 107, 0.24),
            0 0 34px rgba(229, 199, 107, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.46);
    }

    .btn-ghost:hover {
        transform: translateY(-1px);
        border-color: rgba(229, 199, 107, 0.2);
        box-shadow:
            var(--shadow-inner),
            0 0 24px rgba(229, 199, 107, 0.08);
    }

    .hero-card:hover,
    .stat-card:hover,
    .coming-card:hover,
    .info-card:hover {
        box-shadow:
            var(--shadow-outer),
            var(--shadow-inner),
            0 0 38px rgba(229, 199, 107, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

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

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.34;
        transform: scale(1);
    }
    50% {
        opacity: 0.72;
        transform: scale(1.12);
    }
}

@keyframes badgeBreathe {
    0%, 100% {
        box-shadow: var(--green-glow);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(89, 217, 142, 0.16),
            0 0 28px rgba(89, 217, 142, 0.18),
            0 0 64px rgba(89, 217, 142, 0.08);
    }
}
