﻿:root {
    --bg: #121212;
    --panel: #1f1c1d;
    --panel-soft: #262223;
    --panel-input: #3a3a3a;
    --text: #ffffff;
    --muted: #9a9492;
    --accent: #ff8a00;
    --accent-strong: #ff8a00;
    --line: rgba(255, 152, 14, 0.7);
    --shadow: 0 8px 14px rgba(0, 0, 0, 0.45);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 180, 180, 0.7) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 7px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(180, 180, 180, 0.72);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 196, 196, 0.86);
}

body.ml-body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        linear-gradient(90deg, rgba(56, 36, 22, 0.58) 0%, rgba(222, 145, 69, 0.18) 38%, rgba(242, 191, 102, 0.06) 66%, rgba(234, 160, 76, 0.36) 100%),
        url("./background.png") center center / cover no-repeat fixed;
}

body.ml-body::after {
    content: "\00A9 MagmaLand - \0442\0432\043E\0439 \0020\043C\0438\0440 \0020\043F\0440\0438\043A\043B\044E\0447\0435\043D\0438\0439";
    position: fixed;
    right: 8px;
    bottom: 7px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 60;
    white-space: nowrap;
}

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

@keyframes ml-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ml-sidebar-in {
    from {
        opacity: 0;
        transform: translate(-26px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes ml-auth-stage-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 16px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.ml-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ml-main {
    flex: 1;
    padding: 32px;
}

.ml-main.is-auth {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.ml-auth-stage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw - 32px, 520px);
    display: block;
    z-index: 20;
    animation: ml-auth-stage-in 0.5s ease both;
}

.ml-auth-stage__content {
    position: relative;
}

.ml-auth-stage__flashes {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    gap: 8px;
}

.ml-sidebar {
    width: 214px;
    margin: 0;
    padding: 24px 14px 18px;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 22px 22px 0;
    background: rgba(24, 24, 24, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: min(760px, 86vh);
    flex: 0 0 214px;
    overflow: hidden;
    animation: ml-sidebar-in 0.7s ease both;
}

.ml-brand {
    display: grid;
    gap: 6px;
    justify-items: start;
    padding: 10px 12px 12px;
}

.ml-brand__logo {
    width: 154px;
    height: auto;
    display: block;
    margin-top: 12px;
}

.ml-brand__title,
.ml-brand__subtitle,
.ml-auth-card__brand {
    display: none;
}

.ml-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
}

.ml-nav__staff {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
}

.ml-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    margin-left: 0;
    border-radius: 14px;
    text-decoration: none;
    color: #efefef;
    background: transparent;
    font-size: 0.86rem;
    line-height: 1;
    transition: all .3s ease;
}

.ml-nav a:hover {
    color: #fff;
    width: min-content;
    margin-left: 10px;
}
.ml-nav a.is-active {
    margin-left: -30px;
    padding-left: 44px;    
    background: #ff8a00;
    color: #fff;
    width: 100%;
    box-shadow: 0 10px 22px rgba(255, 138, 0, 0.32);
}

.ml-nav__logout {
    margin-top: 0;
}

.ml-nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 0;
    margin-left: -6px;
    padding: 8px 10px;
    padding-left: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all .3s ease;
}

.ml-nav-user:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ml-nav-user__avatar {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    object-fit: cover;
    flex: 0 0 30px;
}

.ml-nav-user__meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ml-nav-user__meta span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.62rem;
    line-height: 1.1;
}

.ml-nav-user__meta strong {
    color: #fff;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-nav a::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.88);
    flex: 0 0 16px;
    align-self: center;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.ml-nav a[href*="page=dashboard"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="page=account"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0-4.5-4.5A4.5 4.5 0 0 0 12 12Zm0 2c-4.2 0-7.5 2.2-7.5 5v1h15v-1c0-2.8-3.3-5-7.5-5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0-4.5-4.5A4.5 4.5 0 0 0 12 12Zm0 2c-4.2 0-7.5 2.2-7.5 5v1h15v-1c0-2.8-3.3-5-7.5-5Z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="page=tickets"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' clip-rule='evenodd' d='M19 5H5a2 2 0 0 0-2 2v3a2 2 0 1 1 0 4v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3a2 2 0 1 1 0-4V7a2 2 0 0 0-2-2ZM11.5 8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' clip-rule='evenodd' d='M19 5H5a2 2 0 0 0-2 2v3a2 2 0 1 1 0 4v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3a2 2 0 1 1 0-4V7a2 2 0 0 0-2-2ZM11.5 8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="page=tickets_staff"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm10 1a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM7 13c2.67 0 8 1.34 8 4v2H-1v-2c0-2.66 5.33-4 8-4Zm10 .5c2.33 0 7 1.17 7 3.5V19h-7.5v-2c0-1.19-.63-2.23-1.7-3.05.78-.28 1.63-.45 2.2-.45Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm10 1a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM7 13c2.67 0 8 1.34 8 4v2H-1v-2c0-2.66 5.33-4 8-4Zm10 .5c2.33 0 7 1.17 7 3.5V19h-7.5v-2c0-1.19-.63-2.23-1.7-3.05.78-.28 1.63-.45 2.2-.45Z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="page=admin"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2 2.1 4.3 4.7.7-3.4 3.4.8 4.8-4.2-2.2-4.2 2.2.8-4.8L5.2 7l4.7-.7L12 2Zm-7 13h14v2H5v-2Zm2 4h10v2H7v-2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2 2.1 4.3 4.7.7-3.4 3.4.8 4.8-4.2-2.2-4.2 2.2.8-4.8L5.2 7l4.7-.7L12 2Zm-7 13h14v2H5v-2Zm2 4h10v2H7v-2Z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="page=store"]::before,
.ml-nav a[href*="page=admin_users"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16l-1.3 10.1a2 2 0 0 1-2 1.9H7.3a2 2 0 0 1-2-1.9ZM9 4a3 3 0 0 1 6 0v2h-2V4a1 1 0 0 0-2 0v2H9Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16l-1.3 10.1a2 2 0 0 1-2 1.9H7.3a2 2 0 0 1-2-1.9ZM9 4a3 3 0 0 1 6 0v2h-2V4a1 1 0 0 0-2 0v2H9Z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="page=sessions"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v3H3V6a2 2 0 0 1 2-2Zm-2 7h18v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm4 2v2h5v-2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v3H3V6a2 2 0 0 1 2-2Zm-2 7h18v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm4 2v2h5v-2Z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="page=reviews"]::before,
.ml-nav a[href*="page=admin_reviews"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 17.3-6.2 3.3 1.2-6.9L2 9l7-1L12 1.7 15 8l7 1-5 4.7 1.2 6.9z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 17.3-6.2 3.3 1.2-6.9L2 9l7-1L12 1.7 15 8l7 1-5 4.7 1.2 6.9z'/%3E%3C/svg%3E");
}

.ml-nav a[href*="action=logout"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5v-2H5V6h5Zm4.6 3.4L13.2 8.8l2.2 2.2H8v2h7.4l-2.2 2.2 1.4 1.4L19.2 12Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5v-2H5V6h5Zm4.6 3.4L13.2 8.8l2.2 2.2H8v2h7.4l-2.2 2.2 1.4 1.4L19.2 12Z'/%3E%3C/svg%3E");
}

.ml-auth-card {
    width: 100%;
    max-width: none;
    padding: 34px 40px 28px;
    border-radius: var(--radius-xl);
    background: rgba(31, 28, 29, 0.96);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.68);
}

