@font-face {
    font-family: 'TrajanSansPro-Regular';
    src: url("../fonts/TrajanSansPro-Regular.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'TrajanSansPro-Semibold';
    src: url("../fonts/TrajanSansPro-Semibold.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat-Regular';
    src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}


/* ===== 🎨 Глобальные переменные ===== */
:root {
    --color-primary: #ebca69;
    --color-secondary: #e1ce87;
    --color-background: #f5f7fa;
    --color-dark: #1e1e1e;
    --color-light: #ffffff;
    --color-accent: #ff6b6b;
    --accent-bg-color: rgb(149 111 0 / 90%);
    --color-gray: gray;
    --bgc-color: rgb(48 44 76 / 90%);
    --bg-form-head: rgb(209 163 0 / 40%);
    --bg-form-table: rgb(48 46 37 / 90%);
    --bg-dark: #20232A;

    --font-accent-regular: TrajanSansPro-Regular;
    --font-accent-bold: TrajanSansPro-Semibold;
    --font-regular: Montserrat-Regular;
    --font-bold: Montserrat-SemiBold;


    /* размеры */
    --sidebar-width: 270px;
    --container-padding: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
* {
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
}
body {
    font-family: var(--font-regular), sans-serif;
}

ul, li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
p {
    margin: 0;
    color: #bebebe;
}
h3 {
    color: #fff;
}
a {
    color: #fff;
    text-decoration: none;
}
small {
    color: #bebebe;
}

/*FORM START*/
select.form-control {
    /* Убираем нативный appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Фон, граница и скругления */
    background: #292D34;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 12px;

    /* Внутренние отступы (правый — для стрелки) */
    padding: 10px 36px 10px 12px;

    /* Шрифт и цвет */
    font-size: 14px;
    line-height: 1.4;
    color: #fff;

    /* Курсор */
    cursor: pointer;

    /* Переходы для фокуса */
    transition: border-color 0.2s, box-shadow 0.2s;

    /* Кастомная стрелка через встроенное SVG */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
/* Стиль при фокусе */
select.form-control:focus {
    outline: none;
    border-color: #6ca0f6;
    box-shadow: 0 0 0 3px rgba(108, 160, 246, 0.3);
}
/* (Опционально) чуть более читаемые опции */
select.form-control option {
    padding: 8px;
    background-color: #292D34;
    color: #fff;
}
:focus-visible {
    outline: -webkit-focus-ring-color auto 0;
}
.form-control {
    font-family: var(--font-regular), sans-serif;
    box-sizing: border-box;
    background: #292D34;
    border: 1px solid rgb(255 255 255 / 10%);
    padding: 14px 20px;
    border-radius: 12px;
    width: 100%;
    color: #fff;
}
.form-control::placeholder {
    font-family: var(--font-regular), sans-serif;
    font-size: 14px;
}
.form-group {
    margin-bottom: 30px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group label {
    color: #bebebe;
    font-size: 14px;
    display: flex;
    margin-bottom: 5px;
}
::-webkit-input-placeholder {
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
::-moz-placeholder {
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
:-moz-placeholder {
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
:-ms-input-placeholder {
    color: #7b7873;
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
:focus::-webkit-input-placeholder {
    opacity: 0;
    transform: translateX(20px);
}
:focus::-moz-placeholder {
    opacity: 0;
    transform: translateX(20px);
}
:focus:-moz-placeholder {
    opacity: 0;
    transform: translateX(20px);
}
:focus:-ms-input-placeholder {
    opacity: 0;
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/*FORM END*/

h1 {
    color: #bebebe;
}
#auth-form {
    background-color: var(--bg-form-table);
    padding: 20px;
    border-radius: 12px;
}

.main-bg {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: -10;
    background-image: url("../img/ui/bg.jpg?=v2");
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}
.main-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(30 23 13 / 77%);
}
aside.sidebar {
    position: fixed;
    /* Começa abaixo da .auth_top (que agora vai de ponta a ponta por cima
       dela) em vez de ocupar o topo absoluto da página. */
    top: 72px;
    left: 0;
    z-index: 20;
    width: var(--sidebar-width);
    height: calc(100vh - 72px);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background-color: rgba(22, 15, 2, .5);
    border-right: .25rem solid #bbac8b;
    /* Sem isso, em viewports baixos o conteúdo (logo + menu) ultrapassa os
       100vh fixos e itens do fim do menu somem sem nenhum aviso visual.
       overflow-x precisa ser explícito: deixando no "visible" (padrão), o
       spec do CSS promove ele pra "auto" também (porque overflow-y != visible),
       e isso abria uma barra de rolagem horizontal indevida na página inteira. */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #6b5a3a transparent;
}
aside.sidebar::-webkit-scrollbar {
    width: 6px;
}
aside.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
aside.sidebar::-webkit-scrollbar-thumb {
    background: #6b5a3a;
    border-radius: 3px;
}
.main-content {
    margin-left: auto;
    width: calc(100% - var(--sidebar-width));
    /* top: 40px originais + 72px da .auth_top, que agora é fixed e saiu do fluxo */
    padding: 112px 40px 40px;
    height: 100%;
    min-height: 100vh;
    display: block;
    overflow: auto;
}
.main-wrap {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.auth_logo {
    text-align: center;
    /* Sem o bloco de nome/data de registro (removido — já mostrado na barra
       de cima), a logo ficava colada no seletor de servidor logo abaixo. */
    margin-bottom: 24px;
}
.auth_logo img {
    /* Logo é o único elemento no topo da sidebar (não fica ao lado de nada) —
       precisa de destaque próprio, não só caber numa faixa fina de menu.
       Sem o bloco de nome/data (removido), sobrou espaço pra ela crescer. */
    width: auto;
    height: 100px;
    max-width: none;
}
.auth_block_top {
    padding-left: 30px;
    padding-right: 20px;
    /* Mesmo padding-top do .main-content (40px), pra logo e a faixa de
       menu/botão/idioma partirem do mesmo y-offset e ficarem alinhadas. */
    padding-top: 40px;
}
.auth_top {
    /* Fixo também no desktop (antes só ficava fixo abaixo de 960px) — espelha
       o padrão já usado em auth.css para as páginas de login/registro.
       Vai de ponta a ponta da tela (por cima da sidebar, não só ao lado
       dela), igual ao padrão de referência (iCloud/sites modernos) — a
       sidebar passa a começar abaixo da barra em vez de ocupar o topo. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: 72px;
    background-color: #21232a;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

form.logout button {
    font-family: var(--font-bold), sans-serif;
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-sizing: border-box;
    color: #ff8282;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1;
    z-index: 0;
    flex-grow: 1;
    max-height: 10rem;
    cursor: pointer;
    padding: 20px 0;
    padding-left: 30px;
    font-stretch: normal;
}
form.logout button:before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background-color: rgb(255 54 54 / 10%);
    background-size: 100% 100%;
    background-position: 50%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scaleY(.6);
    transform-origin: right center;
    pointer-events: none;
}
form.logout button:hover:before {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-left {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
}
.sidebar-menu.bottom {
    padding-bottom: 30px;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-sizing: border-box;
    color: #e2dccd;
    font-family: var(--font-bold), sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    z-index: 0;
    flex-grow: 1;
    max-height: 10rem;
    cursor: pointer;
    padding: 15px 0;
    padding-left: 30px;
}
.sidebar-menu a:hover:before {
    opacity: 1;
    transform: scaleY(1);
}
.sidebar-menu a.active:before {
    opacity: 1;
    transform: scaleY(1);
}
.sidebar-menu a:before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background-color: transparent;
    background-image: url("../img/bgdecor.png");
    background-size: 100% 100%;
    background-position: 50%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scaleY(.6);
    transform-origin: right center;
    pointer-events: none;
}
.sidebar-menu a.active:after {
    opacity: 1;
    transform: scaleX(1);
}
.sidebar-menu a:after {
    display: block;
    content: "";
    background-color: transparent;
    background-image: url("../img/arrow_1.png");
    background-size: 2.25rem auto;
    background-position: 50%;
    background-repeat: no-repeat;
    width: 2.25rem;
    height: auto;
    position: absolute;
    right: -.8125rem;
    top: 0;
    bottom: 0;
    transition: all .2s;
    opacity: 0;
    transform: scaleX(0);
    filter: grayscale(0) drop-shadow(0 .25rem .75rem rgba(0, 0, 0, .46)) drop-shadow(0 0 .625rem rgba(255, 213, 44, .7));
    pointer-events: none;
}



.auth_nav_top {
    background-color: rgb(22 15 2 / 60%);
    padding: 10px 20px;
    border-radius: 12px;
}
.auth_nav_top ul {
    display: flex;
    gap: 40px;
}
.auth_top_r {
    display: flex;
    align-items: center;
    gap: 30px;
}
.auth_nav_top a {
    font-family: var(--font-accent-regular), sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 18px;
}
.auth_nav_top a:hover {
    color: var(--color-primary);
}
.auth_nav_top svg {
    width: 28px;
}


.btn-green {
    border: 0;
    cursor: pointer;
    background-color: #00d084;
    height: 42px;
    min-width: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    gap: 8px;
    color: #fff;
    font-size: 16px;
}
.btn-green:hover {
    box-shadow: 0 0 8px #00d084;
}
.btn-green svg {
    width: 24px;
}
.btn-primary {
    font-family: var(--font-accent-regular), sans-serif;
    border: 0;
    cursor: pointer;
    background-color: #6c5eff;
    height: 42px;
    min-width: 180px;
    max-width: max-content;
    padding: 0 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}
.btn-primary:hover {
    box-shadow: 0 0 8px #6c5eff;
}
.btn-primary svg {
    width: 24px;
}
.btn-primary--compact {
    height: 38px;
    min-width: 0;
    padding: 0 16px;
    width: auto;
    font-size: 13px;
    white-space: nowrap;
}
.btn-primary--compact svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.master-account-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*ACCOUNT CLUSTER — saldo + usuário unificados em um único bloco dourado,
  portado de public.css (header do site público) pra unificar a barra do
  dashboard com o mesmo padrão de identidade/saldo/dropdown.*/
.account-cluster {
    display: flex;
    align-items: center;
    height: 35px;
    border-radius: 8px;
    border: 1px solid rgba(235, 182, 134, 0.5);
    background: linear-gradient(160deg, rgba(70, 48, 18, 0.94) 0%, rgba(35, 22, 6, 0.98) 100%);
    backdrop-filter: blur(8px);
    overflow: visible;
}

.account-cluster__balance {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 12px;
}
.account-cluster__balance-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-family: var(--font-accent-bold), sans-serif;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.2s;
}
.account-cluster__balance-link:hover {
    color: #fff3d6;
}
.account-cluster__coin-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.9;
}
.account-cluster__balance-amount {
    display: inline-block;
    transition: filter 0.2s ease;
}
.account-cluster__balance-amount.is-hidden {
    filter: blur(6px);
    user-select: none;
}
.account-cluster__balance-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 2px;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-primary);
    opacity: 0.65;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.account-cluster__balance-toggle:hover {
    opacity: 1;
    background: rgba(255, 216, 130, 0.12);
}
.account-cluster__balance-toggle svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.account-cluster__divider {
    width: 1px;
    height: 18px;
    background: rgba(235, 182, 134, 0.3);
    flex-shrink: 0;
}

.account-cluster__user {
    position: relative;
    height: 100%;
}
.account-cluster__user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 10px 0 8px;
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    border-radius: 0 7px 7px 0;
    transition: background 0.2s;
}
.account-cluster__user-toggle:hover,
.account-cluster__user-toggle.is-open {
    background: rgba(255, 216, 130, 0.1);
}
.account-cluster__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #ffe6a8 0%, #c8933f 55%, #6b4a1f 100%);
    box-shadow: 0 0 0 1px rgba(235, 182, 134, 0.6);
    color: #3a2708;
    font-family: var(--font-accent-bold), sans-serif;
    font-size: 11px;
    line-height: 1;
}
.account-cluster__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-cluster__name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-primary);
    font-family: var(--font-accent-bold), sans-serif;
    font-size: 13px;
}
.account-cluster__chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.25s ease;
}
.account-cluster__user-toggle.is-open .account-cluster__chevron {
    transform: rotate(180deg);
}

.account-cluster__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    /* Sem isso, em viewports muito estreitos (≤340px) o menu podia estourar
       a borda esquerda da tela, já que ele só é ancorado pela direita. */
    max-width: calc(100vw - 24px);
    padding: 6px;
    border-radius: 10px;
    background: linear-gradient(165deg, rgba(38, 26, 14, 0.97) 0%, rgba(18, 13, 7, 0.98) 100%);
    border: 1px solid rgba(235, 182, 134, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 999999;
}
.account-cluster__menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.account-cluster__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #e8dcc4;
    font-size: 13px;
    font-family: var(--font-regular), sans-serif;
    transition: background 0.15s, color 0.15s;
}
.account-cluster__menu-item:hover {
    background: rgba(255, 216, 130, 0.09);
    color: var(--color-primary);
}
.account-cluster__menu-item--danger:hover {
    background: rgba(224, 92, 92, 0.12);
    color: #f0a3a3;
}
/* Badge colorido por trás de cada ícone — dá identidade visual própria a
   cada ação (perfil/conta/admin/sair), em vez de ícones finos monocromáticos
   todos da mesma cor dourada, difíceis de diferenciar rapidamente. */
.account-cluster__menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
}
.account-cluster__menu-icon svg {
    width: 15px;
    height: 15px;
}
.account-cluster__menu-icon--profile {
    background: rgba(235, 182, 134, 0.18);
    color: #ebb686;
}
.account-cluster__menu-icon--account {
    background: rgba(94, 158, 214, 0.18);
    color: #7ec8e3;
}
.account-cluster__menu-icon--admin {
    background: rgba(124, 58, 237, 0.18);
    color: #c084fc;
}
.account-cluster__menu-icon--danger {
    background: rgba(224, 92, 92, 0.18);
    color: #f0a3a3;
}
.account-cluster__menu-divider {
    height: 1px;
    margin: 4px 6px;
    background: rgba(235, 182, 134, 0.18);
}

