:root {
  --size-xs: 0.5rem;
  --size-sm: 0.75rem;
  --size-md: 1rem;
  --size-lg: 1.25rem;
  --size-xl: 1.75rem;
  --size-2xl: 2.5rem;
  --size-3xl: 3.75rem;
  --size-4xl: 6.25rem;
  --size-5xl: 10rem;

  --blackColor: #1c1c1c;
  --whiteColor: #e0e0e0;
  --greenColor: #2f6e45;
  --orangeColor: #c76b2a;

  --bg: var(--blackColor);
  --text: var(--whiteColor);
  --muted: rgba(224, 224, 224, 0.65);
  --card: rgba(224, 224, 224, 0.075);
  --border: rgba(224, 224, 224, 0.14);

  --blue: var(--greenColor);
  --purple: var(--orangeColor);
  --green: var(--greenColor);

  --font: "Inter", sans-serif;

  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-h4: 1.25rem;

  --line-body: 1.6;
  --line-heading: 1.05;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

li {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: var(--line-heading);
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

h3 {
  font-size: var(--text-h4);
  font-weight: 800;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--size-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--size-xl);
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  z-index: 102;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--size-xs);
}

.nav-link {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.68);
  font-size: var(--text-small);
  font-weight: 700;
  transition: 180ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--text-small);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--greenColor);
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.link {
  color: var(--text);
  font-weight: 800;
  opacity: 0.72;
}

.link:hover {
  opacity: 1;
}

/* Hero */

.hero {
  min-height: calc(100vh - 5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--size-5xl) var(--size-2xl);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--size-4xl);
}

.hero-content {
  max-width: 44rem;
}

.eyebrow {
  margin-bottom: var(--size-md);
  color: var(--blue);
  font-size: var(--text-small);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-text {
  max-width: 38rem;
  margin-top: var(--size-lg);
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  margin-top: var(--size-2xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-md);
}

/* Hero Card */

.hero-card {
  position: relative;
  padding: var(--size-xl);
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--size-xl);
  font-weight: 800;
}

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--greenColor);
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
}

.lift-list {
  display: grid;
  gap: var(--size-md);
}

.lift-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--size-md);
  padding: var(--size-md);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lift-item p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: var(--text-small);
}

.lift-item span {
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

.progress-box {
  margin-top: var(--size-xl);
  padding: var(--size-md);
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
}

.progress-box p {
  font-weight: 800;
}

.progress-box small {
  color: var(--muted);
}

.progress-bar {
  height: 0.75rem;
  margin: var(--size-sm) 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #265d39, #2e7c49);
}

/* Sections */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--size-5xl) var(--size-2xl);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: var(--size-3xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--size-lg);
}

.feature-card,
.pricing-card,
.step {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.feature-card {
  padding: var(--size-xl);
  border-radius: 1.5rem;
  transition: 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.feature-card p {
  margin-top: var(--size-sm);
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: var(--size-4xl);
}

.steps {
  display: grid;
  gap: var(--size-lg);
}

.step {
  display: flex;
  gap: var(--size-lg);
  padding: var(--size-lg);
  border-radius: 1.5rem;
}

.step span {
  color: var(--blue);
  font-weight: 900;
}

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

.pricing {
  text-align: center;
}

.pricing-card {
  max-width: 24rem;
  margin: var(--size-2xl) auto 0;
  padding: var(--size-xl);
  border-radius: 1.75rem;
}

.price {
  margin: var(--size-md) 0;
  font-size: 2.8rem;
  font-weight: 900;
}

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

.pricing-card ul {
  margin: var(--size-xl) 0;
  display: grid;
  gap: var(--size-sm);
  color: rgba(248, 250, 252, 0.78);
}

/* Contact */

.contact-text {
  margin-top: var(--size-md);
  color: var(--muted);
  max-width: 36rem;
}

.contact-grid {
  margin-top: var(--size-3xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--size-3xl);
}

.contact-form {
  display: grid;
  gap: var(--size-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--size-xs);
}

.form-group label {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #242424;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-body);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--greenColor);
}

.form-group select option {
  background: #242424;
  color: var(--text);
}

.form-status {
  margin-top: 0.5rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.contact-info {
  display: grid;
  gap: var(--size-lg);
}

.info-box {
  padding: var(--size-lg);
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.info-box h3 {
  margin-bottom: var(--size-xs);
}

.info-box p {
  color: var(--muted);
}

/* Footer */

.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--size-2xl);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--size-md);
  color: var(--muted);
}

.footer div,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cookie */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 900px;
  padding: var(--size-md);
  border-radius: 1.25rem;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--size-md);
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: var(--text-small);
  color: var(--muted);
  max-width: 32rem;
}

