:root {
  --bg: #080913;
  --bg-accent: #121a2e;
  --panel: rgba(18, 20, 38, 0.86);
  --panel-strong: rgba(25, 29, 52, 0.96);
  --panel-border: rgba(117, 232, 255, 0.18);
  --text: #f7fbff;
  --muted: #98a7c7;
  --accent: #ef1d3b;
  --accent-dark: #8e1024;
  --cyan: #3fe7ff;
  --mint: #53f0b8;
  --violet: #9b6cff;
  --amber: #ffcd6b;
  --line: rgba(144, 226, 255, 0.18);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 10px;
  --radius-lg: 8px;
  --radius-md: 6px;
}

/* Premium KarateHub admin dashboard */
:root {
  --admin-bg: #05070d;
  --admin-card: rgba(10, 16, 28, 0.78);
  --admin-card-strong: rgba(12, 19, 33, 0.92);
  --admin-border: rgba(255,255,255,.08);
  --admin-red: #ff2638;
  --admin-green: #22c55e;
  --admin-blue: #3b82f6;
  --admin-yellow: #f59e0b;
  --admin-text: #ffffff;
  --admin-muted: #9ca3af;
  --admin-radius: 18px;
  --admin-shadow: 0 24px 80px rgba(0, 0, 0, .46);
}

body {
  background: var(--admin-bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body .account-home-view .premium-admin {
  position: relative;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0;
  width: min(1600px, calc(100vw - 28px));
  min-height: calc(100vh - 32px);
  margin: 14px auto;
  padding: 0;
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  border-radius: 0;
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 38, 56, .14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, .12), transparent 30%),
    linear-gradient(145deg, #05070d, #070c15 52%, #05070d);
  box-shadow: var(--admin-shadow);
  overflow: hidden;
  isolation: isolate;
}

body .account-home-view .premium-admin::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
  z-index: 0;
}

body .premium-admin__sidebar,
body .premium-admin__content {
  position: relative;
  z-index: 1;
}

body .premium-admin__sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 22px 16px;
  border-right: 1px solid var(--admin-border);
  background:
    radial-gradient(circle at 30% 8%, rgba(255, 38, 56, .16), transparent 30%),
    linear-gradient(180deg, rgba(8, 13, 22, .96), rgba(5, 9, 16, .98));
}

body .premium-admin__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 20px;
  border-bottom: 1px solid var(--admin-border);
}

body .premium-admin__brand img,
body .premium-admin__profile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 16px rgba(255, 38, 56, .45));
}

body .premium-admin__brand strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: .01em;
}

body .premium-admin__brand strong span {
  color: var(--admin-red);
}

body .premium-admin__brand small,
body .premium-admin__profile small,
body .premium-admin__pro small,
body .premium-admin__help small {
  color: var(--admin-muted);
}

body .premium-admin__nav {
  display: grid;
  gap: 6px;
}

body .premium-admin__nav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 12px 12px 44px;
  color: rgba(255,255,255,.76);
  font: 700 .94rem/1.1 "Inter", "Segoe UI", sans-serif;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body .premium-admin__nav button::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  border: 1.7px solid currentColor;
  border-radius: 5px;
  opacity: .82;
}

body .premium-admin__nav button:hover,
body .premium-admin__nav button.is-active {
  color: #fff;
  border-color: rgba(255, 38, 56, .35);
  background: linear-gradient(90deg, rgba(255, 38, 56, .18), rgba(255, 38, 56, .05));
  box-shadow: inset 3px 0 0 var(--admin-red), 0 16px 34px rgba(255, 38, 56, .12);
  transform: translateX(2px);
}

body .premium-admin__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  border-radius: 999px;
  background: var(--admin-red);
  box-shadow: 0 0 18px rgba(255, 38, 56, .46);
}

body .premium-admin__pro,
body .premium-admin__help {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

body .premium-admin__help {
  margin-top: 8px;
}

body .premium-admin__content {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
  min-width: 0;
  padding: 24px;
}

body .premium-admin__topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: start;
}

body .premium-admin__topbar h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

body .premium-admin__topbar p {
  margin: 8px 0 0;
  color: var(--admin-muted);
}

body .premium-admin__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

body .premium-admin__search .text-input {
  width: 260px;
  min-height: 44px;
}

body .premium-admin .text-input,
body .premium-admin .button {
  border-radius: 10px;
}

body .premium-admin .text-input {
  color: #fff;
  border: 1px solid var(--admin-border);
  background: rgba(5, 10, 18, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

body .premium-admin .text-input::placeholder {
  color: rgba(156, 163, 175, .82);
}

body .premium-admin__icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

body .premium-admin__icon-button::before {
  content: "";
  position: absolute;
  inset: 12px 14px 10px;
  border: 2px solid rgba(255,255,255,.78);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

body .premium-admin__icon-button span {
  position: absolute;
  right: -4px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  border-radius: 999px;
  background: var(--admin-red);
}

body .premium-admin__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

body .premium-admin__profile strong,
body .premium-admin__profile small {
  display: block;
}

body .premium-admin__period {
  width: 230px;
  min-height: 44px;
}

body .premium-admin__mobile-toggle {
  display: none;
}

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

body .premium-stat {
  position: relative;
  min-height: 120px;
  padding: 20px 20px 18px 96px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 48px rgba(0,0,0,.28);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body .premium-stat:hover,
body .premium-rail-card:hover,
body .premium-admin-table-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 24px 64px rgba(0,0,0,.38);
}

body .premium-stat::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--stat-color) 22%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--stat-color) 24%, transparent);
}

body .premium-stat::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 41px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--stat-color);
  border-radius: 6px;
}

body .premium-stat--red { --stat-color: var(--admin-red); }
body .premium-stat--blue { --stat-color: #8b5cf6; }
body .premium-stat--yellow { --stat-color: var(--admin-yellow); }
body .premium-stat--green { --stat-color: var(--admin-green); }

body .premium-stat span,
body .premium-stat small {
  display: block;
  color: var(--admin-muted);
}

body .premium-stat strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0;
}

body .premium-stat small {
  color: var(--admin-green);
}

body .premium-admin__actions {
  justify-content: flex-end;
  margin: 0;
}

body .premium-admin__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

body .premium-admin__users {
  display: none;
}

body .premium-admin__workspace,
body .premium-admin-table-card,
body .premium-rail-card,
body .premium-admin__activity {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 46px rgba(0,0,0,.25);
}

body .premium-admin__workspace {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body .premium-admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

body .premium-admin-table-card,
body .premium-rail-card {
  padding: 18px;
}

body .premium-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

body .premium-card-head h3,
body .premium-card-head p {
  margin: 0;
}

body .premium-card-head h3 {
  color: #fff;
  font-size: 1.08rem;
}

body .premium-card-head p {
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: .9rem;
}

body .premium-card-actions,
body .premium-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body .premium-admin-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--admin-border);
}

body .premium-admin-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0;
  color: var(--admin-muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

body .premium-admin-tabs button.is-active,
body .premium-admin-tabs button:hover {
  color: #fff;
}

body .premium-admin-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--admin-red);
  box-shadow: 0 0 18px rgba(255, 38, 56, .7);
}

body .premium-admin-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  color: #fff;
  font-size: .72rem;
  border-radius: 999px;
  background: var(--admin-red);
}

body .premium-table-shell {
  overflow-x: auto;
}

body .premium-admin .admin-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

body .premium-admin .admin-table th {
  color: var(--admin-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
}

body .premium-admin .admin-table th,
body .premium-admin .admin-table td {
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

body .premium-admin .admin-table td,
body .premium-admin .admin-table td span {
  color: rgba(255,255,255,.9);
}

body .premium-admin .admin-table tr {
  transition: background .18s ease;
}

body .premium-admin .admin-table tbody tr:hover {
  background: rgba(255,255,255,.035);
}

body .premium-tournament-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

body .premium-tournament-thumb {
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #fff !important;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 38, 56, .9), transparent 36%),
    linear-gradient(135deg, rgba(255, 38, 56, .2), rgba(59, 130, 246, .18));
}

body .premium-status,
body .premium-payment {
  display: inline-flex !important;
  width: max-content;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 800;
}

body .premium-status--registration_open,
body .premium-payment--approved {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, .13);
}

body .premium-status--registration_closed,
body .premium-payment--pending {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, .14);
}

body .premium-status--draft {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, .13);
}

body .premium-status--live,
body .premium-status--completed {
  color: #60a5fa !important;
  background: rgba(59, 130, 246, .14);
}

body .premium-payment--rejected {
  color: #fb7185 !important;
  background: rgba(255, 38, 56, .14);
}

body .premium-row-actions {
  flex-wrap: nowrap;
}

body .premium-row-actions .button {
  min-height: 34px;
  padding: 7px 9px;
}

body .premium-admin-rail {
  display: grid;
  gap: 14px;
}

body .premium-payment-queue {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

body .premium-payment-queue article,
body .premium-admin__activity .admin-audit-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

body .premium-payment-queue article .premium-row-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

body .premium-payment-queue strong,
body .premium-payment-queue small,
body .premium-payment-queue span {
  display: block;
}

body .premium-payment-queue small,
body .premium-admin .admin-table small,
body .premium-admin__activity small,
body .premium-admin__activity span {
  color: var(--admin-muted);
}

body .premium-donut {
  width: 138px;
  height: 138px;
  margin: 10px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--admin-blue) 0 var(--open), var(--admin-yellow) var(--open) calc(var(--open) + 22%), var(--admin-green) calc(var(--open) + 22%) calc(var(--open) + var(--paid) + 22%), #8b5cf6 0);
  box-shadow: 0 0 38px rgba(59, 130, 246, .2);
}

body .premium-donut div {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #07101c;
}

body .premium-donut strong {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

body .premium-donut span {
  color: var(--admin-muted);
  font-size: .78rem;
}

body .premium-legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .premium-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--admin-muted);
  font-size: .86rem;
}

body .premium-legend span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--dot);
}

body .premium-legend b {
  color: #fff;
}

body .premium-empty-state,
body .premium-admin .empty-state {
  color: var(--admin-muted);
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
}

body .premium-admin__activity {
  padding: 18px;
}

body .premium-admin__activity .admin-audit-list {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  overflow-x: auto;
}

body .premium-admin__activity .section-title-row {
  grid-column: 1 / -1;
}

body .premium-admin__activity .admin-audit-list article {
  min-height: 88px;
}

body .premium-admin .button-primary {
  color: #fff;
  border-color: rgba(255, 38, 56, .48);
  background: linear-gradient(135deg, #ff2638, #a70f20);
  box-shadow: 0 18px 42px rgba(255, 38, 56, .22);
}

body .premium-admin .button-secondary,
body .premium-admin .button-ghost {
  color: #fff;
  border-color: var(--admin-border);
  background: rgba(255,255,255,.045);
}

body .premium-admin .button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
}

body .premium-admin .admin-payment-settings .field {
  margin: 0 0 10px;
}

@media (max-width: 1180px) {
  body .account-home-view .premium-admin {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  body .premium-admin__brand div,
  body .premium-admin__nav button:not(.is-active),
  body .premium-admin__nav button.is-active,
  body .premium-admin__pro,
  body .premium-admin__help {
    font-size: 0;
  }

  body .premium-admin__nav button {
    min-height: 46px;
    padding: 12px;
    justify-content: center;
  }

  body .premium-admin__nav button::before {
    position: static;
  }

  body .premium-admin__badge {
    position: absolute;
    right: 6px;
    top: 6px;
  }

  body .premium-admin-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  body .premium-admin__topbar {
    grid-template-columns: 1fr;
  }

  body .premium-admin__tools {
    justify-content: flex-start;
  }

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

  body .premium-admin-rail {
    grid-template-columns: 1fr;
  }

  body .premium-admin__activity .admin-audit-list {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  body .account-home-view .premium-admin {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100svh;
    margin: 0;
  }

  body .premium-admin__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform .24s ease;
    z-index: 20;
  }

  body .premium-admin.is-sidebar-open .premium-admin__sidebar {
    transform: translateX(0);
  }

  body .premium-admin__brand div,
  body .premium-admin__nav button,
  body .premium-admin__pro,
  body .premium-admin__help {
    font-size: initial;
  }

  body .premium-admin__nav button {
    justify-content: space-between;
    padding: 12px 12px 12px 44px;
  }

  body .premium-admin__nav button::before {
    position: absolute;
  }

  body .premium-admin__content {
    padding: 16px;
  }

  body .premium-admin__mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  body .premium-admin__topbar {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  body .premium-admin__tools {
    grid-column: 1 / -1;
  }

  body .premium-admin__search,
  body .premium-admin__search .text-input,
  body .premium-admin__period {
    width: 100%;
  }

  body .premium-admin__stats {
    grid-template-columns: 1fr;
  }

  body .premium-stat {
    min-height: 110px;
  }

  body .premium-card-head,
  body .premium-card-actions,
  body .premium-admin__actions {
    align-items: stretch;
    flex-direction: column;
  }

  body .premium-admin__activity .admin-audit-list {
    grid-template-columns: 1fr;
  }
}

/* Dashboard refit: inner product screens follow the premium reference style. */
.account-home-view,
.tournament-menu-view,
.app-view {
  background:
    radial-gradient(circle at 8% 8%, rgba(128, 87, 255, 0.24), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(53, 210, 255, 0.16), transparent 25%),
    radial-gradient(circle at 72% 72%, rgba(89, 244, 185, 0.1), transparent 24%),
    linear-gradient(145deg, #060814 0%, #080a18 48%, #0b1124 100%);
}

.account-home-view::before,
.tournament-menu-view::before,
.app-view::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 34%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 18%, rgba(139, 88, 255, 0.26) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 40%, rgba(84, 240, 184, 0.18) 0 1px, transparent 2px),
    linear-gradient(rgba(108, 126, 176, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 126, 176, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 36px 36px, 36px 36px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

.menu-shell {
  width: min(1460px, calc(100% - 42px));
}

.menu-header {
  position: relative;
  overflow: hidden;
  border-color: rgba(126, 141, 184, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 0%, rgba(139, 88, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(18, 22, 43, 0.92), rgba(8, 12, 28, 0.86));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.menu-header::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 18px;
  width: 180px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(91, 83, 255, 0.38);
  box-shadow: 0 0 48px rgba(91, 83, 255, 0.24);
  transform: rotateX(68deg);
}

.menu-header h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.05em;
  text-transform: none;
}

.menu-header .hero-text {
  max-width: 760px;
  color: #aeb7d1;
}

.account-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.account-route-card,
.tournament-card,
.profile-card,
.template-card,
.admin-box,
.admin-grid article,
.secretary-invite-card,
.public-card,
.plan-card,
.tatami-card,
.assistant-stat,
.assistant-current,
.fight-card,
.assistant-next__item,
.role-manager,
.diagnostics-panel,
.import-box,
.unlock-tournament-box,
.menu-overview article,
.cabinet-roles article {
  border-color: rgba(128, 145, 190, 0.17);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(126, 87, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 45, 0.9), rgba(9, 14, 29, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 48px rgba(0, 0, 0, 0.28);
}

.account-route-card {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.account-route-card::after,
.tournament-card::after,
.menu-overview article::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 80px;
  height: 34px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(63, 231, 255, 0.7) 11% 18%, transparent 19% 36%, rgba(139, 88, 255, 0.72) 37% 47%, transparent 48% 70%, rgba(83, 240, 184, 0.66) 71% 78%, transparent 79%);
  opacity: 0.48;
}

.account-route-card span {
  color: #9f83ff;
}

.menu-grid {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.menu-overview article,
.tournament-card {
  position: relative;
  overflow: hidden;
}

.menu-overview strong {
  color: #fff;
  text-shadow: 0 0 28px rgba(123, 93, 255, 0.38);
}

.tournament-card {
  min-height: 138px;
}

.tournament-card:hover,
.account-route-card:hover,
.profile-tournament:hover,
.template-card:hover {
  border-color: rgba(139, 88, 255, 0.48);
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(49, 42, 120, 0.36);
}

.tournament-card__meta span,
.status-pill,
.profile-tags em {
  border-color: rgba(130, 148, 196, 0.18);
  color: #dfe6ff;
  background: rgba(18, 25, 49, 0.82);
}

.button,
.text-input,
.file-input,
.small-input {
  border-radius: 9px;
}

.button-primary {
  background: linear-gradient(135deg, #316cff, #8c4dff 78%);
  box-shadow: 0 16px 38px rgba(115, 78, 255, 0.32);
}

.button-secondary {
  background: linear-gradient(180deg, rgba(31, 37, 66, 0.96), rgba(13, 18, 35, 0.96));
}

.text-input,
.file-input,
.small-input {
  border-color: rgba(128, 145, 190, 0.18);
  background: rgba(6, 10, 24, 0.72);
}

.page-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
  max-width: 1520px;
  padding: 22px;
}

.app-topbar {
  position: sticky;
  top: 18px;
  grid-column: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 44px);
  margin: 0;
  padding: 16px;
  border-color: rgba(128, 145, 190, 0.2);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 76%, rgba(63, 231, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 43, 0.94), rgba(8, 12, 27, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.app-topbar__title {
  padding: 10px 10px 18px;
  border-bottom: 1px solid rgba(128, 145, 190, 0.14);
}

.app-topbar__title::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 168, 255, 0.9), rgba(139, 77, 255, 0.95));
  clip-path: polygon(0 0, 100% 0, 72% 100%, 34% 100%);
  filter: drop-shadow(0 0 18px rgba(112, 88, 255, 0.48));
}

.app-topbar__title strong {
  white-space: normal;
  line-height: 1.25;
}

.save-state,
.role-state {
  width: auto;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
  margin-top: 12px;
  border-radius: 10px;
  text-align: left;
}

.app-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  justify-content: stretch;
  margin: 18px 0 auto;
}

.app-tab {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border-color: transparent;
  background: transparent;
  color: #aab4cf;
  text-align: left;
}

.app-tab::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 7px 10px 0 0;
  border-radius: 50%;
  background: rgba(128, 145, 190, 0.35);
}

.app-tab:hover,
.app-tab.is-active {
  border-color: rgba(128, 145, 190, 0.16);
  background: linear-gradient(90deg, rgba(116, 79, 255, 0.18), rgba(63, 231, 255, 0.05));
}

.app-tab.is-active::before {
  background: #8b5cff;
  box-shadow: 0 0 18px rgba(139, 92, 255, 0.8);
}

#topBackToTournamentsBtn {
  width: 100%;
  margin-top: 14px;
}

.layout {
  grid-column: 2;
  display: block;
}

.workspace {
  margin-top: 18px;
}

.panel,
.hero-card,
.hero-copy {
  border-color: rgba(128, 145, 190, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 0%, rgba(128, 88, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 42, 0.92), rgba(8, 12, 27, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 22px 62px rgba(0, 0, 0, 0.34);
}

.data-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.hero-copy {
  min-height: 300px;
}

.hero-copy h1 {
  text-transform: none;
  letter-spacing: -0.055em;
}

.hero-copy::after {
  border-color: rgba(119, 91, 255, 0.22);
  box-shadow: inset 0 0 52px rgba(95, 84, 255, 0.12), 0 0 60px rgba(63, 231, 255, 0.1);
}

.hero-card::before {
  border-radius: 12px;
  border-color: rgba(128, 145, 190, 0.13);
}

.radar-step,
.hero-stat,
.assistant-stat,
.plan-summary div,
.public-hero__stats article,
.report-grid article,
.document-package-card,
.prep-list article,
.scheme-panel,
.scheme-layer,
.live-fighters article,
.qr-card,
.next-fight-card {
  border-color: rgba(128, 145, 190, 0.16);
  background: rgba(10, 16, 33, 0.72);
}

.radar-step--active,
.app-tab.is-active {
  box-shadow: inset 3px 0 0 rgba(139, 92, 255, 0.85);
}

.assistant-dashboard,
.plan-grid,
.public-grid,
.admin-grid,
.profile-grid {
  gap: 14px;
}

.live-arena {
  border-radius: 16px;
  background:
    radial-gradient(circle at 26% 0%, rgba(139, 88, 255, 0.28), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(63, 231, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(12, 17, 36, 0.98), rgba(6, 10, 23, 0.96));
}

.inline-hall-canvas,
.brackets-container,
.editor-container {
  border-radius: 14px;
}

.admin-table-wrap table,
.participants-table,
.roster-table {
  background: rgba(7, 11, 24, 0.55);
}

.admin-table-wrap th,
.participants-table th {
  color: #dce5ff;
  background: rgba(126, 87, 255, 0.12);
}

.admin-table-wrap td,
.participants-table td {
  border-color: rgba(128, 145, 190, 0.11);
}

.classic-sheet {
  border-radius: 0;
}

@media (max-width: 1180px) {
  .page-shell {
    display: block;
  }

  .app-topbar {
    position: sticky;
    min-height: 0;
    margin-bottom: 18px;
  }

  .app-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(63, 231, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 4%, rgba(239, 29, 59, 0.22), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(83, 240, 184, 0.14), transparent 30%),
    linear-gradient(135deg, #05060d 0%, var(--bg) 45%, var(--bg-accent) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(117, 232, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 232, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.is-hidden {
  display: none !important;
}

.is-hidden-section {
  display: none !important;
}

.landing-view,
.auth-view,
.account-home-view,
.tournament-menu-view {
  position: relative;
  min-height: 100vh;
}

.landing-shell,
.menu-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: rgba(18, 20, 38, 0.78);
  box-shadow: var(--shadow);
}

.landing-nav strong {
  color: #fff;
  text-transform: uppercase;
}

.landing-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.landing-nav__links button {
  border: 0;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.landing-nav__links button:hover {
  color: #fff;
}

.landing-nav__actions,
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 250px);
  padding: 54px 0 32px;
}

.landing-hero h1 {
  max-width: 12ch;
}

.landing-actions {
  margin-top: 28px;
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.landing-proof div {
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.landing-proof strong,
.landing-proof span {
  display: block;
}

.landing-proof strong {
  color: #fff;
}

.landing-proof span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.landing-preview {
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.2);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(117, 232, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 232, 255, 0.04) 1px, transparent 1px),
    linear-gradient(155deg, rgba(20, 24, 47, 0.98), rgba(9, 11, 24, 0.94));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow);
}

.preview-topline {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.preview-topline span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(63, 231, 255, 0.6);
}

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

.preview-card,
.preview-chart {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.preview-card--wide,
.preview-chart {
  grid-column: 1 / -1;
}

.preview-card strong {
  display: block;
  color: #fff;
  font-size: 1.6rem;
}

.preview-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.preview-chart {
  min-height: 128px;
  background:
    linear-gradient(135deg, transparent 0 18%, var(--cyan) 19% 22%, transparent 23% 36%, var(--mint) 37% 40%, transparent 41% 57%, var(--amber) 58% 61%, transparent 62%),
    linear-gradient(180deg, rgba(63, 231, 255, 0.09), rgba(255, 255, 255, 0.025));
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
}

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

.landing-features article,
.benefit-grid article,
.auth-card,
.tournament-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: rgba(18, 20, 38, 0.86);
  box-shadow: var(--shadow);
}

.landing-features article {
  padding: 20px;
}

.landing-features strong,
.landing-features span {
  display: block;
}

.landing-features span {
  margin-top: 8px;
  color: var(--muted);
}

.landing-section {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(117, 232, 255, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 0%, rgba(239, 29, 59, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 20, 38, 0.9), rgba(8, 10, 22, 0.82));
  box-shadow: var(--shadow);
}

.section-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.section-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.benefit-grid article {
  padding: 18px;
  box-shadow: none;
  background:
    linear-gradient(135deg, rgba(63, 231, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.benefit-grid strong,
.benefit-grid span {
  display: block;
}

.benefit-grid strong {
  color: #fff;
}

.benefit-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.workflow-strip div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.workflow-strip span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #091016;
  background: var(--cyan);
  font-weight: 900;
}

.workflow-strip strong {
  line-height: 1.25;
}

.audience-section,
.pricing-section,
.faq-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(117, 232, 255, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(18, 20, 38, 0.78);
  box-shadow: var(--shadow);
}

.audience-section {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(83, 240, 184, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(18, 20, 38, 0.88), rgba(8, 10, 22, 0.82));
}

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

.audience-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.audience-list span {
  color: var(--cyan);
  font-weight: 900;
}

.audience-list strong {
  line-height: 1.35;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 460px);
  gap: 24px;
  align-items: stretch;
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 29, 59, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(18, 20, 38, 0.92), rgba(8, 10, 22, 0.86));
}

.pricing-copy h2,
.faq-section h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.pricing-copy p {
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-card {
  padding: 24px;
  border: 1px solid rgba(83, 240, 184, 0.26);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(83, 240, 184, 0.11), rgba(255, 255, 255, 0.045));
}

.pricing-card__label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #07130e;
  background: var(--mint);
  font-weight: 900;
  font-size: 0.82rem;
}

