/* =====================================================================
   Green Thumb Seniors – стилове
   Изгледът е „mobile first“: основните правила са за ТЕЛЕФОН (под 768px).
   Правилата в @media (min-width: 768px) превключват към ИЗГЛЕДА ЗА ТАБЛЕТ.
   ===================================================================== */

/* ===================== ЦВЕТОВЕ И ГЛОБАЛНИ НАСТРОЙКИ ===================== */
/* Цветова схема на проекта и глобални настройки (размер на текста, контраст). */
:root {
  --primary: #81C974;        /* листно зелено: иконки, активно меню, прогрес (с тъмен текст) */
  --primary-press: #68B25B;
  --secondary: #2D5A43;      /* зелени бутони с бял текст, заглавия */
  --warm: #E58B58;           /* значки „Ново“, внимание */
  --bg: #F8FAF7;
  --surface: #FFFFFF;
  --line: #E2E8E0;
  --text: #3E4A3F;
  --heading: #18221B;
  --tint: #EAF5E7;           /* светъл акцент за избрано (производен) */
  --success: #52A644;
  --warning: #E5A93C;
  --error: #D9534F;
  --info: #4B9CD3;
  --control-edge: #3E4A3F;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 22px;
  --shadow: 0 2px 8px rgba(24, 34, 27, 0.05);
  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: 20px;
  color-scheme: light;
}
html { font-size: 100%; }
html[data-size='l'] { font-size: 112.5%; }
html[data-size='xl'] { font-size: 125%; }
html[data-contrast='high'] {
  --text: #18221B;
  --line: #3E4A3F;
}
@media (min-width: 768px) {
  :root { --pad: 40px; }
}

