@import url("theme.css");

:root {
  --ink: #15202b;
  --muted: #6b7887;
  --line: #e3eaf0;
  --surface: #f3f7fa;
  --card: #ffffff;
  --green: #18a979;
  --green-dark: #0c7654;
  --blue: #2563eb;
  --orange: #ff734d;
  --indigo: #6157f3;
  --shadow: 0 18px 44px rgba(21, 32, 43, .11);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(24, 169, 121, .14), transparent 32rem),
    linear-gradient(135deg, #edf4f8, #f9fbfc);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem 1rem 6.25rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(21, 32, 43, .04), 0 26px 80px rgba(21, 32, 43, .16);
}

.role-body {
  display: grid;
  place-items: center;
}

.role-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.3rem;
  padding-bottom: 1rem;
}

.login-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.4rem;
}

.auth-top {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem 0 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0 1rem;
  background: linear-gradient(180deg, var(--surface) 74%, rgba(243, 247, 250, 0));
}

.app-header h1,
.role-hero h1 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 850;
}

.eyebrow {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.icon-btn,
.mini-btn {
  display: inline-grid;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(21, 32, 43, .06);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.mini-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.app-logo,
.role-icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.app-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: var(--shadow);
}

.role-hero {
  padding: 1.5rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 28, 37, .94), rgba(14, 28, 37, .7)),
    url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=900&q=80") center/cover;
  border-radius: 28px;
}

.role-hero .eyebrow,
.role-hero p {
  color: rgba(255, 255, 255, .74);
}

.login-hero {
  padding: 1.35rem 0 .35rem;
}

.login-hero.compact {
  padding-top: .2rem;
}

.login-hero h1 {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.02;
  font-weight: 900;
}

.login-hero p {
  max-width: 320px;
  margin: .7rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.login-card,
.demo-panel {
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(21, 32, 43, .08);
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  padding: .35rem;
  background: #eef4f7;
  border-radius: 20px;
}

.role-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  border-radius: 16px;
  font-size: .8rem;
  font-weight: 850;
}

.signup-tabs {
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: .35rem;
  border: 0;
  list-style: none;
}

.signup-tabs .nav-item {
  min-width: 0;
}

.signup-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  min-height: 42px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 16px;
  font-size: .84rem;
  font-weight: 850;
}

.signup-tabs button.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(21, 32, 43, .18);
}

.role-tabs .btn-check:checked + label {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(21, 32, 43, .18);
}

.login-form {
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
}

.login-form label span {
  display: block;
  margin-bottom: .38rem;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 850;
}

.form-icon {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 52px;
  padding: 0 .85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.form-icon input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.form-icon select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 750;
}

.form-icon textarea {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.textarea-icon {
  align-items: start;
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.textarea-icon > i {
  margin-top: .15rem;
}

.form-icon input::placeholder {
  color: #9aa8b5;
}

.form-icon > i {
  color: var(--green-dark);
}

.upload-box {
  position: relative;
  display: grid;
  place-items: center;
  gap: .25rem;
  min-height: 128px;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(180deg, #f8fbfc, #eef5f2);
  border: 1.5px dashed rgba(24, 169, 121, .5);
  border-radius: 22px;
}

.upload-box i {
  color: var(--green-dark);
  font-size: 1.8rem;
}

.upload-box strong,
.upload-box small {
  display: block;
}

.upload-box small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-icon button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.login-options a,
.signup-line a {
  color: var(--green-dark);
  font-weight: 900;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
}

.check-line span {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
  font-weight: 900;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
}

.social-login,
.demo-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.social-login button,
.demo-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 46px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  border-radius: 16px;
  font-weight: 850;
}

.social-login button {
  font-size: 1.15rem;
}

.demo-links a {
  font-size: .82rem;
}

.signup-line {
  margin: .2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
}

.role-grid {
  display: grid;
  gap: .8rem;
}

.role-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(21, 32, 43, .07);
}

.role-card strong,
.role-card small {
  display: block;
}

.role-card small {
  color: var(--muted);
}

.role-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 1.25rem;
}

.bg-green {
  background: var(--green);
}

.bg-blue {
  background: var(--blue);
}

.bg-orange {
  background: var(--orange);
}

