:root {
    color-scheme: dark;
    --bg: #050b12;
    --card: rgba(12, 20, 30, 0.78);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --line: rgba(148, 163, 184, 0.25);
    --accent: #22d3ee;
    --accent-strong: #06b6d4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.event-page {
    min-height: 100vh;
}

.event-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.event-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(2, 6, 23, 0.93), rgba(8, 47, 73, 0.82));
}

.event-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.brand img {
    width: 170px;
    height: auto;
}

.kicker {
    margin: 20px 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.08;
}

.description {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 16px;
}

.price-block {
    margin-top: 22px;
    display: grid;
    gap: 4px;
}

.price-original {
    color: #94a3b8;
    text-decoration: line-through;
}

.price-discount {
    color: var(--accent);
    font-weight: 700;
}

.price-final {
    font-size: 28px;
    font-weight: 800;
}

.discount-form {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

label {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 600;
}

input {
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.9);
    color: var(--text);
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
}

input:focus {
    outline: 1px solid var(--accent);
    border-color: var(--accent);
}

button {
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    padding: 13px;
    font-size: 16px;
    font-weight: 700;
    color: #042f2e;
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    cursor: pointer;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.message {
    margin-top: 14px;
    min-height: 20px;
    font-size: 14px;
}

.message.error {
    color: #fca5a5;
}

.message.success {
    color: #67e8f9;
}

.result {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.result h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.code {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: 0.07em;
    font-weight: 800;
}

@media (max-width: 640px) {
    h1 {
        font-size: 30px;
    }

    .event-content {
        padding: 22px;
    }
}

/* Cloudflare Turnstile — hidden until the real sitekey is injected at deploy
   time (keys start with "0x"). */
.cf-turnstile {
    margin: 18px auto 12px;
    width: 300px;
    max-width: 100%;
    min-height: 65px;
}

.cf-turnstile:not([data-sitekey^="0x"]) {
    display: none;
}
