@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

@font-face {
    font-family: "KazNet";
    src: url("/home/assets/assets/fonts/KazNet.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "KazakhSoftAsilya";
    src: url("/home/assets/assets/fonts/KazakhSoftAsilya.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "KazakhSoft Asilya";
    src: url("/home/assets/assets/fonts/KazakhSoftAsilya.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "NotoSans";
    src: url("/home/assets/assets/fonts/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "NotoSans";
    src: url("/home/assets/assets/fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "NotoSerif";
    src: url("/home/assets/assets/fonts/NotoSerif-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "NotoSerif";
    src: url("/home/assets/assets/fonts/NotoSerif-Italic.ttf") format("truetype");
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "KwabolTorTom";
    src: url("/home/assets/assets/fonts/KWABOL Tor Tom.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "ukij chiwer kesme";
    src: url("/home/assets/assets/fonts/UKIJChiK.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "KZ Unbounded Regular";
    src: url("/home/assets/assets/fonts/KZ_Unbounded-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "DessertScriptW05-Regular";
    src: url("/home/assets/assets/fonts/Dessert Script W05 Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Dessert Script";
    src: url("/home/assets/assets/fonts/DessertScript.otf") format("opentype");
    font-display: swap;
}

:root {
    --qz-brand-1: #6f6ef1;
    --qz-brand-2: #2f8cf6;
    --qz-brand-1-rgb: 111, 110, 241;
    --qz-brand-2-rgb: 47, 140, 246;
    --qz-bg: #edf3ff;
    --qz-bg-soft: #e5ecfa;
    --qz-surface: #ffffff;
    --qz-surface-soft: #f8fbff;
    --qz-border: #d7e2f2;
    --qz-text: #14213f;
    --qz-muted: #627192;
    --qz-shadow-soft: 0 12px 24px rgba(20, 33, 63, 0.08);
    --qz-shadow: 0 24px 48px rgba(20, 33, 63, 0.12);
    --qz-radius: 18px;
}

.converter-shell {
    min-height: 100vh;
    display: flex;
    color: var(--qz-text);
    background: linear-gradient(180deg, var(--qz-bg) 0%, var(--qz-bg-soft) 100%);
    font-family: "Sora", "KazNet", "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
}

.converter-shell::before,
.converter-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.converter-shell::before {
    inset: -20% auto auto -15%;
    width: 48rem;
    height: 48rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(var(--qz-brand-1-rgb), 0.26) 0%, rgba(var(--qz-brand-1-rgb), 0) 70%);
}

.converter-shell::after {
    inset: auto -14% -20% auto;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(var(--qz-brand-2-rgb), 0.23) 0%, rgba(var(--qz-brand-2-rgb), 0) 68%);
}

.converter-sidebar,
.converter-content {
    position: relative;
    z-index: 1;
}

.converter-sidebar {
    width: 294px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 14px 20px;
    color: #f7faff;
    background: linear-gradient(155deg, #7b6ff6 0%, #6b70f4 30%, #5880f4 68%, #2f84f6 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: var(--qz-shadow);
    animation: sidebar-enter 420ms ease-out both;
}

.converter-sidebar::before,
.converter-sidebar::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.converter-sidebar::before {
    width: 220px;
    height: 220px;
    top: -70px;
    left: -80px;
    background: radial-gradient(circle at center, rgba(152, 178, 255, 0.36) 0%, rgba(152, 178, 255, 0) 74%);
}

.converter-sidebar::after {
    width: 190px;
    height: 190px;
    bottom: -60px;
    right: -80px;
    background: radial-gradient(circle at center, rgba(112, 188, 255, 0.35) 0%, rgba(112, 188, 255, 0) 74%);
}

.converter-sidebar .sidebar-profile-card {
    position: relative;
    overflow: hidden;
    margin: 4px 2px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(216, 225, 240, 0.9);
    background: #ffffff;
    text-decoration: none;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(9, 18, 40, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    animation: fade-up 460ms ease-out both;
}

.converter-sidebar .sidebar-profile-card:hover {
    border-color: #d8e0f0;
    box-shadow: 0 20px 36px rgba(9, 18, 40, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
}

.converter-sidebar a.sidebar-profile-card,
.converter-sidebar a.sidebar-profile-card:link,
.converter-sidebar a.sidebar-profile-card:visited,
.converter-sidebar a.sidebar-profile-card:hover,
.converter-sidebar a.sidebar-profile-card:active {
    color: #1c2541;
    text-decoration: none;
}

.profile-card-auth {
    background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
}

.profile-card-guest {
    background: linear-gradient(160deg, #ffffff 0%, #f5f8ff 100%);
}

.profile-card-guest::before {
    content: "";
    position: absolute;
    top: -32px;
    right: -36px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(var(--qz-brand-2-rgb), 0.2) 0%, rgba(var(--qz-brand-2-rgb), 0) 74%);
    pointer-events: none;
}

.profile-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #ffffff;
    border: 2px solid #e2e8f6;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

.profile-avatar.avatar-online {
    background: linear-gradient(140deg, #4f5bd7 0%, #2f84f6 100%);
}

.profile-avatar.avatar-offline {
    background: linear-gradient(140deg, #8b98b6 0%, #6f7f9f 100%);
}

.profile-title-wrap {
    min-width: 0;
}

.profile-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #1f2433;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-subtitle {
    margin: 4px 0 0;
    font-size: 0.74rem;
    font-weight: 500;
    color: #808ca3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 8px 0;
    border-radius: 12px;
    border: 1px solid #e9edf6;
    background: #ffffff;
}

.profile-metric {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 0 4px;
}

.profile-metric:not(:last-child) {
    border-right: 1px solid #eef2f8;
}

.profile-metric i {
    font-size: 0.7rem;
    color: #0f172a;
    margin-bottom: 0;
}

.profile-metric span {
    font-size: 0.6rem;
    color: #8a95ab;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.profile-metric strong {
    font-size: 0.78rem;
    color: #2b3447;
    font-weight: 700;
    white-space: nowrap;
}

.profile-card-btn {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.profile-membership-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid #e5ecf8;
    background: #f8fbff;
}

.profile-membership-lines p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    color: #60708f;
}

.profile-membership-lines p span {
    white-space: nowrap;
}

.profile-membership-lines p strong {
    color: #1f2f4d;
    font-size: 0.74rem;
    text-align: right;
}

.profile-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    border-radius: 11px;
    border: 1px solid #d7e4fa;
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    color: #315489;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-manage-link:hover {
    text-decoration: none;
    color: #24487f;
    border-color: #bfd4f6;
    background: linear-gradient(180deg, #f2f7ff 0%, #e7f0ff 100%);
}

.profile-logout-btn {
    border: 1px solid #232633;
    background: linear-gradient(180deg, #2a2e39 0%, #1f2430 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-logout-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.login-card-btn {
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, #2a2e39 0%, #1f2430 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-card-btn i {
    font-size: 0.9rem;
}

.login-card-btn span {
    color: inherit;
}

.profile-card-guest:hover .login-card-btn {
    filter: brightness(1.05);
}

.profile-card-guest .profile-avatar {
    border-radius: 50%;
}

.profile-card-guest .profile-title {
    color: #1f2433;
}

.profile-card-guest .profile-subtitle {
    color: #808ca3;
}

.profile-card-guest .profile-metric i {
    color: #0f172a;
}

.profile-card-guest .profile-metric strong {
    color: #2b3447;
}

.profile-card-auth .profile-title {
    text-transform: capitalize;
}

.profile-card-auth .profile-subtitle {
    color: #66758f;
}

.profile-card-auth .profile-metric strong {
    color: #2b3447;
}

.profile-card-auth .profile-metric:first-child strong {
    color: #229253;
}

.sidebar-logo-panel {
    margin: 2px;
    padding: 16px 12px;
    border-radius: var(--qz-radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    display: grid;
    place-items: center;
    animation: fade-up 520ms ease-out both;
}

.sidebar-logo {
    width: 204px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(20, 33, 63, 0.22));
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 2px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid transparent;
    text-decoration: none;
    color: rgba(247, 250, 255, 0.86);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: fade-up 600ms ease-out both;
}

.sidebar-nav .nav-item:nth-child(1) {
    animation-delay: 60ms;
}

.sidebar-nav .nav-item:nth-child(2) {
    animation-delay: 120ms;
}

.sidebar-nav .nav-item:nth-child(3) {
    animation-delay: 180ms;
}

.sidebar-nav .nav-item:nth-child(4) {
    animation-delay: 240ms;
}

.sidebar-nav .nav-item i {
    width: 18px;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-nav .nav-item:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateX(1px);
}

.sidebar-nav .nav-item.active {
    color: #2d52d7;
    border-color: rgba(255, 255, 255, 0.56);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(18, 35, 75, 0.2);
}

.sidebar-nav .nav-item.active i {
    color: #2d52d7;
}

.converter-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.converter-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    height: 72px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(15, 33, 63, 0.08);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    margin: 0;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(95deg, var(--qz-brand-1) 0%, var(--qz-brand-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-home-link,
.brand-home-link:link,
.brand-home-link:visited {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-home-link:hover {
    text-decoration: none;
}

.brand-home-link:focus-visible {
    outline: 2px solid rgba(var(--qz-brand-1-rgb), 0.45);
    outline-offset: 4px;
    border-radius: 10px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.script-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--qz-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 12px rgba(20, 33, 63, 0.07);
    direction: ltr;
}

.script-mode-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #30486f;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.script-mode-btn:hover {
    border-color: rgba(var(--qz-brand-1-rgb), 0.3);
    background: rgba(var(--qz-brand-1-rgb), 0.12);
}

.script-mode-btn.active {
    color: #ffffff;
    border-color: rgba(var(--qz-brand-1-rgb), 0.45);
    background: linear-gradient(95deg, var(--qz-brand-1) 0%, var(--qz-brand-2) 100%);
    box-shadow: 0 8px 16px rgba(var(--qz-brand-1-rgb), 0.3);
}

.script-toggle-gap {
    width: 6px;
    height: 1px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn,
.btn-logout {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--qz-border);
    background: var(--qz-surface);
    color: #294267;
    display: grid;
    place-items: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.icon-btn:hover,
.btn-logout:hover {
    border-color: rgba(var(--qz-brand-1-rgb), 0.32);
    background: rgba(var(--qz-brand-1-rgb), 0.1);
    color: #1c3563;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-chip {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--qz-border);
    background: var(--qz-surface);
    color: #24344f;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-chip i {
    color: var(--qz-brand-2);
}

.btn-login {
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(100deg, var(--qz-brand-1) 0%, var(--qz-brand-2) 100%);
    box-shadow: 0 10px 18px rgba(var(--qz-brand-1-rgb), 0.28);
}

.btn-login:hover {
    text-decoration: none;
    color: #ffffff;
    filter: brightness(1.05);
}

.converter-main {
    padding: 24px 24px 30px;
}

html[data-script-mode="tote"] .converter-shell,
html[data-script-mode="tote"] .converter-shell button,
html[data-script-mode="tote"] .converter-shell a,
html[data-script-mode="tote"] .converter-shell p,
html[data-script-mode="tote"] .converter-shell h1,
html[data-script-mode="tote"] .converter-shell h2,
html[data-script-mode="tote"] .converter-shell h3,
html[data-script-mode="tote"] .converter-shell h4,
html[data-script-mode="tote"] .converter-shell h5,
html[data-script-mode="tote"] .converter-shell h6,
html[data-script-mode="tote"] .converter-shell span,
html[data-script-mode="tote"] .converter-shell small,
html[data-script-mode="tote"] .converter-shell div {
    font-family: "KazNet", "NotoSans", "Noto Naskh Arabic", "Segoe UI", sans-serif;
}

html[data-script-mode="tote"] .converter-shell i,
html[data-script-mode="tote"] .converter-shell .fas,
html[data-script-mode="tote"] .converter-shell .far,
html[data-script-mode="tote"] .converter-shell .fab,
html[data-script-mode="tote"] .converter-shell [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

html[data-script-mode="tote"] .script-toggle,
html[data-script-mode="tote"] .script-mode-btn,
html[data-script-mode="tote"] .brand-wrap {
    direction: ltr;
}

@keyframes sidebar-enter {
    from {
        transform: translateX(-12px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-up {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1140px) {
    .converter-sidebar {
        width: 262px;
        padding: 14px 10px 16px;
    }

    .profile-title {
        font-size: 1.05rem;
    }

    .profile-subtitle {
        font-size: 0.74rem;
    }

    .profile-metrics {
        gap: 5px;
        padding: 8px 7px;
    }

    .profile-metric span {
        font-size: 0.58rem;
    }

    .profile-metric strong {
        font-size: 0.67rem;
    }

    .sidebar-logo {
        width: 176px;
    }
}

@media (max-width: 1024px) {
    .converter-shell {
        flex-direction: column;
    }

    .converter-shell .converter-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        top: auto;
        border-radius: 0 0 26px 26px;
        padding: 14px 10px 16px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .converter-shell .sidebar-nav {
        flex-direction: column;
    }

    .sidebar-logo {
        width: 168px;
    }
}

@media (max-width: 720px) {
    .converter-shell .converter-sidebar {
        border-radius: 0 0 22px 22px;
        padding: 12px 10px 14px;
        gap: 9px;
        box-shadow: 0 14px 30px rgba(17, 35, 79, 0.25);
    }

    .converter-shell .converter-sidebar::before {
        width: 180px;
        height: 180px;
        top: -72px;
        left: -64px;
    }

    .converter-shell .converter-sidebar::after {
        width: 150px;
        height: 150px;
        bottom: -58px;
        right: -54px;
    }

    .converter-shell .converter-sidebar .sidebar-profile-card {
        border-radius: 18px;
        padding: 12px;
        margin: 0;
        gap: 10px;
        border-color: #dce7f7;
        background: linear-gradient(148deg, #ffffff 0%, #f2f7ff 100%);
        box-shadow: 0 14px 28px rgba(10, 20, 42, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.97);
    }

    .converter-shell .converter-sidebar .profile-card-auth::after {
        content: "";
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, rgba(79, 91, 215, 0.95) 0%, rgba(47, 132, 246, 0.95) 100%);
    }

    .converter-shell .profile-card-head {
        gap: 10px;
    }

    .converter-shell .profile-avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        position: relative;
    }

    .converter-shell .profile-avatar.avatar-online::after,
    .converter-shell .profile-avatar.avatar-offline::after {
        content: "";
        position: absolute;
        right: -1px;
        bottom: -1px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid #ffffff;
    }

    .converter-shell .profile-avatar.avatar-online::after {
        background: #16a34a;
    }

    .converter-shell .profile-avatar.avatar-offline::after {
        background: #94a3b8;
    }

    .converter-shell .profile-title {
        font-size: 0.98rem;
        letter-spacing: 0;
    }

    .converter-shell .profile-subtitle {
        margin-top: 2px;
        font-size: 0.69rem;
    }

    .converter-shell .profile-metrics {
        display: flex;
        gap: 6px;
        padding: 0;
        border: 0;
        background: transparent;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .converter-shell .profile-metrics::-webkit-scrollbar {
        display: none;
    }

    .converter-shell .profile-metric {
        min-width: 94px;
        padding: 8px 9px;
        border-radius: 11px;
        border: 1px solid #e6edf9;
        background: #ffffff;
        align-items: flex-start;
        text-align: left;
        gap: 2px;
    }

    .converter-shell .profile-metric:nth-child(1) {
        background: linear-gradient(180deg, #f3fcf6 0%, #eefaf3 100%);
    }

    .converter-shell .profile-metric:nth-child(2) {
        background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
    }

    .converter-shell .profile-metric:nth-child(3) {
        background: linear-gradient(180deg, #f7f5ff 0%, #f2efff 100%);
    }

    .converter-shell .profile-metric:not(:last-child) {
        border-right: 1px solid #e6edf9;
    }

    .converter-shell .profile-metric i {
        font-size: 0.65rem;
    }

    .converter-shell .profile-metric span {
        font-size: 0.54rem;
    }

    .converter-shell .profile-metric strong {
        font-size: 0.73rem;
    }

    .converter-shell .profile-card-btn {
        height: 38px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    .converter-shell .profile-membership-lines {
        padding: 8px 9px;
        gap: 4px;
    }

    .converter-shell .profile-membership-lines p {
        font-size: 0.66rem;
    }

    .converter-shell .profile-membership-lines p strong {
        font-size: 0.67rem;
    }

    .converter-shell .profile-manage-link {
        height: 34px;
        font-size: 0.74rem;
    }

    .converter-shell .sidebar-nav {
        order: 2;
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding: 2px 0 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .converter-shell .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .converter-shell .sidebar-nav .nav-item {
        flex: 0 0 auto;
        gap: 7px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .converter-shell .sidebar-nav .nav-item i {
        width: auto;
        font-size: 0.95rem;
    }

    .converter-shell .sidebar-nav .nav-item span {
        white-space: nowrap;
        line-height: 1;
        font-size: 0.8rem;
    }

    .converter-shell .sidebar-nav .nav-item.active {
        border-color: rgba(255, 255, 255, 0.7);
        background: #ffffff;
        box-shadow: 0 10px 22px rgba(13, 30, 74, 0.24);
        color: #2b4fd9;
    }

    .converter-shell .sidebar-nav .nav-item.active i {
        color: #2b4fd9;
    }

    .converter-shell .sidebar-logo-panel {
        order: 3;
        margin: 0;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .converter-shell .sidebar-logo {
        width: 132px;
    }

    .converter-topbar {
        height: 62px;
        padding: 0 10px;
    }

    .brand-wrap {
        gap: 8px;
    }

    .brand {
        font-size: 1.12rem;
    }

    .script-toggle {
        gap: 4px;
        padding: 3px;
    }

    .script-mode-btn {
        width: 31px;
        height: 31px;
        font-size: 0.95rem;
    }

    .converter-main {
        padding: 14px 10px 20px;
    }

    .user-chip span,
    .btn-login span {
        display: none;
    }

    .btn-login {
        width: 40px;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 420px) {
    .converter-shell .profile-metric {
        min-width: 86px;
        padding: 7px 8px;
    }

    .converter-shell .sidebar-nav .nav-item {
        padding: 9px 10px;
    }

    .converter-shell .sidebar-nav .nav-item span {
        font-size: 0.75rem;
    }
}
