/* ========================================= Global Variables & Base ========================================= */
:root {
    --primary-color: #8b5cf6;
    --accent-color: #e879f9;
    --success-color: #34d399;
    --bg-dark: #020617;
}

/* ========================================= Micro-Interactions: Custom Scrollbar ========================================= */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* ========================================= Animated Background ========================================= */
.rsvp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}
.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
}
.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* ========================================= Loader ========================================= */
.rsvp-loader-wrapper {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.rsvp-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================= Neumorphic / Glowing CTA Button ========================================= */
.neon-submit-btn {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.neon-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}
.neon-submit-btn:hover::before {
    left: 100%;
}
.neon-submit-btn:active {
    transform: scale(0.98);
}

/* ========================================= Guest List Items & Animations ========================================= */
.guest-pill {
    animation: slideFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}
@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================= Custom Tooltips ========================================= */
.custom-tooltip-container {
    position: relative;
}
.custom-tooltip {
    position: absolute;
    top: -35px;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(5px);
    pointer-events: none;
    white-space: nowrap;
}
.custom-tooltip-container input:focus + .custom-tooltip,
.custom-tooltip-container:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
