:root {
    --bg-dark: #050505;
    --card-dark: rgba(12, 12, 12, 0.85);
    --gold-primary: #dfba73;
    --gold-bright: #ffd700;
    --gold-glow: rgba(223, 186, 115, 0.35);
    --text-white: #ffffff;
    --text-gray: #a1a1a6;
    --border-gold: rgba(223, 186, 115, 0.15);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 12px;
    position: relative;
}

/* Gold Radial Glow */
.gold-ambient {
    position: fixed;
    width: 80vw;
    max-width: 500px;
    height: 80vw;
    max-height: 500px;
    background: radial-gradient(circle, rgba(223, 186, 115, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Exclusive VIP Card Ticket */
.ticket-card {
    background: var(--card-dark);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    padding: 28px 22px 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(223, 186, 115, 0.04);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Decorative corner border */
.ticket-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(223, 186, 115, 0.04);
    pointer-events: none;
    border-radius: 12px;
}

/* Header Tags */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.vip-tag {
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(223, 186, 115, 0.05);
    white-space: nowrap;
}

.spots-badge {
    color: #f87171;
    white-space: nowrap;
}

/* Typography */
.title-top {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--gold-primary);
    letter-spacing: 2.5px;
    margin-bottom: 6px;
    font-weight: 700;
}

h1 {
    font-family: var(--font-body);
    font-size: clamp(16px, 4.8vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: #ffffff;
}

.ticket-desc {
    color: var(--text-gray);
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Privileges box */
.privileges-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    margin-bottom: 14px;
}

.priv-item {
    display: flex;
    gap: 8px;
    font-size: clamp(11.5px, 3.2vw, 13.5px);
    line-height: 1.4;
    align-items: flex-start;
}

.gold-bullet {
    color: var(--gold-primary);
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Countdown Timer */
.timer-section {
    border-top: 1px dashed rgba(223, 186, 115, 0.15);
    border-bottom: 1px dashed rgba(223, 186, 115, 0.15);
    padding: 10px 0;
    margin-bottom: 14px;
}

.timer-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.timer-val {
    font-size: clamp(24px, 7vw, 36px);
    font-weight: 800;
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.15);
    font-family: monospace;
    letter-spacing: 2px;
}

/* CTA Area */
.cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Golden Gradient Pulse Button */
.btn-gold {
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    color: #000000;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 800;
    font-size: clamp(12px, 3.6vw, 14.5px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 10px 14px;
    text-align: center;
    line-height: 1.3;
}

.btn-gold:hover,
.btn-gold:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(223, 186, 115, 0.6);
}

.pulse-gold {
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0%   { box-shadow: 0 0 10px rgba(223, 186, 115, 0.2); }
    50%  { box-shadow: 0 0 25px rgba(223, 186, 115, 0.55); }
    100% { box-shadow: 0 0 10px rgba(223, 186, 115, 0.2); }
}

.safe-note {
    display: block;
    font-size: 10px;
    color: var(--text-gray);
    margin-top: 8px;
    line-height: 1.4;
}

/* Legal consent text */
.legal-consent {
    font-size: 9.5px;
    color: rgba(161, 161, 166, 0.7);
    margin-top: 8px;
    line-height: 1.45;
    text-align: center;
}

.legal-consent a {
    color: rgba(223, 186, 115, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-consent a:hover {
    color: var(--gold-primary);
}

/* Footer links */
.page-footer {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    font-size: 10px;
    flex-shrink: 0;
}

.page-footer a {
    color: rgba(161, 161, 166, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.page-footer a:hover {
    color: var(--gold-primary);
}

/* ========================
   LEGAL PAGES (policy / cookie / terms)
   ======================== */

body.legal-page {
    display: block;
    padding: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

.legal-wrapper {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 32px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.legal-back:hover { opacity: 1; }

.legal-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 5vw, 28px);
    color: var(--gold-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.legal-updated {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 36px;
    display: block;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h2 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.legal-section p,
.legal-section li {
    font-size: 13.5px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-section ul {
    padding-left: 18px;
    margin-bottom: 8px;
}

.legal-divider {
    border: none;
    border-top: 1px solid rgba(223, 186, 115, 0.08);
    margin: 28px 0;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 480px) {
    body:not(.legal-page) {
        padding: 8px;
    }

    .ticket-card {
        padding: 18px 14px 14px;
        border-radius: 14px;
    }

    .ticket-card::before {
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
        border-radius: 10px;
    }

    .ticket-header {
        margin-bottom: 10px;
        font-size: 10px;
    }

    .title-top {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 4px;
    }

    h1 {
        font-size: clamp(15px, 4.5vw, 20px);
        margin-bottom: 8px;
    }

    .ticket-desc {
        font-size: 11.5px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .privileges-box {
        padding: 10px 10px;
        gap: 4px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .priv-item {
        font-size: 11px;
        line-height: 1.35;
        gap: 6px;
    }

    .timer-section {
        padding: 8px 0;
        margin-bottom: 10px;
    }

    .timer-label {
        font-size: 8px;
        margin-bottom: 2px;
    }

    .timer-val {
        font-size: 22px;
    }

    .btn-gold {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .safe-note {
        font-size: 9px;
        margin-top: 6px;
    }

    .legal-consent {
        font-size: 8.5px;
        margin-top: 6px;
        line-height: 1.4;
    }

    .page-footer {
        margin-top: 6px;
        font-size: 9px;
        gap: 3px 10px;
    }
}

@media (max-width: 480px) {
    .legal-wrapper {
        padding: 24px 14px 40px;
    }
}

/* Extra small screens (iPhone SE etc.) */
@media (max-height: 640px) and (max-width: 480px) {
    body:not(.legal-page) {
        padding: 4px;
    }

    .ticket-card {
        padding: 12px 10px 10px;
    }

    .ticket-header {
        margin-bottom: 6px;
    }

    .title-top {
        margin-bottom: 2px;
        font-size: 9px;
    }

    h1 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .ticket-desc {
        font-size: 10.5px;
        margin-bottom: 8px;
    }

    .privileges-box {
        padding: 8px 8px;
        gap: 3px;
        margin-bottom: 8px;
    }

    .priv-item {
        font-size: 10px;
    }

    .timer-section {
        padding: 6px 0;
        margin-bottom: 8px;
    }

    .timer-val {
        font-size: 20px;
    }

    .btn-gold {
        min-height: 40px;
        padding: 8px 10px;
    }

    .safe-note {
        font-size: 8px;
        margin-top: 4px;
    }

    .legal-consent {
        font-size: 8px;
        margin-top: 4px;
    }

    .page-footer {
        margin-top: 4px;
    }
}