.cookie-content a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--size-sm);
}

.cookie-banner.hidden {
  display: none;
}

/* Legal Pages */

.legal-page {
  min-height: calc(100vh - 5rem);
}

.legal-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--size-2xl) var(--size-3xl);
}

.legal-hero h1 {
  max-width: 100%;
  font-size: clamp(2.8rem, 12vw, 5rem);
  letter-spacing: -0.07em;
  overflow-wrap: break-word;
}

.legal-hero p:not(.eyebrow) {
  margin-top: var(--size-lg);
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.15rem);
}

.legal-card {
  max-width: 900px;
  margin: 0 auto var(--size-5xl);
  padding: var(--size-2xl);
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.25);
}

.legal-text {
  display: grid;
  gap: var(--size-md);
  color: var(--muted);
}

.legal-text h3 {
  margin-top: var(--size-xl);
  color: var(--text);
  line-height: 1.25;
}

.legal-text h3:first-child {
  margin-top: 0;
}

.legal-text p {
  color: var(--muted);
  max-width: 70ch;
}

.legal-text a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
}

.legal-back {
  width: fit-content;
  margin-top: var(--size-2xl);
}

/* Hamburger */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.bar {
  display: block;
  width: 1.6rem;
  height: 0.18rem;
  margin: 0.3rem 0;
  border-radius: 999px;
  background: var(--text);
  transition: 300ms ease;
}

/* Tablet */

@media (max-width: 900px) {
  .hero,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 34rem;
  }

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

  h1 {
    max-width: 12ch;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .navbar {
    padding: 0 var(--size-md);
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 5rem 0 0 0;
    width: 100%;
    height: calc(100dvh - 5rem);
    padding: var(--size-3xl) var(--size-2xl);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--size-lg);
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 300ms ease;
    z-index: 99;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 2rem;
    font-weight: 900;
    padding: 0;
    color: var(--muted);
  }

  .nav-link:hover {
    background: transparent;
    color: var(--text);
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(0.48rem) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-0.48rem) rotate(-45deg);
  }

  .hero,
  .section {
    padding: var(--size-4xl) var(--size-md);
  }

  .hero {
    padding-top: var(--size-3xl);
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

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

  .button {
    width: 100%;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.4rem, 11vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
  }

  .eyebrow {
    letter-spacing: 0.12em;
  }

  .legal-hero {
    padding: var(--size-4xl) var(--size-md) var(--size-2xl);
  }

  .legal-card {
    margin: 0 var(--size-md) var(--size-4xl);
    padding: var(--size-lg);
    border-radius: 1.5rem;
  }

  .legal-text {
    gap: var(--size-sm);
  }

  .legal-text h3 {
    margin-top: var(--size-lg);
    font-size: 1.05rem;
  }

  .legal-text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .legal-back {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Small Mobile */

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .button {
    flex: 1;
  }
}
/* Auth Page */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--size-4xl) var(--size-md);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: var(--size-2xl);
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.auth-logo {
  display: inline-block;
  margin-bottom: var(--size-xl);
}

.auth-card h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 10vw, 4rem);
  letter-spacing: -0.06em;
}

.auth-tabs {
  margin: var(--size-2xl) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-xs);
  padding: var(--size-xs);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-tab {
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--greenColor);
  color: white;
}

.auth-form {
  display: none;
  gap: var(--size-lg);
}

.auth-form.active {
  display: grid;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--size-sm);
  color: var(--muted);
  font-size: var(--text-small);
}

.checkbox-row input {
  margin-top: 0.25rem;
  accent-color: var(--greenColor);
}

.checkbox-row a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .auth-card {
    padding: var(--size-xl);
    border-radius: 1.5rem;
  }
}
.auth-page {
  padding-top: 6rem;
}

/* Dashboard */

.dashboard-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--size-5xl) var(--size-2xl);
}

.dashboard-hero {
  margin-bottom: var(--size-3xl);
}

