/* ==========================================================================
   CODEVAULT — Premium Reward/Code-Sharing Frontend
   Plain CSS. Dark, modern, gambling/rewards inspired.
   ========================================================================== */

:root {
    --primary: #ff7900;
    --primary-soft: rgba(255, 121, 0, 0.14);
    --primary-glow: rgba(255, 121, 0, 0.35);
    --bg: #161a22;
    --bg-2: #1a1f28;
    --surface: #202630;
    --surface-2: #2a313d;
    --surface-3: #333b48;
    --text: #eef1f6;
    --text-dim: #a7b0be;
    --text-mute: #6f7987;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --success: #37c98b;
    --warning: #ffb020;
    --danger: #ff5c5c;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 10px 40px var(--primary-glow);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --maxw: 1440px;
}

/* -------------------------------------------------------------------------- */
/* Reset                                                                      */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Layout helpers                                                             */
/* -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 54px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(255, 121, 0, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.section-head p {
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
    white-space: nowrap;
}

    .btn svg {
        width: 18px;
        height: 18px;
    }

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: linear-gradient(180deg, #ff8c1f, var(--primary));
    color: #16110a;
    box-shadow: 0 8px 22px rgba(255, 121, 0, 0.28);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(255, 121, 0, 0.4);
    }

.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-strong);
}

    .btn-ghost:hover {
        background: var(--surface-3);
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    flex: none;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    border-radius: var(--radius-sm);
}

    .btn-icon:hover {
        color: var(--primary);
        border-color: var(--primary);
    }

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 28px;
    font-size: 15.5px;
}

.btn[disabled],
.btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* Badges                                                                     */
/* -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-dim);
}

    .badge .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

.badge-available {
    color: var(--success);
    background: rgba(55, 201, 139, 0.1);
    border-color: rgba(55, 201, 139, 0.3);
}

.badge-limited {
    color: var(--warning);
    background: rgba(255, 176, 32, 0.1);
    border-color: rgba(255, 176, 32, 0.3);
}

.badge-almost {
    color: var(--danger);
    background: rgba(255, 92, 92, 0.1);
    border-color: rgba(255, 92, 92, 0.3);
}

.badge-out {
    color: var(--text-mute);
    background: var(--surface-3);
}

.badge-cat {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: rgba(255, 121, 0, 0.28);
}

.badge-used {
    color: var(--text-dim);
}

.badge-expired {
    color: var(--danger);
    background: rgba(255, 92, 92, 0.08);
    border-color: rgba(255, 92, 92, 0.25);
}

/* -------------------------------------------------------------------------- */
/* Navbar                                                                     */
/* -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: height 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(22, 26, 34, 0.82);
    backdrop-filter: blur(18px);
    border-color: var(--border);
}

    .navbar.scrolled .navbar-inner {
        height: 62px;
    }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.01em;
    width: 250px;
}
@media (max-width: 768px) {
    .brand {
        width: 150px!important;
    }

}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #ff8c1f, var(--primary));
    color: #16110a;
    box-shadow: 0 6px 18px rgba(255, 121, 0, 0.35);
}

    .brand-mark svg {
        width: 20px;
        height: 20px;
    }

.brand b {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .nav-links a {
        padding: 8px 14px;
        border-radius: var(--radius-sm);
        font-size: 14.5px;
        font-weight: 600;
        color: var(--text-dim);
        transition: color 0.2s, background 0.2s;
    }

        .nav-links a:hover {
            color: var(--text);
            background: var(--surface);
        }

        .nav-links a.active {
            color: var(--primary);
            background: var(--primary-soft);
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

    .nav-toggle svg {
        width: 22px;
        height: 22px;
        margin: auto;
    }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 160px 0 90px;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        top: -180px;
        right: -120px;
        width: 620px;
        height: 620px;
        background: radial-gradient(circle, var(--primary-glow), transparent 62%);
        filter: blur(30px);
        opacity: 0.55;
        pointer-events: none;
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
        background-size: 60px 60px;
        mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
        opacity: 0.4;
        pointer-events: none;
    }

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(38px, 5.5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 800;
}

    .hero-copy h1 span {
        background: linear-gradient(120deg, var(--primary), #ffb373);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero-copy p {
    margin: 22px 0 32px;
    color: var(--text-dim);
    font-size: 18px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 30px;
    margin-top: 44px;
    flex-wrap: wrap;
}

    .hero-meta .num {
        font-size: 26px;
        font-weight: 800;
        color: var(--text);
    }

        .hero-meta .num b {
            color: var(--primary);
        }

    .hero-meta .lbl {
        font-size: 13px;
        color: var(--text-mute);
    }

/* Hero dashboard card */
.hero-panel {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .panel-head h3 {
        font-size: 15px;
        font-weight: 700;
    }

.panel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.pstat {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}

    .pstat .v {
        font-size: 22px;
        font-weight: 800;
        color: var(--primary);
    }

    .pstat .k {
        font-size: 11.5px;
        color: var(--text-mute);
        margin-top: 2px;
    }

.panel-reward {
    background: linear-gradient(135deg, rgba(255, 121, 0, 0.16), rgba(255, 121, 0, 0.04));
    border: 1px solid rgba(255, 121, 0, 0.35);
    border-radius: var(--radius);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

    .panel-reward::after {
        content: "";
        position: absolute;
        top: -40px;
        right: -40px;
        width: 130px;
        height: 130px;
        background: radial-gradient(circle, var(--primary-glow), transparent 65%);
        filter: blur(10px);
    }

    .panel-reward .rw-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .panel-reward h4 {
        font-size: 17px;
        font-weight: 800;
    }

    .panel-reward .rw-sub {
        font-size: 13px;
        color: var(--text-dim);
        margin-bottom: 14px;
    }

.panel-float {
    position: absolute;
    right: -18px;
    bottom: 42px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

    .panel-float .ic {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        background: rgba(55, 201, 139, 0.14);
        color: var(--success);
    }

        .panel-float .ic svg {
            width: 17px;
            height: 17px;
        }

/* -------------------------------------------------------------------------- */
/* Progress bar                                                               */
/* -------------------------------------------------------------------------- */
.progress {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}

    .progress > span {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #ff8c1f, var(--primary));
        transition: width 1s var(--ease);
    }

    .progress.warn > span {
        background: linear-gradient(90deg, #ffcf5c, var(--warning));
    }

    .progress.danger > span {
        background: linear-gradient(90deg, #ff8a8a, var(--danger));
    }

.claim-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    margin-bottom: 8px;
}

    .claim-row .rem {
        font-weight: 700;
        color: var(--text);
    }

        .claim-row .rem b {
            color: var(--primary);
        }

/* -------------------------------------------------------------------------- */
/* Trust cards                                                                */
/* -------------------------------------------------------------------------- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

    .card:hover {
        transform: translateY(-4px);
        border-color: var(--border-strong);
        box-shadow: var(--shadow);
    }

.feature {
    padding: 26px;
}

    .feature .fic {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: var(--primary-soft);
        color: var(--primary);
        margin-bottom: 18px;
    }

        .feature .fic svg {
            width: 24px;
            height: 24px;
        }

    .feature h3 {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .feature p {
        color: var(--text-dim);
        font-size: 14.5px;
    }

/* -------------------------------------------------------------------------- */
/* Code / reward cards                                                        */
/* -------------------------------------------------------------------------- */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.code-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

    .code-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 121, 0, 0.4);
        box-shadow: var(--shadow-glow);
    }

.code-media {
    position: relative;
    aspect-ratio: 16 / 8;
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .code-media .art {
        position: absolute;
        inset: 0;
    }

    .code-media .glyph {
        position: relative;
        color: rgba(255, 255, 255, 0.92);
        z-index: 1;
    }

        .code-media .glyph svg {
            width: 46px;
            height: 46px;
        }

    .code-media .cat {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 2;
    }

    .code-media .stat {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 2;
    }

.gradient-a {
    background: linear-gradient(135deg, #ff8c1f, #b64d00);
}

.gradient-b {
    background: linear-gradient(135deg, #2a313d, #3a4759);
}

.gradient-c {
    background: linear-gradient(135deg, #4a2b7a, #7a4fd6);
}

.gradient-d {
    background: linear-gradient(135deg, #0f4d5c, #1f9bb8);
}

.gradient-e {
    background: linear-gradient(135deg, #5c2b3a, #c8425f);
}

.gradient-f {
    background: linear-gradient(135deg, #2b4a3a, #37c98b);
}

.code-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}

    .code-body h3 {
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    .code-body .desc {
        color: var(--text-dim);
        font-size: 14px;
        flex: 1;
    }

.code-expire {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-mute);
}

    .code-expire svg {
        width: 15px;
        height: 15px;
    }

/* Reveal area */
.code-reveal {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    letter-spacing: 0.12em;
    font-size: 15px;
    transition: border-color 0.25s, background 0.25s;
}

    .code-reveal.revealed {
        border-style: solid;
        border-color: rgba(255, 121, 0, 0.5);
        background: var(--primary-soft);
        color: var(--primary);
        font-weight: 700;
        animation: pop 0.35s var(--ease);
    }

    .code-reveal .copy {
        background: none;
        border: none;
        color: var(--text-mute);
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 6px;
        flex: none;
    }

    .code-reveal.revealed .copy {
        color: var(--primary);
    }

    .code-reveal .copy:hover {
        background: var(--surface-3);
    }

    .code-reveal .copy svg {
        width: 17px;
        height: 17px;
    }

.code-actions {
    display: flex;
    gap: 10px;
}

    .code-actions .btn-primary {
        flex: 1;
    }

/* -------------------------------------------------------------------------- */
/* Steps / How it works                                                       */
/* -------------------------------------------------------------------------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

    .steps::before {
        content: "";
        position: absolute;
        top: 40px;
        left: 12%;
        right: 12%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
        z-index: 0;
    }

.step {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
}

    .step .n {
        font-size: 34px;
        font-weight: 800;
        color: var(--primary);
        letter-spacing: -0.02em;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

        .step .n::after {
            content: "";
            width: 46px;
            height: 3px;
            border-radius: 3px;
            background: var(--primary-soft);
        }

    .step h3 {
        margin: 16px 0 8px;
        font-size: 18px;
        font-weight: 700;
    }

    .step p {
        color: var(--text-dim);
        font-size: 14.5px;
    }

/* -------------------------------------------------------------------------- */
/* CTA band                                                                   */
/* -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    background: linear-gradient(135deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    overflow: hidden;
}

    .cta-band::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 120%, var(--primary-glow), transparent 60%);
        opacity: 0.5;
    }

    .cta-band h2 {
        position: relative;
        font-size: clamp(26px, 4vw, 38px);
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .cta-band p {
        position: relative;
        color: var(--text-dim);
        margin: 14px auto 28px;
        max-width: 460px;
    }

    .cta-band .btn {
        position: relative;
    }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
    background: var(--bg-2);
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 16px;
    max-width: 280px;
}

.footer h4 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 16px;
}

.footer li {
    margin-bottom: 10px;
}

    .footer li a {
        color: var(--text-dim);
        font-size: 14px;
        transition: color 0.2s;
    }

        .footer li a:hover {
            color: var(--primary);
        }

.footer-bottom {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text-mute);
    font-size: 13px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Login page                                                                 */
/* -------------------------------------------------------------------------- */
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-visual {
    position: relative;
    background: linear-gradient(150deg, var(--bg-2), var(--surface));
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

    .auth-visual::before {
        content: "";
        position: absolute;
        top: -140px;
        left: -80px;
        width: 460px;
        height: 460px;
        background: radial-gradient(circle, var(--primary-glow), transparent 62%);
        filter: blur(30px);
        opacity: 0.55;
    }

    .auth-visual h2 {
        position: relative;
        font-size: 34px;
        font-weight: 800;
        letter-spacing: -0.02em;
        max-width: 340px;
    }

        .auth-visual h2 span {
            color: var(--primary);
        }

.auth-cards {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.mini-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

    .mini-card:nth-child(2) {
        margin-left: 40px;
    }

    .mini-card:nth-child(3) {
        margin-left: 80px;
    }

    .mini-card .mc-ic {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: var(--primary-soft);
        color: var(--primary);
        flex: none;
    }

        .mini-card .mc-ic svg {
            width: 20px;
            height: 20px;
        }

    .mini-card .mc-t {
        font-weight: 700;
        font-size: 14.5px;
    }

    .mini-card .mc-s {
        font-size: 12.5px;
        color: var(--text-mute);
    }

.auth-form-wrap {
    display: grid;
    place-items: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

    .auth-card .brand {
        margin-bottom: 30px;
    }

    .auth-card h1 {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .auth-card .sub {
        color: var(--text-dim);
        margin: 8px 0 28px;
        font-size: 15px;
    }

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-dim);
        margin-bottom: 8px;
    }

.input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .input::placeholder {
        color: var(--text-mute);
    }

    .input:focus {
        outline: none;
        border-color: var(--primary);
        background: var(--bg-2);
        box-shadow: 0 0 0 3px var(--primary-soft);
    }

.input-wrap {
    position: relative;
}

    .input-wrap .toggle-pass {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-mute);
        padding: 8px;
        border-radius: 6px;
    }

        .input-wrap .toggle-pass:hover {
            color: var(--primary);
        }

        .input-wrap .toggle-pass svg {
            width: 18px;
            height: 18px;
        }

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13.5px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-dim);
    cursor: pointer;
    user-select: none;
}

    .check input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .check .box {
        width: 18px;
        height: 18px;
        border-radius: 5px;
        border: 1px solid var(--border-strong);
        background: var(--surface);
        display: grid;
        place-items: center;
        transition: all 0.2s;
    }

        .check .box svg {
            width: 13px;
            height: 13px;
            color: #16110a;
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.2s;
        }

    .check input:checked + .box {
        background: var(--primary);
        border-color: var(--primary);
    }

        .check input:checked + .box svg {
            opacity: 1;
            transform: scale(1);
        }

.link {
    color: var(--primary);
    font-weight: 600;
}

    .link:hover {
        text-decoration: underline;
    }

.auth-alt {
    text-align: center;
    margin-top: 22px;
    color: var(--text-dim);
    font-size: 14px;
}

/* -------------------------------------------------------------------------- */
/* Codes page controls                                                        */
/* -------------------------------------------------------------------------- */
.page {
    padding-top: 76px;
}

.page-head {
    padding: 54px 0 30px;
}

    .page-head h1 {
        font-size: clamp(30px, 4vw, 40px);
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .page-head p {
        color: var(--text-dim);
        margin-top: 10px;
        font-size: 16px;
        max-width: 560px;
    }

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 999px;
}

    .filters button {
        background: none;
        border: none;
        color: var(--text-dim);
        font-size: 13.5px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 999px;
        transition: all 0.2s;
    }

        .filters button:hover {
            color: var(--text);
        }

        .filters button.active {
            background: var(--primary);
            color: #16110a;
        }

.controls-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search {
    position: relative;
}

    .search svg {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: var(--text-mute);
    }

    .search input {
        background: var(--surface);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-sm);
        padding: 11px 15px 11px 40px;
        color: var(--text);
        font-size: 14px;
        width: 240px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .search input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-soft);
        }

.select {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 11px 38px 11px 15px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236f7987' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

    .select:focus {
        outline: none;
        border-color: var(--primary);
    }

.empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-mute);
    display: none;
}

    .empty.show {
        display: block;
    }

    .empty svg {
        width: 46px;
        height: 46px;
        margin-bottom: 16px;
        opacity: 0.5;
    }

    .empty h3 {
        color: var(--text);
        font-size: 18px;
        margin-bottom: 6px;
    }

/* -------------------------------------------------------------------------- */
/* Modal                                                                      */
/* -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 10, 14, 0.7);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
}

    .modal-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.modal {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s var(--ease);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-media {
    position: relative;
    aspect-ratio: 16 / 7;
    display: grid;
    place-items: center;
}

    .modal-media .glyph {
        color: rgba(255, 255, 255, 0.92);
    }

        .modal-media .glyph svg {
            width: 54px;
            height: 54px;
        }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-strong);
    color: #fff;
    font-size: 20px;
    backdrop-filter: blur(6px);
}

    .modal-close:hover {
        background: rgba(0, 0, 0, 0.6);
    }

.modal-body {
    padding: 26px;
}

    .modal-body .m-cat {
        margin-bottom: 12px;
    }

    .modal-body h2 {
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

.modal-section {
    margin-top: 20px;
}

    .modal-section h4 {
        font-size: 13px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .modal-section p {
        color: var(--text-dim);
        font-size: 14.5px;
    }

    .modal-section ol {
        padding-left: 18px;
        color: var(--text-dim);
        font-size: 14.5px;
    }

        .modal-section ol li {
            list-style: decimal;
            margin-bottom: 4px;
        }

.modal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

    .modal-meta .mm {
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 14px;
    }

        .modal-meta .mm .k {
            font-size: 12px;
            color: var(--text-mute);
            margin-bottom: 4px;
        }

        .modal-meta .mm .v {
            font-weight: 700;
            font-size: 15px;
        }

            .modal-meta .mm .v b {
                color: var(--primary);
            }

.modal-foot {
    margin-top: 24px;
}

/* -------------------------------------------------------------------------- */
/* Toast / notification                                                       */
/* -------------------------------------------------------------------------- */
.toast-wrap {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 13px 18px;
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

    .toast .t-ic {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        display: grid;
        place-items: center;
        background: rgba(55, 201, 139, 0.15);
        color: var(--success);
        flex: none;
    }

        .toast .t-ic svg {
            width: 16px;
            height: 16px;
        }

/* -------------------------------------------------------------------------- */
/* Profile / dashboard layout                                                 */
/* -------------------------------------------------------------------------- */
.dash {
    padding-top: 76px;
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 76px;
    align-self: start;
    height: calc(100vh - 76px);
    border-right: 1px solid var(--border);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-2);
}

    .sidebar .side-user {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 16px;
    }

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #ff8c1f, var(--primary));
    color: #16110a;
    font-weight: 800;
    flex: none;
}

    .avatar.lg {
        width: 76px;
        height: 76px;
        font-size: 28px;
    }

.side-user .su-name {
    font-weight: 700;
    font-size: 14.5px;
}

.side-user .su-role {
    font-size: 12px;
    color: var(--primary);
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s;
}

    .sidebar nav a svg {
        width: 19px;
        height: 19px;
    }

    .sidebar nav a:hover {
        background: var(--surface);
        color: var(--text);
    }

    .sidebar nav a.active {
        background: var(--primary-soft);
        color: var(--primary);
    }

.sidebar .side-foot {
    margin-top: auto;
}

.dash-main {
    padding: 34px 40px 60px;
}

.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

    .dash-head h1 {
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .dash-head p {
        color: var(--text-dim);
        font-size: 15px;
    }

.profile-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

    .profile-card .pc-info h2 {
        font-size: 22px;
        font-weight: 800;
    }

    .profile-card .pc-meta {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 8px;
        color: var(--text-dim);
        font-size: 13.5px;
    }

        .profile-card .pc-meta span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .profile-card .pc-meta svg {
            width: 15px;
            height: 15px;
            color: var(--text-mute);
        }

    .profile-card .pc-actions {
        margin-left: auto;
        display: flex;
        gap: 10px;
    }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.stat {
    padding: 22px;
}

    .stat .s-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .stat .s-ic {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        background: var(--primary-soft);
        color: var(--primary);
    }

        .stat .s-ic svg {
            width: 21px;
            height: 21px;
        }

    .stat .s-val {
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .stat .s-lbl {
        color: var(--text-dim);
        font-size: 13.5px;
        margin-top: 2px;
    }

.block {
    margin-bottom: 34px;
}

.block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .block-head h3 {
        font-size: 19px;
        font-weight: 800;
    }

    .block-head a {
        color: var(--primary);
        font-size: 13.5px;
        font-weight: 600;
    }

.active-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.active-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

    .active-item .ai-ic {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        color: #fff;
        flex: none;
    }

        .active-item .ai-ic svg {
            width: 22px;
            height: 22px;
        }

    .active-item .ai-info {
        flex: 1;
        min-width: 0;
    }

        .active-item .ai-info h4 {
            font-size: 15.5px;
            font-weight: 700;
        }

        .active-item .ai-info .ai-sub {
            font-size: 12.5px;
            color: var(--text-mute);
            margin-top: 2px;
        }

    .active-item .ai-right {
        text-align: right;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

/* -------------------------------------------------------------------------- */
/* Table                                                                      */
/* -------------------------------------------------------------------------- */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mute);
    font-weight: 700;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-dim);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background 0.2s;
}

    tbody tr:hover {
        background: var(--surface-2);
    }

td .reward-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

    td .reward-cell .rc-ic {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        display: grid;
        place-items: center;
        color: #fff;
        flex: none;
    }

        td .reward-cell .rc-ic svg {
            width: 18px;
            height: 18px;
        }

    td .reward-cell strong {
        color: var(--text);
        font-weight: 700;
    }

td code {
    font-family: "IBM Plex Mono", monospace;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 4px 9px;
    border-radius: 6px;
    color: var(--primary);
    font-size: 13px;
}

.table-card-label {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Reveal / scroll animations                                                 */
/* -------------------------------------------------------------------------- */
.reveal {
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

@keyframes pop {
    0% {
        transform: scale(0.96);
    }

    60% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile nav drawer                                                          */
/* -------------------------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(8, 10, 14, 0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

.mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 82vw);
    height: 100%;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu.open .mobile-panel {
    transform: none;
}

.mobile-panel .mp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mobile-panel .mp-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 20px;
}

.mobile-panel a {
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-weight: 600;
}

    .mobile-panel a:hover,
    .mobile-panel a.active {
        background: var(--surface);
        color: var(--primary);
    }

.mobile-panel .btn {
    margin-top: 12px;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .codes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-panel {
        max-width: 440px;
    }
}

@media (max-width: 860px) {
    .nav-links,
    .nav-actions .btn-outline,
    .nav-actions .btn-ghost {
        display: none;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .dash {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .dash-main {
        padding: 24px 20px 48px;
    }

    .auth {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .active-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .grid-4,
    .grid-3,
    .codes-grid,
    .steps,
    .modal-meta,
    .stat-grid {
        grid-template-columns: 1fr;
    }

        .steps::before {
            display: none;
        }

    .cta-band {
        padding: 40px 24px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        border-radius: var(--radius-sm);
    }

    .controls-right {
        flex-direction: column;
    }

    .search input {
        width: 100%;
    }

    .select {
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .profile-card .pc-actions {
        margin-left: 0;
        width: 100%;
    }

        .profile-card .pc-actions .btn {
            flex: 1;
        }

    /* Table -> stacked cards */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tbody tr {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 14px;
        padding: 6px 4px;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        text-align: right;
    }

    tbody tr td:last-child {
        border-bottom: none;
    }

    .table-card-label {
        display: inline-block;
        font-size: 12px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--text-mute);
        font-weight: 700;
        text-align: left;
    }

    td .reward-cell {
        justify-content: flex-end;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================================== */
/* Landing page (index.html)                                                  */
/* ========================================================================== */
.lp-hero {
    padding: 150px 0 70px;
}

    .lp-hero::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: 120px;
    }

.lp-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lp-title {
    font-size: clamp(40px, 6.6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 800;
    text-wrap: balance;
}

    .lp-title span {
        background: linear-gradient(120deg, var(--primary), #ffb373);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.lp-lead {
    margin: 24px auto 34px;
    max-width: 620px;
    color: var(--text-dim);
    font-size: 18px;
    text-wrap: pretty;
}

.lp-cta {
    justify-content: center;
}

.lp-assure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-dim);
}

    .lp-assure li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .lp-assure svg {
        width: 16px;
        height: 16px;
        color: var(--success);
    }

/* Signature ticket visual */
.ticket-wrap {
    position: relative;
    width: min(560px, 100%);
    height: 190px;
    margin-top: 70px;
}

.ticket {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
}

.ticket-back {
    background: var(--surface);
    transform: translateY(-28px) scale(0.88);
    opacity: 0.5;
}

.ticket-mid {
    background: var(--surface-2);
    transform: translateY(-14px) scale(0.94);
    opacity: 0.8;
}

.ticket-front {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border-color: rgba(255, 121, 0, 0.4);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    animation: ticketFloat 6s ease-in-out infinite;
}

.tk-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 32px;
    text-align: left;
}

.tk-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.tk-code {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text);
}

.tk-hint {
    font-size: 13px;
    color: var(--text-mute);
}

.tk-divider {
    position: relative;
    width: 0;
    border-left: 2px dashed var(--border-strong);
    margin: 18px 0;
}

    .tk-divider::before,
    .tk-divider::after {
        content: "";
        position: absolute;
        left: -13px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--bg);
        border: 1px solid rgba(255, 121, 0, 0.4);
    }

    .tk-divider::before {
        top: -32px;
    }

    .tk-divider::after {
        bottom: -32px;
    }

.tk-right {
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-soft);
}

.tk-lock {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #ff8c1f, var(--primary));
    color: #16110a;
}

    .tk-lock svg {
        width: 26px;
        height: 26px;
    }

.tk-cta {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

@keyframes ticketFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Intro split */
.lp-intro {
    padding-top: 70px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding-top: 56px;
    border-top: 1px solid var(--border);
}

.split-title {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-wrap: balance;
}

.split-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--text-dim);
    font-size: 16.5px;
    padding-top: 42px;
}

