.ac-social-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: #8f969c;
    font-size: 13px;
    font-weight: bold;
    text-transform: lowercase;
}

.ac-social-divider::before,
.ac-social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #4a5055;
}

.ac-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-social-button {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 11px 16px;
    border: 1px solid #1689c5;
    border-radius: 7px;
    background: #229ed9;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.ac-social-button:hover {
    background: #168dcc;
    border-color: #37b1e9;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(34, 158, 217, 0.25);
}

.ac-social-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.ac-social-button-icon {
    width: 21px;
    height: 21px;
    display: block;
    flex: 0 0 21px;
}

.ac-social-button-text {
    display: block;
}

.ac-login-register {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #f0f0f0;
}

.ac-login-register a {
    color: #aeb4b9 !important;
    text-decoration: none;
}

.ac-login-register a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* =========================================================
   SOCIALAUTH — ACCOUNTS PAGE
   ========================================================= */

.sa-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.sa-accounts-card {
    max-width: 920px;
}

.sa-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    background: #336600;
}

.sa-card-header h1 {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 24px;
}

.sa-card-header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 22px;
}

.sa-card-subtitle {
    margin-top: 4px;
    color: #d1dfc4;
    font-size: 13px;
}

.sa-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 6px;
}

.sa-alert-success {
    background: #244d24;
    border: 1px solid #3d7a3d;
    color: #d9f2d9;
}

.sa-security-note {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid #444a50;
    border-radius: 7px;
    background: #24272b;
}

.sa-security-note strong {
    font-size: 15px;
}

.sa-security-note span {
    color: #aeb4b9;
    line-height: 1.5;
}

.sa-account-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid #444a50;
    border-radius: 8px;
    background: #24272b;
}

.sa-account-provider:hover {
    border-color: #596168;
    background: #272b30;
}

.sa-provider-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sa-provider-logo {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

.sa-provider-logo svg {
    width: 25px;
    height: 25px;
}

.sa-provider-logo-telegram {
    background: #229ed9;
}

.sa-provider-logo-google {
    background: #555b61;
}

.sa-provider-logo-discord {
    background: #555b61;
}

.sa-provider-logo-github {
    background: #555b61;
    font-size: 13px;
}

.sa-provider-info {
    min-width: 0;
}

.sa-provider-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 6px;
    font-size: 17px;
}

.sa-status {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.sa-status-connected {
    background: #284d2b;
    color: #9ee6a5;
}

.sa-status-disconnected {
    background: #4c3030;
    color: #e8aaaa;
}

.sa-status-soon {
    background: #3b4045;
    color: #aeb4b9;
}

.sa-provider-identity {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 14px;
}

.sa-provider-description {
    color: #aeb4b9;
    line-height: 1.45;
}

.sa-provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: #90979d;
    font-size: 12px;
}

.sa-provider-action {
    flex: 0 0 auto;
}

.sa-button-primary {
    min-width: 112px;
    text-align: center;
    background: #336600;
}

.sa-button-primary:hover {
    background: #407c00;
}

.sa-button-danger {
    min-width: 112px;
    background: #7c3030;
}

.sa-button-danger:hover {
    background: #963737;
}

.sa-button-disabled {
    min-width: 112px;
    background: #3a3e42;
    color: #777d82 !important;
    cursor: not-allowed;
}

.sa-provider-disabled {
    opacity: 0.64;
}

.sa-footer-actions {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #41464b;
}

.sa-back-link {
    color: #9bc66b !important;
    text-decoration: none;
}

.sa-back-link:hover {
    color: #b7dc8c !important;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .sa-card-header {
        padding: 18px;
    }

    .sa-body {
        padding: 16px;
    }

    .sa-account-provider {
        align-items: stretch;
        flex-direction: column;
    }

    .sa-provider-action {
        width: 100%;
    }

    .sa-provider-action .sa-button,
    .sa-provider-action form,
    .sa-provider-action button {
        width: 100%;
        box-sizing: border-box;
    }

    .sa-provider-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* =========================================================
   ACCOUNTS PAGE — BASE FIX
   ========================================================= */

