:root {
  --ink: #182433;
  --muted: #667085;
  --line: #dce3eb;
  --soft: #f4f6f9;
  --blue: #206bc4;
  --green: #2fb344;
  --danger: #d63939;
  --shadow: 0 10px 24px rgba(24, 36, 51, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-panel {
  width: 420px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.brand, .side-brand {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 950;
}

.login-panel h1 {
  margin: 18px 0 6px;
  font-size: 28px;
}

.login-panel p, .panel-head span, .eyebrow {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 850;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  outline: none;
}

input, select {
  height: 40px;
  padding: 0 11px;
}

textarea {
  min-height: 88px;
  padding: 11px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(32, 107, 196, 0.68);
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.1);
}

.primary-btn, .soft-btn, .ghost-btn {
  height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 850;
}

.primary-btn {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.soft-btn, .ghost-btn, .soft-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.soft-link {
  height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 850;
}

.error-text {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

.admin-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: 72px 1fr;
}

.side-nav {
  grid-row: 1 / -1;
  padding: 12px 9px;
  background: #17202b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-brand {
  margin: 0 auto 12px;
}

.nav-item {
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 850;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar {
  grid-column: 2;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view {
  grid-column: 2;
  min-height: 0;
  padding: 18px 22px 24px;
  overflow: auto;
}

.panel {
  max-width: 1280px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.narrow-panel {
  max-width: 760px;
}

.panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head strong {
  display: block;
  font-size: 16px;
}

.panel-head span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.stat-card, .link-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 24px;
}

.stat-card span, .link-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.toolbar-grid {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 180px 180px 180px auto;
  gap: 10px;
}

.record-list {
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.record-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.record-row.game-row {
  grid-template-columns: 160px minmax(0, 1fr) auto;
}

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

.player-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.player-card .wide,
.form-grid .wide {
  grid-column: 1 / -1;
}

.recharge-tier-form {
  margin-top: 22px;
}

.member-config-panel {
  padding: 0 18px 18px;
}

.user-search-bar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) auto;
  gap: 10px;
  padding: 0 18px 12px;
  align-items: center;
}

.member-level-toolbar {
  padding-left: 0;
  padding-right: 0;
  grid-template-columns: 160px 160px 140px minmax(180px, 1fr) auto auto;
}

.record-row.user-row {
  grid-template-columns: minmax(160px, 1fr) 120px 130px 150px 120px auto;
}

.member-level-row {
  grid-template-columns: 120px 150px 140px 120px minmax(180px, 1fr) auto;
}

.catalog-config-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  padding: 0 18px 18px;
  align-items: start;
}

.order-category-row {
  grid-template-columns: 90px minmax(0, 1fr) 72px auto auto;
  cursor: pointer;
}

.order-category-row.active {
  border-color: rgba(43, 108, 246, .38);
  background: #eef5ff;
  box-shadow: inset 3px 0 0 #2b6cf6;
}

.order-item-row {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.order-item-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  align-items: center;
}

.order-item-main .switch-field {
  min-height: 36px;
}

.image-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 8px;
}

.image-drop-zone {
  min-height: 36px;
  padding: 0 12px;
  border: 1px dashed #b9c7d8;
  border-radius: 6px;
  background: #f8fafc;
  color: #506176;
  font-size: 12px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.image-drop-zone.dragging {
  border-color: #2b6cf6;
  background: #eef5ff;
  color: #174ea6;
}

.image-drop-zone input {
  display: none;
}

.order-item-row textarea {
  min-height: 72px;
  resize: vertical;
}

.inline-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.danger-btn {
  height: 36px;
  border: 1px solid rgba(214, 57, 57, 0.24);
  border-radius: 6px;
  background: #fff5f5;
  color: var(--danger);
  font-weight: 850;
}

.footer-action {
  margin: 0 18px 18px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #182433;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
}

/* Neon dark console skin */
:root {
  --ink: #f5f7fb;
  --muted: #8d93a3;
  --line: rgba(255, 255, 255, 0.08);
  --soft: #050607;
  --blue: #35e6e0;
  --green: #35e6e0;
  --danger: #ff4f87;
  --pink: #ff3d78;
  --purple: #9b5cff;
  --panel: #121314;
  --panel-2: #17181b;
  --shadow: 0 16px 46px rgba(0, 0, 0, 0.36);
}

body {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 61, 120, 0.12), transparent 34%),
    radial-gradient(circle at 35% 5%, rgba(53, 230, 224, 0.1), transparent 28%),
    #050607;
  color: var(--ink);
}

.login-panel,
.panel,
.stat-card,
.link-grid article,
.record-row,
.player-card,
.admin-table-wrap {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(24, 25, 28, 0.96), rgba(15, 16, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow);
}

.login-view {
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 230, 224, 0.13), transparent 32%),
    #050607;
}

