.askaqa-auth-page,
.askaqa-member-page {
    padding: 48px 0 72px;
}

.askaqa-auth-card,
.askaqa-member-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--line, #dbe6ee);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(8, 39, 65, 0.12);
    padding: 32px 28px;
}

.askaqa-auth-card--wide,
.askaqa-member-card {
    max-width: 760px;
}

.askaqa-auth-kicker {
    margin: 0 0 8px;
    color: #1478ad;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.askaqa-auth-card h1,
.askaqa-member-card h1,
.askaqa-member-intro h1 {
    margin: 0 0 10px;
    letter-spacing: -0.04em;
}

.askaqa-auth-lead,
.askaqa-auth-note {
    color: #587085;
}

.askaqa-auth-lead {
    margin: 0 0 22px;
}

.askaqa-auth-note {
    font-size: 0.9rem;
}

.askaqa-auth-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 650;
}

.askaqa-auth-alert--error {
    background: #fdecec;
    color: #9b1c1c;
}

.askaqa-auth-alert--success {
    background: #e8f7f2;
    color: #0f6b56;
}

.askaqa-oauth {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.askaqa-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid #dbe6ee;
    border-radius: 14px;
    background: #ffffff;
    font-weight: 750;
    color: #12304d;
}

.askaqa-oauth-btn:hover,
.askaqa-oauth-btn:focus-visible {
    border-color: #22b6c7;
    outline: 3px solid rgba(34, 182, 199, 0.35);
    outline-offset: 2px;
}

.askaqa-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
    color: #587085;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.askaqa-auth-divider::before,
.askaqa-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe6ee;
}

.askaqa-auth-form,
.askaqa-field {
    display: grid;
    gap: 8px;
}

.askaqa-auth-form {
    gap: 16px;
}

.askaqa-field label,
.askaqa-interest-set legend {
    font-weight: 760;
    color: #12263a;
}

.askaqa-field input,
.askaqa-field select,
.askaqa-field textarea {
    width: 100%;
    border: 1px solid #cddce5;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: #12263a;
    background: #ffffff;
}

.askaqa-field input:focus-visible,
.askaqa-field select:focus-visible,
.askaqa-field textarea:focus-visible,
.askaqa-check input:focus-visible,
.header-account-toggle:focus-visible,
.askaqa-gate-actions .btn:focus-visible {
    outline: 3px solid rgba(34, 182, 199, 0.45);
    outline-offset: 2px;
}

.askaqa-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.askaqa-field-error {
    margin: 0;
    color: #9b1c1c;
    font-size: 0.88rem;
    font-weight: 650;
}

.askaqa-auth-submit,
.askaqa-auth-actions .btn {
    width: 100%;
}

.askaqa-auth-actions {
    display: flex;
    gap: 10px;
}

.askaqa-auth-links,
.askaqa-auth-switch {
    text-align: center;
    margin: 16px 0 0;
}

.askaqa-auth-links a,
.askaqa-auth-switch a,
.askaqa-legal a {
    color: #1478ad;
    font-weight: 750;
}

.askaqa-register-step {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.askaqa-register-step legend,
.askaqa-interest-set legend {
    padding: 0;
    margin-bottom: 12px;
}

.askaqa-interest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.askaqa-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 600;
}

.askaqa-check--block {
    margin: 4px 0;
}

.askaqa-password-meter {
    display: grid;
    gap: 8px;
}

.askaqa-password-bar {
    height: 8px;
    background: #eaf0f5;
    border-radius: 999px;
    overflow: hidden;
}

.askaqa-password-bar span {
    display: block;
    height: 100%;
    width: 33%;
    background: #c2410c;
    transition: width .2s ease, background .2s ease;
}

.askaqa-password-meter[data-score="medium"] .askaqa-password-bar span {
    width: 66%;
    background: #b45309;
}

