:root {
    --bg-1: #06111f;
    --bg-2: #0f1f3d;
    --card: rgba(9, 18, 35, 0.88);
    --card-border: rgba(115, 160, 255, 0.22);
    --panel: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --muted: #cdd8ef;
    --accent: #5ec8ff;
    --accent-2: #6ee7b7;
    --warning: #ffd44d;
    --danger: #ff7373;
    --success: #67e8a5;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0, 183, 255, 0.20), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 25%),
        radial-gradient(circle at bottom center, rgba(34, 197, 94, 0.10), transparent 30%),
        linear-gradient(180deg, #071120 0%, #0a1630 52%, #050b15 100%);
    overflow-x: hidden;
}

body {
    position: relative;
    padding: 36px 18px 48px;
}

.shell {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
}

.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero {
    position: relative;
    padding: 34px 28px 24px;
    text-align: center;
    background:
        radial-gradient(circle at center top, rgba(94, 200, 255, 0.22), transparent 40%),
        linear-gradient(135deg, rgba(13, 26, 52, 0.95) 0%, rgba(22, 37, 84, 0.92) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 200, 255, 0.8), transparent);
}

.logo-wrap {
    display: inline-block;
    padding: 16px 22px;
    margin-bottom: 18px;
}

.logo-wrap img {
    display: block;
    max-width: 420px;
    width: 100%;
    height: auto;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.subtitle {
    max-width: 760px;
    margin: 14px auto 0;
    font-size: 20px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 700;
}

.content {
    padding: 30px 22px 34px;
}

.form-box,
.status-box,
.support-box,
.quicklinks-box {
    margin: 0 auto 22px;
    max-width: 860px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 16, 31, 0.90), rgba(7, 11, 22, 0.96));
    border: 1px solid rgba(255,255,255,0.08);
}

.form-title,
.section-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
}

.form-subtitle,
.section-subtitle {
    margin: 0 0 24px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #dbe7ff;
    font-weight: 700;
}

.error-box {
    margin: 0 auto 22px;
    max-width: 860px;
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(55, 10, 10, 0.9), rgba(34, 8, 8, 0.98));
    border: 1px solid rgba(255, 115, 115, 0.3);
    color: #ffd7d7;
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ec8ff;
}

.input {
    width: 100%;
    border: 2px solid rgba(94, 200, 255, 0.22);
    background: #ffffff;
    color: #0a1220;
    border-radius: 16px;
    padding: 18px 16px;
    font-size: 18px;
    font-weight: 700;
    outline: none;
}

.input:focus {
    border-color: rgba(94, 200, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(94, 200, 255, 0.14);
}

.button-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 16px;
    padding: 16px 22px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #31b9ff 0%, #118fe6 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 143, 230, 0.35);
}

.btn-secondary {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.10);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.kpi {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
}

.kpi-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ec8ff;
    font-weight: 900;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    color: #ffffff;
    word-break: break-word;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 6px;
}

.detail-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
}

.detail-title {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ec8ff;
    font-weight: 900;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 700;
    word-break: break-word;
}

.items-table-wrap {
    margin-top: 24px;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: rgba(255,255,255,0.02);
}

.items-table th,
.items-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.items-table th {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ec8ff;
    font-weight: 900;
    background: rgba(255,255,255,0.03);
}

.items-table td {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
    vertical-align: top;
}

.help-links {
    margin-top: 14px;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: #dbe4f7;
    font-weight: 700;
}

.help-links a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 900;
    word-break: break-word;
}

.small-note {
    margin-top: 18px;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: #c9d8f4;
    font-weight: 700;
}

.quicklinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quicklink {
    display: block;
    padding: 22px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.quicklink:hover {
    border-color: rgba(94, 200, 255, 0.35);
    transform: translateY(-1px);
}

.quicklink-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ec8ff;
    font-weight: 900;
    margin-bottom: 8px;
}

.quicklink-value {
    font-size: 18px;
    line-height: 1.4;
    color: #7dd3fc;
    font-weight: 900;
    word-break: break-all;
}

.quicklink-desc {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.5;
    color: #c9d8f4;
    font-weight: 700;
}

.forum-box {
    margin: 0 auto 22px;
    max-width: 860px;
    padding: 28px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(14, 30, 52, 0.95), rgba(7, 15, 30, 0.98));
    border: 1px solid rgba(110, 231, 183, 0.25);
    text-align: center;
}

.forum-box .section-title {
    color: var(--accent-2);
}