.pricing-card strong {
  display: block;
  color: #fff;
  font-size: 2rem;
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-card ul {
  margin: 16px 0 20px;
  padding-left: 18px;
}

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

.faq-grid article {
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.faq-grid strong,
.faq-grid span {
  display: block;
}

.faq-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-view {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(480px, 100%);
  padding: 28px;
}

.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: none;
}

.auth-form,
.create-tournament-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: var(--amber);
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: rgba(18, 20, 38, 0.86);
  box-shadow: var(--shadow);
}

.menu-header h1 {
  max-width: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 24px;
}

.menu-search {
  margin-top: 18px;
}

.unlock-tournament-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.unlock-tournament-box .helper-text {
  grid-column: 1 / -1;
  margin: 0;
}

.menu-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.cabinet-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.cabinet-roles article {
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(83, 240, 184, 0.07), rgba(255, 255, 255, 0.035));
}

.cabinet-roles span,
.cabinet-roles strong,
.cabinet-roles p {
  display: block;
}

.cabinet-roles span {
  color: var(--cyan);
  font-weight: 900;
}

.cabinet-roles strong {
  margin-top: 6px;
  color: #fff;
}

.cabinet-roles p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.menu-overview article {
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(63, 231, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.menu-overview span,
.menu-overview strong {
  display: block;
}

.menu-overview span {
  color: var(--muted);
  font-size: 0.84rem;
}

.menu-overview strong {
  margin-top: 6px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.admin-panel,
.secretary-code-panel,
.secretary-invitations {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 29, 59, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(18, 20, 38, 0.92), rgba(11, 13, 26, 0.82));
  box-shadow: var(--shadow);
}

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

.admin-grid article,
.secretary-invite-card {
  padding: 16px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.admin-grid span,
.admin-grid small,
.secretary-code-panel span,
.secretary-code-panel p,
.secretary-invite-card span,
.secretary-invite-card small {
  display: block;
  color: var(--muted);
}

.admin-grid strong,
.secretary-code-panel strong {
  display: block;
  margin: 6px 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.secretary-code-panel strong {
  color: var(--mint);
  letter-spacing: 0.12em;
}

.secretary-invitations__list {
  display: grid;
  gap: 12px;
}

.secretary-invite-card,
.secretary-card--pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.secretary-card--pending {
  border-style: dashed;
}

.tournaments-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.tournament-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  box-shadow: none;
}

.tournament-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 24, 0.94), rgba(6, 10, 24, 0.72)),
    var(--card-banner, linear-gradient(transparent, transparent));
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.tournament-card > * {
  position: relative;
  z-index: 1;
}

.tournament-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.tournament-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tournament-visibility-select {
  min-width: 135px;
}

.tournament-card strong,
.tournament-card span,
.tournament-card small {
  display: block;
}

.tournament-card span,
.tournament-card small {
  margin-top: 5px;
  color: var(--muted);
}

.tournament-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tournament-card__meta span {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
}

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

.upload-tile {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 92px;
  padding: 14px;
  border: 1px dashed rgba(117, 232, 255, 0.35);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(117, 232, 255, 0.055);
  cursor: pointer;
}

.upload-tile span {
  color: #fff;
  font-weight: 800;
}

.upload-tile input {
  max-width: 100%;
}

.branding-upload-message {
  min-height: 20px;
  margin: 0;
}

.branding-upload-message[data-type="success"] {
  color: #6ee7a8;
}

.branding-upload-message[data-type="error"] {
  color: #ff7b86;
}

.branding-preview-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(6, 10, 24, 0.94), rgba(6, 10, 24, 0.72)),
    var(--brand-banner, linear-gradient(135deg, rgba(239, 29, 59, 0.18), rgba(117, 232, 255, 0.12)));
  background-size: cover;
  background-position: center;
}

.branding-preview-card__media img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}

.branding-preview-card strong,
.branding-preview-card span,
.branding-preview-card small {
  display: block;
}

.branding-preview-card strong {
  color: #fff;
  font-size: 1.05rem;
}

.branding-preview-card span {
  color: var(--brand-secondary);
}

.receipt-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.receipt-preview img {
  width: min(100%, 360px);
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  background: #080c18;
}

.admin-receipt-thumb {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(117, 232, 255, 0.2);
  display: block;
}

body .saas-auth-route {
  min-height: 100vh;
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(117, 232, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(239, 29, 59, 0.14), transparent 30%),
    #070c18;
}

body .saas-auth-route .saas-public-head,
body .saas-auth-route .saas-public-head p,
body .saas-auth-route .saas-public-head h1,
body .saas-auth-route .eyebrow {
  color: #fff;
}

body .saas-auth-panel,
body .auth-card {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(7, 12, 24, 0.92));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
}

body .saas-auth-panel h1,
body .saas-auth-panel h2,
body .saas-auth-panel h3,
body .saas-auth-panel p,
body .saas-auth-panel span,
body .auth-card h1,
body .auth-card h2,
body .auth-card p,
body .auth-card span {
  color: #fff;
}

body .saas-auth-panel .text-input,
body .auth-card .text-input {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(3, 7, 18, 0.72);
}

body .saas-auth-panel .text-input::placeholder,
body .auth-card .text-input::placeholder,
body .text-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

body .saas-auth-panel .helper-text,
body .auth-message {
  color: #ffdf7e;
}

.account-route-card,
.tournament-card,
.menu-overview article,
.panel,
.admin-box,
.public-card {
  overflow: hidden;
}

.slot-layer,
.slot-dropzone,
.seed-slot {
  z-index: 5;
  pointer-events: auto;
}

.label-layer {
  z-index: 6;
}

.match-number-input {
  z-index: 7;
}

.page-shell {
  position: relative;
  max-width: 1660px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.app-topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 88px auto minmax(0, 1.8fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(117, 232, 255, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(9, 11, 24, 0.88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.save-state {
  justify-self: start;
  width: 88px;
  min-width: 88px;
  padding: 7px 8px;
  border: 1px solid rgba(83, 240, 184, 0.22);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(83, 240, 184, 0.07);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-state {
  justify-self: start;
  max-width: 190px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 205, 107, 0.24);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 205, 107, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar__title span,
.radar-header span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-topbar__title strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.app-tab {
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.app-tab:hover,
.app-tab.is-active {
  color: #fff;
  border-color: rgba(83, 240, 184, 0.44);
  background: linear-gradient(135deg, rgba(83, 240, 184, 0.18), rgba(63, 231, 255, 0.1));
}

.hero,
.data-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 420px);
  gap: 24px;
  margin-bottom: 24px;
}

.data-hero-grid {
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.panel {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(22, 25, 48, 0.96), rgba(12, 14, 29, 0.86)),
    linear-gradient(90deg, rgba(239, 29, 59, 0.16), transparent 45%);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(63, 231, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 46px rgba(63, 231, 255, 0.1),
    0 0 60px rgba(239, 29, 59, 0.12);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.35rem, 4.2vw, 4.7rem);
  line-height: 1.02;
  max-width: 14ch;
  text-transform: uppercase;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(63, 231, 255, 0.16);
  color: var(--muted);
}

.hero-signature strong {
  color: var(--mint);
}

.hero-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-xl);
  align-content: center;
  background:
    linear-gradient(155deg, rgba(20, 24, 47, 0.98), rgba(9, 11, 24, 0.94)),
    linear-gradient(135deg, rgba(63, 231, 255, 0.1), transparent 45%);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(63, 231, 255, 0.14);
  pointer-events: none;
}

.radar-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(117, 232, 255, 0.14);
}

.radar-status {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.07);
}

.radar-status--done {
  color: #08110d;
  background: var(--mint);
}

.radar-status--active {
  color: #071019;
  background: var(--cyan);
}

.radar-status--warning {
  color: #211505;
  background: var(--amber);
}

.radar-status--wait {
  color: var(--muted);
  border: 1px solid rgba(117, 232, 255, 0.18);
}

.radar-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.radar-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(117, 232, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.radar-step__number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid rgba(117, 232, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 900;
}

.radar-step strong,
.radar-step small {
  display: block;
}

.radar-step small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.radar-step--done {
  border-color: rgba(83, 240, 184, 0.28);
}

.radar-step--done .radar-step__number {
  color: #06120d;
  border-color: transparent;
  background: var(--mint);
}

.radar-step--active {
  border-color: rgba(63, 231, 255, 0.42);
  box-shadow: inset 0 0 22px rgba(63, 231, 255, 0.07);
}

.radar-step--active .radar-step__number {
  color: #061017;
  border-color: transparent;
  background: var(--cyan);
}

.radar-step--warning {
  border-color: rgba(255, 205, 107, 0.38);
}

.radar-step--warning .radar-step__number {
  color: #1d1203;
  border-color: transparent;
  background: var(--amber);
}

.radar-hint {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(255, 205, 107, 0.24);
  border-radius: var(--radius-md);
  color: #fff5dc;
  background:
    linear-gradient(135deg, rgba(255, 205, 107, 0.13), rgba(239, 29, 59, 0.08));
  line-height: 1.45;
}

.hero-stat {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(63, 231, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(63, 231, 255, 0.16);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-stat::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 92px;
  height: 34px;
  opacity: 0.62;
  background:
    linear-gradient(135deg, transparent 0 18%, var(--cyan) 19% 22%, transparent 23% 38%, var(--mint) 39% 42%, transparent 43% 62%, var(--amber) 63% 66%, transparent 67%),
    linear-gradient(to top, rgba(63, 231, 255, 0.12), transparent);
  clip-path: polygon(0 78%, 12% 64%, 24% 70%, 38% 42%, 50% 50%, 64% 25%, 78% 34%, 100% 8%, 100% 100%, 0 100%);
}

.hero-stat__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-stat strong {
  color: #ffffff;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.workspace {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.controls-panel {
  position: static;
  max-height: none;
  overflow-y: auto;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(25, 29, 52, 0.94), rgba(11, 13, 27, 0.9));
}

.panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.panel-header h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(83, 240, 184, 0.75);
}

.tournament-assistant-panel {
  border-color: rgba(83, 240, 184, 0.24);
  background:
    linear-gradient(180deg, rgba(24, 34, 55, 0.96), rgba(10, 14, 28, 0.92)),
    linear-gradient(135deg, rgba(83, 240, 184, 0.08), rgba(63, 231, 255, 0.04));
}

.assistant-toolbar {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(140px, 190px) 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.assistant-field {
  margin: 0;
}

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

.assistant-panel-content {
  margin-top: 18px;
}

.assistant-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
}

.assistant-current,
.assistant-progress,
.assistant-next {
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.assistant-kicker,
.assistant-next__title {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-current strong {
  display: block;
  margin: 6px 0;
  color: var(--mint);
  font-size: 3.2rem;
  line-height: 1;
}

.assistant-current div {
  font-weight: 800;
}

.assistant-current p {
  margin: 8px 0 0;
  color: var(--muted);
}

.winner-control,
.winner-badge {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(117, 232, 255, 0.14);
}

.winner-control span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.winner-badge {
  color: var(--mint);
  font-weight: 900;
}

.assistant-progress__row,
.assistant-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.assistant-progress__row strong {
  color: var(--cyan);
}

.assistant-progress__bar {
  height: 12px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.assistant-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  box-shadow: 0 0 18px rgba(63, 231, 255, 0.4);
}

.assistant-meta-row {
  color: var(--muted);
  font-size: 0.92rem;
}

.assistant-next {
  margin-top: 14px;
}

.assistant-next__item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(117, 232, 255, 0.12);
}

.assistant-next__item strong {
  color: var(--mint);
}

.assistant-next__item span {
  display: grid;
  gap: 4px;
}

.assistant-next__item small {
  color: var(--muted);
  font-size: 0.82rem;
}

.assistant-next__item em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.assistant-empty {
  color: var(--muted);
}

.tatami-summary {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 205, 107, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 205, 107, 0.07);
}

.tatami-summary h3 {
  margin: 0 0 12px;
}

.tatami-summary article {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 205, 107, 0.12);
}

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

.fight-timer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(83, 240, 184, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(83, 240, 184, 0.1), rgba(63, 231, 255, 0.05));
}

.fight-timer span,
.fight-timer strong {
  display: block;
}

.fight-timer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fight-timer strong {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.fight-timer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.public-page-content {
  display: grid;
  gap: 18px;
}

.public-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(117, 232, 255, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(12, 14, 28, 0.98) 0%, rgba(74, 13, 22, 0.92) 52%, rgba(239, 29, 59, 0.86) 100%);
  box-shadow: 0 24px 70px rgba(36, 6, 10, 0.28);
}

.public-hero h3 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.public-hero p,
.public-hero span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.public-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(100%, 430px);
}

.public-hero__stats article,
.public-card {
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.public-hero__stats strong {
  display: block;
  color: #fff;
  font-size: 2rem;
}

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

.public-card {
  background:
    linear-gradient(160deg, rgba(25, 29, 52, 0.96), rgba(12, 14, 28, 0.88));
}

.public-card--wide {
  grid-column: span 2;
}

.public-card h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.podium-category {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.podium-category--view {
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, 1fr));
}

.podium-category > div:first-child span,
.podium-place span {
  display: block;
  color: var(--muted);
}

.podium-place strong {
  display: block;
  margin-top: 4px;
}

.scheme-view-panel {
  min-height: 260px;
}

.public-fight-row,
.public-detail,
.public-stat-row,
.public-draw-list div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(117, 232, 255, 0.12);
}

.public-fight-row:last-child,
.public-detail:last-child,
.public-stat-row:last-child,
.public-draw-list div:last-child {
  border-bottom: 0;
}

.public-fight-row em,
.public-detail span,
.public-stat-row span,
.public-draw-list span {
  color: var(--muted);
  font-style: normal;
}

.tournament-plan-panel {
  border-color: rgba(117, 232, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.97), rgba(9, 12, 24, 0.94)),
    linear-gradient(135deg, rgba(117, 232, 255, 0.08), rgba(239, 29, 59, 0.035));
}

.tournament-plan-content {
  margin-top: 18px;
}

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

.plan-summary div,
.plan-card {
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.plan-summary div {
  padding: 14px;
}

.plan-summary strong,
.plan-summary span {
  display: block;
}

.plan-summary strong {
  color: #fff;
  font-size: 1.65rem;
}

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

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.plan-card {
  padding: 16px;
  min-height: 180px;
}

.plan-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.plan-card__head strong {
  color: var(--amber);
}

.plan-card__head span,
.plan-card__time,
.plan-card li span {
  color: var(--muted);
}

.plan-card__time {
  margin-top: 8px;
  font-weight: 800;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(117, 232, 255, 0.1);
}

.tatami-board-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.tatami-board-toolbar .plan-summary {
  margin-bottom: 0;
}

.tatami-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tatami-board-card {
  position: relative;
  overflow: hidden;
}

.tatami-board-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--accent));
  opacity: 0.85;
}

.tatami-collapse-button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(117, 232, 255, 0.2);
  border-radius: 8px;
  background: rgba(117, 232, 255, 0.08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.tatami-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tatami-card-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
}