.ml-page-login,
.ml-page-register,
.ml-page-reset {
    overflow: hidden;
    height: 100vh;
}

.ml-page-login .ml-shell,
.ml-page-register .ml-shell,
.ml-page-reset .ml-shell {
    min-height: 100vh;
    height: 100vh;
}

.ml-page-login .ml-main.is-auth,
.ml-page-register .ml-main.is-auth,
.ml-page-reset .ml-main.is-auth {
    min-height: 100vh;
    padding: 0;
}

.ml-auth-card__logo {
    width: 312px;
    display: block;
    margin: 0 auto 20px;
}

.ml-auth-card h1 {
    margin: 0 0 18px;
    font-size: 1.58rem;
    line-height: 1.1;
    color: #fff;
    text-align: center;
}

.ml-form {
    display: grid;
    gap: 12px;
}

.ml-field {
    display: grid;
    gap: 6px;
}

.ml-field > span {
    color: rgb(186 186 186 / 90%);
    font-size: 0.8rem;
}

.ml-field.is-disabled > span {
    color: rgba(186, 186, 186, 0.48);
}

.ml-field.is-disabled input,
.ml-field.is-disabled textarea,
.ml-field.is-disabled select,
.ml-field.is-disabled .ml-select__trigger {
    color: rgba(255, 255, 255, 0.34);
    background: rgba(71, 71, 71, 0.42);
    box-shadow: none !important;
    cursor: not-allowed;
}

.ml-field__split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ml-field__split small {
    font-size: 0.85rem;
}

.ml-help {
    position: relative;
    color: rgba(255, 255, 255, 0.46);
    cursor: help;
}

.ml-help::after {
    content: attr(data-help);
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 250px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.96);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.35;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease;
}

.ml-help:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.ml-password-field {
    position: relative;
}

.ml-password-field input {
    padding-right: 58px;
}

.ml-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-height: 38px;
    width: 38px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.88)' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 12s3.8-6 10.5-6 10.5 6 10.5 6-3.8 6-10.5 6S1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.ml-password-toggle.is-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,152,14,0.96)' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 12s3.8-6 10.5-6 10.5 6 10.5 6-3.8 6-10.5 6S1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
}

.ml-password-toggle:hover {
    transform: translateY(-50%);
    filter: none;
    background-color: rgba(255, 255, 255, 0.12);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #fff;
    background: rgba(71, 71, 71, 0.86);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

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

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 46px;
    color: #fff;
    background-image:
        linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select.is-placeholder {
    color: rgba(255, 255, 255, 0.38);
}

select option {
    color: #fff;
    background: #2b2829;
}

select option[disabled][hidden] {
    display: none;
}

.ml-native-select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    inset: auto !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.ml-select {
    position: relative;
    width: 100%;
}

.ml-select[hidden] {
    display: none !important;
}

.ml-select__trigger {
    width: 100%;
    min-height: 56px;
    padding: 14px 46px 14px 18px;
    border: 0;
    border-radius: var(--radius-md);
    background: rgba(71, 71, 71, 0.86);
    color: #fff;
    font-weight: 400;
    text-align: left;
    box-shadow: none;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ml-select.is-placeholder .ml-select__trigger {
    color: rgba(255, 255, 255, 0.38);
}

.ml-select.is-disabled .ml-select__trigger {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.ml-select__trigger:hover,
.ml-select__trigger:focus-visible {
    transform: none;
    filter: none;
}

.ml-select__trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.72);
    border-bottom: 2px solid rgba(255, 255, 255, 0.72);
    transform: translateY(-60%) rotate(45deg);
    transition: transform .2s ease;
}

.ml-select.is-open .ml-select__trigger::after {
    transform: translateY(-30%) rotate(225deg);
}

.ml-select__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 15;
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(32, 29, 30, 0.98);
    border: 1px solid rgba(255, 138, 0, 0.38);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 138, 0, 0.22), 0 0 18px rgba(255, 138, 0, 0.18);
    max-height: 240px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 138, 0, 0.72) transparent;
}

.ml-select__menu[hidden] {
    display: none;
}

.ml-select__menu::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    -webkit-appearance: none;
}

.ml-select__menu::-webkit-scrollbar-track {
    background: transparent;
}

.ml-select__menu::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.ml-select__menu::-webkit-scrollbar-button:single-button,
.ml-select__menu::-webkit-scrollbar-button:start,
.ml-select__menu::-webkit-scrollbar-button:end,
.ml-select__menu::-webkit-scrollbar-button:decrement,
.ml-select__menu::-webkit-scrollbar-button:increment {
    display: none;
    width: 0;
    height: 0;
}

.ml-select__menu::-webkit-scrollbar-thumb {
    background: rgba(255, 138, 0, 0.72);
    border-radius: 999px;
}

.ml-select__menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 138, 0, 0.92);
}

.ml-select__option {
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-weight: 500;
    text-align: left;
    box-shadow: none;
}

.ml-select__option:hover,
.ml-select__option.is-selected {
    background: rgba(255, 138, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.28);
}

input:hover,
textarea:hover,
select:hover,
.ml-select__trigger:hover,
.ml-field:hover input,
.ml-field:hover textarea,
.ml-field:hover select,
.ml-field:hover .ml-select__trigger {
    box-shadow: 0 0 0 1px #ff8a00, 0 0 14px rgba(255, 138, 0, 0.24);
}

input:focus,
textarea:focus,
select:focus,
.ml-field:focus-within input,
.ml-field:focus-within textarea,
.ml-field:focus-within select,
.ml-field:focus-within .ml-select__trigger,
.ml-select.is-open .ml-select__trigger {
    box-shadow: 0 0 0 1px #ff8a00, 0 0 14px rgba(255, 138, 0, 0.24);
}

