/* =============================================
   INTERCAMBIO NAVIDEÑO 2025 - POSADA N' FRIENDS
   Estilo Liquid Glass Apple Design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --primary-green: #1a4a4a;
    --accent-coral: #e85d4c;
    --accent-gold: #d4a855;
    --text-light: #ffffff;
    --text-cream: #f5e6d3;
    --gradient-festive: linear-gradient(135deg, #1a4a4a 0%, #2d6b6b 50%, #1a4a4a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-festive);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-light);
}

/* ===== NIEVE ANIMADA ===== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ===== LIQUID GLASS EFFECT ===== */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.hero-emoji {
    font-size: 8rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    max-width: 400px;
    width: 90%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 2px 2px 20px rgba(212, 168, 85, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-cream);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.event-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.event-badge {
    padding: 1rem 2rem;
    background: rgba(232, 93, 76, 0.2);
    border: 1px solid var(--accent-coral);
    border-radius: 50px;
    font-size: 1.1rem;
    color: var(--text-cream);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-badge i {
    color: var(--accent-coral);
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

/* ===== AUTH FORMS ===== */
.auth-container {
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-cream);
    opacity: 0.8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-cream);
    font-size: 1rem;
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-select,
.form-input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4a855' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-select:focus,
.form-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 168, 85, 0.3);
}

.form-select option {
    background: #1a4a4a;
    color: var(--text-light);
    padding: 1rem;
    font-size: 1rem;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== BUTTONS ===== */
.btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-coral) 0%, #d4503f 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(232, 93, 76, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 93, 76, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c49a4a 100%);
    color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(212, 168, 85, 0.4);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 85, 0.6);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--text-cream);
    opacity: 0.7;
}

.btn-ghost:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 0.4rem;
    gap: 0.4rem;
}

.tab {
    flex: 1;
    padding: 1rem 0.5rem;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-cream);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.tab.active {
    background: linear-gradient(135deg, rgba(212, 168, 85, 0.3) 0%, rgba(212, 168, 85, 0.1) 100%);
    color: var(--accent-gold);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.9;
}

/* ===== DASHBOARD ===== */
.dashboard {
    text-align: center;
    padding: 3rem;
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--text-cream);
    margin-bottom: 0.5rem;
}

.user-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.assignment-card {
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.assignment-label {
    font-size: 1rem;
    color: var(--text-cream);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.assignment-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent-coral);
    text-shadow: 0 0 30px rgba(232, 93, 76, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(232, 93, 76, 0.3); }
    to { text-shadow: 0 0 40px rgba(232, 93, 76, 0.6); }
}

.waiting-message {
    padding: 2rem;
    background: rgba(212, 168, 85, 0.1);
    border: 1px solid rgba(212, 168, 85, 0.3);
    border-radius: 16px;
    margin: 2rem 0;
}

