:root {
  color-scheme: dark;
  --bg: #07080b;
  --surface: #101318;
  --surface-2: #171b22;
  --surface-3: #0b0d11;
  --ink: #f6f7fb;
  --muted: #a2a9b5;
  --line: rgba(255, 255, 255, 0.12);
  --line-hot: rgba(255, 66, 28, 0.48);
  --primary: #ff3b1f;
  --primary-strong: #ff6a1f;
  --accent: #ffb000;
  --danger: #ff4e64;
  --ok: #62d56f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(255, 59, 31, 0.08) 0 1px, transparent 1px 220px),
    linear-gradient(155deg, #050609 0%, #0a0c11 52%, #090b10 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

main {
  padding: 24px clamp(16px, 4vw, 56px) 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 9, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #9f150c);
  color: #fff;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

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

.brand small,
.muted,
.hint {
  color: var(--muted);
}

.hint {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.topnav {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.78);
}

.topnav a,
.role-switch button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
}

.topnav a:hover,
.role-switch button.active,
.role-switch button:hover {
  background: rgba(255, 59, 31, 0.14);
  color: var(--ink);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.select-label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

select,
input,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0c10;
  color: var(--ink);
  padding: 9px 11px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 59, 31, 0.16);
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.auth-box {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.role-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.45fr);
  min-height: min(78vh, 720px);
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--line-hot);
  background: #080a0e;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.scene-lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 38%;
  transform: skewY(-6deg);
}

.lane-one {
  top: -8%;
  background: linear-gradient(90deg, rgba(255, 59, 31, 0.92), rgba(255, 176, 0, 0.44));
}

.lane-two {
  bottom: -10%;
  background: linear-gradient(90deg, rgba(31, 44, 82, 0.92), rgba(255, 59, 31, 0.74));
}

.scene-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 170px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.62);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.card-one {
  right: 26%;
  top: 13%;
}

.card-two {
  right: 11%;
  top: 32%;
}

.card-three {
  right: 30%;
  bottom: 10%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 780px;
  padding: clamp(40px, 8vw, 92px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 5.4rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 6px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.55;
}

.hero-actions,
.inline-actions,
.profile-actions,
.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.slot-row button,
.slot-grid button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 15px;
  font-weight: 800;
}

.primary-button {
  border-color: rgba(255, 176, 0, 0.24);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 59, 31, 0.26);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 8px 50%);
}

.primary-button:hover {
  filter: brightness(1.08);
}

.secondary-button {
  border-color: var(--line);
  background: rgba(16, 19, 24, 0.7);
  color: var(--ink);
}

.ghost-button {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.full {
  width: 100%;
}

.hero-status {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 8px;
  width: min(300px, calc(100% - 40px));
  margin: 0 28px 28px auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.82);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.hero-status span {
  color: rgba(255, 255, 255, 0.7);
}

.hero-status strong {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 59, 31, 0.08), var(--surface));
}

.stat strong {
  font-size: 1.6rem;
}

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

.section-block,
.section-band,
.catalog-layout,
.profile-grid,
.dashboard-grid {
  margin-top: 34px;
}

.section-band {
  margin-inline: calc(clamp(16px, 4vw, 56px) * -1);
  padding: 34px clamp(16px, 4vw, 56px);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.12), transparent 34%),
    rgba(10, 12, 16, 0.9);
}

.section-heading,
.panel-head,
.pro-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.service-format-grid,
.top-leader-grid,
.dashboard-kpi-grid,
.dashboard-highlight-grid,
.quick-actions-grid {
  display: grid;
  gap: 16px;
}

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

.format-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 59, 31, 0.12), rgba(255, 176, 0, 0.04)),
    var(--surface);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.format-card strong,
.format-card p {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.format-card h3 {
  font-size: 1.35rem;
}

.format-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 59, 31, 0.42);
  border-radius: 8px;
  background: rgba(255, 59, 31, 0.12);
  color: var(--accent);
  font-weight: 900;
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.game-card:hover {
  border-color: var(--line-hot);
  transform: translateY(-2px);
}

.game-cover {
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.26), rgba(255, 59, 31, 0.16)),
    var(--cover);
  color: #fff;
}

