:root {
  --bg: #080b14;
  --bg-soft: #101524;
  --panel: rgba(16, 21, 36, 0.78);
  --panel-strong: rgba(11, 15, 28, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7ff;
  --muted: #8f9ab8;
  --accent: #ff2d55;
  --accent-soft: rgba(255, 45, 85, 0.14);
  --accent-alt: #3de3ff;
  --success: #36d98d;
  --warning: #ffb648;
  --danger: #ff5c75;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 45, 85, 0.2), transparent 25%),
    radial-gradient(circle at top right, rgba(61, 227, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #06070c 0%, #0a1020 48%, #090d17 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 85%);
}

.auth-body,
.dashboard-body {
  min-height: 100vh;
}

.auth-shell {
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
}

.brand-panel,
.auth-panel,
.panel-card,
.stat-card,
.topbar {
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-panel,
.auth-panel {
  border-radius: 28px;
  background: var(--panel);
  padding: 36px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffdbe3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-panel h1,
.topbar h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.brand-panel p,
.panel-head p,
.stat-card span,
.user-pill,
.message,
label span {
  color: var(--muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.info-card,
.stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.info-card span,
.stat-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.info-card strong,
.stat-card strong {
  font-size: 1.1rem;
}

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

.tab-button,
.ghost-button,
.primary-button,
select,
input,
textarea {
  border-radius: 16px;
  border: 1px solid transparent;
  font: inherit;
}

.tab-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.22), rgba(61, 227, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.08);
}

.tab-content {
  display: none;
  margin-top: 22px;
}

.tab-content.active {
  display: block;
}

.boss-ops-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.boss-ops-panel {
  display: none;
}

.boss-ops-panel.active {
  display: block;
}

.boss-product-list,
.boss-category-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.boss-product-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.boss-product-thumb {
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.boss-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boss-product-thumb.empty {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.32), rgba(61, 227, 255, 0.14));
}

.boss-product-main {
  min-width: 0;
}

.boss-product-main strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.boss-product-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.boss-product-price {
  color: #fff;
  font-size: 1.2rem;
}

.boss-product-origin {
  color: var(--muted);
  text-decoration: line-through;
}

.boss-category-chip,
.boss-placeholder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.boss-category-chip span,
.boss-placeholder-card span {
  color: var(--muted);
}

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

form h2 {
  margin: 0 0 18px;
  font-size: 1.6rem;
}

label {
  display: block;
  margin-bottom: 14px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

select {
  background: #ffffff;
  color: #111111;
  border-color: #d9dfef;
}

option {
  background: #ffffff;
  color: #111111;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(61, 227, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(61, 227, 255, 0.08);
}

textarea {
  resize: vertical;
  min-height: 220px;
  color: var(--text);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #ff5f43 100%);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 45, 85, 0.28);
}

.primary-button.small {
  width: auto;
  padding: 12px 16px;
}

.ghost-button {
  border-color: rgba(255, 255, 255, 0.08);
}

.message {
  min-height: 24px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.message.error {
  color: #ff8ca0;
}

.message.success {
  color: #74f0b6;
}

.topbar {
  width: min(1320px, calc(100% - 32px));
  margin: 24px auto 0;
  border-radius: 24px;
  background: var(--panel-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
}

.topbar h1 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.topbar-title-row {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-mode-button {
  min-width: 108px;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-mode-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.9), rgba(61, 227, 255, 0.34));
  box-shadow: 0 12px 26px rgba(255, 45, 85, 0.16);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-pill,
.status-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.32), rgba(61, 227, 255, 0.18));
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.payment-proof-field {
  display: grid;
  gap: 8px;
}

.payment-proof-field > span,
.payment-proof-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.payment-proof-dropzone {
  min-height: 96px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  padding: 10px;
  outline: none;
  cursor: text;
}

.payment-proof-dropzone:focus {
  border-color: rgba(255, 79, 111, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 79, 111, 0.12);
}

.payment-proof-placeholder {
  color: var(--muted);
  text-align: center;
}

.payment-proof-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  object-fit: contain;
}

.payment-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-proof-list {
  max-width: 180px;
}

.payment-proof-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-proof-thumb-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.payment-proof-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: block;
}

.boss-product-image-dropzone {
  min-height: 150px;
}

.boss-product-image-preview {
  width: 100%;
  display: grid;
  place-items: center;
}

.boss-product-image-preview img {
  max-width: min(360px, 100%);
  max-height: 220px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-shell {
  width: min(1920px, calc(100% - 12px));
  margin: 24px auto 40px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-left-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  font-size: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.sidebar-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 24px;
}

.sidebar-live-card {
  padding: 20px;
  min-height: 720px;
}

.compact-head {
  margin-bottom: 14px;
}

.compact-head h2 {
  font-size: 1.35rem;
}

.sidebar-live-block + .sidebar-live-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-live-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.sidebar-link {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 8px;
  font: inherit;
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.22), rgba(61, 227, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-stack {
  min-width: 0;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.content-section > .panel-card + .panel-card,
.content-section > .status-board-grid + .panel-card,
.content-section > .panel-card + .status-board-grid {
  margin-top: 16px;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.summary-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

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

.status-board-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  margin-bottom: 16px;
}

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

.fighter-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fighter-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.fighter-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.fighter-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fighter-card-actions .ghost-button {
  width: 100%;
}

.self-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61, 227, 255, 0.12);
  color: #aef4ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.mini-status,
.empty-board {
  color: #dfe7ff;
}

.empty-board {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.podium-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.podium-rank-1 {
  min-height: 260px;
  background: linear-gradient(180deg, rgba(255, 184, 72, 0.32), rgba(255, 122, 0, 0.08));
}

.podium-rank-2 {
  min-height: 220px;
  background: linear-gradient(180deg, rgba(173, 188, 204, 0.28), rgba(110, 133, 164, 0.08));
}

.podium-rank-3 {
  min-height: 190px;
  background: linear-gradient(180deg, rgba(203, 133, 86, 0.24), rgba(140, 87, 52, 0.08));
}

.podium-rank {
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 16px;
}

.podium-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.podium-card span {
  display: block;
  color: #d7e0fb;
}

.podium-amount {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.leaderboard-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-rank {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.leaderboard-meta strong {
  display: block;
  margin-bottom: 4px;
}

.leaderboard-meta span {
  color: var(--muted);
}

.leaderboard-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(2, auto);
  gap: 12px;
  margin-bottom: 16px;
}

.fighters-toolbar {
  grid-template-columns: minmax(280px, 1fr) repeat(3, auto);
}

.pending-review-toolbar {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.select-all-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d8def3;
  font-size: 0.95rem;
}

.select-all-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.finance-filter-bar {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto auto;
  align-items: end;
}

.finance-filter-bar.compact {
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto auto;
}

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.pagination-info {
  color: var(--muted);
}

.panel-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 24px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.inline-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.inline-form select {
  max-width: 220px;
  margin-top: 0;
}

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

.order-form .full-width {
  grid-column: 1 / -1;
}

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

.table-wrap {
  overflow-x: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

th {
  color: #d8def3;
  font-size: 0.94rem;
}

td {
  color: #aeb8d4;
}

.table-action {
  width: 150px;
  min-width: 150px;
}

.status-select-table {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.table-input {
  min-width: 0;
  width: 100%;
  margin-top: 0;
  padding: 10px 12px;
}

td .ghost-button,
td .primary-button,
td .status-select-table,
td .table-input,
td .table-badge {
  width: 100%;
}

td .ghost-button + .ghost-button,
td .table-badge + .ghost-button,
td .status-select-table + .ghost-button,
td .status-select-table + .primary-button {
  margin-top: 8px;
}

#fighters-section .pending-fighters-table th:nth-child(1),
#fighters-section .pending-fighters-table td:nth-child(1) {
  width: 56px;
  text-align: center;
}

#fighters-section .pending-fighters-table th:nth-child(2),
#fighters-section .pending-fighters-table td:nth-child(2) {
  width: 20%;
}

#fighters-section .pending-fighters-table th:nth-child(3),
#fighters-section .pending-fighters-table td:nth-child(3) {
  width: 20%;
}

#fighters-section .pending-fighters-table th:nth-child(4),
#fighters-section .pending-fighters-table td:nth-child(4) {
  width: 20%;
}

#fighters-section .pending-fighters-table th:nth-child(5),
#fighters-section .pending-fighters-table td:nth-child(5) {
  width: 10%;
}

#fighters-section .pending-fighters-table th:nth-child(6),
#fighters-section .pending-fighters-table td:nth-child(6) {
  width: 20%;
}

#fighters-section .fighters-management-table th:nth-child(1),
#fighters-section .fighters-management-table td:nth-child(1) {
  width: 12%;
}

#fighters-section .fighters-management-table th:nth-child(2),
#fighters-section .fighters-management-table td:nth-child(2) {
  width: 12%;
}

#fighters-section .fighters-management-table th:nth-child(3),
#fighters-section .fighters-management-table td:nth-child(3) {
  width: 11%;
}