.tatami-category-dropzone {
  min-height: 86px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tatami-category-dropzone.is-drag-over {
  border: 1px dashed rgba(117, 232, 255, 0.6);
  border-radius: 12px;
  background: rgba(117, 232, 255, 0.08);
}

.plan-card li.tatami-category-item {
  align-items: center;
  justify-content: flex-start;
  cursor: grab;
  border: 1px solid rgba(117, 232, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(7, 12, 24, 0.48);
}

.tatami-category-item.is-dragging {
  opacity: 0.55;
}

.tatami-drag-handle {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0;
}

.tatami-category-item strong,
.tatami-category-item small {
  display: block;
}

.tatami-mobile-move {
  display: none;
  margin-top: 8px;
  width: 100%;
}

.tatami-category-empty {
  color: var(--muted);
  border: 1px dashed rgba(117, 232, 255, 0.18) !important;
  border-radius: 12px;
  justify-content: center !important;
}

.tatami-board-card.is-collapsed .tatami-category-dropzone {
  display: none;
}

.tatami-board-card.is-collapsed {
  min-height: 112px;
}

@media (max-width: 900px) {
  .tatami-board-toolbar {
    grid-template-columns: 1fr;
  }

  .tatami-board-actions {
    justify-content: flex-start;
  }

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

  .tatami-mobile-move {
    display: block;
  }

  .branding-upload-grid,
  .branding-preview-card {
    grid-template-columns: 1fr;
  }

  .branding-preview-card {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  body .page-shell {
    display: block;
    padding: 12px 12px 86px;
  }

  body .app-topbar {
    position: static;
    min-height: 0;
    margin-bottom: 12px;
  }

  body .app-tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(104px, 1fr);
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid rgba(135, 151, 205, 0.22);
    border-radius: 18px;
    background: rgba(7, 10, 22, 0.94);
    backdrop-filter: blur(18px);
  }

  body .app-tab {
    min-height: 44px;
    white-space: nowrap;
    border-radius: 12px;
  }

  .layout,
  .workspace,
  .admin-columns,
  .data-hero-grid,
  .public-grid,
  .live-arena {
    grid-template-columns: 1fr !important;
  }

  .panel,
  .import-box,
  .admin-box {
    padding: 14px;
    border-radius: 14px;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .button,
  .text-input {
    min-height: 44px;
  }

  .tournament-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .tournament-card__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .inline-hall-canvas {
    min-height: 520px;
  }

  .scheme-workbench {
    grid-template-columns: 1fr !important;
  }

  .live-fighters {
    grid-template-columns: 1fr;
  }
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.import-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(63, 231, 255, 0.055), rgba(239, 29, 59, 0.035));
  border: 1px solid rgba(117, 232, 255, 0.12);
}

.field {
  display: block;
}

.field--spaced {
  margin-top: 14px;
}

.field span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.file-input,
.text-input,
.small-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(117, 232, 255, 0.18);
  background: rgba(6, 8, 18, 0.72);
  color: var(--text);
  font: inherit;
  outline: none;
}

.file-input:focus,
.text-input:focus,
.small-input:focus {
  border-color: rgba(63, 231, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(63, 231, 255, 0.12);
}

.helper-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.access-code-card {
  padding: 14px;
  border: 1px solid rgba(255, 205, 107, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 205, 107, 0.08);
}

.access-code-card span,
.access-code-card strong,
.access-code-card small {
  display: block;
}

.access-code-card strong {
  margin: 6px 0;
  color: var(--amber);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.bracket-display-settings {
  align-items: center;
}

.bracket-display-settings h3 {
  margin: 0 0 6px;
}

.toggle-field {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.toggle-field input {
  accent-color: var(--mint);
}

.switch-field {
  position: relative;
  gap: 12px;
  padding: 10px 14px 10px 10px;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-slider {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 48px;
  border: 1px solid rgba(117, 232, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.24);
}

.switch-slider::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.switch-field input:checked + .switch-slider {
  border-color: rgba(83, 240, 184, 0.55);
  background: linear-gradient(135deg, rgba(83, 240, 184, 0.32), rgba(63, 231, 255, 0.14));
}

.switch-field input:checked + .switch-slider::after {
  transform: translateX(22px);
  background: var(--mint);
  box-shadow: 0 0 18px rgba(83, 240, 184, 0.45);
}

.export-select {
  width: 120px;
  min-width: 120px;
}

.button {
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(63, 231, 255, 0.12);
}

.button-primary {
  color: #fff8f2;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6544 100%);
  box-shadow: 0 14px 32px rgba(239, 29, 59, 0.28);
}

.button-secondary {
  background: linear-gradient(180deg, rgba(36, 42, 74, 0.98), rgba(14, 17, 35, 0.98));
  color: var(--text);
  border: 1px solid rgba(117, 232, 255, 0.22);
}

.button-ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(117, 232, 255, 0.2);
}

.button-danger {
  background: rgba(180, 0, 24, 0.08);
  color: var(--accent-dark);
  border: 1px solid rgba(180, 0, 24, 0.16);
}

.button-small {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.profile-content,
.templates-list,
.admin-panel {
  display: grid;
  gap: 18px;
}

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

.account-route-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(117, 232, 255, 0.18);
  border-radius: var(--radius-xl);
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(63, 231, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 20, 38, 0.94), rgba(8, 10, 22, 0.86));
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-route-card:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 240, 184, 0.42);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.account-route-card span,
.account-route-card strong,
.account-route-card p {
  display: block;
}

.account-route-card span {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
}

.account-route-card strong {
  margin-top: 14px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.account-route-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-route-card--admin {
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 29, 59, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(30, 18, 31, 0.96), rgba(8, 10, 22, 0.86));
}

.account-home-panel,
.account-home-view .admin-panel {
  margin-top: 22px;
}

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

.profile-card,
.template-card,
.admin-box,
.scheme-readonly-note,
.scheme-details--inline,
.profile-section {
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.profile-card {
  padding: 18px;
}

.profile-card--main {
  grid-column: span 2;
}

.profile-card span,
.profile-card strong,
.profile-card p,
.profile-card small {
  display: block;
}

.profile-card span {
  color: var(--muted);
  font-weight: 800;
}

.profile-card strong {
  margin-top: 8px;
  font-size: 1.55rem;
}

.profile-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-tags,
.profile-actions,
.template-actions,
.template-card__actions,
.admin-actions,
.scheme-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-tags {
  margin-top: 12px;
}

.profile-tags em,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
  color: #07120d;
  background: var(--mint);
}

.status-pill--pending {
  color: #3b2500;
  background: #ffd66b;
}

.status-pill--approved,
.status-pill--active {
  color: #062015;
  background: #53f0b8;
}

.status-pill--rejected,
.status-pill--blocked {
  color: #fff;
  background: #ef1d3b;
}

.profile-section {
  padding: 18px;
}

.profile-section h3,
.admin-box h3 {
  margin-bottom: 12px;
}

.profile-tournament-list,
.admin-audit-list {
  display: grid;
  gap: 10px;
}

.profile-tournament {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

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

.template-manager {
  margin-top: 18px;
}

.template-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.template-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.inline-scheme {
  display: grid;
  gap: 16px;
}

.scheme-toolbar {
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.scheme-toolbar .field {
  min-width: 150px;
  margin: 0;
}

.color-input {
  min-height: 42px;
  padding: 4px;
}

.scheme-readonly-note {
  padding: 14px;
  color: var(--muted);
}

.inline-hall-canvas {
  position: relative;
  min-height: 680px;
  overflow: auto;
  border: 1px solid rgba(117, 232, 255, 0.18);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(117, 232, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 232, 255, 0.05) 1px, transparent 1px),
    var(--scheme-bg-image, linear-gradient(transparent, transparent)),
    radial-gradient(circle at 50% 0%, rgba(83, 240, 184, 0.08), transparent 35%),
    rgba(5, 8, 16, 0.78);
  background-size: var(--scheme-grid, 32px) var(--scheme-grid, 32px), var(--scheme-grid, 32px) var(--scheme-grid, 32px), contain, auto, auto;
  background-position: left top, left top, center, center, center;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
}

.inline-hall-stage {
  transform-origin: 0 0;
  min-width: 980px;
  min-height: 640px;
}

.hall-edit-object {
  position: absolute;
  display: grid;
  place-items: center;
  color: #061017;
  font-weight: 900;
  user-select: none;
  cursor: grab;
  border: 2px solid rgba(0, 0, 0, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.inline-scheme--view .hall-edit-object {
  cursor: default;
}

.hall-edit-object.is-selected {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  z-index: 10;
}

.hall-edit-object--tatami {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.inline-tatami-mat {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 2px solid #05070d;
}

.inline-tatami-inner {
  position: relative;
  width: 72%;
  height: 68%;
}

.inline-tatami-inner span {
  position: absolute;
  width: 22%;
  height: 24%;
}

.inline-tatami-inner span:nth-child(1) {
  left: 22%;
  top: 25%;
}

.inline-tatami-inner span:nth-child(2) {
  right: 22%;
  top: 25%;
}

.inline-tatami-inner span:nth-child(3) {
  left: 39%;
  bottom: 22%;
}

.hall-edit-object--secretary {
  overflow: hidden;
  grid-template-rows: 30px 1fr;
  background: #fff;
  font-family: "Times New Roman", serif;
  font-size: 1.9rem;
}

.secretary-mini-label {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  color: #061017;
}

.hall-edit-object--label {
  border: 0;
  box-shadow: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  font-family: "Times New Roman", serif;
  font-size: 1.12rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hall-edit-object--chief,
.hall-edit-object--doctor,
.hall-edit-object--exit,
.hall-edit-object--warmup,
.hall-edit-object--spectator {
  padding: 8px;
  text-align: center;
}

.hall-edit-object--warmup,
.hall-edit-object--spectator {
  color: #08111d;
  border-style: dashed;
}

.hall-edit-object--resizable {
  padding-right: 20px;
  padding-bottom: 20px;
}

.inline-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.7);
  background: #fff;
  cursor: nwse-resize;
}

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

.scheme-tatami-summary article {
  padding: 12px;
  border: 1px solid rgba(117, 232, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.scheme-tatami-summary span,
.scheme-tatami-summary small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.admin-actions {
  margin: 16px 0;
}

.admin-import-label {
  position: relative;
  overflow: hidden;
}

.admin-import-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

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

.admin-box {
  padding: 16px;
}

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

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

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(117, 232, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-table td strong,
.admin-table td small,
.admin-table td span {
  display: block;
}

.admin-table td small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-select {
  min-width: 150px;
}

.status-pill--blocked {
  color: #fff;
  background: var(--accent);
}

.admin-audit-list article {
  padding: 12px;
  border: 1px solid rgba(117, 232, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.admin-audit-list span,
.admin-audit-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.tips {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(83, 240, 184, 0.055), rgba(155, 108, 255, 0.045));
  border: 1px solid rgba(117, 232, 255, 0.12);
}

.diagnostics-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(117, 232, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(63, 231, 255, 0.075), rgba(83, 240, 184, 0.045));
}

.diagnostics-panel__title {
  font-weight: 800;
}

.diagnostics-panel__content {
  margin-top: 12px;
}

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

.diagnostics-grid div {
  padding: 12px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.diagnostics-grid strong {
  display: block;
  color: #fff;
  font-size: 1.4rem;
}

.diagnostics-grid span,
.diagnostics-empty,
.diagnostics-ok {
  color: var(--muted);
}

.diagnostics-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.diagnostics-list li + li {
  margin-top: 8px;
}

.role-manager {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 205, 107, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 205, 107, 0.08), rgba(63, 231, 255, 0.045));
}

.panel-header--compact h2 {
  font-size: 1.15rem;
}

.secretary-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.secretaries-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.secretary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.secretary-card strong,
.secretary-card span {
  display: block;
}

.secretary-card span {
  margin-top: 4px;
  color: var(--muted);
}

.fight-summary__empty,
.fight-summary__total {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.fight-summary__list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.fight-summary__list li + li {
  margin-top: 8px;
}

.tatami-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tatami-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(117, 232, 255, 0.14);
}

.tatami-card__title {
  font-weight: 800;
}

.tatami-card__meta {
  margin-top: 6px;
  color: var(--muted);
}

.tatami-card__categories {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tatami-card__categories li + li {
  margin-top: 6px;
}

.tips h3 {
  font-size: 1rem;
}

.tips ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.editor-container,
.brackets-container {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(117, 232, 255, 0.24);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.editor-category,
.category-block {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(117, 232, 255, 0.14);
  background: linear-gradient(180deg, rgba(25, 29, 52, 0.88), rgba(12, 15, 31, 0.95));
}

.editor-category--ready {
  border-color: rgba(83, 240, 184, 0.22);
}

.editor-category--warning {
  border-color: rgba(255, 205, 107, 0.36);
}

.category-status {
  padding: 7px 10px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-status--ready {
  color: #08140f;
  background: var(--mint);
}

.category-status--warning {
  color: #1d1204;
  background: var(--amber);
}

.classic-sheet {
  color: #000;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.classic-sheet h1,
.classic-sheet h2,
.classic-sheet h3,
.classic-sheet div,
.classic-sheet span,
.classic-sheet table,
.classic-sheet td,
.classic-sheet input {
  color: #000;
}

.category-sheet__head {
  padding: 8px 14px 0;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, auto) 1fr;
  align-items: start;
  gap: 12px;
  min-height: 42px;
}

.sheet-supertitle {
  font-family: "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.sheet-left,
.sheet-center,
.sheet-right,
.sheet-tatami,
.sheet-category {
  font-family: "Times New Roman", serif;
}

.sheet-left,
.sheet-right {
  font-size: 0.92rem;
  font-weight: 700;
  padding-top: 24px;
}

.sheet-left {
  text-align: left;
}

.sheet-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.sheet-center {
  text-align: center;
}

.sheet-category {
  margin-top: 3px;
  font-size: 0.9rem;
  font-weight: 700;
}

.sheet-tatami {
  margin-top: 3px;
  font-size: 0.92rem;
  font-weight: 700;
}

.category-sheet__body {
  display: grid;
  align-items: start;
  gap: 24px;
  padding: 8px 14px 12px;
}

.category-sheet__body--double {
  grid-template-columns: minmax(560px, 1fr) 480px;
}

.category-sheet__body--stack {
  grid-template-columns: 1fr;
}

.editor-category__header,
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(117, 232, 255, 0.14);
  background: linear-gradient(90deg, rgba(63, 231, 255, 0.08), rgba(239, 29, 59, 0.06));
}

.editor-category__controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.editor-category__body {
  padding: 18px 22px 22px;
}

.table-scroll,
.bracket-scroll {
  overflow-x: auto;
}

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

.participants-table th,
.participants-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(117, 232, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.participants-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.participants-table td:last-child,
.participants-table th:last-child {
  width: 1%;
  white-space: nowrap;
}

.svg-bracket-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 0;
}

.bracket-board {
  position: relative;
}

.bracket-svg {
  display: block;
  background: #fff;
}

.bracket-line {
  stroke: #111;
  stroke-width: 2;
  fill: none;
  shape-rendering: crispEdges;
}

.bracket-match-number {
  font-family: "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  fill: #000;
}

.slot-layer {
  position: absolute;
  inset: 0;
}

.label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slot-dropzone {
  position: absolute;
  padding: 0;
}

.match-number-input {
  position: absolute;
  width: 34px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #000;
  font-family: "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  pointer-events: auto;
  z-index: 2;
  padding: 0 2px;
  outline: none;
  box-shadow: none;
}

.match-number-input:focus {
  background: #fff;
  border: 1px solid #000;
}

.slot-dropzone.drop-target .seed-slot,
.slot-dropzone--empty.drop-target {
  outline: 2px dashed #b33b20;
  outline-offset: -2px;
  background: rgba(179, 59, 32, 0.06);
}

.seed-slot {
  width: 100%;
  height: 100%;
  padding: 4px 6px 3px;
  border: 2px solid #111;
  background: #fff;
  cursor: grab;
  user-select: none;
}

.seed-slot.dragging {
  opacity: 0.45;
}

.seed-slot--empty {
  cursor: default;
}

.seed-slot__name,
.seed-slot__coach {
  font-family: "Times New Roman", serif;
  color: #000;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seed-slot__name {
  font-size: 0.95rem;
  font-weight: 700;
}

.seed-slot__coach {
  margin-top: 3px;
  font-size: 0.88rem;
  font-weight: 700;
}

.category-sidepanel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.roster-card {
  padding: 0;
  background: #fff;
}

.roster-card__title {
  margin-bottom: 8px;
  font-family: "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.roster-scroll {
  overflow-x: auto;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Times New Roman", serif;
  font-size: 0.95rem;
  color: #000;
}

.roster-table td {
  padding: 3px 6px;
  border: 2px solid #111;
  vertical-align: top;
  line-height: 1.1;
  white-space: nowrap;
}

.roster-table td:first-child {
  min-width: 146px;
  font-weight: 700;
}

.roster-table td:nth-child(2),
.roster-table td:nth-child(3),
.roster-table td:nth-child(4) {
  width: 44px;
  text-align: center;
}

.roster-table td:last-child {
  min-width: 92px;
  font-weight: 700;
}

.roster-card--below {
  margin: 4px 14px 12px;
}

.fade-in {
  animation: reveal 0.45s ease both;
}

body.pdf-export .output-panel > .panel-header {
  display: none;
}

body.pdf-export .app-topbar {
  display: none;
}

body.pdf-export .classic-sheet,
body.pdf-export .classic-sheet *,
body.pdf-export .seed-slot,
body.pdf-export .seed-slot__name,
body.pdf-export .seed-slot__coach,
body.pdf-export .sheet-left,
body.pdf-export .sheet-center,
body.pdf-export .sheet-category,
body.pdf-export .roster-card__title,
body.pdf-export .roster-table td {
  color: #000 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.pdf-export .bracket-line {
  stroke: #000 !important;
  stroke-width: 2.4 !important;
  opacity: 1 !important;
}

body.pdf-export .seed-slot,
body.pdf-export .roster-table td,
body.pdf-export .roster-table,
body.pdf-export .slot-dropzone,
body.pdf-export .classic-sheet {
  border-color: #000 !important;
}

body.pdf-export .fade-in,
body.pdf-export .seed-slot.dragging {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.hero-3d-stage {
  position: relative;
  perspective: 1100px;
  overflow: visible;
}

.control-deck {
  position: relative;
  z-index: 2;
  min-height: 390px;
  padding: 22px;
  border: 1px solid rgba(117, 232, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 12%, rgba(239, 29, 59, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(21, 25, 52, 0.98), rgba(5, 7, 17, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(7deg) rotateY(-9deg);
  animation: deckFloat 6s ease-in-out infinite;
}

.preview-topline strong {
  margin-left: auto;
  color: var(--mint);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.deck-screen {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(117, 232, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(rgba(63, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 231, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 14%, rgba(83, 240, 184, 0.24), transparent 32%),
    rgba(3, 7, 18, 0.94);
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.deck-screen__header,
.deck-fighters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.deck-screen__header span,
.deck-fighters small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.deck-fighters {
  margin-top: 34px;
}

.deck-fighters div {
  flex: 1;
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.deck-fighters strong,
.deck-metrics strong,
.deck-metrics span,
.hero-3d-card strong,
.hero-3d-card span {
  display: block;
}

.deck-fighters strong {
  margin-top: 8px;
  font-size: 1.25rem;
}

.deck-progress,
.live-progress {
  height: 10px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.deck-progress span,
.live-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--mint));
}

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

.deck-metrics article {
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.deck-metrics strong {
  font-size: 1.5rem;
}

.deck-metrics span,
.hero-3d-card span,
.premium-feature-grid span,
.document-package-card span,
.document-package-card small,
.prep-score span,
.prep-list article small,
.day-plan-warning span,
.live-arena__main > span,
.live-category,
.next-fight-card small,
.report-grid span {
  color: var(--muted);
}

.tournament-orb {
  position: absolute;
  right: -16px;
  top: -18px;
  z-index: 3;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071019;
  background:
    radial-gradient(circle at 35% 28%, #fff, rgba(255, 255, 255, 0.2) 28%, transparent 29%),
    conic-gradient(from 140deg, var(--accent), var(--amber), var(--cyan), var(--accent));
  box-shadow: 0 24px 58px rgba(63, 231, 255, 0.22);
}

.tournament-orb span {
  font-size: 2.2rem;
  font-weight: 900;
}

.hero-3d-card {
  position: absolute;
  z-index: 4;
  width: 180px;
  padding: 16px;
  border: 1px solid rgba(117, 232, 255, 0.22);
  border-radius: 16px;
  background: rgba(8, 11, 26, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.hero-3d-card--left {
  left: -24px;
  bottom: 42px;
}

.hero-3d-card--right {
  right: -34px;
  bottom: 116px;
}

.hero-3d-card span,
.premium-feature-grid span {
  margin-top: 8px;
  line-height: 1.5;
}

.premium-sales-section {
  border-color: rgba(239, 29, 59, 0.24);
}

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

.premium-feature-grid article,
.document-package-card,
.prep-list article,
.premium-report,
.live-arena,
.scheme-panel {
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.premium-feature-grid article {
  padding: 18px;
}

.design-settings-panel,
.document-settings-panel {
  margin-top: 18px;
}

.document-switch-grid,
.document-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-switch-grid {
  margin-top: 14px;
}

.document-package-preview {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 12px;
  margin-top: 16px;
}

.document-package-card {
  padding: 16px;
}

.document-package-card strong,
.document-package-card span,
.document-package-card small,
.prep-list article span,
.prep-list article strong,
.prep-list article small,
.live-fighters small,
.live-fighters strong,
.qr-card strong,
.qr-card span,
.next-fight-card strong,
.next-fight-card span,
.next-fight-card small,
.report-grid strong,
.report-grid span,
.scheme-layer span,
.scheme-layer small {
  display: block;
}

.document-chip-list span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #07120d;
  background: var(--mint);
  font-weight: 900;
  font-size: 0.82rem;
}

.preparation-panel {
  border-color: rgba(83, 240, 184, 0.2);
}

.prep-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0;
}

.prep-score strong {
  font-size: 2rem;
  color: var(--mint);
}

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

.prep-list article {
  padding: 12px;
}

.prep-list article span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.prep-list article.is-done {
  border-color: rgba(83, 240, 184, 0.34);
}

.prep-list article.is-done span {
  color: var(--mint);
}

.day-plan-warning {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 205, 107, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(255, 205, 107, 0.07);
}

.live-screen-content {
  display: grid;
  gap: 18px;
}

.live-arena {
  --live-accent: var(--accent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(239, 29, 59, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(7, 9, 21, 0.98), rgba(16, 20, 42, 0.96));
}

.live-arena__main h3 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 1;
}

.live-fight-number {
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.live-fighters article,
.qr-card,
.next-fight-card {
  padding: 18px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
}

.live-fighters small {
  color: var(--tournament-accent, var(--accent));
  font-weight: 900;
  text-transform: uppercase;
}

.live-fighters strong {
  margin-top: 8px;
  font-size: 1.6rem;
}

.live-arena__side {
  display: grid;
  gap: 12px;
}

.fake-qr {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  width: 138px;
  height: 138px;
  margin: 14px 0;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
}

.fake-qr i {
  display: block;
  background: #e7edf4;
}

.fake-qr i.is-active {
  background: #071019;
}

.fake-qr img {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.next-fight-card span {
  margin-top: 8px;
}

.premium-report {
  padding: 18px;
}

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

.report-grid article {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.report-grid strong {
  font-size: 1.5rem;
  color: var(--mint);
}

.bracket-style-field {
  min-width: 220px;
}

.bracket-style--premium {
  border: 1px solid rgba(117, 232, 255, 0.26);
  background:
    radial-gradient(circle at 12% 0%, rgba(63, 231, 255, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 239, 246, 0.98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.bracket-style--premium .bracket-svg {
  background: linear-gradient(180deg, #ffffff, #f2f7fb);
}

.bracket-style--premium .bracket-line {
  stroke: #0f6f88;
  stroke-width: 2.6;
}

.bracket-style--premium .seed-slot,
.bracket-style--premium .roster-table td {
  border-color: #0f6f88;
  background: #ffffff;
}

.bracket-style--premium .seed-slot__name {
  color: #082f49;
}

.bracket-style--compact .category-sheet__head {
  padding-top: 4px;
}

.bracket-style--compact .category-sheet__body {
  padding: 4px 10px 8px;
  gap: 14px;
}

.bracket-style--compact .seed-slot {
  min-height: 42px;
  padding: 3px 5px;
}

.bracket-style--compact .seed-slot__name {
  font-size: 0.84rem;
}

.bracket-style--compact .seed-slot__coach {
  font-size: 0.74rem;
}

.bracket-style--compact .roster-table {
  font-size: 0.82rem;
}

.bracket-style--compact .bracket-line {
  stroke-width: 1.6;
}

.bracket-style--arenaDark {
  color: #f8fbff;
  background:
    radial-gradient(circle at 50% 0%, rgba(239, 29, 59, 0.24), transparent 30%),
    linear-gradient(145deg, #070912, #14182b);
  border: 1px solid rgba(239, 29, 59, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.bracket-style--arenaDark h1,
.bracket-style--arenaDark h2,
.bracket-style--arenaDark h3,
.bracket-style--arenaDark div,
.bracket-style--arenaDark span,
.bracket-style--arenaDark table,
.bracket-style--arenaDark td,
.bracket-style--arenaDark input {
  color: #f8fbff;
}

.bracket-style--arenaDark .seed-slot,
.bracket-style--arenaDark .roster-table td {
  border-color: rgba(117, 232, 255, 0.28);
  background: rgba(5, 9, 20, 0.9);
}

.bracket-style--arenaDark .bracket-svg {
  background: transparent;
}

.bracket-style--arenaDark .bracket-line {
  stroke: #75e8ff;
  stroke-width: 2.4;
}

.bracket-style--arenaDark .seed-slot__name,
.bracket-style--arenaDark .seed-slot__coach,
.bracket-style--arenaDark .roster-table td {
  color: #f8fbff;
}

.bracket-style--minimal {
  background: #fff;
  border: 1px solid #e7edf4;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
}

.bracket-style--minimal .bracket-line {
  stroke: #64748b;
  stroke-width: 1.4;
}

.bracket-style--minimal .seed-slot,
.bracket-style--minimal .roster-table td {
  border-color: #cbd5e1;
}

.bracket-style--minimal .seed-slot__name {
  color: #0f172a;
}

.payment-panel {
  margin: 18px 0;
}

.payment-panel__head,
.payment-flow-actions,
.payment-summary,
.kaspi-box,
.admin-payment-filters {
  display: flex;
  gap: 12px;
}

.payment-panel__head {
  align-items: flex-start;
  justify-content: space-between;
}

.payment-flow-actions {
  flex-wrap: wrap;
  margin: 14px 0;
}

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

.payment-summary article {
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.payment-summary span,
.payment-summary small,
.kaspi-box span {
  display: block;
  color: var(--muted);
}

.payment-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 1.3rem;
}

.kaspi-box {
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.kaspi-box img,
.kaspi-box__placeholder {
  width: 118px;
  height: 118px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.kaspi-box__placeholder {
  display: grid;
  place-items: center;
  color: #08111f;
  font-weight: 900;
}

.admin-payment-settings,
.admin-payment-requests,
.admin-payment-archive {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(117, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.admin-payment-settings h4,
.admin-payment-requests h4,
.admin-payment-archive h4 {
  margin: 0 0 12px;
}

.admin-payment-filters {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.live-brand-logo,
.public-brand-logo {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  vertical-align: middle;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
}

.live-sponsor {
  margin-top: 12px;
  color: var(--live-secondary, var(--cyan));
  font-weight: 900;
}

body.pdf-export .bracket-style--premium,
body.pdf-export .bracket-style--arenaDark,
body.pdf-export .bracket-style--minimal,
body.pdf-export .bracket-style--compact {
  color: #000 !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.scheme-workbench {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
}

.scheme-panel {
  padding: 14px;
}

.scheme-panel h3 {
  margin-bottom: 12px;
}

.scheme-layer {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(117, 232, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.scheme-layer.is-active {
  border-color: var(--amber);
  background: rgba(255, 205, 107, 0.08);
}

.scheme-layer small {
  margin-top: 4px;
  color: var(--muted);
}

.inline-hall-canvas {
  overflow: auto;
  background-size: var(--scheme-grid, 32px) var(--scheme-grid, 32px), var(--scheme-grid, 32px) var(--scheme-grid, 32px), auto, auto;
}

.inline-hall-stage {
  position: relative;
  width: 900px;
  height: 680px;
  transform-origin: 0 0;
}

.hall-edit-object.is-locked {
  cursor: not-allowed;
  opacity: 0.76;
}

.hall-edit-object.is-locked::after {
  content: "LOCK";
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #071019;
  background: var(--amber);
  font: 700 0.56rem/1 "Trebuchet MS", sans-serif;
}

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

.inspector-grid label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

@keyframes deckFloat {
  0%,
  100% {
    transform: rotateX(7deg) rotateY(-9deg) translateY(0);
  }

  50% {
    transform: rotateX(5deg) rotateY(-6deg) translateY(-10px);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-view {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(93, 85, 255, 0.24), transparent 30%),
    radial-gradient(circle at 18% 48%, rgba(69, 132, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #050812 0%, #050814 58%, #080d1b 100%);
}

.landing-view::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 93, 255, 0.7), transparent);
}

.landing-shell {
  width: min(1500px, calc(100% - 64px));
  padding-top: 18px;
}

.landing-nav {
  min-height: 62px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(123, 135, 175, 0.13);
  border-radius: 0;
  background: rgba(3, 6, 15, 0.52);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 34px;
  display: inline-block;
  filter: drop-shadow(0 0 18px rgba(129, 85, 255, 0.5));
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(135deg, #38a8ff, #8b4dff);
}

.brand-mark::before {
  top: 2px;
  height: 8px;
  transform: skewX(-18deg);
}

.brand-mark::after {
  top: 14px;
  height: 18px;
  clip-path: polygon(18% 0, 100% 0, 55% 100%, 36% 100%);
}

.landing-nav__links {
  gap: 30px;
}

.landing-nav__links button {
  padding: 10px 0;
  color: #c9d0e5;
  font-weight: 700;
}

.landing-nav__links button:hover {
  color: #fff;
}

.landing-lang {
  border: 0;
  color: #dbe1f4;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.landing-nav .button {
  min-height: 42px;
  border-radius: 7px;
  padding: 11px 20px;
}

.landing-nav .button-secondary {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.landing-nav .button-primary,
.landing-actions .button-primary {
  background: linear-gradient(135deg, #3d69ff, #8b48ff 72%);
  box-shadow: 0 18px 40px rgba(111, 74, 255, 0.36);
}

.landing-hero {
  grid-template-columns: minmax(420px, 0.72fr) minmax(680px, 1fr);
  gap: 38px;
  min-height: 560px;
  padding: 64px 0 40px;
}

.landing-hero__copy {
  position: relative;
  z-index: 3;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 10px 14px;
  border: 1px solid rgba(137, 151, 190, 0.18);
  border-radius: 7px;
  color: #f3f6ff;
  background: rgba(18, 24, 44, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b4dff;
  box-shadow: 0 0 18px rgba(139, 77, 255, 0.85);
}

.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 5.85rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #fff;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
}

.landing-hero h1 em {
  display: block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #3aa2ff 0%, #7a5cff 48%, #b849ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.landing-hero .hero-text {
  max-width: 660px;
  margin-top: 28px;
  color: #bbc4dc;
  font-size: 1.18rem;
  line-height: 1.75;
}

.landing-actions {
  gap: 18px;
  margin-top: 36px;
}

.landing-actions .button {
  min-height: 54px;
  min-width: 205px;
  border-radius: 7px;
}

.landing-actions .button-secondary {
  border: 1px solid rgba(133, 146, 185, 0.18);
  background: rgba(5, 8, 18, 0.42);
}

.button-bolt,
.button-play {
  margin-left: 12px;
  color: #fff;
}

.landing-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 720px;
  margin-top: 42px;
}

.landing-proof div {
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.landing-proof i {
  grid-row: span 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9d86ff;
  background: rgba(72, 73, 159, 0.23);
  font-style: normal;
  font-size: 1.25rem;
  box-shadow: inset 0 0 28px rgba(121, 91, 255, 0.12);
}

.landing-proof strong {
  align-self: end;
  font-size: 0.96rem;
}

.landing-proof span {
  color: #7f8aa9;
}

.trophy-stage {
  position: relative;
  min-height: 530px;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.trophy-stage::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 4%;
  bottom: 24px;
  height: 122px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(109, 89, 255, 0.38), transparent 58%),
    radial-gradient(ellipse at center, rgba(45, 110, 255, 0.24), transparent 70%);
  filter: blur(6px);
}

.trophy-wrap {
  position: absolute;
  right: 108px;
  top: 8px;
  width: 410px;
  height: 512px;
  transform-style: preserve-3d;
}

.trophy-cup {
  position: absolute;
  left: 74px;
  top: 20px;
  width: 270px;
  height: 260px;
  border-radius: 34px 34px 112px 112px;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.95), transparent 7%),
    linear-gradient(115deg, rgba(66, 126, 255, 0.72), transparent 22%),
    linear-gradient(255deg, rgba(170, 69, 255, 0.7), transparent 22%),
    linear-gradient(180deg, #202548 0%, #0d1228 48%, #27215f 100%);
  border: 1px solid rgba(163, 174, 255, 0.32);
  box-shadow:
    inset 18px 0 44px rgba(91, 143, 255, 0.22),
    inset -24px 0 50px rgba(167, 72, 255, 0.2),
    0 42px 90px rgba(56, 73, 255, 0.28);
}

.trophy-cup::before {
  content: "";
  position: absolute;
  inset: -18px 16px auto;
  height: 42px;
  border: 5px solid rgba(155, 169, 255, 0.48);
  border-bottom-color: rgba(50, 60, 122, 0.8);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(160, 176, 255, 0.16), rgba(0, 0, 0, 0.3));
}

.trophy-handle {
  position: absolute;
  top: 46px;
  width: 92px;
  height: 138px;
  border: 17px solid rgba(118, 133, 223, 0.58);
  border-bottom-color: rgba(66, 76, 145, 0.5);
  border-radius: 44px;
  z-index: -1;
}

.trophy-handle--left {
  left: -58px;
  transform: rotate(-16deg);
}

.trophy-handle--right {
  right: -58px;
  transform: rotate(16deg);
}

.trophy-logo {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 1000;
  letter-spacing: -0.14em;
  background: linear-gradient(135deg, #39a7ff, #8c49ff);
  clip-path: polygon(0 0, 100% 0, 74% 100%, 35% 100%);
  filter: drop-shadow(0 0 24px rgba(107, 91, 255, 0.65));
}

.trophy-stem {
  position: absolute;
  left: 169px;
  top: 276px;
  width: 84px;
  height: 110px;
  background: linear-gradient(90deg, #111735, #383069, #111735);
  clip-path: polygon(22% 0, 78% 0, 64% 100%, 36% 100%);
}

.trophy-base {
  position: absolute;
  left: 82px;
  top: 374px;
  width: 260px;
  height: 74px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #2b275c, #0e132b);
  border: 1px solid rgba(139, 151, 255, 0.22);
  box-shadow: 0 36px 60px rgba(0, 0, 0, 0.4);
}

.trophy-ring {
  position: absolute;
  left: 10px;
  right: -30px;
  bottom: 4px;
  height: 68px;
  border: 4px solid rgba(95, 83, 255, 0.8);
  border-radius: 50%;
  box-shadow:
    0 0 42px rgba(117, 88, 255, 0.7),
    inset 0 0 40px rgba(55, 123, 255, 0.22);
  transform: perspective(560px) rotateX(70deg);
}

.trophy-live {
  position: absolute;
  left: 86px;
  right: 34px;
  bottom: 30px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(137, 151, 190, 0.2);
  border-radius: 10px;
  background: rgba(10, 15, 31, 0.86);
  backdrop-filter: blur(16px);
}

.trophy-live span {
  color: #54f08f;
  font-weight: 900;
}

.trophy-live small {
  color: #9ca7c5;
}

.trophy-live strong {
  color: #fff;
}

.bracket-cloud {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 10px;
  min-width: 182px;
}

.bracket-cloud > span {
  margin-left: 34px;
  color: #6f789b;
  font-size: 0.82rem;
}

.bracket-cloud article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 13px 14px;
  border: 1px solid rgba(132, 146, 187, 0.22);
  border-radius: 8px;
  color: #f7f9ff;
  background: rgba(14, 20, 40, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.bracket-cloud article::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(112, 130, 182, 0.35);
}

.bracket-cloud strong,
.bracket-cloud b,
.bracket-cloud small {
  display: block;
}

.bracket-cloud strong {
  font-size: 0.82rem;
}

.bracket-cloud b {
  font-size: 0.88rem;
}

.bracket-cloud small {
  grid-column: 1 / -1;
  color: #9ba5c2;
}

.bracket-cloud--left {
  left: 20px;
  top: 80px;
}

.bracket-cloud--middle {
  left: 240px;
  top: 128px;
}

.bracket-cloud--right {
  right: 0;
  top: 230px;
}

.bracket-cloud--right article::after {
  display: none;
}

.landing-section-title {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  text-align: center;
}

.landing-section-title span {
  color: #a663ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-section-title h2 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.landing-features {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 30px 32px 0;
  border-top: 1px solid rgba(124, 135, 172, 0.08);
}

.landing-features article {
  min-height: 232px;
  padding: 22px;
  border-color: rgba(123, 137, 178, 0.16);
  border-radius: 9px;
  background:
    radial-gradient(circle at 20% 0%, rgba(80, 98, 255, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(14, 20, 39, 0.88), rgba(8, 13, 28, 0.92));
  box-shadow: none;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 10px;
  color: #ac8dff;
  background: linear-gradient(135deg, rgba(61, 91, 255, 0.25), rgba(142, 74, 255, 0.23));
  box-shadow: inset 0 0 28px rgba(128, 89, 255, 0.14);
}

.landing-features strong {
  color: #fff;
  font-size: 1.05rem;
}

.landing-features span {
  margin-top: 12px;
  color: #aeb7cf;
  line-height: 1.65;
}

@page {
  size: A4 landscape;
  margin: 10mm;
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .app-topbar,
  .controls-panel,
  .editor-panel {
    display: none;
  }

  .layout,
  .workspace {
    display: block;
  }

  .page-shell {
    max-width: none;
    padding: 0;
  }

  .panel,
  .category-block {
    box-shadow: none;
    border: 0;
  }

  .category-sheet__body--double {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .brackets-container {
    display: block;
    margin: 0;
  }

  .category-block {
    width: 277mm;
    height: 190mm;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
  }

  .category-block:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .category-sheet__head {
    flex: 0 0 auto;
  }

  .category-sheet__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .svg-bracket-wrap,
  .roster-scroll {
    overflow: hidden;
  }

  .category-block--size-16 .bracket-board {
    zoom: 0.86;
  }

  .category-block--size-32 .bracket-board {
    zoom: 0.62;
  }

  .category-block--size-64 .bracket-board {
    zoom: 0.5;
  }

  .category-block--size-64 .roster-card {
    display: none;
  }
}

@media (max-width: 1180px) {
  .landing-hero,
  .menu-grid,
  .landing-section,
  .audience-section,
  .pricing-section,
  .secretary-form,
  .landing-features,
  .hero,
  .data-hero-grid,
  .layout,
  .app-topbar,
  .account-route-grid,
  .profile-grid,
  .admin-columns,
  .scheme-tatami-summary,
  .premium-feature-grid,
  .document-package-preview,
  .prep-list,
  .live-arena,
  .report-grid,
  .scheme-workbench {
    grid-template-columns: 1fr;
  }

  .profile-card--main {
    grid-column: span 1;
  }

  .admin-grid,
  .public-grid,
  .public-hero,
  .public-hero__stats,
  .podium-category,
  .unlock-tournament-box {
    grid-template-columns: 1fr;
  }

  .public-hero {
    display: grid;
  }

  .public-card--wide {
    grid-column: span 1;
  }

  .app-tabs {
    justify-content: flex-start;
  }

  .assistant-toolbar,
  .assistant-grid {
    grid-template-columns: 1fr;
  }

  .assistant-actions {
    justify-content: flex-start;
  }

  .controls-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .landing-shell,
  .menu-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 16px;
  }

  .landing-nav,
  .menu-header,
  .tournament-card {
    flex-direction: column;
    align-items: stretch;
  }

  .template-card,
  .profile-tournament {
    flex-direction: column;
  }

  .landing-hero {
    min-height: auto;
    padding: 34px 0 24px;
  }

  .landing-preview {
    min-height: 360px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .premium-feature-grid,
  .workflow-strip,
  .landing-proof,
  .faq-grid,
  .plan-summary,
  .deck-metrics,
  .live-fighters,
  .report-grid,
  .prep-list,
  .cabinet-roles,
  .menu-overview {
    grid-template-columns: 1fr;
  }

  .control-deck {
    min-height: 320px;
    transform: none;
    animation: none;
  }

  .hero-3d-card,
  .tournament-orb {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .landing-nav__links {
    justify-content: flex-start;
  }

  .audience-list article {
    grid-template-columns: 1fr;
  }

  .secretary-card {
    flex-direction: column;
    align-items: stretch;
  }

  .secretary-invite-card,
  .secretary-code-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .fight-timer {
    flex-direction: column;
    align-items: stretch;
  }

  .fight-timer__actions {
    justify-content: flex-start;
  }

  .page-shell {
    padding: 18px 12px 32px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    border-radius: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .assistant-next__item {
    grid-template-columns: 1fr;
  }

  .assistant-next__item em {
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .inline-hall-canvas {
    min-height: 560px;
    overflow: auto;
  }


  .editor-category__header,
  .category-header {
      flex-direction: column;
      align-items: stretch;
  }

  .editor-category__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .sheet-grid,
  .category-sheet__body--double {
    grid-template-columns: 1fr;
  }

  .sheet-left,
  .sheet-right,
  .sheet-center {
    text-align: center;
    padding-top: 0;
  }

  .sheet-right {
    justify-content: center;
  }

}

/* Final dashboard override: keep cabinet, tournament menu and editor close to the reference. */
body .account-home-view,
body .tournament-menu-view,
body .app-view {
  background:
    radial-gradient(circle at 8% 8%, rgba(128, 87, 255, 0.24), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(53, 210, 255, 0.16), transparent 25%),
    radial-gradient(circle at 72% 72%, rgba(89, 244, 185, 0.1), transparent 24%),
    linear-gradient(145deg, #060814 0%, #080a18 48%, #0b1124 100%);
}

body .menu-shell {
  width: min(1460px, calc(100% - 42px));
}

body .menu-header,
body .panel,
body .hero-card,
body .hero-copy,
body .account-route-card,
body .tournament-card,
body .profile-card,
body .template-card,
body .admin-box,
body .import-box,
body .role-manager,
body .diagnostics-panel,
body .unlock-tournament-box {
  border-color: rgba(128, 145, 190, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 0%, rgba(132, 90, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 42, 0.92), rgba(8, 12, 27, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 22px 62px rgba(0, 0, 0, 0.34);
}

body .menu-header {
  position: relative;
  overflow: hidden;
}

body .menu-header::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 18px;
  width: 180px;
  height: 86px;
  border: 1px solid rgba(91, 83, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(91, 83, 255, 0.24);
  transform: rotateX(68deg);
}

body .menu-header h1,
body .hero-copy h1 {
  letter-spacing: -0.055em;
  text-transform: none;
}

body .account-route-card,
body .tournament-card,
body .menu-overview article {
  position: relative;
  overflow: hidden;
}

body .account-route-card::after,
body .tournament-card::after,
body .menu-overview article::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 80px;
  height: 34px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(63, 231, 255, 0.7) 11% 18%, transparent 19% 36%, rgba(139, 88, 255, 0.72) 37% 47%, transparent 48% 70%, rgba(83, 240, 184, 0.66) 71% 78%, transparent 79%);
  opacity: 0.48;
}

body .menu-overview strong {
  color: #fff;
  text-shadow: 0 0 28px rgba(123, 93, 255, 0.38);
}

body .button,
body .text-input,
body .file-input,
body .small-input {
  border-radius: 9px;
}

body .button-primary {
  background: linear-gradient(135deg, #316cff, #8c4dff 78%);
  box-shadow: 0 16px 38px rgba(115, 78, 255, 0.32);
}

body .button-secondary {
  background: linear-gradient(180deg, rgba(31, 37, 66, 0.96), rgba(13, 18, 35, 0.96));
}

body .text-input,
body .file-input,
body .small-input {
  border-color: rgba(128, 145, 190, 0.18);
  background: rgba(6, 10, 24, 0.72);
}

body .page-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
  max-width: 1520px;
  padding: 22px;
}

body .app-topbar {
  position: sticky;
  top: 18px;
  grid-column: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 44px);
  margin: 0;
  padding: 16px;
  border-color: rgba(128, 145, 190, 0.2);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 76%, rgba(63, 231, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 43, 0.94), rgba(8, 12, 27, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

body .app-topbar__title {
  padding: 10px 10px 18px;
  border-bottom: 1px solid rgba(128, 145, 190, 0.14);
}

body .app-topbar__title::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 168, 255, 0.9), rgba(139, 77, 255, 0.95));
  clip-path: polygon(0 0, 100% 0, 72% 100%, 34% 100%);
  filter: drop-shadow(0 0 18px rgba(112, 88, 255, 0.48));
}

body .app-topbar__title strong {
  white-space: normal;
  line-height: 1.25;
}

body .save-state,
body .role-state {
  width: auto;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
  margin-top: 12px;
  border-radius: 10px;
  text-align: left;
}

body .app-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  justify-content: stretch;
  margin: 18px 0 auto;
}

body .app-tab {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border-color: transparent;
  background: transparent;
  color: #aab4cf;
  text-align: left;
}

body .app-tab::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 7px 10px 0 0;
  border-radius: 50%;
  background: rgba(128, 145, 190, 0.35);
}

body .app-tab:hover,
body .app-tab.is-active {
  border-color: rgba(128, 145, 190, 0.16);
  background: linear-gradient(90deg, rgba(116, 79, 255, 0.18), rgba(63, 231, 255, 0.05));
}

body .app-tab.is-active::before {
  background: #8b5cff;
  box-shadow: 0 0 18px rgba(139, 92, 255, 0.8);
}

body #topBackToTournamentsBtn {
  width: 100%;
  margin-top: 14px;
}

body .layout {
  grid-column: 2;
  display: block;
}

body .workspace {
  margin-top: 18px;
}

body .data-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

body .radar-step,
body .hero-stat,
body .assistant-stat,
body .plan-summary div,
body .public-hero__stats article,
body .report-grid article,
body .document-package-card,
body .prep-list article,
body .scheme-panel,
body .scheme-layer,
body .live-fighters article,
body .qr-card,
body .next-fight-card {
  border-color: rgba(128, 145, 190, 0.16);
  background: rgba(10, 16, 33, 0.72);
}

body .radar-step--active,
body .app-tab.is-active {
  box-shadow: inset 3px 0 0 rgba(139, 92, 255, 0.85);
}

body .live-arena {
  border-radius: 16px;
  background:
    radial-gradient(circle at 26% 0%, rgba(139, 88, 255, 0.28), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(63, 231, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(12, 17, 36, 0.98), rgba(6, 10, 23, 0.96));
}

body .admin-table-wrap table,
body .participants-table,
body .roster-table {
  background: rgba(7, 11, 24, 0.55);
}

body .admin-table-wrap th,
body .participants-table th {
  color: #dce5ff;
  background: rgba(126, 87, 255, 0.12);
}

body .admin-table-wrap td,
body .participants-table td {
  border-color: rgba(128, 145, 190, 0.11);
}

body .classic-sheet {
  border-radius: 0;
}

@media (max-width: 1180px) {
  body .page-shell {
    display: block;
  }

  body .app-topbar {
    position: sticky;
    min-height: 0;
    margin-bottom: 18px;
  }

  body .app-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  body .data-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body .app-topbar {
    display: none;
  }
}

/* Sales landing upgrade */
body .landing-view {
  background:
    radial-gradient(circle at 68% 12%, rgba(118, 76, 255, 0.34), transparent 28%),
    radial-gradient(circle at 28% 42%, rgba(32, 124, 255, 0.16), transparent 30%),
    radial-gradient(circle at 78% 72%, rgba(73, 236, 185, 0.1), transparent 28%),
    linear-gradient(180deg, #030611 0%, #050816 50%, #080d1d 100%);
}

body .landing-shell {
  width: min(1520px, calc(100% - 54px));
}

body .landing-nav {
  border-bottom-color: rgba(126, 139, 178, 0.16);
  background: rgba(3, 7, 18, 0.74);
}

body .landing-hero {
  grid-template-columns: minmax(470px, 0.78fr) minmax(650px, 1fr);
  min-height: 690px;
  padding-top: 72px;
}

body .landing-hero h1 {
  max-width: 850px;
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

body .landing-hero h1 em {
  margin-top: 8px;
}

body .landing-hero .hero-text {
  max-width: 720px;
  font-size: 1.22rem;
  color: #c3cce4;
}

body .hero-pill {
  border-color: rgba(152, 134, 255, 0.32);
  background: rgba(18, 24, 48, 0.84);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.sales-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sales-proofline span {
  padding: 8px 11px;
  border: 1px solid rgba(126, 139, 178, 0.18);
  border-radius: 999px;
  color: #dfe5fb;
  background: rgba(13, 18, 38, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

body .landing-proof {
  max-width: 820px;
}

body .landing-proof div {
  align-items: center;
}

body .landing-proof i {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(53, 110, 255, 0.36), rgba(139, 77, 255, 0.42));
}

body .trophy-stage {
  min-height: 610px;
}

body .trophy-wrap {
  right: 120px;
  top: 20px;
  transform: scale(1.08);
}

body .bracket-cloud article {
  border-color: rgba(135, 149, 194, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 87, 255, 0.18), transparent 38%),
    rgba(13, 19, 39, 0.88);
}

body .bracket-cloud--left {
  left: -4px;
  top: 96px;
}

body .bracket-cloud--middle {
  left: 246px;
  top: 162px;
}

body .bracket-cloud--right {
  right: -6px;
  top: 282px;
}

.sales-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 54px;
}

.sales-metrics-strip article {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(126, 139, 178, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(123, 87, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(16, 23, 45, 0.86), rgba(8, 13, 28, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.sales-metrics-strip article::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 92px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(68, 231, 255, 0.44), transparent 36%, rgba(139, 88, 255, 0.7), transparent);
  opacity: 0.42;
}

.sales-metrics-strip strong,
.sales-metrics-strip span {
  display: block;
}

.sales-metrics-strip strong {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sales-metrics-strip span {
  max-width: 220px;
  margin-top: 12px;
  color: #aeb8d2;
  line-height: 1.5;
}

.sales-story-section {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  border-color: rgba(139, 88, 255, 0.22);
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 88, 255, 0.18), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(63, 231, 255, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(12, 18, 37, 0.94), rgba(6, 10, 24, 0.92));
}

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

.sales-story-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(126, 139, 178, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(19, 25, 48, 0.86), rgba(9, 14, 29, 0.88));
}

.sales-story-grid span,
.sales-story-grid strong,
.sales-story-grid p {
  display: block;
}

.sales-story-grid span {
  color: #9d7cff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sales-story-grid strong {
  margin-top: 14px;
  color: #fff;
  font-size: 1.25rem;
}

.sales-story-grid p {
  margin: 14px 0 0;
  color: #aeb8d2;
  line-height: 1.65;
}

body .pricing-section {
  position: relative;
  overflow: hidden;
  border-color: rgba(139, 88, 255, 0.24);
  background:
    radial-gradient(circle at 78% 10%, rgba(139, 88, 255, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(14, 20, 42, 0.95), rgba(7, 11, 25, 0.94));
}

body .pricing-section::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(99, 86, 255, 0.34);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(99, 86, 255, 0.12), 0 0 80px rgba(99, 86, 255, 0.14);
}

body .pricing-card {
  position: relative;
  z-index: 1;
  border-color: rgba(139, 88, 255, 0.32);
  background:
    radial-gradient(circle at 18% 0%, rgba(63, 231, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(18, 24, 49, 0.94), rgba(9, 14, 31, 0.96));
}

body .pricing-card strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
}

@media (max-width: 1180px) {
  body .landing-hero,
  .sales-story-section,
  .sales-story-grid,
  .sales-metrics-strip {
    grid-template-columns: 1fr;
  }

  body .trophy-wrap {
    position: relative;
    right: auto;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  body .landing-shell {
    width: min(100% - 24px, 1520px);
  }

  body .landing-hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .sales-proofline,
  .sales-metrics-strip {
    margin-top: 18px;
  }
}

/* KarateHub final brand system inspired by the provided analytics dashboard reference. */
:root {
  --kh-bg: #050713;
  --kh-panel: rgba(17, 22, 43, 0.9);
  --kh-panel-soft: rgba(11, 16, 34, 0.82);
  --kh-border: rgba(135, 151, 205, 0.18);
  --kh-purple: #7d4dff;
  --kh-blue: #3b8cff;
  --kh-cyan: #39e5ff;
  --kh-green: #53f0b8;
  --kh-yellow: #ffd76a;
  --kh-pink: #ff6b9e;
}

body {
  background:
    radial-gradient(circle at 14% 12%, rgba(125, 77, 255, 0.22), transparent 25%),
    radial-gradient(circle at 86% 18%, rgba(57, 229, 255, 0.13), transparent 28%),
    linear-gradient(145deg, #050713 0%, #070b18 48%, #0a1023 100%);
}

body::before {
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 14%, rgba(125, 77, 255, 0.26) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 42%, rgba(57, 229, 255, 0.18) 0 1px, transparent 2px),
    linear-gradient(rgba(135, 151, 205, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 151, 205, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 34px 34px, 34px 34px;
}

body .landing-view,
body .account-home-view,
body .tournament-menu-view,
body .app-view {
  background:
    radial-gradient(circle at 12% 16%, rgba(125, 77, 255, 0.22), transparent 26%),
    radial-gradient(circle at 88% 24%, rgba(57, 229, 255, 0.13), transparent 28%),
    radial-gradient(circle at 72% 74%, rgba(83, 240, 184, 0.08), transparent 24%),
    linear-gradient(145deg, #050713 0%, #070a18 52%, #0a1023 100%);
}

body .landing-brand {
  text-transform: none;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

body .brand-mark::before,
body .brand-mark::after,
body .app-topbar__title::before {
  background: linear-gradient(135deg, var(--kh-cyan), var(--kh-purple));
}

body .landing-nav,
body .app-topbar,
body .menu-header,
body .panel,
body .hero-card,
body .hero-copy,
body .account-route-card,
body .tournament-card,
body .pricing-card,
body .landing-features article,
body .sales-metrics-strip article,
body .sales-story-grid article,
body .benefit-grid article,
body .premium-feature-grid article,
body .admin-box,
body .import-box,
body .role-manager,
body .diagnostics-panel {
  border-color: var(--kh-border);
  background:
    radial-gradient(circle at 14% 0%, rgba(125, 77, 255, 0.13), transparent 34%),
    linear-gradient(180deg, var(--kh-panel), var(--kh-panel-soft));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.34);
}

body .button-primary {
  background: linear-gradient(135deg, var(--kh-blue), var(--kh-purple));
  box-shadow: 0 18px 44px rgba(125, 77, 255, 0.36);
}

body .button-secondary,
body .button-ghost {
  border-color: var(--kh-border);
  background: rgba(9, 14, 31, 0.72);
}

body .hero-pill,
body .sales-proofline span,
body .tournament-card__meta span,
body .save-state,
body .role-state,
body .app-tab,
body .radar-step,
body .hero-stat,
body .scheme-layer,
body .qr-card,
body .next-fight-card,
body .live-fighters article {
  border-color: rgba(135, 151, 205, 0.18);
  background: rgba(12, 17, 36, 0.76);
}

body .landing-hero h1 em,
body .landing-section-title span,
body .sales-story-grid span,
body .account-route-card span,
body .eyebrow {
  color: transparent;
  background: linear-gradient(90deg, var(--kh-cyan), var(--kh-purple), #b85cff);
  -webkit-background-clip: text;
  background-clip: text;
}

body .trophy-cup {
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.95), transparent 7%),
    linear-gradient(115deg, rgba(57, 229, 255, 0.48), transparent 22%),
    linear-gradient(255deg, rgba(125, 77, 255, 0.82), transparent 24%),
    linear-gradient(180deg, #22294e 0%, #0b1026 48%, #2b2366 100%);
}

body .trophy-logo {
  background: linear-gradient(135deg, var(--kh-cyan), var(--kh-purple));
}

body .trophy-ring {
  border-color: rgba(125, 77, 255, 0.86);
  box-shadow: 0 0 42px rgba(125, 77, 255, 0.72), inset 0 0 40px rgba(57, 229, 255, 0.22);
}

body .feature-icon {
  background: linear-gradient(135deg, rgba(57, 229, 255, 0.22), rgba(125, 77, 255, 0.28));
}

body .app-tab:hover,
body .app-tab.is-active {
  background: linear-gradient(90deg, rgba(125, 77, 255, 0.22), rgba(57, 229, 255, 0.06));
}

body .app-tab.is-active::before {
  background: var(--kh-purple);
  box-shadow: 0 0 18px rgba(125, 77, 255, 0.86);
}

body .live-progress span,
body .deck-progress span {
  background: linear-gradient(90deg, var(--kh-purple), var(--kh-cyan), var(--kh-green));
}

body .fake-qr {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

/* Karate premium identity: recognizable karate product language, not generic SaaS. */
:root {
  --karate-black: #050507;
  --karate-graphite: #111217;
  --karate-red: #e41d2e;
  --karate-red-dark: #8d111c;
  --karate-white: #f4f4ef;
  --karate-silver: #cfd4dd;
  --karate-gold: #f5c45b;
  --karate-blueglow: #4c72ff;
}

body .landing-view {
  background:
    radial-gradient(circle at 72% 16%, rgba(228, 29, 46, 0.2), transparent 24%),
    radial-gradient(circle at 84% 28%, rgba(76, 114, 255, 0.18), transparent 30%),
    radial-gradient(circle at 18% 44%, rgba(245, 196, 91, 0.08), transparent 24%),
    linear-gradient(145deg, #030305 0%, #08090f 48%, #11121a 100%);
}

body .landing-view::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(228, 29, 46, 0.08) 48% 49%, transparent 50%),
    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: 100% 100%, 34px 34px, 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

body .landing-brand {
  color: var(--karate-white);
  font-weight: 1000;
}

body .brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 196, 91, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(228, 29, 46, 0.78) 0 36%, transparent 37%),
    conic-gradient(from 45deg, #f4f4ef, #cfd4dd, #111217, #e41d2e, #f4f4ef);
  box-shadow: 0 0 28px rgba(228, 29, 46, 0.32);
}

body .brand-mark::before {
  content: "K";
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111217;
  font: 1000 1rem/1 "Trebuchet MS", sans-serif;
  transform: none;
}

body .brand-mark::after {
  display: none;
}

body .landing-hero h1 em,
body .landing-section-title span,
body .sales-story-grid span,
body .eyebrow {
  background: linear-gradient(90deg, var(--karate-red), var(--karate-gold), var(--karate-white));
  -webkit-background-clip: text;
  background-clip: text;
}

body .hero-pill span {
  background: var(--karate-red);
  box-shadow: 0 0 18px rgba(228, 29, 46, 0.85);
}

body .button-primary {
  background: linear-gradient(135deg, var(--karate-red), #ff563f 48%, #7a1aff);
  box-shadow: 0 18px 44px rgba(228, 29, 46, 0.3);
}

body .button-secondary {
  border-color: rgba(245, 196, 91, 0.18);
}

.karate-arena-stage {
  position: relative;
  min-height: 620px;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.karate-arena-stage::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 5%;
  bottom: 24px;
  height: 132px;
  border: 4px solid rgba(228, 29, 46, 0.48);
  border-radius: 50%;
  box-shadow:
    0 0 42px rgba(228, 29, 46, 0.32),
    inset 0 0 52px rgba(76, 114, 255, 0.18);
  transform: perspective(650px) rotateX(70deg);
}

.karate-arena {
  position: absolute;
  right: 84px;
  top: 42px;
  width: 480px;
  height: 520px;
}

.arena-mat {
  position: absolute;
  left: 62px;
  top: 132px;
  width: 360px;
  height: 270px;
  padding: 28px;
  border: 6px solid #1f2028;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(228, 29, 46, 0.98), rgba(132, 14, 24, 0.96));
  box-shadow:
    0 42px 92px rgba(0, 0, 0, 0.48),
    0 0 60px rgba(228, 29, 46, 0.18);
  transform: perspective(700px) rotateX(58deg) rotateZ(-4deg);
}

.arena-mat__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(244, 244, 239, 0.92), rgba(207, 212, 221, 0.86));
  color: #121217;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.aka-zone,
.shiro-zone {
  position: absolute;
  top: 30%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 1000;
  transform: rotateZ(4deg);
}

.aka-zone {
  left: 24%;
  background: var(--karate-red);
}

.shiro-zone {
  right: 24%;
  color: #111217;
  background: var(--karate-white);
  border: 1px solid #cfd4dd;
}

.arena-medal {
  position: absolute;
  left: 164px;
  top: 0;
  z-index: 3;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, #fff4c6, transparent 12%),
    conic-gradient(from 120deg, #9d5d12, #f5c45b, #fff2a8, #c37b1f, #9d5d12);
  box-shadow: 0 26px 70px rgba(245, 196, 91, 0.28);
}

.arena-medal::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: #111217;
}

.arena-medal span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 3.4rem;
  font-weight: 1000;
}

.arena-live {
  position: absolute;
  left: 32px;
  right: 48px;
  bottom: 54px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 196, 91, 0.26);
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.arena-live span {
  grid-row: span 3;
  color: #56f08d;
  font-weight: 1000;
}

.arena-live small {
  color: #cfd4dd;
}

.arena-live strong {
  color: #fff;
  font-size: 0.92rem;
}

.arena-qr {
  position: absolute;
  right: 0;
  top: 92px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, 16px);
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(207, 212, 221, 0.28);
  border-radius: 12px;
  background: rgba(244, 244, 239, 0.94);
  color: #111217;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.arena-qr span {
  width: 16px;
  height: 16px;
  background: #111217;
}

.arena-qr small {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 900;
}

.arena-ring {
  position: absolute;
  left: 0;
  right: 18px;
  bottom: 14px;
  height: 90px;
  border: 3px solid rgba(76, 114, 255, 0.5);
  border-radius: 50%;
  filter: blur(1px);
  transform: perspective(700px) rotateX(72deg);
}

body .bracket-cloud article {
  border-color: rgba(245, 196, 91, 0.2);
  background:
    radial-gradient(circle at 0 0, rgba(228, 29, 46, 0.16), transparent 40%),
    rgba(12, 14, 24, 0.9);
}

body .bracket-cloud strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--karate-red);
  box-shadow: 0 0 12px rgba(228, 29, 46, 0.65);
}

body .bracket-cloud--right strong::before,
body .bracket-cloud--middle article:nth-of-type(2) strong::before {
  background: var(--karate-white);
  box-shadow: 0 0 12px rgba(244, 244, 239, 0.55);
}

body .sales-metrics-strip article::before,
body .landing-features article::before,
body .sales-story-grid article::before,
body .pricing-card::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 58px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--karate-red), var(--karate-gold));
}

body .landing-features article,
body .sales-story-grid article,
body .sales-metrics-strip article,
body .pricing-card {
  position: relative;
}

body .feature-icon {
  color: var(--karate-gold);
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 196, 91, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(228, 29, 46, 0.18), rgba(244, 244, 239, 0.08));
}

body .app-topbar__title::before {
  background:
    radial-gradient(circle at center, var(--karate-red) 0 35%, transparent 36%),
    conic-gradient(from 40deg, var(--karate-white), var(--karate-silver), var(--karate-black), var(--karate-red), var(--karate-white));
  clip-path: none;
  border-radius: 50%;
}

body .app-tab.is-active {
  box-shadow: inset 3px 0 0 var(--karate-red);
}

body .app-tab.is-active::before {
  background: var(--karate-red);
  box-shadow: 0 0 18px rgba(228, 29, 46, 0.82);
}

body .live-arena {
  border-color: rgba(245, 196, 91, 0.18);
  background:
    radial-gradient(circle at 24% 0%, rgba(228, 29, 46, 0.22), transparent 34%),
    radial-gradient(circle at 86% 24%, rgba(245, 196, 91, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(12, 13, 18, 0.98), rgba(6, 7, 12, 0.96));
}

@media (max-width: 1180px) {
  .karate-arena {
    position: relative;
    right: auto;
    top: auto;
    margin: 24px auto 0;
  }
}

@media (max-width: 720px) {
  .karate-arena-stage {
    min-height: 520px;
  }

  .karate-arena {
    width: 320px;
    transform: scale(0.74);
    transform-origin: top center;
    margin-bottom: -120px;
  }
}

/* KarateHub sales landing v2 */
body .landing-premium {
  --sales-bg: #03060c;
  --sales-panel: rgba(9, 13, 23, 0.82);
  --sales-panel-strong: rgba(13, 18, 31, 0.94);
  --sales-line: rgba(196, 211, 238, 0.16);
  --sales-text: #f7f8fb;
  --sales-muted: #aab5c9;
  --sales-soft: #6f7a93;
  --sales-red: #f0222d;
  --sales-red-dark: #7e0c14;
  --sales-blue: #156dff;
  --sales-violet: #7158ff;
  --sales-gold: #f2bd55;
  --sales-silver: #eef2f8;
  position: relative;
  min-height: 100vh;
  color: var(--sales-text);
  background:
    radial-gradient(circle at 74% 16%, rgba(21, 109, 255, 0.22), transparent 30%),
    radial-gradient(circle at 14% 34%, rgba(240, 34, 45, 0.18), transparent 24%),
    linear-gradient(180deg, #03060c 0%, #050812 48%, #070b14 100%);
}

body .landing-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

body .landing-premium .landing-shell {
  position: relative;
  z-index: 1;
  width: min(1540px, calc(100% - 64px));
  padding: 18px 0 44px;
}

body .sales-nav {
  min-height: 70px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.86), rgba(3, 6, 12, 0.36));
  box-shadow: none;
}

body .landing-brand {
  gap: 14px;
  color: #fff;
  font-size: 1.36rem;
}

body .landing-brand span:last-child {
  display: grid;
  line-height: 1;
}

body .landing-brand small {
  margin-top: 5px;
  color: var(--sales-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body .brand-mark {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 22px rgba(240, 34, 45, 0.46));
}

body .brand-mark::before,
body .brand-mark::after {
  left: 5px;
  right: 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--sales-silver), var(--sales-red));
}

body .brand-mark::before {
  top: 5px;
  height: 13px;
  transform: skewX(-24deg);
}

body .brand-mark::after {
  top: 22px;
  height: 18px;
  clip-path: polygon(0 0, 42% 0, 72% 100%, 28% 100%);
}

body .landing-nav__links {
  gap: 34px;
}

body .landing-nav__links button {
  color: #dce3f2;
  font-size: 0.98rem;
  font-weight: 850;
}

body .landing-nav__links button:hover {
  color: #fff;
}

body .landing-premium .button {
  border-radius: 11px;
  font-weight: 950;
}

body .landing-premium .button-primary {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  background: linear-gradient(135deg, #ff2a36, #b70f1d);
  box-shadow: 0 18px 44px rgba(240, 34, 45, 0.34);
}

body .landing-premium .button-secondary {
  border-color: rgba(238, 242, 248, 0.25);
  color: #fff;
  background: rgba(6, 9, 17, 0.62);
}

body .landing-lang {
  color: #dbe4f4;
}

body .sales-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) minmax(620px, 1.22fr);
  gap: 48px;
  align-items: center;
  min-height: 720px;
  padding: 58px 0 36px;
}

body .sales-hero__copy {
  position: relative;
  z-index: 3;
}

body .hero-pill {
  margin-bottom: 28px;
  border-color: rgba(238, 242, 248, 0.18);
  border-radius: 999px;
  color: #f6f8fc;
  background: rgba(10, 15, 28, 0.74);
}

body .hero-pill span {
  background: var(--sales-red);
  box-shadow: 0 0 20px rgba(240, 34, 45, 0.8);
}

body .sales-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.072em;
}

body .sales-hero h1 em {
  display: block;
  color: transparent;
  background: linear-gradient(92deg, #ffffff 0%, #ff2b35 30%, #ff2b35 68%, #f2bd55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

body .sales-hero .hero-text {
  max-width: 650px;
  margin-top: 26px;
  color: #c5cedd;
  font-size: 1.16rem;
  line-height: 1.72;
}

body .landing-actions {
  gap: 18px;
  margin-top: 34px;
}

body .landing-actions .button {
  min-height: 58px;
  min-width: 208px;
  padding: 15px 24px;
}

body .button-bolt,
body .button-play {
  margin-left: 10px;
}

body .sales-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
  margin-top: 32px;
}

body .sales-hero-stats article {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 2px solid rgba(240, 34, 45, 0.68);
}

body .sales-hero-stats span {
  color: #fff;
  font-size: 1.42rem;
  font-weight: 1000;
}

body .sales-hero-stats small {
  color: var(--sales-muted);
  font-weight: 700;
}

body .sales-command {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(238, 242, 248, 0.1);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, rgba(240, 34, 45, 0.22), transparent 28%),
    radial-gradient(circle at 56% 70%, rgba(21, 109, 255, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(9, 13, 24, 0.92), rgba(2, 5, 12, 0.94));
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.5);
}

body .sales-command::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(21, 109, 255, 0.2), transparent 36%);
  pointer-events: none;
}

body .sales-command__kanji {
  position: absolute;
  left: 50%;
  top: 62px;
  z-index: 1;
  transform: translateX(-50%);
  color: rgba(238, 242, 248, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.4rem;
  font-weight: 900;
  text-shadow: 0 0 48px rgba(21, 109, 255, 0.32);
}

body .sales-arena {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 100px;
  height: 300px;
}

body .sales-arena__mat {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 460px;
  height: 300px;
  display: grid;
  place-items: center;
  transform: translateX(-50%) perspective(820px) rotateX(58deg);
  border: 8px solid #10131b;
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(255, 255, 255, 0.06) 41% 42%, transparent 43%),
    linear-gradient(135deg, var(--sales-red), #9e1019);
  box-shadow: 0 46px 90px rgba(0, 0, 0, 0.58), 0 0 70px rgba(240, 34, 45, 0.18);
}

body .sales-arena__mat span {
  position: absolute;
  inset: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f6fc4, #0b4d91);
}

body .sales-arena__mat span::before,
body .sales-arena__mat span::after {
  content: "";
  position: absolute;
  top: 42%;
  width: 58px;
  height: 58px;
  background: var(--sales-red);
}

body .sales-arena__mat span::before {
  left: 33%;
}

body .sales-arena__mat span::after {
  right: 33%;
}

body .sales-arena__mat strong {
  position: relative;
  z-index: 2;
  color: #fff;
  letter-spacing: 0.12em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

body .sales-podium {
  position: absolute;
  left: 26%;
  bottom: -4px;
  z-index: 4;
  display: flex;
  align-items: end;
  gap: 5px;
}

body .sales-podium i {
  width: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 1.7rem;
  font-weight: 1000;
  background: linear-gradient(135deg, #b7712c, var(--sales-gold));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

body .sales-podium i:nth-child(1),
body .sales-podium i:nth-child(3) {
  height: 58px;
  background: linear-gradient(135deg, #7b4b35, #c7895e);
}

body .sales-podium i:nth-child(2) {
  height: 84px;
}

body .sales-bracket-card,
body .sales-live-card,
body .sales-secretary-card,
body .sales-qr-card,
body .sales-doc-stack article,
body .sales-value-strip article,
body .organizer-pro-grid article,
body .live-showcase__screen,
body .public-results-card,
body .document-sales-grid article,
body .organizer-pro-card,
body .sales-footer-proof article {
  border: 1px solid var(--sales-line);
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 34, 45, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(12, 17, 30, 0.9), rgba(5, 8, 16, 0.82));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

body .sales-bracket-card {
  position: absolute;
  left: 24px;
  top: 78px;
  z-index: 4;
  width: 190px;
  padding: 14px;
  border-radius: 15px;
}

body .sales-bracket-card span,
body .sales-live-card span,
body .sales-secretary-card span {
  display: block;
  margin-bottom: 10px;
  color: #dfe6f3;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .sales-bracket-card article {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding: 9px;
  border: 1px solid rgba(238, 242, 248, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

body .sales-bracket-card strong,
body .sales-bracket-card small {
  color: #fff;
}

body .sales-bracket-card small {
  color: var(--sales-muted);
}

body .sales-live-card {
  position: absolute;
  left: 43%;
  top: 62px;
  z-index: 5;
  width: 330px;
  padding: 20px;
  border-radius: 18px;
}

body .sales-live-card div:nth-of-type(1),
body .sales-live-card div:nth-of-type(2) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

body .sales-live-card div:nth-of-type(1) {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 8px;
  color: #fff;
}

body .sales-live-card div:nth-of-type(1) strong:first-child,
body .live-showcase__fighters article:first-child b {
  color: var(--sales-red);
}

body .sales-live-card div:nth-of-type(1) strong:last-child,
body .live-showcase__fighters article:last-child b {
  color: var(--sales-silver);
  text-align: right;
}

body .sales-live-card b {
  display: block;
  color: #fff;
  font-size: 1.12rem;
}

body .sales-live-card em {
  color: var(--sales-muted);
  font-style: normal;
  font-weight: 950;
}

body .sales-live-card time {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 2.3rem;
  font-weight: 1000;
  text-align: center;
}

body .sales-secretary-card {
  position: absolute;
  right: 186px;
  top: 56px;
  z-index: 5;
  width: 184px;
  padding: 16px;
  border-color: rgba(242, 189, 85, 0.26);
  border-radius: 16px;
}

body .sales-secretary-card strong {
  display: block;
  color: #fff;
  font-size: 2rem;
}

body .sales-secretary-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}

body .sales-secretary-card button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--sales-red);
  font-size: 0.7rem;
  font-weight: 900;
}

body .sales-secretary-card button:last-child {
  color: #11141c;
  background: var(--sales-silver);
}

body .sales-qr-card {
  position: absolute;
  right: 28px;
  top: 84px;
  z-index: 6;
  width: 160px;
  padding: 16px;
  border-radius: 17px;
}

body .sales-qr-card strong,
body .public-results-card strong {
  color: #fff;
}

body .sales-qr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 14px 0;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}

body .sales-qr-grid span {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #06101d;
}

body .sales-qr-grid span:nth-child(3n),
body .sales-qr-grid span:nth-child(5n) {
  background: transparent;
}

body .sales-qr-card small {
  color: var(--sales-muted);
}

body .sales-doc-stack {
  position: absolute;
  right: 34px;
  bottom: 50px;
  z-index: 5;
  display: grid;
  gap: 10px;
  width: 260px;
}

body .sales-doc-stack article {
  padding: 16px;
  border-radius: 14px;
  transform: rotate(-3deg);
}

body .sales-doc-stack article:last-child {
  border-color: rgba(242, 189, 85, 0.36);
  transform: rotate(2deg);
}

body .sales-doc-stack strong,
body .sales-doc-stack span {
  display: block;
}

body .sales-doc-stack span {
  margin-top: 6px;
  color: var(--sales-muted);
}

body .sales-value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: -8px 0 46px;
  border: 1px solid rgba(238, 242, 248, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 12, 22, 0.78);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

body .sales-value-strip article {
  position: relative;
  min-height: 128px;
  padding: 24px 24px 22px 84px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

body .sales-value-strip article:last-child {
  border-right: 0;
}

body .sales-value-strip article span {
  position: absolute;
  left: 26px;
  top: 30px;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(240, 34, 45, 0.72);
  border-radius: 10px;
  box-shadow: 0 0 26px rgba(240, 34, 45, 0.22);
}

body .sales-value-strip article:nth-child(2) span {
  border-color: rgba(242, 189, 85, 0.75);
}

body .sales-value-strip article:nth-child(3) span {
  border-color: rgba(238, 242, 248, 0.72);
}

body .sales-value-strip article:nth-child(4) span {
  border-color: rgba(21, 109, 255, 0.78);
}

body .sales-value-strip strong,
body .organizer-pro-grid strong,
body .document-sales-grid strong {
  display: block;
  color: #fff;
  font-size: 1.12rem;
}

body .sales-value-strip p,
body .organizer-pro-grid p,
body .live-showcase p,
body .document-sales-grid span,
body .sales-footer-proof span {
  margin: 8px 0 0;
  color: var(--sales-muted);
  line-height: 1.55;
}

body .landing-premium .landing-section,
body .landing-premium .pricing-section,
body .landing-premium .faq-section {
  width: min(1440px, 100%);
  margin: 0 auto 46px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body .section-copy {
  max-width: 780px;
}

body .section-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--sales-red), #83111a);
  font-weight: 1000;
}

body .section-copy h2,
body .pricing-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

body .section-copy p,
body .pricing-copy p {
  max-width: 780px;
  margin-top: 18px;
  color: #b7c0d0;
  font-size: 1.05rem;
  line-height: 1.7;
}

body .organizer-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 38px;
  align-items: start;
}

body .organizer-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body .organizer-pro-grid article {
  min-height: 280px;
  padding: 28px 24px;
  border-radius: 18px;
}

body .organizer-pro-grid i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(240, 34, 45, 0.48);
  border-radius: 16px;
  color: var(--sales-red);
  background: rgba(240, 34, 45, 0.08);
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 1000;
}

body .organizer-pro-grid span {
  display: inline-block;
  margin-top: 22px;
  color: #fff;
  font-weight: 950;
}

body .live-sales-section {
  display: grid;
  grid-template-columns: 0.44fr 0.56fr;
  gap: 38px;
  align-items: center;
}

body .live-showcase {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  align-items: stretch;
}

body .live-showcase__screen {
  padding: 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 20%, rgba(240, 34, 45, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(11, 15, 27, 0.96), rgba(5, 8, 16, 0.94));
}

body .live-showcase__screen > span,
body .live-showcase__screen > small {
  display: block;
  color: #fff;
  font-weight: 950;
}

body .live-showcase__screen > small {
  margin-top: 6px;
  color: var(--sales-muted);
}

body .live-showcase__fighters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

body .live-showcase__fighters article {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(238, 242, 248, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

body .live-showcase__fighters article:first-child {
  background: linear-gradient(135deg, rgba(240, 34, 45, 0.28), rgba(255, 255, 255, 0.04));
}

body .live-showcase__fighters article:last-child {
  background: linear-gradient(135deg, rgba(238, 242, 248, 0.12), rgba(255, 255, 255, 0.04));
}

body .live-showcase__fighters b,
body .live-showcase__fighters strong,
body .live-showcase__fighters em {
  display: block;
  color: #fff;
}

body .live-showcase__fighters strong {
  font-size: 1.28rem;
}

body .live-showcase__fighters em {
  color: var(--sales-muted);
  font-style: normal;
}

body .live-showcase__fighters mark {
  color: var(--sales-muted);
  background: transparent;
  font-weight: 1000;
}

body .live-showcase time {
  display: block;
  width: max-content;
  margin: -18px auto 0;
  padding: 8px 22px;
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 2.5rem;
  font-weight: 1000;
}

body .public-results-card {
  display: grid;
  align-content: center;
  padding: 18px;
  border-radius: 18px;
}

body .document-sales-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

body .document-sales-grid article {
  min-height: 170px;
  padding: 24px;
  border-radius: 18px;
}

body .sales-pricing {
  display: grid;
  grid-template-columns: 0.9fr minmax(360px, 0.55fr);
  gap: 34px;
  align-items: center;
  padding: 36px;
  border: 1px solid rgba(240, 34, 45, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 20%, rgba(240, 34, 45, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(11, 15, 28, 0.9), rgba(4, 7, 14, 0.94));
}

body .organizer-pro-card {
  position: relative;
  padding: 28px;
  border-color: rgba(240, 34, 45, 0.46);
  border-radius: 22px;
}

body .organizer-pro-card::before {
  content: "PRO";
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(240, 34, 45, 0.55);
  border-radius: 9px;
  color: var(--sales-red);
  font-weight: 1000;
}

body .organizer-pro-card .pricing-card__label {
  color: var(--sales-red);
}

body .organizer-pro-card > strong {
  display: block;
  max-width: 360px;
  color: #fff;
  font-size: 1.5rem;
}

body .organizer-pro-card p,
body .organizer-pro-card li,
body .organizer-pro-card small {
  color: var(--sales-muted);
}

body .organizer-pro-card ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

body .organizer-pro-card li::before {
  content: "+";
  margin-right: 8px;
  color: var(--sales-red);
  font-weight: 1000;
}

body .organizer-pro-card .button {
  width: 100%;
  min-height: 52px;
}

body .organizer-pro-card small {
  display: block;
  margin-top: 12px;
  text-align: center;
}

body .sales-footer-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body .sales-footer-proof article {
  padding: 22px;
  border-radius: 18px;
}

body .sales-footer-proof strong {
  display: block;
  color: #fff;
}

@media (max-width: 1280px) {
  body .sales-hero,
  body .organizer-section,
  body .live-sales-section,
  body .sales-pricing {
    grid-template-columns: 1fr;
  }

  body .sales-command {
    min-height: 560px;
  }

  body .sales-value-strip,
  body .document-sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .sales-value-strip article:nth-child(2) {
    border-right: 0;
  }

  body .organizer-pro-grid {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }
}

@media (max-width: 860px) {
  body .landing-premium .landing-shell {
    width: min(100% - 28px, 720px);
  }

  body .sales-nav {
    gap: 12px;
  }

  body .landing-nav__links {
    display: none;
  }

  body .landing-nav__actions {
    gap: 8px;
  }

  body .landing-lang {
    display: none;
  }

  body .sales-hero {
    gap: 24px;
    min-height: auto;
    padding-top: 36px;
  }

  body .sales-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  body .landing-actions,
  body .sales-hero-stats,
  body .sales-value-strip,
  body .organizer-pro-grid,
  body .live-showcase,
  body .document-sales-grid,
  body .sales-footer-proof {
    grid-template-columns: 1fr;
  }

  body .landing-actions .button {
    width: 100%;
  }

  body .sales-value-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--sales-line);
  }

  body .sales-value-strip article:last-child {
    border-bottom: 0;
  }

  body .sales-command {
    min-height: 760px;
    border-radius: 22px;
  }

  body .sales-bracket-card {
    left: 14px;
    top: 20px;
    width: calc(100% - 28px);
  }

  body .sales-live-card {
    left: 14px;
    right: 14px;
    top: 248px;
    width: auto;
  }

  body .sales-secretary-card {
    left: 14px;
    right: auto;
    top: 440px;
    width: 185px;
  }

  body .sales-qr-card {
    right: 14px;
    top: 440px;
    width: 150px;
  }

  body .sales-arena {
    left: 0;
    right: 0;
    bottom: 118px;
    transform: scale(0.68);
  }

  body .sales-doc-stack {
    left: 14px;
    right: 14px;
    bottom: 18px;
    width: auto;
    grid-template-columns: 1fr 1fr;
  }

  body .live-showcase__fighters {
    grid-template-columns: 1fr;
  }

  body .live-showcase__fighters mark {
    text-align: center;
  }

  body .sales-pricing {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  body .landing-brand small {
    display: none;
  }

  body .landing-premium .landing-nav .button {
    min-height: 38px;
    padding: 9px 12px;
  }

  body .sales-hero .hero-text {
    font-size: 1rem;
  }

  body .sales-command {
    min-height: 820px;
  }

  body .sales-secretary-card,
  body .sales-qr-card {
    position: absolute;
    width: calc(50% - 21px);
  }

  body .sales-secretary-card strong {
    font-size: 1.5rem;
  }

  body .sales-secretary-card div {
    grid-template-columns: 1fr;
  }

  body .sales-arena {
    bottom: 148px;
    transform: scale(0.56);
  }

  body .sales-doc-stack {
    grid-template-columns: 1fr;
  }
}

/* Pixel-fidelity sales page: approved reference with real clickable hotspots */
body .landing-reference {
  min-height: 100vh;
  padding: 0;
  overflow: auto;
  background: #03060c;
}

body .landing-reference::before,
body .landing-reference::after {
  display: none;
}

body .sales-reference-shell {
  position: relative;
  width: min(1536px, 100vw);
  margin: 0 auto;
  background: #03060c;
}

body .sales-reference-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

body .sales-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

body .sales-hotspot {
  position: absolute;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}

body .sales-hotspot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

body .sales-hotspot--features {
  left: 22.1%;
  top: 2.3%;
  width: 7.6%;
  height: 5.5%;
}

body .sales-hotspot--organizer {
  left: 30.5%;
  top: 2.3%;
  width: 8.8%;
  height: 5.5%;
}

body .sales-hotspot--live {
  left: 40.1%;
  top: 2.3%;
  width: 7.4%;
  height: 5.5%;
}

body .sales-hotspot--documents {
  left: 47.8%;
  top: 2.3%;
  width: 7.5%;
  height: 5.5%;
}

body .sales-hotspot--pricing {
  left: 55.1%;
  top: 2.3%;
  width: 5.4%;
  height: 5.5%;
}

body .sales-hotspot--login {
  left: 78.3%;
  top: 2.2%;
  width: 6.4%;
  height: 4.3%;
}

body .sales-hotspot--top-create {
  left: 85.4%;
  top: 2.2%;
  width: 11.8%;
  height: 4.3%;
}

body .sales-hotspot--hero-create {
  left: 3.2%;
  top: 38.2%;
  width: 12.4%;
  height: 4.7%;
}

body .sales-hotspot--hero-more {
  left: 16.8%;
  top: 38.2%;
  width: 16.4%;
  height: 4.7%;
}

body .sales-hotspot--pricing-create {
  left: 74.1%;
  top: 86.0%;
  width: 21.9%;
  height: 3.4%;
}

body .sales-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

body .sales-anchor--features {
  top: 50.5%;
}

body .sales-anchor--organizer {
  top: 63.5%;
}

body .sales-anchor--live {
  top: 63.5%;
}

body .sales-anchor--documents {
  top: 76%;
}

body .sales-anchor--pricing {
  top: 64%;
}

body .sales-anchor--faq {
  top: 92%;
}

body .sales-mobile-panel {
  display: none;
}

@media (max-width: 760px) {
  body .sales-reference-shell {
    width: 100%;
    min-height: auto;
  }

  body .sales-reference-image {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  body .sales-hotspots {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    pointer-events: auto;
  }

  body .sales-hotspot {
    position: static;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #fff;
    background: rgba(9, 13, 24, 0.86);
    font: inherit;
    font-weight: 900;
  }

  body .sales-hotspot--hero-create,
  body .sales-hotspot--top-create,
  body .sales-hotspot--pricing-create {
    background: linear-gradient(135deg, #f0222d, #a90f19);
  }

  body .sales-mobile-panel {
    display: grid;
    gap: 10px;
    margin: 0 16px 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #fff;
    background: rgba(9, 13, 24, 0.92);
  }

  body .sales-mobile-panel strong {
    font-size: 1.3rem;
    line-height: 1.12;
  }

  body .sales-mobile-panel p,
  body .sales-mobile-panel small {
    margin: 0;
    color: #aab5c9;
    line-height: 1.5;
  }
}

/* Code-native rebuild from the approved KarateHub visual blueprint */
body .landing-blueprint {
  --bp-bg: #03070e;
  --bp-panel: rgba(8, 13, 23, 0.84);
  --bp-panel-strong: rgba(10, 15, 27, 0.94);
  --bp-border: rgba(212, 224, 245, 0.18);
  --bp-muted: #a6b0c2;
  --bp-red: #f0242e;
  --bp-red-dark: #8d1019;
  --bp-blue: #0f77d5;
  --bp-gold: #f2b84b;
  --bp-white: #f2f5fa;
  padding: 0;
  overflow: auto;
  color: #fff;
  background:
    radial-gradient(circle at 70% 22%, rgba(16, 100, 220, 0.2), transparent 30%),
    linear-gradient(180deg, #03070e 0%, #050912 100%);
}

body .landing-blueprint::before,
body .landing-blueprint::after {
  display: none;
}

body .blueprint-page {
  position: relative;
  width: 1536px;
  min-height: 1024px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 63% 34%, rgba(13, 69, 132, 0.5), transparent 34%),
    radial-gradient(ellipse at 92% 31%, rgba(120, 12, 18, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(3, 7, 14, 0.08) 0 0),
    #03070e;
}

body .blueprint-page::before {
  content: "";
  position: absolute;
  left: 460px;
  right: 0;
  top: 82px;
  height: 420px;
  background:
    linear-gradient(90deg, rgba(3, 7, 14, 0.88), transparent 24%, rgba(3, 7, 14, 0.36)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(18, 41, 73, 0.45), rgba(4, 7, 13, 0.2));
  clip-path: polygon(5% 0, 100% 0, 100% 96%, 0 100%);
  opacity: 0.9;
}

body .blueprint-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 900px, rgba(3, 7, 14, 0.8));
}

body .blueprint-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 292px 1fr 290px;
  align-items: center;
  height: 80px;
  padding: 0 44px 0 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body .blueprint-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 2rem;
  font-weight: 1000;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

body .blueprint-brand > span:last-child {
  display: block;
  line-height: 0.92;
}

body .blueprint-brand > span:last-child span {
  display: inline;
  color: var(--bp-red);
}

body .blueprint-brand small {
  display: block;
  margin-top: 7px;
  color: #b7becb;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body .blueprint-brand__mark {
  position: relative;
  width: 50px;
  height: 50px;
  display: block;
}

body .blueprint-brand__mark::before,
body .blueprint-brand__mark::after,
body .blueprint-brand__mark i::before,
body .blueprint-brand__mark i::after {
  content: "";
  position: absolute;
  background: var(--bp-white);
}

body .blueprint-brand__mark::before {
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  box-shadow: 0 29px 0 var(--bp-white);
}

body .blueprint-brand__mark::after {
  right: 6px;
  top: 2px;
  width: 27px;
  height: 15px;
  transform: skewX(-28deg);
}

body .blueprint-brand__mark i::before {
  left: 18px;
  top: 19px;
  width: 15px;
  height: 31px;
  background: var(--bp-red);
  transform: skewX(-28deg);
}

body .blueprint-brand__mark i::after {
  right: 2px;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: var(--bp-red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

body .blueprint-nav__links {
  display: flex;
  justify-content: flex-start;
  gap: 42px;
  padding-left: 6px;
}

body .blueprint-nav__links button,
body .blueprint-btn {
  font: inherit;
  cursor: pointer;
}

body .blueprint-nav__links button {
  border: 0;
  color: #eef2f8;
  background: transparent;
  font-size: 1rem;
  font-weight: 850;
}

body .blueprint-nav__actions {
  display: flex;
  justify-content: end;
  gap: 16px;
}

body .blueprint-btn {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(238, 245, 255, 0.22);
  color: #fff;
  background: rgba(5, 9, 16, 0.6);
  font-weight: 950;
}

body .blueprint-btn--primary {
  border-color: rgba(255,255,255,0.1);
  background: linear-gradient(135deg, #ff2c35, #cb1823);
  box-shadow: 0 20px 42px rgba(240, 36, 46, 0.34);
}

body .blueprint-hero {
  position: relative;
  z-index: 2;
  height: 452px;
}

body .blueprint-copy {
  position: absolute;
  left: 50px;
  top: 32px;
  width: 650px;
}

body .blueprint-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  padding: 8px 14px;
  border: 1px solid rgba(238, 245, 255, 0.2);
  border-radius: 999px;
  color: #eef3fb;
  background: rgba(6, 10, 18, 0.76);
  font-size: 0.92rem;
}

body .blueprint-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bp-red);
  box-shadow: 0 0 18px rgba(240, 36, 46, 0.88);
}

body .blueprint-copy h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 3.08rem;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-transform: none;
}

body .blueprint-copy h1 em {
  display: inline;
  color: var(--bp-red);
  font-style: normal;
}

body .blueprint-subtitle {
  max-width: 430px;
  margin: 14px 0 0;
  color: #d6dce7;
  font-size: 1.08rem;
  line-height: 1.55;
}

body .blueprint-actions {
  display: flex;
  gap: 18px;
  margin-top: 25px;
}

body .blueprint-actions .blueprint-btn {
  min-height: 46px;
  min-width: 190px;
  font-size: 0.98rem;
}

body .blueprint-actions .blueprint-btn--ghost {
  min-width: 250px;
}

body .blueprint-actions span {
  margin-left: 10px;
}

body .blueprint-stats {
  display: flex;
  gap: 32px;
  margin-top: 22px;
}

body .blueprint-stats article {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 9px;
  align-items: center;
}

body .blueprint-stats i {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bp-red);
  background: rgba(240, 36, 46, 0.12);
  font-style: normal;
  font-weight: 1000;
}

body .blueprint-stats strong {
  color: #fff;
  font-size: 1.24rem;
}

body .blueprint-stats span {
  color: var(--bp-muted);
  font-size: 0.82rem;
}

body .blueprint-stage {
  position: absolute;
  left: 512px;
  top: 6px;
  width: 980px;
  height: 430px;
}

body .blueprint-stage__lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 57% 0, rgba(255,255,255,0.6), transparent 2%),
    radial-gradient(circle at 73% 0, rgba(255,255,255,0.38), transparent 2%),
    linear-gradient(180deg, rgba(18,48,86,0.22), transparent 35%);
}

body .blueprint-kanji {
  position: absolute;
  left: 242px;
  top: 18px;
  color: rgba(221, 232, 255, 0.4);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 900;
  text-shadow: 0 0 40px rgba(24, 110, 255, 0.35);
}

body .blueprint-kanji::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -2px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--bp-red);
  border-radius: 50%;
  opacity: 0.9;
}

body .blueprint-bracket-panel,
body .blueprint-fight-panel,
body .blueprint-secretary-panel,
body .blueprint-qr-panel,
body .blueprint-value-strip,
body .organizer-cards article,
body .live-preview-card,
body .live-qr-mini,
body .price-card {
  border: 1px solid var(--bp-border);
  background:
    radial-gradient(circle at 12% 0%, rgba(240,36,46,0.12), transparent 28%),
    linear-gradient(145deg, rgba(8, 13, 23, 0.88), rgba(3, 7, 14, 0.72));
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
}

body .blueprint-bracket-panel {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 4;
  width: 160px;
  padding: 14px 11px;
  border-radius: 12px;
}

body .blueprint-bracket-panel > span,
body .blueprint-fight-panel > span,
body .blueprint-secretary-panel > span {
  display: block;
  margin-bottom: 10px;
  color: #eef3fa;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body .bracket-row {
  position: relative;
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(238,245,255,0.17);
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
}

body .bracket-row::after {
  content: "";
  position: absolute;
  right: -36px;
  top: 50%;
  width: 36px;
  height: 1px;
  background: rgba(238,245,255,0.52);
}

body .bracket-row strong {
  color: #fff;
  font-size: 0.72rem;
}

body .bracket-row small {
  color: var(--bp-muted);
  font-size: 0.58rem;
}

body .blueprint-fight-panel {
  position: absolute;
  left: 325px;
  top: 4px;
  z-index: 6;
  width: 260px;
  padding: 18px;
  border-radius: 13px;
}

body .fight-head,
body .fight-names {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

body .fight-head {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 6px;
}

body .fight-head b:first-child {
  color: var(--bp-red);
}

body .fight-head b:last-child {
  color: var(--bp-white);
  text-align: right;
}

body .fight-names strong {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.15;
}

body .fight-names strong:last-child {
  text-align: right;
}

body .fight-names small {
  display: block;
  margin-top: 4px;
  color: var(--bp-muted);
  font-size: 0.62rem;
}

body .fight-names em {
  color: #c7ceda;
  font-style: normal;
  font-weight: 950;
}

body .blueprint-fight-panel > small {
  display: block;
  margin-top: 12px;
  color: #d7deea;
  text-align: center;
}

body .blueprint-fight-panel time {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 2rem;
  font-weight: 1000;
  text-align: center;
}

body .blueprint-secretary-panel {
  position: absolute;
  left: 604px;
  top: 10px;
  z-index: 6;
  width: 166px;
  padding: 13px;
  border-color: rgba(242,184,75,0.35);
  border-radius: 12px;
}

body .blueprint-secretary-panel small {
  display: block;
  color: var(--bp-muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

body .blueprint-secretary-panel b {
  display: block;
  margin: 4px 0 10px;
  color: #fff;
  font-size: 1.76rem;
}

body .blueprint-secretary-panel div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 8px 0 10px;
}

body .blueprint-secretary-panel i {
  padding: 4px 0;
  border: 1px solid rgba(238,245,255,0.18);
  border-radius: 4px;
  color: #fff;
  font-size: 0.52rem;
  font-style: normal;
  text-align: center;
}

body .blueprint-secretary-panel button {
  min-height: 25px;
  margin-right: 4px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--bp-red);
  font-size: 0.58rem;
  font-weight: 950;
}

body .blueprint-secretary-panel button:last-child {
  color: #111620;
  background: var(--bp-white);
}

body .blueprint-qr-panel {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 6;
  width: 170px;
  padding: 17px;
  border-radius: 12px;
}

body .blueprint-qr-panel strong,
body .live-qr-mini strong {
  display: block;
  color: #fff;
  text-transform: uppercase;
}

body .blueprint-qr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 14px auto 10px;
  padding: 10px;
  background: #fff;
}

body .blueprint-qr i {
  aspect-ratio: 1;
  background: #07101a;
}

body .blueprint-qr i:nth-child(3n),
body .blueprint-qr i:nth-child(5n) {
  background: transparent;
}

body .blueprint-qr-panel span {
  display: block;
  color: var(--bp-muted);
  font-size: 0.68rem;
  text-align: center;
}

body .blueprint-qr-panel small,
body .live-qr-mini small {
  display: block;
  margin-top: 8px;
  padding: 7px;
  border-radius: 5px;
  color: #fff;
  background: var(--bp-red);
  font-size: 0.67rem;
  text-align: center;
}

body .blueprint-arena {
  position: absolute;
  left: 70px;
  top: 128px;
  width: 560px;
  height: 250px;
  perspective: 850px;
}

body .blueprint-mat {
  position: absolute;
  left: 66px;
  top: 10px;
  width: 460px;
  height: 260px;
  border: 7px solid #0d111a;
  border-radius: 8px;
  background: linear-gradient(135deg, #e91f2c, #9f1019);
  box-shadow: 0 44px 82px rgba(0,0,0,0.58), 0 0 48px rgba(16,119,213,0.38);
  transform: rotateX(60deg) rotateZ(-4deg);
}

body .blueprint-mat span {
  position: absolute;
  inset: 38px;
  background: linear-gradient(135deg, #0f7fd6, #0d5797);
}

body .blueprint-mat span::before,
body .blueprint-mat span::after {
  content: "";
  position: absolute;
  top: 43%;
  width: 55px;
  height: 55px;
  background: var(--bp-red);
}

body .blueprint-mat span::before {
  left: 34%;
}

body .blueprint-mat span::after {
  right: 34%;
}

body .blueprint-ring {
  position: absolute;
  left: 50px;
  right: 15px;
  bottom: -36px;
  height: 80px;
  border: 2px solid rgba(17, 117, 234, 0.66);
  border-radius: 50%;
  filter: blur(0.4px);
  transform: rotateX(66deg);
}

body .blueprint-trophy {
  position: absolute;
  left: 28px;
  bottom: 104px;
  z-index: 5;
  width: 76px;
  height: 74px;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle at 34% 22%, #fff2bd, transparent 12%), linear-gradient(135deg, #b26b13, #ffd56f 54%, #9a5410);
  box-shadow: 0 18px 42px rgba(0,0,0,0.38), 0 0 34px rgba(242,184,75,0.2);
}

body .blueprint-trophy::before,
body .blueprint-trophy::after {
  content: "";
  position: absolute;
  top: 19px;
  width: 22px;
  height: 26px;
  border: 5px solid #c9851e;
  border-radius: 50%;
}

body .blueprint-trophy::before {
  left: -17px;
}

body .blueprint-trophy::after {
  right: -17px;
}

body .blueprint-podium {
  position: absolute;
  left: 70px;
  bottom: 52px;
  z-index: 6;
  display: flex;
  align-items: end;
  gap: 3px;
}

body .blueprint-podium span {
  width: 78px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 1000;
  background: linear-gradient(135deg, #8a623c, #d49a56);
}

body .blueprint-podium span:nth-child(1),
body .blueprint-podium span:nth-child(3) {
  height: 58px;
}

body .blueprint-podium span:nth-child(2) {
  height: 82px;
  background: linear-gradient(135deg, #a96b18, #ffd36b);
}

body .blueprint-docs {
  position: absolute;
  right: 14px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: end;
  gap: 12px;
}

body .blueprint-docs article {
  width: 150px;
  height: 92px;
  padding: 13px;
  border: 1px solid rgba(238,245,255,0.22);
  color: #111620;
  background: #f4efe8;
  box-shadow: 0 18px 38px rgba(0,0,0,0.34);
  transform: rotate(7deg);
}

body .blueprint-docs article:first-child {
  width: 170px;
  height: 112px;
  transform: rotate(-9deg);
}

body .blueprint-docs strong,
body .blueprint-docs span {
  display: block;
}

body .blueprint-docs strong {
  font-size: 0.76rem;
  text-transform: uppercase;
}

body .blueprint-docs span {
  margin-top: 7px;
  color: #6b5544;
  font-size: 0.72rem;
}

body .blueprint-value-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 1436px;
  height: 101px;
  margin: 0 auto 20px;
  border-radius: 9px;
  overflow: hidden;
}

body .blueprint-value-strip article {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  align-content: center;
  padding: 18px 22px;
  border-right: 1px solid rgba(238,245,255,0.12);
}

body .blueprint-value-strip article:last-child {
  border-right: 0;
}

body .blueprint-value-strip i {
  grid-row: span 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--bp-red);
  border: 2px solid rgba(240,36,46,0.78);
  border-radius: 10px;
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 1000;
}

body .blueprint-value-strip strong {
  color: #fff;
  font-size: 1.12rem;
}

body .blueprint-value-strip span {
  max-width: 270px;
  color: var(--bp-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

body .blueprint-bottom {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 465px 570px 366px;
  gap: 35px;
  width: 1448px;
  margin: 0 auto;
}

body .blueprint-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #eef3fb;
  font-size: 1.3rem;
}

body .blueprint-block h2 span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bp-red);
  background: rgba(240,36,46,0.12);
}

body .organizer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body .organizer-cards article {
  min-height: 220px;
  padding: 18px 14px;
  border-radius: 8px;
}

body .organizer-cards i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--bp-red);
  border: 2px solid rgba(240,36,46,0.78);
  border-radius: 11px;
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 1000;
}

body .organizer-cards strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

body .organizer-cards p {
  color: var(--bp-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

body .organizer-cards a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

body .blueprint-live-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 155px;
  gap: 14px;
}

body .blueprint-live-preview h2 {
  grid-column: 1 / -1;
}

body .live-preview-card {
  position: relative;
  min-height: 195px;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
}

body .live-preview-card > span,
body .live-preview-card > b,
body .live-preview-card > small {
  display: inline-block;
  color: #fff;
  font-size: 0.76rem;
}

body .live-preview-card > span {
  color: var(--bp-red);
  font-weight: 1000;
  text-transform: uppercase;
}

body .live-preview-card > b {
  margin-left: 154px;
  text-transform: uppercase;
}

body .live-preview-card > small {
  float: right;
}

body .live-preview-card div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(238,245,255,0.14);
  border-radius: 6px;
  overflow: hidden;
}

body .live-preview-card strong {
  display: grid;
  min-height: 84px;
  align-content: center;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(240,36,46,0.34), rgba(255,255,255,0.03));
}

body .live-preview-card strong:last-child {
  background: linear-gradient(135deg, rgba(238,245,255,0.12), rgba(255,255,255,0.03));
}

body .live-preview-card em {
  color: #c8d0dd;
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 1000;
}

body .live-preview-card time {
  position: absolute;
  left: 50%;
  top: 108px;
  transform: translateX(-50%);
  padding: 5px 19px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,0.7);
  font-size: 2rem;
  font-weight: 1000;
}

body .live-preview-card p {
  margin: 28px 0 0;
  color: var(--bp-muted);
  font-size: 0.8rem;
  text-align: center;
}

body .live-preview-card mark {
  color: var(--bp-red);
  background: transparent;
}

body .live-qr-mini {
  min-height: 195px;
  padding: 14px;
  border-radius: 8px;
}

body .live-qr-mini .blueprint-qr {
  width: 82px;
  margin: 12px auto;
}

body .blueprint-price .price-card {
  position: relative;
  min-height: 236px;
  padding: 17px;
  border-color: rgba(240,36,46,0.55);
  border-radius: 10px;
}

body .price-card > b {
  position: absolute;
  right: 17px;
  top: 17px;
  padding: 5px 8px;
  border: 1px solid rgba(240,36,46,0.7);
  border-radius: 7px;
  color: var(--bp-red);
}

body .price-card > strong {
  display: block;
  color: var(--bp-red);
  font-size: 1.36rem;
}

body .price-card p,
body .price-card li,
body .price-card small {
  color: var(--bp-muted);
  font-size: 0.78rem;
}

body .price-card ul {
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 0;
  list-style: none;
}

body .price-card li::before {
  content: "+";
  margin-right: 6px;
  color: var(--bp-red);
}

body .price-card .blueprint-btn {
  width: 100%;
  min-height: 31px;
}

body .price-card small {
  display: block;
  margin-top: 8px;
  text-align: center;
}

body .blueprint-footer-proof {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 1448px;
  margin: 28px auto 0;
  padding: 18px 28px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(10,15,27,0.82), rgba(6,10,18,0.72));
}

body .blueprint-footer-proof article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
}

body .blueprint-footer-proof i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(238,245,255,0.32);
  border-radius: 50%;
  font-style: normal;
}

body .blueprint-footer-proof article:nth-child(3) i {
  color: var(--bp-red);
  border-color: rgba(240,36,46,0.7);
}

body .blueprint-footer-proof strong {
  color: #eef3fb;
  font-size: 0.94rem;
  line-height: 1.24;
}

@media (max-width: 1535px) {
  body .blueprint-page {
    margin: 0;
  }
}

@media (max-width: 900px) {
  body .blueprint-page {
    width: 100%;
    min-height: auto;
    padding: 18px;
  }

  body .blueprint-page::before,
  body .blueprint-page::after {
    display: none;
  }

  body .blueprint-nav,
  body .blueprint-hero,
  body .blueprint-copy,
  body .blueprint-stage,
  body .blueprint-value-strip,
  body .blueprint-bottom,
  body .blueprint-footer-proof {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
  }

  body .blueprint-nav {
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto;
    padding: 0 0 18px;
  }

  body .blueprint-nav__links {
    display: none;
  }

  body .blueprint-nav__actions,
  body .blueprint-actions,
  body .blueprint-stats,
  body .blueprint-value-strip,
  body .blueprint-bottom,
  body .blueprint-footer-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  body .blueprint-copy {
    margin-top: 28px;
  }

  body .blueprint-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  body .blueprint-stage {
    min-height: 680px;
    margin-top: 28px;
  }

  body .blueprint-bracket-panel,
  body .blueprint-fight-panel,
  body .blueprint-secretary-panel,
  body .blueprint-qr-panel,
  body .blueprint-arena,
  body .blueprint-trophy,
  body .blueprint-podium,
  body .blueprint-docs {
    transform: scale(0.72);
    transform-origin: top left;
  }

  body .blueprint-fight-panel {
    left: 170px;
  }

  body .blueprint-secretary-panel {
    left: 360px;
    top: 178px;
  }

  body .blueprint-qr-panel {
    left: 0;
    right: auto;
    top: 330px;
  }

  body .blueprint-arena {
    left: 0;
    top: 380px;
  }

  body .blueprint-docs {
    left: 145px;
    right: auto;
    top: 520px;
    bottom: auto;
  }

  body .blueprint-value-strip {
    margin-top: 20px;
  }

  body .blueprint-value-strip article,
  body .blueprint-footer-proof {
    width: 100%;
  }

  body .organizer-cards,
  body .blueprint-live-preview {
    grid-template-columns: 1fr;
  }
}

#saasRouteHost {
  min-height: 100vh;
}

#saasRouteHost.is-hidden {
  display: none;
}

.saas-gate,
.saas-public-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 44px;
}

.saas-card,
.saas-auth-panel {
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 20px;
}

.saas-card h1,
.saas-card h2,
.saas-card p,
.saas-card span,
.saas-auth-panel h1,
.saas-auth-panel h2,
.saas-auth-panel p,
.saas-auth-panel span {
  color: inherit;
}

.saas-public-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.saas-public-head h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.saas-public-head p {
  margin: 8px 0 0;
  color: #475569;
}

#settingsSectionContent {
  display: grid;
  gap: 16px;
}

.module-section-content {
  display: grid;
  gap: 18px;
}

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

.module-card,
.registration-control-panel,
.registration-table-wrap,
.payment-history {
  border: 1px solid rgba(128, 145, 190, 0.17);
  border-radius: 10px;
  background: rgba(7, 12, 27, 0.64);
  padding: 16px;
}

.module-card span,
.payment-history h4 {
  display: block;
  margin-bottom: 8px;
  color: #98a7c7;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-card strong {
  color: #fff;
  font-size: 1.3rem;
}

.registration-control-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.registration-link-card {
  grid-column: 1 / -1;
}

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

.registration-table td strong,
.registration-table td small {
  display: block;
}

.payment-history ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #dfe6ff;
}

.bracket-actions {
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .module-grid,
  .registration-control-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .saas-public-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.category-rule-form {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.registration-review-list,
.admin-payment-columns {
  display: grid;
  gap: 12px;
}

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

.admin-payment-columns h5 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #334155;
}

@media (max-width: 880px) {
  .admin-payment-columns {
    grid-template-columns: 1fr;
  }
}

/* SaaS registration-first start */
body .start-view,
body .saas-start-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 29, 59, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(117, 232, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #fff8ef 0%, #f4fbff 46%, #fff 100%);
  color: #18120f;
}

body .start-shell,
body .saas-start-page {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

body .start-header,
body .saas-start-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

body .start-brand,
body .saas-start-head strong {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}



body .start-brand span,
body .saas-start-head strong span {
  color: #ef1d3b;
}

body .start-header p,
body .saas-start-head p {
  max-width: 360px;
  margin: 0;
  color: #5f5048;
  font-weight: 700;
}

body .start-grid,
body .saas-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

body .start-card,
body .saas-start-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(24, 18, 15, 0.1);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(53, 35, 25, 0.13);
  backdrop-filter: blur(18px);
}

body .start-card::before,
body .saas-start-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% 28%;
  height: 220px;
  border-radius: 999px;
  background: rgba(239, 29, 59, 0.12);
  transform: rotate(-12deg);
}

body .start-card--tournament::before,
body .saas-start-card--accent::before {
  background: rgba(117, 232, 255, 0.26);
}

body .start-card h1,
body .saas-start-card h1 {
  position: relative;
  max-width: 520px;
  margin: 8px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

body .start-card p,
body .saas-start-card p {
  position: relative;
  max-width: 520px;
  color: #5f5048;
  font-size: 1rem;
  line-height: 1.6;
}

body .start-card .button,
body .saas-start-card .button,
body .start-code-form {
  position: relative;
}

body .start-code-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 820px) {
  body .start-header,
  body .saas-start-head,
  body .start-grid,
  body .saas-start-grid {
    grid-template-columns: 1fr;
  }

  body .start-header,
  body .saas-start-head {
    display: grid;
  }

  body .start-card,
  body .saas-start-card {
    min-height: auto;
  }
}

/* KarateHub landing redesign */
body {
  background:
    linear-gradient(rgba(3, 5, 10, .88), rgba(3, 5, 10, .95)),
    url("assets/images/karate-bg.jpg") center center / cover fixed no-repeat,
    #03050a;
}

body .start-view,
body .saas-start-page {
  min-height: 100vh;
  padding: clamp(22px, 4vw, 64px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, .92), rgba(3, 5, 10, .62) 48%, rgba(3, 5, 10, .88)),
    linear-gradient(rgba(3, 5, 10, .58), rgba(3, 5, 10, .92)),
    url("assets/images/karate-bg.jpg") center center / cover no-repeat,
    #03050a;
}

body .start-shell,
body .saas-start-page {
  display: grid;
  align-content: center;
  gap: clamp(24px, 4vw, 44px);
}

body .start-header,
body .saas-start-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
}

body .start-brand,
body .saas-start-head strong {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 1000;
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: 0 12px 36px rgba(0, 0, 0, .55);
}

body .start-brand span,
body .saas-start-head strong span {
  color: #ff2638;
}

body .start-header p,
body .saas-start-head p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
}

body .start-grid,
body .saas-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
}

body .start-card,
body .saas-start-card {
  position: relative;
  min-height: clamp(360px, 42vw, 500px);
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 38, 56, .16), transparent 32%),
    linear-gradient(180deg, rgba(8, 10, 18, .76), rgba(8, 10, 18, .66));
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body .start-card:hover,
body .saas-start-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .58);
}

body .start-card--tournament,
body .saas-start-card--accent {
  background:
    radial-gradient(circle at 82% 0%, rgba(47, 107, 255, .2), transparent 34%),
    linear-gradient(180deg, rgba(8, 10, 18, .76), rgba(8, 10, 18, .66));
}

body .start-card::before,
body .saas-start-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -34% 28%;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 38, 56, .18);
  filter: blur(4px);
  transform: rotate(-12deg);
}

body .start-card--tournament::before,
body .saas-start-card--accent::before {
  background: rgba(47, 107, 255, .22);
}

body .start-card .eyebrow,
body .saas-start-card .eyebrow {
  position: relative;
  display: inline-flex;
  margin-bottom: 16px;
  color: #ff2638;
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body .start-card--tournament .eyebrow,
body .saas-start-card--accent .eyebrow {
  color: #6f9aff;
}

body .start-card h1,
body .saas-start-card h1 {
  position: relative;
  max-width: 560px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 1000;
  line-height: .88;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

body .start-card p,
body .saas-start-card p {
  position: relative;
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.65;
}

body .start-card .button,
body .saas-start-card .button {
  position: relative;
  min-height: 50px;
  border: 0;
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 18px 44px rgba(255, 38, 56, .24);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

body .start-card .button:hover,
body .saas-start-card .button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
}

body .start-card--system .button-primary,
body .saas-start-card:not(.saas-start-card--accent) .button-primary {
  background: linear-gradient(135deg, #ff2638, #b90016);
  box-shadow: 0 18px 52px rgba(255, 38, 56, .34);
}

body .start-card--tournament .button,
body .saas-start-card--accent .button {
  background: linear-gradient(135deg, #2f6bff, #1742c9);
  box-shadow: 0 18px 52px rgba(47, 107, 255, .34);
}

body .start-code-form {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

body .start-code-form .field {
  margin: 0;
}

body .start-code-form .field span {
  color: rgba(255, 255, 255, .82);
  font-weight: 900;
}

body .start-code-form .text-input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  background: rgba(255, 255, 255, .075);
}

body .start-code-form .text-input::placeholder {
  color: rgba(255, 255, 255, .42);
}

body .start-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
}

body .start-benefits article {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(8, 10, 18, .55);
  backdrop-filter: blur(14px);
}

body .start-benefits strong,
body .start-benefits span {
  display: block;
}

body .start-benefits strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 1000;
}

body .start-benefits span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
}

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  body .start-view,
  body .saas-start-page {
    padding: 22px 16px 34px;
    background-position: center top;
  }

  body .start-header,
  body .saas-start-head {
    display: grid;
    gap: 12px;
  }

  body .start-header p,
  body .saas-start-head p {
    text-align: left;
  }

  body .start-grid,
  body .saas-start-grid,
  body .start-benefits {
    grid-template-columns: 1fr;
  }

  body .start-card,
  body .saas-start-card {
    min-height: auto;
  }
}



/* Premium dark landing polish */
body {
  background:
    linear-gradient(rgba(3, 5, 10, .88), rgba(3, 5, 10, .96)),
    url("assets/images/karate-bg.jpg") center center / cover fixed no-repeat,
    #03050a;
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 35, 55, .12), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(47, 107, 255, .12), transparent 32%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  mix-blend-mode: screen;
}

body > section,
body #saasRouteHost {
  position: relative;
  z-index: 1;
}

body .start-view,
body .saas-start-page {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 46px) clamp(18px, 4vw, 64px);
  background:
    linear-gradient(90deg, rgba(3, 5, 10, .94), rgba(3, 5, 10, .70) 48%, rgba(3, 5, 10, .92)),
    linear-gradient(rgba(3, 5, 10, .74), rgba(3, 5, 10, .97)),
    url("assets/images/karate-bg.jpg") center center / cover no-repeat,
    #03050a;
}

body .start-shell,
body .saas-start-page {
  align-content: start;
  gap: clamp(18px, 3vw, 34px);
  padding-top: clamp(8px, 2.4vh, 28px);
}

body .start-header,
body .saas-start-head,
body .start-benefits {
  animation: fadeUp .65s ease both;
}

body .start-card,
body .saas-start-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 38vw, 470px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018)),
    rgba(8, 10, 18, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 50px rgba(0, 0, 0, .60),
    0 28px 95px rgba(0, 0, 0, .52),
    inset 0 0 0 1px rgba(255, 255, 255, .035);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  animation: fadeUp .65s ease both;
}

body .start-card:nth-child(2),
body .saas-start-card:nth-child(2) {
  animation-delay: .08s;
}

body .start-card:hover,
body .saas-start-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow:
    0 0 62px rgba(0, 0, 0, .62),
    0 34px 115px rgba(0, 0, 0, .62),
    inset 0 0 0 1px rgba(255, 255, 255, .055);
}

body .start-card::before,
body .saas-start-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -80px;
  top: -80px;
  inset: auto;
  border-radius: 50%;
  background: #ff2337;
  filter: blur(140px);
  opacity: .16;
  transform: none;
  z-index: -1;
}

body .start-card::after,
body .saas-start-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 26%),
    linear-gradient(315deg, rgba(255, 255, 255, .055), transparent 28%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  opacity: .55;
}

body .start-card--tournament::before,
body .saas-start-card--accent::before {
  left: auto;
  top: auto;
  right: -80px;
  bottom: -80px;
  background: #2f6bff;
  opacity: .18;
}

body .start-card--system:hover,
body .saas-start-card:not(.saas-start-card--accent):hover {
  box-shadow:
    0 0 58px rgba(255, 35, 55, .16),
    0 34px 115px rgba(0, 0, 0, .64),
    inset 0 0 0 1px rgba(255, 255, 255, .055);
}

body .start-card--tournament:hover,
body .saas-start-card--accent:hover {
  box-shadow:
    0 0 60px rgba(47, 107, 255, .18),
    0 34px 115px rgba(0, 0, 0, .64),
    inset 0 0 0 1px rgba(255, 255, 255, .055);
}

body .start-code-form .text-input,
body .saas-start-card .start-code-form .text-input {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}

body .start-code-form .text-input::placeholder {
  color: rgba(255, 255, 255, .42);
}

body .start-code-form .text-input:focus,
body .saas-start-card .start-code-form .text-input:focus {
  outline: none;
  border-color: rgba(47, 107, 255, .75);
  background: rgba(255, 255, 255, .085);
  box-shadow:
    0 0 0 4px rgba(47, 107, 255, .12),
    0 16px 36px rgba(47, 107, 255, .14),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

body .start-card .button,
body .saas-start-card .button {
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

body .start-card .button:hover,
body .saas-start-card .button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .35);
}

body .start-card--system .button-primary,
body .saas-start-card:not(.saas-start-card--accent) .button-primary {
  box-shadow:
    0 18px 42px rgba(255, 38, 56, .24),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

body .start-card--system .button-primary:hover,
body .saas-start-card:not(.saas-start-card--accent) .button-primary:hover {
  box-shadow:
    0 22px 48px rgba(255, 38, 56, .34),
    0 16px 35px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .20);
}

body .start-card--tournament .button-secondary,
body .saas-start-card--accent .button-secondary {
  box-shadow:
    0 18px 42px rgba(47, 107, 255, .26),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

body .start-card--tournament .button-secondary:hover,
body .saas-start-card--accent .button-secondary:hover {
  box-shadow:
    0 22px 48px rgba(47, 107, 255, .36),
    0 16px 35px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .20);
}

body .start-benefits article {
  background: rgba(8, 10, 18, .58);
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  body .start-view,
  body .saas-start-page {
    background-position: center top;
  }

  body .start-shell,
  body .saas-start-page {
    align-content: start;
    padding-top: 0;
  }

  body .start-grid,
  body .saas-start-grid {
    grid-template-columns: 1fr;
  }
}

body .start-card::before,
body .saas-start-card::before {
  z-index: 0;
}

body .start-card > *,
body .saas-start-card > * {
  position: relative;
  z-index: 1;
}

body .start-card::after,
body .saas-start-card::after {
  z-index: 0;
}

/* UI repair: keep premium effects scoped to the start page only. */
body::before {
  z-index: auto;
  background-image:
    linear-gradient(rgba(117, 232, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 232, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: normal;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

body > section:not(.start-view),
body #saasRouteHost {
  z-index: auto;
}

body .start-view,
body .saas-start-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100svh;
  padding: clamp(14px, 2.4vw, 34px) clamp(16px, 3.4vw, 54px) clamp(28px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(3, 5, 10, .95), rgba(3, 5, 10, .72) 48%, rgba(3, 5, 10, .93)),
    linear-gradient(rgba(3, 5, 10, .76), rgba(3, 5, 10, .97)),
    url("assets/images/karate-bg.jpg") center center / cover no-repeat,
    #03050a;
}

body .start-view::before,
body .saas-start-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 35, 55, .12), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(47, 107, 255, .12), transparent 32%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

body .start-shell,
body .saas-start-page > * {
  position: relative;
  z-index: 1;
}

body .start-shell,
body .saas-start-page {
  align-content: start;
  gap: clamp(16px, 2.5vw, 30px);
  padding-top: clamp(4px, 1.5vh, 18px);
}

body .start-grid,
body .saas-start-grid {
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 28px);
}

body .start-card,
body .saas-start-card {
  min-height: clamp(300px, 34vw, 430px);
  padding: clamp(22px, 3.2vw, 40px);
  z-index: 1;
}

body .start-card h1,
body .saas-start-card h1 {
  font-size: clamp(30px, 4vw, 52px);
  overflow-wrap: anywhere;
}

body .start-card::before,
body .saas-start-card::before,
body .start-card::after,
body .saas-start-card::after {
  pointer-events: none;
}

body .start-card::before,
body .saas-start-card::before {
  z-index: 0;
}

body .start-card::after,
body .saas-start-card::after {
  z-index: 0;
}

body .start-card > *,
body .saas-start-card > * {
  position: relative;
  z-index: 1;
}

body .start-code-form,
body .start-code-form .field,
body .start-code-form .text-input,
body .start-code-form .button {
  min-width: 0;
  max-width: 100%;
}

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

body .auth-view,
body .account-home-view,
body .tournament-menu-view,
body .app-view,
body .saas-public-page {
  isolation: auto;
}

@media (max-width: 980px) {
  body .start-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body .start-view,
  body .saas-start-page {
    padding: 16px 14px 32px;
    background-position: center top;
  }

  body .start-shell,
  body .saas-start-page {
    gap: 16px;
    padding-top: 0;
  }

  body .start-header,
  body .saas-start-head {
    gap: 10px;
  }

  body .start-grid,
  body .saas-start-grid {
    grid-template-columns: 1fr;
  }

  body .start-card,
  body .saas-start-card {
    min-height: auto;
    padding: 22px;
  }

  body .start-card h1,
  body .saas-start-card h1 {
    font-size: clamp(28px, 9vw, 42px);
  }
}

@media (max-width: 520px) {
  body .start-header p,
  body .saas-start-head p {
    max-width: none;
    text-align: left;
  }

  body .start-card,
  body .saas-start-card {
    border-radius: 22px;
    padding: 20px;
  }

  body .start-benefits {
    grid-template-columns: 1fr;
  }
}

/* Deployment fixes: auth contrast, overlays and touch-safe editor controls. */
body .saas-auth-route {
  min-height: 100vh;
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(117, 232, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(239, 29, 59, 0.14), transparent 30%),
    #070c18;
}

body .saas-auth-route .saas-public-head,
body .saas-auth-route .saas-public-head p,
body .saas-auth-route .saas-public-head h1,
body .saas-auth-route .eyebrow,
body .saas-auth-panel,
body .saas-auth-panel h1,
body .saas-auth-panel h2,
body .saas-auth-panel h3,
body .saas-auth-panel p,
body .saas-auth-panel span,
body .auth-card,
body .auth-card h1,
body .auth-card h2,
body .auth-card p,
body .auth-card span {
  color: #fff;
}

body .saas-auth-panel,
body .auth-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(7, 12, 24, 0.94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
}

body .saas-auth-panel .text-input,
body .auth-card .text-input {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(3, 7, 18, 0.74);
}

body .saas-auth-panel .text-input::placeholder,
body .auth-card .text-input::placeholder,
body .text-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

body .saas-auth-panel .helper-text,
body .auth-message {
  color: #ffdf7e;
}

body .account-route-card,
body .tournament-card,
body .menu-overview article,
body .panel,
body .admin-box,
body .public-card {
  overflow: hidden;
}

body .slot-layer,
body .slot-dropzone,
body .seed-slot {
  z-index: 5;
  pointer-events: auto;
}

/* Final auth readability pass for the deployed #/login route. */
body .saas-auth-route {
  min-height: 100svh;
  padding: clamp(20px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, .96), rgba(3, 5, 10, .82)),
    radial-gradient(circle at 18% 8%, rgba(239, 29, 59, .18), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(47, 107, 255, .20), transparent 34%),
    url("assets/images/karate-bg.jpg") center center / cover no-repeat,
    #03050a;
}

body .saas-auth-route .saas-public-head {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: rgba(8, 10, 18, .68);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body .saas-auth-route .saas-public-head h1,
body .saas-auth-panel h3 {
  color: #fff;
  text-shadow: 0 10px 32px rgba(0, 0, 0, .65);
}

body .saas-auth-route .saas-public-head p,
body .saas-auth-panel p,
body .saas-auth-panel label span {
  color: rgba(255, 255, 255, .82);
}

body .saas-auth-panel {
  border-color: rgba(255, 255, 255, .18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)),
    rgba(8, 10, 18, .84);
  box-shadow:
    0 30px 95px rgba(0, 0, 0, .58),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}

body .saas-auth-panel .text-input {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(3, 7, 18, .82);
}

body .saas-auth-panel .text-input:focus {
  border-color: rgba(47, 107, 255, .82);
  box-shadow:
    0 0 0 4px rgba(47, 107, 255, .16),
    0 18px 42px rgba(47, 107, 255, .16);
}

body .saas-auth-panel .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 720px) {
  body .saas-auth-route {
    padding: 16px;
    align-content: start;
  }

  body .saas-auth-route .saas-public-head {
    display: grid;
    gap: 12px;
  }
}

body .label-layer {
  z-index: 6;
}

body .match-number-input {
  z-index: 7;
}

/* Premium admin final cascade layer */
body {
  background: #05070d;
}

body .account-home-view .premium-admin {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0;
  width: min(1600px, calc(100vw - 28px));
  min-height: calc(100vh - 32px);
  margin: 14px auto;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 38, 56, .14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, .12), transparent 30%),
    linear-gradient(145deg, #05070d, #070c15 52%, #05070d);
  box-shadow: 0 24px 80px rgba(0,0,0,.46);
  overflow: hidden;
}

body .premium-admin__sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(8, 13, 22, .97), rgba(5, 9, 16, .99));
}

