/* ==========================================
   DESIGN SYSTEM & CSS RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #07050f;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    
    /* Brand Colors */
    --whatsapp-color: #25D366;
    --whatsapp-hover: #20ba59;
    --success-color: #10b981;
    --accent-glow: rgba(37, 211, 102, 0.15);
    
    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-image: linear-gradient(rgba(7, 5, 15, 0.7), rgba(7, 5, 15, 0.85)), url('background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* ==========================================
   PREMIUM BACKGROUND GLOWS
   ========================================== */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.bg-glow-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--whatsapp-color) 0%, transparent 70%);
}

/* ==========================================
   CONTAINER & GLASS CARD
   ========================================== */
.container {
    width: 100%;
    max-width: 580px;
    z-index: 10;
}

.thank-you-card {
    background: rgba(18, 14, 33, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                0 0 100px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

/* ==========================================
   HEADER ELEMENTS & BADGE
   ========================================== */
.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: pulseGlow 2s infinite ease-in-out;
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    margin: 32px 0;
}

/* ==========================================
   INSTRUCTIONS SECTION
   ========================================== */
.instructions-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--whatsapp-color);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.instructions-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ==========================================
   PREMIUM WHATSAPP BUTTON
   ========================================== */
.whatsapp-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, #128C7E 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.whatsapp-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5), 
                0 0 25px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:active {
    transform: translateY(-1px);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.wa-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    animation: floatIcon 2.5s infinite ease-in-out;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 1px;
}

/* Button shine hover animation */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: all 0.6s;
}

.whatsapp-btn:hover .btn-shine {
    left: 100%;
    transition: all 0.6s ease-in-out;
}

/* ==========================================
   ANIMATED CHECKMARK (SVG/CSS Hybrid)
   ========================================== */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid rgba(16, 185, 129, 0.2);
}

.success-checkmark .check-icon::after {
    top: -4px;
    left: -4px;
    width: 80px;
    height: 80px;
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 4px solid var(--success-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    animation: drawCircle 0.6s ease-in-out forwards;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: var(--success-color);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 43px;
    left: 19px;
    width: 25px;
    transform: rotate(45deg);
    animation: drawLineTip 0.4s 0.5s ease-out forwards;
    opacity: 0;
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 17px;
    width: 47px;
    transform: rotate(-45deg);
    animation: drawLineLong 0.4s 0.7s ease-out forwards;
    opacity: 0;
}

/* ==========================================
   FOOTER INFORMATION
   ========================================== */
.card-footer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-footer p {
    margin-bottom: 8px;
}

.copyright {
    opacity: 0.5;
    font-size: 0.75rem;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes drawCircle {
    0% {
        clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
    }
    100% {
        clip-path: polygon(-50% -50%, 150% -50%, 150% 150%, -50% 150%, -50% -50%);
    }
}

@keyframes drawLineTip {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 20px;
        opacity: 1;
    }
}

@keyframes drawLineLong {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 40px;
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.4);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .thank-you-card {
        padding: 36px 20px;
        border-radius: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.7rem;
    }
    
    .wa-icon {
        width: 24px;
        height: 24px;
    }
}
