@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Exo+2:wght@400;500;600;700&display=swap');

:root {
    --gold-1: #f3d38d;
    --gold-2: #be8f3f;
    --ink: #120d07;
    --text: #f7e8c3;
    --muted: #cbb389;
    --ok: #86dfa4;
    --line: rgba(222, 186, 120, .32);
    --panel-bg: rgba(17, 12, 8, .82);
    --panel-soft: rgba(21, 15, 10, .72)
}

* {
    box-sizing: border-box
}

html,
body {
    min-height: 100%;
    background: #0f0a06
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Exo 2", "Segoe UI", Tahoma, sans-serif;
    position: relative;
    isolation: isolate;
    padding: 22px;
    display: flex
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(rgba(10, 7, 5, .55), rgba(10, 7, 5, .78)), url('/front/assets/images/background.jpg') center/cover no-repeat;
    transform: translateZ(0);
    backface-visibility: hidden
}

.shell {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: radial-gradient(80% 120% at 10% 0%, rgba(166, 120, 54, .2), transparent 55%), linear-gradient(180deg, rgba(42, 30, 18, .88), var(--panel-bg));
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    overflow: hidden;
    min-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column
}

.top {
    padding: 24px 26px 16px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px
}

.top-left {
    justify-self: start
}

.top-center {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.top-right {
    justify-self: end;
    display: flex;
    align-items: flex-start
}

.brand-title {
    margin: 0;
    font-family: "Cinzel", "Exo 2", sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    color: #ffeec3
}

.brand-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px
}

.status-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, .35);
    font-size: 13px
}

.online {
    color: var(--ok);
    font-weight: 700
}

.online-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid rgba(165, 133, 78, .55);
    border-radius: 999px;
    background: radial-gradient(120% 220% at 20% 0, rgba(235, 201, 131, .22), rgba(0, 0, 0, .2));
    box-shadow: 0 6px 22px rgba(0, 0, 0, .35)
}

.online-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center
}

.online-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #78e79d;
    box-shadow: 0 0 10px rgba(120, 231, 157, .8);
    flex: 0 0 10px
}

.online-value {
    width: 100%;
    text-align: center;
    font-family: "Exo 2", "Segoe UI", Tahoma, sans-serif;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    color: #ffeec3
}

.nav-wrap {
    padding: 14px 26px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 10, 8, .32)
}

.nav-link,
.btn {
    border: 1px solid rgba(189, 145, 74, .58);
    border-radius: 11px;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    color: var(--ink);
    text-decoration: none;
    font-family: "Cinzel", "Exo 2", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease
}

.nav-link:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    filter: saturate(1.05)
}

.nav-link:active,
.btn:active {
    transform: translateY(1px) scale(.985)
}

.download-btn-head {
    width: auto;
    border: 1px solid rgba(176, 74, 61, .75);
    border-radius: 11px;
    background: linear-gradient(180deg, #f0b6a8, #be5848);
    color: #2d0905;
    text-decoration: none;
    font-family: "Cinzel", "Exo 2", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap
}

.social-links-head {
    display: grid;
    grid-template-columns: repeat(3, 24px);
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 14px;
    row-gap: 10px
}

.social-link-head {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, opacity .18s ease
}

.social-link-head:hover {
    transform: translateY(-1px) scale(1.06);
    opacity: .92
}

.social-link-head img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain
}

.social-links-head .download-btn-head {
    grid-column: 1 / -1;
    justify-self: center
}

.nav-link.active {
    box-shadow: 0 0 0 2px rgba(233, 203, 143, .45)
}

.nav-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.content {
    padding: 22px 26px 26px;
    flex: 1
}

.notice,
.error {
    margin-bottom: 14px;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid
}

.notice {
    background: rgba(58, 125, 81, .28);
    border-color: rgba(127, 221, 160, .45)
}

.error {
    background: rgba(138, 51, 51, .3);
    border-color: rgba(238, 145, 145, .45)
}