.game-cover span,
.game-emblem {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.game-card-body {
  padding: 15px;
}

.game-card-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.top-leader-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 59, 31, 0.12), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.top-leader-card .avatar {
  width: 72px;
  height: 72px;
}

.top-leader-card p,
.top-leader-actions span {
  color: var(--muted);
}

.top-leader-actions {
  display: grid;
  gap: 10px;
}

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

.policy-grid div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.78);
  font-weight: 800;
}

.page-title,
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.14), transparent 42%),
    linear-gradient(145deg, var(--surface), var(--surface-3));
  box-shadow: var(--shadow);
}

.page-title h1,
.profile-copy h1 {
  font-size: 3.6rem;
}

.page-title p,
.profile-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.game-title {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  border-color: var(--line-hot);
  background:
    linear-gradient(110deg, rgba(5, 6, 9, 0.92), rgba(5, 6, 9, 0.56)),
    var(--cover);
  color: #fff;
}

.game-title p {
  color: rgba(255, 255, 255, 0.8);
}

.game-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.game-emblem {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filters-panel,
.panel,
.modal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 59, 31, 0.06), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow);
}

.filters-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.14);
}

.filters-panel label,
.stack-form label,
.booking-form label {
  display: grid;
  gap: 6px;
}

.filters-panel span,
.stack-form span,
.booking-form span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-list label,
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.check-list input,
.toggle input {
  width: auto;
  min-height: auto;
}

.professional-list {
  display: grid;
  gap: 14px;
}

.service-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.72);
}

.service-tab-row a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 9px 13px;
  font-weight: 800;
}

.service-tab-row a.active,
.service-tab-row a:hover {
  border-color: var(--line-hot);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

.list-summary {
  color: var(--muted);
  font-weight: 700;
}

.pro-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.1), transparent 32%),
    var(--surface);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.pro-card:hover {
  border-color: var(--line-hot);
}

.avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  border: 1px solid var(--line-hot);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.36);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.pro-name {
  font-size: 1.25rem;
  font-weight: 900;
}

.pro-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.rating-pill,
.status-chip {
  white-space: nowrap;
  border: 1px solid rgba(98, 213, 111, 0.34);
  border-radius: 999px;
  background: rgba(98, 213, 111, 0.12);
  color: var(--ok);
  padding: 7px 11px;
  font-size: 0.85rem;
  font-weight: 900;
}

.meta-row,
.tag-row,
.service-row,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.meta-row span,
.tag-row span,
.service-row span,
.link-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.service-row span {
  border-color: rgba(255, 59, 31, 0.35);
  color: var(--ink);
  font-weight: 800;
}

.service-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.service-price-grid div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.service-price-grid span {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.service-price-grid strong {
  color: var(--accent);
}

.pro-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pro-card-footer strong {
  display: block;
  margin-top: 4px;
}

.slot-row {
  margin-top: 14px;
}

.slot-row button,
.slot-grid button {
  border-color: rgba(255, 59, 31, 0.42);
  background: rgba(255, 59, 31, 0.12);
  color: var(--ink);
}

.profile-hero {
  grid-template-columns: 220px minmax(0, 1fr) 210px;
  align-items: stretch;
}

.profile-visual {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  border: 1px solid var(--line-hot);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.profile-metrics,
.admin-kpis,
.wallet {
  display: grid;
  gap: 10px;
}

.profile-side {
  display: grid;
  gap: 12px;
  min-width: 260px;
}

.profile-booking-card {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(255, 59, 31, 0.42);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.82);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.profile-booking-card strong {
  font-size: 1.1rem;
}

.profile-booking-card span:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.4;
}

.profile-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-trust-strip div {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 16px;
  background: rgba(16, 19, 24, 0.88);
}

.profile-trust-strip span,
.boost-rules span {
  color: var(--muted);
  line-height: 1.4;
}

.boost-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.boost-rules span {
  border: 1px solid rgba(255, 176, 0, 0.28);
  border-radius: 8px;
  background: rgba(255, 176, 0, 0.06);
  padding: 9px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.panel {
  min-width: 0;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.14);
}

.wide {
  grid-column: span 2;
}

.definition-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.definition-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.definition-list dt {
  color: var(--muted);
}

.definition-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.stack-list,
.stack-form,
.booking-form,
.booking-fields {
  display: grid;
  gap: 12px;
}

.line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.line-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.locked {
  border-color: rgba(255, 176, 0, 0.34);
  background: rgba(255, 176, 0, 0.08);
}

.boost-strip,
.boost-panel {
  border-color: rgba(255, 59, 31, 0.42);
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.16), rgba(255, 176, 0, 0.06)),
    var(--surface);
}

