:root {
  --text: #eef5f0;
  --muted: #9ca7a1;
  --silver: #cad1cb;
  --green: #57f59a;
  --line: rgba(153, 255, 193, 0.12);
  --line-strong: rgba(153, 255, 193, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 18px 34px rgba(0, 0, 0, 0.28);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 14%, rgba(87, 245, 154, 0.16), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.07), transparent 18%),
    radial-gradient(circle at 58% 88%, rgba(87, 245, 154, 0.09), transparent 20%),
    linear-gradient(180deg, #050706 0%, #090d0b 34%, #0f1412 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.015)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 110px);
  mix-blend-mode: screen;
  opacity: 0.18;
  pointer-events: none;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.58;
  z-index: 0;
}

.ambient-left {
  left: -10rem;
  top: -9rem;
  background: radial-gradient(circle, rgba(87, 245, 154, 0.2), transparent 64%);
}

.ambient-right {
  right: -9rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(192, 203, 197, 0.11), transparent 64%);
}

.ambient-bottom {
  left: 28%;
  bottom: -16rem;
  background: radial-gradient(circle, rgba(34, 187, 103, 0.12), transparent 68%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 34px));
  margin: 0 auto;
  padding: 30px 0 44px;
}

.panel-3d {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 28%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(22, 27, 25, 0.96), rgba(10, 13, 12, 0.9));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -28px 40px rgba(0, 0, 0, 0.26),
    inset 16px 16px 32px rgba(255, 255, 255, 0.015);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.panel-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(120deg, transparent 30%, rgba(87, 245, 154, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

.panel-3d-strong {
  background:
    radial-gradient(circle at top right, rgba(87, 245, 154, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 30%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(17, 22, 20, 0.98), rgba(12, 16, 14, 0.96));
}

.hero-panel,
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.hero-panel {
  padding: 30px;
}

.admin-upload-grid,
.hero-highlights,
.summary-stats,
.category-grid {
  display: grid;
  gap: 14px;
}

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

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

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

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

.hero-copy h1,
.section-head h2,
.category-head h3,
.workspace-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  margin-top: 14px;
  max-width: 11ch;
  font-size: clamp(2.9rem, 7vw, 5.1rem);
  line-height: 0.94;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.hero-text,
.empty-state p,
.raw-note,
.access-note p,
.publish-note {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9f8db;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(87, 245, 154, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(9, 12, 11, 0.78);
  border: 1px solid rgba(87, 245, 154, 0.18);
  color: var(--silver);
  width: fit-content;
  box-shadow: var(--shadow-soft);
}

.kicker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4fff8, #57f59a 55%, #159150 100%);
  box-shadow: 0 0 22px rgba(87, 245, 154, 0.45);
}

.hero-highlight,
.summary-tile,
.category-card,
.match-item,
.field input,
.public-login-card,
.upload-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(15, 19, 17, 0.96), rgba(9, 11, 10, 0.9));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -14px 22px rgba(0, 0, 0, 0.18);
}

.hero-highlight,
.summary-tile,
.category-card,
.upload-card,
.summary-panel,
.raw-panel,
.publish-panel,
.category-panel,
.workspace-panel,
.access-card,
.public-login-card {
  padding: 18px;
}

.admin-upload-card {
  height: 100%;
}

.highlight-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-highlight strong {
  display: block;
  margin-top: 9px;
}

.access-topline,
.upload-topline,
.publish-badges,
.workspace-actions,
.login-entry-actions,
.login-secondary-actions,
.upload-actions,
.publish-badges-vertical {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.publish-badges-vertical {
  flex-direction: column;
  align-items: flex-start;
}

.upload-pill,
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(87, 245, 154, 0.12);
  color: #bbffd4;
  border: 1px solid rgba(87, 245, 154, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.upload-pill-soft,
.count-badge-soft {
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  border-color: rgba(255, 255, 255, 0.08);
}

.mode-btn,
.primary-btn,
.ghost-btn {
  min-height: 50px;
  border-radius: 18px;
  border: 1px solid rgba(87, 245, 154, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -12px 22px rgba(0, 0, 0, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mode-btn:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.mode-btn.is-active,
.primary-btn {
  color: #06100a;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(180deg, #88ffc0, #38d77d 60%, #17a459);
}

.login-entry-actions,
.day-switch,
.client-filter-switch,
.admin-preview-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

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

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

.access-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(8, 11, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-panel {
  margin-top: 24px;
}

.inner-panel {
  margin-top: 20px;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.compact-head h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.section-head h2,
.workspace-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.summary-tile span,
.match-meta {
  color: var(--muted);
}

.summary-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  color: var(--green);
}

.public-login-grid {
  display: grid;
  place-items: center;
}

.public-login-card {
  width: min(560px, 100%);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--text);
  outline: none;
}

.upload-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 24px;
  border: 1px dashed rgba(87, 245, 154, 0.34);
  background:
    radial-gradient(circle at top, rgba(87, 245, 154, 0.09), transparent 32%),
    rgba(8, 11, 10, 0.82);
  text-align: center;
  cursor: pointer;
  gap: 8px;
  padding: 24px;
}

.upload-dropzone input {
  display: none;
}

.upload-icon {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 25px;
  background: linear-gradient(180deg, #85ffb8, #34c974 65%, #14854a);
  color: #03110a;
  font-weight: 900;
}

.status-text {
  margin: 16px 0 0;
  color: #c7ffe0;
  min-height: 24px;
}

.raw-preview {
  margin: 0;
  min-height: 260px;
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  border-radius: 20px;
  background: rgba(7, 10, 9, 0.94);
  border: 1px solid rgba(87, 245, 154, 0.1);
  color: #bfe9cc;
  font-family: "Courier New", monospace;
  white-space: pre-wrap;
  line-height: 1.55;
}

.category-card-wide {
  grid-column: 1 / -1;
}

.category-head,
.match-top,
.workspace-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.workspace-topbar {
  margin-bottom: 20px;
}

.match-stack {
  display: grid;
  gap: 12px;
}

.all-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 18px;
}

.single-list-wrap {
  display: block;
}

.teams-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

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

.team-inline strong {
  font-size: 1.16rem;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.team-inline-away {
  justify-content: flex-end;
  text-align: right;
}

.versus-line {
  color: #8ea49a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  justify-self: center;
}

.team-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #8bffbb, #24ba69 60%, #125f37);
  color: #03110a;
  font-weight: 900;
  box-shadow:
    0 10px 18px rgba(34, 187, 103, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.team-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(9, 16, 12, 0.92);
  border: 1px solid rgba(87, 245, 154, 0.18);
  padding: 4px;
  box-shadow:
    0 10px 18px rgba(34, 187, 103, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.league-badge {
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(129, 205, 255, 0.18), rgba(129, 205, 255, 0.08)),
    rgba(129, 205, 255, 0.1);
  color: #d3ecff;
  border: 1px solid rgba(129, 205, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
}

.match-total {
  text-align: right;
  min-width: 126px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(11, 15, 13, 0.88);
  border: 1px solid rgba(87, 245, 154, 0.1);
}

.match-total span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.match-total strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
  color: var(--green);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chip-ok {
  background: rgba(87, 245, 154, 0.12);
  color: #aaffc8;
  border: 1px solid rgba(87, 245, 154, 0.24);
}

.chip-ko {
  background: rgba(255, 255, 255, 0.05);
  color: #d5ddd8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chip-confidence {
  background: rgba(255, 255, 255, 0.03);
  color: #d4fbe1;
  border: 1px solid rgba(87, 245, 154, 0.14);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
  padding: 20px;
}

.empty-orb {
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8bffbb, #24ba69 60%, #125f37);
  box-shadow: 0 26px 40px rgba(34, 187, 103, 0.24);
}

.slim-btn {
  min-width: 180px;
}

.match-item {
  min-height: 220px;
  padding: 24px;
}

@media (max-width: 1200px) {
  .admin-upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .hero-panel,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .summary-stats,
  .hero-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .category-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .app-shell {
    width: min(100% - 18px, 100%);
    padding-top: 14px;
  }

  .hero-panel,
  .workspace-panel,
  .access-card,
  .upload-card,
  .summary-panel,
  .raw-panel,
  .publish-panel,
  .category-panel,
  .public-login-card,
  .hero-highlight,
  .summary-tile,
  .category-card {
    padding: 16px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.7rem;
  }

  .hero-highlights,
  .summary-stats,
  .category-grid,
  .login-entry-actions,
  .day-switch,
  .client-filter-switch,
  .admin-preview-switch {
    grid-template-columns: 1fr;
  }

  .workspace-topbar,
  .match-top {
    flex-direction: column;
    align-items: stretch;
  }

  .teams-row {
    grid-template-columns: 1fr;
  }

  .team-inline-away {
    justify-content: flex-start;
    text-align: left;
  }

  .workspace-actions {
    width: 100%;
  }

  .slim-btn {
    min-width: 100%;
  }

  .match-total {
    text-align: left;
  }
}