.dashboard-hero h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.dashboard-hero p:not(.eyebrow) {
  margin-top: var(--size-md);
  color: var(--muted);
  max-width: 42rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--size-lg);
}

.dashboard-card {
  padding: var(--size-xl);
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.dashboard-card p {
  margin-top: var(--size-sm);
  color: var(--muted);
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-page {
    padding: var(--size-4xl) var(--size-md);
  }

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

  .dashboard-hero h1 {
    letter-spacing: -0.04em;
  }
}
/* Auth */

.auth-page {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: var(--size-4xl) var(--size-md);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: var(--size-2xl);
  border-radius: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 10vw, 4rem);
  letter-spacing: -0.06em;
}

.auth-tabs {
  margin: var(--size-2xl) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-xs);
  padding: var(--size-xs);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-tab {
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--greenColor);
  color: white;
}

.auth-form {
  display: none;
  gap: var(--size-lg);
}

.auth-form.active {
  display: grid;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--size-sm);
  color: var(--muted);
  font-size: var(--text-small);
}

.checkbox-row input {
  margin-top: 0.25rem;
  accent-color: var(--greenColor);
}

.checkbox-row a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
}

/* App Home */

.dashboard-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--size-5xl) var(--size-2xl);
}

.dashboard-hero {
  margin-bottom: var(--size-3xl);
}

.dashboard-hero h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.dashboard-hero p:not(.eyebrow) {
  margin-top: var(--size-md);
  color: var(--muted);
  max-width: 42rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--size-lg);
}

.dashboard-card {
  padding: var(--size-xl);
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.dashboard-card p {
  margin-top: var(--size-sm);
  color: var(--muted);
}

.dashboard-card .button {
  margin-top: var(--size-lg);
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .auth-card {
    padding: var(--size-xl);
    border-radius: 1.5rem;
  }

  .dashboard-page {
    padding: var(--size-4xl) var(--size-md);
  }

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

  .dashboard-hero h1 {
    letter-spacing: -0.04em;
  }
}
.logout-section {
  margin-top: 3rem;
  text-align: center;
}

.dashboard-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.dashboard-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.app-grid {
  grid-template-columns: 1fr 2fr 1fr;
}

.workout-card {
  grid-column: span 1;
}

.history-card {
  grid-column: span 3;
}

.analysis-card p {
  margin-top: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--size-md);
}

.workout-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--size-md);
  padding: var(--size-md);
  margin-top: var(--size-md);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.workout-entry p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: var(--text-small);
}

.delete-workout {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.delete-workout:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

  .history-card {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
.current-workout-list {
  margin-top: var(--size-md);
}

.saved-workout {
  margin-top: var(--size-lg);
  padding: var(--size-md);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.saved-workout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--size-md);
  margin-bottom: var(--size-md);
}

.saved-workout-header p {
  color: var(--muted);
  font-size: var(--text-small);
}

.saved-workout-exercises {
  display: grid;
  gap: var(--size-sm);
}
/* Workout Tracker */

.app-grid {
  grid-template-columns: 1fr 2fr 1fr;
  align-items: start;
}

.workout-card {
  display: grid;
  gap: var(--size-md);
}

.history-card {
  grid-column: span 3;
}

.analysis-card p {
  margin-top: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--size-md);
}

.current-workout-list {
  margin-top: var(--size-sm);
  display: grid;
  gap: var(--size-sm);
}

.current-workout-list > p,
#workoutList > p {
  color: var(--muted);
}

.workout-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--size-md);
  padding: var(--size-md);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.workout-entry p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: var(--text-small);
}

.saved-workout {
  margin-top: var(--size-lg);
  padding: var(--size-md);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.saved-workout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--size-md);
  margin-bottom: var(--size-md);
}

.saved-workout-header p {
  color: var(--muted);
  font-size: var(--text-small);
}

.saved-workout-exercises {
  display: grid;
  gap: var(--size-sm);
}

.delete-current-exercise,
.delete-workout {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-small);
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
  white-space: nowrap;
}

.delete-current-exercise:hover,
.delete-workout:hover {
  background: rgba(199, 107, 42, 0.22);
  border-color: var(--orangeColor);
  transform: translateY(-1px);
}

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

  .history-card {
    grid-column: span 1;
  }

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

  .workout-entry,
  .saved-workout-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .delete-current-exercise,
  .delete-workout {
    width: 100%;
  }
}

