:root {
  --bg: #09111f;
  --panel: rgba(8, 18, 36, 0.78);
  --panel-strong: rgba(15, 27, 48, 0.92);
  --line: rgba(147, 175, 214, 0.14);
  --text: #eef4ff;
  --muted: #98a9c7;
  --accent: #2f6df6;
  --accent-strong: #0f46b8;
  --secondary: #1ea672;
  --field: rgba(12, 24, 43, 0.88);
  --good: #1ec97f;
  --warn: #f0a63b;
  --danger: #e54646;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

body[data-theme="light"] {
  --bg: #eef3fb;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(26, 58, 108, 0.12);
  --text: #0f1b2d;
  --muted: #60738f;
  --accent: #215eea;
  --accent-strong: #143f9d;
  --secondary: #16825b;
  --field: rgba(241, 245, 251, 0.96);
  --good: #149765;
  --warn: #dd8c1f;
  --danger: #c73b3b;
  --shadow: 0 24px 56px rgba(40, 61, 97, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: auto;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.26), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(229, 70, 70, 0.18), transparent 22%),
    radial-gradient(circle at 18% 85%, rgba(30, 166, 114, 0.18), transparent 24%),
    linear-gradient(150deg, #060b14 0%, #09111f 48%, #0d1830 100%);
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.14), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(229, 70, 70, 0.1), transparent 22%),
    radial-gradient(circle at 18% 85%, rgba(30, 166, 114, 0.12), transparent 24%),
    linear-gradient(150deg, #f5f8fd 0%, #edf2fb 48%, #e7eef8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
}

body[data-theme="light"]::before {
  background-image: linear-gradient(rgba(18, 42, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 42, 75, 0.04) 1px, transparent 1px);
}

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

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

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.77rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.hero-text,
.muted,
.status-text,
.card-list p,
.empty-state,
.panel-description {
  color: var(--muted);
}

.auth-shell,
.app-shell {
  width: min(1560px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.auth-hero,
.auth-panel,
.page-header,
.panel,
.sidebar,
.topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-hero,
.auth-panel,
.page-header,
.panel,
.sidebar,
.topbar {
  border-radius: 28px;
}

.auth-hero,
.auth-panel,
.page-header,
.panel {
  padding: 28px;
}

.auth-hero,
.auth-panel {
  position: relative;
  overflow: hidden;
}

.auth-hero::after,
.auth-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 109, 246, 0.24) 0%, transparent 68%);
  pointer-events: none;
}

.auth-hero h1,
.page-header h1,
.panel h2,
.section-title,
.brand strong,
.table-card h3,
.card-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.auth-hero h1,
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
  margin-bottom: 14px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-stage {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(147, 175, 214, 0.14);
  animation: floatIn 680ms ease;
}

.logo-stage strong,
.logo-stage span {
  display: block;
}

.brand-seal {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.26));
}

.sidebar-seal {
  width: 48px;
  height: 48px;
}

.dashboard-seal {
  width: 76px;
  height: 76px;
}