body.sa-accounts-page {
    margin: 0;
    padding: 38px 20px;
    box-sizing: border-box;
    background: #1f2226;
    color: #e8e8e8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

body.sa-accounts-page *,
body.sa-accounts-page *::before,
body.sa-accounts-page *::after {
    box-sizing: border-box;
}

body.sa-accounts-page .sa-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

body.sa-accounts-page .sa-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid #4b5258;
    border-radius: 10px;
    background: #2a2e33;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

body.sa-accounts-page .sa-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    background: #336600;
    color: #ffffff;
}

body.sa-accounts-page .sa-card-header h1 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.2;
}

body.sa-accounts-page .sa-card-subtitle {
    margin-top: 5px;
    color: #d2e3c2;
    font-size: 13px;
}

body.sa-accounts-page .sa-card-header-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 23px;
}

body.sa-accounts-page .sa-body {
    padding: 24px;
}

body.sa-accounts-page .sa-security-note {
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid #444b51;
    border-radius: 7px;
    background: #24282c;
    color: #e6e6e6;
}

body.sa-accounts-page .sa-security-note strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 15px;
}

body.sa-accounts-page .sa-security-note span {
    display: block;
    color: #aeb5bb;
    font-size: 13px;
    line-height: 1.5;
}

body.sa-accounts-page .sa-account-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid #444b51;
    border-radius: 8px;
    background: #24282c;
    color: #e8e8e8;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

body.sa-accounts-page .sa-account-provider:hover {
    border-color: #5b646b;
    background: #282d32;
}

body.sa-accounts-page .sa-provider-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.sa-accounts-page .sa-provider-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: 10px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

body.sa-accounts-page .sa-provider-logo svg {
    width: 26px;
    height: 26px;
}

body.sa-accounts-page .sa-provider-logo-telegram {
    background: #229ed9;
}

body.sa-accounts-page .sa-provider-logo-google,
body.sa-accounts-page .sa-provider-logo-discord,
body.sa-accounts-page .sa-provider-logo-github {
    background: #4a5056;
}

body.sa-accounts-page .sa-provider-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 6px;
}

body.sa-accounts-page .sa-provider-title-row strong {
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
}

body.sa-accounts-page .sa-provider-description {
    color: #adb4ba;
    font-size: 13px;
    line-height: 1.45;
}

body.sa-accounts-page .sa-provider-identity {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 14px;
}

body.sa-accounts-page .sa-provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: #90989e;
    font-size: 12px;
}

body.sa-accounts-page .sa-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.3;
}

body.sa-accounts-page .sa-status-connected {
    background: #294d2d;
    color: #a6e9ad;
}

body.sa-accounts-page .sa-status-disconnected {
    background: #543232;
    color: #efb2b2;
}

body.sa-accounts-page .sa-status-soon {
    background: #3d4348;
    color: #b5bcc1;
}

body.sa-accounts-page .sa-provider-action {
    flex: 0 0 auto;
}

body.sa-accounts-page .sa-button {
    min-width: 120px;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

body.sa-accounts-page .sa-button-primary {
    border-color: #4c8c0d;
    background: #336600;
}

body.sa-accounts-page .sa-button-primary:hover {
    border-color: #68ad25;
    background: #417d00;
    transform: translateY(-1px);
}

body.sa-accounts-page .sa-button-danger {
    border-color: #9b4646;
    background: #7b3030;
}

body.sa-accounts-page .sa-button-danger:hover {
    background: #963b3b;
}

body.sa-accounts-page .sa-button-disabled {
    border-color: #4d5358;
    background: #3a3f44;
    color: #81888e !important;
    cursor: not-allowed;
}

body.sa-accounts-page .sa-provider-disabled {
    opacity: 0.52;
}

body.sa-accounts-page .sa-provider-disabled:hover {
    border-color: #444b51;
    background: #24282c;
}

body.sa-accounts-page .sa-footer-actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #444b51;
}

body.sa-accounts-page .sa-back-link {
    color: #9ac66a !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    text-decoration: none !important;
}