#fighters-section .fighters-management-table th:nth-child(4),
#fighters-section .fighters-management-table td:nth-child(4) {
  width: 9%;
}

#fighters-section .fighters-management-table th:nth-child(5),
#fighters-section .fighters-management-table td:nth-child(5) {
  width: 10%;
}

#fighters-section .fighters-management-table th:nth-child(6),
#fighters-section .fighters-management-table td:nth-child(6) {
  width: 10%;
}

#fighters-section .fighters-management-table th:nth-child(7),
#fighters-section .fighters-management-table td:nth-child(7) {
  width: 10%;
}

#fighters-section .fighters-management-table th:nth-child(8),
#fighters-section .fighters-management-table td:nth-child(8) {
  width: 14%;
}

#fighters-section .fighters-management-table th:nth-child(9),
#fighters-section .fighters-management-table td:nth-child(9) {
  width: 6%;
}

#fighters-section .fighters-management-table th:nth-child(10),
#fighters-section .fighters-management-table td:nth-child(10) {
  width: 6%;
}

#finance-summary-table th:nth-child(1),
#finance-summary-table td:nth-child(1) {
  width: 24%;
}

#finance-summary-table th:nth-child(2),
#finance-summary-table td:nth-child(2) {
  width: 18%;
}

#finance-summary-table th:nth-child(3),
#finance-summary-table td:nth-child(3) {
  width: 24%;
}