.logo-stage strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.logo-stage span {
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-mark {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.brand-mark-core,
.brand-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.brand-mark-core {
  inset: 11px;
  background: linear-gradient(135deg, #0c1730 0%, #2f6df6 52%, #1ea672 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.brand-mark-ring {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-mark-ring-blue {
  transform: rotate(10deg);
}

.brand-mark-ring-green {
  inset: 6px;
  border-color: rgba(30, 166, 114, 0.48);
  transform: rotate(26deg);
}

.brand-mark-ring-red {
  inset: -4px;
  border-color: rgba(229, 70, 70, 0.34);
  transform: rotate(-16deg);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: center;
}

.dashboard-hero-copy p {
  margin-top: 10px;
}

.dashboard-seal-card,
.focus-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(147, 175, 214, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-seal-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.dashboard-seal-card span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-seal-card strong,
.focus-card h2 {
  font-family: "Space Grotesk", sans-serif;
}

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

.focus-card h2 {
  margin: 0 0 10px;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
}

.focus-card-accent {
  background: linear-gradient(145deg, rgba(15, 30, 50, 0.92) 0%, rgba(14, 49, 122, 0.34) 100%);
}

.dashboard-bottom-grid {
  align-items: stretch;
}

.compact-trend {
  min-height: 120px;
}

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

.task-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(147, 175, 214, 0.08);
}

.task-item:last-child {
  border-bottom: 0;
}

.task-item span {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

.task-item p {
  margin: 0;
  color: var(--muted);
}

.identity-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.identity-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.identity-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.identity-badge {
  width: 92px;
  height: 92px;
  margin: 12px 0;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(47, 109, 246, 0.26) 0%, rgba(30, 166, 114, 0.2) 100%);
  border: 1px solid rgba(147, 175, 214, 0.16);
  color: #f6f9ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.hero-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dce7ff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-stat-grid,
.stats-grid,
.card-grid,
.dual-grid,
.triple-grid,
.fixture-grid,
.list-grid {
  display: grid;
  gap: 16px;
}

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

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

.hero-stat,
.stat-card,
.metric-card,
.list-card,
.table-card,
.alert-card,
.summary-card {
  background: var(--panel-strong);
  border: 1px solid rgba(147, 175, 214, 0.12);
  border-radius: 22px;
}

.hero-stat,
.stat-card,
.summary-card {
  padding: 18px;
}

.hero-stat span,
.stat-card span,
.mini-label,
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stat strong,
.stat-card strong,
.summary-card strong,
.metric-score {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.tabs {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 18px;
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
}

.interface-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.auth-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
  animation: fadeUp 720ms ease;
}

.auth-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(147, 175, 214, 0.14);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.hero-stat-dark {
  background: linear-gradient(135deg, rgba(5, 11, 24, 0.98) 0%, rgba(17, 31, 56, 0.92) 100%);
}

.hero-stat-blue {
  background: linear-gradient(135deg, rgba(14, 49, 122, 0.96) 0%, rgba(47, 109, 246, 0.78) 100%);
}

.hero-stat-red {
  background: linear-gradient(135deg, rgba(90, 17, 17, 0.96) 0%, rgba(229, 70, 70, 0.74) 100%);
}

.hero-brief,
.auth-panel-top {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(147, 175, 214, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-brief {
  margin-top: 18px;
  animation: fadeUp 820ms ease;
}

.hero-brief strong,
.auth-panel-top h2 {
  font-family: "Space Grotesk", sans-serif;
}

.hero-brief p,
.auth-panel-top p {
  margin: 10px 0 0;
  color: var(--muted);
}

.auth-panel-top {
  margin-bottom: 18px;
  animation: fadeUp 700ms ease;
}

.auth-info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.auth-info-card {
  padding: 14px 16px;
  border-radius: 16px;
  color: #f7fbff;
  font-weight: 600;
}

.auth-info-blue {
  background: rgba(47, 109, 246, 0.18);
}

.auth-info-green {
  background: rgba(30, 166, 114, 0.18);
}

.auth-info-red {
  background: rgba(229, 70, 70, 0.18);
}

.coach-showcase {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(147, 175, 214, 0.12);
  background: rgba(255, 255, 255, 0.04);
  animation: fadeUp 920ms ease;
}

.coach-showcase-head {
  margin-bottom: 14px;
}

.coach-showcase-head strong {
  font-family: "Space Grotesk", sans-serif;
}

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

.coach-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 15, 30, 0.72);
  border: 1px solid rgba(147, 175, 214, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.coach-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 109, 246, 0.34);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.coach-card-accent {
  background: linear-gradient(145deg, rgba(15, 30, 50, 0.92) 0%, rgba(14, 49, 122, 0.54) 100%);
}

.coach-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
}

.coach-card span {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d9e5ff;
}

.coach-card p {
  margin: 0;
  color: var(--muted);
}

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

.landing-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(147, 175, 214, 0.16);
}

.landing-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.landing-card p {
  margin: 0;
  color: var(--muted);
}

.landing-card-accent {
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.16) 0%, rgba(30, 166, 114, 0.12) 100%);
}

.tab-button,
.ghost-button,
.primary-button,
.secondary-button,
.nav-link {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tab-button {
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.stacked-form,
.analysis-form {
  display: grid;
  gap: 14px;
}

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

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

.form-field {
  padding: 14px;
  border-radius: 18px;
  background: rgba(239, 230, 215, 0.12);
  border: 1px solid rgba(147, 175, 214, 0.08);
}

.form-field-wide {
  grid-column: 1 / -1;
}

.section-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 175, 214, 0.12);
}

.section-card h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
}

