/* main.css - SwiftCore Dark Fintech UI */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: #0a0a0a;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    overflow: hidden;
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(24, 24, 27, 0.3);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 117, 255, 0.3);
    border-radius: 50px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 117, 255, 0.5);
}

/* ===== GLASS ===== */
.glass {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

/* ===== TEXT ===== */
.text-gradient {
    background: linear-gradient(135deg, #3B75FF, #4F46E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text-muted {
    color: #727278;
}

/* ===== LINKS ===== */
a {
    color: #3B75FF;
    text-decoration: none;
}

a:hover {
    color: #4F46E5;
}

/* ===== BUTTONS ===== */
.btn-primary {
    height: 52px;
    padding: 10px 24px;
    background: #3B75FF;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #4F46E5;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    height: 52px;
    padding: 10px 24px;
    background: #18181B;
    border: 1px solid #3B75FF;
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(59, 117, 255, 0.1);
    border-color: #4F46E5;
}

.btn-sm {
    height: 34px;
    padding: 6px 16px;
    font-size: 12px;
}

.btn-xs {
    height: 28px;
    padding: 4px 12px;
    font-size: 10px;
}

/* ===== INPUTS ===== */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: #18181B;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3B75FF;
    box-shadow: 0 0 0 3px rgba(59, 117, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #727278;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23727278' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: #18181B;
    color: #FFFFFF;
}

select optgroup {
    color: #727278;
}

textarea {
    height: auto;
    min-height: 100px;
    padding: 16px;
    resize: vertical;
}

/* ===== CHECKBOX ===== */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    background: #18181B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

input[type="checkbox"]:checked {
    background: #3B75FF;
    border-color: #3B75FF;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

input[type="checkbox"]:hover {
    border-color: #3B75FF;
}

/* ===== SWITCH ===== */
.online-switch {
    width: 45px;
    height: 26px;
    padding: 3px;
    background: rgba(52, 52, 53, 0.3);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0;
    color: transparent;
}

.online-switch::after {
    content: "";
    width: 20px;
    height: 20px;
    background: #464646;
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
    display: block;
}

.online-switch[data-online="1"] {
    background: rgba(59, 117, 255, 0.3);
}

.online-switch[data-online="1"]::after {
    transform: translateX(19px);
    background: #3B75FF;
}

.switch-dot {
    display: none;
}

/* ===== HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 62px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    border-radius: 0;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.logo-text .accent {
    color: #3B75FF;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-balance {
    text-align: right;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 16px;
}

.header-balance p {
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
    margin: 0;
}

.header-balance p span {
    font-size: 14px;
    color: #727278;
}

.header-balance span {
    font-size: 11px;
    color: #727278;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #3B75FF;
    object-fit: cover;
    flex-shrink: 0;
}

.header-email {
    font-size: 13px;
    opacity: 0.7;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-select-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.lang-select-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== SIDEBAR ===== */
.app-sidebar {
    position: fixed;
    top: 62px;
    left: 0;
    width: 200px;
    height: calc(100% - 62px);
    padding: 40px 20px 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-radius: 0;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
}

.app-sidebar ul {
    list-style: none;
}

.app-sidebar a,
.app-sidebar .nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.app-sidebar a:hover,
.app-sidebar .nav-toggle:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
}

.app-sidebar a:hover svg,
.app-sidebar .nav-toggle:hover svg {
    color: #4F46E5;
}

.app-sidebar a.active,
.app-sidebar .nav-toggle.active {
    color: #3B75FF;
}

.app-sidebar a.active svg,
.app-sidebar .nav-toggle.active svg {
    color: #3B75FF;
}

.app-sidebar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #727278;
    transition: color 0.2s ease;
}

.app-sidebar a:hover svg,
.app-sidebar .nav-toggle:hover svg,
.app-sidebar a.active svg,
.app-sidebar .nav-toggle.active svg {
    color: #3B75FF;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-group-title {
    font-size: 12px;
    color: #727278;
    font-weight: 400;
    padding-left: 12px;
}

.nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-main {
    margin-bottom: 4px;
}

.nav-main li a {
    font-weight: 500;
}

.nav-bottom {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.nav-bottom ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submenu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    padding-left: 28px;
}

.submenu.open {
    max-height: 200px;
    opacity: 1;
}

.submenu li a {
    padding: 6px 12px;
    font-size: 12px;
    color: #727278;
}

.submenu li a:hover {
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.08);
}

.submenu li.active a {
    color: #3B75FF;
}

.arrow-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 10px;
    color: #727278;
}

.arrow-icon.rotated {
    transform: rotate(90deg);
}

.settings-switch-container .online-switch.custom-switch {
    margin-left: 40px;
    margin-right: 40px;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    display: flex;
    padding-top: 62px;
}

.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 30px 24px 24px 24px;
    min-height: calc(100vh - 62px);
    overflow-y: auto;
    height: calc(100vh - 62px);
}

/* ===== H2 ===== */
.main-content h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 24px;
    color: #FFFFFF;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 16px;
    z-index: 101;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #3B75FF;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