.hero-card {
  overflow: hidden;
  min-height: 210px;
  padding: 1.2rem;
  color: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  max-width: 320px;
  margin: 1.5rem 0 .55rem;
  font-size: 1.7rem;
  line-height: 1.03;
  font-weight: 850;
}

.hero-card p {
  max-width: 310px;
  color: rgba(255, 255, 255, .78);
}

.user-hero {
  background:
    linear-gradient(135deg, rgba(13, 34, 28, .92), rgba(13, 34, 28, .34)),
    url("https://images.unsplash.com/photo-1517838277536-f5f99be501cd?auto=format&fit=crop&w=900&q=80") center/cover;
}

.water-hero {
  background:
    linear-gradient(135deg, rgba(18, 67, 102, .94), rgba(18, 67, 102, .36)),
    url("https://images.unsplash.com/photo-1548839140-29a749e1cf4d?auto=format&fit=crop&w=900&q=80") center/cover;
}

.trainer-hero {
  background:
    linear-gradient(135deg, rgba(18, 36, 74, .92), rgba(18, 36, 74, .34)),
    url("https://images.unsplash.com/photo-1594381898411-846e7d193883?auto=format&fit=crop&w=900&q=80") center/cover;
}

.trainer-market-hero {
  background:
    linear-gradient(135deg, rgba(19, 38, 61, .94), rgba(19, 38, 61, .36)),
    url("https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?auto=format&fit=crop&w=900&q=80") center/cover;
}

.admin-hero {
  background:
    linear-gradient(135deg, rgba(55, 31, 20, .94), rgba(55, 31, 20, .36)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=80") center/cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .62rem;
  color: #0d4d39;
  background: rgba(226, 250, 239, .95);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.pill.dark {
  color: #fff;
  background: var(--ink);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin: 1rem 0 1.25rem;
}

.metric-strip a {
  display: block;
  min-width: 0;
}

.metric-strip article {
  min-width: 0;
  padding: .85rem .45rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(21, 32, 43, .05);
}

.metric-strip i,
.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip strong {
  margin-top: .25rem;
  font-size: 1.15rem;
  font-weight: 850;
}

.metric-strip small {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.text-indigo {
  color: var(--indigo);
}

.app-section {
  margin-top: 1.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
}

.text-link {
  color: var(--green-dark);
  font-size: .86rem;
  font-weight: 850;
}

.list-card,
.nutrition-card,
.coach-card,
.analytics-card {
  padding: .85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(21, 32, 43, .06);
}

.media-row,
.action-row {
  display: grid;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

a.media-row,
a.action-row {
  color: var(--ink);
}

a.media-row:hover,
a.action-row:hover {
  color: var(--ink);
}

.media-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.action-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.media-row:last-child,
.action-row:last-child {
  border-bottom: 0;
}

.media-row img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
}

.media-row img.round {
  border-radius: 50%;
}

.media-row strong,
.media-row small,
.action-row strong,
.action-row small {
  display: block;
}

.media-row small,
.action-row small {
  color: var(--muted);
  font-size: .78rem;
}

.status {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
}

.status.green {
  background: var(--green);
}

.status.orange {
  background: var(--orange);
}

.nutrition-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.macro-ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 62%, var(--orange) 62% 78%, var(--blue) 78% 91%, #e8eef3 91% 100%);
}

.macro-ring span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border-radius: 50%;
  font-weight: 850;
  line-height: 1.05;
}

.macro-ring small {
  color: var(--muted);
  font-size: .7rem;
}

.macro-bars label,
.analytics-card div:not(.progress) {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.macro-bars label b,
.analytics-card strong {
  color: var(--ink);
}

.progress {
  height: .48rem;
  margin: .35rem 0 .75rem;
  overflow: hidden;
  background: #e8eef3;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.progress.orange span {
  background: var(--orange);
}

.progress.blue span {
  background: var(--blue);
}

.coach-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  color: #fff;
  background: linear-gradient(135deg, #14222b, #263a4d);
}

.coach-card i {
  color: #ffd166;
  font-size: 1.5rem;
}

.coach-card p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-weight: 650;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.tool-grid button,
.tool-grid a {
  display: grid;
  gap: .45rem;
  place-items: center;
  min-height: 96px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  border-radius: 22px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(21, 32, 43, .05);
}

.tool-grid i {
  color: var(--green-dark);
  font-size: 1.45rem;
}

.analytics-card {
  display: grid;
  gap: .1rem;
}

.chip-scroll {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .2rem;
}

.chip-scroll button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
}

.chip-scroll button.active {
  color: #fff;
  background: var(--ink);
}

.trainer-card {
  display: grid;
  gap: .9rem;
  margin-bottom: .9rem;
  padding: .9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(21, 32, 43, .06);
}

.trainer-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
}

