/* ── Lochlea Age Verify ── */

.lav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lav-overlay.lav-visible {
    opacity: 1;
}

.lav-overlay.lav-hiding {
    opacity: 0;
    pointer-events: none;
}

/* Blurred dark backdrop */
.lav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Lock body scroll — preserve scroll position */
body.lav-locked {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Glassmorphism modal */
.lav-modal {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 90%;
    padding: 48px 40px 40px;
    margin: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lav-overlay.lav-visible .lav-modal {
    transform: translateY(0) scale(1);
}

.lav-overlay.lav-hiding .lav-modal {
    transform: translateY(-20px) scale(0.96);
}

/* Logo */
.lav-logo {
    margin-bottom: 28px;
}

.lav-logo img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Heading */
.lav-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FFFFFF;
    margin: 0 0 28px;
}

/* Year input boxes */
.lav-year-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.lav-year-box {
    width: 64px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF !important;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    outline: none;
    -webkit-text-fill-color: #FFFFFF;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    caret-color: #C4B99A;
    -moz-appearance: textfield;
}

.lav-year-box::-webkit-outer-spin-button,
.lav-year-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lav-year-box::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-size: 24px;
    font-weight: 400;
}

.lav-year-box:focus {
    border-color: #C4B99A;
    background: rgba(196, 185, 154, 0.1);
    box-shadow: 0 0 0 3px rgba(196, 185, 154, 0.15);
}

.lav-year-box.lav-filled {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

/* Error message */
.lav-error {
    min-height: 24px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ff6b6b;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lav-error.lav-error-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Success state */
.lav-year-box.lav-success {
    border-color: #6bcb77;
    background: rgba(107, 203, 119, 0.1);
}

/* Shake animation for error */
@keyframes lav-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

.lav-year-inputs.lav-shake {
    animation: lav-shake 0.5s ease;
}

.lav-year-box.lav-error-box {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Country age notice */
.lav-age-notice {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* Legal text */
.lav-legal {
    max-width: 360px;
    margin: 0 auto;
}

.lav-legal p {
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.lav-legal a {
    color: #C4B99A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.lav-legal a:hover {
    color: #FFFFFF;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .lav-overlay {
        align-items: flex-start;
        padding: 10vh 0 40px;
    }

    .lav-modal {
        padding: 36px 24px 32px;
    }

    .lav-year-box {
        width: 56px;
        height: 70px;
        font-size: 28px;
        border-radius: 10px;
    }

    .lav-year-inputs {
        gap: 8px;
    }

    .lav-heading {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .lav-logo img {
        max-width: 90px;
    }
}