/*LANGUAGE — seletor de idioma, mesma família visual dourada usada no site público*/
.lang-switch {
    position: relative;
    z-index: 20;
}
.lang-switch__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(235, 182, 134, 0.5);
    background: linear-gradient(160deg, rgba(70, 48, 18, 0.94) 0%, rgba(35, 22, 6, 0.98) 100%);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    font-family: var(--font-accent-bold), sans-serif;
    font-size: 13px;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.lang-switch__toggle:hover,
.lang-switch__toggle.is-open {
    border-color: #ebb686;
    background: linear-gradient(160deg, rgba(110, 74, 24, 0.96) 0%, rgba(60, 38, 8, 0.99) 100%);
}
.lang-switch__flag {
    width: 20px;
    aspect-ratio: 34/24;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.lang-switch__code {
    text-transform: uppercase;
}
.lang-switch__chevron {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    transition: transform 0.25s ease;
}
.lang-switch__toggle.is-open .lang-switch__chevron {
    transform: rotate(180deg);
}

.lang-switch__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    border-radius: 10px;
    background: linear-gradient(165deg, rgba(38, 26, 14, 0.97) 0%, rgba(18, 13, 7, 0.98) 100%);
    border: 1px solid rgba(235, 182, 134, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 999999;
}
.lang-switch__menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.lang-switch__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #e8dcc4;
    font-size: 13px;
    font-family: var(--font-regular), sans-serif;
    transition: background 0.15s, color 0.15s;
}
.lang-switch__item:hover {
    background: rgba(255, 216, 130, 0.09);
    color: var(--color-primary);
}
.lang-switch__item .lang-switch__flag {
    width: 22px;
}
.nav__links {
    list-style-type: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 30px;
    margin-left: auto;
    position: relative;
    z-index: 2;
}
.nav__links-item {
    font-family: var(--primary-font), sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1em;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 6px;
    transition: color 0.3s ease-in-out;
}
.nav__links-item:hover {
    color: var(--brand-color);
}
.nav__links-item img {
    height: 16px;
}
.nav__switch {
    width: 34px;
    height: 34px;
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    display: none;
    transition: background-color 0.3s ease-in-out, border 0.3s ease-in-out;
    z-index: 3;
    border-radius: 50%;
    margin-left: auto;
}
.nav__switch:hover {
    background-color: var(--brand-color);
}
.nav__switch:hover:after, .nav__switch:hover:before, .nav__switch:hover .nav__switch-item {
    background: #1c2227;
}
.nav__switch:hover .nav__switch-item {
    transform: scale(0.7, 1);
}
.nav__switch.active:after {
    transform: rotate(-135deg) scale(0.7, 1);
    top: calc((100% - 2px) / 2);
}
.nav__switch.active:before {
    transform: rotate(135deg) scale(0.7, 1);
    top: calc((100% - 2px) / 2);
}
.nav__switch.active .nav__switch-item {
    transform: scale(0, 1);
}
.nav__switch:after {
    content: "";
    width: calc(100% - 12px);
    height: 2px;
    background: #cdcfd1;
    position: absolute;
    transition: all 0.3s ease-in-out;
    top: 11px;
    left: 6px;
    transform: scale(0.7, 1);
}
.nav__switch:before {
    content: "";
    width: calc(100% - 12px);
    height: 2px;
    background: #cdcfd1;
    position: absolute;
    transition: all 0.3s ease-in-out;
    top: calc(100% - 13px);
    left: 6px;
    transform: scale(0.7, 1);
}
.nav__switch-item {
    width: calc(100% - 12px);
    height: 2px;
    background: #cdcfd1;
    position: absolute;
    top: calc((100% - 2px) / 2);
    left: 6px;
    transition: all 0.3s ease-in-out;
    transform: scale(0.7, 1);
}
/*LANG END*/

