/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark-1: #05070F;
    --bg-dark-2: #0B1226;
    --primary: #1E3A8A; /* Deep Blue */
    --secondary: #38BDF8; /* Sky Blue */
    --tertiary: #6D5BD0; /* Muted Violet */
    --card-bg: #0C1424;
    --card-border: rgba(56, 189, 248, 0.18);
    --text-main: #E8EDF7;
    --text-muted: #94A3B8;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-dark-1);
    /* Deep navy-black background with subtle circuit-board texture emulation */
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(56, 189, 248, 0.02) 19px, rgba(56, 189, 248, 0.02) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(56, 189, 248, 0.02) 19px, rgba(56, 189, 248, 0.02) 20px),
        linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* =========================================
   LAYOUT
   ========================================= */
.page-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.columns {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 900px) {
    .columns {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    .col-content {
        flex: 1;
        max-width: 520px;
    }
    .col-wheel {
        flex: 1.2;
    }
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
.pill-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--card-border);
    color: var(--secondary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.campaign-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    /* Flowing gradient blue to light blue with violet hint */
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--tertiary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.campaign-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* =========================================
   CARDS & FORMS
   ========================================= */
.step-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    /* Faint inner glow */
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.05), 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.08), 0 6px 25px rgba(0, 0, 0, 0.3);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

input[type="email"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}
input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.error-message {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    min-height: 56px;
    padding: 0 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 28px rgba(56, 189, 248, 0.55);
}
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-social {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    width: fit-content;
    max-width: 80%;
    margin: 0 auto;
    padding: 0 32px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(56, 189, 248, 0.85), rgba(109, 91, 208, 0.85));
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}
.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   RESULT CARD
   ========================================= */
.result-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    /* Faint inner glow */
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.05), 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.prize-name {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.code-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.code-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-text {
    font-family: 'Inter', monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.05em;
}

.result-print {
    margin-bottom: 2rem;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.result-social-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.result-social-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* =========================================
   WHEEL
   ========================================= */
.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03), 0 10px 40px rgba(0, 0, 0, 0.6);
    transform-origin: center center;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12%;
    height: 12%;
    background: var(--card-bg);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* =========================================
   FOOTER & MISC
   ========================================= */
.small-print {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-print {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-print p {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-print p:last-child {
    margin-bottom: 0;
}

.powered-by-slot {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
}