.toast-stack {
    position: fixed;
    top: 14px;
    left: max(10px, calc((100vw - 980px) / 2 - 250px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
    pointer-events: none;
    width: min(320px, calc(100% - 20px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    scrollbar-width: thin
}

.toast {
    pointer-events: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
    backdrop-filter: blur(2px);
    font-size: 14px;
    line-height: 1.35
}

.toast.toast-success {
    background: linear-gradient(180deg, rgba(36, 78, 50, .95), rgba(22, 46, 31, .95));
    border-color: rgba(127, 221, 160, .5)
}

.toast.toast-error {
    background: linear-gradient(180deg, rgba(112, 38, 38, .95), rgba(70, 23, 23, .95));
    border-color: rgba(238, 145, 145, .5)
}

.panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    padding: 16px;
    margin-bottom: 14px
}

h2 {
    margin: 0 0 10px;
    font-family: "Cinzel", "Exo 2", sans-serif;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.1
}

.lead {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.5
}

.muted {
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px
}

.card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
    padding: 14px
}

.card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-family: "Exo 2", "Segoe UI", Tahoma, sans-serif;
    font-weight: 700;
    line-height: 1.2
}

label {
    display: block;
    margin: 10px 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    font-family: "Cinzel", "Exo 2", sans-serif
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(196, 151, 81, .64);
    border-radius: 10px;
    background: rgba(0, 0, 0, .44);
    color: var(--text);
    padding: 10px 11px;
    font-size: 15px;
    line-height: 1.35;
    outline: none;
    font-family: inherit
}

textarea {
    resize: vertical;
    min-height: 92px
}

.table-wrap,
.shop-table-wrap {
    width: 100%;
    overflow-x: auto
}

table,
.shop-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 15px
}

th,
td,
.shop-table th,
.shop-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle
}

th,
.shop-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: center;
    line-height: 1.25
}

.shop-table {
    table-layout: fixed;
    min-width: 980px
}

.shop-table td {
    text-align: center
}

.shop-table col.col-id {
    width: 74px
}

.shop-table col.col-name {
    width: 190px
}

.shop-table col.col-desc {
    width: 380px
}

.shop-table col.col-ilvl {
    width: 96px
}

.shop-table col.col-rlvl {
    width: 96px
}

.shop-table col.col-price {
    width: 96px
}

.shop-table col.col-buy {
    width: 108px
}

.shop-table th,
.shop-table td {
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 8px 4px
}

.characters-table th,
.characters-table td {
    text-align: center;
    vertical-align: middle
}

.rating-table th,
.rating-table td {
    text-align: center;
    vertical-align: middle
}

.status-online {
    color: var(--ok);
    font-weight: 700
}

.status-offline {
    color: var(--muted);
    font-weight: 700
}

.shop-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap
}

.shop-balance-chip {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, .22);
    font-size: 14px;
    white-space: nowrap
}

.crystal-amount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1
}

.crystal-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    transform: translateY(1px)
}

.market-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

.market-note {
    font-size: 13px;
    color: var(--muted)
}

.market-table th,
.market-table td {
    text-align: center;
    vertical-align: middle
}

.market-table .market-desc-cell {
    text-align: left;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.shop-category-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 14px
}

.shop-category-btn {
    border: 1px solid rgba(189, 145, 74, .58);
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    padding: 8px 12px;
    font-family: "Cinzel", "Exo 2", sans-serif;
    font-size: 12px;
    cursor: pointer
}

.shop-category-btn.active {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    color: var(--ink)
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000
}

.modal-backdrop.open {
    display: flex
}

.modal-panel {
    width: min(560px, 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(28, 20, 12, .98), rgba(20, 15, 10, .98));
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55)
}

.modal-panel.admin-modal {
    width: min(1160px, 100%);
    max-height: 90vh;
    overflow: auto
}

.admin-account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

.admin-account-modal-layout {
    grid-template-columns: 260px minmax(0, 1fr)
}

.admin-account-menu-wrap {
    align-self: start
}

.admin-account-modal-content {
    display: grid;
    gap: 10px
}

.admin-account-modal-content.admin-tabs-ready .admin-modal-card {
    display: none
}

.admin-account-modal-content.admin-tabs-ready .admin-modal-card.is-active {
    display: block
}