.auth-main-link {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* Card principal — Saldo, com destaque visual (é a informação mais importante) */
.balance-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: var(--accent-bg-color);
    border-radius: 12px;
    padding: 24px 30px;
}
.auth_donate_coins {
    display: flex;
    align-items: center;
    gap: 15px;
}
.auth_donate_links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

/* Cartões secundários — Indicados, Promo Code: mais discretos que o saldo,
   pra não competir visualmente com a informação principal */
.stat-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.stat-chip {
    flex: 1 1 260px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
}
.stat-chip-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.stat-chip-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid #bfbfbf;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.stat-chip-icon:hover {
    border-color: #fff;
}
.stat-chip-text {
    min-width: 0;
}
.stat-chip-value {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    color: #fff;
}
.stat-chip-value img {
    height: 18px;
}
.stat-chip--promo .tooltip_title {
    color: #ffe392;
}

.stat-chip--boss {
    border-color: rgba(200, 136, 0, 0.25);
}
.stat-chip--boss .stat-chip-icon {
    position: relative;
    border-color: #c8a040;
    color: #c8a040;
}
.stat-chip--boss .btn-gray-no-border {
    border-color: rgba(200, 136, 0, 0.5);
    color: #c8a040;
}
.stat-chip--boss .btn-gray-no-border:hover {
    background-color: rgba(200, 136, 0, 0.1);
    border-color: #c8a040;
}