.boost-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 59, 31, 0.42);
  border-radius: 8px;
}

.boost-strip span,
.boost-strip small,
.boost-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.boost-strip small,
.boost-goals {
  grid-column: 1 / -1;
}

.boost-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.boost-goals span {
  border: 1px solid rgba(255, 176, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.08);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 0.84rem;
  font-weight: 800;
}

.booking-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.review p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.wallet {
  min-width: 230px;
}

.wallet span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
}

.wallet small {
  color: var(--muted);
}

.table-wrap {
  min-width: 0;
  width: 100%;
  overflow: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 9px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
}

.mini-list,
.audit-list,
.ledger-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-list span,
.audit-list span,
.ledger-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.ledger-list strong,
.ledger-list span {
  display: block;
}

.ledger-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-box {
  display: grid;
  gap: 10px;
}

.chat-rule-note,
.chat-warning,
.warning-panel,
.success-panel,
.booking-created-card,
.scenario-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 59, 31, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.12), rgba(255, 176, 0, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.success-panel {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  border-color: rgba(98, 213, 111, 0.45);
  background: rgba(98, 213, 111, 0.08);
}

.success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: rgba(98, 213, 111, 0.16);
  color: var(--ok);
  font-size: 2rem;
  font-weight: 900;
}

.warning-panel,
.danger-state,
.danger-hero {
  border-color: rgba(255, 78, 100, 0.44);
  background:
    linear-gradient(120deg, rgba(255, 78, 100, 0.14), rgba(255, 59, 31, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.warning-panel span,
.chat-rule-note span,
.chat-warning span,
.scenario-panel p,
.success-panel p,
.booking-created-card p {
  color: var(--muted);
  line-height: 1.45;
}

.chat-messages {
  display: grid;
  gap: 8px;
  min-height: 160px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0f;
  padding: 10px;
}

.chat-messages div {
  border-radius: 8px;
  background: var(--surface-2);
  padding: 8px;
}

.chat-messages div strong,
.chat-messages div span {
  display: block;
}

.chat-messages div span {
  margin-top: 3px;
}

.chat-messages .blocked {
  border: 1px solid rgba(255, 78, 100, 0.44);
  background: rgba(255, 78, 100, 0.12);
  color: var(--danger);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.booking-created-card {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) auto;
  align-items: center;
  margin-top: 16px;
}

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

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

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

.detail-tile {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-tile span,
.detail-tile small {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-tile strong {
  overflow-wrap: anywhere;
}

.flat-panel {
  box-shadow: none;
}

.booking-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.booking-detail-main,
.booking-detail-aside {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line-hot);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.step-line,
.event-timeline,
.money-request-list,
.evidence-list,
.comment-list {
  display: grid;
  gap: 10px;
}

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

.step-line span,
.event-timeline div,
.money-request-card,
.evidence-list div,
.comment-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.event-timeline span,
.money-request-card span,
.money-request-card small,
.evidence-list span,
.comment-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

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

.money-request-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chat-workspace,
.admin-dispute-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 12px;
  min-width: 0;
}

.chat-dialogs,
.chat-active,
.chat-context,
.admin-dispute-filter,
.dispute-cards,
.admin-dispute-detail {
  display: grid;
  gap: 10px;
}

.chat-dialogs button,
.dispute-cards button {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.chat-dialogs button.active,
.dispute-cards button:hover {
  border-color: var(--line-hot);
  background: rgba(255, 59, 31, 0.12);
}

.chat-dialogs span,
.dispute-cards span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.admin-dispute-panel {
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
}

.admin-dispute-filter {
  grid-column: 1 / -1;
  grid-template-columns: 180px minmax(0, 1fr) auto;
}

.admin-dispute-detail {
  align-content: start;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 116px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 59, 31, 0.08), transparent 40%),
    #090b0f;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.avatar.mini {
  width: 44px;
  height: 44px;
  font-size: 0.9rem;
}

.hero-avatar {
  width: 148px;
  height: 148px;
  font-size: 2.4rem;
}

.sidebar-user span,
.sidebar-help span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.sidebar-title {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.86rem;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  padding: 10px 11px;
  font-weight: 800;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  border-color: rgba(255, 59, 31, 0.34);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

.sidebar-help {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 59, 31, 0.34);
  border-radius: 8px;
  background: rgba(255, 59, 31, 0.08);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line-hot);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.16), transparent 44%),
    linear-gradient(145deg, var(--surface), var(--surface-3));
  box-shadow: var(--shadow);
}