body .premium-admin__brand,
body .premium-admin__profile,
body .premium-admin__tools,
body .premium-card-head,
body .premium-card-actions,
body .premium-row-actions {
  display: flex;
  align-items: center;
}

body .premium-admin__brand {
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

body .premium-admin__brand img,
body .premium-admin__profile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 16px rgba(255, 38, 56, .45));
}

body .premium-admin__brand strong {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

body .premium-admin__brand strong span {
  color: #ff2638;
}

body .premium-admin__brand small,
body .premium-admin__profile small,
body .premium-admin small,
body .premium-admin p {
  color: #9ca3af;
}

body .premium-admin__nav {
  display: grid;
  gap: 6px;
}

body .premium-admin__nav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px 12px 12px 44px;
  color: rgba(255,255,255,.76);
  font-weight: 700;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body .premium-admin__nav button::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  border: 1.7px solid currentColor;
  border-radius: 5px;
}

body .premium-admin__nav button:hover,
body .premium-admin__nav button.is-active {
  color: #fff;
  border-color: rgba(255, 38, 56, .35);
  background: linear-gradient(90deg, rgba(255, 38, 56, .18), rgba(255, 38, 56, .05));
  box-shadow: inset 3px 0 0 #ff2638, 0 16px 34px rgba(255, 38, 56, .12);
  transform: translateX(2px);
}