/* Cor própria (roxo, remete à Twitch), separada do dourado do saldo/doação
   de propósito — ver comentário em .stat-chips-row sobre não competir com
   a ação principal da tela. */
.stat-chip--streamer {
    border-color: rgba(145, 70, 255, 0.25);
}
.stat-chip--streamer .stat-chip-icon {
    border-color: #a374ff;
    color: #a374ff;
}
.stat-chip--streamer .btn-gray-no-border {
    border-color: rgba(145, 70, 255, 0.5);
    color: #a374ff;
}
.stat-chip--streamer .btn-gray-no-border:hover {
    background-color: rgba(145, 70, 255, 0.1);
    border-color: #a374ff;
}
/* O texto de status (ex: "Ganhe recompensas") é só texto puro, sem
   span/img como no chip de indicados — trunca em reticências em vez de
   quebrar linha, pra nunca empurrar o botão pra uma linha nova. */
.stat-chip--streamer .stat-chip-value {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.chip-sub {
    font-size: 12px;
    color: #a9adb6;
    margin-top: 2px;
}
.live-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5b5b;
    animation: boss-live-pulse 1.6s infinite;
}
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ff5b5b;
    background: rgba(255, 91, 91, 0.12);
    border: 1px solid rgba(255, 91, 91, 0.4);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    text-transform: uppercase;
}
.live-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5b5b;
    animation: boss-live-pulse 1.6s infinite;
}
@keyframes boss-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 91, 91, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(255, 91, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 91, 91, 0); }
}

.alert-success {
    position: relative;
    display: flex;
    align-items: center;
    margin: 32px 0;
    border-radius: 16px;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    justify-content: space-between;
    background: #2A7B9B;
    background: linear-gradient(90deg, rgb(10 97 0) 15%, rgb(21 56 0) 100%);
}
.alert-success p {
    position: relative;
    padding-left: 60px;
    font-size: 18px;
    color: #dbff6a;
}
.alert-success p::before {
    content: "";
    position: absolute;
    left: 0;
    background-image: url("../img/ui/icon-success.svg");
    width: 40px;
    height: 40px;
    background-position: center center;
    background-size: cover;
    top: -40%;
    bottom: -50%;
}
.alert-danger {
    position: relative;
    display: flex;
    align-items: center;
    margin: 32px 0;
    border-radius: 16px;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    justify-content: space-between;
    background: gray;
    background: linear-gradient(90deg, rgb(255 87 87) 15%, rgb(255 32 32) 100%);
}
.alert-danger p {
    position: relative;
    padding-left: 60px;
    font-size: 18px;
    color: #ffb8b8;
}
.alert-danger p::before {
    content: "";
    position: absolute;
    left: 0;
    background-image: url("../img/ui/icon-danger.svg");
    width: 40px;
    height: 40px;
    background-position: center center;
    background-size: cover;
    top: -40%;
    bottom: -50%;
}





.auth-content {
    margin-top: 40px;
}
.refresh_link {
    width: 64px;
    height: 64px;
    border: 1px solid #bfbfbf;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.refresh_link:hover {
    border: 1px solid #fff;
}
.auth_donation_coins {
    color: #fff;
    font-size: 16px;
}
.auth_donate_title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 32px;
    color: #fff;
}
.auth_donate_title img {
    height: 22px;
}
.auth_donate_amount {
    display: inline-block;
    transition: filter 0.2s ease;
}
.auth_donate_amount.is-hidden {
    filter: blur(8px);
    user-select: none;
}
.balance-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    color: #fff;
    opacity: 0.55;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.balance-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}
.balance-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-gray-no-border {
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.btn-gray-no-border svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.btn-gray-no-border:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.omg-table {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-form-table);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.omg-table th, .omg-table td {
    font-family: var(--font-regular), sans-serif;
    font-size: 14px;
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.omg-table thead {
    background: var(--bg-form-head);
}

.omg-table tbody tr:hover {
    background-color: rgb(127 110 35 / 90%);
    transition: 0.3s ease;
}

.pk-count {
    color: #ff4d4d;
    font-weight: bold;
}

.streamer-actions-cell {
    white-space: nowrap;
}


/* Затемнённый фон */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
}

/* Контейнер попапа */
.popup-content {
    background: #1f1f2e;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
    position: relative;
    animation: fadeInUp 0.4s ease;
}
.popup-content .text-success {
    text-align: center;
    font-size: 18px;
}
.popup-title {
    font-size: 22px;
}

.popup-title-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-content form {
    margin-top: 30px;
}

/* Закрыть */
.popup-close {
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
    background-color: rgb(255 255 255 / 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
.popup-close:hover {
    color: #fff;
}
.popup-close svg {
    width: 18px;
}

/* Группы полей */


/* Ошибки */
.text-danger {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 5px;
}

/* Успешно */
.text-success {
    color: #00cc66;
    font-size: 14px;
    margin-top: 10px;
}

/* Показать/Скрыть пароль */
.password-group {
    display: flex;
    align-items: center;
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: #aaa;
}

.password-toggle:hover {
    color: #fff;
}

.login_button button {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 70px rgba(112, 96, 255, 0.5);
    height: 50px;
    font-size: 18px;
    position: relative;
}
.login_button svg {
    position: absolute;
    left: 18px;
    width: 30px;
}

/* Анимация */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

.change-game-password-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(22, 15, 2, .5);
    padding: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}


.create_game_account {
    background-color: var(--bgc-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.create_game_account p {
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 20px;
    color: #fff;
}


.master-name-plus {
    display: flex;
    color: #fff;
    font-size: 20px;
}
.master-name-plus p {
    color: #fff;
}

/* плюсик*/
.plus-toggle {
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.plus-toggle::before {
    content: '+';
    transition: transform 0.3s ease;
}

.plus-toggle.active::before {
    content: '-';
    transform: rotate(180deg);
}

.master-acc-item .lin2Table {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.lin2Table.active {
    max-height: 1000px;
}
/* плюсик*/

/* Proteção contra overflow horizontal ficava só abaixo de 675px — entre
   676-960px (tablets/notebooks pequenos) uma tabela larga (.omg-table etc.)
   dentro de .lin2Table não tinha nenhuma proteção e podia estourar a página.
   Specificity: perde pra `.master-acc-item .lin2Table` (overflow:hidden) nos
   acordeões de contas, então não muda o comportamento deles. */
.lin2Table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tooltip_title {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}
.tooltip_title svg {
    width: 16px;
}
.tooltip_img {
    width: 16px;
    height: 16px;
}
.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
}
.info-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: var(--bgc-color);
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 10;
    top: 125%; /* немного ниже */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.3s ease;
    font-size: 12px;
}
.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}



.close {
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
    background-color: rgb(255 255 255 / 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
.close::before {
    content: "";
    position: absolute;
    background-image: url("../img/ui/close.svg");
    width: 18px;
    height: 18px;
}
.close:hover {
    background-color: rgb(255 255 255 / 20%);
}

.card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
}
#donate_history {
    margin-top: 30px;
    margin-bottom: 60px;
}
.send-to-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.send-to-game .form-group {
    margin-bottom: 0;
    width: 100%;
}
.send-to-game .form-control {
    height: 50px;
}
#send-to-game .alert {
    margin-bottom: 0;
}
.title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #bebebe;
}
.title span {
    color: #ebca69;
}
.title h1 {
    font-family: var(--font-accent-regular), sans-serif;
}
#warehouse {
    margin-top: 20px;
}
#sendItemsForm {
    color: #bebebe;
}
.warehouse-items-all {
    margin-top: 30px;
}
.warehouse-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}



