:root {
    --bg-main: #0f172a;
    --bg-card: rgba(17, 24, 39, .92);
    --bg-soft: rgba(255, 255, 255, .06);
    --border-soft: rgba(255, 255, 255, .12);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --primary: #2563eb;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .22), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #111827 45%, #020617 100%);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

.app-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 18px;
}

.page-title {
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.05;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-block;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    margin-bottom: 6px;
}

.thunder-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.thunder-card .card-body {
    padding: 28px;
}

.form-label {
    color: #f8fafc;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    min-height: 52px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, .10);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .22);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, .45);
}

textarea.form-control {
    min-height: 230px;
    resize: vertical;
}

.form-text,
.text-secondary {
    color: var(--text-muted) !important;
}

.btn-thunder {
    min-height: 50px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    padding: 13px 22px;
    white-space: nowrap;
}

.qr-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    background: #fff;
    padding: 14px;
    border-radius: 22px;
}

.qr-box img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
}

.pass-summary {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 18px;
}

.order-list {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
}

.order-item {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-soft);
    margin-bottom: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #e5e7eb;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nav-back {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 800;
}

.nav-back:hover {
    color: #bfdbfe;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 60px;
}

/* MOBILE */
@media (max-width: 576px) {
    .app-shell {
        max-width: 100%;
        padding: 22px 14px;
    }

    .page-title {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .page-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .hero-badge {
        font-size: 12px;
    }

    .thunder-card {
        border-radius: 20px;
    }

    .thunder-card .card-body {
        padding: 18px;
    }

    .qr-box {
        width: 100%;
        padding: 10px;
        border-radius: 20px;
    }

    .qr-box img {
        width: 100%;
        max-width: 300px;
    }

    .pass-summary {
        padding: 16px;
    }

    .pass-summary .row {
        display: block;
    }

    .pass-summary [class*="col-"] {
        width: 100%;
        margin-bottom: 14px;
    }

    .order-list {
        max-height: none;
    }

    .order-item {
        font-size: 15px;
    }

    .btn-thunder {
        width: 100%;
        display: block;
        font-size: 16px;
        padding: 15px 16px;
        margin-bottom: 10px;
        white-space: normal;
    }

    .d-flex.gap-2.justify-content-center.flex-wrap {
        display: block !important;
    }

    footer {
        margin-top: 40px;
    }
}