.admin-modal-card {
    overflow: hidden
}

.admin-profile-form .profile-info-line {
    grid-template-columns: 200px minmax(0, 1fr) 180px
}

.admin-profile-info-line-tall {
    align-items: start
}

.admin-ban-controls {
    display: grid;
    grid-template-columns: 120px 170px minmax(0, 1fr);
    gap: 8px;
    align-items: end
}

.admin-account-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px
}

.admin-account-actions h4 {
    margin: 10px 0 6px
}

.admin-account-actions {
    display: grid;
    gap: 10px
}

.admin-action-item {
    border: 1px solid rgba(222, 186, 120, .2);
    border-radius: 10px;
    padding: 10px
}

.admin-action-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end
}

.admin-action-stack {
    display: grid;
    gap: 8px
}

.admin-ban-form {
    display: grid;
    grid-template-columns: 120px 160px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end
}

.admin-ban-unit {
    min-width: 160px
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    flex-wrap: wrap
}

.legal-text {
    text-align: left
}

.legal-actions {
    justify-content: center
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto
}

.plain-text {
    text-align: left;
    line-height: 1.55
}

.plain-text h1 {
    font-size: 1.5em;
    margin: 1em 0 .5em;
    font-family: "Cinzel", "Exo 2", sans-serif
}

.plain-text h2 {
    font-size: 1.25em;
    margin: 1em 0 .5em;
    font-family: "Cinzel", "Exo 2", sans-serif
}

.plain-text h3 {
    font-size: 1.1em;
    margin: 1em 0 .5em
}

.plain-text p,
.plain-text ul,
.plain-text ol {
    margin: .5em 0
}

.plain-text ul,
.plain-text ol {
    margin-left: 1.5rem;
    padding-left: 1rem
}

.plain-text li {
    margin: .35em 0
}

.plain-text a {
    color: var(--gold-1);
    text-decoration: underline
}

.plain-text a:hover {
    color: var(--gold-2)
}

.custom-select {
    position: relative;
    min-width: 220px
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(196, 151, 81, .64);
    border-radius: 10px;
    background: rgba(0, 0, 0, .44);
    color: var(--text);
    padding: 10px 11px;
    font-size: 18px;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer
}

.custom-select-trigger:after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    margin-top: -4px
}

.custom-select.open .custom-select-trigger {
    border-color: rgba(233, 203, 143, .8);
    box-shadow: 0 0 0 2px rgba(233, 203, 143, .22)
}

.custom-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(28, 20, 12, .98), rgba(20, 15, 10, .98));
    box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
    padding: 6px;
    display: none;
    z-index: 100
}

.custom-select.open .custom-select-menu {
    display: block
}

.custom-select-option {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    padding: 9px 10px;
    font-size: 16px;
    cursor: pointer
}

.custom-select-option+.custom-select-option {
    margin-top: 4px
}

.custom-select-option:hover {
    background: rgba(233, 203, 143, .12);
    border-color: rgba(233, 203, 143, .28)
}

.custom-select-option.active {
    background: rgba(233, 203, 143, .22);
    border-color: rgba(233, 203, 143, .35)
}

.support-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 14px
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.profile-menu-link {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, .18);
    text-decoration: none;
    color: var(--text);
    font-family: "Cinzel", "Exo 2", sans-serif
}

.profile-menu-link.active {
    box-shadow: 0 0 0 2px rgba(233, 203, 143, .45)
}

.profile-empty {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 14px;
    color: var(--muted)
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 8px
}

.profile-info-label {
    color: var(--muted)
}

.profile-info-value {
    font-weight: 700
}

.profile-info-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.profile-info-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, .12)
}

.profile-info-title {
    padding: 10px 12px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid var(--line);
    font-family: "Cinzel", "Exo 2", sans-serif;
    color: #ff8d2d
}

.profile-info-table {
    display: flex;
    flex-direction: column
}

.profile-info-line {
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid rgba(222, 186, 120, .18)
}

.profile-info-line:first-child {
    border-top: 0
}

.profile-info-key {
    color: var(--muted)
}

.profile-info-val {
    font-weight: 700;
    line-height: 1.2
}

