/* ==========================================================
   Çiğdem Eroğlu — web app (client portal + dietitian CRM)
   Tokens follow shadcn/ui conventions: neutral surfaces, hairline
   borders, a radius scale and visible focus rings; brand colours
   come from the marketing site (forest, gold, ivory).
   ========================================================== */

:root {
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --muted: #F3EFE8;
  --border: #E8E2D8;
  --fg: #17201C;
  --muted-fg: #6B736E;
  --primary: #1D3A2F;
  --primary-2: #142A22;
  --accent: #B8925A;
  --accent-l: #D9BC8C;
  --accent-bg: #F6EEE1;
  --ring: rgba(184, 146, 90, .4);
  --success: #2F7A55;
  --success-bg: #E5F1EA;
  --warn: #9A6224;
  --warn-bg: #F8EEDF;
  --danger: #B4533F;
  --danger-bg: #F8E6E1;
  --water: #7FAFC2;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 28, .05);
  --shadow-lg: 0 24px 60px -20px rgba(23, 32, 28, .35);

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-l); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clover { width: 1em; height: 1em; fill: var(--accent); flex: none; }

/* ---------- Type ---------- */
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-fg); }
.h1 { font: 600 clamp(26px, 3vw, 32px)/1.15 var(--display); letter-spacing: -.035em; }
.h2 { font: 600 18px/1.3 var(--display); letter-spacing: -.02em; }
.num { font: 600 28px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted-fg); }
.small { font-size: 13px; }
.down { color: var(--success); }
.up { color: var(--danger); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent; background: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-2); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #A47E47; }
.btn--outline { background: var(--card); border-color: var(--border); }
.btn--outline:hover { background: var(--muted); }
.btn--ghost:hover { background: var(--muted); }
.btn--danger { color: var(--danger); background: var(--card); border-color: var(--border); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn--lg { height: 50px; padding: 0 22px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.error { font-size: 13px; color: var(--danger); min-height: 1.3em; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; height: 54px; text-align: center; font: 600 22px var(--display); border: 1px solid var(--border); border-radius: var(--r); background: var(--card); }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r); background: var(--muted); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--muted-fg); transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: var(--shadow-sm); }
.seg--block { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 99px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--muted { background: var(--muted); color: var(--muted-fg); }
.badge--accent { background: var(--accent-bg); color: #8A6A38; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card--soft { background: var(--muted); border-color: transparent; box-shadow: none; }
.card--hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; border-color: var(--primary); }
.card--hero .eyebrow { color: var(--accent-l); }
.card--hero__mark { position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; fill: rgba(217, 188, 140, .08); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 16px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; object-fit: cover; object-position: center 20%; background: var(--accent-bg); color: #8A6A38; font: 600 13px var(--display); }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.empty { padding: 24px; text-align: center; color: var(--muted-fg); font-size: 14px; }

/* ================= Login ================= */
.login { min-height: 100svh; display: grid; }
.login__art { position: relative; display: none; overflow: hidden; background: var(--primary-2); color: #fff; }
.login__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; animation: settle 6s var(--ease) both; }
.login__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 42, 34, .2), rgba(20, 42, 34, .92)); }
.login__quote { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 48px; }
.login__quote p { font: 600 clamp(30px, 3vw, 44px)/1.05 var(--display); letter-spacing: -.045em; max-width: 14ch; }
.login__quote em { font-weight: 300; color: var(--accent-l); }
.login__quote small { display: block; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .7); }
@keyframes settle { from { transform: scale(1.1); } }
.login__panel { display: flex; flex-direction: column; padding: calc(var(--safe-t) + 28px) 24px 28px; max-width: 460px; width: 100%; margin: 0 auto; }
.login__form { display: grid; gap: 18px; margin: auto 0; padding: 40px 0; }
.login__foot { font-size: 12px; color: var(--muted-fg); }
.demo-note { padding: 12px 14px; border-radius: var(--r); background: var(--accent-bg); color: #6F5228; font-size: 13px; line-height: 1.6; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 16px/1.1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.logo .clover { font-size: 30px; }
.logo small { display: block; margin-top: 2px; font: 500 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-fg); }
@media (min-width: 960px) { .login { grid-template-columns: 1.1fr 1fr; } .login__art { display: block; } }