/* ===================== ОСНОВА ===================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
#app { min-height: 100dvh; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--secondary); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===================== КОМПОНЕНТИ ===================== */
/* ---------- оформление ---------- */
.screen { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
.screen__main {
  flex: 1; width: 100%; max-width: 1040px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px var(--pad) 24px;
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--wrap { flex-wrap: wrap; }
.row__grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-2--stretch { align-items: stretch; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h1 { font-size: 1.75rem; line-height: 1.3; font-weight: 700; color: var(--heading); }
.h2 { font-size: 1.25rem; font-weight: 700; color: var(--secondary); }
.title { font-size: 1.25rem; font-weight: 700; color: var(--heading); }
.strong { font-weight: 700; color: var(--heading); }
.small { font-size: 0.9375rem; }
.center { text-align: center; }

/* ---------- горни ленти ---------- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px var(--pad); padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.app-header__logo { display: flex; align-items: center; min-width: 0; min-height: 48px; }
.app-header__logo img { display: block; height: 44px; width: auto; }
@media (min-width: 768px) { .app-header__logo img { height: 52px; } }
.app-header__tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border: 2px solid var(--secondary); border-radius: 28px;
  background: var(--surface); color: var(--secondary);
}
.back-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px; min-height: 72px;
  padding: 8px var(--pad); padding-top: max(8px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.back-header__title { flex: 1; min-width: 0; text-align: center; font-size: 1.375rem; font-weight: 700; color: var(--heading); padding-right: 100px; }
@media (max-width: 420px) { .back-header__title { padding-right: 0; text-align: left; } }

/* ---------- долна лента: меню + ЕС ---------- */
.bottom-bar { position: sticky; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 4px 8px 2px; max-width: 760px; margin: 0 auto; }
@media (min-width: 768px) { .bottom-nav { gap: 48px; } }
.bottom-nav__item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: 66px; padding-top: 6px;
  color: var(--text); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere; text-decoration: none;
}
.bottom-nav__pill { display: flex; align-items: center; justify-content: center; width: 56px; height: 34px; border-radius: 17px; }
.bottom-nav__item.is-active { color: var(--heading); font-weight: 700; }
.bottom-nav__item.is-active .bottom-nav__pill { background: var(--primary); }
.badge {
  position: absolute; top: 4px; left: 50%; margin-left: 10px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--warm); color: var(--heading); font-size: 0.8125rem; font-weight: 700; line-height: 22px;
}
.eu-footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 16px 10px; color: var(--heading); }
.eu-footer img { flex: 0 0 auto; width: 42px; height: 28px; display: block; }
.eu-footer span { min-width: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.eu-footer--light { color: #F8FAF7; }

/* ---------- карти ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card--tint { background: var(--tint); border-color: transparent; box-shadow: none; }
.card--hero { background: var(--secondary); color: #FFFFFF; border: 0; border-radius: var(--radius-l); }
.card--hero .h1, .card--hero .title { color: #FFFFFF; }
.card--mine { border: 2px solid var(--secondary); }
.card.row { flex-direction: row; align-items: center; }

/* ---------- кръгли иконки ---------- */
.circle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; color: var(--heading); }
.circle--s { width: 44px; height: 44px; }
.circle--m { width: 52px; height: 52px; }
.circle--l { width: 72px; height: 72px; }

/* ---------- бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 20px; border-radius: var(--radius-m); border: 0;
  font-size: 1.25rem; font-weight: 700; text-decoration: none; text-align: center;
}
.btn--primary { background: var(--secondary); color: #FFFFFF; box-shadow: 0 3px 0 var(--heading); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--heading); }
.btn--secondary { background: var(--surface); color: var(--secondary); border: 2px solid var(--secondary); }
.btn--small { min-height: 48px; padding: 0 16px; font-size: 1rem; border-radius: 24px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { background: var(--line); color: var(--text); box-shadow: none; cursor: not-allowed; border: 0; }
html[data-contrast='high'] .btn[disabled] { background: #E2E8E0; color: #18221B; }

/* ---------- чипове и значки ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 12px; border-radius: 14px; font-size: 0.875rem; font-weight: 700; color: var(--heading); background: var(--tint); white-space: nowrap; }
.chip--warm { background: var(--warm); }
.chip--warning { background: var(--warning); }
.chip--success { background: var(--success); color: #FFFFFF; }
.chip--primary { background: var(--primary); }

/* ---------- избор (радио като карти) ---------- */
.options { display: grid; gap: 10px; }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 12px;
  border: 2px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
  color: var(--heading); font-size: 1.125rem; font-weight: 700; text-align: center; min-width: 0;
}
.option--left { justify-content: flex-start; text-align: left; }
.option--col { flex-direction: column; min-height: 84px; }
.option[aria-checked='true'] { border: 3px solid var(--secondary); background: var(--tint); }
.dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; }
.pill-filter { min-height: 48px; padding: 0 16px; border: 2px solid var(--secondary); border-radius: 24px; background: var(--surface); color: var(--secondary); font-size: 1rem; font-weight: 700; }
.pill-filter[aria-checked='true'] { background: var(--secondary); color: #FFFFFF; }

/* ---------- полета ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 1.0625rem; font-weight: 700; color: var(--heading); }
.input {
  width: 100%; min-height: 56px; padding: 0 14px; border: 2px solid var(--control-edge); border-radius: 14px;
  background: var(--surface); color: var(--heading); font-size: 1.125rem;
}
.step-title { font-size: 1.25rem; font-weight: 700; color: var(--heading); }
.step-title span { color: var(--secondary); }

/* ---------- превключвател ---------- */
.switch-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-top: 8px; border-top: 1px solid var(--line); }
.switch { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px 0 10px; border: 0; background: transparent; font-weight: 700; color: var(--heading); }
.switch__track { position: relative; display: block; width: 62px; height: 36px; border-radius: 18px; border: 2px solid var(--control-edge); background: var(--surface); }
.switch__knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--control-edge); transition: left 0.15s; }
.switch[aria-checked='true'] .switch__track { background: var(--secondary); border-color: var(--secondary); }
.switch[aria-checked='true'] .switch__knob { left: 30px; background: #FFFFFF; }

/* ---------- брояч −/+ ---------- */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper__btn { flex: 0 0 64px; height: 64px; border-radius: 32px; border: 2px solid var(--secondary); background: var(--surface); color: var(--secondary); font-size: 2rem; font-weight: 700; line-height: 1; }
.stepper__btn--plus { border: 0; background: var(--secondary); color: #FFFFFF; }
.stepper__value { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; border: 2px solid var(--line); border-radius: var(--radius-m); background: var(--bg); color: var(--heading); font-size: 2rem; font-weight: 700; }
.stepper__value small { font-size: 1.25rem; font-weight: 600; }

/* ---------- лента за напредък ---------- */
.progress { height: 10px; border-radius: 5px; background: var(--tint); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 5px; background: var(--primary); }

/* ---------- съобщения ---------- */
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); color: var(--heading); }
.ok-box { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.error-text { color: #9E2F2C; font-weight: 700; }

/* ---------- избор на език ---------- */
.lang { position: relative; flex: 0 0 auto; }
.lang__btn { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 12px 0 10px; border: 2px solid var(--secondary); border-radius: 28px; background: var(--surface); color: var(--secondary); font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 260px; max-width: 85vw; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 12px 32px rgba(24, 34, 27, 0.18); }
.lang__item { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 12px; border: 0; border-radius: var(--radius-s); background: var(--surface); color: var(--heading); font-size: 1.125rem; font-weight: 600; text-align: left; }
.lang__item[aria-checked='true'] { background: var(--tint); font-weight: 700; }
.flag { flex: 0 0 36px; width: 36px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); display: block; }

/* ===================== ЕКРАНИ ===================== */
/* ---------- зареждане ---------- */
.splash { min-height: 100dvh; display: flex; flex-direction: column; background: var(--secondary); color: #F8FAF7; }
.splash__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 0 var(--pad); }
.splash__logo { width: 50vw; max-width: 420px; height: auto; }
.splash__bar { width: 50vw; max-width: 420px; height: 10px; border-radius: 5px; background: #24493A; overflow: hidden; }
.splash__bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--primary); animation: load 1.6s ease-out forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- вход ---------- */
.login { align-items: center; text-align: center; }
.login__logo { width: 230px; max-width: 70%; height: auto; margin: 4px auto 6px; }
@media (min-width: 768px) { .login__logo { width: 320px; } }
.pin { display: flex; gap: 8px; justify-content: center; }
.pin__box { display: flex; align-items: center; justify-content: center; width: 44px; height: 56px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 1.5rem; font-weight: 700; color: var(--heading); }
.pin__box.is-filled { background: var(--tint); }
.pin__box.is-current { border: 3px solid var(--secondary); }
.pin__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--secondary); }
@media (min-width: 768px) { .pin { gap: 12px; } .pin__box { width: 60px; height: 72px; } }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 360px; margin: 0 auto; }
@media (min-width: 768px) { .keypad { max-width: 460px; } }
.key { min-height: 60px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); box-shadow: 0 3px 0 var(--line); color: var(--heading); font-size: 1.75rem; font-weight: 700; }
.key--soft { background: var(--tint); color: var(--secondary); font-size: 1.0625rem; }
@media (min-width: 768px) { .key { min-height: 80px; } }
.login__actions { width: 100%; max-width: 360px; margin: 0 auto; }

