:root {
  --bg-main: #07091a;
  --bg-sidebar: #080b1d;
  --bg-card: rgba(13, 18, 42, 0.88);
  --bg-card-solid: #0e142e;
  --panel: rgba(12, 17, 39, 0.78);
  --panel-strong: rgba(10, 14, 34, 0.96);
  --border: rgba(132, 150, 210, 0.13);
  --border-bright: rgba(126, 87, 255, 0.34);
  --text-main: #f5f7ff;
  --text-soft: #c7cde5;
  --text-muted: #7f89ad;
  --purple: #8b5cf6;
  --purple-bright: #a855f7;
  --purple-soft: rgba(139, 92, 246, 0.14);
  --blue: #3b82f6;
  --cyan: #20b8ff;
  --green: #2dd4a3;
  --green-dark: #159b77;
  --green-soft: rgba(45, 212, 163, 0.12);
  --yellow: #f6b94a;
  --red: #ff6078;
  --radius: 14px;
  --sidebar-width: 272px;
  --topbar-height: 80px;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text-main);
  background:
    radial-gradient(circle at 72% -12%, rgba(51, 70, 190, 0.16), transparent 32%),
    radial-gradient(circle at 18% 72%, rgba(104, 42, 196, 0.09), transparent 28%),
    var(--bg-main);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 44px 44px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.55) rgba(7, 9, 26, 0.9);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 9, 26, 0.86);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.72), rgba(32, 184, 255, 0.48));
  border: 2px solid rgba(7, 9, 26, 0.9);
  border-radius: 999px;
}

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

button {
  cursor: pointer;
}

a {
  color: #9ab7ff;
}

.ui-icon {
  display: block;
  width: 19px;
  height: 19px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 0 14px 16px;
  overflow: hidden;
  color: var(--text-soft);
  background:
    linear-gradient(180deg, rgba(9, 13, 34, 0.99), rgba(6, 9, 25, 0.98)),
    var(--bg-sidebar);
  border-right: 1px solid rgba(104, 123, 187, 0.16);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: var(--topbar-height);
  padding: 0 7px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.52);
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #4e7cff, #8b5cf6 58%, #c33cff);
  box-shadow: 0 0 28px rgba(124, 78, 255, 0.36), inset 0 1px rgba(255, 255, 255, 0.22);
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  color: white;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.7px;
}

.brand-copy strong span {
  color: #9c8cff;
  font-weight: 600;
}

.brand-copy small {
  margin-top: 2px;
  color: #68739a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
  margin-left: auto;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 0 2px 14px 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-label {
  margin: 14px 10px 6px;
  color: #535e85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8f99bb;
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}

.nav-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: -3px;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(#7b70ff, #b13cff);
  box-shadow: 0 0 12px #8b5cf6;
  transition: 160ms ease;
}

.nav-item:hover {
  color: #d8dcf1;
  background: rgba(114, 129, 190, 0.07);
}

.nav-item.active {
  color: #fff;
  border-color: rgba(126, 87, 255, 0.48);
  background: linear-gradient(105deg, rgba(126, 57, 230, 0.24), rgba(42, 89, 208, 0.22));
  box-shadow: inset 0 0 24px rgba(91, 74, 219, 0.12), 0 0 20px rgba(88, 72, 210, 0.1);
}

.nav-item.active::before {
  height: 22px;
}

.nav-item.active .nav-icon {
  color: #a993ff;
  filter: drop-shadow(0 0 7px rgba(139, 92, 246, 0.7));
}

.sidebar-status {
  position: relative;
  margin-top: auto;
  padding: 13px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(99, 115, 177, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(20, 27, 59, 0.82), rgba(9, 13, 31, 0.92));
}

.sidebar-status::after {
  content: "";
  position: absolute;
  inset: auto -20px -38px auto;
  width: 100px;
  height: 80px;
  background: radial-gradient(circle, rgba(143, 64, 255, 0.2), transparent 66%);
}

.sidebar-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7984a9;
  font-size: 10px;
}

.sidebar-status-head span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-status-head i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.sidebar-status strong,
.sidebar-status small {
  display: block;
}

.sidebar-status strong {
  margin-top: 11px;
  color: var(--green);
  font-size: 15px;
}