/* Fair access */
.fair {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 56px;
}

.fair-copy h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-wrap: balance;
}

.fair-copy > p {
    margin: 16px 0 28px;
    color: var(--text-dim);
    font-size: 16px;
}

.fair-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .fair-list li {
        display: flex;
        gap: 14px;
        align-items: flex-start;
    }

    .fair-list .fl-ic {
        flex: none;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        background: var(--primary-soft);
        color: var(--primary);
    }

        .fair-list .fl-ic svg {
            width: 15px;
            height: 15px;
        }

    .fair-list b {
        display: block;
        font-size: 15px;
    }

    .fair-list span {
        font-size: 14px;
        color: var(--text-dim);
    }

.fair-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

    .legend-row .badge {
        flex: none;
        min-width: 132px;
        justify-content: center;
    }

    .legend-row p {
        font-size: 14px;
        color: var(--text-dim);
    }

/* FAQ */
.faq-wrap {
    max-width: 820px;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease);
}

    .faq-item[open] {
        border-color: rgba(255, 121, 0, 0.35);
    }

    .faq-item summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 22px;
        font-size: 16px;
        font-weight: 700;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

.faq-ic {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface-2);
    transition: background 0.25s, transform 0.3s var(--ease);
}

    .faq-ic::before,
    .faq-ic::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 2px;
        border-radius: 2px;
        background: var(--text-dim);
        transform: translate(-50%, -50%);
    }

    .faq-ic::after {
        transform: translate(-50%, -50%) rotate(90deg);
        transition: transform 0.3s var(--ease);
    }

.faq-item[open] .faq-ic {
    background: var(--primary-soft);
}

    .faq-item[open] .faq-ic::before,
    .faq-item[open] .faq-ic::after {
        background: var(--primary);
    }

    .faq-item[open] .faq-ic::after {
        transform: translate(-50%, -50%) rotate(0deg);
    }

.faq-item p {
    padding: 0 22px 20px;
    color: var(--text-dim);
    font-size: 15px;
    max-width: 680px;
}

.lp-cta-row {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 1024px) {
    .fair {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .split-body {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .lp-hero {
        padding: 120px 0 50px;
    }

    .ticket-wrap {
        height: 160px;
        margin-top: 56px;
    }

    .tk-left {
        padding: 20px;
    }

    .tk-right {
        width: 96px;
    }

    .fair {
        padding: 28px 20px;
    }

    .legend-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lp-cta-row .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticket-front {
        animation: none;
    }
}
