:root {
    --bg: #090a0d;
    --bg-2: #111317;
    --panel: rgba(20, 22, 26, 0.86);
    --panel-solid: #15181d;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f7f2e8;
    --muted: #b9b3a6;
    --soft: #817b70;
    --gold: #d7a83f;
    --gold-strong: #f4c95d;
    --green: #19c37d;
    --green-dark: #0f6b4e;
    --red: #ff6b6b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(145deg, #090a0d 0%, #111317 48%, #17130d 100%);
    background-size: 44px 44px, 44px 44px, auto;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, rgba(215, 168, 63, 0.08), transparent 34%, rgba(25, 195, 125, 0.08));
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 30px 0 44px;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244, 201, 93, 0.58);
    border-radius: 8px;
    background: linear-gradient(145deg, #f4c95d, #9f6b21);
    color: #16100a;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
}

.brand small,
.network-badge,
.section-label,
.hero-points span,
.claim-window span {
    color: var(--muted);
    font-size: 0.82rem;
}

.network-badge {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}

.claim-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 30px;
    align-items: center;
    padding: 30px 0 12px;
}

.claim-hero,
.claim-card {
    min-width: 0;
}

.status-pill {
    width: fit-content;
    margin: 0 0 18px;
    padding: 9px 13px;
    border: 1px solid rgba(25, 195, 125, 0.42);
    border-radius: 999px;
    background: rgba(25, 195, 125, 0.08);
    color: #cbffe8;
    font-size: 0.9rem;
    font-weight: 700;
}

body[data-claim-status="before"] .status-pill {
    border-color: rgba(244, 201, 93, 0.46);
    background: rgba(244, 201, 93, 0.08);
    color: #ffe9a8;
}

body[data-claim-status="ended"] .status-pill {
    border-color: rgba(255, 107, 107, 0.42);
    background: rgba(255, 107, 107, 0.08);
    color: #ffc9c9;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: 4.5rem;
    line-height: 0.95;
    letter-spacing: 0;
}

.lead {
    max-width: 620px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.7;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 640px;
    margin-bottom: 24px;
}

.hero-points div,
.timer-box {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.hero-points div {
    padding: 14px;
}

.hero-points strong,
.hero-points span {
    display: block;
}

.hero-points strong {
    margin-top: 6px;
    font-size: 1.05rem;
}

.claim-card {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.claim-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.claim-card h2 {
    margin: 5px 0 0;
    font-size: 1.75rem;
    line-height: 1.15;
}

.live-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(25, 195, 125, 0.12);
}

body[data-claim-status="before"] .live-dot {
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(244, 201, 93, 0.12);
}

body[data-claim-status="ended"] .live-dot {
    background: var(--red);
    box-shadow: 0 0 0 7px rgba(255, 107, 107, 0.12);
}

.timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.timer-box {
    padding: 15px 10px;
    text-align: center;
}

.timer-box span {
    display: block;
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.timer-box small {
    display: block;
    margin-top: 8px;
    color: var(--soft);
    font-size: 0.78rem;
}

.claim-form {
    display: grid;
    gap: 10px;
}

.claim-form label {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.claim-form input {
    width: 100%;
    min-height: 52px;
    margin-bottom: 8px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    outline: 0;
    background: rgba(255, 255, 255, 0.065);
    color: var(--text);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.claim-form input::placeholder {
    color: #837d72;
}

.claim-form input:focus {
    border-color: rgba(244, 201, 93, 0.72);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(244, 201, 93, 0.12);
}

.primary-button {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-strong), #b97b22);
    color: #130f09;
    cursor: pointer;
    font-weight: 850;
    transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.claim-form.is-disabled {
    opacity: 0.72;
}

.form-message {
    min-height: 22px;
    margin: 16px 0 0;
    font-weight: 750;
    line-height: 1.45;
}

.form-message.success {
    color: #8dffbd;
}

.form-message.error {
    color: #ff9c9c;
}

.claim-window {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.claim-window strong {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.45;
}

.status-page-shell {
    width: min(100% - 32px, 620px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.status-card h1 {
    margin-bottom: 16px;
    font-size: 2.7rem;
    line-height: 1;
}

.payment-summary {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.payment-summary div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.payment-summary dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.payment-summary dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
    font-weight: 800;
}

.status-link {
    text-decoration: none;
}

@media (max-width: 980px) {
    .page-shell {
        padding-top: 22px;
    }

    .claim-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    h1 {
        max-width: 680px;
        font-size: 3.35rem;
        line-height: 1;
    }

    .visual-panel {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
        padding: 16px 0 28px;
    }

    .topbar {
        align-items: flex-start;
    }

    .network-badge {
        display: none;
    }

    .claim-grid {
        gap: 20px;
        padding-top: 18px;
    }

    h1 {
        font-size: 2.7rem;
    }

    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

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

    .claim-card {
        padding: 20px;
    }

    .claim-card h2 {
        font-size: 1.45rem;
    }

    .timer-box span {
        font-size: 1.75rem;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 2.25rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }
}
