/* ==========================================================================
   Fit & Glow Club — statische frontend
   Handgeschreven CSS, geen build stap nodig.
   ========================================================================== */

:root {
  --bg: #fff8f9;
  --fg: #1f1f1f;
  --card: #ffffff;
  --muted: #8a7b80;
  --primary: #f87aa2;
  --primary-strong: #ef5f8d;
  --secondary: #fdc7d7;
  --border: #f1e7ea;
  --soft: #fff2f5;
  --rose-gold: linear-gradient(135deg, #f87aa2 0%, #f7a9c1 55%, #e2a17d 100%);
  --shadow: 0 18px 45px rgba(111, 72, 84, 0.06);
  --shadow-lg: 0 24px 60px rgba(111, 72, 84, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-lg: 32px;
  --sidebar: 220px;
}

[data-theme="dark"] {
  --bg: #171113;
  --fg: #f6eef0;
  --card: #211a1d;
  --muted: #b2a1a6;
  --primary: #ff8eb1;
  --primary-strong: #ff7aa4;
  --secondary: #7c4b5c;
  --border: #33272b;
  --soft: #2a2024;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.serif {
  font-family: "Playfair Display", Georgia, serif;
}

a,
button,
input,
select,
textarea {
  transition: all 180ms ease;
  font-family: inherit;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.22em;
}

.icon-sm {
  width: 1em;
  height: 1em;
}

.icon-lg {
  width: 1.6em;
  height: 1.6em;
}

/* ---------- App shell ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: none;
  width: var(--sidebar);
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  background: var(--card);
}

.sidebar__logo {
  display: block;
  margin: 0 auto 28px;
  width: 126px;
}

.sidebar__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-link:hover {
  background: color-mix(in srgb, var(--secondary) 22%, transparent);
  color: var(--fg);
}

.nav-link.is-active {
  background: color-mix(in srgb, var(--secondary) 38%, transparent);
  color: var(--primary);
}

.nav-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--border);
}

.sidebar__member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  padding: 0 16px;
}

.topbar__greeting p:first-child {
  font-size: 18px;
  font-weight: 800;
}

.topbar__greeting p:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.topbar__search {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
}

.topbar__search input {
  width: 100%;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  outline: none;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px 112px;
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 95%, transparent);
  backdrop-filter: blur(18px);
}

.bottom-nav__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 460px;
  margin: 0 auto;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.bottom-nav a.is-active {
  background: color-mix(in srgb, var(--secondary) 38%, transparent);
  color: var(--primary);
}

/* Mobiel zijmenu */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(31, 20, 25, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .sidebar {
  display: flex;
  z-index: 80;
  box-shadow: var(--shadow-lg);
}

/* ---------- Componenten ---------- */

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--soft {
  background: color-mix(in srgb, var(--secondary) 20%, var(--card));
}

.card--hover {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card-title--sm {
  font-size: 15px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.btn--outline {
  border-color: var(--border);
  background: var(--card);
  color: var(--fg);
}

.btn--outline:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 25%, var(--card));
  color: var(--primary);
}

.btn--secondary {
  background: color-mix(in srgb, var(--secondary) 55%, var(--card));
  color: var(--fg);
}

.btn--secondary:hover {
  background: var(--secondary);
  color: var(--fg);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--secondary) 25%, transparent);
  color: var(--fg);
}

.btn--icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.btn--icon:hover {
  background: color-mix(in srgb, var(--secondary) 35%, transparent);
  color: var(--fg);
  transform: none;
}

.btn--light {
  background: rgba(255, 255, 255, 0.9);
  color: #1f1f1f;
}

.btn--light:hover {
  background: #fff;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  height: 54px;
  font-size: 16px;
}

.btn--sm {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 35%, transparent);
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
}

.badge--primary {
  color: var(--primary);
}

.badge--light {
  background: rgba(255, 255, 255, 0.9);
  color: #1f1f1f;
}

.badge--green {
  background: #e7f6ee;
  color: #1c6b45;
}

.badge--amber {
  background: #fdf0e0;
  color: #955116;
}

.badge--red {
  background: #fdeaea;
  color: #9a2a2a;
}

.badge--clickable {
  cursor: pointer;
}

.badge--clickable:hover,
.badge.is-selected {
  background: var(--secondary);
  color: #6b2c44;
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--fg);
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary) 40%, transparent);
}

.input::placeholder {
  color: var(--muted);
}

.input-icon {
  position: relative;
  flex: 1;
}

.input-icon .icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.input-icon .input {
  padding-left: 44px;
}

.input-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.input-toggle:hover {
  background: color-mix(in srgb, var(--secondary) 40%, transparent);
  color: var(--fg);
}

.field {
  display: block;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 40%, transparent);
}

.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--rose-gold);
  transition: width 400ms ease;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--rose-gold);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.avatar--lg {
  width: 96px;
  height: 96px;
  font-size: 36px;
}

.rose-gold {
  background: var(--rose-gold);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.dropdown {
  position: relative;
}

.dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: none;
  width: 290px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.dropdown.is-open .dropdown__panel {
  display: block;
  animation: fade-in 200ms ease both;
}

.dropdown__panel--narrow {
  width: 220px;
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.dropdown__item:hover {
  background: color-mix(in srgb, var(--secondary) 25%, transparent);
  color: var(--fg);
}

.notification {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--secondary) 22%, transparent);
}