.sidebar-status small {
  margin-top: 3px;
  color: #737d9e;
  font-size: 10px;
}

.status-wave {
  height: 22px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 3px;
  margin-top: -13px;
}

.status-wave i {
  width: 2px;
  border-radius: 3px;
  background: linear-gradient(#b445ff, #665cff);
  box-shadow: 0 0 6px rgba(159, 73, 255, 0.55);
}

.status-wave i:nth-child(1) { height: 5px; }
.status-wave i:nth-child(2) { height: 11px; }
.status-wave i:nth-child(3) { height: 7px; }
.status-wave i:nth-child(4) { height: 17px; }
.status-wave i:nth-child(5) { height: 8px; }
.status-wave i:nth-child(6) { height: 14px; }
.status-wave i:nth-child(7) { height: 5px; }
.status-wave i:nth-child(8) { height: 10px; }

.sidebar-footer {
  padding: 12px 5px 0;
  color: #4e5778;
  font-size: 10px;
}

.sidebar-footer span {
  float: right;
}

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 20;
  height: var(--topbar-height);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 25px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 27, 0.84);
  backdrop-filter: blur(20px);
}

.topbar-search {
  width: min(470px, 44vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(112, 127, 184, 0.16);
  border-radius: 10px;
  color: #7180aa;
  background: rgba(16, 22, 48, 0.58);
  transition: 160ms ease;
}

.topbar-search:focus-within {
  border-color: rgba(126, 87, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(126, 87, 255, 0.08);
}

.topbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: transparent;
}

.topbar-search input::placeholder {
  color: #667197;
}

.topbar-search kbd {
  padding: 3px 7px;
  border: 1px solid rgba(131, 145, 198, 0.12);
  border-radius: 5px;
  color: #7781a3;
  background: rgba(27, 35, 70, 0.58);
  font: 10px/1.4 inherit;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-divider {
  width: 1px;
  height: 32px;
  margin: 0 7px;
  background: var(--border);
}

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 4px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #264ab2, #822ec8);
  box-shadow: 0 0 18px rgba(118, 70, 218, 0.28);
  font-size: 11px;
  font-weight: 800;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  max-width: 110px;
  overflow: hidden;
  color: #ecedfa;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.profile small {
  margin-top: 2px;
  color: #6f789a;
  font-size: 10px;
}

.content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 22px) 24px 26px;
}

.page-heading,
.page-shell,
.footer {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.page-heading h1 {
  margin: 3px 0 0;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.page-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.page-eyebrow {
  color: #776ba8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(16, 22, 49, 0.89), rgba(9, 13, 32, 0.91)),
    var(--bg-card);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.015);
}

.card > p:first-child,
.card > .muted:first-child {
  margin-top: 0;
}

.card h2,
.card h3 {
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

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

.card h3 {
  font-size: 14px;
}

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

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.btn,
.icon-button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-main);
  background: rgba(20, 27, 57, 0.76);
  transition: 150ms ease;
}

.btn {
  padding: 0 15px;
  white-space: nowrap;
}