.brand,
.side-brand {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: #0a0b0d;
}

.brand {
  background: url("./assets/guiyuan-logo.jpg") center / cover;
  color: transparent;
}

.side-nav {
  background: #090a0c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item {
  position: relative;
  min-height: 48px;
  text-align: left;
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 61, 120, 0.22), rgba(53, 230, 224, 0.1));
  color: #fff;
}

.nav-item.active::before {
  background: linear-gradient(180deg, var(--pink), var(--blue));
  box-shadow: 0 0 14px rgba(255, 61, 120, 0.8);
}

.topbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(12, 13, 15, 0.92);
}

.welcome-card {
  max-width: 1280px;
  min-height: 168px;
  margin: 0 auto 22px;
  padding: 30px 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(53, 230, 224, 0.88);
  border-radius: 10px;
  background:
    linear-gradient(110deg, rgba(17, 18, 21, 0.98), rgba(17, 18, 21, 0.92) 62%, rgba(255, 61, 120, 0.16)),
    #111215;
  box-shadow: 0 -2px 0 rgba(53, 230, 224, 0.45), var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.welcome-card h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 28px;
}

.welcome-card p {
  margin: 0;
  color: var(--muted);
}

.rocket-mark {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(53, 230, 224, 0.95), rgba(255, 61, 120, 0.9));
  color: #090a0c;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 950;
  transform: rotate(-12deg);
}

.panel-head,
.order-table th {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

input,
select,
textarea {
  border-color: rgba(255, 255, 255, 0.09);
  background: #0b0c0f;
  color: #f5f7fb;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(53, 230, 224, 0.68);
  box-shadow: 0 0 0 3px rgba(53, 230, 224, 0.12);
}

label span,
.panel-head strong,
.sub-head,
.link-grid strong,
.record-row strong {
  color: #fff;
}

.primary-btn {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: #0a0b0d;
}

.soft-btn,
.ghost-btn,
.soft-link {
  border-color: rgba(255, 255, 255, 0.1);
  background: #15171b;
  color: #f5f7fb;
}

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

.stat-card {
  min-height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
}

.stat-card strong {
  color: var(--blue);
  font-size: 30px;
  text-shadow: 0 0 18px rgba(53, 230, 224, 0.35);
}

.stat-card:nth-child(2n) strong {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 61, 120, 0.35);
}

.home-config-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sub-head {
  margin-bottom: 10px;
  font-weight: 900;
}

.tight-list {
  padding: 0;
}

.notice-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.package-row {
  grid-template-columns: 140px minmax(0, 1fr) 120px auto;
}

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

.record-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-table-wrap {
  margin: 18px;
  overflow: auto;
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.admin-table th {
  color: #bdc4d2;
  background: #111216;
}

.admin-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.money-cell {
  color: var(--blue);
  font-weight: 950;
}

.status-tag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 28px;
  margin-top: 0 !important;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
}

.status-tag.pending {
  color: #f59f32;
  background: rgba(245, 159, 50, 0.12);
}

.status-tag.success {
  color: var(--green);
  background: rgba(20, 184, 108, 0.12);
}

.status-tag.rejected {
  color: var(--danger);
  background: rgba(214, 57, 57, 0.12);
}

.empty-cell {
  height: 150px;
  color: var(--muted);
  text-align: center;
}

/* Compact sidebar and dashboard layout to match the reference backend */
.admin-shell {
  grid-template-columns: 218px minmax(0, 1fr);
  grid-template-rows: 60px 1fr;
}