.profile-inline-btn {
    width: 180px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.1;
    min-height: 30px;
    text-align: center;
    justify-self: end
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px
}

.ticket-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, .2);
    text-decoration: none;
    color: var(--text)
}

.ticket-item.active {
    box-shadow: 0 0 0 2px rgba(233, 203, 143, .45)
}

.ticket-title {
    font-family: "Cinzel", "Exo 2", sans-serif;
    font-size: 15px
}

.ticket-meta {
    font-size: 12px;
    color: var(--muted)
}

.chat-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden
}

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    overflow: auto;
    padding-right: 4px
}

.chat-msg {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, .25)
}

.chat-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px
}

.chat-role-admin {
    color: var(--ok);
    font-weight: 700
}

.chat-image {
    margin-top: 8px;
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden
}

.chat-image img {
    display: block;
    max-width: 280px;
    max-height: 220px
}

.upload-dropzone {
    display: block;
    border: 1px dashed rgba(233, 203, 143, .55);
    border-radius: 12px;
    background: rgba(0, 0, 0, .2);
    padding: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: rgba(243, 211, 141, .9);
    background: rgba(52, 36, 20, .38)
}

.upload-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    opacity: 0;
    pointer-events: none
}

.upload-dropzone-title {
    display: block;
    font-weight: 700;
    color: var(--gold-1)
}

.upload-dropzone-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px
}

.support-image-modal-panel {
    position: relative;
    width: min(980px, 100%);
    padding: 12px
}

.support-image-modal-img {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, .35)
}

.modal-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(233, 203, 143, .45);
    background: rgba(14, 10, 7, .85);
    color: var(--gold-1);
    font-size: 20px;
    line-height: 1;
    cursor: pointer
}

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

.support-layout-chat {
    grid-template-columns: 320px minmax(0, 1fr);
    height: 100%;
    min-height: 0
}

.support-page-panel {
    margin-bottom: 0;
    height: clamp(390px, calc(100dvh - 360px), 620px);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.support-layout-chat>.card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden
}

.ticket-list-full {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto
}

.chat-log-telegram {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, .1);
    border: 1px solid rgba(222, 186, 120, .18);
    border-radius: 12px;
    padding: 10px;
    flex: 1;
    min-height: 0;
    overflow: auto
}

.chat-log-telegram,
.ticket-list-full {
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 203, 143, .58) rgba(14, 10, 7, .42)
}

.chat-log-telegram::-webkit-scrollbar,
.ticket-list-full::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

.chat-log-telegram::-webkit-scrollbar-track,
.ticket-list-full::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(14, 10, 7, .58), rgba(22, 15, 10, .52));
    border-left: 1px solid rgba(222, 186, 120, .16);
    border-radius: 10px
}

.chat-log-telegram::-webkit-scrollbar-thumb,
.ticket-list-full::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(243, 211, 141, .85), rgba(190, 143, 63, .85));
    border: 2px solid rgba(17, 12, 8, .88);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 232, 180, .25)
}

.chat-log-telegram::-webkit-scrollbar-thumb:hover,
.ticket-list-full::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(250, 221, 161, .95), rgba(201, 154, 76, .95))
}

.chat-log-telegram::-webkit-scrollbar-thumb:active,
.ticket-list-full::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(226, 189, 122, .95), rgba(171, 126, 53, .95))
}

.chat-msg-bubble {
    max-width: 78%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px
}

.chat-msg-bubble.peer {
    align-self: flex-start;
    background: rgba(0, 0, 0, .24)
}

.chat-msg-bubble.own {
    align-self: flex-end;
    background: rgba(28, 75, 49, .34);
    border-color: rgba(127, 221, 160, .4)
}

.chat-bubble-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px
}

.chat-bubble-text {
    white-space: pre-wrap;
    line-height: 1.35
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center
}

.chat-composer input[name="message"] {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    margin: 0
}

.chat-box>h3:first-child {
    margin-top: 0
}

.home-hero {
    display: block
}

.home-carousel {
    position: relative;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, .22)
}

.home-carousel-track {
    display: flex;
    height: 100%;
    transition: transform .45s ease
}