.icon-button {
  width: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.btn:hover,
.icon-button:hover {
  border-color: rgba(139, 92, 246, 0.48);
  background-color: rgba(41, 37, 91, 0.72);
  transform: translateY(-1px);
}

.btn:active,
.icon-button:active {
  transform: translateY(0);
}

.btn:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.btn-green {
  border-color: rgba(109, 76, 255, 0.64);
  background: linear-gradient(135deg, #5337d8, #7d36ed);
  box-shadow: 0 6px 18px rgba(97, 52, 213, 0.22);
}

.btn-yellow {
  color: #ffe0a3;
  border-color: rgba(246, 185, 74, 0.36);
  background: rgba(246, 185, 74, 0.1);
}

.btn-red {
  color: #ffc2cc;
  border-color: rgba(255, 96, 120, 0.36);
  background: rgba(255, 96, 120, 0.1);
}

.btn-blue {
  color: #b9dcff;
  border-color: rgba(32, 184, 255, 0.36);
  background: rgba(32, 184, 255, 0.1);
}

.server-control.start {
  color: var(--green);
}

.server-control.restart {
  color: var(--yellow);
}

.server-control.stop {
  color: var(--red);
}

.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(14, 20, 45, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 10px currentColor;
}

.status-pill.online {
  color: var(--green);
}

.status-pill.online i {
  background: var(--green);
}

.status-pill.offline {
  color: #ff91a3;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #8a93b4;
  font-size: 11px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea,
.content input:not([type="file"]),
.content select,
.content textarea {
  width: 100%;
  min-height: 41px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 141, 197, 0.14);
  border-radius: 9px;
  outline: none;
  color: var(--text-main);
  background: rgba(6, 10, 27, 0.58);
  transition: 150ms ease;
}

.field input::placeholder,
.content input::placeholder,
.field textarea::placeholder,
.content textarea::placeholder {
  color: #515d83;
}

.field select,
.content select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8290b7 50%),
    linear-gradient(135deg, #8290b7 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.field select option,
.content select option {
  color: var(--text-main);
  background: #0d122c;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.content input:not([type="file"]):focus,
.content select:focus,
.content textarea:focus {
  border-color: rgba(139, 92, 246, 0.66);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.09);
}

.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.table-wrap,
.card > .table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(124, 139, 194, 0.09);
  text-align: left;
  vertical-align: middle;
}

.table tbody tr {
  transition: 140ms ease;
}

.table tbody tr:hover {
  background: rgba(121, 83, 246, 0.045);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table th {
  color: #737e9f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.table-actions .btn,
.table td .btn {
  min-height: 31px;
  padding: 0 10px;
}

.badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #b9c0da;
  background: rgba(116, 132, 187, 0.08);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.green {
  color: var(--green);
  border-color: rgba(45, 212, 163, 0.28);
  background: rgba(45, 212, 163, 0.08);
}

.badge.red {
  color: #ff9aac;
  border-color: rgba(255, 96, 120, 0.28);
  background: rgba(255, 96, 120, 0.08);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.toolbar h2,
.toolbar h3,
.toolbar p {
  margin-top: 0;
}

.toolbar p {
  margin-bottom: 0;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.toolbar select,
.toolbar input {
  width: auto;
  min-width: 150px;
}

.warning-box {
  padding: 13px 14px;
  border: 1px solid rgba(246, 185, 74, 0.24);
  border-radius: 10px;
  color: #f5cf86;
  background: rgba(246, 185, 74, 0.07);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list.compact {
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
}

.info-row strong {
  color: var(--text-soft);
  font-weight: 550;
  text-align: right;
  word-break: break-word;
}

.content code {
  padding: 2px 6px;
  border: 1px solid rgba(127, 143, 198, 0.11);
  border-radius: 5px;
  color: #cad7ff;
  background: rgba(112, 128, 187, 0.09);
}

.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 32px));
  padding: 13px 15px;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  background: rgba(13, 18, 43, 0.97);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.toast.success {
  border-color: rgba(45, 212, 163, 0.38);
}

.toast.error {
  border-color: rgba(255, 96, 120, 0.42);
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  color: #4f597a;
  font-size: 10px;
}

.mobile-menu,
.overlay {
  display: none;
}

.player-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 15px;
}

.player-summary article {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 23, 52, 0.9), rgba(9, 14, 34, 0.9));
}

.player-summary article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 10px;
  color: #9e7cff;
  background: rgba(126, 87, 255, 0.12);
}

.player-summary small,
.player-summary strong {
  display: block;
}

.player-summary small {
  color: var(--text-muted);
  font-size: 10px;
}

.player-summary strong {
  margin-top: 4px;
  font-size: 19px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 15px;
  margin-bottom: 15px;
}

.player-online-card .toolbar .btn,
#refreshPlayers {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#refreshPlayers .ui-icon {
  width: 15px;
  height: 15px;
}

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

.player-chip {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid rgba(118, 132, 188, 0.11);
  border-radius: 10px;
  color: var(--text-main);
  background: rgba(7, 12, 31, 0.42);
  text-align: left;
  transition: 150ms ease;
}

.player-chip:hover {
  border-color: rgba(45, 212, 163, 0.32);
  background: rgba(45, 212, 163, 0.06);
}