.match-panel {
  display: grid;
  gap: 16px;
}

.match-section-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 175, 214, 0.12);
}

.match-section-card h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
}

.match-field {
  padding: 14px;
  border-radius: 18px;
  background: rgba(239, 230, 215, 0.14);
  border: 1px solid rgba(147, 175, 214, 0.08);
}

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

.stacked-form label,
.analysis-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.match-form-wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--field);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(216, 104, 40, 0.4);
  box-shadow: 0 0 0 4px rgba(216, 104, 40, 0.12);
}

input[type="range"] {
  appearance: none;
  height: 12px;
  padding: 0;
  background: linear-gradient(90deg, var(--accent) 0%, #efc589 100%);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-strong);
  cursor: pointer;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #e88f44 100%);
  color: #fffdf8;
  box-shadow: 0 16px 28px rgba(216, 104, 40, 0.22);
}

.secondary-button {
  background: rgba(31, 109, 87, 0.12);
  color: var(--secondary);
}

.ghost-button {
  background: rgba(27, 41, 34, 0.06);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.nav-link:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.stacked-form {
  animation: fadeUp 820ms ease;
}

.info-strip,
.status-strip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(30, 166, 114, 0.12);
  color: var(--secondary);
  display: grid;
  gap: 4px;
}

.status-text {
  min-height: 24px;
  margin: 14px 0 0;
}

.demo-strip {
  margin-bottom: 18px;
  background: rgba(47, 109, 246, 0.14);
  color: #cddcff;
}

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

.sidebar {
  padding: 18px 22px;
  position: sticky;
  top: 20px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.brand strong {
  font-size: 1.35rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  min-width: 0;
}

.nav-link {
  padding: 11px 14px;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.nav-link.active {
  background: rgba(47, 109, 246, 0.14);
  color: #d8e4ff;
}

.sidebar-footer {
  padding-top: 0;
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.sidebar-user,
.list-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(147, 175, 214, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f6df6 0%, #1ea672 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.list-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.topbar {
  margin-bottom: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.theme-toggle {
  min-width: 132px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.06em;
}

.page-header {
  margin-bottom: 18px;
}

.page-header p {
  max-width: 680px;
}

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

.page-header,
.panel,
.table-card,
.list-card,
.focus-card,
.section-card,
.match-section-card,
.calendar-panel {
  max-width: 100%;
}

#pageRoot {
  width: 100%;
}

.panel-header,
.list-card-header,
.table-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dual-grid {
  grid-template-columns: 1fr 1fr;
}

.premium-layout {
  align-items: start;
}

.premium-panel {
  display: grid;
  gap: 16px;
}

.goalkeeper-form-launch {
  display: flex;
  justify-content: center;
  width: 100%;
}

.goalkeeper-form-launch .primary-button {
  min-width: min(320px, 100%);
}

.training-editor-launch {
  margin-bottom: 8px;
}

.training-editor-panel {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 28px;
}

.training-editor-groups {
  display: grid;
  gap: 16px;
}

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

.training-sheet-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(67, 75, 92, 0.92);
  border: 1px solid rgba(146, 167, 199, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.training-sheet-card input,
.training-sheet-card select,
.training-sheet-card textarea {
  width: 100%;
  min-height: 58px;
  border-radius: 22px;
  border: 1px solid rgba(88, 107, 141, 0.22);
  background: rgba(12, 26, 48, 0.92);
  color: var(--text);
  padding: 16px 18px;
  font-size: 1rem;
}

.training-sheet-card textarea {
  min-height: 110px;
  resize: vertical;
}

.training-sheet-label {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.training-sheet-span {
  grid-column: 1 / -1;
}

.training-editor-group {
  display: grid;
  gap: 12px;
}

.training-editor-label {
  font-weight: 700;
  color: var(--text);
}

.training-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.training-choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 122, 168, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}

.training-choice-pill:has(input:checked) {
  background: rgba(30, 214, 137, 0.16);
  border-color: rgba(30, 214, 137, 0.44);
}

.training-choice-pill input {
  margin: 0;
}

@media (max-width: 900px) {
  .training-sheet-grid {
    grid-template-columns: 1fr;
  }
}

.match-layout {
  grid-template-columns: 1.1fr 1fr;
}

.match-table-card {
  display: grid;
  gap: 16px;
}

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

.match-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 175, 214, 0.12);
}

.match-summary-card span,
.match-summary-card p,
.match-summary-card small {
  display: block;
}

.match-summary-card p,
.match-summary-card small {
  margin-top: 8px;
  color: var(--muted);
}

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

.table-card,
.list-card,
.alert-card {
  padding: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(35, 53, 42, 0.08);
  vertical-align: top;
}

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

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

.list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.list-row strong {
  display: block;
  margin-bottom: 4px;
}

.list-row > div:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.stacked-inline-actions {
  display: grid;
  gap: 8px;
}

.compact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.12);
}

.tag.good {
  color: var(--good);
  background: rgba(46, 123, 85, 0.12);
}

.tag.warn {
  color: var(--warn);
  background: rgba(199, 108, 31, 0.12);
}

.tag.danger {
  color: var(--danger);
  background: rgba(166, 59, 45, 0.12);
}

.summary-card p,
.list-card p,
.alert-card p {
  margin: 10px 0 0;
}

.range-value {
  font-size: 0.9rem;
  color: var(--muted);
}

.analysis-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.analysis-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.analysis-field {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 175, 214, 0.12);
}