button {
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #ffa014 0%, #ff8a00 100%);
    box-shadow: 0 12px 24px rgba(255, 138, 0, 0.26);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.ml-auth-links {
    margin: 16px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}

.ml-auth-links a {
    color: var(--accent);
    text-decoration: none;
}

.ml-auth-links--secondary {
    margin-top: 4px;
}

.ml-auth-links--secondary a {
    color: rgba(255, 255, 255, 0.42);
}

.ml-flash {
    margin-bottom: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    backdrop-filter: blur(8px);
}

.ml-flash--success {
    background: rgba(66, 164, 94, 0.18);
    border: 1px solid rgba(66, 164, 94, 0.32);
}

.ml-flash--error {
    background: rgba(217, 78, 78, 0.56);
    border: 1px solid rgba(217, 78, 78, 0.64);
}

.ml-main.is-auth .ml-flash {
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.ml-page-dashboard .ml-main,
.ml-page-account .ml-main,
.ml-page-admin .ml-main,
.ml-page-ticket .ml-main,
.ml-page-store .ml-main,
.ml-page-sessions .ml-main,
.ml-page-reviews .ml-main,
.ml-page-admin_users .ml-main,
.ml-page-admin_reviews .ml-main {
    margin-left: 228px;
    padding-top: 18px;
}

.ml-page-tickets .ml-main {
    margin-left: 228px;
    padding-top: 18px;
    margin-top: 0;
}

.ml-page-tickets_staff .ml-main {
    margin-left: 228px;
    padding-top: 18px;
    margin-top: 0;
}

.ml-dashboard {
    display: grid;
    gap: 14px;
}

.ml-page-dashboard {
    overflow-y: hidden;
}

.ml-page-dashboard .ml-shell {
    align-items: center;
}

.ml-hero__topline {
    display: block;
    margin-bottom: 12px;
}

.ml-hero__headline {
    color: #fff;
    font-size: 1.85rem;
    line-height: 1.1;
    font-weight: 600;
}

.ml-hero__headline strong {
    color: var(--accent);
    font-weight: 700;
}

.ml-dashboard__actions {
    padding: 20px 20px 22px;
    border-radius: 28px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
}

.ml-dashboard__actions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ml-dashboard__actions-title::before {
    content: "";
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-self: center;
    transform: translateY(1px);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffbe63 0%, #ff8a00 100%);
    box-shadow: 0 10px 18px rgba(255, 138, 0, 0.28);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 32px 32px;
    mask-image: url("data:image/svg+xml,%3Csvg fill='black' viewBox='-4 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M23.96 10.92c-0.56-1.28-2.64-1.52-6.2-0.72-1.48-1.44-3.48-2.32-5.72-2.32-4.48-0.040-8.12 3.64-8.12 8.12 0 0.040 0 0.080 0 0.12-3.040 2-4.32 3.68-3.76 4.96 0.36 0.84 1.4 1.2 2.76 1.2 1 0 2.2-0.2 3.44-0.48 1.48 1.44 3.48 2.36 5.72 2.36 4.48 0 8.16-3.64 8.16-8.16 0-0.040 0-0.080 0-0.12 2.48-1.68 4.36-3.52 3.72-4.96zM12.080 9.52c3.24 0 5.92 2.4 6.4 5.48-1.48 0.92-3.32 1.88-5.6 2.84-2.24 0.96-4.24 1.64-5.92 2.080-0.84-1.080-1.36-2.44-1.36-3.92-0.040-3.56 2.88-6.48 6.48-6.48zM1.72 20.44c0.040-0.28 0.56-1.12 2.44-2.44 0.2 0.84 0.56 1.64 1 2.36-1.88 0.36-3.12 0.32-3.44 0.080zM12.080 22.48c-1.4 0-2.68-0.44-3.72-1.2 1.84-0.56 3.72-1.24 5.2-1.88s3.24-1.48 4.92-2.44c-0.48 3.12-3.16 5.52-6.4 5.52zM19.96 14c-0.2-0.84-0.56-1.64-1-2.36 2.28-0.44 3.24-0.24 3.44-0.080-0.040 0.44-0.88 1.32-2.44 2.44z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 32px 32px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg fill='black' viewBox='-4 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M23.96 10.92c-0.56-1.28-2.64-1.52-6.2-0.72-1.48-1.44-3.48-2.32-5.72-2.32-4.48-0.040-8.12 3.64-8.12 8.12 0 0.040 0 0.080 0 0.12-3.040 2-4.32 3.68-3.76 4.96 0.36 0.84 1.4 1.2 2.76 1.2 1 0 2.2-0.2 3.44-0.48 1.48 1.44 3.48 2.36 5.72 2.36 4.48 0 8.16-3.64 8.16-8.16 0-0.040 0-0.080 0-0.12 2.48-1.68 4.36-3.52 3.72-4.96zM12.080 9.52c3.24 0 5.92 2.4 6.4 5.48-1.48 0.92-3.32 1.88-5.6 2.84-2.24 0.96-4.24 1.64-5.92 2.080-0.84-1.080-1.36-2.44-1.36-3.92-0.040-3.56 2.88-6.48 6.48-6.48zM1.72 20.44c0.040-0.28 0.56-1.12 2.44-2.44 0.2 0.84 0.56 1.64 1 2.36-1.88 0.36-3.12 0.32-3.44 0.080zM12.080 22.48c-1.4 0-2.68-0.44-3.72-1.2 1.84-0.56 3.72-1.24 5.2-1.88s3.24-1.48 4.92-2.44c-0.48 3.12-3.16 5.52-6.4 5.52zM19.96 14c-0.2-0.84-0.56-1.64-1-2.36 2.28-0.44 3.24-0.24 3.44-0.080-0.040 0.44-0.88 1.32-2.44 2.44z'/%3E%3C/svg%3E");
}

.ml-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
}

.ml-dashboard-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    min-height: 118px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    background: rgba(70, 70, 70, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(85, 85, 85, 0.5);
    transition: all 0.3s ease    
}

.ml-dashboard-card:hover {
    border: 2px solid #ff8a00;
    box-shadow: 0px 0px 7px 0px #ff8a00;
    scale: 102%;
}

.ml-dashboard-card strong {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.ml-dashboard-card strong::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #dddddd 100%);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.12);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 22px 22px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 22px 22px;
}

.ml-dashboard-card span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.3;
}

.ml-dashboard-card--account strong::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Zm0 2c-4.42 0-8 2.02-8 4.5V21h16v-2.5C20 16.02 16.42 14 12 14Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Zm0 2c-4.42 0-8 2.02-8 4.5V21h16v-2.5C20 16.02 16.42 14 12 14Z'/%3E%3C/svg%3E");
}

.ml-dashboard-card--tickets strong::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' clip-rule='evenodd' d='M19 5H5a2 2 0 0 0-2 2v3a2 2 0 1 1 0 4v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3a2 2 0 1 1 0-4V7a2 2 0 0 0-2-2ZM11.5 8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' clip-rule='evenodd' d='M19 5H5a2 2 0 0 0-2 2v3a2 2 0 1 1 0 4v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3a2 2 0 1 1 0-4V7a2 2 0 0 0-2-2ZM11.5 8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 4a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z'/%3E%3C/svg%3E");
}

.ml-dashboard-card--reviews strong::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2.5 2.78 5.63 6.22.9-4.5 4.38 1.06 6.2L12 16.68 6.44 19.6l1.06-6.2L3 9.03l6.22-.9L12 2.5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2.5 2.78 5.63 6.22.9-4.5 4.38 1.06 6.2L12 16.68 6.44 19.6l1.06-6.2L3 9.03l6.22-.9L12 2.5Z'/%3E%3C/svg%3E");
}

.ml-dashboard-card--sessions strong::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 4a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h5v2H8v2h8v-2h-2v-2h5a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H5Zm0 2h14v8H5V6Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 4a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h5v2H8v2h8v-2h-2v-2h5a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H5Zm0 2h14v8H5V6Z'/%3E%3C/svg%3E");
}

.ml-hero,
.ml-panel,
.ml-card,
.ml-user-card,
.ml-ticket-row,
.ml-chat,
.ml-modal__card,
.ml-profile-card,
.ml-auth-card,
.ml-table__row,
.ml-stats-grid article {
    background: rgba(30, 30, 30, 0.9);
    box-shadow: var(--shadow);
    animation: ml-fade-up 0.55s ease both;
}