body.sa-accounts-page .sa-back-link:hover {
    color: #b7dc8c !important;
    text-decoration: underline !important;
}

@media (max-width: 700px) {
    body.sa-accounts-page {
        padding: 15px 10px;
    }

    body.sa-accounts-page .sa-card-header {
        padding: 18px;
    }

    body.sa-accounts-page .sa-card-header h1 {
        font-size: 21px;
    }

    body.sa-accounts-page .sa-body {
        padding: 15px;
    }

    body.sa-accounts-page .sa-account-provider {
        align-items: stretch;
        flex-direction: column;
    }

    body.sa-accounts-page .sa-provider-action,
    body.sa-accounts-page .sa-provider-action form,
    body.sa-accounts-page .sa-provider-action .sa-button,
    body.sa-accounts-page .sa-provider-action button {
        width: 100%;
    }

    body.sa-accounts-page .sa-provider-meta {
        flex-direction: column;
        gap: 4px;
    }
}

.sa-recovery-warning {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #8a6d2f;
    border-radius: 7px;
    background: #3b3422;
    color: #eee2b5;
}

.sa-recovery-warning strong {
    display: block;
    margin-bottom: 7px;
    color: #fff0b7;
    font-size: 15px;
}

.sa-recovery-warning > span {
    display: block;
    color: #d4c798;
    font-size: 13px;
    line-height: 1.5;
}

.sa-recovery-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 14px;
    font-size: 13px;
}

.sa-check-ok,
.sa-check-no {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    border-radius: 50%;
    font-weight: bold;
}

.sa-check-ok {
    background: #2f5e35;
    color: #a9efb1;
}

.sa-check-no {
    background: #683838;
    color: #ffc0c0;
}

.sa-recovery-button {
    margin-top: 15px;
}

/* =========================================================
   RECOVERY PASSWORD FORM
   ========================================================= */

body.sa-accounts-page .sa-form-group {
    max-width: 620px;
    margin-bottom: 18px;
}

body.sa-accounts-page .sa-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f1f1f1;
    font-size: 14px;
    font-weight: bold;
}

body.sa-accounts-page .sa-form-input {
    width: 100%;
    height: 48px;
    display: block;
    padding: 0 14px;
    border: 1px solid #535a60;
    border-radius: 7px;
    outline: none;
    background: #1c2024;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 48px;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

body.sa-accounts-page .sa-form-input:hover {
    border-color: #697279;
    background: #20252a;
}

body.sa-accounts-page .sa-form-input:focus {
    border-color: #5b9f1b;
    background: #20252a;
    box-shadow: 0 0 0 3px rgba(91, 159, 27, 0.18);
}

body.sa-accounts-page .sa-form-input:-webkit-autofill,
body.sa-accounts-page .sa-form-input:-webkit-autofill:hover,
body.sa-accounts-page .sa-form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #1c2024 inset;
    transition: background-color 9999s ease-in-out 0s;
}

body.sa-accounts-page .sa-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

body.sa-accounts-page .sa-form-actions .sa-button {
    min-width: 190px;
    min-height: 46px;
}

body.sa-accounts-page .sa-form-actions .sa-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 4px;
}

body.sa-accounts-page .sa-alert-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #934646;
    border-radius: 7px;
    background: #4c2929;
    color: #ffd1d1;
}

body.sa-accounts-page .sa-alert-error strong {
    display: block;
    margin-bottom: 7px;
}

body.sa-accounts-page .sa-alert-error ul {
    margin: 0;
    padding-left: 20px;
}

body.sa-accounts-page .sa-alert-error li {
    margin: 4px 0;
}