body .premium-admin__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  border-radius: 999px;
  background: #ff2638;
  box-shadow: 0 0 18px rgba(255, 38, 56, .46);
}

body .premium-admin__pro,
body .premium-admin__help {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

body .premium-admin__help {
  margin-top: 8px;
}

body .premium-admin__content {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
  min-width: 0;
  padding: 24px;
}

body .premium-admin__topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: start;
}

body .premium-admin__topbar h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.08;
}

body .premium-admin__tools {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

body .premium-admin__search .text-input {
  width: 260px;
  min-height: 44px;
}

body .premium-admin .text-input {
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(5, 10, 18, .72);
}

body .premium-admin__icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

body .premium-admin__icon-button span {
  position: absolute;
  right: -4px;
  top: -6px;
}

body .premium-admin__period {
  width: 230px;
  min-height: 44px;
}

body .premium-admin__mobile-toggle {
  display: none;
}

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

body .premium-stat,
body .premium-admin-table-card,
body .premium-rail-card,
body .premium-admin__activity {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(10, 16, 28, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 46px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body .premium-stat {
  position: relative;
  min-height: 120px;
  padding: 20px 20px 18px 96px;
}

body .premium-stat:hover,
body .premium-admin-table-card:hover,
body .premium-rail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 24px 64px rgba(0,0,0,.38);
}

body .premium-stat::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 38, 56, .16);
}