.home-slide {
    position: relative;
    min-width: 100%;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 28px
}

.home-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0
}

.home-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 6, 4, .12), rgba(8, 6, 4, .78))
}

.home-slide-content {
    position: relative;
    z-index: 2;
    max-width: 560px
}

.home-slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(233, 203, 143, .4);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(18, 13, 7, .58);
    color: #ffe7b2;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.home-slide-title {
    margin: 14px 0 10px;
    font-family: "Cinzel", "Exo 2", sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.06
}

.home-slide-text {
    margin: 0;
    max-width: 42ch;
    font-size: 18px;
    line-height: 1.55;
    color: #f1deba
}

.home-carousel-controls {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 10px;
    height: 44px;
    z-index: 2
}

.home-carousel-arrows {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 8px
}

.home-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(233, 203, 143, .45);
    background: rgba(18, 13, 7, .72);
    color: #ffe7b2;
    font-size: 18px;
    cursor: pointer
}

.home-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center
}

.home-carousel-dot {
    display: block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(233, 203, 143, .45);
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none
}

.home-carousel-dot.active {
    background: #ffe0a2;
    box-shadow: 0 0 14px rgba(255, 224, 162, .4)
}

.home-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
    gap: 14px;
    margin-top: 14px
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.news-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, .18);
    transform: translateY(0);
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
    background: rgba(0, 0, 0, .24)
}

.news-card-meta {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em
}

.news-card h3 {
    margin: 8px 0 10px;
    font-size: 24px;
    font-family: "Exo 2", "Segoe UI", Tahoma, sans-serif
}

.news-card p {
    margin: 0;
    line-height: 1.65;
    color: #ead8b3
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.faq-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, .18);
    text-decoration: none;
    color: var(--text)
}

.faq-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px
}

.faq-item span {
    display: block;
    color: var(--muted);
    line-height: 1.55
}

.admin-news-grid {
    display: grid;
    gap: 12px
}

.admin-news-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, .18)
}

.admin-news-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px
}

.admin-news-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px
}

.fade-enter {
    opacity: 0;
    transform: translateY(16px)
}

.fade-enter.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .42s ease, transform .42s ease
}

.table-loading {
    position: relative;
    overflow: hidden
}

.table-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    animation: tableShimmer 1.2s ease infinite
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--muted)
}

.footer-links a {
    color: var(--gold-1);
    text-decoration: underline
}

.footer-links a:hover {
    color: var(--gold-2)
}

.footer-links .footer-sep {
    color: var(--muted);
    user-select: none
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(10, 8, 6, .48);
    padding: 12px 26px;
    color: var(--muted);
    font-size: 13px;
    text-align: center
}

@keyframes tableShimmer {
    100% {
        transform: translateX(100%)
    }
}

@media (prefers-reduced-motion: reduce) {

    .nav-link,
    .btn,
    .news-card,
    .fade-enter {
        transition: none !important;
        animation: none !important
    }

    .table-loading::after {
        display: none
    }
}

@media (max-width:960px) {

    .support-layout,
    .home-info-grid,
    .profile-layout {
        grid-template-columns: 1fr
    }

    .support-layout-chat {
        height: auto;
        min-height: 0
    }

    .support-page-panel {
        height: auto;
        overflow: visible
    }

    .support-layout-chat>.card,
    .chat-box {
        overflow: visible
    }

    .profile-info-line {
        grid-template-columns: 1fr
    }

    .profile-inline-btn {
        width: 100%;
        justify-self: stretch
    }

    .home-carousel,
    .home-slide {
        min-height: 360px
    }
}

@media (max-width:980px) {
    .top {
        grid-template-columns: 1fr
    }

    .top-left,
    .top-center,
    .top-right {
        justify-self: stretch
    }

    .top-center {
        order: 2;
        align-items: stretch
    }

    .top-right {
        order: 3;
        justify-content: center
    }

    .online-hero {
        justify-content: center
    }
}