.ml-dashboard,
.ml-section,
.ml-table,
.ml-form,
.ml-auth-links,
.ml-section-head {
    animation: ml-fade-in 0.45s ease both;
}

.ml-brand,
.ml-nav a,
.ml-nav-user,
.ml-nav__logout,
.ml-hero__topline,
.ml-hero__headline,
.ml-hero p,
.ml-dashboard__actions,
.ml-dashboard__actions-title,
.ml-dashboard__grid,
.ml-dashboard-card {
    animation: ml-fade-up 0.5s ease both;
}

.ml-dashboard-card:nth-child(1),
.ml-stats-grid article:nth-child(1),
.ml-cards > *:nth-child(1),
.ml-user-grid > *:nth-child(1) {
    animation-delay: 0.04s;
}

.ml-dashboard-card:nth-child(2),
.ml-stats-grid article:nth-child(2),
.ml-cards > *:nth-child(2),
.ml-user-grid > *:nth-child(2) {
    animation-delay: 0.08s;
}

.ml-dashboard-card:nth-child(3),
.ml-stats-grid article:nth-child(3),
.ml-cards > *:nth-child(3),
.ml-user-grid > *:nth-child(3) {
    animation-delay: 0.12s;
}

.ml-dashboard-card:nth-child(4),
.ml-stats-grid article:nth-child(4),
.ml-cards > *:nth-child(4),
.ml-user-grid > *:nth-child(4) {
    animation-delay: 0.16s;
}

.ml-nav a:nth-child(1),
.ml-nav-user,
.ml-hero__topline {
    animation-delay: 0.04s;
}

.ml-nav a:nth-child(2),
.ml-hero__headline {
    animation-delay: 0.08s;
}

.ml-nav a:nth-child(3),
.ml-hero p {
    animation-delay: 0.12s;
}

.ml-nav a:nth-child(4),
.ml-dashboard__actions-title {
    animation-delay: 0.16s;
}

.ml-nav a:nth-child(5) {
    animation-delay: 0.2s;
}

.ml-nav a:nth-child(6),
.ml-nav__logout {
    animation-delay: 0.24s;
}

.ml-nav a:nth-child(7) {
    animation-delay: 0.28s;
}

.ml-nav a:nth-child(8) {
    animation-delay: 0.32s;
}

.ml-dashboard__actions,
.ml-dashboard__grid {
    animation-delay: 0s;
}

.ml-hero {
    display: grid;
    gap: 22px;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    border: 2px solid #ff8a00;
}

.ml-hero h1,
.ml-section h1,
.ml-panel h3,
.ml-card h3 {
    margin: 0;
    color: #fff;
}

.ml-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 740px;
}

.ml-stats-grid,
.ml-cards,
.ml-user-grid {
    display: grid;
    gap: 16px;
}

.ml-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ml-stats-grid article,
.ml-card,
.ml-user-card {
    padding: 22px;
    border-radius: 24px;
}

.ml-stats-grid strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.ml-minecraft-prefix {
    font-family: "Press Start 2P", "Minecraft", monospace;
    font-size: 1.6rem !important;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
    transform: translateY(-3px);
}

.ml-stats-grid span,
.ml-balance-card,
.ml-message__head span,
.ml-message__audit,
.ml-table__row span,
small {
    color: var(--muted);
}

.ml-section {
    display: grid;
    gap: 22px;
}

.ml-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ml-section-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.ml-profile,
.ml-ticket-meta {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ml-profile-card,
.ml-panel {
    padding: 24px;
    border-radius: 30px;
}

.ml-profile-card {
    display: flex;
    gap: 18px;
    align-items: center;
}

.ml-profile-card img,
.ml-review-head img,
.ml-user-card img,
.ml-message img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}

.ml-ticket-list,
.ml-table {
    display: grid;
    gap: 12px;
}

.ml-ticket-list--panel {
    padding: 16px;
    border-radius: 28px;
    background: rgba(30, 30, 30, 0.9);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ml-ticket-filters {
    display: grid;
    grid-template-columns: minmax(300px, 360px);
    gap: 10px;
    margin-left: auto;
    align-self: end;
    margin-top: 10px;
}

.ml-ticket-search {
    position: relative;
}

.ml-ticket-search input[type="search"] {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding-right: 46px;
    margin-bottom: -16px;
}

.ml-ticket-search input[type="search"]::-webkit-search-cancel-button,
.ml-ticket-search input[type="search"]::-webkit-search-decoration,
.ml-ticket-search input[type="search"]::-webkit-search-results-button,
.ml-ticket-search input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.ml-ticket-search__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, background-color .2s ease;
}

.ml-ticket-search__clear::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.82);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12 5.7 16.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12 5.7 16.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ml-ticket-search__clear:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ml-ticket-search__clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ml-ticket-results {
    margin: -12px 0 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
}

.ml-ticket-empty {
    margin: 0;
    padding: 22px 12px 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
}

.ml-ticket-limit-note {
    margin: 0 0 12px;
    color: rgba(255, 196, 124, 0.78);
    font-size: 0.95rem;
    line-height: 1.35;
}

.ml-ticket-limit-inline {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: rgba(255, 196, 124, 0.82);
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    align-self: auto;
    transform: translateY(2px);
}

button[disabled],
.ml-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.ml-ticket-row,
.ml-table__row {
    padding: 18px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    display: grid;
    gap: 10px;
}