body .premium-stat--blue::before { background: rgba(139, 92, 246, .18); }
body .premium-stat--yellow::before { background: rgba(245, 158, 11, .18); }
body .premium-stat--green::before { background: rgba(34, 197, 94, .18); }

body .premium-stat span,
body .premium-stat small {
  display: block;
  color: #9ca3af;
}

body .premium-stat strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}

body .premium-stat small {
  color: #22c55e;
}

body .premium-admin__actions {
  justify-content: flex-end;
  margin: 0;
}

body .premium-admin__main {
  grid-template-columns: minmax(0, 1fr);
}

body .premium-admin__users {
  display: none;
}

body .premium-admin__workspace {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body .premium-admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

body .premium-admin-table-card,
body .premium-rail-card,
body .premium-admin__activity {
  padding: 18px;
}

body .premium-card-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

body .premium-card-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
}

body .premium-card-head p {
  margin: 6px 0 0;
}

body .premium-card-actions,
body .premium-row-actions {
  gap: 8px;
}

body .premium-admin-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

body .premium-admin-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0;
  color: #9ca3af;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body .premium-admin-tabs button.is-active,
body .premium-admin-tabs button:hover {
  color: #fff;
}

body .premium-admin-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: #ff2638;
}

body .premium-admin-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  color: #fff;
  font-size: .72rem;
  border-radius: 999px;
  background: #ff2638;
}

