html {
    background: #202733 !important;
}

body.skin-dark {
    background: #202733 !important;
    min-height: 100vh;
}

body.skin-dark .wrapper {
    margin-top: 0 !important;
    min-height: 100vh;
    background: #202733 !important;
}

body.skin-dark .row-offcanvas {
    min-height: 100vh;
    background: #202733 !important;
}

body.skin-dark #global-content {
    padding-top: 0;
    min-height: 100vh;
    background: #202733 !important;
}

body.skin-dark .right-side {
    background: #202733 !important;
    color: #cfe1ef;
    min-height: 100vh;
}

body.skin-dark .right-side > .content-header {
    display: none !important;
}

body.skin-dark .right-side > .content-header > .fa {
    color: #ffc928;
    font-size: 42px;
    width: 52px;
    height: 52px;
    line-height: 52px;
    margin-right: 12px;
}

body.skin-dark .right-side > .content-header > span {
    color: #ffc928;
    font-size: 30px;
    line-height: 34px;
    font-weight: 400;
}

body.skin-dark .right-side > .content-header > .breadcrumb {
    color: #a8bdcf;
    margin-top: 3px;
}

body.skin-dark .right-side > .content-header > .breadcrumb > li,
body.skin-dark .right-side > .content-header > .breadcrumb > li > a {
    color: #a8bdcf;
}

body.skin-dark .right-side > .content-header > .breadcrumb > li + li:before {
    color: #6f879b;
}

body.skin-dark .right-side > .content {
    padding: 20px 28px 34px;
    background: #202733 !important;
    min-height: calc(100vh - 40px);
}

body.skin-dark .right-side > .content > .row,
body.skin-dark .store-section,
body.skin-dark .tickets-cont > .row {
    max-width: 1680px;
    min-width: 850px;
    margin: 0 auto;
}

body.skin-dark .grid,
body.skin-dark .store-section,
body.skin-dark .tab-content,
body.skin-dark .table-responsive {
    border: 1px solid rgba(80, 111, 139, 0.78);
    background: linear-gradient(180deg, rgba(30, 39, 51, 0.92) 0%, rgba(25, 33, 43, 0.92) 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16), inset 0 0 32px rgba(70, 174, 223, 0.035);
}

body.skin-dark .grid {
    margin-bottom: 22px;
}

body.skin-dark .grid .grid-header {
    min-height: 48px;
    padding: 12px 18px 10px;
    border-bottom: 1px solid rgba(88, 119, 151, 0.72);
    color: #bcd7eb;
}

body.skin-dark .grid .grid-header .grid-title,
body.skin-dark .grid .grid-header span {
    color: #bcd7eb;
    font-size: 17px;
    font-weight: 700;
}

body.skin-dark .grid .grid-header .fa {
    color: #ffc928;
    margin-right: 7px;
}

body.skin-dark .grid .grid-body {
    padding: 16px 20px;
    color: #cfe1ef;
}

body.skin-dark .table {
    margin-bottom: 0;
    color: #b8c9d8;
}

body.skin-dark .table > thead > tr > th {
    color: #88a9c6;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(72, 104, 143, 0.95);
    padding: 13px 8px;
}

body.skin-dark .table > tbody > tr > td,
body.skin-dark .table > tbody > tr > th {
    border-top: 1px solid rgba(60, 80, 103, 0.34);
    padding: 12px 8px;
    color: #cfe1ef;
    vertical-align: middle;
}

body.skin-dark .table-striped > tbody > tr:nth-child(odd) > td,
body.skin-dark .table-striped > tbody > tr:nth-child(odd) > th {
    background: rgba(32, 45, 58, 0.88);
}

body.skin-dark .table-striped > tbody > tr:nth-child(even) > td,
body.skin-dark .table-striped > tbody > tr:nth-child(even) > th {
    background: rgba(20, 31, 42, 0.94);
}

body.skin-dark .table-hover > tbody > tr:hover > td,
body.skin-dark .table-hover > tbody > tr:hover > th,
body.skin-dark .table > tbody > tr:hover > td,
body.skin-dark .table > tbody > tr:hover > th {
    background: rgba(33, 50, 64, 0.34);
}

body.skin-dark .nav-tabs {
    border-bottom: 1px solid rgba(88, 119, 151, 0.72);
    max-width: 1680px;
    min-width: 850px;
    margin: 0 auto;
}

body.skin-dark .nav-tabs > li > a {
    border: 1px solid #394f67;
    border-radius: 3px 3px 0 0;
    background: rgba(38, 48, 62, 0.86);
    color: #c7d7e5;
    margin-right: 6px;
}

