/* ========== AGE VERIFICATION GATE ========== */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ageGateBgIn 0.5s ease;
}
.age-gate--closing {
    animation: ageGateBgOut 0.3s ease forwards;
}
.age-gate--closing .age-gate__card {
    animation: ageGateCardOut 0.3s ease forwards;
}

/* -- Background Styles -- */
.age-gate--gradient {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 25%, #16213e 50%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: ageGateBgIn 0.5s ease, ageGateGradient 12s ease infinite;
}
.age-gate--gradient.age-gate--closing {
    animation: ageGateGradient 12s ease infinite, ageGateBgOut 0.3s ease forwards;
}
.age-gate--dark {
    background: #0a0a0a;
}
.age-gate--blur {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(0.3);
    -webkit-backdrop-filter: blur(20px) saturate(0.3);
}

/* Subtle particles/dots overlay for gradient style */
.age-gate--gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.08) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.05) 50%, transparent 50%),
        radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,0.06) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.04) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.07) 50%, transparent 50%);
    pointer-events: none;
}

@keyframes ageGateGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes ageGateBgIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes ageGateBgOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* -- Card -- */
.age-gate__card {
    position: relative;
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 44px 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 32px 100px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(99, 102, 241, 0.05);
    animation: ageGateCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
@keyframes ageGateCardIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: none; }
}
@keyframes ageGateCardOut {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: scale(0.95) translateY(-10px); }
}

/* -- Header (logo zone) -- */
.age-gate__header {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.age-gate__logo {
    display: block;
    max-width: 170px;
    max-height: 44px;
    margin: 0 auto;
    object-fit: contain;
}
.age-gate__site-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* -- Body (text content) -- */
.age-gate__body {
    margin-bottom: 28px;
}
.age-gate__title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.age-gate__message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.age-gate__disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* -- Actions -- */
.age-gate__actions {}

/* -- Enter Button -- */
.age-gate__enter {
    display: block;
    width: 100%;
    padding: 15px 28px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.age-gate__enter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
}
.age-gate__enter:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.age-gate__enter:hover::before {
    opacity: 1;
}
.age-gate__enter:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}
.age-gate__enter:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.age-gate__enter:disabled:hover {
    transform: none;
    box-shadow: none;
}
.age-gate__enter:disabled::before {
    display: none;
}

/* -- Exit link -- */
.age-gate__exit {
    display: inline-block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.2s;
    font-weight: 500;
}
.age-gate__exit:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* -- DOB Fields -- */
.age-gate__dob {
    margin-bottom: 20px;
}
.age-gate__dob-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.age-gate__dob-fields {
    display: grid;
    grid-template-columns: 1fr 0.6fr 0.8fr;
    gap: 10px;
}
.age-gate__dob-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.age-gate__dob-select:focus {
    outline: none;
    border-color: rgba(220, 38, 38, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.age-gate__dob-select option {
    background: #1a1a2e;
    color: #fff;
}
.age-gate__dob-select--denied {
    border-color: rgba(239, 68, 68, 0.5);
    background-color: rgba(239, 68, 68, 0.06);
}
.age-gate__dob-error {
    margin-top: 10px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    animation: ageGateShake 0.35s ease;
}
@keyframes ageGateShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(2px); }
}

/* -- Checkbox -- */
.age-gate__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, background 0.2s;
}
.age-gate__checkbox:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}
.age-gate__checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.age-gate__checkbox-mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-top: 1px;
    transition: all 0.2s;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
}
.age-gate__checkbox-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}
.age-gate__checkbox input:checked ~ .age-gate__checkbox-mark {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.age-gate__checkbox input:checked ~ .age-gate__checkbox-mark::after {
    transform: rotate(45deg) scale(1);
}
.age-gate__checkbox-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

/* -- Legal links -- */
.age-gate__legal {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.age-gate__legal a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 500;
}
.age-gate__legal a:hover {
    color: rgba(255, 255, 255, 0.6);
}
.age-gate__legal-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* -- Responsive -- */
@media (max-width: 480px) {
    .age-gate { padding: 16px; }
    .age-gate__card { padding: 32px 24px 28px; border-radius: 16px; }
    .age-gate__title { font-size: 19px; }
    .age-gate__message { font-size: 13px; }
    .age-gate__dob-fields { grid-template-columns: 1fr; gap: 8px; }
    .age-gate__dob-select { padding: 11px 14px; }
    .age-gate__enter { padding: 14px 24px; font-size: 14px; }
    .age-gate__legal { gap: 6px; }
}