.ticket-section {
    border-radius: 12px;
    background-color: var(--bgc-color);
    padding: 20px;
}
.ticket-block {
    min-height: 720px;
    max-height: 720px;
    display: flex;
    justify-content: space-between;
}
.ticket-sidebar {
    width: 28%;
    min-width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ticket-messages {
    padding: 0 30px;
    position: relative;
    width: 80%;
    display: flex;
    flex-direction: column;
    overflow: auto;
}
.ticket-item.active {
    background-color: rgb(98 0 248 / 30%);
}

.ticket_title_status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
}
.tickets-nav {
    margin-top: 20px;
    background-color: rgb(255 255 255 / 10%);
    overflow-y: auto;
    flex: 1;
}
.ticket-no-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bebebe;
    font-size: 18px;
}
.ticket-sidebar .btn-primary {
    max-width: 100%;
    min-width: 100%;
    flex-shrink: 0;
}
.ticket-link {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color 0.12s ease;
    text-decoration: none;
}
.ticket-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
}
.ticket-top-block h2 {
    color: #fff;
}
.ticket-top-block p {
    color: #bebebe;
}
.message-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}
.message-container.right {
    justify-content: flex-end;
}
.message p {
    color: #e8e8e8;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    font-size: 14px;
    line-height: 1.6;
}
.ticket_admin_status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 550px;
    color: #fff;
    gap: 10px;
    margin: 20px 0;
}
.status_text {
    font-size: 12px;
}
.status_text.status-closed {
    color: #ff6060;
}
.status_text.status-in-progress {
    color: #17ff00;
}
.ticket_date_username {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    flex-wrap: wrap;
}
.ticket-username {
    color: #aaa;
    font-weight: 600;
}
.ticket-date {
    color: #666;
}
.ticket-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #e0e0e0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    flex: 1;
}
.ticket-filter {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}
.ticket-filter a {
    border: 1px solid palegoldenrod;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 6px;
}
.ticket_msg_date {
    color: #bebebe;
    font-size: 12px;
}
#fileToUpload {
    display: none;
}
.file_upload svg {
    cursor: pointer;
}
.file_upload {
    display: flex;
    align-items: center;
    justify-content: center;
}
.area-for-response-text {
    min-height: 20px;
    vertical-align: middle;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 20px;
    color: #060614f5;
    width: 100%;
    border: none;
    resize: none;
    overflow: hidden;
    height: inherit;
    max-height: none;
}

.season_bonus {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: rgb(0 0 0 / 50%);
    width: max-content;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}
.season_balance {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 32px;
    color: gray;
}
.season_b_link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Ticket loading overlay ── */
#ticket-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}
#ticket-loading-overlay.is-visible {
    display: flex;
}
.ticket-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(20, 16, 35, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 16px;
    padding: 32px 48px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.ticket-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top-color: #9f67fa;
    border-radius: 50%;
    animation: ticket-spin 0.75s linear infinite;
}
@keyframes ticket-spin {
    to { transform: rotate(360deg); }
}
#ticket-loading-label {
    font-size: 14px;
    font-weight: 500;
    color: #c084fc;
    letter-spacing: 0.03em;
}

/* ── Ticket list scrollbar ── */
.tickets-nav::-webkit-scrollbar {
    width: 4px;
}
.tickets-nav::-webkit-scrollbar-track {
    background: transparent;
}
.tickets-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.tickets-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Ticket badges ── */
.ticket-badge {
    display: inline-block;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.6;
}
.badge-new {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.badge-in-progress {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.badge-closed {
    background-color: rgba(255, 255, 255, 0.07);
    color: #6b7280;
}
/* keep old class for any existing references */
.status-new {
    display: inline-block;
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

/* ── Ticket top block ── */
.ticket-top-meta h2 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.ticket-top-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ticket-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 20px;
}

/* ── Chat messages ── */
.ticket-message {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}
.ticket-message::-webkit-scrollbar { width: 4px; }
.ticket-message::-webkit-scrollbar-track { background: transparent; }
.ticket-message::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}
.msg-row--self {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.msg-row--support {
    align-self: flex-start;
}
.msg-row--other {
    align-self: flex-start;
}
.msg-row--ai {
    align-self: flex-start;
}

/* Avatars */
.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.msg-avatar--support {
    background: linear-gradient(135deg, #7c3aed, #9f67fa);
    color: #fff;
}
.msg-avatar--self {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
}
.msg-avatar--other {
    background: rgba(255,255,255,0.12);
    color: #ccc;
}
.msg-avatar--ai {
    background: linear-gradient(135deg, #0e7490, #22d3ee);
    color: #fff;
}

/* Bubbles */
.msg-bubble {
    border-radius: 14px;
    padding: 10px 14px;
    max-width: 100%;
    word-break: break-word;
}
.msg-bubble--support {
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(124,58,237,0.08));
    border: 1px solid rgba(124,58,237,0.3);
    border-bottom-left-radius: 4px;
}
.msg-bubble--self {
    background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(37,99,235,0.10));
    border: 1px solid rgba(37,99,235,0.3);
    border-bottom-right-radius: 4px;
}
.msg-bubble--other {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
}
.msg-bubble--ai {
    background: linear-gradient(135deg, rgba(14,116,144,0.18), rgba(34,211,238,0.08));
    border: 1px solid rgba(34,211,238,0.25);
    border-bottom-left-radius: 4px;
}

/* Message header (author + time) */
.msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}
.msg-header--right {
    justify-content: flex-end;
}
.msg-author {
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
}
.msg-time {
    font-size: 10px;
    color: #555;
}
.msg-support-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(124,58,237,0.3);
    color: #c084fc;
    padding: 1px 5px;
    border-radius: 3px;
}
.msg-ai-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(34,211,238,0.18);
    color: #22d3ee;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Links inside AI messages */