@media (max-width: 700px) {
    body.sa-accounts-page .sa-form-group {
        max-width: none;
    }

    body.sa-accounts-page .sa-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.sa-accounts-page .sa-form-actions .sa-button,
    body.sa-accounts-page .sa-form-actions .sa-back-link {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* =========================================================
   ANTICHAT — FAST LOGIN / REGISTRATION
   ========================================================= */

.ac-login-primary {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #42494f;
    border-radius: 8px;
    background: #24282c;
    text-align: center;
}

.ac-login-primary-title {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
}

.ac-login-primary-text {
    margin-bottom: 14px;
    color: #aeb5bb;
    font-size: 13px;
    line-height: 1.45;
}

.ac-login-form-caption {
    margin: 18px 0 13px;
    color: #aeb5bb;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ac-register-fast {
    max-width: 720px;
    margin: 0 auto 18px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #444b51;
    border-radius: 9px;
    background: #24282c;
    text-align: center;
}

.ac-register-fast-title {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

.ac-register-fast-text {
    max-width: 560px;
    margin: 0 auto 16px;
    color: #aeb5bb;
    font-size: 13px;
    line-height: 1.5;
}

.ac-register-fast-button {
    max-width: 420px;
    margin: 0 auto;
}

.ac-register-fast-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: #8f969c;
    font-size: 12px;
}

.ac-register-fast-divider::before,
.ac-register-fast-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #454c52;
}

@media (max-width: 600px) {
    .ac-register-fast {
        padding: 16px;
    }

    .ac-register-fast-title {
        font-size: 18px;
    }
}

/* =========================================================
   GOOGLE BUTTON + SOCIAL STACK
   ========================================================= */

.ac-login-social-stack,
.ac-register-social-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-social-button-google {
    border-color: #c8ccd0;
    background: #ffffff;
    color: #242629 !important;
}

.ac-social-button-google:hover {
    border-color: #ffffff;
    background: #f3f4f5;
    color: #151719 !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.ac-social-button-google:active {
    background: #e8eaed;
}

.ac-google-icon {
    padding: 1px;
    border-radius: 50%;
    background: #ffffff;
}

.ac-register-social-stack {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.ac-register-social-stack .ac-register-fast-button {
    max-width: none;
    margin: 0;
}

@media (max-width: 600px) {
    .ac-login-social-stack,
    .ac-register-social-stack {
        gap: 9px;
    }

    .ac-social-button {
        min-height: 50px;
        padding-left: 13px;
        padding-right: 13px;
    }
}


/* =========================================================
   SOCIALAUTH LOGIN PAGE + GITHUB
   ========================================================= */

body.sa-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 30px;
    background:
        radial-gradient(circle at 18% 12%, rgba(51, 102, 0, 0.18), transparent 34%),
        linear-gradient(180deg, #202328 0%, #181b1f 100%);
}

body.sa-login-page .sa-login-page-wrap {
    max-width: 760px;
}

body.sa-login-page .sa-login-card {
    max-width: 720px;
    margin: 0 auto;
}

body.sa-login-page .sa-login-note {
    margin-bottom: 22px;
}

body.sa-login-page .sa-login-control {
    display: flex;
    justify-content: center;
    padding: 24px;
    border: 1px solid #444b51;
    border-radius: 8px;
    background: #22262a;
}

body.sa-login-page .sa-login-control .sa-widget {
    width: 100%;
    max-width: 430px;
    display: flex;
    justify-content: center;
}

body.sa-login-page .sa-login-control .sa-button {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
}

body.sa-login-page .sa-login-cancel {
    margin-top: 20px;
    text-align: center;
}

body.sa-login-page .sa-login-provider-icon {
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: bold;
}

body.sa-login-page .sa-login-provider-telegram {
    background: #229ed9;
}

body.sa-login-page .sa-login-provider-google {
    background: #ffffff;
    color: #2d3135;
}

body.sa-login-page .sa-login-provider-github {
    background: #111418;
}

body.sa-login-page .sa-login-provider-discord {
    background: #5865f2;
}

body.sa-accounts-page .sa-provider-logo-github {
    background: #111418;
    color: #ffffff;
}

body.sa-accounts-page .sa-provider-logo-github svg {
    width: 29px;
    height: 29px;
}

@media (max-width: 700px) {
    body.sa-login-page {
        align-items: flex-start;
        padding: 14px 10px;
    }

    body.sa-login-page .sa-login-control {
        padding: 18px 14px;
    }
}