/* ===== TOAST / УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 10px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.notification.success {
    background: #22C55E;
    color: #FFFFFF;
}

.notification.error {
    background: #E54646;
    color: #FFFFFF;
}

.notification.info {
    background: #3B75FF;
    color: #FFFFFF;
}

.notification.warning {
    background: #FFD200;
    color: #1A1A1A;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

.notification.removing {
    animation: slideOutRight 0.3s ease forwards;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
    display: flex !important;
}

.modal {
    max-width: 520px;
    width: 100%;
    padding: 28px 30px 30px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #727278;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.modal-close:hover {
    border-color: #E54646;
    color: #E54646;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .form-group label {
    display: block;
    color: #727278;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #18181B;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    border-color: #3B75FF;
    box-shadow: 0 0 0 3px rgba(59, 117, 255, 0.12);
}

.modal-body .form-group input::placeholder,
.modal-body .form-group textarea::placeholder {
    color: #727278;
}

.modal-body .form-group textarea {
    resize: vertical;
    min-height: 80px;
    height: auto;
}

.modal-body .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23727278' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.modal-body .form-group select option {
    background: #18181B;
    color: #FFFFFF;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.modal-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.modal-confirm {
    background: #3B75FF;
    border: none;
    color: #FFFFFF;
}

.modal-confirm:hover {
    background: #4F46E5;
    transform: translateY(-1px);
}

.modal-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Scroll */
.modal::-webkit-scrollbar {
    width: 4px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(24, 24, 27, 0.3);
    border-radius: 50px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(59, 117, 255, 0.3);
    border-radius: 50px;
}

/* Responsive Modals */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        padding: 20px 18px 24px;
        border-radius: 14px 14px 0 0;
        max-height: 85vh;
    }

    .modal-header h3 {
        font-size: 17px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }

    .modal-actions button {
        padding: 14px;
        font-size: 15px;
    }

    .modal-body .form-group input,
    .modal-body .form-group select,
    .modal-body .form-group textarea {
        font-size: 16px;
        padding: 12px 14px;
    }
}

/* ===== USDT RATE WIDGET ===== */
#usdt-rate-widget {
    margin-left: 0;
    font-size: 14px;
    background: rgba(59, 117, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    color: #3B75FF;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    #usdt-rate-widget {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    #usdt-rate-widget {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 40px;
        margin-left: 0;
    }
}

/* ===== SWITCH WRAPPER ===== */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.switch-label {
    font-size: 12px;
    color: #727278;
    font-weight: 400;
    white-space: nowrap;
}

/* ===== SWITCH ===== */
.online-switch {
    width: 45px;
    height: 26px;
    padding: 3px;
    background: rgba(52, 52, 53, 0.3);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Для хедера - используем ::after */
.online-switch::after {
    content: "";
    width: 20px;
    height: 20px;
    background: #464646;
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
    display: block;
}

.online-switch[data-online="1"] {
    background: rgba(59, 117, 255, 0.3);
}

.online-switch[data-online="1"]::after {
    transform: translateX(19px);
    background: #3B75FF;
}

/* Для таблиц (терминалы, реквизиты) - отключаем ::after, используем div */
.online-switch.custom-switch::after {
    display: none;
}

.online-switch.custom-switch {
    width: 40px;
    height: 22px;
    padding: 2px;
    background: rgba(52, 52, 53, 0.5);
}

.online-switch.custom-switch div {
    width: 18px;
    height: 18px;
    background: #464646;
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.online-switch.custom-switch[data-online="0"] {
    background: rgba(59, 117, 255, 0.3);
}

.online-switch.custom-switch[data-online="0"] div {
    transform: translateX(18px);
    background: #3B75FF;
}

.online-switch.custom-switch[data-online="1"] {
    background: rgba(52, 52, 53, 0.5);
}

.online-switch.custom-switch[data-online="1"] div {
    transform: translateX(0);
    background: #464646;
}

.switch-dot {
    display: none;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .switch-wrapper {
        gap: 4px;
    }
    
    .switch-label {
        font-size: 10px;
    }
    
    .online-switch {
        width: 40px;
        height: 24px;
        padding: 2px;
    }
    
    .online-switch::after {
        width: 18px;
        height: 18px;
    }
    
    .online-switch[data-online="1"]::after {
        transform: translateX(16px);
    }
}

@media (max-width: 480px) {
    .switch-label {
        font-size: 9px;
    }
    
    .online-switch {
        width: 36px;
        height: 22px;
        padding: 2px;
    }
    
    .online-switch::after {
        width: 16px;
        height: 16px;
    }
    
    .online-switch[data-online="1"]::after {
        transform: translateX(14px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .app-header {
        padding: 0 15px;
        height: 58px;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        padding: 70px 20px 20px;
        z-index: 99;
        background: #1A1A2E;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
        border-right: none;
    }

    .app-sidebar.open {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 15px 90px 15px;
        height: calc(100vh - 58px);
    }

    .main-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-balance p {
        font-size: 16px;
    }

    .header-balance p span {
        font-size: 12px;
    }

    .header-balance span {
        font-size: 10px;
    }

    .lang-select-btn span,
    .header-email,
    .header-avatar {
        display: none;
    }

    .online-switch {
        width: 40px;
        height: 24px;
    }

    .online-switch::after {
        width: 18px;
        height: 18px;
    }

    .online-switch[data-online="1"]::after {
        transform: translateX(16px);
    }

    .logo-text {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0 10px;
    }

    .header-balance p {
        font-size: 14px;
    }

    .header-balance {
        padding-left: 8px;
    }

    .online-switch {
        width: 36px;
        height: 22px;
    }

    .online-switch::after {
        width: 16px;
        height: 16px;
    }

    .online-switch[data-online="1"]::after {
        transform: translateX(14px);
    }
}