@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --bg: #060816;
  --bg-soft: #0d1226;
  --panel: rgba(10, 17, 34, 0.88);
  --panel-strong: rgba(8, 13, 27, 0.96);
  --line: rgba(116, 70, 255, 0.18);
  --line-strong: rgba(67, 200, 255, 0.28);
  --text: #f5f7ff;
  --muted: #9aa5c3;
  --primary: #7446ff;
  --secondary: #23c5ff;
  --danger: #ff5478;
  --success: #28d89b;
  --warning: #ffbf47;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(116, 70, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(35, 197, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #050713 0%, #070b18 50%, #050713 100%);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
}

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

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

.page-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(116, 70, 255, 0.08), transparent 30%, transparent 70%, rgba(35, 197, 255, 0.08)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: -1;
}

.public-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-header {
  padding: 28px 32px 0;
}

.brand-mark,
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 0 18px rgba(35, 197, 255, 0.75);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.hero-section {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 48px 0 32px;
}

.hero-panel {
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.hero-copy h1,
.section-heading h2,
.auth-card h1,
.admin-header h2,
.spotlight-card h2,
.tournament-card h3,
.admin-card h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  text-shadow: 0 0 22px rgba(116, 70, 255, 0.3);
}

.hero-text {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--muted);
}

.eyebrow,
.small-label,
.micro-copy {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.92rem;
}

