:root {
  --lime: #b9f227;
  --lime-dark: #83c414;
  --lime-soft: #efffc9;
  --ink: #162018;
  --muted: #6d776f;
  --line: #e6eae6;
  --soft: #f5f7f4;
  --white: #fff;
  --danger: #ef654f;
  --amber: #f5a623;
  --shadow: 0 12px 40px rgba(20, 36, 24, .08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font: 15px/1.5 "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(185, 242, 39, .42);
  outline-offset: 2px;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4, .brand, .metric-value { font-family: "Manrope", sans-serif; }
.is-hidden { display: none !important; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.brand > span:last-child span { color: var(--lime-dark); }
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--lime);
}
.brand-mark svg { width: 21px; }
.brand--light > span:last-child span { color: var(--lime); }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  background: white;
}
.login-brand {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 48px clamp(50px, 7vw, 112px);
  color: white;
  background: #152018;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black, transparent);
}
.login-brand > *:not(.orb) { position: relative; z-index: 2; }
.login-copy { max-width: 650px; }
.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--lime-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.eyebrow--dark { color: var(--lime); }
.login-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(50px, 6vw, 86px);
  line-height: .98;
  letter-spacing: -5px;
}
.login-copy h1 em { color: var(--lime); font-style: normal; }
.login-copy p { max-width: 510px; margin: 0; color: #b9c1bb; font-size: 18px; }
.login-stats { display: flex; gap: clamp(28px, 4vw, 64px); }
.login-stats div { display: flex; flex-direction: column; }
.login-stats strong { font: 800 27px "Manrope"; }
.login-stats span { color: #98a29a; font-size: 12px; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb--one { width: 460px; height: 460px; right: -210px; top: 18%; border: 95px solid rgba(185,242,39,.09); }
.orb--two { width: 180px; height: 180px; left: 45%; bottom: -90px; background: rgba(185,242,39,.06); }
.login-panel { position: relative; display: grid; place-items: center; padding: 42px; }
.login-form { width: min(100%, 440px); }
.login-footer {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.login-footer a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.login-footer strong { color: var(--ink); }
.mobile-brand { display: none; margin-bottom: 48px; }
.login-form h2 { margin-bottom: 7px; font-size: 38px; letter-spacing: -1.5px; }
.login-form > div:first-of-type p { color: var(--muted); }
.login-form label { display: block; margin-top: 22px; }
.login-form label > span:first-child { display: block; margin-bottom: 7px; font-weight: 700; font-size: 13px; }
.input-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: .2s ease;
}
.input-wrap:focus-within { border-color: var(--lime-dark); box-shadow: 0 0 0 4px rgba(185,242,39,.13); }
.input-wrap > svg { width: 18px; color: #96a098; }
.input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 19px; }
.show-password { width: 30px; height: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; }
.button--primary { background: var(--lime); color: var(--ink); box-shadow: 0 8px 20px rgba(131,196,20,.19); }
.button--primary:hover { background: #c5ff31; box-shadow: 0 11px 25px rgba(131,196,20,.26); }
.button--dark { background: var(--ink); color: white; }
.button--ghost { border: 1px solid var(--line); background: white; }
.button--danger { background: #fff0ed; color: #c74835; }
.button--large { width: 100%; min-height: 53px; margin-top: 28px; }
.button:disabled { opacity: .55; pointer-events: none; }
.form-error { min-height: 21px; padding-top: 8px; color: #d54c3e; font-size: 13px; text-align: center; }
.demo-access {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.demo-access > span, .demo-access small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-align: center; }
.demo-access button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-align: left;
  cursor: pointer;
}
.demo-access button:hover { border-color: var(--lime-dark); background: var(--lime-soft); }
.demo-access button svg { width: 18px; color: var(--lime-dark); }
.demo-access button span { display: flex; flex-direction: column; font-size: 10px; color: var(--muted); }
.demo-access button b { color: var(--ink); font-size: 12px; }

.app-view { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 27px 20px 20px;
  border-right: 1px solid var(--line);
  background: white;
}
.sidebar .brand { margin: 0 10px 36px; }
.main-nav { display: grid; gap: 5px; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-radius: 11px;
  color: #687269;
  background: transparent;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: .2s;
}
.nav-item svg { width: 19px; }
.nav-item:hover { color: var(--ink); background: var(--soft); }
.nav-item.active { color: var(--ink); background: var(--lime-soft); }
.nav-item.active svg { color: var(--lime-dark); }
.nav-badge { margin-left: auto; padding: 1px 7px; border-radius: 10px; color: white; background: var(--ink); font-size: 10px; }
.sidebar-promo { margin-top: auto; padding: 18px; border-radius: 16px; background: var(--ink); color: white; overflow: hidden; position: relative; }
.promo-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 10px; color: var(--ink); background: var(--lime); }
.promo-icon svg { width: 18px; }
.sidebar-promo strong { display: block; }
.sidebar-promo p { margin: 3px 0 10px; color: #9fa8a1; font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--lime-dark); background: none; font-weight: 700; font-size: 12px; cursor: pointer; }
.text-button svg { width: 15px; }
.logout-button { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 11px 13px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 600; cursor: pointer; }
.logout-button:hover { color: var(--danger); background: #fff2ef; }
.logout-button svg { width: 18px; }
.app-main { min-width: 0; grid-column: 2; }
.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(245,247,244,.9);
  backdrop-filter: blur(15px);
}
.topbar-title > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.topbar-title h2 { margin: 1px 0 0; font-size: 22px; letter-spacing: -.6px; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.notification-button { position: relative; border: 1px solid var(--line); background: white; }
.notification-button span { position: absolute; width: 7px; height: 7px; top: 7px; right: 7px; border: 1.5px solid white; border-radius: 50%; background: var(--danger); }
.profile { display: flex; align-items: center; gap: 10px; }
.profile > span:nth-child(2) { display: flex; flex-direction: column; }
.profile strong { font-size: 13px; }
.profile small { color: var(--muted); font-size: 11px; }
.profile > svg { width: 15px; color: var(--muted); }
.avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #31450c;
  background: var(--lime);
  font-size: 12px;
  font-weight: 800;
}
.menu-button { display: none; }
.page-content { padding: 34px 38px 60px; max-width: 1600px; margin: auto; }
.app-footer {
  max-width: 1600px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 19px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.app-footer strong { color: var(--ink); }
.page-enter { animation: pageIn .42s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(9px); } }

.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.welcome-row h1 { margin-bottom: 4px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -1.4px; }
.welcome-row h1 span { color: var(--lime-dark); }
.welcome-row p { margin: 0; color: var(--muted); }
.quick-action { white-space: nowrap; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 18px; }
.metric-card, .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 20px rgba(29,47,33,.025);
}
.metric-card { position: relative; padding: 20px; overflow: hidden; }
.metric-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--lime-dark); background: var(--lime-soft); }
.metric-icon svg { width: 17px; }
.metric-value { font-size: 29px; font-weight: 800; letter-spacing: -1px; }
.metric-value small { margin-left: 3px; color: var(--muted); font: 500 12px "DM Sans"; }
.metric-foot { margin-top: 2px; color: var(--muted); font-size: 11px; }
.trend-up { color: #45a242; font-weight: 700; }
.progress { height: 5px; margin-top: 13px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 18px; }
.card { min-width: 0; padding: 23px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-head h3 { margin-bottom: 3px; font-size: 17px; letter-spacing: -.4px; }
.card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.link-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--lime-dark); background: none; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
.link-button svg { width: 15px; }
.schedule-list { display: grid; gap: 9px; }
.schedule-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 13px; border-radius: 13px; background: var(--soft); transition: .2s; }
.schedule-item:hover { transform: translateX(3px); background: #f0f4ef; }
.day-box { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: white; font-weight: 800; font-size: 11px; text-transform: uppercase; }
.schedule-item.active .day-box { background: var(--lime); }
.schedule-info strong { display: block; font-size: 13px; }
.schedule-info span { color: var(--muted); font-size: 11px; }
.schedule-time { color: var(--muted); font-size: 11px; }
.next-class { padding: 19px; border-radius: 16px; color: white; background: var(--ink); }
.next-class-top { display: flex; justify-content: space-between; }
.next-class .tag { color: var(--ink); background: var(--lime); }
.next-class h3 { margin: 29px 0 4px; font-size: 21px; }
.next-class p { margin-bottom: 19px; color: #aeb7b0; font-size: 12px; }
.class-meta { display: flex; gap: 16px; padding-top: 15px; border-top: 1px solid #354038; color: #c8cfca; font-size: 11px; }
.class-meta span { display: flex; align-items: center; gap: 5px; }
.class-meta svg { width: 14px; color: var(--lime); }
.tag { display: inline-block; padding: 4px 8px; border-radius: 7px; color: #51770c; background: var(--lime-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.measurement-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stat { padding: 14px; border-radius: 13px; background: var(--soft); }
.mini-stat span { display: block; color: var(--muted); font-size: 10px; }
.mini-stat strong { font: 800 22px "Manrope"; }
.mini-stat small { color: var(--muted); }
.sparkline { height: 70px; display: flex; align-items: end; gap: 6px; margin-top: 16px; }
.sparkline span { flex: 1; min-height: 10%; border-radius: 5px 5px 2px 2px; background: var(--lime-soft); transition: .3s; }
.sparkline span:last-child { background: var(--lime); }
.span-2 { grid-column: 1 / -1; }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-title h1 { margin-bottom: 4px; font-size: 30px; letter-spacing: -1px; }
.section-title p { margin: 0; color: var(--muted); }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: #e9ede8; }
.tab { padding: 7px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.tab.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(20,30,20,.06); }
.workout-day { margin-bottom: 15px; }
.workout-day-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.workout-day-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--lime); font: 800 15px "Manrope"; }
.workout-day-head h3 { margin: 0; }
.workout-day-head p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.exercise-list { border-top: 1px solid var(--line); }
.exercise-row { display: grid; grid-template-columns: 32px 1fr repeat(3, 90px); align-items: center; gap: 10px; padding: 14px 3px; border-bottom: 1px solid var(--line); }
.exercise-row:last-child { border-bottom: 0; }
.exercise-index { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: var(--soft); font-size: 10px; font-weight: 700; }
.exercise-row strong { font-size: 13px; }
.exercise-detail { color: var(--muted); font-size: 11px; text-align: center; }
.exercise-detail b { display: block; color: var(--ink); font-size: 13px; }

.two-column { display: grid; grid-template-columns: 1.45fr .8fr; gap: 18px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: white;
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--lime-dark); }
.form-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; }
.chart-card { min-height: 340px; }
.weight-chart { height: 220px; display: flex; align-items: end; gap: 12px; padding-top: 30px; }
.chart-bar { flex: 1; position: relative; min-width: 28px; border-radius: 9px 9px 2px 2px; background: linear-gradient(to top, var(--lime), #dcff83); animation: barIn .7s ease both; }
@keyframes barIn { from { height: 0 !important; } }
.chart-bar::before { content: attr(data-value); position: absolute; left: 50%; top: -25px; transform: translateX(-50%); font-size: 11px; font-weight: 700; }
.chart-bar span { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 9px; white-space: nowrap; }
.bmi-box { padding: 18px; border-radius: 14px; background: var(--lime-soft); }
.bmi-box strong { font: 800 29px "Manrope"; }
.bmi-scale { height: 7px; margin: 12px 0 7px; border-radius: 5px; background: linear-gradient(90deg, #59b8f2 0 25%, var(--lime) 25% 60%, #f7c74f 60% 80%, #ef6554 80%); position: relative; }
.bmi-scale i { position: absolute; top: -4px; width: 4px; height: 15px; border-radius: 3px; background: var(--ink); }

.meal-list { display: grid; gap: 9px; }
.meal-row { display: grid; grid-template-columns: 65px 1fr auto; gap: 15px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.meal-time { color: var(--lime-dark); font-weight: 800; font-size: 12px; }
.meal-row strong { display: block; }
.meal-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.meal-kcal { color: var(--muted); font-size: 12px; }
.nutrition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nutrition-item { padding: 14px; border-radius: 13px; background: var(--soft); }
.nutrition-item span { display: block; color: var(--muted); font-size: 10px; }
.nutrition-item strong { font-size: 18px; }

.class-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.class-card { padding: 0; overflow: hidden; }
.class-visual { height: 110px; padding: 18px; position: relative; color: white; background: var(--ink); }
.class-visual::after { content: ""; position: absolute; width: 100px; height: 100px; right: -20px; top: -35px; border: 22px solid rgba(185,242,39,.16); border-radius: 50%; }
.class-visual .tag { color: var(--ink); background: var(--lime); }
.class-visual h3 { margin: 23px 0 0; font-size: 18px; }
.class-body { padding: 17px; }
.class-details { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-bottom: 17px; color: var(--muted); font-size: 11px; }
.class-details span { display: flex; align-items: center; gap: 5px; }
.class-details svg { width: 14px; color: var(--lime-dark); }
.class-body .button { width: 100%; }
.spots-low { color: var(--danger); font-weight: 700; }

.product-card { padding: 0; overflow: hidden; }
.product-image { height: 150px; display: grid; place-items: center; position: relative; background: var(--soft); font-size: 62px; }
.product-image .tag { position: absolute; left: 14px; top: 14px; }
.product-body { padding: 17px; }
.product-body > span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.product-body h3 { margin: 3px 0 14px; font-size: 16px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.price { font: 800 18px "Manrope"; }

.admin-metrics { grid-template-columns: repeat(4, 1fr); }
.admin-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-bottom: 18px; }
.attendance-chart { height: 190px; display: flex; align-items: end; gap: 10px; padding-top: 20px; }
.attendance-bar { flex: 1; position: relative; border-radius: 8px 8px 2px 2px; background: var(--lime-soft); }
.attendance-bar:hover, .attendance-bar.active { background: var(--lime); }
.attendance-bar::after { content: attr(data-day); position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10px; }
.alert-list { display: grid; gap: 8px; }
.alert-item { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; background: var(--soft); }
.alert-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); }
.alert-item.danger .alert-dot { background: var(--danger); }
.alert-item strong { display: block; font-size: 12px; }
.alert-item span { color: var(--muted); font-size: 10px; }
.table-card { overflow: hidden; padding: 0; }
.table-card .card-head { padding: 21px 22px 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 18px; color: var(--muted); background: var(--soft); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .6px; }
.data-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.data-table tr:last-child td { border-bottom: 0; }
.member-cell { display: flex; align-items: center; gap: 9px; }
.member-cell .avatar { width: 31px; height: 31px; border-radius: 9px; }
.member-cell strong { display: block; }
.member-cell span { color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 9px; font-size: 10px; font-weight: 700; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--active { color: #3c9139; background: #ebf9e9; }
.status--expiring { color: #bd7d12; background: #fff6df; }
.status--inactive, .status--expired { color: #c85040; background: #fff0ed; }
.row-actions { display: flex; gap: 4px; }
.row-actions .icon-button { width: 31px; height: 31px; border: 1px solid var(--line); }
.row-actions svg { width: 14px; }

.empty-state { padding: 45px 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 38px; height: 38px; color: var(--lime-dark); }
.toast-host { position: fixed; z-index: 100; top: 20px; right: 20px; display: grid; gap: 8px; }
.toast { min-width: 260px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); animation: toastIn .3s ease both; }
.toast svg { width: 18px; color: var(--lime-dark); }
.toast--error svg { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(15px); } }
.modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(10,17,12,.48); backdrop-filter: blur(4px); }
.modal-card { width: min(100%, 520px); max-height: 90vh; overflow: auto; position: relative; padding: 27px; border-radius: 22px; background: white; box-shadow: var(--shadow); animation: modalIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.modal-close { position: absolute; right: 14px; top: 14px; }
.modal-card h2 { margin-bottom: 5px; }
.modal-card > div > p { color: var(--muted); }
.notification-list { display: grid; gap: 9px; margin-top: 20px; }
.notification-item { display: flex; gap: 11px; padding: 12px; border-radius: 12px; background: var(--soft); }
.notification-item > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--lime-dark); background: var(--lime-soft); }
.notification-item svg { width: 16px; }
.notification-item strong { display: block; font-size: 12px; }
.notification-item p { margin: 1px 0; font-size: 11px; }
.notification-item small { color: var(--muted); }
.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .class-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid, .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { display: flex; }
  .app-view { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .28s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 15; inset: 0; background: rgba(12,20,14,.36); }
  .sidebar-backdrop.show { display: block; }
  .app-main { width: 100%; }
  .menu-button { display: inline-grid; }
  .topbar { height: 75px; padding: 0 19px; }
  .topbar-title { margin-right: auto; margin-left: 9px; }
  .topbar-title > span { display: none; }
  .profile > span:nth-child(2), .profile > svg { display: none; }
  .topbar-actions { gap: 8px; }
  .page-content { padding: 24px 18px 45px; }
  .app-footer { padding: 17px 18px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .admin-metrics { grid-template-columns: repeat(2,1fr); }
  .data-table { min-width: 700px; }
  .table-card { overflow-x: auto; }
}
@media (max-width: 560px) {
  .login-panel { padding: 24px 20px; }
  .login-footer { bottom: 10px; }
  .app-footer { align-items: center; flex-direction: column; gap: 2px; text-align: center; }
  .login-form h2 { font-size: 32px; }
  .demo-access { grid-template-columns: 1fr; }
  .demo-access > span, .demo-access small { grid-column: auto; }
  .welcome-row, .section-title { align-items: flex-start; flex-direction: column; }
  .metrics-grid, .admin-metrics, .class-grid, .product-grid { grid-template-columns: 1fr; }
  .quick-action { width: 100%; }
  .card { padding: 18px; }
  .schedule-item { grid-template-columns: 43px 1fr; }
  .schedule-time { display: none; }
  .exercise-row { grid-template-columns: 30px 1fr repeat(2, 50px); }
  .exercise-detail:last-child { display: none; }
  .form-grid, .measurement-layout, .nutrition-grid { grid-template-columns: 1fr; }
  .meal-row { grid-template-columns: 52px 1fr; }
  .meal-kcal { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
