:root {
  --hell-red: #d73535;
  --hell-red-bright: #ff5a46;
  --hell-blue: #3478d4;
  --hell-blue-bright: #65a8ff;
  --hell-text: #e9edf7;
  --hell-muted: #9aa6ba;
  --hell-panel: rgba(8, 10, 17, .82);
  --hell-panel-strong: rgba(7, 8, 14, .94);
  --hell-border: rgba(99, 151, 224, .23);
  --hell-border-red: rgba(221, 65, 65, .24);
}

html { background: #05060a; }
html[data-theme-mode="dark"] { color-scheme: dark; }
body.phoenix-cabinet {
  min-height: 100vh;
  background: #05060a !important;
  color: var(--hell-text);
}
body.phoenix-cabinet.has-video-bg {
  background: transparent !important;
}
body.phoenix-cabinet::before,
body.phoenix-cabinet::after { content: none !important; }

#site-video-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  z-index: -4 !important;
  pointer-events: none !important;
  background: #05060a;
}
.dark-hell-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 11% 54%, rgba(187, 30, 30, .14), transparent 33%),
    radial-gradient(circle at 89% 42%, rgba(31, 92, 176, .13), transparent 34%),
    linear-gradient(180deg, rgba(2, 3, 7, .18), rgba(2, 3, 7, .50));
  box-shadow: inset 0 0 170px rgba(0, 0, 0, .52);
}

body.phoenix-cabinet .page,
body.phoenix-cabinet .main-content,
body.phoenix-cabinet .app-content,
body.phoenix-cabinet .container-fluid { background: transparent !important; }

body.phoenix-cabinet .app-header,
body.phoenix-cabinet .app-sidebar,
body.phoenix-cabinet .main-sidebar,
body.phoenix-cabinet .main-sidebar-header {
  background: rgba(5, 7, 13, .84) !important;
  border-color: var(--hell-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .38);
}

body.phoenix-cabinet .card,
body.phoenix-cabinet .custom-card,
body.phoenix-cabinet .modal-content,
body.phoenix-cabinet .dropdown-menu,
body.phoenix-cabinet .offcanvas {
  background: linear-gradient(145deg, rgba(12, 15, 25, .94), rgba(6, 8, 14, .92)) !important;
  border: 1px solid var(--hell-border) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .40), inset 0 1px rgba(255, 255, 255, .025) !important;
  color: var(--hell-text) !important;
}
body.phoenix-cabinet .card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(219, 55, 55, .035), transparent 38%, rgba(48, 111, 202, .045));
}
body.phoenix-cabinet .card > * { position: relative; z-index: 1; }
body.phoenix-cabinet .card-header,
body.phoenix-cabinet .card-footer,
body.phoenix-cabinet .table > thead {
  border-color: rgba(80, 132, 207, .16) !important;
  background: rgba(13, 20, 35, .42) !important;
}