.analysis-field-wide {
  grid-column: 1 / -1;
}

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

.metric-card {
  padding: 18px;
}

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

.metric-score {
  margin-top: 8px;
}

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

.insight-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(35, 53, 42, 0.1);
}

.insight-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
}

.insight-card ul {
  margin: 0;
  padding-left: 18px;
}

.alarm-banner {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(199, 108, 31, 0.12);
  color: var(--accent-strong);
  display: none;
}

.alarm-banner.show {
  display: block;
}

.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.goalkeeper-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(35, 53, 42, 0.1);
}

.goalkeeper-card h3 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
}

.goalkeeper-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.goalkeeper-media {
  display: flex;
  gap: 14px;
  align-items: center;
}

.goalkeeper-photo,
.goalkeeper-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-photo {
  width: 108px;
  height: 108px;
  border-radius: 24px;
}

.goalkeeper-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.goalkeeper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.compact-actions {
  gap: 8px;
}

.tick-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.tick-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.action-row {
  margin-top: 4px;
}

.assignment-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.coach-private-panel {
  border: 1px solid rgba(47, 109, 246, 0.16);
}

.assignment-column {
  display: grid;
  gap: 10px;
}

.assignment-title {
  font-weight: 700;
  color: var(--text);
}

.assignment-list {
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 175, 214, 0.1);
}

.assignment-button {
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-block {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.trend-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(239, 230, 215, 0.62);
}

.trend-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.trend-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 140px;
}

.trend-group {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 54px;
}

.trend-group small {
  text-align: center;
  color: var(--muted);
}

.trend-stack {
  display: flex;
  align-items: end;
  gap: 6px;
  min-height: 96px;
}

.trend-bar {
  width: 16px;
  border-radius: 999px 999px 6px 6px;
}

.trend-bar.save {
  background: linear-gradient(180deg, #49a373 0%, #2e7b55 100%);
}

.trend-bar.goal {
  background: linear-gradient(180deg, #d26d60 0%, #a63b2d 100%);
}

.training-board {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 14px;
}

.training-column {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(35, 53, 42, 0.1);
  min-height: 260px;
}

.training-column-active {
  border-color: rgba(47, 109, 246, 0.3);
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.18);
}

.training-column h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
}

.training-column-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.training-session {
  padding: 12px;
  border-radius: 16px;
  background: rgba(239, 230, 215, 0.62);
  margin-bottom: 10px;
}

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