.small-label {
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.micro-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

.muted-text,
.section-copy,
.cell-subtext {
  color: var(--muted);
}

.section-block {
  padding: 40px 0;
}

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

.compact-heading {
  margin-bottom: 18px;
}

.section-copy {
  max-width: 520px;
  font-size: 1rem;
}

.hero-actions,
.action-row,
.toolbar-form,
.form-two-columns {
  display: flex;
  gap: 14px;
}

.hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 32px rgba(38, 122, 255, 0.22);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(38, 122, 255, 0.3);
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.button-discord {
  background: linear-gradient(135deg, #5865f2, #23c5ff);
  box-shadow: 0 16px 32px rgba(88, 101, 242, 0.24);
}

.button-danger {
  background: linear-gradient(135deg, #b91f4f, var(--danger));
}

.button-small {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.full-width {
  width: 100%;
}

.hero-panel,
.registration-copy,
.admin-card,
.metric-card,
.tournament-card,
.glass-form,
.spotlight-card,
.empty-state,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.spotlight-card,
.empty-state,
.auth-card {
  padding: 28px;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card h2 {
  margin-top: 8px;
}

.hero-poster-preview {
  position: relative;
  width: 100%;
  margin-top: 22px;
  padding: 14px 14px 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(116, 70, 255, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-poster-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(136, 216, 255, 0.22);
}

.hero-poster-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
}

.hero-poster-preview span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(136, 216, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  color: #dff8ff;
  background: rgba(5, 10, 18, 0.78);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spotlight-card::after,
.tournament-card::after,
.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(116, 70, 255, 0.32), transparent 70%);
  pointer-events: none;
}

.spotlight-card.compact {
  height: 100%;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat-strip div,
.metric-card,
.player-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-strip span,
.metric-card p {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-strip strong,
.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
  font-family: "Orbitron", sans-serif;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 360px));
  gap: 22px;
  align-items: start;
}

.tournament-card,
.admin-card,
.glass-form,
.metric-card {
  position: relative;
}

.admin-card,
.glass-form {
  padding: 22px;
}

.tournament-card {
  width: min(100%, 360px);
  padding: 0 0 22px;
  overflow: hidden;
}

.tournament-poster-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #090e1b;
  border-bottom: 1px solid rgba(168, 93, 255, 0.18);
  isolation: isolate;
  cursor: pointer;
  appearance: none;
}

.tournament-poster-shell::after {
  display: none;
}

.poster-backdrop {
  display: none;
}

.poster-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.poster-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.tournament-card h3 {
  margin: 0;
  padding: 14px 18px;
  font-size: 1.3rem;
  background: rgba(11, 18, 34, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tournament-card-body {
  display: grid;
  gap: 18px;
  padding: 18px 18px 0;
}

.tournament-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

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

.tournament-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.tournament-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  font-family: "Orbitron", sans-serif;
}

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(10px, 2.4vh, 28px);
  background: rgba(3, 6, 14, 0.82);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.poster-modal[hidden] {
  display: none !important;
}

.poster-modal-dialog {
  width: min(100%, 680px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(7, 11, 22, 0.96);
  border: 1px solid rgba(136, 216, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  overflow: visible;
}

.poster-modal-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(156, 90, 255, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(5, 8, 18, 0.22), rgba(5, 8, 18, 0.92));
  overflow: visible;
}

.poster-modal-stage img {
  display: block;
  width: 100%;
  max-width: min(100%, 620px);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.34));
}

.poster-modal-close {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

body.modal-open {
  overflow: auto;
}

.registration-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(12px, 3vh, 34px);
  background: rgba(3, 6, 14, 0.84);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.registration-modal[hidden] {
  display: none !important;
}

.registration-modal-dialog {
  width: min(100%, 980px);
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.8vw, 28px);
  border-radius: 24px;
  background: rgba(7, 11, 22, 0.98);
  border: 1px solid rgba(136, 216, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.registration-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.registration-modal-header h2 {
  margin: 6px 0 0;
  font-family: "Orbitron", sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

.registration-wizard-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.registration-step {
  display: none;
  gap: 16px;
}

.registration-step.is-active {
  display: grid;
}

.wizard-step-heading {
  display: grid;
  gap: 8px;
}

.registration-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.registration-modal-actions .button {
  min-width: 180px;
}

.registration-layout,
.payment-layout,
.content-grid,
.site-shell {
  display: grid;
  gap: 18px;
}

.payment-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.payment-card {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.payment-card-primary {
  border-color: rgba(35, 197, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(116, 70, 255, 0.18), rgba(35, 197, 255, 0.06)),
    var(--panel);
}

.payment-card h3 {
  margin: 10px 0 0;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

.payment-price {
  margin: 16px 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.paypal-direct-form {
  display: inline-grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  width: 100%;
}

.paypal-direct-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 18rem);
  min-width: 11.625rem;
  height: 2.625rem;
  padding: 0 2rem;
  border: 0;
  border-radius: 0.25rem;
  background-color: #ffd140;
  color: #000;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 209, 64, 0.18);
}

.paypal-direct-link {
  text-decoration: none;
}

.paypal-cards {
  max-width: min(100%, 15rem);
  height: auto;
}

.paypal-powered {
  color: var(--muted);
  font-size: 0.75rem;
}

.paypal-powered img {
  height: 0.875rem;
  margin-left: 0.2rem;
  vertical-align: middle;
}

.payment-form-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(136, 216, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

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

.payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.payment-option input {
  width: auto;
  margin: 0;
  accent-color: var(--secondary);
}

.payment-option span {
  color: var(--text);
  font-weight: 700;
}

.payment-option small {
  grid-column: 2;
  color: var(--muted);
}

.payment-action-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 20, 0.45);
}

.payment-action-panel[hidden] {
  display: none !important;
}

.payment-action-panel .paypal-direct-button,
.payment-action-panel .button {
  justify-self: start;
}

.registration-paypal-cta {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.poster-admin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(136, 216, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.poster-preview-card {
  display: grid;
  gap: 12px;
}

.admin-poster-preview {
  height: 360px;
  margin: 0;
  border-radius: 18px;
}

.registration-layout {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}

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

.player-title {
  margin: 0 0 14px;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

.glass-form {
  display: grid;
  gap: 16px;
}

.glass-form label,
.toolbar-form label {
  display: grid;
  gap: 8px;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.glass-form span,
.toolbar-form span {
  font-size: 0.95rem;
  color: var(--muted);
}

.glass-form .payment-option {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
}

.glass-form .payment-option span {
  color: var(--text);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

input[type="file"] {
  padding: 12px;
  border: 1px dashed rgba(136, 216, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(35, 197, 255, 0.16);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 52px;
  background-color: #1a2132;
  background-image:
    linear-gradient(45deg, transparent 50%, #86ddff 50%),
    linear-gradient(135deg, #86ddff 50%, transparent 50%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 42px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 60%;
  background-repeat: no-repeat;
  color-scheme: dark;
}

select option {
  background: #131b2d;
  color: #f5f7ff;
}

select::-ms-expand {
  display: none;
}

.feature-list,
.stack-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.stack-list {
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-list li::marker {
  color: var(--secondary);
}

.form-alert,
.alert {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
}

.form-alert.is-success,
.alert-success {
  background: rgba(40, 216, 155, 0.12);
  border-color: rgba(40, 216, 155, 0.3);
}

.form-alert.is-error,
.alert-error {
  background: rgba(255, 84, 120, 0.12);
  border-color: rgba(255, 84, 120, 0.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge.success {
  background: rgba(40, 216, 155, 0.16);
  color: #9ff2d3;
}

.badge.warning {
  background: rgba(255, 191, 71, 0.16);
  color: #ffd98a;
}

.badge.draft {
  background: rgba(116, 70, 255, 0.18);
  color: #c7b5ff;
}

.badge.muted {
  background: rgba(154, 165, 195, 0.14);
  color: #d3d9ea;
}

.empty-state {
  text-align: center;
  padding: 38px;
}

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

.auth-shell {
  width: min(520px, 100%);
}

.auth-card {
  display: grid;
  gap: 18px;
}

.site-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-body {
  background:
    linear-gradient(180deg, rgba(6, 8, 22, 0.95), rgba(6, 8, 22, 0.98)),
    radial-gradient(circle at top right, rgba(35, 197, 255, 0.07), transparent 24%);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
  background: rgba(6, 8, 18, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateX(3px);
}

.admin-main {
  padding: 28px;
}

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

.content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  margin-bottom: 18px;
}

.wide-card {
  min-width: 0;
}

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

.submit-browser {
  display: grid;
  gap: 14px;
}

.submit-folder,
.submit-team-folder {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.submit-folder > summary,
.submit-team-folder > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.submit-folder > summary::-webkit-details-marker,
.submit-team-folder > summary::-webkit-details-marker {
  display: none;
}

.submit-folder[open] > summary,
.submit-team-folder[open] > summary {
  background: rgba(255, 255, 255, 0.03);
}

.submit-folder-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.submit-folder-label {
  display: grid;
  gap: 4px;
}

.submit-folder-label small {
  color: var(--muted);
}

.submit-folder-stats {
  white-space: nowrap;
}

.submit-browser-table {
  min-width: 1120px;
}

.submit-code,
.submit-player-cell {
  display: grid;
  gap: 4px;
}

.submit-code small,
.submit-player-cell span {
  color: var(--muted);
}

.submit-shot {
  display: inline-grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.submit-shot img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.submit-shot span {
  color: #88d8ff;
  text-decoration: underline;
}

.admin-edit-dialog {
  width: min(100%, 720px);
}

.admin-edit-modal .poster-modal-dialog {
  gap: 18px;
}

.submit-edit-header {
  display: grid;
  gap: 6px;
}

.submit-edit-header h3 {
  margin-top: 6px;
}

.submit-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.submit-edit-actions .button {
  min-width: 180px;
}

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

thead th {
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  text-align: left;
}

.toolbar-form {
  align-items: end;
  flex-wrap: wrap;
}

.inline-form {
  margin: 0;
}

.payment-status-form {
  margin-top: 10px;
}

.payment-status-form .button {
  width: 100%;
}

.form-two-columns {
  flex-wrap: wrap;
}

.form-two-columns label {
  flex: 1 1 260px;
}

.action-row {
  flex-wrap: wrap;
}

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

.table-actions .button {
  flex: 1 1 100%;
}

.text-link {
  color: #88d8ff;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .hero-section,
  .registration-layout,
  .payment-layout,
  .content-grid,
  .site-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: none;
    justify-self: stretch;
  }

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

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

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 760px) {
  .public-header,
  .admin-main,
  .admin-sidebar {
    padding-left: 18px;
    padding-right: 18px;
  }

  main {
    width: min(100%, calc(100% - 20px));
  }

  .hero-section {
    min-height: auto;
    padding-top: 24px;
  }

  .card-grid,
  .players-grid,
  .payment-option-grid,
  .stats-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-actions,
  .toolbar-form,
  .action-row {
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .button-danger {
    width: 100%;
    text-align: center;
  }

  .admin-card,
  .glass-form,
  .spotlight-card,
  .metric-card,
  .auth-card {
    padding: 18px;
  }

  .tournament-card {
    width: 100%;
    padding: 0 0 18px;
  }

  .tournament-poster-shell {
    aspect-ratio: 9 / 16;
  }

  .tournament-stats {
    grid-template-columns: 1fr;
  }

  .admin-poster-preview {
    height: 280px;
  }

  .poster-modal {
    padding: 10px;
  }

  .poster-modal-dialog {
    width: min(100%, 520px);
    padding: 14px;
    gap: 10px;
  }

  .poster-modal-stage {
    padding: 8px;
  }

  .poster-modal-stage img {
    max-width: 100%;
  }

  .registration-modal {
    padding: 10px;
  }

  .registration-modal-header,
  .registration-modal-actions {
    flex-direction: column;
  }

  .registration-modal-actions .button,
  .payment-action-panel .paypal-direct-button,
  .payment-action-panel .button {
    width: 100%;
  }

  .submit-edit-actions .button {
    width: 100%;
    min-width: 0;
  }
}