.side-nav {
  padding: 12px 8px;
  overflow-y: auto;
}

.side-brand {
  width: auto;
  height: 38px;
  margin: 0 4px 10px;
  justify-content: start;
  padding-left: 44px;
  border-radius: 3px;
  font-size: 15px;
  position: relative;
  background: transparent;
}

.side-brand::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: url("./assets/guiyuan-logo.jpg") center / cover;
}

.side-brand span {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.nav-item {
  min-height: 38px;
  border-radius: 3px;
  padding: 0 12px 0 40px;
  text-align: left;
  font-size: 14px;
}

.nav-item::after {
  position: absolute;
  left: 17px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.nav-item[data-view="overview"]::after { content: "◆"; }
.nav-item[data-view="users"]::after { content: "●"; }
.nav-item[data-view="finance"]::after { content: "粮"; }
.nav-item[data-view="staff"]::after { content: "客"; }
.nav-item[data-view="home"]::after { content: "▰"; }
.nav-item[data-view="messages"]::after { content: "●"; }
.nav-item[data-view="games"]::after { content: "◎"; }
.nav-item[data-view="players"]::after { content: "▤"; }
.nav-item[data-view="orders"]::after { content: "▥"; }
.nav-item[data-view="dispatch"]::after { content: "➤"; }
.nav-item[data-view="accepts"]::after { content: "✓"; }
.nav-item[data-view="help"]::after { content: "?"; }
.nav-item[data-view="recharge"]::after { content: "▣"; }
.nav-item[data-view="chats"]::after { content: "◇"; }
.nav-item[data-view="settings"]::after { content: "⚙"; }
.nav-item[data-view="system"]::after { content: "⌁"; }

.topbar {
  min-height: 60px;
  padding: 8px 20px;
}

.view {
  padding: 18px 22px;
}

.welcome-card {
  min-height: 148px;
  margin-bottom: 22px;
  border-radius: 8px;
}

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

.inner-stats {
  padding: 18px;
  margin: 0;
  max-width: none;
}

.stat-card {
  min-height: 112px;
  border-radius: 6px;
}

.panel,
.record-row,
.player-card,
.admin-table-wrap,
.link-grid article {
  border-radius: 6px;
}

.record-row.user-row,
.record-row.order-record,
.record-row.fighter-row,
.record-row.session-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.record-row.help-row,
.record-row.system-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.record-row.staff-row {
  grid-template-columns: 120px repeat(4, minmax(120px, 1fr)) 110px minmax(260px, 1.5fr) auto;
  align-items: center;
  gap: 10px;
}

.staff-status-cell {
  min-width: 0;
}

.staff-status-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  width: fit-content;
  min-height: 22px;
  margin-top: 6px;
  padding: 0 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.status-pill.online {
  border: 1px solid rgba(53, 230, 224, 0.28);
  background: rgba(53, 230, 224, 0.1);
  color: #dfffff;
}

.status-pill.online i {
  background: #35e6e0;
  box-shadow: 0 0 10px rgba(53, 230, 224, 0.8);
}

.status-pill.offline {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #8f99a8;
}

.status-pill.offline i {
  background: #707887;
}

.inline-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.inline-field span,
.switch-field span {
  color: var(--muted);
  font-size: 12px;
}

.switch-field {
  min-height: 54px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.switch-field input {
  width: 16px;
  height: 16px;
  accent-color: #35e6e0;
}

.staff-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.staff-metrics span {
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.staff-metrics strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 16px;
}

@media (max-width: 1280px) {
  .catalog-config-grid {
    grid-template-columns: 1fr;
  }

  .order-item-main,
  .image-config-row {
    grid-template-columns: 1fr;
  }

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

  .staff-metrics,
  .inline-actions {
    grid-column: 1 / -1;
  }
}

/* Final light admin skin, aligned with the reference backend style */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #dfe5ec;
  --soft: #eef2f6;
  --blue: #1f74c9;
  --green: #28a745;
  --danger: #d83933;
  --shadow: 0 8px 18px rgba(31, 41, 55, 0.06);
}

body {
  background: #eef2f6;
  color: var(--ink);
}

.admin-shell {
  grid-template-columns: 186px minmax(0, 1fr) !important;
  grid-template-rows: 52px 1fr !important;
  background: #eef2f6;
}

.side-nav {
  padding: 8px 0 !important;
  gap: 0 !important;
  border-right: 1px solid #d9e0e8;
  background: #ffffff !important;
  box-shadow: 2px 0 8px rgba(31, 41, 55, 0.04);
}

.side-brand {
  width: 100% !important;
  height: 48px !important;
  margin: 0 0 6px !important;
  padding-left: 50px !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.side-brand::before {
  left: 14px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 4px !important;
}

.side-brand span {
  color: #202a36 !important;
  font-size: 15px !important;
}

.nav-item {
  position: relative;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 12px 0 42px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #3d4754 !important;
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.nav-item::after {
  left: 18px !important;
  color: #8b96a5 !important;
}

.nav-item:hover,
.nav-item.active {
  background: #e9f2ff !important;
  color: #1264b0 !important;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #1f74c9;
}

.topbar {
  min-height: 52px !important;
  padding: 0 18px !important;
  border: 0 !important;
  background: #202a36 !important;
  color: #ffffff !important;
}

.topbar h1,
.topbar .eyebrow,
.topbar strong,
.topbar span {
  color: #ffffff !important;
}

.topbar .ghost-btn,
.topbar .soft-btn,
.topbar .soft-link {
  height: 32px;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.view {
  padding: 14px 16px !important;
  background: #eef2f6 !important;
}

.panel,
.welcome-card,
.admin-table-wrap,
.record-row,
.player-card,
.link-grid article,
.revenue-config-panel {
  border: 1px solid #dfe5ec !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.panel {
  overflow: hidden;
}

.panel-head {
  min-height: 48px;
  padding: 12px 14px !important;
  border-bottom: 1px solid #e5eaf0;
  background: #ffffff;
}

.panel-head strong,
.sub-head {
  color: #202a36 !important;
}

.panel-head span,
.record-row span,
.admin-table td span,
.player-card span,
.inline-field span,
.switch-field span {
  color: #697586 !important;
}

.welcome-card {
  min-height: 118px !important;
  margin-bottom: 14px !important;
  padding: 18px !important;
  background: #ffffff !important;
}

.stats-grid {
  grid-template-columns: repeat(6, minmax(132px, 1fr)) !important;
  gap: 10px !important;
}

.stat-card {
  min-height: 86px !important;
  padding: 14px !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  text-align: left !important;
  place-items: start !important;
}

.stat-card:nth-child(6n+1) { background: #263544 !important; }
.stat-card:nth-child(6n+2) { background: #2580d8 !important; }
.stat-card:nth-child(6n+3) { background: #21a79d !important; }
.stat-card:nth-child(6n+4) { background: #f3a21a !important; }
.stat-card:nth-child(6n+5) { background: #20a15c !important; }
.stat-card:nth-child(6n) { background: #e05b4f !important; }

.stat-card strong,
.stat-card span {
  color: #ffffff !important;
  text-shadow: none !important;
}

.stat-card strong {
  font-size: 26px !important;
}

input,
select,
textarea {
  border-color: #d8e0e8 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
}

input,
select {
  height: 34px !important;
}

.primary-btn,
.soft-btn,
.ghost-btn,
.soft-link,
.danger-btn,
.mini-btn {
  min-height: 32px;
  border-radius: 3px !important;
  box-shadow: none !important;
  font-size: 13px;
}

.primary-btn {
  background: #1f74c9 !important;
  color: #ffffff !important;
}

.soft-btn,
.ghost-btn,
.soft-link,
.mini-btn {
  border-color: #d8e0e8 !important;
  background: #f8fafc !important;
  color: #253241 !important;
}

.danger-btn {
  border-color: #f0c0be !important;
  background: #fff5f5 !important;
  color: #d83933 !important;
}

.revenue-config-panel {
  margin: 14px;
  padding: 14px;
}

.revenue-config-row {
  grid-template-columns: minmax(180px, 1fr) 160px minmax(220px, 1fr) 82px !important;
  gap: 10px !important;
  align-items: center;
  padding: 10px !important;
}

.revenue-toolbar,
.bulk-config-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 10px;
  align-items: center;
}

.bulk-config-row {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.select-row {
  min-height: 34px;
  padding: 7px 8px;
  border: 1px dashed #ccd5df;
  border-radius: 3px;
  background: #f8fafc;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.select-row input {
  width: 16px !important;
  height: 16px !important;
}

.revenue-config-summary,
.player-balance {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #dfe5ec;
  border-radius: 3px;
  background: #f8fafc;
}

.revenue-config-summary strong,
.revenue-config-summary span,
.player-balance strong,
.player-balance span {
  display: block;
}

.revenue-config-summary strong,
.player-balance strong {
  color: #1264b0 !important;
  font-size: 13px;
}

.revenue-config-summary span,
.player-balance span {
  margin-top: 2px;
  color: #697586 !important;
  font-size: 12px;
}

.player-list-panel,
.player-detail-panel {
  margin: 14px;
  padding: 14px;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  background: #ffffff;
}

.player-level-row {
  grid-template-columns: minmax(220px, 1fr) 82px !important;
  padding: 10px !important;
}

.player-level-toolbar {
  padding: 0 !important;
  margin: 10px 0 14px;
  grid-template-columns: minmax(240px, 1fr) auto auto !important;
}

.player-filter-bar {
  margin: 12px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
}

.player-table-wrap {
  margin: 0 !important;
}

.player-table {
  min-width: 940px !important;
}

.player-table td:first-child,
.player-table th:first-child {
  width: 58px;
  text-align: center;
}

.player-table input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
}

.detail-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5eaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-head span {
  color: #697586;
  font-size: 12px;
}

.player-detail-form {
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.player-detail-form .wide,
.detail-actions {
  grid-column: 1 / -1;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-table-wrap {
  margin: 14px !important;
  overflow: auto;
}

.admin-table {
  min-width: 1220px !important;
  background: #ffffff !important;
}

.admin-table th {
  height: 38px;
  padding: 8px 10px !important;
  border-bottom: 1px solid #dfe5ec !important;
  background: #f5f7fa !important;
  color: #4b5563 !important;
  white-space: nowrap;
}

.admin-table td {
  padding: 9px 10px !important;
  border-bottom: 1px solid #edf1f5 !important;
  background: #ffffff !important;
  color: #253241 !important;
}

.admin-table tr:hover td {
  background: #f8fbff !important;
}

.money-cell {
  color: #1264b0 !important;
}

.commission-cell {
  color: #d97706 !important;
}

.player-income-cell {
  color: #159957 !important;
}

.status-pill.online {
  border-color: #bdebd2 !important;
  background: #eaf8f0 !important;
  color: #16794a !important;
}

.status-pill.offline {
  border-color: #d8e0e8 !important;
  background: #f2f4f7 !important;
  color: #697586 !important;
}

.switch-field,
.staff-metrics span {
  border-color: #dfe5ec !important;
  background: #f8fafc !important;
}

.staff-metrics strong {
  color: #1264b0 !important;
}

.stat-card:nth-child(n) strong,
.stat-card:nth-child(n) span {
  color: #ffffff !important;
  text-shadow: none !important;
}

.record-row.user-row {
  grid-template-columns: minmax(170px, 1fr) 120px 130px 150px 120px auto !important;
}

.record-row.user-row.located {
  border-color: #f4c56a !important;
  background: #fffaf0 !important;
  box-shadow: inset 3px 0 0 #f2b545;
}

.user-bills {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf1f5;
}

.user-bills span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e5ebf2;
  border-radius: 4px;
  background: #f8fafc;
}

.user-bills b,
.user-bills em,
.user-bills small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.user-bills b {
  color: #253241;
  font-size: 12px;
}

.user-bills em {
  margin-top: 3px;
  color: #1264b0;
  font-size: 13px;
  font-weight: 800;
}

.user-bills small {
  margin-top: 2px;
  color: #697586;
  font-size: 11px;
}