#orders-table th:nth-child(1),
#orders-table td:nth-child(1) {
  width: 3%;
}

#orders-table th:nth-child(2),
#orders-table td:nth-child(2) {
  width: 9%;
}

#orders-table th:nth-child(3),
#orders-table td:nth-child(3) {
  width: 12%;
}

#orders-table th:nth-child(4),
#orders-table td:nth-child(4) {
  width: 8%;
}

#orders-table th:nth-child(5),
#orders-table td:nth-child(5) {
  width: 12%;
}

#orders-table th:nth-child(6),
#orders-table td:nth-child(6) {
  width: 10%;
}

#orders-table th:nth-child(7),
#orders-table td:nth-child(7) {
  width: 10%;
}

#orders-table th:nth-child(8),
#orders-table td:nth-child(8) {
  width: 8%;
}

#orders-table th:nth-child(9),
#orders-table td:nth-child(9) {
  width: 13%;
}

#orders-table th:nth-child(10),
#orders-table td:nth-child(10) {
  width: 7%;
}

#orders-table th:nth-child(11),
#orders-table td:nth-child(11) {
  width: 4%;
}

#finance-section #orders-table td.table-action {
  text-align: center;
}

#finance-section #orders-table td.table-action .ghost-button {
  width: auto;
  min-width: 68px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.finance-date-row td:first-child {
  white-space: nowrap;
}