body.skin-dark .nav-tabs > li.active > a,
body.skin-dark .nav-tabs > li.active > a:hover,
body.skin-dark .nav-tabs > li.active > a:focus,
body.skin-dark .nav-tabs > li > a:hover {
    color: #fff;
    background: rgba(20, 37, 49, 0.96);
    border-color: #5fa3cc;
    border-bottom-color: #ffc928;
}

body.skin-dark .tab-content {
    max-width: 1680px;
    min-width: 850px;
    margin: 0 auto;
    padding: 18px;
    border-top: 0;
}

body.skin-dark .btn,
body.skin-dark .pagination > li > a,
body.skin-dark .pagination > li > span {
    border-radius: 3px;
}

body.skin-dark .btn-primary,
body.skin-dark .btn-info,
body.skin-dark .btn-success,
body.skin-dark .btn-block.btn-primary,
body.skin-dark .btn-block.btn-success {
    border: 1px solid #40566d;
    background: rgba(62, 75, 92, 0.9);
    color: #fff;
    font-weight: 700;
}

body.skin-dark .btn-primary:hover,
body.skin-dark .btn-info:hover,
body.skin-dark .btn-success:hover,
body.skin-dark .btn-block.btn-primary:hover,
body.skin-dark .btn-block.btn-success:hover {
    background: rgba(28, 48, 62, 0.98);
    border-color: #69a8cc;
    color: #fff;
}

body.skin-dark .btn-checkvote,
body.skin-dark .btn-category,
body.skin-dark .btn-open {
    border: 1px solid #d39c1d;
    background: #8a5b12;
    color: #fff;
    font-weight: 700;
}

body.skin-dark .btn-checkvote:hover,
body.skin-dark .btn-category:hover,
body.skin-dark .btn-open:hover {
    background: #a96f16;
    border-color: #ffc928;
    color: #fff;
}

body.skin-dark .store-section {
    padding: 20px;
    min-height: auto;
    border-radius: 0;
}

body.skin-dark .category-bar,
body.skin-dark #subcategory-container,
body.skin-dark .welcome-container {
    border: 1px solid rgba(80, 111, 139, 0.78);
    background: rgba(12, 22, 29, 0.68);
    border-radius: 4px;
    box-shadow: inset 0 0 24px rgba(70, 174, 223, 0.035);
}

body.skin-dark .welcome-container {
    max-width: 900px;
    margin: 28px auto;
    padding: 24px;
}

body.skin-dark .welcome-container h2 {
    color: #ffc928;
    font-size: 26px;
    margin: 0 0 14px;
}

body.skin-dark .welcome-container p {
    color: #b8c9d8;
    font-size: 14px;
    line-height: 1.65;
}

body.skin-dark .subcategory-table th,
body.skin-dark .subcategory-table td {
    border: 1px solid rgba(60, 80, 103, 0.6);
    color: #cfe1ef;
    padding: 10px;
}

body.skin-dark input,
body.skin-dark select,
body.skin-dark textarea,
body.skin-dark .form-control {
    border: 1px solid #40566d;
    background: #0a1116;
    color: #fff;
    box-shadow: none;
}

body.skin-dark input:focus,
body.skin-dark select:focus,
body.skin-dark textarea:focus,
body.skin-dark .form-control:focus {
    border-color: #68b7df;
    box-shadow: 0 0 0 2px rgba(104, 183, 223, 0.12);
}

body.skin-dark .tickets {
    color: #cfe1ef;
}

body.skin-dark .well-total-info {
    max-width: 420px;
}

body.skin-dark .outer {
    min-height: 100vh;
    padding: 34px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 22%, rgba(70, 174, 223, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(32, 39, 51, 0.94), rgba(20, 27, 36, 0.98));
}

body.skin-dark .middle,
body.skin-dark .inner {
    display: block;
    width: 100%;
}

body.skin-dark .inner {
    max-width: 430px;
    margin: 0 auto;
}

body.skin-dark .inner .row {
    margin-left: 0;
    margin-right: 0;
}

body.skin-dark .inner [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

body.skin-dark .account-wall {
    width: 100%;
    padding: 28px 30px 30px;
    border: 1px solid rgba(80, 111, 139, 0.86);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(14, 24, 31, 0.93) 0%, rgba(9, 15, 20, 0.95) 100%);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32), inset 0 0 34px rgba(70, 174, 223, 0.045);
}

body.skin-dark .account-wall .profile-img {
    display: block;
    width: min(240px, 72%);
    height: auto;
    margin: 0 auto 24px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(57, 184, 255, 0.2));
}

