/* ==========================================================================
   VISTARA - 18+ AGE VERIFICATION GATEWAY MODAL STYLESHEET
   Dedicated 3D Claymorphism & Glassmorphism styles for Age Gate Modal
   ========================================================================== */

.age-gate-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-gate-backdrop.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes ageModalPop {
    0% {
        transform: scale(0.92) translateY(12px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.age-gate-emblem-wrap {
    position: relative;
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-gate-emblem-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    animation: rotateRing 6s linear infinite;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.age-gate-emblem-core {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-gate-num {
    font-family: var(--font-heading, 'Outfit');
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.age-gate-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 99px;
    letter-spacing: 0.9px;
    margin-bottom: 14px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.age-gate-title {
    font-family: var(--font-heading, 'Outfit');
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.age-gate-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.age-gate-checkbox-box {
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-gate-checkbox-box.shake {
    animation: alertShake 0.45s ease;
}

.age-custom-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.age-gate-input-check {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}

.custom-check-marker {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-check-marker svg {
    width: 13px;
    height: 13px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.age-gate-input-check:checked ~ .custom-check-marker svg {
    opacity: 1;
    transform: scale(1);
}

.age-gate-check-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.age-gate-check-text .check-title {
    font-size: 14px;
    margin-bottom: 2px;
}

.age-gate-check-text .check-sub {
    font-size: 12px;
    line-height: 1.4;
}

.age-gate-warning-note {
    font-size: 12px;
    padding: 9px 14px;
    margin-bottom: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.age-gate-warning-note.shake {
    animation: alertShake 0.45s ease;
}

@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.age-gate-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-age-enter {
    width: 100%;
    padding: 13px 20px;
    font-family: var(--font-heading, 'Outfit');
    font-size: 14.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-age-enter.active:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-age-enter.active:active {
    transform: translateY(0);
}

.btn-age-exit {
    width: 100%;
    padding: 12px 20px;
    font-family: var(--font-heading, 'Outfit');
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.age-gate-footer-links {
    font-size: 12px;
    line-height: 1.5;
}

.age-gate-footer-links a {
    text-decoration: underline;
    transition: color 0.2s ease;
}

/* ==========================================================================
   THEME ADAPTATION: LIGHT MODE (Default)
   ========================================================================== */
[data-theme="light"] .age-gate-backdrop {
    background: rgba(45, 38, 33, 0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

[data-theme="light"] .age-gate-ambient-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(234, 110, 86, 0.28) 0%, rgba(247, 141, 120, 0.14) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}

[data-theme="light"] .age-gate-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 2.5px solid #ffffff;
    box-shadow: 0 30px 75px -15px rgba(65, 50, 35, 0.22), 0 0 50px rgba(234, 110, 86, 0.12), inset 0 2px 4px #ffffff;
    border-radius: 26px;
    max-width: 490px;
    width: 100%;
    padding: 38px 32px 30px;
    text-align: center;
    box-sizing: border-box;
    animation: ageModalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

[data-theme="light"] .age-gate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(234, 110, 86, 0.65), transparent);
}

[data-theme="light"] .age-gate-emblem-ring {
    background: conic-gradient(from 0deg, #ea6e56, #f78d78, #ff416c, #ea6e56);
    filter: blur(5px);
    opacity: 0.9;
}

[data-theme="light"] .age-gate-emblem-core {
    background: #ffffff;
    border: 2.5px solid #ea6e56;
    box-shadow: inset 0 2px 8px rgba(234, 110, 86, 0.15), 0 8px 22px rgba(234, 110, 86, 0.28);
}

[data-theme="light"] .age-gate-num {
    background: linear-gradient(135deg, #c2410c 0%, #ea6e56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .age-gate-badge-label {
    background: #fdf2ef;
    border: 1.5px solid rgba(234, 110, 86, 0.35);
    color: #c2410c;
    font-weight: 800;
}

[data-theme="light"] .pulse-dot {
    background: #ea6e56;
    box-shadow: 0 0 8px #ea6e56;
}

[data-theme="light"] .age-gate-title {
    color: #2d2621;
}

[data-theme="light"] .age-gate-desc {
    color: #6b5e54;
}

[data-theme="light"] .age-gate-desc strong {
    color: #2d2621;
}

[data-theme="light"] .age-gate-checkbox-box {
    background: #fbf8f4;
    border: 2px solid #ede4d8;
    border-radius: 16px;
}

[data-theme="light"] .age-gate-checkbox-box:hover {
    background: #fff8f5;
    border-color: rgba(234, 110, 86, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(65, 50, 35, 0.06);
}

[data-theme="light"] .age-gate-checkbox-box.checked {
    background: #fff4f1;
    border-color: #ea6e56;
    box-shadow: 0 6px 18px rgba(234, 110, 86, 0.16);
}

[data-theme="light"] .custom-check-marker {
    background: #ffffff;
    border: 2px solid #d5c8b8;
    border-radius: 8px;
}

[data-theme="light"] .age-gate-input-check:checked ~ .custom-check-marker {
    background: linear-gradient(135deg, #ff416c 0%, #ea6e56 100%);
    border-color: #ea6e56;
    box-shadow: 0 3px 12px rgba(234, 110, 86, 0.45);
}

[data-theme="light"] .age-gate-check-text .check-title {
    color: #2d2621;
    font-weight: 800;
}

[data-theme="light"] .age-gate-check-text .check-sub {
    color: #7d6e64;
}

[data-theme="light"] .age-gate-warning-note {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    border-radius: 12px;
}

[data-theme="light"] .btn-age-enter {
    background: #ede6dc;
    border: 1.5px solid #dfd5c7;
    color: #9c8e82;
    border-radius: 14px;
}

[data-theme="light"] .btn-age-enter .btn-icon-lock svg {
    color: #9c8e82;
}

[data-theme="light"] .btn-age-enter.active {
    background: linear-gradient(135deg, #ff416c 0%, #ea6e56 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(234, 110, 86, 0.4) !important;
}

[data-theme="light"] .btn-age-enter.active:hover {
    box-shadow: 0 14px 34px rgba(234, 110, 86, 0.55) !important;
}

[data-theme="light"] .btn-age-exit {
    background: #ffffff;
    border: 2px solid #ded6cb;
    color: #6b5e54;
    border-radius: 14px;
}

[data-theme="light"] .btn-age-exit:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

[data-theme="light"] .age-gate-footer-links {
    color: #8c7e74;
}

[data-theme="light"] .age-gate-footer-links a {
    color: #6b5e54;
}

[data-theme="light"] .age-gate-footer-links a:hover {
    color: #ea6e56;
}

/* ==========================================================================
   THEME ADAPTATION: DARK MODE (Obsidian Cyberpunk)
   ========================================================================== */
:root:not([data-theme="light"]) .age-gate-backdrop,
[data-theme="dark"] .age-gate-backdrop {
    background: rgba(4, 6, 12, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

:root:not([data-theme="light"]) .age-gate-ambient-glow,
[data-theme="dark"] .age-gate-ambient-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(255, 42, 95, 0.24) 0%, rgba(121, 40, 202, 0.16) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}

:root:not([data-theme="light"]) .age-gate-card,
[data-theme="dark"] .age-gate-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(165deg, rgba(20, 25, 38, 0.95) 0%, rgba(10, 13, 22, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.92), 0 0 50px -10px rgba(255, 42, 95, 0.28);
    border-radius: 26px;
    max-width: 490px;
    width: 100%;
    padding: 38px 32px 30px;
    text-align: center;
    box-sizing: border-box;
    animation: ageModalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

:root:not([data-theme="light"]) .age-gate-card::before,
[data-theme="dark"] .age-gate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 42, 95, 0.85), transparent);
}

:root:not([data-theme="light"]) .age-gate-emblem-ring,
[data-theme="dark"] .age-gate-emblem-ring {
    background: conic-gradient(from 0deg, #ff2a5f, #ff7b00, #ff2a5f);
    filter: blur(5px);
    opacity: 0.85;
}

:root:not([data-theme="light"]) .age-gate-emblem-core,
[data-theme="dark"] .age-gate-emblem-core {
    background: #0f131f;
    border: 2px solid rgba(255, 42, 95, 0.65);
    box-shadow: inset 0 0 16px rgba(255, 42, 95, 0.4), 0 6px 20px rgba(0, 0, 0, 0.7);
}

:root:not([data-theme="light"]) .age-gate-num,
[data-theme="dark"] .age-gate-num {
    background: linear-gradient(135deg, #ffffff 30%, #ff4d79 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root:not([data-theme="light"]) .age-gate-badge-label,
[data-theme="dark"] .age-gate-badge-label {
    background: rgba(255, 42, 95, 0.1);
    border: 1px solid rgba(255, 42, 95, 0.35);
    color: #ff3b69;
}

:root:not([data-theme="light"]) .pulse-dot,
[data-theme="dark"] .pulse-dot {
    background: #ff2a5f;
    box-shadow: 0 0 8px #ff2a5f;
}

:root:not([data-theme="light"]) .age-gate-title,
[data-theme="dark"] .age-gate-title {
    color: #ffffff;
}

:root:not([data-theme="light"]) .age-gate-desc,
[data-theme="dark"] .age-gate-desc {
    color: #94a3b8;
}

:root:not([data-theme="light"]) .age-gate-desc strong,
[data-theme="dark"] .age-gate-desc strong {
    color: #f1f5f9;
}

:root:not([data-theme="light"]) .age-gate-checkbox-box,
[data-theme="dark"] .age-gate-checkbox-box {
    background: rgba(255, 255, 255, 0.035);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

:root:not([data-theme="light"]) .age-gate-checkbox-box:hover,
[data-theme="dark"] .age-gate-checkbox-box:hover {
    background: rgba(255, 42, 95, 0.05);
    border-color: rgba(255, 42, 95, 0.45);
}

:root:not([data-theme="light"]) .age-gate-checkbox-box.checked,
[data-theme="dark"] .age-gate-checkbox-box.checked {
    background: rgba(255, 42, 95, 0.08);
    border-color: #ff2a5f;
    box-shadow: 0 0 20px rgba(255, 42, 95, 0.2);
}

:root:not([data-theme="light"]) .custom-check-marker,
[data-theme="dark"] .custom-check-marker {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
}

:root:not([data-theme="light"]) .age-gate-input-check:checked ~ .custom-check-marker,
[data-theme="dark"] .age-gate-input-check:checked ~ .custom-check-marker {
    background: linear-gradient(135deg, #ff2a5f 0%, #ff4b2b 100%);
    border-color: #ff2a5f;
    box-shadow: 0 0 12px rgba(255, 42, 95, 0.6);
}

:root:not([data-theme="light"]) .age-gate-check-text .check-title,
[data-theme="dark"] .age-gate-check-text .check-title {
    color: #f8fafc;
}

:root:not([data-theme="light"]) .age-gate-check-text .check-sub,
[data-theme="dark"] .age-gate-check-text .check-sub {
    color: #94a3b8;
}

:root:not([data-theme="light"]) .age-gate-warning-note,
[data-theme="dark"] .age-gate-warning-note {
    background: rgba(255, 42, 95, 0.12);
    border: 1px solid rgba(255, 42, 95, 0.35);
    color: #ff4d6d;
    border-radius: 12px;
}

:root:not([data-theme="light"]) .btn-age-enter,
[data-theme="dark"] .btn-age-enter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    border-radius: 14px;
}

:root:not([data-theme="light"]) .btn-age-enter .btn-icon-lock svg,
[data-theme="dark"] .btn-age-enter .btn-icon-lock svg {
    color: #64748b;
}

:root:not([data-theme="light"]) .btn-age-enter.active,
[data-theme="dark"] .btn-age-enter.active {
    background: linear-gradient(135deg, #ff2a5f 0%, #ff4b2b 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 42, 95, 0.45);
}

:root:not([data-theme="light"]) .btn-age-exit,
[data-theme="dark"] .btn-age-exit {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: 14px;
}

:root:not([data-theme="light"]) .btn-age-exit:hover,
[data-theme="dark"] .btn-age-exit:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

:root:not([data-theme="light"]) .age-gate-footer-links,
[data-theme="dark"] .age-gate-footer-links {
    color: #64748b;
}

:root:not([data-theme="light"]) .age-gate-footer-links a,
[data-theme="dark"] .age-gate-footer-links a {
    color: #94a3b8;
}

:root:not([data-theme="light"]) .age-gate-footer-links a:hover,
[data-theme="dark"] .age-gate-footer-links a:hover {
    color: #ff2a5f;
}

/* Mobile Screens */
@media (max-width: 480px) {
    .age-gate-card {
        padding: 28px 20px 22px !important;
        border-radius: 20px !important;
    }

    .age-gate-title {
        font-size: 21px !important;
    }

    .age-gate-desc {
        font-size: 13px !important;
    }

    .age-gate-emblem-wrap {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 12px !important;
    }

    .age-gate-emblem-core {
        width: 50px !important;
        height: 50px !important;
    }

    .age-gate-num {
        font-size: 19px !important;
    }
}