.finance-date-button {
  width: auto;
  min-width: 110px;
  justify-content: center;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 8px;
}

.badge-ok {
  background: rgba(54, 217, 141, 0.24);
  border: 1px solid rgba(54, 217, 141, 0.3);
}

.badge-warn {
  background: rgba(255, 182, 72, 0.22);
  border: 1px solid rgba(255, 182, 72, 0.3);
}

.badge-stop {
  background: rgba(255, 92, 117, 0.22);
  border: 1px solid rgba(255, 92, 117, 0.3);
}

.table-mini {
  padding: 8px 12px;
  font-size: 0.88rem;
}

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

#dispatch-member-balance {
  margin: 0;
}

#members-section .table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(9, 12, 22, 0.24);
}

#members-table {
  min-width: 760px;
}

#members-table th {
  background: rgba(255, 255, 255, 0.035);
}

#members-table th,
#members-table td {
  vertical-align: middle;
}

#members-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

#members-table th:nth-child(1),
#members-table td:nth-child(1) {
  width: 30%;
}

#members-table th:nth-child(2),
#members-table td:nth-child(2) {
  width: 24%;
}

#members-table th:nth-child(3),
#members-table td:nth-child(3) {
  width: 18%;
}

#members-table th:nth-child(4),
#members-table td:nth-child(4) {
  width: 28%;
}

#members-section .member-action-cell {
  min-width: 160px;
}

.member-table-person {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.member-table-person small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.member-balance-value {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #bff3d4;
  background: rgba(54, 217, 141, 0.1);
  border: 1px solid rgba(54, 217, 141, 0.22);
  white-space: nowrap;
}

.member-action-stack {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#members-section .member-action-cell .ghost-button,
#members-section .member-action-cell .primary-button {
  width: auto;
  min-width: 84px;
  white-space: nowrap;
}

#member-transactions-table th:nth-child(1),
#member-transactions-body td:nth-child(1) {
  width: 14%;
}

#member-transactions-table th:nth-child(2),
#member-transactions-body td:nth-child(2) {
  width: 11%;
}

#member-transactions-table th:nth-child(3),
#member-transactions-body td:nth-child(3) {
  width: 10%;
}

#member-transactions-table th:nth-child(4),
#member-transactions-body td:nth-child(4) {
  width: 9%;
}

#member-transactions-table th:nth-child(5),
#member-transactions-body td:nth-child(5) {
  width: 10%;
}

#member-transactions-table th:nth-child(6),
#member-transactions-body td:nth-child(6) {
  width: 10%;
}

#member-transactions-table th:nth-child(7),
#member-transactions-body td:nth-child(7) {
  width: 14%;
}

#member-transactions-table th:nth-child(8),
#member-transactions-body td:nth-child(8) {
  width: 8%;
}

#member-transactions-table th:nth-child(9),
#member-transactions-body td:nth-child(9) {
  width: 14%;
  white-space: normal;
  word-break: break-word;
}

.member-transactions-panel .table-wrap {
  overflow-x: auto;
}

#member-transactions-table {
  table-layout: auto;
}

#member-transactions-table th,
#member-transactions-table td {
  padding: 10px 10px;
  line-height: 1.45;
}

#member-transactions-body td {
  vertical-align: middle;
}

#member-transactions-body td:nth-child(1),
#member-transactions-body td:nth-child(9) {
  white-space: normal;
  word-break: break-word;
}

#member-transactions-body td:nth-child(8) {
  white-space: nowrap;
}

#member-transactions-body td:nth-child(9) {
  min-width: 220px;
}

.member-transactions-toolbar {
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) auto auto;
  align-items: center;
}

.hidden {
  display: none !important;
}

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

.dispatch-form .full-width {
  grid-column: 1 / -1;
}