.sets-container {
  display: grid;
  gap: var(--size-md);
}

.set-row {
  padding: var(--size-md);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--size-md);
  align-items: end;
}

.set-row strong {
  padding-bottom: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .set-row {
    grid-template-columns: 1fr;
  }

  .set-row strong {
    padding-bottom: 0;
  }
}
.hidden-custom-btn {
  display: none;
}

.show-custom-btn {
  display: inline-flex;
}
.template-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-sm);
}

.saved-workout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--size-md);
  cursor: pointer;
  list-style: none;
}

.saved-workout-summary::-webkit-details-marker {
  display: none;
}

.saved-workout-summary::before {
  content: "▸";
  font-weight: 900;
  color: var(--greenColor);
  transition: 180ms ease;
}

.saved-workout[open] .saved-workout-summary::before {
  transform: rotate(90deg);
}

.saved-workout-summary > div {
  flex: 1;
}

.saved-workout-exercises {
  margin-top: var(--size-md);
}

@media (max-width: 768px) {
  .template-actions {
    grid-template-columns: 1fr;
  }

  .saved-workout-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
#saveTemplateBtn {
  margin-top: var(--size-md);
}

.workout-entry-actions {
  display: flex;
  gap: var(--size-sm);
  flex-wrap: wrap;
}

.edit-current-exercise {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(47, 110, 69, 0.22);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-small);
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
  white-space: nowrap;
}

.edit-current-exercise:hover {
  background: rgba(47, 110, 69, 0.35);
  border-color: var(--greenColor);
  transform: translateY(-1px);
}

.history-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-md);
  margin-top: var(--size-md);
  margin-bottom: var(--size-lg);
}

@media (max-width: 768px) {
  .history-filters {
    grid-template-columns: 1fr;
  }
}

.history-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-md);
  margin-top: var(--size-md);
  margin-bottom: var(--size-lg);
}

@media (max-width: 768px) {
  .history-filters {
    grid-template-columns: 1fr;
  }
}

.history-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-md);
  margin-top: var(--size-md);
  margin-bottom: var(--size-lg);
}

.history-filters select {
  width: 100%;
  min-height: 56px;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 1rem;
  font-family: var(--font);
  font-size: var(--text-small);
  font-weight: 700;
  outline: none;
  transition: 180ms ease;
  backdrop-filter: blur(12px);
  appearance: none;
  cursor: pointer;
}

.history-filters select:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
}

.history-filters select:focus {
  border-color: var(--greenColor);
  box-shadow: 0 0 0 4px rgba(47, 110, 69, 0.18);
}

.history-filters option {
  background: #111111;
  color: white;
}

@media (max-width: 768px) {
  .history-filters {
    grid-template-columns: 1fr;
  }
}
.clean-app-grid {
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: start;
}

.start-card,
.template-card,
.exercise-card,
.current-workout-card {
  display: grid;
  gap: var(--size-md);
}

.current-workout-card {
  grid-column: span 2;
}

.history-card {
  grid-column: span 3;
}

.helper-text {
  color: var(--muted);
  font-size: var(--text-small);
}

.current-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-md);
  margin-top: var(--size-md);
}

@media (max-width: 1100px) {
  .clean-app-grid {
    grid-template-columns: 1fr 1fr;
  }

  .current-workout-card,
  .history-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .clean-app-grid {
    grid-template-columns: 1fr;
  }

  .current-workout-card,
  .history-card {
    grid-column: span 1;
  }

  .current-actions {
    grid-template-columns: 1fr;
  }
}
.app-link-card {
  display: block;
  transition: 180ms ease;
}

.app-link-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}

.clean-app-grid {
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: start;
}

.start-card,
.template-card,
.exercise-card,
.current-workout-card {
  display: grid;
  gap: var(--size-md);
}

.current-workout-card {
  grid-column: span 2;
}

.history-card {
  grid-column: span 3;
}

.current-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-md);
}

@media (max-width: 1100px) {
  .clean-app-grid {
    grid-template-columns: 1fr 1fr;
  }

  .current-workout-card,
  .history-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .clean-app-grid {
    grid-template-columns: 1fr;
  }

  .current-workout-card,
  .history-card {
    grid-column: span 1;
  }

  .current-actions {
    grid-template-columns: 1fr;
  }
}