body .premium-table-shell {
  overflow-x: auto;
}

body .premium-admin .admin-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

body .premium-admin .admin-table th,
body .premium-admin .admin-table td {
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

body .premium-admin .admin-table th {
  color: #9ca3af;
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

body .premium-admin .admin-table td,
body .premium-admin .admin-table td span {
  color: rgba(255,255,255,.9);
}

body .premium-admin .admin-table tbody tr:hover {
  background: rgba(255,255,255,.035);
}

body .premium-tournament-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

body .premium-tournament-thumb {
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff !important;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 38, 56, .32), rgba(59, 130, 246, .18));
}

body .premium-status,
body .premium-payment {
  display: inline-flex !important;
  width: max-content;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 800;
}

body .premium-status--registration_open,
body .premium-payment--approved {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, .13);
}

body .premium-status--registration_closed,
body .premium-payment--pending {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, .14);
}

body .premium-status--draft {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, .13);
}

body .premium-status--live,
body .premium-status--completed {
  color: #60a5fa !important;
  background: rgba(59, 130, 246, .14);
}

body .premium-payment--rejected {
  color: #fb7185 !important;
  background: rgba(255, 38, 56, .14);
}

body .premium-admin-rail {
  display: grid;
  gap: 14px;
}

body .premium-payment-queue {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

body .premium-payment-queue article,
body .premium-admin__activity .admin-audit-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

body .premium-payment-queue article .premium-row-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

body .premium-donut {
  width: 138px;
  height: 138px;
  margin: 10px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0 var(--open), #f59e0b var(--open) calc(var(--open) + 22%), #22c55e calc(var(--open) + 22%) calc(var(--open) + var(--paid) + 22%), #8b5cf6 0);
}

body .premium-donut div {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #07101c;
}

body .premium-donut strong {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

body .premium-legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .premium-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #9ca3af;
  font-size: .86rem;
}

body .premium-legend span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--dot);
}