body.skin-dark .login-title {
    margin: 0 0 14px;
    color: #ffc928;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
}

body.skin-dark .form-login label {
    margin: 10px 0 6px;
    color: #9bd4f0;
    font-size: 13px;
    font-weight: 700;
}

body.skin-dark .form-login .form-control,
body.skin-dark .form-login select {
    height: 42px;
    margin-bottom: 10px;
    border: 1px solid #40566d;
    border-radius: 3px;
    background: #0a1116;
    color: #fff;
    box-shadow: inset 0 0 16px rgba(70, 174, 223, 0.04);
}

body.skin-dark .form-login .form-control::placeholder {
    color: #8aa5b8;
}

body.skin-dark .form-login .btn {
    min-height: 40px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
}

body.skin-dark .form-login button.btn-primary {
    border: 1px solid #d39c1d;
    background: #8a5b12;
    color: #fff;
}

body.skin-dark .form-login button.btn-primary:hover {
    border-color: #ffc928;
    background: #a96f16;
}

body.skin-dark .form-login a.btn-primary {
    border: 1px solid #40566d;
    background: rgba(62, 75, 92, 0.9);
    color: #fff;
}

body.skin-dark .form-login a.btn-primary:hover {
    border-color: #69a8cc;
    background: rgba(28, 48, 62, 0.98);
}

body.skin-dark .form-login hr {
    margin: 20px 0 !important;
    border-top: 1px solid rgba(88, 119, 151, 0.62) !important;
}

body.skin-dark .checkbox {
    color: #cfe1ef;
    font-weight: 400 !important;
}

body.skin-dark .checkbox input {
    margin-top: 2px;
}

body.skin-dark .need-help {
    margin-top: 10px;
    color: #ffc928;
    font-weight: 700;
}

body.skin-dark .need-help:hover {
    color: #fff;
}

body.skin-dark .error,
body.skin-dark #errorsMessage.error {
    color: #ff725c;
    font-weight: 700;
}

body.skin-dark .success,
body.skin-dark #errorsMessage.success {
    color: #34d17b;
    font-weight: 700;
}

body.skin-dark .g-recaptcha {
    margin: 10px 0 12px !important;
    overflow: hidden;
}

body.skin-dark #regForm .form-group {
    margin-left: 0;
    margin-right: 0;
}

body.skin-dark #regForm .col-md-12 {
    padding-left: 0;
    padding-right: 0;
    color: #9ebbd0;
}

body.login {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(8, 12, 18, 0.66), rgba(8, 12, 18, 0.18) 42%, rgba(8, 12, 18, 0.72)),
        #202733;
}

body.login .outer {
    min-height: 100vh !important;
    padding: 42px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.login .middle,
body.login .inner {
    display: block !important;
    width: 100% !important;
}

body.login .inner {
    max-width: 430px !important;
    margin: 0 auto !important;
}

body.login .inner .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.login .inner [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.login .account-wall {
    width: 100% !important;
    margin: 0 !important;
    padding: 28px 30px 30px !important;
    border: 1px solid rgba(80, 111, 139, 0.86) !important;
    border-radius: 4px !important;
    background: linear-gradient(180deg, rgba(14, 24, 31, 0.94) 0%, rgba(9, 15, 20, 0.96) 100%) !important;
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.38), inset 0 0 34px rgba(70, 174, 223, 0.045) !important;
}

body.login .account-wall .profile-img {
    display: block !important;
    width: min(230px, 74%) !important;
    height: auto !important;
    margin: 0 auto 22px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 24px rgba(57, 184, 255, 0.2));
}

body.login .form-login {
    max-width: none !important;
    padding: 0 !important;
}