.waiting-message p {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.gift-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== STATS ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-cream);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ===== PARTICIPANTES LIST ===== */
.participants-card {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.participants-title {
    text-align: center;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.participant-item.pending {
    border-left: 3px solid var(--accent-gold);
}

.participant-name {
    font-weight: 500;
    font-size: 1rem;
}

.participant-status {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-registered {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.all-registered {
    text-align: center;
    padding: 1.5rem;
}

.all-registered-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.all-registered p {
    color: var(--accent-gold);
    font-weight: 500;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef9a9a;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

/* ===== LINK STYLES ===== */
.link {
    color: var(--accent-gold);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 1rem;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-cream);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== CHRISTMAS DECORATIONS ===== */
.decoration {
    position: fixed;
    font-size: 2rem;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.decoration-1 { top: 10%; left: 5%; animation: twinkle 3s ease-in-out infinite; }
.decoration-2 { top: 20%; right: 8%; animation: twinkle 4s ease-in-out infinite 0.5s; }
.decoration-3 { bottom: 30%; left: 3%; animation: twinkle 3.5s ease-in-out infinite 1s; }
.decoration-4 { bottom: 15%; right: 5%; animation: twinkle 4.5s ease-in-out infinite 1.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
    border: 2px solid var(--accent-coral);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.admin-item.asistio {
    background: rgba(46, 204, 113, 0.15);
    border-color: var(--accent-emerald);
}

.admin-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.admin-item-status {
    font-size: 0.75rem;
    opacity: 0.7;
}

.admin-item-status.registrado {
    color: var(--accent-emerald);
}

.admin-item-status.no-registrado {
    color: var(--accent-coral);
}

/* Cuando el sorteo ya se hizo */
.admin-item.sorteo-hecho {
    opacity: 0.8;
}

.admin-item-en-sorteo {
    font-size: 0.75rem;
    color: var(--accent-emerald);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Estado del sorteo completado */
.sorteo-completado {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
    border: 2px solid var(--accent-emerald);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.sorteo-completado .sorteo-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.sorteo-completado p {
    color: var(--accent-emerald);
    margin: 0.5rem 0;
}

.sorteo-completado .sorteo-info {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.sorteo-completado .sorteo-nota {
    font-size: 0.85rem;
    opacity: 0.8;
    color: var(--text-primary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch.disabled .toggle-slider {
    cursor: not-allowed;
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 1rem;
        min-height: 100svh; /* Safari viewport fix */
    }

    .hero-emoji {
        font-size: 5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        max-width: 280px;
    }

    .main-container {
        width: 95%;
        padding: 1rem 0 3rem;
    }

    .auth-container,
    .dashboard {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .auth-header {
        margin-bottom: 1.5rem;
    }

    .auth-icon {
        font-size: 3rem;
    }

    .auth-title {
        font-size: 1.6rem;
    }

    .tabs {
        flex-direction: row;
        padding: 0.3rem;
        gap: 0.3rem;
    }

    .tab {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-select,
    .form-input {
        padding: 1rem 1.25rem;
        font-size: 16px; /* Previene zoom en iOS */
        border-radius: 14px;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 14px;
    }

    .btn-lg {
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .event-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .event-badge {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .user-name {
        font-size: 2rem;
    }

    .assignment-name {
        font-size: 2rem;
    }

    .gift-icon {
        font-size: 3rem;
    }

    .participants-card {
        padding: 1.25rem;
        margin-top: 1rem;
    }

    .participants-title {
        font-size: 1rem;
    }

    .participant-item {
        padding: 0.8rem 1rem;
    }

    .participant-name {
        font-size: 0.95rem;
    }

    .participant-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .glass-card:hover {
        transform: none; /* Desactivar hover en móvil */
    }

    .decoration {
        display: none; /* Ocultar decoraciones en móvil */
    }

    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Móviles pequeños */
@media (max-width: 400px) {
    .hero {
        padding: 1rem 0.75rem;
    }

    .hero-emoji {
        font-size: 4rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .auth-container,
    .dashboard {
        padding: 1.25rem 1rem;
    }

    .auth-icon {
        font-size: 2.5rem;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        padding: 0.75rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
        order: 2;
    }

    .stat-label {
        font-size: 0.85rem;
        order: 1;
    }

    .user-name {
        font-size: 1.6rem;
    }

    .assignment-name {
        font-size: 1.6rem;
    }

    .event-badge {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .hero-emoji {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .snowflakes {
        display: none;
    }
}

/* Safe area para notch (iPhone X+) */
@supports (padding: max(0px)) {
    .hero,
    .main-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

/* ===== CONFETTI ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== VISIBILITY ===== */
.hidden {
    display: none !important;
}

/* ===== SUCCESS MODAL ===== */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal.show {
    opacity: 1;
}

.success-modal-content {
    background: linear-gradient(135deg, rgba(26, 74, 74, 0.95) 0%, rgba(45, 107, 107, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 90%;
    width: 350px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: var(--text-cream);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.success-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}