.training-program-lines {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.training-program-lines span {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.45;
}

.training-session small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.training-plan-shell {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.training-plan-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.training-plan-table th,
.training-plan-table td {
  border: 1px solid rgba(18, 34, 61, 0.18);
  vertical-align: top;
}

.training-plan-table th {
  background: rgba(20, 32, 54, 0.92);
  color: #f8fbff;
  padding: 12px 10px;
  text-align: center;
  min-width: 170px;
}

.training-plan-table th small {
  display: block;
  margin-top: 6px;
  color: rgba(248, 251, 255, 0.72);
}

.training-plan-date-head,
.training-plan-date-cell {
  min-width: 140px;
}

.training-plan-topic-head,
.training-plan-topic-cell {
  min-width: 120px;
}

.training-plan-date-cell,
.training-plan-topic-cell {
  padding: 14px 12px;
  background: rgba(111, 194, 228, 0.28);
  font-weight: 700;
}

.training-plan-day-active {
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, 0.28);
}

.training-plan-cell-wrap {
  min-width: 170px;
  padding: 0;
  background: rgba(245, 248, 251, 0.72);
}

.training-plan-cell,
.training-plan-empty {
  width: 100%;
  min-height: 132px;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.training-plan-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.training-plan-empty.is-clickable,
.training-cell-main.is-clickable {
  cursor: pointer;
}

.training-plan-cell strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.training-cell-main {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.training-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.training-cell-program {
  background: #f3b21f;
}

.training-cell-rest {
  background: #f5eb12;
}

.training-cell-match {
  background: #ff4747;
}

.attendance-season-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.attendance-season-shell {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 12px;
  min-width: max-content;
}

.attendance-week-card {
  border: 1px solid rgba(18, 34, 61, 0.18);
  background: rgba(62, 121, 33, 0.86);
  border-radius: 16px;
  overflow: hidden;
}

.attendance-week-title {
  padding: 10px 12px;
  background: #f1e81d;
  color: #10213b;
  font-weight: 700;
}

.attendance-week-grid {
  display: grid;
}

.attendance-day-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

.attendance-day-row span:first-child {
  font-size: 0.9rem;
  font-weight: 600;
}

.attendance-day-indicator {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(9, 19, 34, 0.28);
  background: rgba(246, 233, 25, 0.92);
  color: #10213b;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

.attendance-day-indicator.is-checked {
  background: #163c13;
  color: #f8fbff;
}

.attendance-day-indicator.empty {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(248, 251, 255, 0.72);
}

.injury-workspace {
  display: grid;
  gap: 8px;
}

.injury-workspace-head,
.injury-workspace-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.4fr;
  gap: 0;
}

.injury-col {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 34, 61, 0.14);
  font-weight: 600;
}

.injury-col-period {
  background: #d91f1f;
  color: #fff4f4;
}

.injury-col-duration {
  background: #23b44b;
  color: #f3fff6;
}

.injury-col-note {
  background: #f3b21f;
  color: #10213b;
}

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

.comparison-toolbar label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.comparison-summary {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.comparison-head,
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  align-items: center;
}

.comparison-head {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.comparison-row span {
  text-align: center;
}

.comparison-right {
  text-align: right;
}

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

.comparison-win {
  color: var(--good);
}

.attendance-card-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.attendance-select {
  min-width: 180px;
}

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

.media-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(35, 53, 42, 0.1);
}

.media-card p {
  color: var(--muted);
}

.media-frame {
  width: 100%;
  min-height: 220px;
  margin: 12px 0;
  border: 0;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  margin-top: 20px;
  padding: 14px 4px 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-footer {
  margin-top: 16px;
}

.calendar-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 175, 214, 0.12);
}

.wide-panel {
  width: 100%;
}

.wide-calendar-shell {
  overflow-x: auto;
}

.wide-calendar-shell .calendar-panel {
  min-width: 1040px;
}

.reminder-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: start;
}

.reminder-calendar-shell {
  width: 100%;
  overflow: hidden;
}

.reminder-calendar-shell .calendar-panel {
  margin-bottom: 0;
}

.reminder-day-card {
  min-width: 0;
}