body.login .form-login label {
    margin: 10px 0 6px !important;
    color: #9bd4f0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.login .form-login .form-control,
body.login .form-login input[type="text"],
body.login .form-login input[type="password"],
body.login .form-login select {
    width: 100% !important;
    height: 42px !important;
    margin-bottom: 10px !important;
    padding: 8px 11px !important;
    border: 1px solid #40566d !important;
    border-radius: 3px !important;
    background: #0a1116 !important;
    color: #fff !important;
    box-shadow: inset 0 0 16px rgba(70, 174, 223, 0.04) !important;
}

body.login .form-login .form-control:focus,
body.login .form-login input[type="text"]:focus,
body.login .form-login input[type="password"]:focus {
    border-color: #68b7df !important;
    box-shadow: 0 0 0 2px rgba(104, 183, 223, 0.12) !important;
}

body.login .form-login .btn {
    min-height: 40px !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

body.login .form-login button.btn-primary {
    border: 1px solid #d39c1d !important;
    background: #8a5b12 !important;
    color: #fff !important;
}

body.login .form-login button.btn-primary:hover {
    border-color: #ffc928 !important;
    background: #a96f16 !important;
}

body.login .form-login a.btn-primary {
    border: 1px solid #40566d !important;
    background: rgba(62, 75, 92, 0.92) !important;
    color: #fff !important;
}

body.login .form-login a.btn-primary:hover {
    border-color: #69a8cc !important;
    background: rgba(28, 48, 62, 0.98) !important;
}

body.login .form-login hr {
    margin: 20px 0 !important;
    border-top: 1px solid rgba(88, 119, 151, 0.62) !important;
}

body.login .checkbox {
    margin-top: 10px !important;
    color: #cfe1ef !important;
    font-weight: 400 !important;
}

body.login .checkbox input {
    margin-top: 2px !important;
}

body.login .need-help {
    margin-top: 10px !important;
    color: #ffc928 !important;
    font-weight: 700 !important;
}

body.login .need-help:hover {
    color: #fff !important;
}

body.login .error,
body.login #errorsMessage.error {
    color: #ff725c !important;
    font-weight: 700 !important;
}

body.login .success,
body.login #errorsMessage.success {
    color: #34d17b !important;
    font-weight: 700 !important;
}

body.login .g-recaptcha {
    margin: 10px 0 12px !important;
    overflow: hidden !important;
}

#ma-page-loading {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 45%, rgba(77, 178, 231, 0.18), transparent 32%),
        rgba(7, 12, 18, 0.84);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(6px);
    transition: opacity 140ms ease, visibility 140ms ease;
}

body.ma-is-loading-page #ma-page-loading,
body.ma-page-entering #ma-page-loading {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.ma-is-loading-page .wrapper,
body.ma-page-entering .wrapper {
    opacity: 0;
}

.ma-page-loading-panel {
    min-width: 260px;
    padding: 22px 28px 24px;
    border: 1px solid rgba(95, 163, 204, 0.85);
    background: linear-gradient(180deg, rgba(18, 32, 43, 0.98), rgba(7, 14, 20, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), inset 0 0 32px rgba(70, 174, 223, 0.06);
    text-align: center;
}

.ma-page-loading-panel:before {
    content: "";
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border: 3px solid rgba(95, 163, 204, 0.28);
    border-top-color: #ffc928;
    border-radius: 50%;
    animation: ma-spin 760ms linear infinite;
}

.ma-page-loading-kicker,
.ma-page-loading-panel small {
    display: block;
    color: #8ed4f2;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ma-page-loading-panel strong {
    display: block;
    margin: 3px 0 4px;
    color: #ffffff;
    font-size: 22px;
    letter-spacing: 0;
}

.ma-page-loading-panel small {
    color: #9fb8ca;
    text-transform: none;
}

@keyframes ma-spin {
    to {
        transform: rotate(360deg);
    }
}

.ma-admin-page .content {
    padding: 24px 30px;
}

.ma-ticket-page .content {
    padding: 24px 30px;
}

.ma-ticket-page-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.ma-player-ticket-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(480px, 1.05fr);
    gap: 18px;
    align-items: start;
}

.ma-player-ticket-card {
    border: 1px solid #3f5b73;
    background: linear-gradient(145deg, rgba(13, 25, 32, 0.96), rgba(23, 34, 45, 0.92));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18), inset 0 0 26px rgba(70, 174, 223, 0.035);
    padding: 18px;
}

.ma-player-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(104, 183, 223, 0.24);
    margin-bottom: 14px;
}

.ma-player-ticket-head h2 {
    margin: 0;
    color: #f5fbff;
    font-size: 20px;
    font-weight: 900;
}

.ma-player-ticket-head > i {
    color: #ffcc00;
    font-size: 24px;
}

.ma-ticket-count {
    min-width: 34px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 255, 189, 0.3);
    background: rgba(11, 50, 38, 0.46);
    color: #60ffbd;
    font-weight: 900;
}

.ma-player-ticket-form {
    display: grid;
    gap: 12px;
}

.ma-ticket-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ma-ticket-form-row label {
    display: block;
    color: #83d5ff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 6px;
}