.player-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid rgba(45, 212, 163, 0.25);
  border-radius: 9px;
  color: var(--green);
  background: rgba(45, 212, 163, 0.09);
  font-size: 11px;
  font-weight: 800;
}

.player-chip strong,
.player-chip small {
  display: block;
}

.player-chip small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 9px;
}

.player-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px dashed rgba(118, 132, 188, 0.14);
  border-radius: 10px;
  color: var(--text-muted);
}

.player-updated {
  margin: 13px 0 0;
  color: #596383;
  font-size: 9px;
}

.player-action-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.player-action-title > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #a98bff;
  background: rgba(139, 92, 246, 0.12);
}

.player-action-title h2,
.player-action-title p {
  margin: 0;
}

.player-action-title p {
  margin-top: 3px;
}

.player-action-card > .field {
  margin-bottom: 12px;
}

.action-section {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(118, 132, 188, 0.09);
}

.action-label {
  display: block;
  margin-bottom: 8px;
  color: #657094;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.action-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.player-directory-card {
  margin-top: 0;
}

.player-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.player-directory {
  padding: 13px;
  border: 1px solid rgba(118, 132, 188, 0.1);
  border-radius: 10px;
  background: rgba(7, 12, 31, 0.4);
}

.player-directory-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(118, 132, 188, 0.09);
}

.player-directory-head > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #9c82ff;
  background: rgba(139, 92, 246, 0.1);
}

.player-directory-head .ui-icon {
  width: 16px;
  height: 16px;
}

.player-directory-head strong,
.player-directory-head small {
  display: block;
}

.player-directory-head small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

.player-directory-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 11px;
}

.player-directory-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.directory-name {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(100, 116, 170, 0.08);
  font-size: 10px;
}

.directory-name.green {
  color: var(--green);
  border-color: rgba(45, 212, 163, 0.2);
}

.directory-name.red {
  color: #ff9aac;
  border-color: rgba(255, 96, 120, 0.2);
}

.directory-name.purple {
  color: #b49cff;
  border-color: rgba(139, 92, 246, 0.24);
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 15px;
}

.account-summary article {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 23, 52, 0.9), rgba(9, 14, 34, 0.9));
}

.account-summary article > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 10px;
  color: #a78bff;
  background: rgba(139, 92, 246, 0.12);
}

.account-summary small,
.account-summary strong {
  display: block;
}

.account-summary small {
  color: var(--text-muted);
  font-size: 9px;
}

.account-summary strong {
  margin-top: 4px;
  font-size: 19px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 15px;
  margin-bottom: 15px;
}

.account-create-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}

.account-create-head > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 11px;
  color: #ad93ff;
  background: rgba(139, 92, 246, 0.12);
}

.account-create-head h2,
.account-create-head p {
  margin: 0;
}

.account-create-head p {
  margin-top: 4px;
}

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

.account-form .field:first-child {
  grid-column: 1 / -1;
}

.account-form > .btn {
  min-height: 43px;
}

.account-role-preview {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(45, 212, 163, 0.2);
  border-radius: 9px;
  color: var(--text-muted);
  background: rgba(45, 212, 163, 0.055);
  font-size: 10px;
}

.account-role-preview strong {
  color: var(--green);
  font-size: 10px;
}

.account-info-card {
  display: grid;
  align-content: start;
  gap: 11px;
}

.access-role {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(118, 132, 188, 0.1);
  border-radius: 10px;
  background: rgba(7, 12, 31, 0.42);
}

.access-role > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(45, 212, 163, 0.09);
}

.access-role.admin > span {
  color: #ad90ff;
  background: rgba(139, 92, 246, 0.12);
}

.access-role .ui-icon {
  width: 16px;
  height: 16px;
}

.access-role strong {
  font-size: 12px;
}

.access-role p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.account-table-card {
  padding-bottom: 6px;
}

.account-table-card #refreshUsers {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-table-card #refreshUsers .ui-icon {
  width: 15px;
  height: 15px;
}

.account-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-cell > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 9px;
  color: #b49cff;
  background: rgba(139, 92, 246, 0.09);
  font-size: 10px;
  font-weight: 800;
}

.account-cell strong,
.account-cell small {
  display: block;
}

.account-cell small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 9px;
}
