/* === Base Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 30%, #0a3d2e 60%, #0a1628 100%);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    position: relative;
}

/* === Particle Canvas === */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* === Card Container === */
.card-container {
    position: relative;
    z-index: 1;
    perspective: 1200px;
    padding: 20px;
}

.card {
    width: 480px;
    max-width: 95vw;
    background: linear-gradient(145deg, rgba(10, 30, 20, 0.95), rgba(5, 20, 35, 0.95));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 24px;
    box-shadow:
        0 0 40px rgba(0, 255, 136, 0.15),
        0 0 80px rgba(0, 255, 136, 0.05),
        inset 0 0 60px rgba(0, 255, 136, 0.03);
    overflow: hidden;
    animation: cardAppear 1.2s ease-out;
    position: relative;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* === Card Header === */
.card-header {
    text-align: center;
    padding: 40px 30px 20px;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.08) 0%, transparent 100%);
}

.emerald-icon {
    font-size: 64px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8em;
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* === Sparkles === */
.sparkle {
    position: absolute;
    font-size: 20px;
    animation: sparkleAnim 2s ease-in-out infinite;
}

.s1 { top: 20px; left: 30px; animation-delay: 0s; }
.s2 { top: 40px; right: 40px; animation-delay: 0.7s; }
.s3 { bottom: 20px; right: 25px; animation-delay: 1.4s; }

@keyframes sparkleAnim {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

/* === Card Body === */
.card-body {
    padding: 20px 35px;
    text-align: center;
}

.greeting {
    font-size: 1.3em;
    color: #a0ffd0;
    margin-bottom: 15px;
    font-weight: 300;
}

.text {
    color: #c8e6d4;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 300;
}

.highlight {
    color: #00ff88;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.details {
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 15px;
    color: #b0d4c0;
    font-size: 0.95em;
    line-height: 1.8;
}

/* === Card Footer === */
.card-footer {
    padding: 25px 35px 35px;
    text-align: center;
}

.question {
    color: #00ff88;
    font-size: 1.15em;
    margin-bottom: 20px;
    font-weight: 400;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-accept {
    background: linear-gradient(135deg, #00cc66, #00ff88);
    color: #0a1628;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.35);
}

.btn-accept:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.btn-decline {
    background: rgba(255, 255, 255, 0.08);
    color: #8899aa;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #aabbcc;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2em;
}

/* === Overlay === */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-content {
    text-align: center;
    padding: 50px;
    background: linear-gradient(145deg, rgba(10, 30, 20, 0.98), rgba(5, 20, 35, 0.98));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.2);
    max-width: 420px;
    animation: popIn 0.4s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.overlay-emoji {
    font-size: 72px;
    margin-bottom: 20px;
    animation: float 2s ease-in-out infinite;
}

.overlay-text {
    color: #c8e6d4;
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 300;
}

/* === Confetti Canvas === */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

/* === Responsive === */
@media (max-width: 520px) {
    .card-header { padding: 30px 20px 15px; }
    .title { font-size: 2.2em; }
    .card-body { padding: 15px 25px; }
    .card-footer { padding: 20px 25px 30px; }
    .buttons { flex-direction: column; }
    .btn { justify-content: center; }
}
