/* ════════════════════════════════════════════════════════════════
   MODAL: THE SANCTUARY WELCOME
   ════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 18, 0.4);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #F2F0E9; /* --color-paper */
    border-radius: 32px;
    border: 1px solid rgba(191, 164, 84, 0.2);
    padding: 80px 40px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 64px -12px rgba(21, 34, 25, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.welcome-badge {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
    background: white;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F7F2 100%);
    border: 1px solid rgba(191, 164, 84, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px -5px rgba(21, 34, 25, 0.15), 
                inset 0 0 0 4px #F2F0E9;
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 25px 0;
}

.verification-input {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(46, 64, 51, 0.05);
    border: 2px solid rgba(46, 64, 51, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: #2E4033;
    transition: all 0.2s ease;
}

.verification-input:focus {
    outline: none;
    border-color: #BFA454; /* --color-accent */
    background: white;
    box-shadow: 0 0 0 4px rgba(191, 164, 84, 0.15);
}

.perk-tag {
    background: rgba(191, 164, 84, 0.12);
    border: 1px solid rgba(191, 164, 84, 0.3);
    color: #BFA454;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    margin: 15px 0;
    animation: perk-pulse 2s infinite;
}

@keyframes perk-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(191, 164, 84, 0.2); }
}

.animate-entry {
    animation: cs-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cs-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
