* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  margin: 0;
  color: #23313b;
  background: #eef5f8;
  line-height: 1.55;
}

body.login-body {
  background: linear-gradient(135deg, #d7edf2, #eef9fa);
}

img {
  max-width: 100%;
}

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

.app-header {
  background: #15313a;
  color: white;
}

.nav-wrapper {
  width: min(1240px, calc(100% - 40px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #69ccd9, #15313a);
  border: 1px solid rgba(255,255,255,.45);
  font-weight: 900;
}

.brand-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: #d2edf0;
}

.nav-links a:hover {
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #cceef3, #76b8bd);
  color: #15313a;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: white;
}

.btn-dark {
  background: #15313a;
  color: white;
}

.btn-light {
  background: #effaff;
  color: #15313a;
}

.hero {
  background: linear-gradient(135deg, #173b41, #244d5a);
  color: white;
}

.hero-inner {
  width: min(1240px, calc(100% - 40px));
  margin: auto;
  padding: 78px 0 88px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 620px;
}

.kicker {
  color: #7ff1ed;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.kicker:before {
  content: "";
  width: 34px;
  height: 2px;
  background: #7ff1ed;
}

.hero h1 {
  font-size: clamp(45px, 6vw, 70px);
  line-height: .94;
  letter-spacing: -0.06em;
  margin: 16px 0 20px;
}

.hero p {
  color: #d5eef1;
  font-size: 18px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel {
  background: white;
  border-radius: 24px;
  padding: 20px;
  color: #173b41;
  box-shadow: 0 30px 80px rgba(16, 52, 56, .22);
}

.hero-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-panel .panel-title {
  font-weight: 900;
  font-size: 24px;
}

.hero-panel .panel-subtitle {
  color: #587c84;
  font-size: 13px;
  margin-top: 5px;
}

.sample-card {
  background: #effaff;
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid #d6eef2;
}

.sample-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
}

.hero-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.hero-stat-list .mini-stat {
  background: #173b41;
  color: white;
  border-radius: 12px;
  padding: 12px;
}

.hero-stat-list .mini-stat small {
  display: block;
  color: #acf6e8;
}

.section {
  padding: 54px 0;
}

.section .container {
  width: min(1240px, calc(100% - 40px));
  margin: auto;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0;
  color: #587d84;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.metric-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #d4edf1;
}

.metric-card.compact {
  padding: 20px;
}

.metric-label {
  color: #779198;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.metric-value {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1;
  color: #173b41;
  font-weight: 900;
}

.metric-trend {
  margin-top: 8px;
  color: #2f9a82;
  font-size: 13px;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 26px;
  border: 1px solid #d3ecec;
}

.feature-card h3 {
  margin: 10px 0 14px;
  font-size: 23px;
  line-height: 1.05;
}

.feature-card p {
  margin: 0 0 12px;
  color: #577276;
}

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #d7f0e2;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #15313a;
}

.text-link {
  color: #245f67;
  font-size: 13px;
  font-weight: 800;
}

.log-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-shell {
  width: min(1040px, calc(100% - 40px));
  background: white;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 90px rgba(30, 83, 86, .22);
}

.login-side {
  background: linear-gradient(135deg, #15313a, #244b56);
  color: white;
  padding: 54px 48px;
}

.login-side h1 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 20px 0 20px;
}

.login-side .lead {
  line-height: 1.8;
  color: #bce9e7;
}

.login-form-wrap {
  padding: 54px 48px;
}

.login-form-wrap h2 {
  font-size: 34px;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.form-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 25px;
}

.form-layout label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  color: #536b71;
}

.form-layout input, .form-layout select {
  border-radius: 12px;
  border: 1px solid #bedade;
  padding: 13px 14px;
  font: inherit;
  background: #faffff;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-row .small-link {
  font-size: 12px;
  color: #13434a;
  font-weight: 900;
}

.form-layout .btn {
  width: 100%;
}

.dashboard-layout {
  width: min(1240px, calc(100% - 40px));
  margin: auto;
  padding: 34px 0 60px;
  display: grid;
  grid-template-columns: 280px minmax(800px, 1fr);
  gap: 30px;
}

.sidebar {
  background: #15313a;
  color: white;
  border-radius: 24px;
  padding: 28px 20px;
  min-height: 560px;
}

.sidebar .brand-title {
  font-size: 28px;
}

.sidebar nav {
  margin-top: 40px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  color: #bce5e9;
  margin-bottom: 8px;
  font-size: 13px;
}

.sidebar nav a.active, .sidebar nav a:hover {
  background: #244f55;
  color: white;
}

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

.dashboard-topbar {
  background: white;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d4edf2;
}

.page-title h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-title span {
  color: #697e82;
  font-size: 12px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  gap: 12px;
}

.content-panel {
  background: white;
  border: 1px solid #d4edf2;
  border-radius: 20px;
  padding: 24px;
  margin-top: 18px;
}

.panel-title-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title-line h2 {
  margin: 0;
  font-size: 24px;
}

.panel-subtext {
  color: #607f83;
  font-size: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lesson-card {
  background: linear-gradient(135deg, #eafaff, #eef6ed);
  border-radius: 20px;
  border: 1px solid #cce7ec;
  padding: 24px;
}

.lesson-card h3 {
  margin: 0 0 10px;
}

.lesson-details {
  display: flex;
  gap: 30px;
  margin-top: 12px;
}

.summary-label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #6c898d;
}

.focus-list {
  padding-left: 20px;
  color: #58787b;
}

.focus-list li {
  margin-bottom: 6px;
}

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

.table-wrap th {
  text-align: left;
  padding: 12px 8px;
  font-size: 11px;
  text-transform: uppercase;
  color: #82979b;
  letter-spacing: .14em;
}

.table-wrap td {
  padding: 12px 8px;
  border-top: 1px solid #d9edf0;
  font-size: 13px;
}

.athlete-name {
  font-weight: 900;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.status-active,
.status-on-track {
  background: #d3f1dd;
  color: #23613f;
}

.status-needs-focus {
  background: #ffe8cf;
  color: #956210;
}

.status-not-started {
  background: #dcecf1;
  color: #577a82;
}

.status-in-progress {
  background: #d4edf0;
  color: #305769;
}

.status-high {
  background: #ffd2d2;
  color: #a84444;
}

.status-normal {
  background: #e6f1e4;
  color: #2e7246;
}

.progress-bar {
  height: 8px;
  border-radius: 99px;
  background: #dcecef;
  overflow: hidden;
  width: 100%;
}

.progress-bar > div {
  height: 100%;
  background: linear-gradient(135deg, #55bd9c, #204a55);
}

.mini-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-progress .progress-bar {
  width: 120px;
}

.schedule-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #dbecef;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: 900;
  color: #184b56;
}

.schedule-title {
  font-weight: 800;
}

.subtle-text {
  color: #667d82;
  font-size: 13px;
}

.rink-tag {
  margin-left: auto;
  color: #266878;
  background: #d6eef2;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 900;
}

.badge-info {
  background: #d1edf3;
  color: #155a61;
}

.badge-alert {
  background: #ffe1d8;
  color: #a44a2b;
}

.two-column-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-card {
  border-radius: 14px;
  border: 1px solid #d6eced;
  background: #fafffb;
  padding: 16px;
}

.notice-card small {
  display: block;
  color: #7c8a8f;
  margin-top: 4px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #dcecef;
}

.billing-row:last-child {
  border-bottom: none;
}

.login-page-link {
  color: white;
}

@media (max-width: 900px) {
  .hero-inner,
  .login-shell,
  .dashboard-layout,
  .grid-2,
  .two-column-lists,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    padding-top: 12px;
  }

  .sidebar {
    min-height: auto;
  }

  .nav-wrapper {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}
