/* ===== BASE AUTH (kept for compat) ===== */
.css-auth-main {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    position: relative;
    width: 100%;
    padding: 32px;
}
.css-9uezfc {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: rgb(25, 32, 51);
    box-shadow: rgba(0, 0, 0, 0.01) 0px 32px 19px, rgba(0, 0, 0, 0.02) 0px 14px 14px, rgba(0, 0, 0, 0.02) 0px 4px 8px, rgba(0, 0, 0, 0.02) 0px 0px 0px;
    position: relative;
    width: 382px;
    padding: 32px;
}
.css-almxzv {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(37, 46, 71);
    width: 44px;
    height: 44px;
    border-radius: 100px;
}
.css-1qb90e6 {
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 8px;
    color: var(--main-color-hight);
}
.css-1p66bll {
    margin-bottom: 0px;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: var(--main-color-medium);
}
.css-dvxtzn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.css-1u3drzn {
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    color: rgb(160, 174, 192);
    margin-bottom: 0px;
}
.css-1vx4nlb {
    cursor: pointer;
    text-decoration: none;
    outline: transparent solid 2px;
    outline-offset: 2px;
    color: #e2c159ad !important;
}
.css-1pkuyyw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}
.css-1wl1iil {
    max-width: 200px;
    padding: 9px;
    width: auto;
    height: auto;
}
@media (max-width: 480px) {
    .css-1wl1iil {
        max-width: 140px;
    }
}
.css-padded {
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== FAIR PAGE ===== */
.fair-page {
    height: 100%;
    width: 100%;
}
.fair-page .mainInfo {
    grid-gap: 10px;
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
}
.fair-page .mainInfo .content {
    display: flex;
    border-radius: 8px;
    background: var(--main-background);
    color: var(--main-color-hight);
    font-weight: bold;
    justify-content: center;
    user-select: none;
    padding: 13px;
}
.fair-page .mainInfo .content .fairness {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.fair-page .mainInfo .content .fairness h3 {
    color: var(--main-color-medium);
    margin-bottom: 0px;
    font-size: 16px;
}
.fair-page .mainInfo .content .fairness .status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 10px;
    transition: color .15s ease-out, background-color .15s ease-out;
    overflow: hidden;
    max-width: 100%;
    background-color: rgba(3, 209, 105, .15);
    color: #00d169;
    font-size: 12px;
    gap: 5px;
    font-weight: normal;
}

/* ===== MODAL BASE ===== */
.modal-content {
    background-color: var(--main-background2) !important;
    border: none !important;
    border-radius: 10px !important;
}
.modal-footer {
    border-top: 1px solid #dee2e605 !important;
}
.modal-header {
    border-bottom: 1px solid #dee2e605 !important;
}
.modal {
    backdrop-filter: blur(2px);
}

/* ===== CLOSE BTN ===== */
.closemodalBtn {
    width: 35px;
    height: 35px;
    border: none;
    outline: none;
    background: var(--main-background);
    position: absolute;
    right: -10;
    top: -10;
    border-radius: 100px;
    padding: 7px;
    box-shadow: 0px 0px 10px #191c23;
    z-index: 20;
    transition: background 0.2s;
}
.closemodalBtn img {
    width: 100%;
    height: 100%;
    filter: invert(1);
    opacity: 0.2;
}
.closemodalBtn:hover img {
    filter: invert(1);
    opacity: 0.5;
}
.closemodalBtn:hover {
    background: #282e3b;
}

/* ===== FORM INPUT (legacy) ===== */
.form-input {
    margin-bottom: 12px;
}
.form-input input {
    width: 100%;
    padding: 14px 16px;
    background: rgb(18, 23, 40);
    border: 1px solid rgb(40, 48, 70);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: .2s;
    box-sizing: border-box;
}
.form-input input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(225, 163, 55, 0.15);
}
.form-input input::placeholder {
    color: #6c819882;
}

/* ===== TG BTN ===== */
.csstgbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #1e96c8, #2aabee);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.csstgbtn:hover {
    opacity: 0.9;
    color: #fff;
    box-shadow: 0 0 15px rgba(42, 171, 238, 0.3);
}

/* ====================================================
   AUTH MODAL — PREMIUM DESIGN
   ==================================================== */

.totalx-auth-modal {
    max-width: 840px !important;
}

.tx-auth-wrapper {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: #10141f;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(253, 186, 56, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    min-height: 520px;
}

/* ===== BANNER ===== */
.tx-auth-banner {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    background: #0a0d14;
}

.tx-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tx-banner-desktop {
    display: block;
}

.tx-banner-mobile {
    display: none;
}

.tx-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253, 186, 56, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== AUTH CARD ===== */
.css-auth-card {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #161c2e 0%, #12172a 100%);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04), inset 0 0 60px rgba(253, 186, 56, 0.03);
    position: relative;
    width: 100%;
    padding: 32px 36px 28px;
    margin: 0 auto;
    flex: 1;
}

/* ===== LOGO ===== */
.tx-auth-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.tx-auth-logo-wrap::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fdba38, transparent);
    border-radius: 2px;
}

.css-1wl1iil {
    max-width: 180px;
    padding: 6px;
    filter: drop-shadow(0 0 20px rgba(253, 186, 56, 0.15));
}

/* ===== AUTH TITLE (replaces tabs) ===== */
.tx-auth-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    margin: 0 0 22px;
    padding: 0;
    line-height: 1.2;
    position: relative;
    animation: txTitleIn 0.3s ease;
}

.tx-auth-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    margin-top: 8px;
    background: linear-gradient(90deg, #fdba38, transparent);
}