/* ================= Shell ================= */
.shell { min-height: 100svh; }
.side { display: none; }
.content { padding: calc(var(--safe-t) + 20px) 16px calc(var(--safe-b) + 96px); max-width: 1120px; margin: 0 auto; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.page-head .h1 { margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; color: var(--muted-fg); font-weight: 600; font-size: 14px; text-decoration: none; border: 0; background: none; padding: 0; }
.back:hover { color: var(--fg); }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 6px calc(var(--safe-b) + 8px); background: rgba(255, 255, 255, .95); border-top: 1px solid var(--border); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bottom-nav button { position: relative; border: 0; background: none; display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted-fg); }
.bottom-nav button[aria-current="page"] { color: var(--primary); }
.bottom-nav button[aria-current="page"]::before { content: ""; position: absolute; top: -8px; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--accent); }

@media (min-width: 960px) {
  .shell:not([hidden]) { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 24px 14px; background: var(--card); border-right: 1px solid var(--border); }
  .side .logo { padding: 0 10px; margin-bottom: 28px; }
  .side__nav { display: grid; gap: 2px; }
  .side__nav button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; border-radius: var(--r); background: none; color: var(--muted-fg); font-weight: 500; text-align: left; transition: background .2s, color .2s; }
  .side__nav button:hover { background: var(--muted); color: var(--fg); }
  .side__nav button[aria-current="page"] { background: var(--muted); color: var(--fg); font-weight: 600; }
  .side__nav button[aria-current="page"] .ic { stroke: var(--accent); }
  .side__nav .count { margin-left: auto; }
  .side__user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
  .content { padding: 36px 40px 64px; }
  .bottom-nav { display: none; }
}
.view-in { animation: in .4s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

/* Layout grids */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.cols { display: grid; gap: 16px; }
@media (min-width: 1080px) { .cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.kpi { padding: 16px; }
.kpi .num { margin: 8px 0 4px; }
.spark { display: block; width: 100%; height: 28px; margin-top: 8px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }

/* Progress ring */
.hero-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: rgba(255, 255, 255, .14); }
.ring .val { stroke: var(--accent-l); stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.4s var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label b { font: 600 24px/1 var(--display); letter-spacing: -.04em; }
.ring__label span { font-size: 11px; color: rgba(255, 255, 255, .65); }
.hero-num { font: 600 36px/1 var(--display); letter-spacing: -.045em; margin: 6px 0 8px; }
.hero-meta { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* Water */
.glasses { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.glass { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 1.5px solid var(--border); border-radius: 6px 6px 10px 10px; background: var(--card); overflow: hidden; }
.glass::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--water); transition: height .45s var(--ease); }
.glass[aria-pressed="true"]::after { height: 78%; }

/* Meals */
.meal { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--border); }
.meal:first-child { border-top: 0; padding-top: 0; }
.meal:last-child { padding-bottom: 0; }
.meal__time { font: 500 13px var(--display); color: var(--muted-fg); padding-top: 2px; }
.meal h4 { font: 600 15px var(--display); letter-spacing: -.01em; }
.meal p { font-size: 13.5px; color: var(--muted-fg); margin-top: 2px; }
.meal.is-done h4 { color: var(--muted-fg); text-decoration: line-through; text-decoration-color: var(--border); }
.check { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); display: grid; place-items: center; padding: 0; transition: background .2s, border-color .2s; }
.check .ic { width: 14px; height: 14px; stroke-width: 3; color: var(--accent-l); opacity: 0; }
.check[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.check[aria-checked="true"] .ic { opacity: 1; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.week button { border: 1px solid var(--border); background: var(--card); border-radius: var(--r); padding: 8px 0; font-size: 12.5px; font-weight: 600; color: var(--muted-fg); }
.week button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Tip card */
.tip { display: flex; align-items: center; gap: 14px; padding: 12px; }
.tip img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.tip b { display: block; font: 600 16px var(--display); letter-spacing: -.02em; margin: 3px 0 2px; }

/* Chart */
.chart { width: 100%; height: 210px; overflow: visible; }
.chart .grid-line { stroke: var(--border); }
.chart .axis { font: 500 11px var(--sans); fill: var(--muted-fg); }
.chart .area { fill: url(#areaGrad); }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .goal { stroke: var(--accent); stroke-dasharray: 4 4; }
.chart .dot { fill: var(--card); stroke: var(--primary); stroke-width: 2.5; }

/* Lists & tables */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row:last-child { padding-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted-fg); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-top: 1px solid var(--border); white-space: nowrap; }
.table tr:first-child td { border-top: 0; }
.table--click tbody tr { cursor: pointer; transition: background .15s; }
.table--click tbody tr:hover { background: var(--bg); }
.person { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-fg); }
.search .input { padding-left: 38px; height: 40px; }
@media (max-width: 700px) { .hide-sm { display: none; } }

.appt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.appt:first-child { border-top: 0; padding-top: 0; }
.appt:last-child { padding-bottom: 0; }
.appt__date { width: 52px; text-align: center; padding: 6px 0; border-radius: var(--r); background: var(--muted); }
.appt__date b { display: block; font: 600 18px/1.1 var(--display); }
.appt__date span { font-size: 11px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .06em; }
.appt__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.note { padding: 12px 0; border-top: 1px solid var(--border); }
.note:first-child { border-top: 0; }
.note p { margin-top: 2px; }

.pkg { display: flex; align-items: center; gap: 14px; }
.pkg__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.pkg__bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.diet-edit { display: grid; gap: 10px; }
.diet-edit__row { display: grid; grid-template-columns: 74px 120px 1fr; gap: 8px; }
.diet-edit__row .input { height: 40px; font-size: 14px; }
@media (max-width: 700px) { .diet-edit__row { grid-template-columns: 70px 1fr; } .diet-edit__row .input:last-child { grid-column: 1 / -1; } }

/* ================= Sheet ================= */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; transition: visibility 0s linear .45s; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(20, 42, 34, .4); opacity: 0; transition: opacity .3s; }
.sheet__panel { position: relative; width: 100%; max-width: 560px; max-height: 90svh; overflow-y: auto; background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 12px 20px calc(var(--safe-b) + 24px); transform: translateY(100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); }
.sheet__grip { width: 40px; height: 5px; border-radius: 99px; background: var(--border); margin: 0 auto 16px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet.is-open { visibility: visible; transition: none; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
@media (min-width: 720px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: var(--r-xl); padding-bottom: 24px; transform: translateY(16px); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
  .sheet.is-open .sheet__panel { opacity: 1; }
  .sheet__grip { display: none; }
}

/* Toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--safe-b) + 88px); transform: translate(-50%, 16px); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--r); background: var(--fg); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--accent-l); }
.toast.is-error .ic { display: none; }
@media (min-width: 960px) { .toast { left: auto; right: 24px; bottom: 24px; transform: translateY(16px); } .toast.is-on { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ================= Richer screens ================= */
/* Today: photo header */
.today-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); margin-bottom: 14px; min-height: 168px; display: flex; align-items: flex-end; color: #fff; background: var(--primary); }
.today-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.today-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 42, 34, .1), rgba(20, 42, 34, .85)); }
.today-hero__inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; padding: 20px; }
.today-hero__date { font-size: 13px; color: rgba(255, 255, 255, .75); margin-bottom: 2px; }
.avatar--btn { width: 44px; height: 44px; border: 2px solid rgba(255, 255, 255, .7); background: var(--accent-bg); }
@media (min-width: 960px) { .today-hero { min-height: 210px; } .today-hero__inner { padding: 28px; } .avatar--btn { display: none; } }

