/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --bg-color: #080710;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(139, 92, 246, 0.4);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --primary-color: #6d28d9;
    --primary-hover: #7c3aed;
    --secondary-color: rgba(255, 255, 255, 0.08);
    --secondary-hover: rgba(255, 255, 255, 0.15);
    --glow-color: rgba(109, 40, 217, 0.3);
    --shadow-black: rgba(0, 0, 0, 0.5);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 40px 20px;
}

/* Ambient Background Glows */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.bg-glow-1 {
    background: radial-gradient(circle, rgba(109, 40, 217, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    top: -150px;
    left: -150px;
}

.bg-glow-2 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

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

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
    50% { transform: scale(1.1) translate(30px, -30px); opacity: 0.5; }
    100% { transform: scale(0.9) translate(-30px, 30px); opacity: 0.3; }
}

/* Container */
.container {
    width: 100%;
    max-width: 680px;
    z-index: 1;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon-container {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--success-color);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.25;
    z-index: -1;
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.2; }
    50% { transform: scale(1.15); opacity: 0.4; }
}

.success-icon {
    width: 100%;
    height: 100%;
}

.success-icon .circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.success-icon .check {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: drawCheck 0.5s 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 70%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* Glassmorphic Cards */
.details-card, .gift-section, .steps-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px var(--shadow-black);
    transition: var(--transition);
}

.details-card:hover, .gift-section:hover, .steps-section:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 50px rgba(109, 40, 217, 0.15);
}

/* Details Card */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Pulsing Status Dot */
.dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
    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 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Gift Section (Countdown & Voucher) */
.gift-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gift-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.gift-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.gift-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    min-width: 80px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.02);
}

.countdown-num {
    font-size: 2rem;
    font-weight: 800;
    color: #c7d2fe;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    padding-bottom: 24px;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Voucher Box */
.voucher-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(109, 40, 217, 0.06);
    border: 2px dashed rgba(109, 40, 217, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    max-width: 380px;
    margin: 0 auto;
    transition: var(--transition);
}

.voucher-box:hover {
    border-color: rgba(109, 40, 217, 0.6);
    background: rgba(109, 40, 217, 0.09);
}

.voucher-code {
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #a78bfa;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-copy:active {
    transform: translateY(0);
}

.copy-icon {
    width: 16px;
    height: 16px;
}

/* Next Steps Timeline */
.steps-section {
    padding: 36px 32px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 28px;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 50px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: var(--card-border);
}

.timeline-step {
    display: flex;
    gap: 20px;
    position: relative;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.1);
    border: 2px solid var(--primary-color);
    color: #c7d2fe;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.2);
    transition: var(--transition);
}

.timeline-step:hover .step-number {
    transform: scale(1.1);
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-content strong {
    color: #c7d2fe;
}

/* CTA Action Buttons */
.cta-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c1d95 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(109, 40, 217, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #5b21b6 100%);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--card-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

.share-fb {
    background: #1877f2;
}

.share-tw {
    background: #1da1f2;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.08);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Footer */
.main-footer {
    text-align: center;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 600px) {
    body {
        padding: 24px 16px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .details-card, .gift-section, .steps-section {
        padding: 24px 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .countdown-container {
        gap: 12px;
    }
    
    .countdown-box {
        min-width: 70px;
        padding: 10px;
    }
    
    .countdown-num {
        font-size: 1.65rem;
    }
    
    .voucher-box {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 16px;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
}