.dispatch-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.dispatch-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dispatch-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dispatch-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.dispatch-card-head strong {
  font-size: 1rem;
}

.dispatch-meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 6px;
}

.dispatch-warning {
  color: #ff9dae;
  font-weight: 700;
}

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

.dispatch-actions .ghost-button,
.dispatch-actions .primary-button {
  width: auto;
}

.chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.chat-list,
.notice-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-live-list {
  max-height: 320px;
}

.sidebar-notice-form,
.sidebar-chat-form {
  margin-bottom: 14px;
}

.sidebar-notice-form textarea,
.sidebar-chat-form textarea {
  min-height: 120px;
}

.chat-item,
.notice-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-item-head,
.notice-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.chat-item strong,
.notice-item strong {
  font-size: 0.98rem;
}

.chat-meta,
.notice-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-content,
.notice-content,
.notice-modal-content {
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-form,
.notice-form {
  margin-top: 14px;
}

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

.inline-message {
  margin-top: 0;
  min-height: 20px;
}

.notice-form .full-width {
  grid-column: 1 / -1;
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.notice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.72);
  backdrop-filter: blur(6px);
}

.notice-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow-y: auto;
  border-radius: 24px;
  padding: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dispatch-action-modal-card {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: visible;
}

.payment-proof-modal-card {
  max-width: min(920px, calc(100vw - 32px));
}

.payment-proof-modal-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.team-invite-modal-card {
  width: min(520px, 100%);
}

.team-invite-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-invite-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.82), rgba(61, 227, 255, 0.48));
}

.team-invite-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.team-invite-actions {
  justify-content: flex-end;
}

.dispatch-alert-modal {
  z-index: 80;
}

.dispatch-alert-backdrop {
  background: rgba(7, 10, 20, 0.92);
  backdrop-filter: blur(8px);
}

.dispatch-alert-modal-card {
  width: min(860px, calc(100vw - 32px));
  min-height: min(620px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  text-align: center;
  border-color: rgba(255, 79, 111, 0.48);
  box-shadow: 0 0 80px rgba(255, 45, 85, 0.3);
}

.operation-notification-modal-card {
  width: min(680px, calc(100vw - 32px));
  border-color: rgba(61, 227, 255, 0.28);
}

.dispatch-alert-modal-card .panel-head h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.dispatch-alert-modal-card .panel-head p {
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
}

.dispatch-alert-pulse {
  align-self: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.24);
  color: #fff;
  font-weight: 900;
  animation: alertPulse 1s infinite;
}

.dispatch-alert-detail {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.dispatch-alert-detail p {
  margin: 0;
  color: var(--muted);
}

.dispatch-alert-actions {
  justify-content: center;
}

@keyframes alertPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 45, 85, 0);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 32px rgba(255, 45, 85, 0.45);
  }
}

.dispatch-action-query-view {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
}

.dispatch-action-query-view .dispatch-meta {
  margin-top: 0;
}

.dispatch-edit-mode-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}

.dispatch-edit-mode-button.active {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.22), rgba(61, 227, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.12);
}

.dispatch-renew-billing-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dispatch-action-modal-card .payment-proof-dropzone {
  min-height: 82px;
}

.dispatch-action-modal-card textarea {
  min-height: 92px;
}

.dispatch-action-modal-card .panel-head {
  margin-bottom: 10px;
}

.dispatch-action-modal-card .dispatch-action-query-view {
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .auth-shell,
  .stats-grid,
  .brand-grid,
  .dashboard-grid,
  .status-board-grid,
  .dispatch-admin-grid,
  .chat-grid,
  .fighter-board,
  .fighter-board-compact,
  .dispatch-form,
  .dispatch-renew-billing-wrap,
  .manual-order-form,
  .podium-grid,
  .orders-toolbar {
    grid-template-columns: 1fr;
  }

  .pending-review-toolbar {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions,
  .topbar-title-row,
  .inline-form,
  .order-form {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
  }

  .admin-mode-switch {
    width: 100%;
    margin-bottom: 0;
  }

  .admin-mode-button {
    flex: 1;
    min-width: 0;
  }

  .sidebar-card {
    position: static;
  }

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

  table {
    table-layout: auto;
  }

  th,
  td {
    white-space: nowrap;
  }
}

body.redh-desktop-app {
  padding-top: 44px;
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.96), rgba(10, 18, 34, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(61, 227, 255, 0.14), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(255, 45, 85, 0.12), transparent 22%),
    #070b14;
}