.msg-link {
    color: #22d3ee;
    text-decoration: underline;
    word-break: break-all;
}
.msg-link:hover {
    color: #67e8f9;
}

/* Message body */
.msg-body p {
    color: #e2e2e2;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}
.msg-attachment {
    display: block;
    margin-top: 8px;
}
.msg-attachment img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.15s;
}
.msg-attachment img:hover { opacity: 0.85; }

/* ── Reply form ── */
.ticket-reply {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
}
.ticket-notify-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 2px 8px;
    font-size: 11.5px;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}
.ticket-notify-toggle:hover { color: #a78bfa; }
.ticket-notify-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.ticket-notify-toggle:hover input[type="checkbox"] {
    border-color: rgba(167,139,250,0.35);
}
.ticket-notify-toggle input[type="checkbox"]:checked {
    background: rgba(124,58,237,0.22);
    border-color: rgba(124,58,237,0.7);
}
.ticket-notify-toggle input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1.5px;
    width: 4px;
    height: 7px;
    border: 1.5px solid #a78bfa;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.ticket-reply-inner {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.15s;
}
.ticket-reply-inner:focus-within {
    border-color: rgba(124,58,237,0.5);
}
.file_upload {
    flex-shrink: 0;
    cursor: pointer;
    color: #666;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    padding: 4px;
}
.file_upload:hover { color: #aaa; }
#fileToUpload { display: none; }
.area-for-response-text {
    flex: 1;
    min-height: 22px;
    max-height: 120px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    overflow-y: auto;
    padding: 2px 0;
}
.area-for-response-text::placeholder { color: #555; }
.ticket-send-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #9f67fa);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.15s, transform 0.1s;
}
.ticket-send-btn:hover { opacity: 0.88; transform: scale(1.04); }
.ticket-send-btn svg { pointer-events: none; }

/* Preview container */
.ticket-preview-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 16px 0;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 12px;
    color: #888;
}
.ticket-preview-container .preview-wrapper {
    position: relative;
    display: inline-block;
}
#preview-image {
    max-width: 60px;
    max-height: 60px;
    border-radius: 5px;
    display: block;
}
.remove-file {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    border: none;
}

/* Closed ticket notice */
.ticket-closed-notice {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 13px;
    color: #666;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Empty ticket list */
.ticket-empty-list {
    padding: 20px;
    text-align: center;
    color: #555;
    font-size: 13px;
}

/* Mobile back button — hidden by default, revealed only on mobile */
.ticket-mobile-back {
    display: none;
}

/* btn-sm */
.btn-sm {
    padding: 6px 14px !important;
    font-size: 13px !important;
    min-width: auto !important;
}

.ticket_is_admin {
    color: #c084fc;
}
.omg-table.error tr {
    background-color: rgb(127 110 35 / 90%);
}
.s-pack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-wrap: wrap;
    gap: 20px;
}
.s-pack-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 15px;
    background-color: var(--bg-form-table);
}
.s-pack-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.s-pack-title img {
    height: 54px;
}
.s-pack-title span {
    color: #fff;
    font-size: 15px;
    margin-top: 10px;
}
.s-item-i {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #bebebe;
}
.s-item-count {
    font-size: 12px;
    color: #ffacac;
}
.s-pack-prices {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
    margin-top: auto;
}
.s-pack-prices button {
    min-width: 100%;
    margin-top: 15px;
}
.s-pack-price {
    font-size: 20px;
    color: var(--color-primary);
    text-decoration: line-through;
}
.s-pack-discount {
    color: #bebebe;
}
.s-item-title {
    font-size: 14px;
}