@keyframes txTitleIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER SWITCH BAR ===== */
.tx-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 22px -36px -28px;
    padding: 16px 20px;
    background: #0a0d14;
    border-top: 1px solid rgba(253, 186, 56, 0.12);
    font-size: 14px;
    color: #8a94a6;
    flex-wrap: wrap;
    text-align: center;
}

.tx-auth-footer a {
    color: #fdba38;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.tx-auth-footer a:hover {
    color: #ffd166;
    text-shadow: 0 0 12px rgba(253, 186, 56, 0.4);
}

/* ===== TABS (legacy, unused) ===== */
.css-auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.css-auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7a90;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    user-select: none;
}
.css-auth-tab.active {
    background: linear-gradient(135deg, #fdba38, #e6a020);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(253, 186, 56, 0.3);
}
.css-auth-tab:hover:not(.active) {
    color: #c0c8d4;
    background: rgba(255, 255, 255, 0.06);
}

/* ===== INPUT GROUP ===== */
.tx-input-group {
    position: relative;
    width: 100%;
}

.tx-input-group .tx-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5568;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}

.tx-input-group input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tx-input-group input:focus {
    border-color: rgba(253, 186, 56, 0.5);
    box-shadow: 0 0 0 3px rgba(253, 186, 56, 0.08), 0 0 20px rgba(253, 186, 56, 0.05);
    background: rgba(0, 0, 0, 0.35);
}

.tx-input-group:focus-within .tx-input-icon {
    color: #fdba38;
}

.tx-input-group input::placeholder {
    color: #4e5d73;
}

/* ===== EYE BTN ===== */
.tx-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    z-index: 2;
}

.tx-eye-btn:hover {
    color: #fdba38;
    background: rgba(253, 186, 56, 0.1);
}

/* ===== AUTH BUTTON ===== */
.tx-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 6px;
    background: linear-gradient(135deg, #fdba38 0%, #e8a020 50%, #fdba38 100%);
    background-size: 200% 100%;
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.tx-auth-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 6px 25px rgba(253, 186, 56, 0.35);
    transform: translateY(-1px);
}

.tx-auth-btn:hover::before {
    left: 100%;
}

.tx-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(253, 186, 56, 0.3);
}

.tx-auth-btn:disabled {
    background: #2a3045;
    color: #4e5d73;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    letter-spacing: 0;
}

.tx-auth-btn:disabled::before {
    display: none;
}

.tx-auth-btn i {
    font-size: 13px;
    transition: transform 0.25s;
}

.tx-auth-btn:hover i {
    transform: translateX(4px);
}

/* ===== AGE CHECKBOX ===== */
.tx-age-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7a90;
    user-select: none;
    transition: color 0.2s;
}

.tx-age-label:hover {
    color: #9aa8b8;
}

.tx-age-label input[type="checkbox"] {
    display: none;
}

.tx-age-check {
    width: 18px;
    height: 18px;
    border: 2px solid #3a4560;
    border-radius: 5px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s;
}

.tx-age-label input:checked + .tx-age-check {
    background: linear-gradient(135deg, #fdba38, #e6a020);
    border-color: #fdba38;
}

.tx-age-label input:checked + .tx-age-check::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===== DIVIDER ===== */
.tx-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px;
}

.tx-auth-divider::before,
.tx-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.tx-auth-divider span {
    color: #4e5d73;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== GOOGLE BTN ===== */
.tx-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #c0c8d4;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tx-google-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(234, 67, 53, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.tx-google-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
    transform: translateY(-1px);
}

.tx-google-btn:hover::before {
    opacity: 1;
}

.tx-google-btn:active {
    transform: translateY(0);
}

.tx-google-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tx-google-btn span {
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .totalx-auth-modal {
        max-width: 420px !important;
        margin: 20px auto !important;
    }

    .tx-auth-wrapper {
        flex-direction: column;
        min-height: auto;
        border-radius: 16px;
    }

    .tx-auth-banner {
        flex: 0 0 auto;
        height: 200px;
        overflow: hidden;
    }

    .tx-banner-img {
        object-fit: cover;
        object-position: center top;
        height: 200px;
    }

    .tx-banner-desktop {
        display: none !important;
    }

    .tx-banner-mobile {
        display: block !important;
    }

    .css-auth-card {
        padding: 24px 24px 20px;
    }

    .tx-auth-title {
        font-size: 21px;
        margin-bottom: 18px;
    }

    .tx-auth-footer {
        margin: 18px -24px -20px;
        padding: 14px 16px;
        font-size: 13px;
    }

    .css-auth-tabs {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .totalx-auth-modal {
        max-width: 92% !important;
        margin: 30px auto !important;
    }

    .tx-auth-wrapper {
        border-radius: 16px;
    }

    .tx-auth-banner {
        height: 180px;
    }

    .tx-banner-img {
        height: 180px;
    }

    .css-auth-card {
        padding: 20px 18px 16px;
    }

    .tx-auth-title {
        font-size: 19px;
        margin-bottom: 16px;
    }

    .tx-auth-footer {
        margin: 16px -18px -16px;
        padding: 13px 12px;
        font-size: 13px;
        gap: 4px;
    }

    .css-1wl1iil {
        max-width: 140px;
    }

    .tx-auth-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tx-input-group input {
        padding: 12px 40px 12px 40px;
        font-size: 14px;
    }

    .tx-input-group .tx-input-icon {
        left: 14px;
        font-size: 13px;
    }

    .tx-google-btn {
        padding: 11px 14px;
        font-size: 13px;
    }
}