.redh-desktop-titlebar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 12px 0 16px;
  color: #eef5ff;
  background: linear-gradient(90deg, rgba(9, 15, 28, 0.98), rgba(13, 24, 42, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  -webkit-app-region: drag;
}

.redh-desktop-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.redh-desktop-brand strong,
.redh-desktop-brand span {
  display: block;
  line-height: 1.1;
}

.redh-desktop-brand strong {
  font-size: 0.92rem;
}

.redh-desktop-brand span {
  color: #8f9ab8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.redh-desktop-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.86), rgba(61, 227, 255, 0.52));
  color: #fff;
  font-weight: 900;
}

.redh-desktop-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aeb8d4;
  font-size: 0.82rem;
}

.redh-desktop-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #36d98d;
  box-shadow: 0 0 12px rgba(54, 217, 141, 0.8);
}

.redh-desktop-window-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  -webkit-app-region: no-drag;
}

.redh-desktop-window-actions button {
  width: 34px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e9eefb;
  cursor: pointer;
}

.redh-desktop-window-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.redh-desktop-app .topbar {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding: 18px 32px;
  background: rgba(8, 13, 26, 0.9);
  border-width: 0 0 1px;
}

.redh-desktop-app .topbar h1 {
  margin: 10px 0 0;
  font-size: 2.1rem;
}

.redh-desktop-app .dashboard-shell {
  width: 100%;
  max-width: none;
  padding: 22px 28px 34px;
}

.redh-desktop-app .dashboard-grid {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.redh-desktop-app .dashboard-left-column {
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 88px);
  overflow: auto;
}

