:root {
    --color-primary: #193C76;
    --color-primary-rgb: 25, 60, 118;
    --color-bg: #f8f9fa;
    --color-text: #0f172a;
    --color-text-secondary: #64748b;
    --color-white: #ffffff;
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Gen Z Gradients */
    --gradient-primary: linear-gradient(135deg, #193C76 0%, #3b82f6 100%);
    --gradient-glow: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --gradient-text: linear-gradient(90deg, #193C76 0%, #4f46e5 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-highlight: rgba(255, 255, 255, 0.5);

    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}

/* Vivid Backgrounds */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.bg-blur-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.bg-blur-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -150px;
    right: -200px;
    animation-delay: -5s;
}

.bg-blur-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: 40%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
    padding: 1.5rem;
    padding-top: 100px;
    /* Reverted to smaller space */
}

/* Nav */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Reverted to smaller height */
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    height: 60px;
    /* Large logo */
    width: auto;
    object-fit: contain;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
}

.no-wrap {
    white-space: nowrap;
}

@media (max-width: 450px) {
    .subtitle.no-wrap {
        white-space: normal;
        /* Fallback for very small screens */
        font-size: 0.9rem;
    }
}

.highlight-box {
    background: rgba(25, 60, 118, 0.08);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

/* Modern Panel System */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-xl);
}

/* Progress */
.progress-panel {
    padding: 1.25rem 1.5rem;
    position: sticky;
    top: 90px;
    /* Reverted adjusted top */
    z-index: 100;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 99px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Steps Cards */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
}

.step-card.disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.8);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.step-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.platform-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

.platform-icon.instagram {
    color: #E1306C;
}

.platform-icon.tiktok {
    color: #000000;
}

.step-info {
    flex: 1;
}

.step-name {
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.step-stats {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    font-size: 0.6rem;
    opacity: 0.5;
}

.step-action {
    width: 100%;
}

/* Buttons */
.btn {
    width: 100%;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(25, 60, 118, 0.2);
}

.btn-primary:hover {
    background: #112a55;
    box-shadow: 0 6px 16px rgba(25, 60, 118, 0.4);
    transform: translateY(-1px);
}

.btn-confirm {
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-confirm:hover {
    background: #f0f5ff;
}

.btn-verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    cursor: default;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
}

.btn-glow:not(:disabled) {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.8), 0 0 5px rgba(255, 255, 255, 0.5) inset;
    }

    100% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
}

.btn-disabled:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Coupon Modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    /* Above nav */
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.coupon-card {
    position: relative;
    background: white;
    padding: 3rem 2rem 2.5rem;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid white;
    border-radius: var(--radius-xl);
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--color-error);
    transform: rotate(90deg);
}

.coupon-header h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.coupon-box {
    margin: 2rem 0;
}

.coupon-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.coupon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 2px dashed #cbd5e1;
}

.coupon-row code {
    font-family: 'Inter', monospace;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.disclaimer {
    font-size: 0.7rem;
    margin-top: 1.5rem;
    color: #94a3b8;
}

/* Toasts */
#toast-container {
    position: fixed;
    top: 90px;
    /* Below smaller fixed nav */
    right: 50%;
    transform: translateX(50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    animation: toastSlide 0.4s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.toast.fade-out {
    animation: toastFadeOut 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.toast-icon {
    color: var(--color-primary);
    background: rgba(25, 60, 118, 0.1);
    padding: 8px;
    border-radius: 50%;
    display: flex;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Animations */
.animate-in {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}