/* Premium Birthday Architect - Jewel Tone Dark Design */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --emerald: #047857;
    --emerald-glow: rgba(4, 120, 87, 0.3);
    --sapphire: #1e40af;
    --sapphire-glow: rgba(30, 64, 175, 0.3);
    --gold: #d4a574;
    --gold-light: #e8c89e;
    --gold-glow: rgba(212, 165, 116, 0.4);
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.02);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.06);
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

/* Subtle gradient ambiance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 100% 60% at 0% 0%, rgba(4, 120, 87, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(30, 64, 175, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

/* Premium Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* Gold accent text */
.text-gold {
    color: var(--gold);
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    outline: none;
    color: var(--text-primary);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d4a574' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-position: left 1rem center;
    background-size: 14px 10px;
}

.form-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    border-radius: 14px;
    padding: 16px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

/* Primary CTA - Gold */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #c49a64 100%);
    color: #0a0a0a;
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--gold-glow);
    color: #0a0a0a;
}

/* Secondary button */
.btn-dark {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* WhatsApp button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    color: white;
}

/* Social Proof Bar */
.social-proof {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-subtle);
}

.social-proof-number {
    color: var(--gold);
    font-weight: 700;
}

/* Vibe Selector Cards */
.vibe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vibe-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vibe-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.vibe-card.selected {
    border-color: var(--gold);
    background: rgba(212, 165, 116, 0.08);
    box-shadow: 0 0 20px var(--gold-glow);
}

.vibe-card .icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: grayscale(30%);
}

.vibe-card .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.vibe-card.selected .label {
    color: var(--gold);
}

/* Image container with elegant fallback */
.image-showcase {
    background: linear-gradient(145deg, rgba(4, 120, 87, 0.05), rgba(30, 64, 175, 0.05));
    border-radius: 20px;
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.image-frame {
    background: linear-gradient(145deg, #151515, #0a0a0a);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.image-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Elegant fallback */
.image-fallback {
    text-align: center;
    padding: 40px;
}

.image-fallback .icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.image-fallback p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Result Cards Grid */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.result-card h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-card h5 .icon {
    opacity: 0.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding-right: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--emerald), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -22px;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
}

/* WhatsApp Bubble */
.whatsapp-bubble {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 18px 18px 4px 18px;
    padding: 18px 22px;
    color: white;
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
}

/* Game Box */
.game-box {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(30, 64, 175, 0.05));
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 14px;
    padding: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Lead Capture Gate */
.lead-gate {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08), rgba(212, 165, 116, 0.02));
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.lead-gate h4 {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 12px;
}

.lead-gate p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.lead-gate .form-control {
    max-width: 320px;
    margin: 0 auto 12px;
}

.lead-gate .trust-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 16px;
}

/* Blurred Preview */
.blurred-preview {
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Reveal Animation */
.reveal-enter {
    animation: revealFade 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* Success state */
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(4, 120, 87, 0.15);
    color: #34d399;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Premium upsell */
.premium-upsell {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.06), rgba(212, 165, 116, 0.02));
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-upsell::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 165, 116, 0.05) 50%, transparent 60%);
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.premium-upsell h5 {
    color: var(--gold);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.premium-upsell p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Loading */
.loading-elegant {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert */
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 14px;
    padding: 16px 20px;
}

/* Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary-custom {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 576px) {
    .glass-card {
        border-radius: 20px;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .vibe-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .vibe-card {
        padding: 16px;
    }

    .vibe-card .icon {
        font-size: 1.5rem;
    }

    .btn {
        padding: 14px 24px;
    }

    .lead-gate {
        padding: 24px 16px;
    }
}
