/* GX Age Gate — Black & Grey design matching gxresearch.shop */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

*,*::before,*::after{box-sizing:border-box}

body.gx-gate-active {
    overflow: hidden !important;
    height: 100vh !important;
}

.gx-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e0e0e0;
    line-height: 1.5;
}

.gx-gate-inner {
    width: 100%;
    max-width: 480px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* ── Brand ── */
.gx-gate-brand {
    text-align: center;
    margin-bottom: 28px;
}
.gx-gate-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0f0f0f;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.gx-gate-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 6px;
}
.gx-gate-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ── Divider ── */
.gx-gate-divider {
    height: 1px;
    background: #222;
    margin: 0 0 24px;
}

/* ── Legal Notice ── */
.gx-gate-legal {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 28px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #888;
}
.gx-gate-legal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.gx-gate-legal-icon {
    font-size: 16px;
    color: #999;
}
.gx-gate-legal-header strong {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}
.gx-gate-legal-text p {
    margin: 0;
}
.gx-gate-legal-text strong {
    color: #bbb;
}

/* ── Tabs ── */
.gx-gate-tabs {
    display: flex;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 24px;
    gap: 0;
}
.gx-gate-tab {
    flex: 1;
    padding: 12px 0;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #555 !important;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.gx-gate-tab:hover,
.gx-gate-tab:focus,
.gx-gate-tab:active {
    color: #999 !important;
    background: transparent !important;
    text-decoration: none !important;
    outline: none;
}
.gx-gate-tab.active,
.gx-gate-tab.active:hover,
.gx-gate-tab.active:focus {
    color: #fff !important;
    border-bottom-color: #fff;
}

/* ── Error ── */
.gx-gate-error {
    background: rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.2);
    color: #ef5350;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ── Forms ── */
.gx-gate-form {
    display: none;
}
.gx-gate-form.active {
    display: block;
}

.gx-gate-field {
    margin-bottom: 14px;
}
.gx-gate-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}
.gx-gate-field-row .gx-gate-field {
    flex: 1;
}

.gx-gate-field label.gx-gate-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
    margin-bottom: 6px;
}

.gx-gate-field input,
.gx-gate-field select {
    width: 100%;
    padding: 13px 16px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.gx-gate-field input:focus,
.gx-gate-field select:focus {
    outline: none;
    border-color: #555;
    background: #161616;
}
.gx-gate-field input::placeholder {
    color: #444;
}
.gx-gate-field select {
    color: #666;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    font-size: 14px;
    line-height: normal;
    height: auto;
    min-height: 50px;
}
.gx-gate-field select option {
    background: #0f0f0f;
    color: #e0e0e0;
}
.gx-gate-field select:valid:not([value=""]) {
    color: #e0e0e0;
}

/* ── Checkboxes ── */
.gx-gate-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 14px;
    cursor: pointer;
    line-height: 1.6;
}
.gx-gate-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #fff;
    cursor: pointer;
}
.gx-gate-check strong {
    color: #e0e0e0;
}
.gx-gate-check a {
    color: #bbb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gx-gate-check a:hover {
    color: #fff;
}

/* ── Row (remember + forgot) ── */
.gx-gate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.gx-gate-link {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.gx-gate-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Button ── */
.gx-gate-btn {
    width: 100%;
    padding: 14px;
    background: #fff;
    border: none;
    border-radius: 6px;
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}
.gx-gate-btn:hover {
    background: #e0e0e0;
}
.gx-gate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Footer ── */
.gx-gate-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #333;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .gx-gate {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }
    .gx-gate-inner {
        padding: 28px 22px;
    }
    .gx-gate-field-row {
        flex-direction: column;
    }
    .gx-gate-title {
        font-size: 22px;
        letter-spacing: 1.5px;
    }
    .gx-gate-logo {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
    .gx-gate-tab {
        font-size: 13px;
        letter-spacing: 1px;
    }
}