/*PAYMENT START*/
#payment-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}
.payment__range.noUi-horizontal .noUi-handle {
    width: 26px;
    height: 26px;
    border-radius: 26px;
    background: var(--color-primary);
    border: none;
    box-shadow: none;
    top: -9px;
    right: -13px;
}
.payment__range.noUi-target {
    background: #1c1718;
    border-radius: 5px;
    border: 1px solid #505050;
    box-shadow: none;
}
.payment__range {
    margin-top: 20px;
}
.payment__range .noUi-value {
    font-size: 10px;
    line-height: 18px;
    font-weight: 400;
    color: #afafaf;
}
.payment__range .noUi-marker-horizontal.noUi-marker-large {
    height: 10px;
}
.payment__range .noUi-marker-horizontal.noUi-marker {
    width: 1px;
}
.payment__range .noUi-marker-large {
    background: #686363;
}
.payment__range .noUi-marker {
    background: #483f41;
}
.payment__range .noUi-pips-horizontal {
    height: 42px;
}
.payment__range.noUi-horizontal .noUi-connect {
    background: #ffbd01;
}
.payment__range .noUi-tooltip {
    border: 1px solid #505050;
    border-radius: 5px;
    background: #1c1718;
    color: #fff;
    font-size: 14px;
    line-height: 1em;
    font-weight: 400;
    padding: 6px 5px 5px;
}
.payment__range.noUi-horizontal {
    height: 10px;
    margin-bottom: 60px;
}
.noUi-handle-lower::before, .noUi-handle-lower::after {
    display: none;
}
.pay_method img {
    display: flex;
    height: 40px;
}
.payment_select {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.pay_method {
    border: 2px solid transparent;
    cursor: pointer;
}
.pay_method:hover {
    opacity: 0.7;
    transition: 0.3s;
}
.pay_method.active {
    border: 2px solid var(--color-primary);
    border-radius: 6px;
}
.pay-currency {
    display: flex;
    color: #bebebe;
    gap: 30px;
}
.payment__input {
    display: flex;
    align-items: center;
}
.payment_bonus_price {
    background-color: var(--color-primary);
    height: 45px;
    min-width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.payment-pay input {
    border-radius: 0;
}
.bonus-item {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    border-bottom: 1px solid gray;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.bonus-item p {
    font-family: var(--font-accent-regular), sans-serif;
    color: #fff;
}
.bonus-item span {
    color: var(--color-primary);
}
.donate-title {
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 22px;
    color: #fff;
}
.donate-title-block p {
    color: #bebebe;
}
.donate-title-block {
    margin-bottom: 15px;
}
.curr-item .curr_symbol {
    color: var(--color-primary);
}
.payment-pay .form-group {
    margin-bottom: 15px;
}
.payment-pay .form-group:last-child {
    margin-bottom: 0;
}
.payment-pay .login_button {
    margin-top: 30px;
    text-align: center;
}
.total_text {
    font-family: var(--font-accent-regular), sans-serif;
    text-align: center;
    margin-top: 15px;
    color: #bebebe;
}
/*PAYMENT END*/


.referral_block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.referral_block .btn-green {
    width: max-content;
    height: 45px;
}
.referral_copy_link {
    position: relative;
}
.referral_copy_link button {
    height: 45px;
}
.copy-message {
    position: absolute;
    opacity: 0;
    font-size: 12px;
    color: #bebebe;
}
.referral_form {
    max-width: 470px;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}
.referral_form input {
    border-radius: 8px;
    width: 70%;
}
.referrals_text {
    line-height: 1.6;
}
table.rating.index td:first-child {
    text-align: left;
}
table.rating.index td:last-child {
    text-align: right;
}

table.rating {
    width: 100%;
    border-collapse: collapse;
    background: #1e1e1e;
    color: #d9c97f;
    box-shadow: 0 0 10px #000;
}

table.rating thead th {
    background-color: #2c2c2c;
    font-size: 16px;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #d9c97f;
    font-family: var(--font-accent-regular), sans-serif;
}

table.rating th {
    background-color: #2c2c2c;
    font-size: 16px;
    padding: 10px;
    border-bottom: 2px solid #d9c97f;
    text-align: center;
}

table.rating td {
    padding: 10px;
    border-bottom: 1px solid #444;
    text-align: center;
    font-size: 13px;
}

table.rating tr:hover {
    background-color: #2a2a2a;
}

table.rating tr:hover {
    background-color: #2f2f2f;
}

table.rating td:last-child {
    font-family: var(--font-bold), sans-serif;
    color: #ffd700;
}
.bar-container {
    height: 18px;
    background-color: #333;
    border: 1px solid #555;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(to right, #ffc107, #ff9800);
    transition: width 0.4s ease;
}

.bar-fill.female {
    background: linear-gradient(to right, #d48fff, #a24cff);
}

.stats-menu {
    display: flex;
    justify-content: space-between;
}
.stats-menu a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1e1e1e;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.stats-menu .active a {
    background-color: #6c5eff;
}

.char-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
#bonus_for_recipient {
    color: var(--color-primary);
    font-size: 18px;
    text-align: center;
}

.clan-crests img {
    display: inline-block;
    vertical-align: middle;
}

.btn-gray-no-border.open-popup {
    margin-left: 10px;
    text-align: center;
    border-radius: 0;
}

.server-switcher {
    position: relative;
    display: inline-block;
    z-index: 10;
    width: 100%;
}

.server-switcher__current {
    background: rgb(22 15 2 / 60%);
    color: #bebebe;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s;
}

.server-switcher__current:hover {
    background: #3a3a3a;
}

.server-switcher__current .arrow-down {
    border: solid #d9c97f;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    position: absolute;
    right: 15px;
    top: 12px;
}

.server-switcher__list {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 5px;
    list-style: none;
    min-width: 180px;
    box-shadow: 0 0 10px #000;
    width: 100%;
}

.server-switcher__list li {
    text-align: left;
}

.server-switcher__item {
    display: block;
    padding: 10px 15px;
    color: #d9c97f;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 14px;
}

.server-switcher__item:hover {
    background: #2a2a2a;
    color: #ffd700;
}

.gw-burger {
    display: none;
}

#services {
    margin-top: 20px;
}
.services-all {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: content-box;
}
.service-item {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background-color: var(--bg-dark);
    padding: 20px;
    border-radius: 12px;
}
.service-item .alert {
    margin: auto;
    text-align: center;
}
.service-item .lineage-link {
    margin: auto;
}
.service-top-block h2 {
    font-family: var(--font-accent-regular), sans-serif;
    font-size: 14px;
    text-transform: capitalize;
    color: #bebebe;
}
.service-top-block p {
    color: #bebebe;
    font-size: 14px;
}
.service-top-block small {
    font-size: 12px;
}
.service-top-block img {
    width: 128px;
}
.service-top-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}
.service-top-block span {
    color: var(--color-primary);
}

@media only screen and (max-width: 960px) {
    .account-cluster__balance,
    .account-cluster__divider {
        display: none;
    }
    .account-cluster__user-toggle {
        border-radius: 7px;
    }
    aside.sidebar.top_menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        background-color: #221e1d;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    aside.sidebar.top_menu.active {
        transform: translateX(0);
    }

    .navigation__burger {
        display: block;
    }

    .gw-burger {
        background-color: var(--bg-form-table);
        position: fixed;
        top: 8px;
        left: 12px;
        z-index: 99999;
        width: 40px;
        height: 40px;
        cursor: pointer;
        box-sizing: border-box;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gw-burger__line {
        width: 20px;
        height: 2px;
        margin: auto;
        position: absolute;
        left: 5px;
        right: 5px;
        background-color: #909090;
        border-radius: 2px;
        -webkit-transition: all .3s;
        transition: all .3s;
    }

    .gw-burger__line_pos_top {
        pointer-events: none;
        top: 32%;
    }

    .gw-burger__line_pos_middle {
        pointer-events: none;
        top: 50%;
        transform: translateY(-50%);
    }

    .gw-burger__line_pos_bottom {
        pointer-events: none;
        bottom: 32%;
    }

    .gw-burger_active .gw-burger__line_pos_top {
        transform: rotate(45deg) translateY(-50%);
        -webkit-transform-origin: center top;
        transform-origin: center top;
        top: 50%;
    }

    .gw-burger_active .gw-burger__line_pos_middle {
        transform: rotate(180deg);
        opacity: 0;
    }

    .gw-burger_active .gw-burger__line_pos_bottom {
        transform: rotate(-45deg) translateY(50%);
        -webkit-transform-origin: center bottom;
        transform-origin: center bottom;
        bottom: 50%;
    }

    .main-content {
        width: 100%;
        padding-top: 56px;
    }
    .auth_top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 88;
        background: #21232a;
        height: 56px;
        padding: 0 16px 0 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        box-shadow: 0 1px 0 rgba(255,255,255,0.08);
        flex-wrap: nowrap;
    }
    .stats-menu a {
        padding: 10px 15px;
        gap: 5px;
    }
}

