/* Prevent scrolling while modal is active */
body.age-verifier-active {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
}

.age-verifier-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.age-verifier-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.age-verifier-modal {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #1e1e2f 0%, #2d2d44 100%);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 20px 60px -10px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: none;
}

.age-verifier-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    z-index: 3;
}

.age-verifier-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.3) saturate(0.8);
}

.age-verifier-content {
    position: relative;
    z-index: 1;
}

.age-verifier-logo {
    margin-bottom: 25px;
}

.age-verifier-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.age-verifier-message {
    margin-bottom: 35px;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.age-verifier-message p {
    margin: 0 0 12px 0;
}

.age-verifier-message p:last-child {
    margin-bottom: 0;
}

.age-verifier-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.age-verifier-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-verifier-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.age-verifier-btn:active::after {
    width: 300px;
    height: 300px;
}

.age-verifier-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

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

.age-verifier-confirm {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.age-verifier-confirm:hover {
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.age-verifier-close {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.age-verifier-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

/* Animation */
@keyframes ageVerifierFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.age-verifier-modal {
    animation: ageVerifierFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.age-verifier-confirm {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Mobile */
@media (max-width: 480px) {
    .age-verifier-modal {
        padding: 40px 24px;
        width: 92%;
        border-radius: 16px;
    }

    .age-verifier-message {
        font-size: 16px !important;
    }

    .age-verifier-btn {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }

    .age-verifier-logo img {
        max-width: 100px;
    }
}

@media (max-width: 360px) {
    .age-verifier-modal {
        padding: 32px 20px;
    }

    .age-verifier-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