@media (max-width:760px) {
    body {
        padding: 12px
    }

    .shell {
        min-height: calc(100vh - 24px)
    }

    .top,
    .nav-wrap,
    .content,
    .footer {
        padding-left: 14px;
        padding-right: 14px
    }

    .top-center {
        width: 100%;
        align-items: stretch
    }

    .nav-right {
        margin-left: 0;
        width: 100%
    }

    .nav-right form,
    .nav-right .btn,
    .nav-right .status-chip,
    .nav-right .nav-link {
        width: 100%
    }

    .shop-balance-chip {
        width: 100%;
        white-space: normal
    }

    .home-slide {
        padding: 20px
    }

    .home-slide-title {
        font-size: 30px
    }

    .home-carousel-controls {
        left: 12px;
        right: 12px;
        bottom: 8px
    }

    .home-carousel-arrows {
        gap: 6px
    }

    .home-carousel-btn {
        width: 40px;
        height: 40px
    }

    .home-carousel-dots {
        bottom: 0
    }

    .social-links-head {
        justify-content: center
    }

    .toast-stack {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 40vh
    }

    .admin-account-meta {
        grid-template-columns: 1fr
    }

    .admin-action-form,
    .admin-ban-form {
        grid-template-columns: 1fr
    }

    .admin-account-modal-layout,
    .admin-profile-form .profile-info-line,
    .admin-ban-controls {
        grid-template-columns: 1fr
    }
}

.u-form-narrow {
    max-width: 560px;
    margin: 0 auto
}

.u-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap
}

.u-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
    color: var(--text);
    margin: 0
}

.u-input-auto {
    width: auto
}

.u-link-muted {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px
}

.u-m0 {
    margin: 0
}

.u-mt-0 {
    margin-top: 0
}

.u-mt-4 {
    margin-top: 4px
}

.u-mt-6 {
    margin-top: 6px
}

.u-mt-8 {
    margin-top: 8px
}

.u-mt-10 {
    margin-top: 10px
}

.u-mt-12 {
    margin-top: 12px
}

.u-mt-14 {
    margin-top: 14px
}

.u-mb-0 {
    margin-bottom: 0
}

.u-mb-6 {
    margin-bottom: 6px
}

.u-mb-8 {
    margin-bottom: 8px
}

.u-mb-10 {
    margin-bottom: 10px
}

.u-mb-12 {
    margin-bottom: 12px
}

.u-fs-12 {
    font-size: 12px
}

.u-fs-16 {
    font-size: 16px
}

.u-fs-22 {
    font-size: 22px
}

.u-fs-24 {
    font-size: 24px
}

.u-fs-28 {
    font-size: 28px
}

.u-flex {
    display: flex
}

.u-flex-wrap {
    flex-wrap: wrap
}

.u-items-center {
    align-items: center
}

.u-items-end {
    align-items: flex-end
}

.u-justify-between {
    justify-content: space-between
}

.u-justify-end {
    justify-content: flex-end
}

.u-justify-start {
    justify-content: flex-start
}

.u-gap-6 {
    gap: 6px
}

.u-gap-8 {
    gap: 8px
}

.u-gap-10 {
    gap: 10px
}

.u-gap-12 {
    gap: 12px
}

.u-whitespace-nowrap {
    white-space: nowrap
}

.u-pre-wrap {
    white-space: pre-wrap
}

.u-maxh-180 {
    max-height: 180px
}

.u-minw-140 {
    min-width: 140px
}

.u-maxw-220 {
    max-width: 220px
}

.u-w-80 {
    max-width: 80px
}

.u-w-120 {
    width: 120px
}

.u-w-180 {
    width: 180px
}

.u-flex-1-240 {
    flex: 1 1 240px
}

.u-flex-1-420 {
    flex: 1 1 420px;
    max-width: 520px
}

.u-flex-1-560 {
    flex: 1 1 560px
}

.u-grid-char-update {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center
}

.u-grid-skill {
    display: grid;
    grid-template-columns: 80px 80px 80px auto;
    gap: 6px;
    align-items: center
}

.u-grid-news-meta {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px;
    align-items: end
}

.u-muted-gold-link {
    color: #ffe4a6;
    font-weight: 700;
    text-decoration: none
}

.u-ml-2rem {
    margin-left: 2rem
}