/* Quick actions */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick__btn { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); font-size: 12.5px; font-weight: 600; text-align: center; text-decoration: none; color: var(--fg); transition: background .2s, border-color .2s; }
.quick__btn:hover { background: var(--muted); }
.quick__btn .ic { color: var(--primary); }
.quick__btn--streak { background: var(--accent-bg); border-color: transparent; cursor: default; }
.quick__btn--streak .ic { color: var(--accent); }
.quick__btn--streak b { font: 600 15px var(--display); }

/* Tip of the day */
.tipday { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; background: var(--muted); border-color: transparent; box-shadow: none; }
.tipday .clover { font-size: 22px; margin-top: 2px; }
.tipday p:last-child { margin-top: 4px; }
button.card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .2s; }
button.card:hover { background: var(--bg); }

/* Recipes */
.recipes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.recipe { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--card); text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.recipe:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(23, 32, 28, .4); }
.recipe__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.recipe__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.recipe:hover .recipe__img img { transform: scale(1.05); }
.recipe__body { display: grid; gap: 6px; padding: 14px 16px 16px; justify-items: start; }
.recipe__body b { font: 600 16.5px/1.3 var(--display); letter-spacing: -.02em; }
.recipe__body .small { display: inline-flex; align-items: center; gap: 4px; }
.recipe__body .ic { width: 14px; height: 14px; }
.recipe-sheet__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
.ing { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ing li { display: flex; gap: 10px; align-items: baseline; }
.ing li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.steps-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.steps-list li::marker { font-weight: 700; color: var(--accent); }

/* Milestones */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.mbadge { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: var(--r-lg); border: 1px dashed var(--border); text-align: center; color: var(--muted-fg); }
.mbadge .ic { width: 28px; height: 28px; }
.mbadge b { font: 600 14px var(--display); color: var(--fg); }
.mbadge span { font-size: 12px; }
.mbadge.is-on { border-style: solid; border-color: var(--accent-l); background: var(--accent-bg); color: #8A6A38; }
.mbadge.is-on .ic { color: var(--accent); }

/* Week bars (dashboard) */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; }
.bars__col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.bars__n { font: 600 13px var(--display); }
.bars__bar { position: relative; width: 100%; max-width: 44px; border-radius: 8px; background: var(--muted); display: flex; align-items: flex-end; overflow: hidden; }
.bars__bar i { display: block; width: 100%; background: var(--primary); border-radius: 8px; transition: height .8s var(--ease); }
.bars__bar em { position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.bars__d { font-size: 12px; color: var(--muted-fg); }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.cal__day { min-height: 320px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.cal__day.is-today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.cal__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.cal__head span { font-size: 12px; font-weight: 600; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .06em; }
.cal__head b { font: 600 20px var(--display); }
.cal__item { display: grid; gap: 1px; padding: 8px 10px; border: 0; border-left: 3px solid var(--primary); border-radius: 8px; background: var(--muted); text-align: left; font-size: 13px; }
.cal__item b { font: 600 13px var(--display); }
.cal__item small { color: var(--muted-fg); font-size: 11.5px; }
.cal__item--pending { border-left-color: var(--accent); background: var(--accent-bg); }
.cal__item:hover { filter: brightness(.97); }
.cal__empty { color: var(--border); text-align: center; margin-top: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.dot--approved { background: var(--primary); }
.dot--pending { background: var(--accent); }

/* ================= Colour system (pro polish) ================= */
:root {
  --c-green: #2E9A6B;  --c-green-bg: #E3F4EC;
  --c-blue: #3A7FC1;   --c-blue-bg: #E3EEFA;
  --c-amber: #D18B22;  --c-amber-bg: #FBF0DB;
  --c-rose: #CF5675;   --c-rose-bg: #FBE6EC;
  --c-violet: #7A5FC8; --c-violet-bg: #EEE9FA;
  --c-teal: #1E8A88;   --c-teal-bg: #DFF2F1;
  --grad-forest: linear-gradient(135deg, #17342A 0%, #1F4A3A 45%, #2F6E56 100%);
}
.tone--green  { --t: var(--c-green);  --tb: var(--c-green-bg); }
.tone--blue   { --t: var(--c-blue);   --tb: var(--c-blue-bg); }
.tone--amber  { --t: var(--c-amber);  --tb: var(--c-amber-bg); }
.tone--rose   { --t: var(--c-rose);   --tb: var(--c-rose-bg); }
.tone--violet { --t: var(--c-violet); --tb: var(--c-violet-bg); }
.tone--teal   { --t: var(--c-teal);   --tb: var(--c-teal-bg); }
.badge[class*="tone--"] { background: var(--tb); color: var(--t); }
.tone-bg--green { background: var(--c-green); } .tone-bg--blue { background: var(--c-blue); } .tone-bg--amber { background: var(--c-amber); }
.tone-bg--rose { background: var(--c-rose); } .tone-bg--violet { background: var(--c-violet); } .tone-bg--teal { background: var(--c-teal); }
.tone-stroke--green { stroke: var(--c-green); } .tone-stroke--blue { stroke: var(--c-blue); } .tone-stroke--amber { stroke: var(--c-amber); }
.tone-stroke--rose { stroke: var(--c-rose); } .tone-stroke--violet { stroke: var(--c-violet); } .tone-stroke--teal { stroke: var(--c-teal); }

/* Buttons: richer primary */
.btn--primary { background: var(--grad-forest); box-shadow: 0 8px 20px -12px rgba(23, 52, 42, .8); }
.btn--primary:hover { background: var(--grad-forest); filter: brightness(1.08); }

/* Dark sidebar */
@media (min-width: 960px) {
  .side { background: var(--grad-forest); border-right: 0; color: rgba(255, 255, 255, .92); }
  .side .logo small { color: rgba(255, 255, 255, .55); }
  .side__nav button { color: rgba(255, 255, 255, .68); position: relative; }
  .side__nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .side__nav button[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
  .side__nav button[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-l); }
  .side__nav button[aria-current="page"] .ic { stroke: var(--accent-l); }
  .side__user { border-top-color: rgba(255, 255, 255, .12); }
  .side__user .muted { color: rgba(255, 255, 255, .55); }
  .side__user .btn--ghost { color: rgba(255, 255, 255, .8); }
  .side__user .btn--ghost:hover { background: rgba(255, 255, 255, .08); }
  .side .badge--accent { background: var(--accent); color: #fff; }
}

/* Bottom nav: active pill */
.bottom-nav button[aria-current="page"]::before { display: none; }
.bottom-nav button .ic { padding: 4px 14px; box-sizing: content-box; border-radius: 99px; transition: background .25s; }
.bottom-nav button[aria-current="page"] .ic { background: var(--c-green-bg); stroke: var(--primary); }

/* KPI cards: each gets its own tint */
.kpis .kpi { position: relative; overflow: hidden; border-color: transparent; background: linear-gradient(160deg, var(--kb) 0%, #fff 72%); box-shadow: 0 1px 2px rgba(23, 32, 28, .05), inset 0 0 0 1px rgba(23, 32, 28, .05); }
.kpis .kpi::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--k); opacity: .12; }
.kpis .kpi .eyebrow { color: var(--k); }
.kpis .kpi:nth-child(1) { --k: var(--c-green); --kb: var(--c-green-bg); }
.kpis .kpi:nth-child(2) { --k: var(--c-blue); --kb: var(--c-blue-bg); }
.kpis .kpi:nth-child(3) { --k: var(--c-amber); --kb: var(--c-amber-bg); }
.kpis .kpi:nth-child(4) { --k: var(--c-violet); --kb: var(--c-violet-bg); }

/* Hero progress card: gradient + glow */
.card--hero { background: var(--grad-forest); border: 0; box-shadow: 0 20px 40px -24px rgba(23, 52, 42, .9); }
.card--hero::before { content: ""; position: absolute; left: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 188, 140, .25), transparent); }
.ring .val { stroke: var(--accent-l); filter: drop-shadow(0 0 6px rgba(217, 188, 140, .5)); }

/* Water card in blue */
.card:has(.glasses) { background: linear-gradient(170deg, var(--c-blue-bg), #fff 65%); border-color: transparent; }
.card:has(.glasses) .h2 { color: var(--c-blue); }
.glass { border-color: #C9DCEB; }
.glass::after { background: linear-gradient(180deg, #8EC3DE, var(--c-blue)); }

/* Meals: coloured time pill */
.meal__time { display: inline-flex; justify-content: center; align-self: start; padding: 3px 0; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--t, var(--muted-fg)); background: var(--tb, var(--muted)); }
.meal--amber { --t: var(--c-amber); --tb: var(--c-amber-bg); }
.meal--green { --t: var(--c-green); --tb: var(--c-green-bg); }
.meal--rose { --t: var(--c-rose); --tb: var(--c-rose-bg); }
.meal--violet { --t: var(--c-violet); --tb: var(--c-violet-bg); }
.meal--teal { --t: var(--c-teal); --tb: var(--c-teal-bg); }
.check[aria-checked="true"] { background: var(--c-green); border-color: var(--c-green); }
.check[aria-checked="true"] .ic { color: #fff; }

/* Quick actions: coloured icons */
.quick__btn:nth-child(1) .ic { color: var(--c-green); }
.quick__btn:nth-child(2) .ic { color: var(--c-blue); }
.quick__btn:nth-child(3) .ic { color: var(--c-violet); }
.quick__btn .ic { width: 24px; height: 24px; padding: 8px; border-radius: 12px; box-sizing: content-box; background: var(--muted); }
.quick__btn:nth-child(1) .ic { background: var(--c-green-bg); }
.quick__btn:nth-child(2) .ic { background: var(--c-blue-bg); }
.quick__btn:nth-child(3) .ic { background: var(--c-violet-bg); }
.quick__btn--streak .ic { background: #fff; color: var(--c-amber); }

/* Tip of the day */
.tipday { background: linear-gradient(120deg, var(--accent-bg), #fff 80%); }

/* Appointments & calendar tinted by service */
.appt__date[class*="tone--"] { background: var(--tb); }
.appt__date[class*="tone--"] b { color: var(--t); }
.cal__item[class*="tone--"] { border-left-color: var(--t); background: var(--tb); }
.cal__item--pending { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .55) 6px 12px); }

/* Week bars in gradient */
.bars__bar i { background: linear-gradient(180deg, #3E8A6E, var(--primary)); }

/* Donut */
.mix { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.donut { position: relative; width: 150px; height: 150px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut__track { stroke: var(--muted); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center b { font: 600 28px/1 var(--display); letter-spacing: -.04em; }
.donut__center span { font-size: 12px; color: var(--muted-fg); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 160px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-family: var(--display); }

/* Milestones in gold */
.mbadge.is-on { background: linear-gradient(160deg, #FFF6E5, var(--accent-bg)); }

/* Login: tinted art + panel polish */
.login__art::after { background: linear-gradient(180deg, rgba(23, 52, 42, .15), rgba(23, 52, 42, .92)); }
.login__panel .seg button[aria-selected="true"] { color: var(--primary); }
.demo-note { background: linear-gradient(120deg, var(--accent-bg), #fff); border: 1px solid #EFDFC3; }

/* ================= Login art: app showcase ================= */
.login__art { background: var(--grad-forest); display: none; }
.login__art img.login__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; mix-blend-mode: luminosity; animation: settle 8s var(--ease) both; }
.login__art::after { background: radial-gradient(600px 420px at 70% 30%, rgba(217, 188, 140, .22), transparent 70%), linear-gradient(180deg, transparent 55%, rgba(16, 38, 30, .85)); }
.showcase { position: absolute; z-index: 1; left: 50%; top: 46%; width: min(300px, 40%); transform: translate(-50%, -50%); }
.showcase__phone { position: relative; border-radius: 36px; border: 8px solid #0B1A14; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(-3deg); animation: phoneIn 1.2s var(--ease) both; }
.showcase__phone img { display: block; width: 100%; height: auto; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--fg); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); white-space: nowrap; animation: floatIn .9s var(--ease) both, bob 6s ease-in-out infinite; }
.float b { display: block; font: 600 14px var(--display); letter-spacing: -.01em; }
.float small { font-size: 11.5px; color: var(--muted-fg); }
.float__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tb); color: var(--t); flex: none; }
.float__ic .ic { width: 18px; height: 18px; }
.float--1 { left: -58%; top: 12%; animation-delay: .5s, .5s; }
.float--2 { right: -62%; top: 30%; animation-delay: .65s, 1.5s; }
.float--3 { left: -66%; top: 62%; animation-delay: .8s, 2.5s; }
.float--4 { right: -50%; top: 80%; animation-delay: .95s, 3.5s; }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes bob { 50% { translate: 0 -8px; } }
.login__quote { left: 48px; right: 48px; bottom: 40px; text-align: left; }
.login__quote p { font-size: clamp(24px, 2.2vw, 32px); max-width: 22ch; }
@media (min-width: 960px) { .login__art { display: block; } }
@media (min-width: 960px) and (max-height: 760px) { .showcase { width: min(240px, 34%); top: 42%; } }
@media (prefers-reduced-motion: reduce) { .float, .showcase__phone { animation: none; } }
.login__art .showcase__phone img { position: static; width: 100%; height: auto; opacity: 1; animation: none; object-fit: initial; }

/* ================= Sales · reminders · motivation ================= */
.linklike { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.input--sm { height: 36px; padding: 0 10px; font-size: 13.5px; width: auto; margin-top: 8px; }

/* Message from the dietitian */
.message { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; background: linear-gradient(120deg, var(--c-violet-bg), #fff 75%); border-color: transparent; }
.message .avatar { width: 44px; height: 44px; }
.message .eyebrow { color: var(--c-violet); }
.message p:last-child { margin-top: 4px; font-size: 15.5px; }

/* Daily goals */
.goals__bar { height: 8px; border-radius: 99px; background: var(--muted); overflow: hidden; margin-bottom: 14px; }
.goals__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c-green), #5BC294); transition: width .8s var(--ease); }
.goals__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.goal { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); text-align: left; font: inherit; color: inherit; }
button.goal { cursor: pointer; }
button.goal:hover { background: var(--muted); }
.goal__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tb); color: var(--t); flex: none; }
.goal__ic .ic { width: 18px; height: 18px; }
.goal b { display: block; font: 600 14px var(--display); }
.goal small { font-size: 12px; color: var(--muted-fg); }
.goal.is-done { background: var(--tb); border-color: transparent; }
.goal.is-done .goal__ic { background: var(--t); color: #fff; }
.goals__done { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--c-green-bg); color: var(--c-green); font-weight: 600; font-size: 14px; }
@media (max-width: 520px) { .goals__list { grid-template-columns: 1fr; } }

/* Product pick on Today */
.shop-pick { display: flex; align-items: center; gap: 14px; padding: 12px; }
.shop-pick__img { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--tb); color: var(--t); }
.shop-pick__img img { width: 100%; height: 100%; object-fit: cover; }
.shop-pick b { display: block; font: 600 16px var(--display); letter-spacing: -.02em; margin: 2px 0; }

/* Shop */
.shop-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; background: var(--primary); margin-bottom: 16px; }
.shop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 42, 34, .92), rgba(20, 42, 34, .55) 60%, rgba(20, 42, 34, .2)); }
.shop-hero__inner { position: relative; z-index: 1; padding: 28px 22px; max-width: 520px; display: grid; gap: 10px; justify-items: start; }
.shop-hero .eyebrow { color: var(--accent-l); }
.shop-hero p:not(.eyebrow) { color: rgba(255, 255, 255, .8); font-size: 14.5px; }
@media (min-width: 960px) { .shop-hero__inner { padding: 40px; } }
.products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--card); transition: transform .3s var(--ease), box-shadow .3s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(23, 32, 28, .4); }
.product__img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(150deg, var(--tb), #fff); color: var(--t); overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__img .badge { position: absolute; top: 12px; left: 12px; background: #fff; }
.product__mark { display: grid; justify-items: center; gap: 6px; font: 600 18px var(--display); letter-spacing: -.02em; }
.product__mark .clover { font-size: 44px; fill: var(--t); }
.product__body { display: grid; gap: 8px; padding: 16px; flex: 1; align-content: start; }
.product__body h3 { font: 600 17px var(--display); letter-spacing: -.02em; }
.product__when { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); }
.product__when .ic { width: 15px; height: 15px; }
.product__body .btn { margin-top: 6px; }

/* Last 7 days */
.days7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 130px; }
.day7 { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 4px; }
.day7__bar { width: 100%; max-width: 36px; border-radius: 8px; background: var(--muted); display: flex; align-items: flex-end; overflow: hidden; }
.day7__bar i { display: block; width: 100%; border-radius: 8px; background: linear-gradient(180deg, #5BC294, var(--c-green)); }
.day7 b { font: 600 12px var(--display); }
.day7 small { font-size: 11.5px; color: var(--muted-fg); }

/* Notice */
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--r); background: var(--c-blue-bg); color: #24507A; font-size: 14px; }

/* Confetti */
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes fall { to { top: 105%; translate: 0 0; transform: rotate(540deg); opacity: .9; } }
.admin-who { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); }
.admin-who .avatar { width: 44px; height: 44px; }

/* ---------- Video call, steps, motivation ---------- */
.call-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; background: linear-gradient(120deg, var(--c-green-bg), #fff 75%); border-color: transparent; flex-wrap: wrap; }
.stack > .call-card { margin-top: 0; }
.call-card__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c-green); color: #fff; flex: none; }
.call-card__ic .ic { width: 22px; height: 22px; }
.call-card .grow { min-width: 160px; }
.call-card .btn { flex: none; }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; }
.steps__col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.steps__col i { align-self: end; display: block; min-height: 4px; border-radius: 6px 6px 3px 3px; background: var(--c-amber, #D99A2B); opacity: .55; }
.steps__col i.is-goal { opacity: 1; }
.steps__col small { color: var(--muted-fg); font-size: 11px; }
.motive { position: fixed; z-index: 70; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 16px); width: min(440px, calc(100% - 32px)); transform: translate(-50%, -24px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 18px; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); transition: opacity .35s, transform .45s var(--ease); }
.motive.is-in { opacity: 1; transform: translate(-50%, 0); }
.motive p { flex: 1; font-size: 15px; line-height: 1.45; }
.motive__mark { width: 28px; height: 28px; flex: none; fill: #9BD3B5; }
.motive__x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.motive__x .ic { width: 16px; height: 16px; }
.login-legal { margin-top: 10px; }
.login-legal a, .card a { color: var(--primary); text-decoration: underline; }