.redh-desktop-app .sidebar-card,
.redh-desktop-app .panel-card,
.redh-desktop-app .stat-card {
  border-radius: 10px;
  background: rgba(13, 19, 34, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.redh-desktop-app .stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.redh-desktop-app .stat-card {
  min-height: 90px;
  padding: 16px;
}

.redh-desktop-app .stat-card strong {
  font-size: 1.55rem;
}

.redh-desktop-app .sidebar-link {
  border-radius: 8px;
  text-align: left;
}

.redh-desktop-app .content-section > .panel-card,
.redh-desktop-app .status-board-grid,
.redh-desktop-app .dispatch-admin-grid {
  margin-bottom: 14px;
}

.redh-desktop-app .panel-head h2 {
  font-size: 1.22rem;
}

.redh-desktop-app .panel-head p {
  max-width: 980px;
}

.redh-desktop-app input,
.redh-desktop-app select,
.redh-desktop-app textarea,
.redh-desktop-app .ghost-button,
.redh-desktop-app .primary-button {
  border-radius: 8px;
}

.redh-desktop-app .dispatch-alert-modal-card,
.redh-desktop-app .operation-notification-modal-card {
  border-radius: 14px;
}

/* Redh desktop-only black/red esports client skin. Browser pages do not receive this class. */
body.redh-desktop-app {
  --bg: #050506;
  --bg-soft: #111113;
  --panel: rgba(20, 20, 23, 0.88);
  --panel-strong: rgba(14, 14, 16, 0.96);
  --line: rgba(255, 255, 255, 0.075);
  --text: #f6f7fb;
  --muted: #8d929c;
  --accent: #ff173d;
  --accent-soft: rgba(255, 23, 61, 0.14);
  --accent-alt: #ff415f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  padding-top: 54px;
  background:
    linear-gradient(180deg, rgba(255, 23, 61, 0.08), transparent 260px),
    linear-gradient(90deg, rgba(255, 23, 61, 0.08), transparent 24%, transparent 76%, rgba(255, 23, 61, 0.05)),
    #050506;
}

body.redh-desktop-app::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.redh-desktop-app::after {
  content: "REDH";
  position: fixed;
  right: 42px;
  bottom: 24px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.025);
  font-size: 9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.redh-desktop-app .redh-desktop-titlebar {
  height: 54px;
  padding: 0 14px 0 18px;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  background:
    linear-gradient(180deg, rgba(32, 32, 35, 0.98), rgba(16, 16, 18, 0.98)),
    #111113;
  border-bottom: 1px solid rgba(255, 23, 61, 0.34);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.redh-desktop-app .redh-desktop-brand {
  gap: 12px;
}

.redh-desktop-app .redh-desktop-brand strong {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0;
}

.redh-desktop-app .redh-desktop-brand span {
  color: #9ca0aa;
  font-size: 0.72rem;
}

.redh-desktop-app .redh-desktop-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0b0c;
  border: 1px solid rgba(255, 23, 61, 0.42);
  box-shadow: 0 0 24px rgba(255, 23, 61, 0.22);
}

.redh-desktop-app .redh-desktop-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.redh-desktop-app .redh-desktop-status {
  color: #ffccd4;
  background: rgba(255, 23, 61, 0.1);
  border: 1px solid rgba(255, 23, 61, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
}

.redh-desktop-app .redh-desktop-dot {
  background: #ff173d;
  box-shadow: 0 0 14px rgba(255, 23, 61, 0.9);
}

.redh-desktop-app .redh-desktop-window-actions {
  justify-content: flex-end;
}

.redh-desktop-app .redh-desktop-window-actions button {
  border-radius: 8px;
  color: #b8bcc7;
  background: rgba(255, 255, 255, 0.035);
}

.redh-desktop-app .redh-desktop-window-actions button:hover {
  color: #ffffff;
  background: rgba(255, 23, 61, 0.2);
  border-color: rgba(255, 23, 61, 0.38);
}

.redh-desktop-app .topbar {
  min-height: 148px;
  padding: 26px 30px;
  background:
    linear-gradient(90deg, rgba(12, 12, 14, 0.78), rgba(22, 22, 25, 0.92)),
    linear-gradient(120deg, rgba(255, 23, 61, 0.15), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom-color: rgba(255, 23, 61, 0.24);
  box-shadow: inset 0 -1px 0 rgba(255, 23, 61, 0.22), var(--shadow);
  position: relative;
  overflow: hidden;
}

.redh-desktop-app .topbar::before {
  content: "";
  position: absolute;
  inset: auto 32px 16px 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 23, 61, 0.9), transparent);
}

.redh-desktop-app .topbar::after {
  content: "REDH ESPORTS";
  position: absolute;
  right: 28px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.045);
  font-size: 3.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.redh-desktop-app .brand-badge {
  border-radius: 6px;
  background: rgba(255, 23, 61, 0.18);
  color: #ffccd4;
  border: 1px solid rgba(255, 23, 61, 0.3);
}

.redh-desktop-app .topbar h1 {
  margin-top: 14px;
  font-size: 2.35rem;
  letter-spacing: 0;
}

.redh-desktop-app .user-pill,
.redh-desktop-app .status-chip {
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 23, 61, 0.42), rgba(95, 31, 42, 0.46));
  border-color: rgba(255, 23, 61, 0.38);
}

.redh-desktop-app .stats-grid {
  gap: 10px;
}

.redh-desktop-app .stat-card {
  min-height: 92px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #141416;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.redh-desktop-app .stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #ff173d;
  box-shadow: 0 0 18px rgba(255, 23, 61, 0.9);
}

.redh-desktop-app .stat-card strong {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 23, 61, 0.16);
}