/* ---------- начало ---------- */
.actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.action { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 14px; min-height: 84px; padding: 14px 16px; color: var(--heading); text-decoration: none; }
.action__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { flex-direction: row; align-items: center; padding: 14px; }
.stat__value { font-size: 1.5rem; font-weight: 700; color: var(--heading); line-height: 1.2; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stages li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--heading); }
.stages__dot { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: #FFFFFF; }
.stages li.is-done .stages__dot { background: var(--secondary); border: 0; }
.stages li.is-now { font-weight: 700; }
.stages li.is-now .stages__dot { background: var(--primary); border: 0; }
.stages li.is-now .stages__dot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--heading); }

/* ---------- поливане ---------- */
.water-hero { align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 22px; }
.water-hero__value { font-size: 3rem; font-weight: 700; line-height: 1.1; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--bg); color: var(--heading); }

/* ---------- градина ---------- */
.plant { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.plant__dot { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); }

/* ---------- снимка ---------- */
.viewfinder { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-l); background: var(--heading); color: #F8FAF7; overflow: hidden; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.viewfinder__corner { position: absolute; width: 30px; height: 30px; border: 0 solid var(--primary); }
.viewfinder__corner--tl { top: 16px; left: 16px; border-top-width: 4px; border-left-width: 4px; border-radius: 8px 0 0 0; }
.viewfinder__corner--tr { top: 16px; right: 16px; border-top-width: 4px; border-right-width: 4px; border-radius: 0 8px 0 0; }
.viewfinder__corner--bl { bottom: 16px; left: 16px; border-bottom-width: 4px; border-left-width: 4px; border-radius: 0 0 0 8px; }
.viewfinder__corner--br { bottom: 16px; right: 16px; border-bottom-width: 4px; border-right-width: 4px; border-radius: 0 0 8px 0; }
.shutter { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: center; cursor: pointer; font-size: 1.25rem; font-weight: 700; color: var(--heading); }
.shutter__ring { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--secondary); color: #FFFFFF; box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px var(--primary); }
.shutter input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---------- приятели ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; font-weight: 700; color: var(--heading); }
.avatar--s { flex-basis: 40px; width: 40px; height: 40px; font-size: 0.875rem; }
.post__image { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-m); background: var(--tint); color: var(--secondary); overflow: hidden; text-align: center; }
.post__image img { width: 100%; height: 100%; object-fit: cover; }
.post__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post__actions .btn { flex: 1 1 150px; min-height: 56px; padding: 0 12px; gap: 8px; font-size: 1.0625rem; }
.like[aria-pressed='true'] { border-color: var(--warm); background: #FDF1EA; color: var(--heading); }
.comments { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius-m); background: var(--bg); }
.comment { display: flex; align-items: flex-start; gap: 10px; }
.comment__bubble { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--heading); }
.empty { align-items: center; text-align: center; padding: 28px 18px; }
@media (min-width: 768px) {
  .action { flex-direction: column; align-items: flex-start; }
  .action > svg:last-child { display: none; }
}