.ma-ticket-form-row input,
.ma-ticket-form-row select,
.ma-ticket-form-row textarea,
.ma-ticket-form-row .acc-selectlist,
.ma-ticket-form-row .char-selectlist {
    width: 100%;
    min-height: 38px;
    border: 1px solid #3f5b73;
    background: rgba(2, 10, 14, 0.82);
    color: #fff;
    padding: 9px 10px;
    outline: none;
}

.ma-ticket-form-row textarea {
    min-height: 148px;
    resize: vertical;
    line-height: 1.45;
}

.ma-ticket-form-row input:focus,
.ma-ticket-form-row select:focus,
.ma-ticket-form-row textarea:focus {
    border-color: #46aedf;
    box-shadow: 0 0 0 2px rgba(70, 174, 223, 0.12);
}

.ma-ticket-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ma-ticket-form-actions span {
    color: #93c9e9;
    font-weight: 800;
}

.ma-player-ticket-list {
    display: grid;
    gap: 10px;
    max-height: 660px;
    overflow-y: auto;
}

.ma-player-ticket-item {
    border: 1px solid rgba(104, 183, 223, 0.2);
    background: rgba(4, 15, 19, 0.48);
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.ma-player-ticket-item-main {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ma-player-ticket-id {
    color: #ffcc00;
    font-weight: 900;
    min-width: 52px;
}

.ma-player-ticket-item strong {
    display: block;
    color: #f5fbff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-player-ticket-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ma-player-ticket-meta span {
    border: 1px solid rgba(104, 183, 223, 0.18);
    background: rgba(13, 26, 36, 0.72);
    color: #9fe6ff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
}

.ma-player-ticket-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ma-player-ticket-status {
    padding: 3px 8px;
    border: 1px solid rgba(96, 255, 189, 0.32);
    color: #60ffbd;
    background: rgba(11, 50, 38, 0.34);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.ma-player-ticket-status.is-closed {
    border-color: rgba(139, 160, 176, 0.28);
    color: #9db0bf;
    background: rgba(54, 65, 73, 0.32);
}

.ma-admin-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.ma-admin-head,
.ma-admin-card {
    border: 1px solid #3f5b73;
    background: linear-gradient(145deg, rgba(13, 25, 32, 0.96), rgba(23, 34, 45, 0.92));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18), inset 0 0 26px rgba(70, 174, 223, 0.035);
}

.ma-admin-head {
    min-height: 92px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.ma-admin-kicker {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #ffcc00;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ma-admin-head h1,
.ma-admin-card h2 {
    margin: 0;
    color: #f5fbff;
    font-weight: 800;
}

.ma-admin-head h1 {
    font-size: 28px;
}

.ma-admin-badge {
    border: 1px solid #46aedf;
    background: rgba(7, 22, 28, 0.76);
    color: #60ffbd;
    font-weight: 800;
    padding: 10px 14px;
}

.ma-admin-alert {
    border: 1px solid #2ed98d;
    background: rgba(14, 67, 47, 0.55);
    color: #9fffcf;
    font-weight: 800;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.ma-admin-alert-error {
    border-color: rgba(255, 96, 71, 0.74);
    background: rgba(72, 21, 18, 0.64);
    color: #ffb3aa;
}

.ma-admin-tabs {
    border: 1px solid #3f5b73;
    background: linear-gradient(145deg, rgba(5, 17, 22, 0.96), rgba(15, 29, 39, 0.92));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16), inset 0 0 30px rgba(70, 174, 223, 0.035);
    padding: 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ma-admin-tab-btn {
    border: 1px solid rgba(104, 183, 223, 0.32);
    background: linear-gradient(180deg, rgba(50, 72, 91, 0.88), rgba(32, 48, 62, 0.94));
    color: #f2fbff;
    min-height: 40px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    border-radius: 3px;
}

.ma-admin-tab-btn i {
    color: #ffcc00;
}

.ma-admin-tab-btn.is-active {
    border-color: #46aedf;
    background: linear-gradient(180deg, rgba(8, 52, 70, 0.95), rgba(7, 34, 46, 0.95));
    box-shadow: inset 3px 0 0 #ffcc00, 0 0 18px rgba(70, 174, 223, 0.12);
}

.ma-admin-tab-panel {
    display: none;
}

.ma-admin-tab-panel.is-active {
    display: block;
}

.ma-admin-mini-note {
    color: #93c9e9;
    font-weight: 800;
    font-size: 12px;
}

.ma-admin-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
    gap: 18px;
}

.ma-admin-card {
    padding: 18px;
}

.ma-admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(104, 183, 223, 0.24);
    margin-bottom: 14px;
}

.ma-admin-card h2 {
    font-size: 18px;
}

.ma-admin-muted {
    color: #93c9e9;
    margin: 0 0 14px;
}

.ma-admin-primary-btn,
.ma-admin-secondary-btn {
    border-radius: 3px;
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255, 204, 0, 0.72);
    background: linear-gradient(180deg, #b5800b, #835306);
    min-height: 38px;
    padding: 8px 14px;
}

.ma-admin-secondary-btn {
    border-color: #466984;
    background: linear-gradient(180deg, #344a60, #263746);
}

.ma-admin-danger-btn {
    border-radius: 3px;
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255, 96, 71, 0.72);
    background: linear-gradient(180deg, #9c342c, #69231f);
    min-height: 38px;
    padding: 8px 14px;
}

.ma-admin-read-btn {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(104, 183, 223, 0.38);
    background: linear-gradient(180deg, #30475b, #223443);
    color: #fff;
    font-weight: 800;
}

.ma-warning-count {
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 201, 40, 0.5);
    background: rgba(117, 78, 0, 0.34);
    color: #ffcc00;
    font-weight: 900;
    padding: 3px 8px;
}

.ma-ticket-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border: 1px solid rgba(104, 183, 223, 0.38);
    background: rgba(8, 28, 38, 0.62);
    color: #9fe6ff;
    font-weight: 900;
    padding: 3px 9px;
    white-space: nowrap;
}

.ma-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ma-feature-toggle {
    position: relative;
    min-height: 58px;
    border: 1px solid rgba(104, 183, 223, 0.22);
    background: rgba(4, 15, 19, 0.48);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.ma-feature-toggle strong,
.ma-feature-toggle small {
    display: block;
}

.ma-feature-toggle strong {
    color: #f4fbff;
}

.ma-feature-toggle small {
    color: #74bde8;
    font-size: 11px;
}

.ma-feature-toggle input {
    position: absolute;
    opacity: 0;
}

.ma-feature-toggle em {
    width: 42px;
    height: 22px;
    border: 1px solid #486277;
    background: #1c2a36;
    position: relative;
    flex: 0 0 auto;
}

.ma-feature-toggle em:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 2px;
    left: 3px;
    background: #8aa1b4;
    transition: left 0.16s ease, background 0.16s ease;
}

.ma-feature-toggle input:checked + em {
    border-color: #2ed98d;
    background: rgba(24, 98, 66, 0.78);
}

.ma-feature-toggle input:checked + em:before {
    left: 21px;
    background: #60ffbd;
}

.ma-ticket-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.ma-ticket-stats div {
    border: 1px solid rgba(104, 183, 223, 0.22);
    background: rgba(4, 15, 19, 0.45);
    padding: 8px 10px;
    min-height: 54px;
}

.ma-ticket-stats span {
    display: block;
    color: #7acfff;
    font-size: 12px;
    font-weight: 800;
}

.ma-ticket-stats strong {
    display: block;
    color: #60ffbd;
    font-size: 18px;
    margin-top: 3px;
}

.ma-support-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ma-support-column {
    border: 1px solid rgba(104, 183, 223, 0.24);
    background: rgba(4, 15, 19, 0.38);
    min-width: 0;
}

.ma-support-column-head {
    min-height: 38px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(104, 183, 223, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ma-support-column-head h3 {
    margin: 0;
    color: #f5fbff;
    font-size: 15px;
    font-weight: 900;
}

.ma-support-column-head span {
    min-width: 28px;
    min-height: 24px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 255, 189, 0.28);
    color: #60ffbd;
    background: rgba(11, 50, 38, 0.46);
    font-weight: 900;
}

.ma-support-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    gap: 8px;
}

.ma-support-ticket {
    border: 1px solid rgba(104, 183, 223, 0.18);
    background: rgba(13, 26, 36, 0.72);
    padding: 8px;
}

.ma-support-ticket.needs-reply {
    border-color: rgba(255, 201, 40, 0.72);
    box-shadow: inset 3px 0 0 #ffcc00;
}

.ma-support-ticket-top,
.ma-support-ticket-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ma-support-ticket-top strong {
    color: #ffcc00;
    font-size: 13px;
}

.ma-support-ticket-title {
    color: #fff;
    font-weight: 900;
    margin: 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 7px;
}

.ma-support-ticket-meta span {
    border: 1px solid rgba(104, 183, 223, 0.18);
    background: rgba(4, 15, 19, 0.52);
    color: #9fe6ff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
}

.ma-support-ticket-bottom small {
    color: #93c9e9;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-support-status {
    padding: 2px 7px;
    border: 1px solid rgba(104, 183, 223, 0.24);
    color: #93c9e9;
    background: rgba(4, 15, 19, 0.58);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ma-support-status.needs-reply {
    border-color: rgba(255, 201, 40, 0.62);
    color: #ffcc00;
}

.ma-support-status.waiting-player {
    border-color: rgba(96, 255, 189, 0.32);
    color: #60ffbd;
}

.ma-support-status.is-closed {
    border-color: rgba(139, 160, 176, 0.28);
    color: #9db0bf;
}

.ma-admin-table-wrap {
    overflow-x: auto;
}

.ma-admin-table {
    width: 100%;
    border-collapse: collapse;
    color: #eaf8ff;
}

.ma-admin-table th,
.ma-admin-table td {
    border-bottom: 1px solid rgba(104, 183, 223, 0.18);
    padding: 10px;
    text-align: left;
}

.ma-admin-table th {
    color: #83d5ff;
    background: rgba(17, 34, 50, 0.76);
    text-transform: uppercase;
    font-size: 12px;
}

.ma-admin-empty {
    text-align: center !important;
    color: #93c9e9;
}

.ma-admin-tools {
    margin-top: 18px;
}

.ma-admin-master-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ma-admin-action-card {
    min-height: 100%;
}

.ma-admin-action-card .ma-admin-card-head i {
    color: #ffcc00;
    font-size: 18px;
}

.ma-admin-action-card label {
    display: block;
    color: #83d5ff;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 12px;
    margin: 10px 0 5px;
}

.ma-admin-action-card input,
.ma-admin-action-card textarea,
.ma-admin-action-card select {
    width: 100%;
    border: 1px solid rgba(104, 183, 223, 0.42);
    background: rgba(2, 13, 18, 0.88);
    color: #f4fbff;
    min-height: 38px;
    padding: 8px 10px;
    font-weight: 800;
    border-radius: 2px;
}

.ma-admin-action-card textarea {
    resize: vertical;
}

.ma-admin-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ma-admin-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ma-admin-action-card > .btn:not(.ma-admin-danger-btn):not(.ma-admin-secondary-btn),
.ma-admin-action-card > .ma-admin-primary-btn {
    margin-top: 14px;
}

.ma-admin-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ma-admin-tool-grid div {
    border: 1px solid rgba(104, 183, 223, 0.2);
    background: rgba(4, 15, 19, 0.42);
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: #f4fbff;
    font-weight: 800;
}

.ma-admin-tool-grid i {
    color: #ffcc00;
    font-size: 18px;
}

.ma-ticket-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 26px;
    background: rgba(4, 9, 13, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms ease, visibility 140ms ease;
}

.ma-ticket-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ma-ticket-dialog {
    width: min(1120px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    border: 1px solid #4d7590;
    background: linear-gradient(180deg, rgba(13, 25, 34, 0.98), rgba(7, 16, 22, 0.98));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62), inset 0 0 34px rgba(70, 174, 223, 0.055);
}

.ma-ticket-dialog-head {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(104, 183, 223, 0.28);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ma-ticket-dialog-head h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.ma-ticket-dialog-head p {
    margin: 4px 0 0;
    color: #93c9e9;
    font-weight: 700;
}

.ma-ticket-admin-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ma-ticket-admin-info > span {
    border: 1px solid rgba(104, 183, 223, 0.26);
    background: rgba(4, 15, 19, 0.48);
    color: #9fd9f4;
    font-weight: 800;
    padding: 4px 8px;
    white-space: nowrap;
}

.ma-ticket-admin-info strong {
    color: #ffcc00;
}

.ma-warning-history {
    grid-column: 1 / -1;
    max-height: 86px;
    overflow-y: auto;
    border: 1px solid rgba(255, 201, 40, 0.32);
    background: linear-gradient(180deg, rgba(39, 27, 4, 0.46), rgba(13, 20, 24, 0.78));
    padding: 8px;
    color: #ffd86b;
    font-size: 12px;
}

.ma-warning-history-title {
    color: #ffcc00;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ma-warning-history article {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    line-height: 1.35;
}

.ma-warning-history article + article {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 201, 40, 0.12);
}

.ma-warning-history article b {
    color: #fff1a8;
    white-space: nowrap;
}

.ma-warning-history article span {
    color: #ffe18a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-ticket-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(104, 183, 223, 0.34);
    background: rgba(14, 28, 38, 0.84);
    color: #dff6ff;
}

.ma-ticket-thread {
    padding: 12px 16px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    min-height: 120px;
    max-height: 210px;
}

.ma-ticket-message {
    border: 1px solid rgba(104, 183, 223, 0.22);
    background: rgba(4, 15, 19, 0.54);
    overflow: hidden;
}

.ma-ticket-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(104, 183, 223, 0.16);
}

.ma-ticket-message-head strong {
    color: #ffcc00;
}

.ma-ticket-message-head span {
    color: #8ed4f2;
    font-size: 12px;
    font-weight: 800;
}

.ma-ticket-message-body {
    padding: 9px 10px;
    color: #eaf8ff;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ma-ticket-empty,
.ma-ticket-error {
    border: 1px solid rgba(104, 183, 223, 0.22);
    background: rgba(4, 15, 19, 0.46);
    color: #93c9e9;
    padding: 16px;
    text-align: center;
    font-weight: 800;
}

.ma-ticket-error {
    border-color: rgba(255, 96, 71, 0.7);
    color: #ff9284;
}

.ma-ticket-reply {
    padding: 12px 16px;
    border-top: 1px solid rgba(104, 183, 223, 0.28);
    background: rgba(3, 11, 15, 0.46);
}

.ma-ticket-warning {
    padding: 0;
    background: rgba(3, 11, 15, 0.46);
}

.ma-ticket-admin-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
    gap: 12px;
    padding: 0 16px 14px;
    background: rgba(3, 11, 15, 0.46);
}

.ma-ticket-reply label,
.ma-ticket-warning label {
    display: block;
    color: #83d5ff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 6px;
}

.ma-ticket-reply textarea,
.ma-ticket-warning textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    border: 1px solid #3f5b73;
    background: rgba(2, 10, 14, 0.82);
    color: #fff;
    padding: 10px;
    outline: none;
}

.ma-ticket-warning textarea {
    min-height: 62px;
}

.ma-ticket-close-panel {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 96, 71, 0.42);
    background: linear-gradient(180deg, rgba(38, 16, 14, 0.95), rgba(7, 15, 20, 0.95));
    box-shadow: inset 0 0 24px rgba(255, 96, 71, 0.035);
}

.ma-ticket-close-panel[aria-hidden="true"] {
    display: none;
}

.ma-close-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 96, 71, 0.2);
    margin-bottom: 8px;
}