.ml-ticket-row {
    grid-template-columns: 1fr;
    align-items: start;
    background: rgba(31, 28, 29, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 22px;
}

.ml-ticket-row strong {
    display: block;
    font-size: 1.14rem;
    line-height: 1.4;
}

.ml-ticket-row span {
    color: var(--muted);
    line-height: 1.35;
}

.ml-ticket-row__top {
    display: block;
}

.ml-ticket-row__top-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ml-ticket-row__tags {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.ml-ticket-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: #fffdf9 !important;
}

.ml-ticket-tag--status-open {
    background: rgba(255, 138, 0, 0.24);
    border: 1px solid rgba(255, 176, 76, 0.42);
}

.ml-ticket-tag--status-closed,
.ml-ticket-tag--status-resolved {
    background: rgba(79, 209, 140, 0.22);
    border: 1px solid rgba(124, 234, 171, 0.38);
}

.ml-ticket-tag--priority-low {
    background: rgba(86, 204, 242, 0.22);
    border: 1px solid rgba(136, 224, 255, 0.38);
}

.ml-ticket-tag--priority-medium {
    background: rgba(255, 193, 7, 0.22);
    border: 1px solid rgba(255, 215, 91, 0.4);
}

.ml-ticket-tag--priority-high {
    background: rgba(235, 87, 87, 0.24);
    border: 1px solid rgba(255, 128, 128, 0.42);
}

.ml-ticket-tag--awaiting-user {
    background: rgba(255, 138, 0, 0.28);
    border: 1px solid rgba(255, 184, 94, 0.44);
}

.ml-ticket-row.is-awaiting-user {
    border-color: rgba(255, 138, 0, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.16), 0 18px 28px rgba(0, 0, 0, 0.22);
}

.ml-ticket-row__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.ml-ticket-row__meta span {
    color: rgba(255, 246, 236, 0.92);
}

.ml-ticket-row__subject {
    margin: -2px 0 2px;
    color: #ff8a00;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

.ml-ticket-row__preview {
    margin: 0;
    color: #f3ebe2;
    line-height: 1.5;
    opacity: 0.92;
}

.ml-tickets-hero {
    gap: 0;
    padding: 24px 26px 26px;
}

.ml-tickets-hero p {
    max-width: 760px;
    margin-bottom: 20px;
}

.ml-tickets-hero__actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    min-height: 44px;
}

.ml-ticket-create-btn {
    min-height: 44px;
    height: 44px;
    padding: 0 18px;
    font-size: 0.95rem;
    border-radius: 16px;
    flex: 0 0 auto;
}

.ml-table__row {
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
}

.ml-table__head {
    color: var(--accent);
    font-weight: 700;
}

.ml-chat {
    gap: 16px;
    padding: 22px;
    border-radius: 30px;
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ml-message {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.ml-message.is-self {
    grid-template-columns: minmax(0, 1fr) 56px;
}

.ml-message.is-self > img {
    order: 2;
}

.ml-message__bubble {
    padding: 14px 16px;
    border-radius: 20px 20px 20px 8px;
    background: rgba(49, 45, 46, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ml-message.is-self .ml-message__bubble {
    border-radius: 20px 20px 8px 20px;
    background: rgba(255, 152, 14, 0.16);
    border: 1px solid rgba(255, 152, 14, 0.34);
}

.ml-message__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ml-message__body {
    line-height: 1.5;
}

.ml-message__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ml-message__actions form {
    display: flex;
    gap: 8px;
}

.ml-chat-form {
    display: grid;
    gap: 12px;
}

.ml-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ml-badges span,
.ml-balance-card {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 152, 14, 0.1);
    border: 1px solid rgba(255, 152, 14, 0.24);
}

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

.ml-attachment {
    display: grid;
    gap: 8px;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    background: rgba(49, 45, 46, 0.98);
}

.ml-attachment img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

.ml-user-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.ml-user-card {
    display: grid;
    gap: 10px;
}

.ml-modal {
    position: fixed;
    inset: 0;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    place-items: center;
    z-index: 40;
}

.ml-modal.is-open,
.ml-modal.is-closing {
    display: grid;
}

.ml-modal__floating-flashes {
    position: absolute;
    top: 12px;
    right: 58px;
    width: min(100%, 420px);
    display: grid;
    gap: 8px;
    pointer-events: none;
    z-index: 4;
}

.ml-modal__floating-flashes .ml-flash {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    animation: ml-modal-flash-in .2s ease both;
}

.ml-modal__floating-flashes .ml-flash.is-leaving {
    animation: ml-modal-flash-out .18s ease both;
}

@keyframes ml-modal-flash-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ml-modal-flash-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.ml-modal.is-open {
    animation: ml-modal-fade-in .22s ease both;
}

.ml-modal.is-closing {
    animation: ml-modal-fade-out .22s ease both;
}

.ml-modal__card {
    position: relative;
    width: min(100%, 680px);
    padding: 28px;
    border-radius: 30px;
    background: rgb(31 28 29);
}

.ml-modal.is-open .ml-modal__card {
    animation: ml-modal-card-in .22s ease both;
}

.ml-modal.is-closing .ml-modal__card {
    animation: ml-modal-card-out .22s ease both;
}

.ml-modal__card--ticket-create {
    width: min(100%, 980px);
    max-height: min(90vh, 840px);
    overflow: auto;
    padding: 20px 24px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 138, 0, 0.72) transparent;
}

.ml-modal__card--ticket-create::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    -webkit-appearance: none;
}

.ml-modal__card--ticket-create::-webkit-scrollbar-track {
    background: transparent;
}

.ml-modal__card--ticket-create::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.ml-modal__card--ticket-create::-webkit-scrollbar-button:single-button,
.ml-modal__card--ticket-create::-webkit-scrollbar-button:start,
.ml-modal__card--ticket-create::-webkit-scrollbar-button:end,
.ml-modal__card--ticket-create::-webkit-scrollbar-button:decrement,
.ml-modal__card--ticket-create::-webkit-scrollbar-button:increment {
    display: none;
    width: 0;
    height: 0;
}

.ml-modal__card--ticket-create::-webkit-scrollbar-thumb {
    background: rgba(255, 138, 0, 0.72);
    border-radius: 999px;
}

.ml-modal__card--ticket-create::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 138, 0, 0.92);
}

.ml-modal__card--ticket-create > h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.ml-modal[data-ticket-step]:not([data-ticket-step="category"]) .ml-modal__card--ticket-create {
    padding-top: 16px;
}

.ml-modal[data-ticket-step]:not([data-ticket-step="category"]) .ml-modal__card--ticket-create > h2 {
    position: absolute;
    top: 12px;
    right: 74px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 38px;
    z-index: 1;
}

.ml-modal__card--ticket-create input,
.ml-modal__card--ticket-create textarea,
.ml-modal__card--ticket-create select {
    min-height: 50px;
    padding: 12px 16px;
}

.ml-modal__card--ticket-create textarea {
    min-height: 96px;
}

.ml-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 12;
    min-height: 38px;
    min-width: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: transparent;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ml-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.ml-modal__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.34);
}

.ml-modal__close::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12 5.7 16.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12 5.7 16.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ml-ticket-wizard {
    gap: 14px;
}

.ml-ticket-step {
    display: none;
    gap: 14px;
}

.ml-ticket-step.is-active {
    display: grid;
    animation: ml-ticket-step-in .2s ease both;
}

.ml-ticket-step[data-ticket-step="bug"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 12px;
    position: relative;
}

.ml-ticket-step[data-ticket-step="bug"]::before {
    content: "";
    position: absolute;
    top: 74px;
    bottom: 188px;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 138, 0, 0.18) 50%, rgba(255, 255, 255, 0.04) 100%);
    transform: translateX(-50%);
    pointer-events: none;
}

.ml-ticket-step[data-ticket-step="bug"] > .ml-ticket-step__head,
.ml-ticket-step[data-ticket-step="bug"] > .ml-ticket-step__actions,
.ml-ticket-step[data-ticket-step="bug"] > .ml-field:has([name="description"]) {
    grid-column: 1 / -1;
}

.ml-ticket-step[data-ticket-step="bug"] > [data-mod-loader-other] {
    grid-column: auto;
}

.ml-ticket-step[data-ticket-step="bug"] > .ml-field:has([name="description"]) textarea {
    min-height: 88px;
    width: 100%;
}

.ml-ticket-step__head {
    display: grid;
    gap: 6px;
}

.ml-modal[data-ticket-step]:not([data-ticket-step="category"]) .ml-ticket-step__head {
    margin-top: 12px;
}

.ml-ticket-step__head span {
    color: rgba(255, 199, 132, 0.72);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: -10px;
}

.ml-ticket-step__head h3 {
    margin: -6px 0 0;
    color: #fff;
    font-size: 1.24rem;
}

.ml-ticket-step__head p {
    display: none;
}

