:root {
    --color-bg: #0A0F1B;
    --color-card: #141B2D;
    --color-gold: #F5D16C;
    --color-cyan: #39E3FF;
    --color-purple: #4A2F8A;
    --color-text: #FFFFFF;
    --color-text-dim: #8F9BB3;

    --font-main: 'Inter', sans-serif;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-gold), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* Layout */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.content-wrapper {
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: #1a233a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: var(--color-cyan);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--color-cyan);
}

/* Visibility */
.hidden {
    display: none !important;
}

.funnel-step {
    /* transition handled by JS/CSS animations */
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 30px;
}

.secure-badge {
    font-size: 12px;
    color: var(--color-cyan);
    background: rgba(57, 227, 255, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), #D4AF37);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    margin-top: 24px;
    box-shadow: 0 4px 15px rgba(245, 209, 108, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 209, 108, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 209, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 209, 108, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--color-text-dim);
    margin-top: auto;
    opacity: 0.6;
}

/* --- Components: Options Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.option-card {
    background: var(--color-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.option-card:hover {
    transform: translateY(-4px);
    background: #1a233a;
}

.option-card.selected {
    border-color: var(--color-gold);
    background: rgba(245, 209, 108, 0.1);
    box-shadow: 0 0 15px rgba(245, 209, 108, 0.2);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.card-label {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

/* --- Components: Slider --- */
.slider-container {
    padding: 40px 20px;
}

.slider-value {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    color: var(--color-gold);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(245, 209, 108, 0.3);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: #2A3655;
    outline: none;
    margin-bottom: 16px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-cyan);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-dim);
    font-size: 14px;
}

/* --- Step 4: Simulation --- */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(57, 227, 255, 0.1);
    border-top: 4px solid var(--color-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.sim-log {
    height: 40px;
    color: var(--color-text-dim);
    font-family: monospace;
    font-size: 14px;
}

.log-item {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Step 5: Result Screen --- */
.result-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(57, 227, 255, 0.4);
}

.result-card {
    background: linear-gradient(160deg, #1A233A 0%, #0F1525 100%);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: #000;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(245, 209, 108, 0.4);
}

.casino-logo-large {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.bonus-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-cyan);
    margin-bottom: 4px;
}

.bonus-sub {
    font-size: 18px;
    color: #fff;
    margin-bottom: 24px;
}

.result-features {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item .label {
    font-size: 12px;
    color: var(--color-text-dim);
}

.feature-item .val {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.micro-copy {
    font-size: 10px;
    margin-top: 16px;
    opacity: 0.5;
}

.wiggle {
    animation: wiggle 3s infinite;
}

@keyframes wiggle {

    0%,
    90% {
        transform: rotate(0deg);
    }

    92% {
        transform: rotate(3deg);
    }

    94% {
        transform: rotate(-3deg);
    }

    96% {
        transform: rotate(3deg);
    }

    98% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 50;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    background: #fff;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}

/* --- Social Proof Notifications --- */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
}

.notification-toast {
    background: rgba(20, 27, 45, 0.9);
    border: 1px solid var(--color-cyan);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 260px;
}

.notif-icon {
    font-size: 20px;
}

.notif-content {
    display: flex;
    flex-direction: column;
}

.notif-title {
    font-size: 10px;
    color: var(--color-text-dim);
    font-weight: 700;
    text-transform: uppercase;
}

.notif-text {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.notif-text span {
    color: var(--color-gold);
    font-weight: 700;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutDown {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* --- Urgency Timer --- */
.urgency-banner {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 16px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* --- Exit Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 27, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    background: var(--color-card);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 24px;
    cursor: pointer;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-bonus {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-cyan);
    margin: 16px 0;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-text-dim);
    color: var(--color-text-dim);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
}

/* --- Lead Form --- */
.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
}

.input-field:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(57, 227, 255, 0.2);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}