body.phoenix-cabinet h1,
body.phoenix-cabinet h2,
body.phoenix-cabinet h3,
body.phoenix-cabinet h4,
body.phoenix-cabinet h5,
body.phoenix-cabinet h6,
body.phoenix-cabinet .card-title { color: #eef3ff !important; }
body.phoenix-cabinet .text-muted,
body.phoenix-cabinet .form-text { color: var(--hell-muted) !important; }

body.phoenix-cabinet .form-control,
body.phoenix-cabinet .form-select,
body.phoenix-cabinet .input-group-text {
  background: rgba(3, 5, 10, .76) !important;
  border-color: rgba(74, 127, 202, .27) !important;
  color: #f3f6fc !important;
}
body.phoenix-cabinet .form-control:focus,
body.phoenix-cabinet .form-select:focus {
  border-color: var(--hell-blue-bright) !important;
  box-shadow: 0 0 0 .2rem rgba(45, 111, 209, .16) !important;
}

body.phoenix-cabinet .btn-primary,
body.phoenix-cabinet .btn-success {
  border-color: rgba(99, 162, 255, .45) !important;
  background: linear-gradient(135deg, #193d76, #245aa5) !important;
  color: #f6f9ff !important;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .36), 0 0 18px rgba(39, 105, 200, .12) !important;
}
body.phoenix-cabinet .btn-danger,
body.phoenix-cabinet .btn-danger-light {
  border-color: rgba(255, 97, 82, .42) !important;
  background: linear-gradient(135deg, #6f2025, #a72f35) !important;
  color: #fff !important;
}
body.phoenix-cabinet .btn-primary:hover,
body.phoenix-cabinet .btn-success:hover,
body.phoenix-cabinet .btn-danger:hover { filter: brightness(1.13); transform: translateY(-1px); }

body.phoenix-cabinet a { color: #72aeff; }
body.phoenix-cabinet a:hover { color: #b5d6ff; }
body.phoenix-cabinet .side-menu__item:hover,
body.phoenix-cabinet .side-menu__item.active {
  background: linear-gradient(90deg, rgba(186, 42, 42, .10), rgba(43, 101, 188, .13)) !important;
  color: #eaf2ff !important;
}
body.phoenix-cabinet .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f3;
  --bs-table-border-color: rgba(73, 119, 184, .15);
}

body.phoenix-cabinet .phoenix-text-logo,
.phoenix-auth-logo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  white-space: nowrap;
  font: 800 22px/1.1 "Orbitron", "Trebuchet MS", sans-serif;
  letter-spacing: .035em;
  color: #edf4ff !important;
  text-shadow: 0 0 13px rgba(62, 128, 226, .52), 0 0 24px rgba(210, 48, 48, .26), 0 2px 7px #000;
}
body.phoenix-cabinet .phoenix-text-logo { min-width: 190px; padding: 0 14px; }
body.phoenix-cabinet .phoenix-brand-full { color: inherit; font: inherit; text-shadow: inherit; }
body.phoenix-cabinet .phoenix-brand-short { display: none; font: 800 18px/1 "Orbitron", sans-serif; color: #edf4ff; }
[data-toggled=icon-overlay-close] body.phoenix-cabinet .phoenix-brand-full,
[data-toggled=icon-click-closed] body.phoenix-cabinet .phoenix-brand-full,
[data-toggled=icon-hover-closed] body.phoenix-cabinet .phoenix-brand-full { display: none; }
[data-toggled=icon-overlay-close] body.phoenix-cabinet .phoenix-brand-short,
[data-toggled=icon-click-closed] body.phoenix-cabinet .phoenix-brand-short,
[data-toggled=icon-hover-closed] body.phoenix-cabinet .phoenix-brand-short { display: inline; }

/* Authentication pages: use the original image with no blue/purple full-screen tint. */
.phoenix-auth-background {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image: url('../images/phoenix/cabinet-bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.phoenix-auth-background::before { content: none !important; background: none !important; }
.phoenix-auth-background .container-lg,
.phoenix-auth-background .authentication,
.phoenix-auth-background .card { position: relative; z-index: 1; }
.phoenix-auth-background .card.custom-card {
  background: rgba(6, 8, 13, .86) !important;
  border: 1px solid rgba(98, 145, 211, .22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.phoenix-auth-background .phoenix-auth-logo { margin: 12px 0; font-size: clamp(20px, 3vw, 31px); }

@media (max-width: 991px) {
  #site-video-bg { object-fit: cover !important; }
  .phoenix-auth-background {
    background-image: url('../images/phoenix/cabinet-bg-mobile.webp');
    background-position: center top;
  }
}
@media (max-width: 575px) {
  body.phoenix-cabinet .phoenix-text-logo { min-width: 0; padding: 0 8px; }
  body.phoenix-cabinet .phoenix-brand-full { font-size: 15px; }
  .phoenix-auth-logo { font-size: 20px !important; }
}

/* La2phoenix.com image branding */
body.phoenix-cabinet .phoenix-image-logo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 205px;
  height: 64px;
  padding: 2px 10px;
  text-decoration: none !important;
  overflow: visible;
}
body.phoenix-cabinet .phoenix-brand-full-img {
  display: block;
  width: min(215px, 100%);
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(34, 126, 255, .28)) drop-shadow(0 0 8px rgba(255, 58, 27, .25));
}
body.phoenix-cabinet .phoenix-brand-short-img {
  display: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 7px rgba(34, 126, 255, .34)) drop-shadow(0 0 7px rgba(255, 58, 27, .30));
}
[data-toggled=icon-overlay-close] body.phoenix-cabinet .phoenix-brand-full-img,
[data-toggled=icon-click-closed] body.phoenix-cabinet .phoenix-brand-full-img,
[data-toggled=icon-hover-closed] body.phoenix-cabinet .phoenix-brand-full-img { display: none; }
[data-toggled=icon-overlay-close] body.phoenix-cabinet .phoenix-brand-short-img,
[data-toggled=icon-click-closed] body.phoenix-cabinet .phoenix-brand-short-img,
[data-toggled=icon-hover-closed] body.phoenix-cabinet .phoenix-brand-short-img { display: block; }
.phoenix-auth-logo-img {
  display: block;
  width: min(430px, 92vw);
  max-height: 150px;
  object-fit: contain;
  margin: 4px auto 10px;
  filter: drop-shadow(0 0 11px rgba(37, 126, 255, .34)) drop-shadow(0 0 13px rgba(255, 57, 24, .29));
}
@media (max-width: 575px) {
  body.phoenix-cabinet .phoenix-image-logo { min-width: 0; height: 52px; padding: 2px 4px; }
  body.phoenix-cabinet .phoenix-brand-full-img { width: 165px; max-height: 55px; }
  .phoenix-auth-logo-img { width: min(330px, 90vw); max-height: 112px; }
}

/* Registration layout fix: server data and character counters never overlap. */
body.phoenix-cabinet .account-limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  width: 100%;
  min-height: 18px;
  margin-bottom: 5px;
}
body.phoenix-cabinet .account-limit-row .form-text {
  display: inline-block;
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: .01em;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.phoenix-cabinet .account-limit-rule { flex: 1 1 125px; }
body.phoenix-cabinet .account-limit-counter {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap !important;
  color: #a9c7f5 !important;
}

body.phoenix-cabinet .registration-server-summary {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 14px !important;
  line-height: 1.25;
  overflow: hidden;
}
body.phoenix-cabinet .registration-server-main {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
body.phoenix-cabinet .registration-server-caption {
  color: var(--hell-muted);
  font-size: 12px;
  white-space: nowrap;
}
body.phoenix-cabinet .registration-server-name {
  max-width: min(100%, 310px);
  color: #f4f7ff;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.phoenix-cabinet .registration-server-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(92, 157, 242, .30);
  background: rgba(39, 91, 165, .18);
  color: #bcd8ff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
body.phoenix-cabinet .registration-server-chronicle {
  border-color: rgba(232, 74, 65, .27);
  background: rgba(138, 34, 38, .18);
  color: #ffc0bb;
}
body.phoenix-cabinet .registration-sync-link {
  flex: 0 1 auto;
  max-width: 100%;
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: #82b8ff;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}
body.phoenix-cabinet .registration-sync-link:hover { color: #c7ddff; }
body.phoenix-cabinet .registration-field-col,
body.phoenix-cabinet .registration-actions-col { margin-top: 4px; }
body.phoenix-cabinet .registration-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.phoenix-cabinet .server-select-dialog { max-width: 560px; }
body.phoenix-cabinet .server-select-content { overflow: hidden; }
body.phoenix-cabinet .server-select-label {
  font-size: 12px;
  color: var(--hell-muted) !important;
}
body.phoenix-cabinet .server-select-control {
  min-height: 46px;
  padding-right: 42px;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
}
body.phoenix-cabinet .server-select-control option {
  background: #0a0d15;
  color: #eef3ff;
}
body.phoenix-cabinet .server-select-hint {
  margin-top: 7px;
  color: var(--hell-muted);
  font-size: 10px;
  line-height: 1.35;
}

body.phoenix-cabinet #serverListSelect {
  max-width: min(42vw, 350px);
  min-width: 0;
}
body.phoenix-cabinet #serverListSelect .my-auto { min-width: 0; }
body.phoenix-cabinet #serverListSelect h6,
body.phoenix-cabinet #serverListSelect span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.phoenix-cabinet #serverListSelect h6 { font-size: 12px !important; }
body.phoenix-cabinet #serverListSelect span { font-size: 10px !important; }

@media (min-width: 1200px) {
  body.phoenix-cabinet .registration-actions {
    padding-top: 25px;
  }
}
@media (max-width: 991.98px) {
  body.phoenix-cabinet .registration-server-summary {
    align-items: flex-start;
  }
  body.phoenix-cabinet .registration-sync-link { width: 100%; }
  body.phoenix-cabinet .registration-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  body.phoenix-cabinet .account-limit-row {
    align-items: flex-start;
    gap: 2px 6px;
  }
  body.phoenix-cabinet .account-limit-row .form-text { font-size: 9px !important; }
  body.phoenix-cabinet .account-limit-rule { flex-basis: 100%; }
  body.phoenix-cabinet .account-limit-counter { width: 100%; text-align: left; }
  body.phoenix-cabinet .registration-server-main { width: 100%; }
  body.phoenix-cabinet .registration-server-caption { width: 100%; }
  body.phoenix-cabinet .registration-server-name { max-width: 100%; }
  body.phoenix-cabinet .registration-actions { grid-template-columns: 1fr; }
  body.phoenix-cabinet .server-select-dialog { margin: .75rem; }
  body.phoenix-cabinet .server-select-control { font-size: 12px; }
}

/* Admin server add/edit: readable rates and responsive fields. */
body.phoenix-cabinet .server-admin-form,
body.phoenix-cabinet .server-admin-form * { min-width: 0; }
body.phoenix-cabinet .server-admin-form .server-config-layout {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.25rem;
}
body.phoenix-cabinet .server-admin-form .server-primary-grid > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
body.phoenix-cabinet .server-admin-form .form-label {
  display: block;
  min-height: 18px;
  margin-bottom: 6px;
  color: #eaf1ff !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.phoenix-cabinet .server-admin-form .server-rate-field .form-label {
  color: #a9cbff !important;
  font-size: 10px !important;
  letter-spacing: .015em;
}
body.phoenix-cabinet .server-admin-form .server-rate-field .form-control {
  min-height: 42px;
  padding-inline: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
body.phoenix-cabinet .server-admin-form .server-name-field .form-control,
body.phoenix-cabinet .server-admin-form .server-select-field .form-control,
body.phoenix-cabinet .server-admin-form .server-select-field .form-select {
  min-height: 42px;
}
body.phoenix-cabinet .server-admin-form .choices {
  width: 100%;
  margin: 0;
}
body.phoenix-cabinet .server-admin-form .choices__inner {
  min-height: 42px !important;
  padding: 8px 34px 7px 11px !important;
  background: rgba(3, 5, 10, .76) !important;
  border-color: rgba(74, 127, 202, .27) !important;
  color: #f3f6fc !important;
  overflow: hidden;
}
body.phoenix-cabinet .server-admin-form .choices__list--single {
  padding: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.phoenix-cabinet .server-admin-form .choices__list--dropdown,
body.phoenix-cabinet .server-admin-form .choices__list[aria-expanded] {
  background: #090c14 !important;
  border-color: rgba(74, 127, 202, .35) !important;
  color: #eef4ff !important;
  z-index: 40;
}
body.phoenix-cabinet .server-admin-form .choices__item--choice {
  color: #e7efff !important;
  white-space: normal;
  line-height: 1.3;
}
body.phoenix-cabinet .server-admin-form .form-floating > label {
  min-height: auto;
  max-width: calc(100% - 16px);
  padding-inline: 12px;
  font-size: 10px !important;
  line-height: 1.15 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.phoenix-cabinet .server-admin-form .list-group-item .col-2 {
  flex: 0 0 min(220px, 35%);
  max-width: min(220px, 35%);
}

@media (max-width: 767.98px) {
  body.phoenix-cabinet .server-admin-form .p-4 { padding: 16px !important; }
  body.phoenix-cabinet .server-admin-form .server-rate-field .form-label { font-size: 9px !important; }
  body.phoenix-cabinet .server-admin-form .list-group-item .d-sm-flex { gap: 10px; }
  body.phoenix-cabinet .server-admin-form .list-group-item .col-2 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-top: 10px;
  }
}

/* Custom cabinet background managed from Admin -> La2phoenix.com. */
.phoenix-cabinet-custom-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
body.phoenix-cabinet.has-custom-cabinet-bg #site-video-bg {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.phoenix-cabinet.has-custom-cabinet-bg .dark-hell-atmosphere {
  background:
    radial-gradient(circle at 20% 24%, rgba(23, 93, 186, .13), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(157, 26, 32, .13), transparent 34%),
    linear-gradient(180deg, rgba(3, 5, 10, .20), rgba(2, 4, 8, .70)) !important;
}


/* Clean Dark Hell language selector in cabinet. */
body.phoenix-cabinet .country-selector {
  display: flex !important;
  align-items: center !important;
  margin-inline: 4px !important;
}
body.phoenix-cabinet .country-selector .phoenix-cabinet-lang-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 68px !important;
  height: 40px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(221,188,122,.24) !important;
  border-radius: 11px !important;
  color: #ead9b6 !important;
  background: linear-gradient(145deg, rgba(25,27,35,.94), rgba(8,9,14,.96)) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06) !important;
  text-decoration: none !important;
}
body.phoenix-cabinet .country-selector .phoenix-cabinet-lang-trigger::after {
  margin-left: 1px !important;
  border-top-color: rgba(234,217,182,.72) !important;
  vertical-align: middle !important;
}
body.phoenix-cabinet .country-selector .phoenix-cabinet-lang-trigger img {
  display: block !important;
  width: 22px !important;
  height: 15px !important;
  min-width: 22px !important;
  border-radius: 3px !important;
  object-fit: cover !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 3px 8px rgba(0,0,0,.28) !important;
}
body.phoenix-cabinet .phoenix-cabinet-lang-code {
  display: inline-block !important;
  min-width: 20px !important;
  color: #ead9b6 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-align: center !important;
}
body.phoenix-cabinet .country-selector .main-header-dropdown {
  min-width: 190px !important;
  padding: 7px !important;
  margin-top: 8px !important;
  border: 1px solid rgba(221,188,122,.20) !important;
  border-radius: 13px !important;
  background: rgba(9,10,15,.98) !important;
  box-shadow: 0 20px 45px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.05) !important;
  overflow: hidden !important;
}
body.phoenix-cabinet .country-selector .dropdown-item {
  display: flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  color: rgba(239,232,216,.82) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
body.phoenix-cabinet .country-selector .dropdown-item:hover,
body.phoenix-cabinet .country-selector .dropdown-item:focus {
  color: #f1dfb8 !important;
  background: rgba(207,157,75,.10) !important;
}
body.phoenix-cabinet .country-selector .dropdown-item .avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 18px !important;
  min-width: 24px !important;
  margin-right: 9px !important;
  background: transparent !important;
}
body.phoenix-cabinet .country-selector .dropdown-item .avatar img {
  width: 22px !important;
  height: 15px !important;
  border-radius: 3px !important;
  object-fit: cover !important;
}
@media (max-width: 575px) {
  body.phoenix-cabinet .country-selector .phoenix-cabinet-lang-trigger {
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  body.phoenix-cabinet .phoenix-cabinet-lang-code,
  body.phoenix-cabinet .country-selector .phoenix-cabinet-lang-trigger::after {
    display: none !important;
  }
}