.ml-ticket-step__error {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(183, 44, 44, 0.18);
    border: 1px solid rgba(255, 107, 107, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.08);
}

.ml-ticket-step__error p {
    margin: 0;
    color: #ffb6b6;
    line-height: 1.45;
}

.ml-ticket-category-grid,
.ml-ticket-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    z-index: 20;
}

.ml-ticket-category-card,
.ml-ticket-role-card {
    display: grid;
    gap: 8px;
    padding: 14px 15px 16px;
    text-align: left;
    border-radius: 18px;
    background: rgba(36, 33, 34, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.ml-ticket-category-card strong,
.ml-ticket-role-card strong {
    font-size: 1rem;
    color: #fff;
}

.ml-ticket-category-card span,
.ml-ticket-role-card span {
    color: var(--muted);
    line-height: 1.3;
    font-size: 0.92rem;
}

.ml-ticket-role-card:hover {
    border-color: rgba(255, 138, 0, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.22), 0 18px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.ml-ticket-category-grid .ml-ticket-category-card {
    opacity: 0.62;
}

.ml-ticket-category-grid .ml-ticket-category-card.is-selected {
    opacity: 1;
    background: rgba(49, 45, 46, 0.96);
    border-color: rgba(255, 138, 0, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.22), 0 18px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.ml-ticket-category-grid .ml-ticket-category-card:hover:not(.is-selected) {
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
}

.ml-ticket-step__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ml-ticket-step__actions button:first-child:last-child {
    margin-left: auto;
}

.ml-ticket-rules-box {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(49, 45, 46, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ml-ticket-rules-box p {
    margin: 0;
    line-height: 1.5;
}

.ml-ticket-auto-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ml-ticket-auto-meta article {
    display: grid;
    gap: 4px;
}

.ml-ticket-auto-meta strong {
    color: #fff;
    font-size: 0.92rem;
}

.ml-ticket-auto-meta span {
    color: var(--muted);
}

.ml-ticket-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ml-ticket-upload-card {
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: 10px;
    min-height: 220px;
    padding: 22px 20px;
    border-radius: 24px;
    background: rgba(49, 45, 46, 0.92);
    border: 2px solid rgba(255, 138, 0, 0.42);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ml-ticket-upload-card:hover,
.ml-ticket-upload-card.is-dragover {
    border-color: #ff8a00;
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.24), 0 0 18px rgba(255, 138, 0, 0.18);
    background: rgba(56, 50, 45, 0.96);
}

.ml-ticket-upload-card strong {
    color: #fff;
    font-size: 1.08rem;
}

.ml-ticket-upload-card span,
.ml-ticket-upload-note {
    color: var(--muted);
    line-height: 1.4;
}

.ml-ticket-upload-card small {
    display: block;
    margin-top: -2px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.35;
    font-size: 0.82rem;
}

.ml-ticket-upload-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ml-ticket-upload-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    max-width: 260px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255, 138, 0, 0.12);
    border: 2px dashed rgba(255, 138, 0, 0.52);
    color: #fff !important;
    font-weight: 700;
}

.ml-ticket-upload-tools {
    display: flex;
    justify-content: center;
}

.ml-ticket-files-preview {
    min-height: 46px;
    height: 46px;
    padding: 0 20px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

.ml-ticket-files-preview.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ml-ticket-submit-state {
    position: absolute;
    right: 74px;
    top: 18px;
    z-index: 8;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(49, 45, 46, 0.96);
    border: 1px solid rgba(255, 138, 0, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.16), 0 12px 28px rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 0.92rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.ml-modal[data-ticket-step]:not([data-ticket-step="category"]) .ml-modal__card--ticket-create > h2 {
    pointer-events: none;
}

.ml-ticket-submit-state.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ml-modal__card.is-animating-height {
    overflow: hidden !important;
}

.ml-ticket-files-list {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(49, 45, 46, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(6px);
    will-change: opacity, transform;
    transition: opacity .18s ease, transform .18s ease;
}

.ml-ticket-files-list[hidden] {
    display: none !important;
}

.ml-ticket-files-list.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ml-ticket-files-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    line-height: 1.35;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity .18s ease, transform .18s ease;
}

.ml-ticket-files-list__item.is-removing {
    opacity: 0;
    transform: translateX(10px) scale(0.995);
}

.ml-ticket-files-list__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-ticket-files-list__remove {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 138, 0, 0.22);
    background: rgba(255, 138, 0, 0.1);
    box-shadow: none;
    position: relative;
}

.ml-ticket-files-list__remove::before,
.ml-ticket-files-list__remove::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
}

.ml-ticket-files-list__remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ml-ticket-files-list__remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ml-ticket-files-list__remove:hover {
    border-color: #ff8a00;
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.24), 0 0 16px rgba(255, 138, 0, 0.18);
    transform: none;
}

.ml-btn--danger,
button.ml-btn--danger {
    background: linear-gradient(180deg, #ec5d5d 0%, #d43e3e 100%);
    box-shadow: 0 12px 22px rgba(212, 62, 62, 0.24);
}

.ml-inline-actions,
.ml-form--inline,
.ml-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ml-pre {
    overflow: auto;
    padding: 14px;
    border-radius: 18px;
    background: rgba(49, 45, 46, 0.96);
}

.ml-account-page {
    gap: 26px;
}

.ml-account-hero,
.ml-account-stats {
    background: rgba(36, 31, 28, 0.94);
    border-radius: 40px;
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
}

.ml-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 500px);
    gap: 24px;
    padding: 48px 56px 28px;
}

.ml-account-hero__left,
.ml-account-hero__right {
    display: grid;
    align-content: start;
    gap: 20px;
}

.ml-account-hero__right {
    grid-template-columns: minmax(250px, 1fr) minmax(138px, 164px);
    align-items: start;
    gap: 20px;
}

.ml-account-identity {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.ml-account-identity__avatar-wrap {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.ml-account-identity img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.ml-account-current-mode {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin: -8px 0 0;
    line-height: 1.18;
}

.ml-account-current-mode.is-offline {
    color: rgba(255, 255, 255, 0.82);
}

.ml-account-current-mode span {
    color: #ff8a00;
}

.ml-account-identity__body {
    display: grid;
    gap: 6px;
    padding-top: 0;
}

.ml-account-identity__name {
    display: block;
}

.ml-account-identity__name h1 {
    margin: 0;
    font-size: 2.08rem;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

.ml-account-privilege {
    margin: -2px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.ml-account-privilege strong {
    color: #ff8a00;
    font-weight: 400;
    font-size: inherit;
    line-height: inherit;
}

.ml-account-privilege__value {
    font-size: 1rem !important;
    line-height: 1 !important;
    transform: translateY(-1px);
    display: inline-block;
}

.ml-account-info,
.ml-account-contacts,
.ml-account-edit {
    display: grid;
    gap: 14px;
}

.ml-account-info h2,
.ml-account-contacts h2,
.ml-account-stats__head h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
}

.ml-account-info__list,
.ml-account-contacts__list,
.ml-account-stats__column {
    display: grid;
    gap: 3px;
}

.ml-account-info__spacer {
    height: 18px;
}

.ml-account-info__list p,
.ml-account-contacts__list p,
.ml-account-stats__column p,
.ml-account-edit p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.24;
    color: #fff;
}

.ml-account-info__list strong,
.ml-account-contacts__list strong,
.ml-account-stats__column strong {
    color: #ff8a00;
    font-weight: 400;
}

.ml-stat-note {
    color: rgba(255, 196, 124, 0.7);
}

.ml-stat-unit {
    color: rgba(255, 196, 124, 0.7);
    font-size: 0.82em;
    font-weight: 400;
    margin-left: 0;
}

.ml-account-contacts h2 {
    margin-bottom: 8px;
    font-size: 1.22rem;
}

.ml-account-side {
    display: grid;
    justify-items: start;
    gap: 8px;
    order: 1;
    width: 100%;
    padding-right: 0;
    margin-left: -5%;
}

.ml-account-contacts,
.ml-account-edit {
    width: 100%;
}

.ml-account-contacts {
    min-height: 300px;
    align-content: start;
}

.ml-account-edit > p {
    max-width: 320px;
    color: rgba(255, 255, 255, 0.16);
}

.ml-account-edit__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100%, 320px);
    max-width: 320px;
    padding: 16px 18px 18px;
    border: 1px solid rgba(255, 138, 0, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        rgba(18, 18, 18, 0.72);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
    align-items: start;
}

.ml-account-contacts[data-account-side] {
    gap: 10px;
}

.ml-account-contacts[data-account-side] p {
    max-width: none;
}

.ml-account-contacts__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
}

.ml-account-contacts__note {
    font-size: 0.9rem;
    line-height: 1.28;
    color: rgba(255, 255, 255, 0.42);
    max-width: 320px;
    margin-top: auto;
}

.ml-account-contacts__list[hidden] {
    display: none;
}

.ml-account-edit__toggle,
.ml-account-edit__form button {
    min-height: 42px;
    border: 1px solid rgba(255, 138, 0, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    color: #ff8a00;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    justify-self: start;
    padding: 0 18px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ml-account-edit__toggle {
    margin-top: 0;
}

.ml-account-edit__toggle:hover,
.ml-account-edit__form button:hover {
    color: #ffc179;
    background: rgba(255, 138, 0, 0.08);
    border-color: rgba(255, 138, 0, 0.3);
    transform: none;
}

.ml-account-edit__form button {
    justify-self: start;
    align-self: start;
}

.ml-account-edit__form button:hover {
    color: #ffc179;
}

.ml-account-edit__form[hidden] {
    display: none;
}

.ml-account-edit__form input {
    min-height: 46px;
    border-radius: 14px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffd4a3;
    box-shadow: none;
}

.ml-account-edit__form input::placeholder {
    color: rgba(255, 199, 132, 0.56);
}

.ml-account-edit__form input:focus {
    outline: none;
    border-color: rgba(255, 138, 0, 0.48);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.12);
}

.ml-account-contacts[data-account-side]:not(.is-editing) .ml-account-edit__form {
    display: none;
}

.ml-account-contacts[data-account-side].is-editing .ml-account-contacts__list {
    display: none;
}

.ml-account-contacts[data-account-side].is-editing .ml-account-edit__toggle {
    display: none;
}

.ml-account-skin {
    order: 2;
    align-self: start;
    justify-self: end;
    width: 100%;
    min-width: 150px;
    height: 272px;
    display: grid;
    place-items: center;
}

.ml-account-skin__canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

.ml-account-skin__canvas:active {
    cursor: grabbing;
}

.ml-account-stats {
    display: grid;
    gap: 26px;
    padding: 18px 56px 44px;
}

.ml-account-stats__head {
    display: grid;
    gap: 0;
}

.ml-account-stats__head h2 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
}

.ml-account-stats__head h3 {
    margin: 0;
}

.ml-account-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px;
}

.ml-account-stats__empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1440px), (max-height: 900px) {
    .ml-sidebar {
        width: 194px;
        flex-basis: 194px;
        height: min(700px, 84vh);
        padding: 20px 12px 16px;
        gap: 14px;
    }

    .ml-brand__logo {
        width: 138px;
        margin-top: 8px;
    }

    .ml-nav a {
        min-height: 38px;
        font-size: 0.82rem;
        padding: 0 12px;
    }

    .ml-nav a.is-active {
        margin-left: -24px;
        padding-left: 36px;
    }

    .ml-page-dashboard .ml-main,
    .ml-page-account .ml-main,
    .ml-page-admin .ml-main,
    .ml-page-ticket .ml-main,
    .ml-page-store .ml-main,
    .ml-page-sessions .ml-main,
    .ml-page-reviews .ml-main,
    .ml-page-admin_users .ml-main,
    .ml-page-admin_reviews .ml-main,
    .ml-page-tickets .ml-main,
    .ml-page-tickets_staff .ml-main {
        margin-left: 204px;
        padding-top: 12px;
    }

    .ml-main {
        padding: 22px;
    }

    .ml-auth-stage {
        width: min(100vw - 28px, 470px);
    }

    .ml-auth-card {
        padding: 26px 24px 24px;
    }

    .ml-auth-card__logo {
        width: 250px;
    }

    .ml-dashboard__actions,
    .ml-dashboard,
    .ml-section,
    .ml-account-hero,
    .ml-account-stats {
        border-radius: 24px;
    }

    .ml-dashboard__actions {
        padding: 18px;
    }

    .ml-dashboard__grid {
        gap: 12px;
    }

    .ml-dashboard-card {
        min-height: 102px;
        padding: 14px;
    }

    .ml-stats-grid {
        gap: 12px;
    }

    .ml-stats-grid article {
        min-height: 104px;
        padding: 18px;
    }

    .ml-ticket-filters {
        grid-template-columns: minmax(260px, 320px);
    }

    .ml-tickets-hero {
        padding: 20px 22px 22px;
    }

    .ml-tickets-hero h1,
    .ml-section h1 {
        font-size: 2rem;
    }

    .ml-account-hero {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
        padding: 34px 36px 24px;
        gap: 18px;
    }

    .ml-account-hero__right {
        grid-template-columns: minmax(220px, 1fr) minmax(120px, 150px);
        gap: 16px;
    }

    .ml-account-stats {
        padding: 18px 36px 30px;
        gap: 18px;
    }

    .ml-account-stats__grid {
        gap: 34px;
    }

    .ml-account-skin {
        height: 236px;
    }
}