/* ===================== ДОПЪЛНЕНИЯ ЗА СТАТИЧНАТА ВЕРСИЯ ===================== */
.hide-phone { display: none; }
@media (min-width: 768px) {
  .hide-phone { display: initial; }
  .hide-tablet { display: none; }
  .screen__main { gap: 20px; }
  .h1 { font-size: 2rem; }
}

/* ===================== Добавки при синхронизацията с последния дизайн ===================== */
@keyframes gtFadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: gtFadeIn .5s ease-out both; }

/* ---------- Посеви: карта на растение ---------- */
.plant-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.plant-card__top { display: flex; align-items: center; gap: 20px; }
.plant-card__icon-col { flex: 0 0 30%; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.plant-card__icon { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; box-sizing: border-box; border-radius: 14px; background: var(--tint); }
.plant-card__icon img { width: 58%; height: 58%; }
.plant-card__info { flex: 1 1 70%; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.plant-card__head { display: flex; align-items: center; gap: 8px; width: 100%; background: transparent; border: 0; padding: 0; font-family: inherit; text-align: left; cursor: pointer; }
.plant-card__name { font-size: 1.5em; font-weight: 700; color: var(--heading); }
.plant-card__meta { font-size: 0.9375rem; }
.plant-card__toggle { display: flex; width: max-content; margin: 0 0 10px auto; position: relative; z-index: 1; align-items: center; gap: 4px; min-height: 48px; padding: 0 14px; border: 2px solid var(--secondary); border-radius: 24px; background: #fff; color: var(--secondary); font-family: inherit; font-size: 0.9375em; font-weight: 700; cursor: pointer; }
.plant-card__toggle svg { transition: transform .15s; transform: rotate(90deg); }
.plant-card__toggle[aria-expanded='true'] svg { transform: rotate(-90deg); }
.plant-card__chevron { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 26px; background: var(--line); cursor: pointer; }
.plant-card__chevron svg { transition: transform .15s; }
.plant-card__chevron[aria-expanded='true'] svg { transform: rotate(-90deg); }

.steps { display: flex; align-items: flex-start; }
.steps__connector { flex: 1 1 auto; min-width: 8px; height: 3px; margin-top: 17px; }
.steps__step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; width: 68px; border: 0; background: transparent; padding: 2px; font-family: inherit; cursor: pointer; }
.steps__dot { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; box-sizing: border-box; border-radius: 17px; color: #fff; }
.steps__label { font-size: 0.75em; line-height: 1.15; color: var(--heading); text-align: center; }

.plant-card__status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.status-btn { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 26px; background: var(--secondary); color: #fff; font-weight: 700; box-shadow: 0 3px 0 var(--heading); cursor: pointer; }
.status-msg { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; background: var(--tint); font-weight: 700; }
.delete-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid #D9534F; border-radius: 22px; background: #fff; color: #D9534F; font-weight: 700; cursor: pointer; }

.crop-info { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--tint); font-size: 1em; line-height: 1.45; color: #18221B; }
.crop-info p { margin: 0; } .crop-info__h { font-weight: 700; } .crop-info__cat { font-size: .9em; color: #3E4A3F; }
.soil-block { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.why-panel { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--bg); }
.why-panel__days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.why-panel__day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: #fff; border-radius: 12px; }
.why-panel__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.btn-hide { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 2px solid var(--secondary); border-radius: 24px; background: #fff; color: var(--secondary); font-weight: 700; cursor: pointer; }

.delete-confirm { display: flex; flex-direction: column; gap: 14px; }
.delete-confirm__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.delete-confirm__yes { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 0; border-radius: 16px; background: #D9534F; color: #fff; font-weight: 700; cursor: pointer; }

.posev-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 18px; background: var(--tint); }
.posev-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 0; border-radius: 14px; background: transparent; font-weight: 700; cursor: pointer; }
.posev-tabs button[aria-selected='true'] { background: #fff; box-shadow: 0 2px 6px rgba(24,34,27,.12); }

/* ---------- История ---------- */
.hist-day h2 { margin: 4px 0 0; font-size: 1.125em; font-weight: 700; color: var(--secondary); }
.hist-event { display: flex; align-items: flex-start; gap: 14px; padding: 14px; }
.hist-event__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hist-event__photo { display: flex; align-items: center; justify-content: center; height: 120px; border-radius: 14px; background: var(--heading); color: #F8FAF7; font-size: 0.9375em; text-align: center; }
.hist-event__note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); line-height: 1.45; }

/* ---------- Добави посев ---------- */
.add-grid-half { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .add-grid-half { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.full-sheet { position: absolute; inset: 0; z-index: 50; background: var(--secondary); color: #fff; display: flex; flex-direction: column; }
.full-sheet__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 20px; text-align: center; }
.full-sheet__icon { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 56px; background: #fff; box-shadow: 0 0 0 10px rgba(129,201,116,.35); }
.full-sheet__icon img { width: 72px; height: 72px; }
.full-sheet__chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 18px; background: var(--primary); color: var(--heading); font-weight: 700; }
.full-sheet__title { margin: 0; font-size: 2.25em; font-weight: 700; }
.full-sheet__sub { margin: 0; max-width: 460px; font-size: 1.3em; line-height: 1.45; }
.full-sheet__summary { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.12); }
.full-sheet__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }
.btn-white { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border-radius: 16px; background: #fff; color: var(--secondary); font-size: 1.3em; font-weight: 700; box-shadow: 0 3px 0 var(--heading); text-decoration: none; cursor: pointer; border: 0; }
.btn-outline-white { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border: 2px solid #fff; border-radius: 16px; background: transparent; color: #fff; font-size: 1.1875em; font-weight: 700; cursor: pointer; }

/* ---------- Запиши реколта ---------- */
.crop-chip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--tint); }
.crop-chip img { width: 28px; height: 28px; }
.qty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.unit-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; display: flex; flex-direction: column; gap: 2px; padding: 6px; box-sizing: border-box; background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(24,34,27,.18); }
.unit-list button { min-height: 52px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-weight: 600; cursor: pointer; }
.unit-list button[aria-selected='true'] { background: var(--tint); font-weight: 700; }
.harvest-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 380px) { .harvest-grid { gap: 8px; } .harvest-tile { padding: 12px 4px; } .harvest-tile__name { font-size: 0.8125rem; } }
.harvest-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; border: 2px solid var(--line); border-radius: 14px; padding: 14px 8px; }
.harvest-tile__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 26px; background: #fff; border: 2px solid; }
.harvest-tile__icon img { width: 28px; height: 28px; }
.harvest-tile__name { font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
.harvest-tile__qty { font-weight: 700; font-size: 1.125em; color: #18221B; }
.harvest-row { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: 14px; background: transparent; padding: 12px; font-family: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.harvest-row:hover { background-color: #F0F0F0; }
.harvest-row__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.harvest-row__name { font-weight: 600; color: var(--heading); text-transform: uppercase; letter-spacing: .02em; }
.harvest-row__edit { display: flex; justify-content: flex-end; }
.harvest-row__edit span { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 2px solid var(--secondary); border-radius: 20px; background: #fff; font-size: 0.9375em; font-weight: 700; color: var(--secondary); }
.row-edit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg); }

/* =====================================================================
   Green Thumb Seniors – допълнителни прагове за истинска responsive поддръжка
   База (style.css): телефон (под 768px) → таблет (768px+), с бутона долу.
   Тук добавяме:
   - малък телефон (под 360px): по-стегнати отстъпи, без да чупи нищо;
   - широк таблет / малък лаптоп (1024px+): менюто долу става странично меню
     вляво, съдържанието получава повече въздух;
   - голям монитор (1440px+): по-широка странична лента, ограничена максимална
     ширина на съдържанието, за да не се „разтяга“ безкрайно.
   ===================================================================== */

/* ---------- Малък телефон (под 360px) ---------- */
@media (max-width: 359px) {
  :root { --pad: 14px; }
  .h1 { font-size: 1.5rem; }
  .btn { font-size: 1.0625rem; padding: 0 14px; }
  .keypad { gap: 6px; }
  .pin__box { width: 38px; height: 50px; }
}

/* ---------- Широк телефон / малък таблет в пейзаж (600–1023px) ----------
   Леко междинно стъпало между телефон и таблет, за да няма рязък скок. */
@media (min-width: 600px) and (max-width: 1023px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Десктоп / широк таблет-пейзаж (1024px и нагоре) ----------
   Менюто минава най-горе (под лентата с логото), с равни колони и равни разстояния.
   Европейският футър е винаги най-долу на страницата. */
.eu-page { display: none; }
@media (min-width: 1024px) {
  .screen { flex-direction: column; min-height: 100vh; }
  .screen__content { display: contents; }
  .app-header, .back-header { order: 1; padding-left: 40px; padding-right: 40px; }
  .bottom-bar { order: 2; position: sticky; top: 0; bottom: auto; z-index: 20; border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  .screen__main { order: 3; flex: 1 0 auto; max-width: 1280px; margin: 0 auto; padding: 28px 40px 40px; min-width: 0; }
  .eu-page { order: 4; display: flex; border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; padding: 14px 16px 18px; }
  .eu-in-bar { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; padding: 8px 40px; }
  .bottom-nav__item { flex-direction: row; justify-content: center; gap: 12px; min-height: 56px; padding: 6px 12px; border-radius: var(--radius-m); font-size: 1.0625rem; }
  .bottom-nav__item:hover { background: var(--bg); }
  .bottom-nav__item.is-active { background: var(--tint); }
  .bottom-nav__pill { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; }
  .badge { position: static; margin-left: 4px; }
  .grid-2 { max-width: 1100px; }

  a.card { transition: box-shadow .15s, transform .15s; }
  a.card:hover, .action:hover { box-shadow: 0 6px 18px rgba(24,34,27,.12); transform: translateY(-1px); }
  .btn--primary:hover { filter: brightness(1.05); }
  .btn--secondary:hover { background: var(--tint); }
}
@media (min-width: 1440px) {
  .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Входът/зареждането нямат странично меню (няма я .bottom-bar) – центрираме ги просто по-широко. */
@media (min-width: 1024px) {
  .login__logo { width: 360px; }
  .splash__logo { max-width: 480px; }
}


/* ===== Допълнения към прототипа (екрани, добавени при имплементацията) ===== */
/* Маркер „За уточнение“ */
.tbc { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; margin-left: 6px; padding: 2px 10px; border: 1.5px dashed #B7791F; border-radius: 14px; background: #FFF6DD; color: #7A4B00; font: inherit; font-size: 0.8125rem; font-weight: 700; line-height: 1.2; cursor: pointer; vertical-align: middle; }
.tbc:hover { background: #FFEBB5; }
.tbc--static { cursor: default; margin: 0; }
.tbc::before { content: ''; }
.sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(24, 34, 27, 0.5); }
.sheet { position: fixed; z-index: 91; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 560px); max-height: 85vh; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 32px rgba(24, 34, 27, 0.25); }
@media (min-width: 700px) { .sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 22px; } }
.sheet__q { margin: 0; font-size: 1.1875rem; font-weight: 700; color: var(--heading); }
.sheet dl { margin: 0; display: grid; gap: 4px; }
.sheet dt { font-weight: 700; color: var(--secondary); margin-top: 8px; }
.sheet dd { margin: 0; color: var(--heading); }

.tag { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 12px; font-size: 0.8125rem; font-weight: 700; background: var(--line); color: var(--heading); }
.tag--warm { background: #FBE3D3; color: #7A3A12; }
.tag--tint { background: var(--tint); color: var(--secondary); }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 1.0625rem; color: var(--heading); }
.check-row input { width: 26px; height: 26px; flex: 0 0 26px; accent-color: var(--secondary); }

.btn-water { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--info); color: #FFFFFF; font-size: 1.125rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.done-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-m); background: #EAF5E7; }
.done-row__t { flex: 1; min-width: 0; font-weight: 700; color: var(--heading); }
.all-done { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-m); background: #EAF5E7; font-size: 1.125rem; font-weight: 700; color: var(--heading); }
.all-done p { margin: 0; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; background: var(--warm); color: #FFFFFF; font-weight: 700; }
.h2-dark { margin: 0; font-size: 1.375rem; font-weight: 700; color: var(--heading); }
.advice-text { margin: 0; font-size: 1.125rem; color: var(--heading); }
.empty-note { margin: 0; padding: 14px; border-radius: 14px; background: var(--tint); font-size: 1.0625rem; color: var(--heading); }

/* Лента със състоянието и обновяване */
.status-strip { font-size: 1rem; }
.update-bar { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 520px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--secondary); color: #FFFFFF; font-weight: 700; box-shadow: 0 8px 24px rgba(24, 34, 27, 0.3); }
.update-bar span { flex: 1; min-width: 120px; }
.update-bar .btn--secondary { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.update-bar .btn--primary { background: var(--primary); color: var(--heading); }

/* Падащи списъци, търсене, полета */
.crop-ico { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 24px; box-sizing: border-box; }
.crop-ico img { width: 32px; height: 32px; }
.dd-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 6px 16px 6px 10px; box-sizing: border-box; border: 2px solid var(--control-edge); border-radius: 16px; background: #FFFFFF; color: var(--heading); font: inherit; font-size: 1.1875rem; font-weight: 700; text-align: left; cursor: pointer; }
.dd-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; padding: 6px; box-sizing: border-box; background: #FFFFFF; border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(24, 34, 27, 0.18); }
.dd-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 4px 12px 4px 6px; box-sizing: border-box; border: 0; border-radius: 12px; background: #FFFFFF; color: var(--heading); font: inherit; font-size: 1.125rem; font-weight: 600; text-align: left; cursor: pointer; }
.dd-opt.is-on { background: var(--tint); font-weight: 700; }
.dd-unit { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; text-align: left; }
.round-btn { flex: 0 0 64px; height: 64px; border: 2px solid var(--secondary); border-radius: 32px; background: #FFFFFF; color: var(--secondary); font-size: 2rem; font-weight: 700; cursor: pointer; }
.round-btn--solid { background: var(--secondary); color: #FFFFFF; }
.count-out { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 64px; background: var(--bg); border: 2px solid var(--line); border-radius: 16px; font-size: 2rem; font-weight: 700; color: var(--heading); }
.mic-btn { flex: 0 0 60px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--secondary); border-radius: 30px; background: #FFFFFF; color: var(--secondary); cursor: pointer; }
.mic-btn.is-on { background: var(--secondary); color: #FFFFFF; }
.search { position: relative; flex: 1; min-width: 0; }
.search__ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; }
.search__in { width: 100%; min-height: 60px; box-sizing: border-box; padding: 0 48px 0 50px; border: 2px solid var(--control-edge); border-radius: 16px; background: #FFFFFF; color: var(--heading); font: inherit; font-size: 1.125rem; }
.search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--tint); color: var(--secondary); font-size: 1.375rem; font-weight: 700; cursor: pointer; }
.pick-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 6px 16px 6px 8px; box-sizing: border-box; border: 2px solid var(--line); border-radius: 16px; background: #FFFFFF; color: var(--heading); font: inherit; font-size: 1.1875rem; font-weight: 700; text-align: left; cursor: pointer; }
.pick-row.is-on { border: 3px solid var(--secondary); background: var(--tint); }
.btn--disabled { width: 100%; min-height: 64px; border: 0; border-radius: 16px; background: var(--line); color: var(--text); font: inherit; font-size: 1.3125rem; font-weight: 700; cursor: not-allowed; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Етапи на растеж и почва (по прототипа) */
.soil-block { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.soil-block__q { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--heading); }
.soil-block__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.soil-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 72px; padding: 6px; border: 2px solid var(--line); border-radius: 14px; background: #FFFFFF; color: var(--heading); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.soil-opt.is-on { border-color: var(--secondary); background: var(--tint); }

/* Адаптивни поправки за тесни екрани */
.task-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
.task-card > .stack { flex: 1 1 160px; min-width: 0; }
.task-card > .btn-water { flex: 1 1 100%; }
@media (min-width: 600px) { .task-card > .btn-water { flex: 0 0 auto; } }
.plant-card__icon-col { flex: 0 0 72px; }
.plant-card__top { align-items: flex-start; gap: 12px; }
.steps__step { flex: 1 1 0; width: auto; min-width: 0; }
.steps__label { font-size: 0.6875rem; line-height: 1.15; text-align: center; overflow-wrap: normal; hyphens: none; }
.harvest-tile__name { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 600px) { .harvest-tile { padding: 12px 6px; } .harvest-tile__name { font-size: 0.8125rem; } .harvest-tile__qty { font-size: 1rem; } .harvest-tile__icon { width: 44px; height: 44px; } }

/* =====================================================================
   Удобство за възрастни: по-едър текст, по-големи цели, ясен фокус,
   по-силен контраст. Основният размер расте плавно с резолюцията;
   „Размер на текста“ в Настройки се умножава върху него.
   ===================================================================== */
:root { --base: 106.25%; --fs: 1; --text: #2A352C; --control-edge: #2A352C; }
html, html[data-size='l'], html[data-size='xl'] { font-size: calc(var(--base) * var(--fs)); }
html[data-size='l'] { --fs: 1.125; }
html[data-size='xl'] { --fs: 1.25; }
@media (min-width: 768px) { :root { --base: 112.5%; } }
@media (min-width: 1280px) { :root { --base: 118.75%; } }
@media (min-width: 1920px) { :root { --base: 131.25%; } }
body { line-height: 1.55; }
:focus-visible { outline: 4px solid #1F6FEB; outline-offset: 3px; border-radius: 6px; }
.btn { min-height: 60px; font-size: 1.125rem; }
.btn--small { min-height: 52px; font-size: 1.0625rem; }
a:not(.btn):not(.card):not(.action):not([class*='bottom-nav']):not(.app-header__logo):not(.icon-btn):not(.btn-water):not(.btn-white) { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.small, .plant-card__meta { font-size: 1rem; }
.card { padding: 20px; gap: 14px; }
.screen__main { gap: 20px; }
.h1 { line-height: 1.2; }

/* Горна лента: по-голямо лого, по-малки бутони за език и настройки */
.app-header { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
.app-header__logo { min-height: 64px; }
.app-header__logo img { height: 64px; }
.app-header__tools { gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; }
.icon-btn svg { width: 24px; height: 24px; }
.lang__btn { min-height: 44px; padding: 0 10px 0 8px; gap: 6px; border-radius: 22px; font-size: 1rem; }
.lang__btn .flag { width: 28px; height: auto; }
@media (min-width: 768px) { .app-header__logo img { height: 76px; } .app-header__logo { min-height: 76px; } }
@media (min-width: 1280px) { .app-header__logo img { height: 88px; } .app-header__logo { min-height: 88px; } }
@media (min-width: 1920px) { .app-header__logo img { height: 104px; } .app-header__logo { min-height: 104px; } }
@media (max-width: 359px) { .app-header__logo img { height: 52px; } .app-header__logo { min-height: 52px; } .lang__btn span { display: none; } }

/* Меню: по-големи етикети и икони */
.bottom-nav__item { font-size: 1rem; min-height: 64px; }
.bottom-nav__pill { width: 64px; height: 36px; border-radius: 18px; }
.bottom-nav__pill svg { width: 28px; height: 28px; }
@media (min-width: 1024px) { .bottom-nav__pill { width: 44px; height: 44px; border-radius: 14px; } .bottom-nav { max-width: 1040px; } }
.eu-footer span { font-size: 0.9375rem; }
.eu-footer img { width: 48px; height: 32px; }

/* Таблети (768–1023): две колони там, където има място */
@media (min-width: 768px) and (max-width: 1023px) { .screen__main { padding: 24px 32px 32px; } .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Голям екран: повече въздух и ограничена ширина на четене */
@media (min-width: 1280px) { .screen__main { max-width: 1320px; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1920px) { .screen__main { max-width: 1600px; } .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.btn-water { background: #1F6FA8; min-height: 60px; font-size: 1.1875rem; }
.steps__label { font-size: 0.75rem; }
@media (min-width: 768px) { .steps__label { font-size: 0.875rem; } }

/* ===== Меню в горната лента (≥1024px): логото вляво, менюто в средата, език и настройки вдясно ===== */
.top-nav { display: none; }
@media (min-width: 1024px) {
  .bottom-bar { display: none; }
  .app-header, .back-header { order: 1; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 24px; }
  .top-nav { display: flex; flex: 1 1 auto; min-width: 0; justify-content: center; align-items: center; gap: 12px; margin: 0 auto; max-width: 760px; }
  .top-nav .bottom-nav__item { flex: 1 1 0; min-width: 0; flex-direction: row; justify-content: center; gap: 10px; min-height: 56px; padding: 6px 10px; border-radius: var(--radius-m); font-size: 1.0625rem; white-space: nowrap; }
  .top-nav .bottom-nav__item:hover { background: var(--bg); }
  .top-nav .bottom-nav__item.is-active { background: var(--tint); }
  .top-nav .bottom-nav__pill { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; }
  .top-nav .badge { position: static; margin-left: 2px; }
  .back-header__title { flex: 0 1 auto; text-align: left; padding-right: 0; margin-left: 8px; font-size: 1.25rem; white-space: nowrap; }
  .back-header .top-nav { margin-right: 0; }
  .back-header + .screen__main, .app-header + .screen__main { order: 3; }
}
@media (min-width: 1024px) and (max-width: 1179px) { .top-nav { gap: 4px; } .top-nav .bottom-nav__pill { display: none; } .top-nav .bottom-nav__item { padding: 6px 8px; justify-content: center; } .top-nav .bottom-nav__item.is-active { background: var(--primary); } .back-header__title { font-size: 1.125rem; } }

/* Карта на растение: заглавие и „Виж още“ на едно ниво; „Отмени“ до „Полято днес“ */
.plant-card__headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plant-card__headrow .plant-card__head { flex: 1 1 auto; min-width: 0; width: auto; }
.plant-card__headrow .plant-card__toggle { margin: 0; flex: 0 0 auto; }
.status-group { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-undo { min-height: 40px; padding: 0 14px; border: 2px solid var(--secondary); border-radius: 20px; background: #fff; color: var(--secondary); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.gallery-btn { align-self: center; position: relative; }
@media (max-width: 480px) {
  .plant-card__icon-col { flex-basis: 60px; }
  .plant-card__headrow { gap: 8px; align-items: flex-start; }
  .plant-card__headrow .plant-card__toggle { min-height: 44px; padding: 0 10px; font-size: 0.875rem; }
  .plant-card__name { font-size: 1.0625rem; line-height: 1.25; }
  .plant-card__meta { font-size: 0.9375rem; }
}
@media (max-width: 480px) { .status-group { flex-wrap: nowrap; gap: 8px; } .status-group .status-msg { font-size: 0.9375rem; padding: 6px 10px; } .btn-undo { min-height: 36px; padding: 0 10px; font-size: 0.875rem; } }