.notification + .notification {
  margin-top: 8px;
}

.dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Pagina blokken ---------- */

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

.page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 40%, transparent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-header__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header__description {
  max-width: 720px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 24px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero--tall {
  min-height: 460px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(20, 9, 15, 0.85), rgba(20, 9, 15, 0.25));
}

.hero > * {
  position: relative;
}

.hero__title {
  margin-top: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-weight: 900;
}

.hero__text {
  max-width: 620px;
  margin-top: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.stat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.stat__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.stat__value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stat__value span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--secondary) 30%, transparent);
  color: var(--primary);
}

.tile {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.tile__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.tile__value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.info-row span:first-child {
  font-weight: 600;
  color: var(--muted);
}

.info-row span:last-child {
  font-weight: 800;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--secondary) 22%, transparent);
}

.list-item:hover {
  background: color-mix(in srgb, var(--secondary) 38%, transparent);
}

.media {
  position: relative;
  overflow: hidden;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.media--h44 {
  height: 176px;
}

.media--h48 {
  height: 192px;
}

.media--h56 {
  height: 224px;
}

.card--hover:hover .media img {
  transform: scale(1.05);
}

.media__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.media__tl {
  position: absolute;
  top: 14px;
  left: 14px;
}

.media__tr {
  position: absolute;
  top: 14px;
  right: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.macro {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--secondary) 28%, transparent);
  text-align: center;
  font-size: 13px;
}

.macro b {
  display: block;
  font-size: 16px;
}

.ring {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border: 10px solid color-mix(in srgb, var(--secondary) 45%, transparent);
  border-radius: 50%;
  background: var(--bg);
  text-align: center;
}

.ring p:first-child {
  font-size: 28px;
  font-weight: 900;
}

.ring p:last-child {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.illustration {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #fff2f5, #f9d9e2);
}

.illustration i {
  position: absolute;
  display: block;
}

.quote-box {
  padding: 24px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--secondary) 35%, transparent);
  text-align: center;
}

.note {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--secondary) 25%, transparent);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.note--primary {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

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

/* ---------- Auth layout ---------- */

.auth {
  display: grid;
  gap: 24px;
  min-height: 100vh;
  padding: 24px 16px;
}

.auth__visual {
  position: relative;
  display: none;
  overflow: hidden;
  min-height: 400px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35), rgba(248, 122, 162, 0.35)),
    url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.auth__visual-inner {
  position: absolute;
  inset: auto 40px 40px;
}

.auth__form {
  display: grid;
  place-items: center;
}

.auth__form-inner {
  width: 100%;
  max-width: 430px;
}

.auth__logo {
  display: block;
  width: 210px;
  margin: 0 auto 28px;
}

.auth__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.auth__links a:hover {
  color: var(--primary);
}

/* ---------- Workout player ---------- */

.player {
  display: grid;
  gap: 20px;
}

.player__stage {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: var(--radius);
  background: #14090f;
  color: #fff;
}

.player__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.player__stage-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  padding: 24px;
}

.timer {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.exercise-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
}

.exercise-step.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 25%, var(--card));
}

.exercise-step__index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--secondary) 45%, transparent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Onboarding ---------- */

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.steps span {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 40%, transparent);
}

.steps span.is-done {
  background: var(--rose-gold);
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-weight: 700;
  cursor: pointer;
}

.option:hover {
  border-color: var(--primary);
}

.option.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--secondary) 30%, var(--card));
  color: var(--primary);
}

/* ---------- Toast ---------- */

.toast-host {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 32px));
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: fade-in 240ms ease both;
}

.toast__title {
  font-size: 14px;
  font-weight: 800;
}

.toast__text {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Utilities ---------- */

.grid {
  display: grid;
  gap: 20px;
}

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

.flex {
  display: flex;
  gap: 12px;
}

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

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-5 {
  gap: 20px;
}

.stack > * + * {
  margin-top: 12px;
}

.stack-lg > * + * {
  margin-top: 20px;
}

.stack-xl > * + * {
  margin-top: 32px;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }

.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.text-center { text-align: center; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.text-4xl { font-size: 38px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.leading-7 { line-height: 1.75; }
.full { width: 100%; }
.relative { position: relative; }
.hidden { display: none; }

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fade-in 450ms ease both;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .main {
    padding: 24px 24px 112px;
  }

  .page-header__title {
    font-size: 40px;
  }

  .hero__title {
    font-size: 48px;
  }
}

@media (min-width: 768px) {
  .topbar__search {
    display: flex;
  }

  .split-media {
    grid-template-columns: 1fr 260px;
  }

  .hide-md {
    display: none;
  }
}

@media (min-width: 1024px) {
  body.has-shell {
    padding-left: var(--sidebar);
  }

  .sidebar {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .drawer-backdrop {
    display: none;
  }

  .main {
    padding: 28px 32px 48px;
  }

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

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

  .split {
    grid-template-columns: 1fr 360px;
  }

  .split-sm {
    grid-template-columns: 1fr 280px;
  }

  .split-wide {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .split-even {
    grid-template-columns: 1fr 1fr;
  }

  .auth {
    grid-template-columns: 1fr 520px;
    padding: 24px;
  }

  .auth__visual {
    display: block;
  }

  .toast-host {
    bottom: 24px;
  }
}

@media (min-width: 1280px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