@media (max-width: 1280px), (max-height: 800px) {
    .ml-sidebar {
        width: 176px;
        flex-basis: 176px;
        height: min(650px, 82vh);
        padding: 18px 10px 14px;
        border-radius: 0 18px 18px 0;
    }

    .ml-brand {
        padding: 8px 10px 10px;
    }

    .ml-brand__logo {
        width: 126px;
    }

    .ml-nav {
        gap: 2px;
    }

    .ml-nav a {
        min-height: 36px;
        font-size: 0.78rem;
    }

    .ml-nav-user {
        margin-left: 0;
        width: calc(100% - 4px);
        padding: 7px 8px 7px 10px;
        gap: 6px;
    }

    .ml-nav-user__avatar {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .ml-nav-user__meta span {
        font-size: 0.58rem;
    }

    .ml-nav-user__meta strong {
        font-size: 0.7rem;
    }

    .ml-page-dashboard .ml-main,
    .ml-page-account .ml-main,
    .ml-page-admin .ml-main,
    .ml-page-ticket .ml-main,
    .ml-page-store .ml-main,
    .ml-page-sessions .ml-main,
    .ml-page-reviews .ml-main,
    .ml-page-admin_users .ml-main,
    .ml-page-admin_reviews .ml-main,
    .ml-page-tickets .ml-main,
    .ml-page-tickets_staff .ml-main {
        margin-left: 184px;
        padding-top: 10px;
    }

    .ml-main {
        padding: 18px;
    }

    .ml-dashboard__actions,
    .ml-section,
    .ml-account-hero,
    .ml-account-stats {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ml-dashboard__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .ml-dashboard-card {
        min-height: 96px;
        padding: 12px 12px 10px;
        gap: 8px;
    }

    .ml-dashboard-card strong {
        gap: 8px;
        font-size: 1rem;
    }

    .ml-dashboard-card strong::before {
        width: 24px;
        height: 24px;
        mask-size: 18px 18px;
        -webkit-mask-size: 18px 18px;
    }

    .ml-dashboard-card span {
        font-size: 0.82rem;
        line-height: 1.22;
    }

    .ml-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ml-ticket-filters {
        grid-template-columns: minmax(220px, 280px);
    }

    .ml-ticket-create-btn,
    .ml-ticket-search input[type="search"] {
        min-height: 40px;
        height: 40px;
    }

    .ml-account-hero {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
        gap: 16px;
    }

    .ml-account-hero__right {
        grid-template-columns: 1fr 120px;
        gap: 14px;
    }

    .ml-account-stats__grid {
        gap: 24px;
    }

    .ml-account-skin {
        height: 210px;
    }
}

@media (max-width: 980px) {
    .ml-shell {
        display: block;
    }

    .ml-sidebar {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        margin: 0;
        border-radius: 0;
        padding: 18px;
    }

    .ml-main {
        padding: 18px;
    }

    .ml-page-dashboard .ml-main,
    .ml-page-account .ml-main,
    .ml-page-admin .ml-main,
    .ml-page-tickets .ml-main,
    .ml-page-tickets_staff .ml-main,
    .ml-page-ticket .ml-main,
    .ml-page-store .ml-main,
    .ml-page-sessions .ml-main,
    .ml-page-reviews .ml-main,
    .ml-page-admin_users .ml-main,
    .ml-page-admin_reviews .ml-main {
        margin-left: 0;
    }

    .ml-profile,
    .ml-ticket-meta,
    .ml-stats-grid,
    .ml-dashboard__grid,
    .ml-ticket-filters,
    .ml-ticket-row,
    .ml-table__row {
        grid-template-columns: 1fr;
    }

    .ml-ticket-row__top,
    .ml-ticket-row__meta {
        grid-template-columns: 1fr;
    }

    .ml-ticket-row__top-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .ml-account-hero,
    .ml-account-stats__grid,
    .ml-account-identity {
        grid-template-columns: 1fr;
    }

    .ml-account-hero,
    .ml-account-stats {
        padding: 28px 24px;
        border-radius: 28px;
    }

    .ml-account-hero {
        gap: 28px;
    }

    .ml-account-identity {
        gap: 20px;
    }

    .ml-account-identity__avatar-wrap {
        gap: 8px;
    }

    .ml-account-identity img {
        width: 96px;
        height: 96px;
    }

    .ml-account-identity__name h1 {
        font-size: 1.62rem;
        padding: 0 14px;
    }

    .ml-auth-card {
        width: 100%;
        padding: 28px 22px 22px;
    }

    .ml-auth-stage {
        width: min(94vw, 520px);
    }

    .ml-page-login,
    .ml-page-register,
    .ml-page-reset {
        overflow: hidden;
    }
}

@media (min-width: 681px) and (max-width: 980px) {
    .ml-page-dashboard .ml-shell {
        display: flex;
        align-items: center;
    }

    .ml-page-dashboard .ml-sidebar {
        position: fixed;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 214px;
        margin: 0;
        border-radius: 0 22px 22px 0;
        padding: 24px 14px 18px;
    }

    .ml-page-dashboard .ml-main {
        margin-left: 228px;
        padding: 18px;
    }
}

@keyframes ml-modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ml-modal-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes ml-modal-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ml-modal-card-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(10px) scale(0.985); }
}