body .premium-legend b {
  color: #fff;
}

body .premium-admin__activity .admin-audit-list {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  overflow-x: auto;
}

body .premium-admin .button-primary {
  color: #fff;
  border-color: rgba(255, 38, 56, .48);
  background: linear-gradient(135deg, #ff2638, #a70f20);
  box-shadow: 0 18px 42px rgba(255, 38, 56, .22);
}

body .premium-admin .button-secondary,
body .premium-admin .button-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
}

body .premium-admin .button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
}

@media (max-width: 1180px) {
  body .account-home-view .premium-admin {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  body .premium-admin__brand div,
  body .premium-admin__pro,
  body .premium-admin__help {
    display: none;
  }
  body .premium-admin__nav button {
    padding: 12px;
    justify-content: center;
    font-size: 0;
  }
  body .premium-admin__nav button::before {
    position: static;
  }
  body .premium-admin-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  body .premium-admin-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body .premium-admin__topbar,
  body .premium-admin__stats {
    grid-template-columns: 1fr 1fr;
  }
  body .premium-admin__tools {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  body .premium-admin-rail {
    grid-template-columns: 1fr;
  }
  body .premium-admin__activity .admin-audit-list {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  body .account-home-view .premium-admin {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100svh;
    margin: 0;
  }
  body .premium-admin__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform .24s ease;
    z-index: 20;
  }
  body .premium-admin.is-sidebar-open .premium-admin__sidebar {
    transform: translateX(0);
  }
  body .premium-admin__content {
    padding: 16px;
  }
  body .premium-admin__mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }
  body .premium-admin__topbar {
    grid-template-columns: auto 1fr;
  }
  body .premium-admin__tools {
    grid-column: 1 / -1;
  }
  body .premium-admin__search,
  body .premium-admin__search .text-input,
  body .premium-admin__period {
    width: 100%;
  }
  body .premium-admin__stats {
    grid-template-columns: 1fr;
  }
  body .premium-card-head,
  body .premium-card-actions,
  body .premium-admin__actions {
    align-items: stretch;
    flex-direction: column;
  }
  body .premium-admin__activity .admin-audit-list {
    grid-template-columns: 1fr;
  }
}