@media only screen and (max-width : 675px) {
    .services-all {
        grid-template-columns: repeat(1, 1fr);
    }
    .service-item {
        padding: 15px;
        grid-template-columns: repeat(1, 1fr);
    }
    .form-group {
        margin-bottom: 15px;
    }
    .main-wrap {
        overflow-x: hidden;
    }
    .service-item .btn-primary {
        max-width: 100%;
    }
    .auth_nav_top li:not(:first-child) {
        display: none;
    }
    .auth_nav_top li:first-child span {
        display: none;
    }
    .auth-main-link {
        gap: 20px;
    }
    .refresh_link {
        width: 32px;
        height: 32px;
        border-radius: 4px;
    }
    .auth_donate_coins {
        gap: 10px;
    }
    .auth_donate_title {
        font-size: 24px;
    }
    .s-pack {
        grid-template-columns: repeat(1, 1fr);
    }
    #payment-form {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
    .auth-content {
        padding-bottom: 40px;
    }
    .card {
        padding: 15px;
    }
    .bonus-item {
        font-size: 16px;
        flex-wrap: wrap;
        gap: 6px;
    }
    /* ── PAYMENT MOBILE ─────────────────────────────────── */
    .pay-currency {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
    .payment_select {
        gap: 10px;
    }
    .pay_method img {
        height: 30px;
    }
    .pay-method-tag {
        font-size: 8px;
        padding: 1px 3px;
    }
    /* Pips do slider (marcadores de valor) lotam e sobrepõem em telas
       estreitas — o tooltip que já mostra o valor arrastado é suficiente. */
    .payment__range .noUi-pips-horizontal {
        display: none;
    }
    .payment__range.noUi-horizontal {
        margin-bottom: 30px;
    }
    /* ── FIM PAYMENT MOBILE ─────────────────────────────── */
    .referral_form {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 15px;
    }
    .referral_form input {
        width: 100%;
    }
    .referral_block {
        flex-wrap: wrap;
        gap: 15px;
    }
    .referral_copy_link {
        width: 100%;
    }
    .referral_copy_link button {
        width: 100%;
        max-width: 100%;
    }
    .referral_block button {
        min-width: 100%;
    }
    .stats-menu {
        flex-wrap: wrap;
    }
    /* ── TICKETS MOBILE ─────────────────────────────────── */

    .ticket-section {
        padding: 12px;
    }

    /* Bloco principal: height EXPLÍCITO — min/max-height não cria altura definida para filhos flex */
    .ticket-block {
        height: calc(100svh - 210px);
        min-height: 0;
        max-height: none;
        overflow: hidden;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    /* Padrão (sem ticket ativo): exibe lista, esconde chat */
    /* height: 100% removido — align-items:stretch do pai resolve automaticamente */
    .ticket-sidebar {
        width: 100%;
        min-width: 0;
        display: flex;
        overflow: hidden;
    }
    .ticket-messages {
        display: none;
        width: 100%;
        padding: 0;
    }

    /* Ticket ativo: esconde lista, exibe chat */
    .ticket-block.has-active-ticket .ticket-sidebar {
        display: none;
    }
    .ticket-block.has-active-ticket .ticket-messages {
        display: flex;
        width: 100%;
        overflow: hidden;
    }

    /* Botão voltar */
    .ticket-mobile-back {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 11px 14px;
        font-size: 13px;
        font-weight: 500;
        color: #a78bfa;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        background: rgba(255,255,255,0.02);
        flex-shrink: 0;
        transition: background 0.12s;
    }
    .ticket-mobile-back:active {
        background: rgba(124,58,237,0.1);
    }

    /* Itens da lista: área de toque maior */
    .ticket-link {
        padding: 14px 12px;
        min-height: 60px;
    }

    /* Cabeçalho do ticket: empilhar no mobile */
    .ticket-top-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        flex-shrink: 0;
    }

    /* Admin: form de status ocupa toda a largura */
    .ticket_admin_status {
        max-width: 100%;
        width: 100%;
        margin: 0;
        flex-wrap: wrap;
    }
    .ticket_admin_status select {
        flex: 1;
        min-width: 0;
    }

    /* Filtros admin: quebrar linha */
    .ticket-filter {
        flex-wrap: wrap;
        gap: 6px 10px;
        margin-bottom: 14px;
    }

    /* Área de mensagens: min-height: 0 essencial para overflow-y funcionar em flex */
    .ticket-message {
        min-height: 0;
        padding: 10px 12px;
        gap: 10px;
    }

    /* Imagem em anexo: menor no mobile */
    .msg-attachment img {
        max-width: 180px;
        max-height: 140px;
    }

    /* Balões não muito largos */
    .msg-row {
        max-width: 92%;
    }

    /* Formulário de resposta: padding menor */
    .ticket-reply {
        padding: 8px 10px;
    }

    /* ── FIM TICKETS MOBILE ───────────────────────────── */
    .title h1 {
        font-size: 22px;
    }
    .send-to-game {
        flex-wrap: wrap;
    }
    .create_game_account p {
        display: none;
    }
    .create_game_account button {
        min-width: 100%;
    }
    .popup-content {
        margin-left: 15px;
        margin-right: 15px;
    }
    .lin2Table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
    }
    .omg-table {
        width: max-content;
    }
    table.rating thead th, table.rating td {
        font-size: 12px;
    }
    /* Célula de ações de streamers.blade.php tem até 3 controles (verificar/
       pausar-retomar/desconectar); em nowrap eles só cabiam com scroll
       horizontal dentro da tabela — deixar quebrar em várias linhas é mais
       fácil de tocar no mobile do que rolar a linha pro lado. */
    .streamer-actions-cell {
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    aside.sidebar.top_menu {
        width: 80%;
    }
    .sidebar-left {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