@keyframes ml-ticket-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1440px), (max-height: 900px) {
    .ml-modal { padding: 14px; }
    .ml-modal__card--ticket-create { width: min(100%, 900px); max-height: min(88vh, 760px); padding: 20px; border-radius: 22px; }
    .ml-ticket-wizard, .ml-ticket-step { gap: 12px; }
    .ml-ticket-category-grid, .ml-ticket-role-grid { gap: 10px; }
    .ml-ticket-category-card, .ml-ticket-role-card { padding: 13px 14px; border-radius: 16px; }
    .ml-ticket-step__head h3 { font-size: 1.16rem; }
    .ml-ticket-step__head p { font-size: 0.9rem; }
    .ml-ticket-step[data-ticket-step="bug"] { column-gap: 22px; row-gap: 10px; }
    .ml-ticket-step[data-ticket-step="bug"]::before { top: 70px; bottom: 142px; }
}

@media (max-width: 1280px), (max-height: 800px) {
    .ml-modal { padding: 10px; }
    .ml-modal__card--ticket-create { width: min(100%, 840px); max-height: 86vh; padding: 18px; border-radius: 20px; }
    .ml-ticket-wizard, .ml-ticket-step { gap: 10px; }
    .ml-ticket-category-grid, .ml-ticket-role-grid, .ml-ticket-auto-meta, .ml-ticket-upload-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ml-ticket-step__actions { flex-wrap: wrap; }
    .ml-ticket-step__head h3 { font-size: 1.08rem; }
    .ml-ticket-step__head p { font-size: 0.86rem; }
    .ml-ticket-category-card, .ml-ticket-role-card { padding: 12px 13px; }
    .ml-ticket-step[data-ticket-step="bug"] { column-gap: 18px; row-gap: 10px; }
    .ml-ticket-step[data-ticket-step="bug"]::before { top: 68px; bottom: 136px; }
}

@media (max-width: 980px) {
    .ml-modal { padding: 10px; align-items: end; }
    .ml-modal__card--ticket-create { width: 100%; max-height: 90vh; padding: 18px 16px; border-radius: 20px 20px 0 0; }
    .ml-ticket-category-grid, .ml-ticket-role-grid, .ml-ticket-auto-meta, .ml-ticket-upload-grid { grid-template-columns: 1fr; }
    .ml-ticket-step[data-ticket-step="bug"] { grid-template-columns: 1fr; }
    .ml-ticket-step[data-ticket-step="bug"]::before { display: none; }
    .ml-ticket-step__head h3 { font-size: 1.18rem; }
    .ml-ticket-step__actions { flex-direction: column-reverse; align-items: stretch; }
    .ml-ticket-step__actions button { width: 100%; }
}