.dashboard-hero h1 {
  font-size: 3rem;
}

.dashboard-hero p {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-rank,
.dashboard-metric {
  display: grid;
  gap: 5px;
  min-width: 160px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-rank strong,
.dashboard-metric strong {
  font-size: 1.7rem;
}

.dashboard-rank span,
.dashboard-metric span,
.dashboard-metric small {
  color: var(--muted);
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

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

.dashboard-highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.booking-spotlight-body,
.leader-hero-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.small-cover {
  min-height: 160px;
  border-radius: 8px;
  border: 1px solid var(--line-hot);
}

.booking-summary-list,
.notification-list {
  display: grid;
  gap: 10px;
}

.booking-summary-card,
.notification-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 11px;
}

.booking-summary-card span,
.notification-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.quick-actions-grid a,
.quick-actions-grid button {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  font-weight: 800;
}

.quick-actions-grid a:hover,
.quick-actions-grid button:hover {
  border-color: var(--line-hot);
  background: rgba(255, 59, 31, 0.12);
}

.quick-actions-grid b {
  float: right;
  color: var(--accent);
}

.leader-stat-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.profile-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(98, 213, 111, 0.45);
  border-radius: 8px;
  background: rgba(98, 213, 111, 0.08);
}

.profile-status-panel span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.income-card {
  display: grid;
  gap: 10px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(0, 0, 0, 0.72);
  padding: 20px;
}

.modal {
  position: relative;
  width: min(980px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 22px;
  box-shadow: var(--shadow);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-color: var(--line);
  background: var(--surface-2);
  padding: 0;
}

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

.booking-context {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.booking-leader-mini {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.booking-leader-mini span:not(.avatar) {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.booking-progress,
.afterpay-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.booking-progress span,
.afterpay-track span {
  display: grid;
  gap: 5px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.booking-progress b {
  color: var(--accent);
}

.booking-progress .active,
.afterpay-track .active {
  border-color: var(--line-hot);
  background: rgba(255, 59, 31, 0.12);
  color: #fff;
}

.booking-step,
.boost-booking-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.booking-step-wide,
.boost-booking-fields,
.payment-step,
.afterpay-step,
.booking-submit {
  grid-column: 1 / -1;
}

.booking-step-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.booking-step-head > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 900;
}

.booking-step-head p {
  color: var(--muted);
  line-height: 1.45;
}

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

.booking-service-cards div {
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.booking-service-cards div.active {
  border-color: var(--line-hot);
  background: rgba(255, 59, 31, 0.12);
}

.booking-service-cards span {
  color: var(--muted);
  line-height: 1.35;
}

.booking-service-cards b {
  color: var(--accent);
}

.booking-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.boost-booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 59, 31, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 31, 0.13), rgba(255, 176, 0, 0.05)),
    #0b0d11;
}

.boost-booking-fields > div,
.boost-booking-fields label:nth-of-type(n+6) {
  grid-column: 1 / -1;
}

.price-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 59, 31, 0.42);
  border-radius: 8px;
  background: rgba(255, 59, 31, 0.1);
  padding: 12px;
}

.price-box strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.mobile-bottom-nav {
  display: none;
}

.empty-state,
.empty-page {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 22px;
}

.empty-page {
  display: grid;
  min-height: 340px;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 40px));
  border-radius: 8px;
  border: 1px solid rgba(255, 59, 31, 0.4);
  background: #0b0d11;
  color: #fff;
  padding: 13px 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .topbar,
  .hero,
  .page-title,
  .profile-hero,
  .catalog-layout,
  .dashboard-shell,
  .dashboard-hero,
  .profile-status-panel {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .game-grid,
  .policy-grid,
  .profile-grid,
  .dashboard-grid,
  .service-format-grid,
  .top-leader-grid,
  .profile-trust-strip,
  .dashboard-kpi-grid,
  .admin-kpi-grid,
  .dashboard-highlight-grid,
  .quick-actions-grid,
  .admin-grid,
  .booking-created-card,
  .booking-detail-layout,
  .chat-workspace,
  .admin-dispute-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-detail-layout,
  .chat-workspace,
  .admin-dispute-panel {
    grid-template-columns: 1fr;
  }

  .admin-dispute-filter {
    grid-template-columns: 1fr;
  }

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

  .filters-panel {
    position: static;
  }

  .dashboard-sidebar {
    position: static;
    min-height: auto;
  }

  .hero-status {
    margin: 0 24px 24px;
  }

  h1 {
    font-size: 4rem;
  }

  .page-title h1,
  .profile-copy h1,
  .dashboard-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 720px) {
  main {
    padding: 14px 12px 92px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .page-title h1,
  .profile-copy h1,
  .dashboard-hero h1 {
    font-size: 2.25rem;
  }

  .topbar {
    position: static;
    padding-inline: 12px;
  }

  .topnav {
    overflow-x: auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy,
  .page-title,
  .profile-hero {
    padding: 22px;
  }

  .stats-strip,
  .game-grid,
  .policy-grid,
  .profile-grid,
  .dashboard-grid,
  .service-format-grid,
  .top-leader-grid,
  .profile-trust-strip,
  .game-hero-stats,
  .service-price-grid,
  .dashboard-kpi-grid,
  .admin-kpi-grid,
  .dashboard-highlight-grid,
  .quick-actions-grid,
  .leader-stat-wall,
  .booking-spotlight-body,
  .leader-hero-profile,
  .booking-progress,
  .afterpay-track,
  .booking-service-cards,
  .booking-form,
  .booking-fields,
  .boost-booking-fields,
  .boost-rules,
  .slot-grid,
  .booking-created-card,
  .detail-grid,
  .detail-grid.compact,
  .finance-grid,
  .step-line,
  .reschedule-compare,
  .chat-workspace,
  .admin-dispute-panel,
  .admin-dispute-filter {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .pro-card {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 100%;
  }

  .section-heading,
  .panel-head,
  .pro-heading,
  .pro-card-footer,
  .line-item,
  .booking-summary-card,
  .notification-list div,
  .definition-list div {
    display: grid;
  }

  .definition-list dd {
    text-align: left;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .money-request-card {
    display: grid;
  }

  .top-actions,
  .role-switch {
    justify-content: stretch;
  }

  .topnav {
    display: none;
  }

  .top-actions .select-label {
    width: 100%;
  }

  .hero-media {
    opacity: 0.62;
  }

  .card-one,
  .card-two,
  .card-three {
    right: 8%;
  }

  .scene-card {
    width: 118px;
  }

  .hero-copy {
    align-self: end;
  }

  .avatar {
    width: 76px;
    height: 76px;
  }

  .top-leader-card .avatar,
  .avatar.mini {
    width: 48px;
    height: 48px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid var(--line);
    background: rgba(5, 6, 9, 0.96);
    backdrop-filter: blur(14px);
    padding: 7px 8px 9px;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: grid;
    gap: 3px;
    justify-items: center;
    min-width: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    padding: 6px 3px;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .mobile-bottom-nav span {
    color: inherit;
    font-size: 1.1rem;
  }

  .mobile-bottom-nav .active,
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav button:hover {
    background: rgba(255, 59, 31, 0.14);
    color: var(--primary);
  }
}