.askaqa-password-meter[data-score="strong"] .askaqa-password-bar span {
    width: 100%;
    background: #0f766e;
}

.askaqa-password-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
    font-size: 0.86rem;
    color: #587085;
}

.askaqa-password-checks li.is-met {
    color: #0f6b56;
    font-weight: 700;
}

.askaqa-password-checks li.is-met::before {
    content: "✓ ";
}

.header-account {
    position: relative;
}

.header-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line, #dbe6ee);
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    font: inherit;
    font-weight: 750;
    color: #12304d;
    cursor: pointer;
}

.askaqa-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1478ad, #22b6c7);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    object-fit: cover;
}

.askaqa-avatar--lg {
    width: 72px;
    height: 72px;
    font-size: 1.4rem;
}

.header-account-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #dbe6ee;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(8, 39, 65, 0.12);
    padding: 8px;
    z-index: 60;
}

.header-account-menu.is-open {
    display: grid;
}

.header-account-menu a,
.header-account-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    color: #29475d;
    cursor: pointer;
}

.header-account-menu a:hover,
.header-account-menu button:hover {
    background: #f5f8fb;
}

.askaqa-member-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.askaqa-member-nav {
    display: grid;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dbe6ee;
    border-radius: 18px;
    padding: 14px;
}

.askaqa-member-nav a {
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 750;
    color: #29475d;
}

.askaqa-member-nav a.is-active,
.askaqa-member-nav a:hover {
    background: #eaf6fb;
    color: #1478ad;
}

.askaqa-profile-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.askaqa-profile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin: 0 0 24px;
}

.askaqa-profile-meta dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #587085;
}

.askaqa-profile-meta dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.askaqa-member-rule {
    border: 0;
    border-top: 1px solid #dbe6ee;
    margin: 28px 0;
}

.askaqa-connected {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.askaqa-connected li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid #dbe6ee;
    border-radius: 14px;
    padding: 12px 14px;
}

.askaqa-connected span,
.askaqa-muted {
    color: #587085;
    font-size: 0.9rem;
}

.askaqa-question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.askaqa-question-list li {
    border: 1px solid #dbe6ee;
    border-radius: 16px;
    padding: 16px;
    background: #fbfdfe;
}

.askaqa-question-q {
    margin: 0 0 6px;
    font-weight: 780;
}

.askaqa-question-meta {
    margin: 0 0 10px;
    color: #587085;
    font-size: 0.84rem;
}

.askaqa-question-a {
    margin: 0;
    color: #29475d;
}

.askaqa-legal {
    max-width: 760px;
    padding: 48px 0 72px;
}

.footer-bottom a {
    color: #76dfe8;
}

.askaqa-gate {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(7, 19, 33, 0.56);
}

.askaqa-gate.is-open {
    display: grid;
}

.askaqa-gate-card {
    width: min(100%, 460px);
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 18px 50px rgba(8, 39, 65, 0.2);
}

.askaqa-gate-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.askaqa-gate-actions .btn {
    flex: 1;
}

.header-actions .askaqa-header-signin,
.header-actions .askaqa-header-join {
    white-space: nowrap;
}

.mobile-menu .askaqa-mobile-logout {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 11px 0;
    font: inherit;
    font-weight: 700;
    color: #29475d;
    cursor: pointer;
}

@media (max-width: 820px) {
    .askaqa-field-grid,
    .askaqa-interest-grid,
    .askaqa-profile-meta,
    .askaqa-member-layout {
        grid-template-columns: 1fr;
    }

    .askaqa-auth-actions,
    .askaqa-gate-actions,
    .askaqa-connected li {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 1080px) {
    .header-actions .askaqa-header-signin {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .header-actions .askaqa-header-join,
    .header-actions .askaqa-header-ask {
        display: none;
    }

    .header-actions .askaqa-header-signin,
    .header-account {
        display: inline-flex;
    }

    .header-account-toggle span {
        display: none;
    }
}