.trainer-main img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 22px;
}

.trainer-main h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.trainer-main p {
  margin: .15rem 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
}

.trainer-main span {
  color: #d99200;
  font-size: .78rem;
  font-weight: 850;
}

.trainer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.trainer-actions .btn {
  min-height: 44px;
  border-radius: 16px;
  font-weight: 850;
}

.chat-shell {
  padding-bottom: 1rem;
}

.chat-profile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(21, 32, 43, .06);
}

.chat-profile img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}

.chat-profile strong,
.chat-profile small {
  display: block;
}

.chat-profile small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.chat-profile .status {
  display: inline-block;
  margin-right: .25rem;
}

.message-list {
  display: grid;
  gap: .65rem;
  padding: 1rem 0;
}

.message {
  max-width: 82%;
  padding: .75rem .85rem;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 650;
}

.trainer-msg {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 8px;
}

.user-msg {
  justify-self: end;
  color: #fff;
  background: var(--green-dark);
  border-bottom-right-radius: 8px;
}

.booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .9rem;
  background: #fff6ef;
  border: 1px solid #ffe0cc;
  border-radius: 24px;
}

.booking-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.booking-card small {
  color: var(--muted);
  font-weight: 750;
}

.booking-options {
  display: grid;
  gap: .75rem;
}

.booking-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(21, 32, 43, .05);
}

.booking-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.booking-option:has(input:checked) {
  border-color: rgba(24, 169, 121, .7);
  box-shadow: 0 14px 32px rgba(24, 169, 121, .13);
}

.booking-option > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 14px;
}

.booking-option strong,
.booking-option small {
  display: block;
}

.booking-option small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.booking-option b {
  font-size: .82rem;
  white-space: nowrap;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.slot-grid button {
  min-height: 64px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  border-radius: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(21, 32, 43, .05);
}

.slot-grid button.active {
  color: #fff;
  background: var(--ink);
}

.slot-grid small {
  color: inherit;
  opacity: .72;
  font-weight: 800;
}

.chat-input {
  position: sticky;
  bottom: .75rem;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  padding: .45rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(21, 32, 43, .14);
  backdrop-filter: blur(18px);
}

.chat-input button {
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--ink);
  background: var(--surface);
  border-radius: 16px;
}

.chat-input button:last-child {
  color: #fff;
  background: var(--green-dark);
}

.chat-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 750;
}

.profile-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 16px 42px rgba(21, 32, 43, .08);
}

.profile-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 22px;
}

.profile-summary h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.profile-summary p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}

.profile-form {
  padding: .85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(21, 32, 43, .06);
}

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

.builder-block {
  display: grid;
  gap: .8rem;
  padding: .85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.builder-head strong {
  font-size: .95rem;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: .75rem;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(calc(100% - 1.5rem), 398px);
  padding: .5rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(227, 234, 240, .9);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(21, 32, 43, .18);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav.trainer-nav {
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: .15rem;
  min-height: 52px;
  color: var(--muted);
  border-radius: 18px;
  font-size: .66rem;
  font-weight: 800;
}

.bottom-nav a.active {
  color: #fff;
  background: var(--ink);
}

.bottom-nav i {
  font-size: 1.05rem;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 5.4rem;
  z-index: 60;
  max-width: min(calc(100% - 2rem), 360px);
  padding: .78rem 1rem;
  color: #fff;
  background: rgba(21, 32, 43, .94);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(21, 32, 43, .2);
  font-size: .86rem;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, .8rem);
  transition: opacity .2s ease, transform .2s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 768px) {
  body {
    padding: 1.5rem 0;
  }

  .phone-shell {
    min-height: calc(100vh - 3rem);
    border-radius: 34px;
  }
}
