:root {
    --bg-color: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #d4d4d8;
    --accent-red: #dc2626;
    --accent-hover: #b91c1c;
    --surface: #27272a;
    --surface-border: #3f3f46;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.mono-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.hidden {
    display: none !important;
}

/* CRT Texture */
.crt {
    position: relative;
}

.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 10;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

button, input, a {
    position: relative;
    z-index: 11;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid var(--surface-border);
    position: relative;
    z-index: 11;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.countdown {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-red);
    background: rgba(220, 38, 38, 0.1);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.main-content {
    flex: 1;
    padding: 60px 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.1);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 900px;
    margin-inline: auto;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(220, 38, 38, 0.15);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.steps-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.timeline {
    list-style: none;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--surface-border);
}

.timeline li {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-color);
    border: 2px solid var(--surface-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.timeline li:last-child .step-icon {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.05);
}

.step-content {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.step-content strong {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-content span {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-card {
    background: rgba(39, 39, 42, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.live-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--surface-border);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15), inset 0 0 10px rgba(220, 38, 38, 0.1);
}

.form-group input::placeholder {
    color: #52525b;
}

#submit-btn {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(220, 38, 38, 0.6);
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.result-card {
    background: rgba(39, 39, 42, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(12px);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.result-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.share-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 32px;
}

.share-panel h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.share-box {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.share-box input {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
}

.share-box button {
    background: var(--surface-border);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.share-box button:hover {
    background: #52525b;
}

.status-banner {
    background: var(--accent-red);
    color: white;
    text-align: center;
    padding: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    z-index: 20;
    position: relative;
    letter-spacing: 0.02em;
}

.footer {
    border-top: 1px solid var(--surface-border);
    padding: 60px 0 40px;
    margin-top: 80px;
    background: rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer h4 {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.footer p {
    font-size: 0.9rem;
    color: #71717a;
    line-height: 1.7;
}

#wbx-powered-by-slot {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .form-card {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .share-box {
        flex-direction: column;
    }
    
    .share-box button {
        padding: 14px;
    }
}