.forum-link-btn {
    appearance: none;
    border: 0;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.30);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.forum-link-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    body {
        padding: 20px 12px 30px;
    }

    .hero {
        padding: 24px 16px 18px;
    }

    .content {
        padding: 18px 14px 22px;
    }

    .form-box,
    .status-box,
    .support-box,
    .quicklinks-box,
    .forum-box,
    .error-box {
        padding: 18px 14px;
    }

    .form-grid,
    .kpi-grid,
    .details-grid,
    .quicklinks-grid {
        grid-template-columns: 1fr;
    }

    .btn,
    .forum-link-btn {
        width: 100%;
    }

    .button-row {
        gap: 10px;
    }

    .subtitle,
    .form-subtitle,
    .section-subtitle,
    .small-note,
    .help-links {
        font-size: 17px;
    }

    .kpi-value {
        font-size: 22px;
    }
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
    }

    .button-row,
    .support-box,
    .forum-box {
        display: none !important;
    }

    .card,
    .hero,
    .content,
    .form-box,
    .status-box,
    .detail-card,
    .kpi,
    .quicklinks-box,
    .quicklink {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        border: none !important;
    }

    h1,
    .section-title,
    .form-title,
    .kpi-value,
    .detail-value,
    .items-table td,
    .items-table th {
        color: #000000 !important;
    }

    .subtitle,
    .form-subtitle,
    .section-subtitle,
    .small-note,
    label,
    .detail-title,
    .kpi-label,
    .quicklink-label {
        color: #333333 !important;
    }

    .quicklink-value,
    .quicklink-desc {
        color: #000000 !important;
    }

    .items-table {
        min-width: 0 !important;
    }

    @page {
        margin: 20px;
    }
}

.confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.confetti span {
    position: absolute;
    top: -10vh;
    display: inline-block;
    font-size: 48px;
    line-height: 1;
    opacity: 0.55;
    animation: fall linear infinite;
}

.confetti span::before {
    content: "🍺";
}

.confetti span:nth-child(1)  { left: 4%;  animation-duration: 10s; animation-delay: 0s; }
.confetti span:nth-child(2)  { left: 11%; animation-duration: 12s; animation-delay: 1s; }
.confetti span:nth-child(3)  { left: 18%; animation-duration: 11s; animation-delay: 2s; }
.confetti span:nth-child(4)  { left: 26%; animation-duration: 13s; animation-delay: 0.5s; }
.confetti span:nth-child(5)  { left: 34%; animation-duration: 9s;  animation-delay: 1.5s; }
.confetti span:nth-child(6)  { left: 42%; animation-duration: 12s; animation-delay: 0.25s; }
.confetti span:nth-child(7)  { left: 50%; animation-duration: 10s; animation-delay: 2.25s; }
.confetti span:nth-child(8)  { left: 58%; animation-duration: 11s; animation-delay: 1.25s; }
.confetti span:nth-child(9)  { left: 66%; animation-duration: 13s; animation-delay: 0.75s; }
.confetti span:nth-child(10) { left: 74%; animation-duration: 12s; animation-delay: 2.5s; }
.confetti span:nth-child(11) { left: 82%; animation-duration: 9s;  animation-delay: 0.9s; }
.confetti span:nth-child(12) { left: 90%; animation-duration: 14s; animation-delay: 1.8s; }

.confetti span:nth-child(2)::before  { content: "🍻"; }
.confetti span:nth-child(3)::before  { content: "🍸"; }
.confetti span:nth-child(4)::before  { content: "🍷"; }
.confetti span:nth-child(5)::before  { content: "🏈"; }
.confetti span:nth-child(6)::before  { content: "🏀"; }
.confetti span:nth-child(7)::before  { content: "⚾"; }
.confetti span:nth-child(8)::before  { content: "🏒"; }
.confetti span:nth-child(9)::before  { content: "🎤"; }
.confetti span:nth-child(10)::before { content: "🎵"; }
.confetti span:nth-child(11)::before { content: "📺"; }
.confetti span:nth-child(12)::before { content: "🍹"; }

.confetti span:nth-child(3n) {
    font-size: 28px;
}

.confetti span:nth-child(4n) {
    font-size: 20px;
}

@keyframes fall {
    0% {
        transform: translateY(-12vh) rotate(0deg);
    }
    100% {
        transform: translateY(120vh) rotate(360deg);
    }
}

/* ------------------------------------------------------------------
   Additions — seat usage, magic-link gating, notices
   ------------------------------------------------------------------ */

.notice-box {
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
    border: 1px solid transparent;
}

.notice-info {
    background: rgba(94, 200, 255, 0.10);
    border-color: rgba(94, 200, 255, 0.35);
    color: var(--text);
}

.notice-success {
    background: rgba(103, 232, 165, 0.10);
    border-color: rgba(103, 232, 165, 0.38);
    color: var(--text);
}

.notice-warning {
    background: rgba(255, 212, 77, 0.10);
    border-color: rgba(255, 212, 77, 0.40);
    color: var(--text);
}

.notice-title {
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

/* Seat meter -------------------------------------------------------- */

.seat-meter {
    margin-top: 6px;
}

.seat-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.seat-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.4s ease;
}

.seat-bar-fill.is-full {
    background: linear-gradient(90deg, var(--warning), var(--danger));
}

.seat-caption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.seat-caption strong {
    color: var(--text);
}

/* Status pill ------------------------------------------------------- */

.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pill-good {
    background: rgba(103, 232, 165, 0.16);
    color: var(--success);
}

.pill-warn {
    background: rgba(255, 212, 77, 0.16);
    color: var(--warning);
}

.pill-bad {
    background: rgba(255, 115, 115, 0.16);
    color: var(--danger);
}

/* Manage-billing gate ----------------------------------------------- */

.gate-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--card-border);
}

.gate-email {
    font-weight: 700;
    color: var(--accent);
    word-break: break-all;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.masked {
    letter-spacing: 0.04em;
}