.redh-desktop-app .dashboard-grid {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
}

.redh-desktop-app .dashboard-left-column {
  top: 68px;
}

.redh-desktop-app .sidebar-card {
  padding: 10px 8px;
  background: rgba(13, 13, 15, 0.92);
  border-radius: 8px;
}

.redh-desktop-app .sidebar-card::before {
  content: "Redh";
  display: block;
  margin: 6px 8px 14px;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.redh-desktop-app .sidebar-link {
  min-height: 48px;
  padding: 9px 8px;
  margin-bottom: 6px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.86rem;
  color: #a6abb5;
}

.redh-desktop-app .sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
}

.redh-desktop-app .sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 23, 61, 0.42), rgba(255, 23, 61, 0.16));
  border-color: rgba(255, 23, 61, 0.42);
  box-shadow: inset 3px 0 0 #ff173d, 0 10px 22px rgba(255, 23, 61, 0.14);
}

.redh-desktop-app .sidebar-live-card {
  display: none;
}

.redh-desktop-app .panel-card,
.redh-desktop-app .dispatch-card,
.redh-desktop-app .status-card,
.redh-desktop-app .leaderboard-card,
.redh-desktop-app .notice-modal-card {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(18, 18, 21, 0.92);
  border-color: rgba(255, 255, 255, 0.075);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

.redh-desktop-app .panel-head h2 {
  color: #ffffff;
  font-size: 1.16rem;
}

.redh-desktop-app .panel-head h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 9px;
  background: #ff173d;
  box-shadow: 0 0 12px rgba(255, 23, 61, 0.7);
}

.redh-desktop-app input,
.redh-desktop-app textarea {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 8px;
}

.redh-desktop-app select {
  border-radius: 8px;
}

.redh-desktop-app input:focus,
.redh-desktop-app textarea:focus,
.redh-desktop-app select:focus {
  border-color: rgba(255, 23, 61, 0.66);
  box-shadow: 0 0 0 3px rgba(255, 23, 61, 0.11);
}

.redh-desktop-app .primary-button {
  border-radius: 999px;
  background: linear-gradient(135deg, #ff173d 0%, #ff4a34 100%);
  box-shadow: 0 10px 28px rgba(255, 23, 61, 0.32);
}

.redh-desktop-app .primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.redh-desktop-app .ghost-button,
.redh-desktop-app .table-mini {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
}

.redh-desktop-app .ghost-button:hover,
.redh-desktop-app .table-mini:hover {
  color: #ffffff;
  border-color: rgba(255, 23, 61, 0.38);
  background: rgba(255, 23, 61, 0.12);
}

.redh-desktop-app .table-badge,
.redh-desktop-app .mini-status,
.redh-desktop-app .nav-badge {
  border-radius: 999px;
}

.redh-desktop-app .dispatch-card {
  border-left: 3px solid rgba(255, 23, 61, 0.82);
}

.redh-desktop-app .dispatch-card-head strong {
  color: #ffffff;
}

.redh-desktop-app .dispatch-meta {
  color: #9ca0aa;
}

.redh-desktop-app .payment-proof-dropzone {
  border-radius: 8px;
  border-color: rgba(255, 23, 61, 0.26);
  background: rgba(255, 23, 61, 0.045);
}

.redh-desktop-app table {
  border-collapse: collapse;
}

.redh-desktop-app th {
  color: #c4c8d1;
  background: rgba(255, 255, 255, 0.025);
}

.redh-desktop-app td {
  border-bottom-color: rgba(255, 255, 255, 0.055);
}

.redh-desktop-app .notice-modal-backdrop {
  background: rgba(0, 0, 0, 0.74);
}

.redh-desktop-app .dispatch-alert-modal-card,
.redh-desktop-app .operation-notification-modal-card {
  border-radius: 12px;
  border-color: rgba(255, 23, 61, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 23, 61, 0.12), 0 28px 90px rgba(0, 0, 0, 0.62);
}