.ma-close-panel-head strong {
    display: block;
    color: #f4fbff;
    font-size: 13px;
}

.ma-close-panel-x {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(104, 183, 223, 0.34);
    background: rgba(14, 28, 38, 0.84);
    color: #dff6ff;
}

.ma-close-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    color: #dff6ff;
    font-weight: 800;
    margin-bottom: 0;
}

.ma-close-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.ma-close-option input {
    margin: 0;
}

#maCloseCustomMessage {
    width: 100%;
    min-height: 70px;
    resize: vertical;
    border: 1px solid #3f5b73;
    background: rgba(2, 10, 14, 0.82);
    color: #fff;
    padding: 10px;
    outline: none;
}

.ma-close-default-preview {
    border: 1px solid rgba(255, 201, 40, 0.2);
    background: rgba(39, 27, 4, 0.28);
    color: #ffd86b;
    padding: 8px 10px;
    line-height: 1.35;
    font-weight: 700;
}

.ma-ticket-reply textarea:focus,
.ma-ticket-warning textarea:focus {
    border-color: #46aedf;
    box-shadow: 0 0 0 2px rgba(70, 174, 223, 0.12);
}

.ma-ticket-reply-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

#maTicketStatus {
    color: #60ffbd;
    font-weight: 800;
}

#maWarningStatus {
    color: #ffd86b;
    font-weight: 800;
}

#maCloseStatus {
    color: #ffd86b;
    font-weight: 800;
}

.ma-admin-warning-btn,
.ma-admin-close-ticket-btn {
    border-radius: 3px;
    color: #fff;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 14px;
}

.ma-admin-warning-btn {
    border: 1px solid rgba(255, 201, 40, 0.72);
    background: linear-gradient(180deg, #b5800b, #835306);
}

.ma-admin-close-ticket-btn {
    border: 1px solid rgba(255, 96, 71, 0.68);
    background: linear-gradient(180deg, #8e3028, #5f211d);
}

@media (max-width: 1100px) {
    .ma-player-ticket-grid,
    .ma-ticket-form-grid,
    .ma-admin-grid,
    .ma-admin-master-grid,
    .ma-admin-form-row,
    .ma-feature-list,
    .ma-ticket-stats,
    .ma-admin-tool-grid,
    .ma-ticket-admin-actions,
    .ma-support-columns {
        grid-template-columns: 1fr;
    }
}