.wide-training-board {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.wide-training-grid {
  min-width: 1520px;
}

.training-matrix-shell {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  padding-bottom: 10px;
}

.training-matrix {
  width: max-content;
  min-width: 1380px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.training-matrix-shell::-webkit-scrollbar {
  height: 12px;
}

.training-matrix-shell::-webkit-scrollbar-thumb {
  background: rgba(47, 109, 246, 0.38);
  border-radius: 999px;
}

.training-matrix-shell::-webkit-scrollbar-track {
  background: rgba(147, 175, 214, 0.08);
  border-radius: 999px;
}

.training-matrix th,
.training-matrix td {
  text-align: center;
  padding: 10px 12px;
}

.training-matrix th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.training-matrix th small {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: normal;
  text-transform: none;
}

.training-matrix tbody tr {
  background: rgba(255, 255, 255, 0.04);
}

.training-matrix td {
  border-top: 1px solid rgba(147, 175, 214, 0.12);
  border-bottom: 1px solid rgba(147, 175, 214, 0.12);
}

.training-matrix td:first-child,
.training-matrix th:first-child {
  text-align: left;
  border-left: 1px solid rgba(147, 175, 214, 0.12);
  border-radius: 16px 0 0 16px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--panel-strong);
}

.training-matrix td:last-child,
.training-matrix th:last-child {
  border-right: 1px solid rgba(147, 175, 214, 0.12);
  border-radius: 0 16px 16px 0;
}

.training-matrix th:first-child {
  z-index: 3;
}

.training-matrix-name {
  min-width: 180px;
  font-weight: 700;
}

.training-plan-toggle-wrap {
  justify-content: center;
  min-width: 78px;
}

.calendar-head,
.calendar-weekdays,
.calendar-grid {
  display: grid;
  gap: 10px;
}

.calendar-head {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.calendar-head strong {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
}

.calendar-weekdays,
.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-cell {
  min-height: 78px;
  border: 1px solid rgba(35, 53, 42, 0.08);
  border-radius: 18px;
  background: rgba(239, 230, 215, 0.58);
  display: grid;
  align-content: space-between;
  justify-items: start;
  padding: 12px;
  min-width: 0;
}

.calendar-cell span {
  font-weight: 700;
  white-space: nowrap;
}

.calendar-cell small {
  color: var(--accent-strong);
  font-weight: 700;
  white-space: nowrap;
}

.calendar-cell.active {
  background: linear-gradient(135deg, rgba(216, 104, 40, 0.16), rgba(31, 109, 87, 0.12));
  border-color: rgba(216, 104, 40, 0.28);
}

.calendar-cell.muted-cell {
  opacity: 0.5;
}

.calendar-note {
  margin: 0;
  color: var(--muted);
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .auth-shell,
  .app-shell {
    width: min(100%, calc(100% - 20px));
    padding: 18px 0 28px;
  }

  .auth-shell,
  .layout,
  .analysis-layout,
  .dual-grid,
  .triple-grid,
  .fixture-grid,
  .list-grid,
  .stats-grid,
  .card-grid,
  .auth-stat-grid,
  .insight-grid,
  .metrics-grid,
  .goalkeeper-grid,
  .detail-hero,
  .dashboard-hero,
  .filter-row,
  .media-grid,
  .auth-gallery,
  .coach-card-grid,
  .assignment-picker,
  .landing-grid,
  .analysis-form-grid,
  .form-grid,
  .match-summary-grid,
  .match-metrics-grid,
  .comparison-toolbar,
  .attendance-report-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 6px;
  }

  .calendar-cell {
    min-height: 64px;
    padding: 10px;
  }

  .auth-hero,
  .auth-panel,
  .page-header,
  .panel,
  .sidebar,
  .topbar,
  .table-card,
  .list-card {
    border-radius: 22px;
  }

  .auth-hero,
  .auth-panel,
  .page-header,
  .panel,
  .table-card,
  .list-card {
    padding: 20px;
  }

  .logo-stage,
  .eyebrow-row,
  .focus-card-head,
  .calendar-head {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .action-row,
  .topbar-actions,
  .interface-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .page-header h1,
  .auth-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
  }

  .wide-calendar-shell .calendar-panel {
    min-width: 880px;
  }

  .wide-training-grid {
    min-width: 1120px;
  }

  .sidebar {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nav-links,
  .sidebar-footer {
    justify-content: flex-start;
  }

  .topbar,
  .panel-header,
  .table-card-header,
  .list-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
