/* СмакКвест — світла тема в кольорах «Сільпо».
   Палітра: pomelo #FF6B00 (фірмовий помаранч), zest #FFA94D, milk #FFFDF8,
   cream #FFF1E2, basil #1E9E5A (свіжий акцент XP/успіху), ink #33241A.
   Підпис дизайну: квест-картки у формі магазинних цінників з перфорацією. */

:root {
  --pomelo: #FF6B00;
  --pomelo-deep: #E85D00;
  --zest: #FFA94D;
  --milk: #FFFDF8;
  --cream: #FFF1E2;
  --basil: #1E9E5A;
  --basil-soft: #E4F6EC;
  --ink: #33241A;
  --ink-soft: #8A7563;
  --line: #F3E2CF;
  --tag-shadow: 0 10px 24px rgba(232, 93, 0, 0.10);
  --r: 18px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Golos Text", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, #FFE9D2 0%, transparent 60%),
    var(--milk);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 120px;
}
code { background: var(--cream); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
button { font-family: inherit; cursor: pointer; border: 0; }
a { color: inherit; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 248, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-dot { font-size: 26px; }
.brand-name {
  font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 22px; letter-spacing: -.02em;
}
.brand-name em { font-style: normal; color: var(--pomelo); }
.brand-sub { font-size: 12px; color: var(--ink-soft); }
.player { display: flex; align-items: center; gap: 12px; }
.player-meta { display: flex; flex-direction: column; line-height: 1.2; }
.player-meta strong { font-size: 14px; }
.player-meta span { font-size: 12px; color: var(--ink-soft); }
.level-ring { position: relative; width: 44px; height: 44px; }
.level-ring svg { transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--cream); }
.ring-fg { stroke: var(--basil); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .6s ease; }
.level-ring span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Unbounded"; font-weight: 700; font-size: 15px;
}
.mode-pill {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--basil-soft); color: var(--basil);
}
.mode-pill.live { background: #FFE3CC; color: var(--pomelo-deep); }

/* ---------- Layout ---------- */
.layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 24px;
  padding: 28px clamp(16px, 3vw, 40px); max-width: 1480px; margin: 0 auto;
  align-items: start;
}
@media (max-width: 1200px) { .layout { grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 18px; } }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Week banner ---------- */
.week-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: linear-gradient(120deg, var(--pomelo) 0%, #FF8A2A 70%, var(--zest) 100%);
  color: #fff; border-radius: var(--r); padding: 26px 28px;
  box-shadow: var(--tag-shadow);
}
.week-banner h1 {
  font-family: "Unbounded"; font-weight: 700; font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.25; max-width: 560px;
}
.eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  opacity: .85; margin-bottom: 6px;
}
.card .eyebrow, .rail .eyebrow { color: var(--ink-soft); opacity: 1; }
.cta {
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 14px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; display: inline-block;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(51,36,26,.25); }
.ghost {
  background: #fff; color: var(--pomelo-deep); border: 1.5px solid var(--pomelo);
  font-weight: 600; padding: 9px 16px; border-radius: 12px;
}

/* ---------- Quest price-tags (signature) ---------- */
.quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 26px; }
.tag {
  position: relative; background: #fff; border-radius: 14px 14px 4px 4px;
  padding: 20px 20px 26px; box-shadow: var(--tag-shadow);
  border: 1px solid var(--line); border-bottom: 0;
  display: flex; flex-direction: column; gap: 10px;
}
/* дірочка цінника */
.tag::before {
  content: ""; position: absolute; top: 12px; right: 14px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--milk); border: 2px solid var(--line);
}
/* перфорація знизу */
.tag::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px;
  background-image: radial-gradient(circle at 8px 0, transparent 6px, #fff 6px);
  background-size: 18px 12px; background-repeat: repeat-x;
  filter: drop-shadow(0 4px 6px rgba(232,93,0,.08));
}
.tag.done { opacity: .72; }
.tag.done .tag-title { text-decoration: line-through; }
.tag-head { display: flex; align-items: center; gap: 10px; }
.tag-emoji { font-size: 26px; }
.tag-kind {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--pomelo-deep);
}
.tag-title { font-family: "Unbounded"; font-weight: 700; font-size: 16px; line-height: 1.3; }
.tag-desc { font-size: 13.5px; line-height: 1.5; color: #5A4636; }
.tag-goal {
  font-size: 11.5px; color: var(--ink-soft); background: var(--basil-soft);
  border-left: 3px solid var(--basil); padding: 7px 10px; border-radius: 0 8px 8px 0;
}
.tag-reward { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.tag-reward .xp { color: var(--basil); }
.tag-reward .boost { color: var(--pomelo-deep); }
.tag-progress { height: 7px; border-radius: 99px; background: var(--cream); overflow: hidden; }
.tag-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--basil), #43C77E); border-radius: 99px; transition: width .5s ease; }
.tag-actions { display: flex; gap: 10px; margin-top: 2px; }
.tag-actions .cta { background: var(--pomelo); padding: 10px 16px; font-size: 14px; }
.tag-actions .cta:hover { box-shadow: 0 8px 18px rgba(255,107,0,.35); }
.tag-actions .ghost { font-size: 13px; padding: 9px 14px; }

.empty { grid-column: 1/-1; text-align: center; padding: 46px 20px; color: var(--ink-soft); }
.empty .hint { max-width: 480px; margin: 10px auto 0; }
.hint { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Cart panel ---------- */
.cart-panel {
  margin-top: 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px; box-shadow: var(--tag-shadow);
}
.cart-panel h3 { font-family: "Unbounded"; font-size: 16px; margin-bottom: 12px; }
.cart-panel ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cart-panel li { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.cart-panel li .price { font-weight: 600; }
#cartTotals { font-weight: 700; margin-bottom: 14px; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trace-box { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }
.trace-box ol { margin: 8px 0 0 18px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Rail ---------- */
.rail { display: flex; flex-direction: column; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.streak-line { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.streak-line strong { font-family: "Unbounded"; font-size: 34px; color: var(--pomelo); }
.streak-fire { font-size: 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge {
  font-size: 12.5px; font-weight: 600; background: var(--cream);
  padding: 6px 11px; border-radius: 999px; border: 1px solid #F5D9BC;
  animation: pop .4s ease;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.board { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.board li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.board .av { font-size: 20px; }
.board .bar { flex: 1; height: 8px; background: var(--cream); border-radius: 99px; overflow: hidden; }
.board .bar i { display: block; height: 100%; background: var(--pomelo); border-radius: 99px; }
.board .pts { font-weight: 700; font-size: 12.5px; min-width: 52px; text-align: right; }
.trace-card { max-height: 260px; overflow: auto; }
.trace { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 12px; }
.trace-row { display: flex; gap: 8px; align-items: center; }
.trace-row .ok { color: var(--basil); }
.trace-row .fail { color: #D33; }
.trace-row code { font-size: 11px; }
.trace-row .ms { color: var(--ink-soft); margin-left: auto; }

/* ---------- Chat column (ліва колонка, sticky) ---------- */
.chat-col {
  position: sticky; top: 88px;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 6px 24px rgba(51,36,26,.08);
  max-height: calc(100vh - 108px); overflow: hidden;
}
.chat-col-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--cream);
}
.chat-col-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.chat-log-body {
  flex: 1; min-height: 120px; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-empty { font-size: 13px; color: var(--ink-soft); line-height: 1.5; text-align: center; margin: auto 0; padding: 20px 8px; }
.msg { font-size: 14px; line-height: 1.5; padding: 9px 13px; border-radius: 12px; max-width: 92%; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--cream); }
.msg.bot { align-self: flex-start; background: var(--basil-soft); }
.chat-form {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff;
}
.chat-form input { flex: 1; border: 1px solid var(--line); outline: 0; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 10px; background: #fff; }
.chat-form input:focus { border-color: var(--pomelo); }
.chat-form .cta { padding: 9px 16px; background: var(--pomelo); }

/* на вузьких екранах чат стає звичайним блоком зверху */
@media (max-width: 980px) {
  .chat-col { position: static; max-height: 420px; order: -1; }
}

/* ---------- Toast & confetti ---------- */
.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  padding: 12px 20px; border-radius: 12px; z-index: 40; animation: pop .3s ease;
}
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
  animation: fall 1.6s ease-in forwards;
}
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2.5px solid var(--pomelo); outline-offset: 2px; border-radius: 6px; }

/* ---------- AI-инсайты и нутри-оценка ---------- */
.ai-card { border: 1.5px solid var(--zest); background: linear-gradient(180deg, #FFF8EF, #fff); }
.ai-provider { font-size: 10px; text-transform: none; letter-spacing: 0; color: var(--basil); font-weight: 600; }
.ai-btn { width: 100%; margin-top: 10px; }
.insight-headline { font-family: "Unbounded"; font-size: 13.5px; line-height: 1.4; margin: 8px 0; }
.insight-spend { display: flex; gap: 14px; font-size: 12.5px; margin: 8px 0; }
.insight-spend strong { font-family: "Unbounded"; color: var(--pomelo); font-size: 16px; display: block; }
.insight-tips { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; font-size: 12.5px; }
.insight-tips li { background: var(--basil-soft); border-radius: 8px; padding: 7px 10px; }
.insight-forecast { font-size: 12px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.nutri { display: flex; align-items: flex-start; gap: 14px; background: var(--cream); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.nutri-grade { font-family: "Unbounded"; font-weight: 900; font-size: 34px; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.nutri-grade.gA { background: #1E9E5A; } .nutri-grade.gB { background: #7CB342; }
.nutri-grade.gC { background: #F9A825; } .nutri-grade.gD { background: #F57C00; }
.nutri-grade.gE { background: #D84315; }
.nutri-detail { font-size: 12.5px; line-height: 1.5; }
.nutri-detail .swap { color: var(--pomelo-deep); font-weight: 600; }
.nutri-detail .warn { color: #D84315; font-weight: 700; }

/* ---------- MCP Discovery ---------- */
.discovery-card .disc-write { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); margin: 8px 0; cursor: pointer; }
.disc-summary { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }
.disc-summary strong { color: var(--pomelo-deep); font-family: "Unbounded"; }
.disc-list { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; margin-bottom: 10px; }
.disc-row { border: 1px solid var(--line); border-radius: 10px; background: var(--milk); }
.disc-row summary { cursor: pointer; padding: 8px 10px; font-size: 12.5px; display: flex; align-items: center; gap: 6px; list-style: none; }
.disc-row summary::-webkit-details-marker { display: none; }
.disc-row summary code { font-size: 11.5px; }
.disc-ok { color: var(--basil); margin-left: auto; font-size: 11px; }
.disc-fail { color: #D33; margin-left: auto; }
.disc-skip { color: var(--ink-soft); margin-left: auto; font-size: 11px; }
.disc-detail { padding: 4px 12px 12px; font-size: 12px; line-height: 1.6; color: #5A4636; }
.disc-detail code { font-size: 11px; background: var(--cream); }
.disc-json-btn { margin-top: 6px; font-size: 11px; padding: 3px 9px; border-radius: 7px; background: var(--cream); color: var(--pomelo-deep); border: 1px solid #F5D9BC; cursor: pointer; }
.disc-json { margin-top: 6px; background: #2B2018; color: #FFE9D2; padding: 10px; border-radius: 8px; font-size: 11px; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.disc-dl { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--pomelo-deep); }

/* ---------- Discovery downloads ---------- */
.disc-downloads { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.disc-dl-btn { background: var(--basil); font-size: 13px; padding: 11px 16px; text-align: center; }
.disc-dl-btn:hover { box-shadow: 0 8px 18px rgba(30,158,90,.3); }

/* ---------- RAG panel ---------- */
.rag-card .ai-btn { width: 100%; margin: 8px 0; }
.rag-search { display: flex; gap: 6px; margin-bottom: 8px; }
.rag-search input { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; outline: none; }
.rag-search input:focus { border-color: var(--pomelo); }
.rag-search button { padding: 8px 12px; }
.rag-hit { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rag-k { font-size: 15px; }
.rag-t { flex: 1; }
.rag-s { font-weight: 700; font-size: 11px; color: var(--basil); background: var(--basil-soft); padding: 2px 7px; border-radius: 999px; }

/* ========== ВКЛАДКИ ========== */
.tabs {
  display: flex; gap: 4px; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px,4vw,48px);
  border-bottom: 1px solid var(--line);
}
.tab {
  background: none; border: none; padding: 13px 18px; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--pomelo); border-bottom-color: var(--pomelo); }

.tabpane { display: none; }
.tabpane.active { display: block; }
main.tabpane.layout.active { display: grid; }
.tabpane:not(.layout) {
  max-width: 1200px; margin: 0 auto; padding: 22px clamp(16px,4vw,48px) 140px;
}
.pane-intro h2 { font-family: "Unbounded"; font-size: 24px; margin: 0 0 6px; }
.pane-intro h3 { font-family: "Unbounded"; font-size: 18px; margin: 0 0 6px; }
.pane-intro { margin-bottom: 16px; }
.pane-intro .ai-btn { margin-top: 10px; }

/* ---- Як працює: data flow ---- */
.flow-body { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 720px; }
.flow-stage {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 0 14px 14px 0; padding: 14px 16px;
}
.flow-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--cream); color: var(--pomelo);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.flow-title { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.flow-role { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.flow-detail { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.flow-tech { font-size: 12px; color: var(--pomelo); margin-top: 4px; font-family: ui-monospace, monospace; }
.flow-arrow { text-align: center; color: var(--line); font-size: 20px; line-height: 1; padding: 3px 0; }
.f-blue { border-left-color: #378ADD; } .f-blue .flow-role { background: #E6F1FB; color: #185FA5; }
.f-purple { border-left-color: #7F77DD; } .f-purple .flow-role { background: #EEEDFE; color: #534AB7; }
.f-teal { border-left-color: #1D9E75; } .f-teal .flow-role { background: #E1F5EE; color: #0F6E56; }
.f-amber { border-left-color: #EF9F27; } .f-amber .flow-role { background: #FAEEDA; color: #854F0B; }
.f-coral { border-left-color: #D85A30; } .f-coral .flow-role { background: #FAECE7; color: #993C1D; }
.f-gray { border-left-color: #888780; } .f-gray .flow-role { background: #F1EFE8; color: #5F5E5A; }

.workflow { max-width: 720px; margin: 0; padding-left: 22px; }
.workflow li { padding: 6px 0; font-size: 14px; }
.workflow code { font-size: 13px; }

.goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.goal-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.goal-name { font-weight: 700; color: var(--pomelo); font-size: 15px; margin-bottom: 4px; }
.goal-how { font-size: 14px; margin-bottom: 6px; }
.goal-model { font-size: 12px; color: var(--ink-soft); font-family: ui-monospace, monospace; }

/* ---- Довідники ---- */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.ref-head { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.ref-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ref-list li { font-size: 13.5px; line-height: 1.45; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.ref-list li:last-child { border-bottom: none; }
.ref-tool code { font-size: 11px; color: var(--ink-soft); background: var(--cream); padding: 3px 8px; border-radius: 6px; }

/* ---- Налаштування ---- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }

/* ---- Прогноз поповнення ---- */
.refill-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.refill-item:last-child { border-bottom: none; }
.refill-badge { font-size: 13px; }
.refill-name { flex: 1; line-height: 1.35; }
.refill-when { font-size: 12px; font-weight: 600; white-space: nowrap; }
.ru-now .refill-when { color: #C0392B; }
.ru-soon .refill-when { color: #B9770B; }
.ru-later .refill-when { color: var(--ink-soft); }
.refill-card .ai-btn { width: 100%; margin-top: 10px; }

/* ---- Крос-сел пари ---- */
.pair-box { margin: 14px 0; padding: 14px; background: var(--cream); border-radius: 12px; }
.pair-title { font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.pair-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(51,36,26,.12); }
.pair-item:last-child { border-bottom: none; }
.pair-emoji { font-size: 20px; }
.pair-main { flex: 1; }
.pair-name { font-weight: 600; font-size: 14px; }
.pair-reason { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.pair-because { color: var(--pomelo); }
.pair-promo { font-size: 11px; font-weight: 700; color: #fff; background: #E85D2A; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.pair-add { white-space: nowrap; font-size: 13px; padding: 6px 12px; }
.cart-why { font-size: 11.5px; color: var(--ink-soft); font-style: italic; }

/* ---- Видалення з кошика ---- */
.cart-right { display: inline-flex; align-items: center; gap: 10px; }
.cart-del { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; line-height: 1; }
.cart-del:hover { background: #FBE9E4; color: #C0392B; }

/* ---- Лідерборди ---- */
.board-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.board-tab { flex: 1; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.board-tab.active { background: var(--cream); color: var(--pomelo); border-color: var(--pomelo); }
.board-role { font-size: 11px; color: var(--ink-soft); }
.board-src { margin-top: 8px; font-size: 11px; }
.board .rank { font-size: 11px; font-weight: 700; color: var(--ink-soft); width: 16px; text-align: center; }
.board-you { background: var(--cream); border-radius: 8px; margin: 0 -4px; padding: 2px 4px; }
.help-btn { border: none; background: none; cursor: pointer; font-size: 14px; padding: 0 2px; }
.help-btn:hover { transform: scale(1.2); }

/* ---- Картинки товарів ---- */
.cart-img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--cream); }
.cart-img-ph { display: inline-grid; place-items: center; font-size: 18px; }
#cartItems li { display: flex; align-items: center; gap: 10px; }
.cart-item-name { flex: 1; }
.pair-img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* ---- «Що ще додати» ---- */
.complete-box { background: var(--cream); border-radius: 12px; padding: 14px; margin-top: 6px; }
.complete-head { font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.complete-meal { font-size: 13px; margin: 0 0 10px; }
.complete-list { display: flex; flex-direction: column; gap: 8px; }
.complete-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(51,36,26,.12); }
.complete-item:last-child { border-bottom: none; }
.complete-main { flex: 1; display: flex; flex-direction: column; }
.complete-why { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.cart-qty { font-size: 12px; color: var(--pomelo); font-weight: 700; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-clear { font-size: 12.5px; padding: 5px 12px; color: var(--ink-soft); }
.cart-clear:hover { color: #C0392B; }

/* ---- Кількість товару ---- */
.qty-ctrl { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border-radius: 8px; padding: 2px; }
.qty-btn { width: 24px; height: 24px; border: none; background: #fff; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--pomelo); line-height: 1; display: grid; place-items: center; }
.qty-btn:hover { background: var(--pomelo); color: #fff; }
.qty-val { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }

/* ---- Звідки квести ---- */
.quest-source { margin: 4px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.quest-source summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 10px 0; color: var(--pomelo); }
.quest-source-body { padding: 4px 0 14px; }
.quest-source-body ul { margin: 8px 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.quest-source-body li { font-size: 13.5px; line-height: 1.5; }
.quest-source-body p { font-size: 14px; margin: 6px 0; }
.quest-source-body code { font-size: 12px; }

/* ---- Акції в кошику ---- */
.cart-promo { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #E85D2A; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.old-price { text-decoration: line-through; color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.savings { display: inline-block; margin-top: 4px; color: #1D9E5A; font-weight: 700; font-size: 13px; }
.delivery-line { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.per-kg { font-size: 11px; color: var(--ink-soft); font-weight: 400; }

/* ---- Персональна рекомендація докупівлі ---- */
.refill-msg { background: linear-gradient(135deg,#FFF4E8,#FFE9D2); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: #7A3E00; margin-bottom: 10px; }
.refill-promo { margin-left: 4px; }


/* ═══════════ ПРОФІЛЬ ПОКУПЦЯ (структурований) ═══════════ */
.profile-card { grid-column: 1 / -1; }
.profile-head { margin-bottom: 16px; }
.profile-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pf-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin: 0;
  background: #FFFDFB;
}
.pf-section-wide { grid-column: 1 / -1; }
.pf-section legend {
  font-size: 12px;
  font-weight: 800;
  color: var(--pomelo-deep);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 8px;
  margin-left: -4px;
}
.pf-field { margin-top: 12px; }
.pf-field:first-of-type { margin-top: 4px; }
.prefs-label {
  display: block; font-size: 11.5px; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .02em;
}
.prefs-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prefs-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.prefs-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; background: var(--cream);
  border: 1px solid transparent; border-radius: 999px;
  padding: 6px 13px; cursor: pointer; user-select: none;
  transition: all .15s;
}
.prefs-chip:hover { border-color: var(--line); }
.prefs-chip:has(input:checked) {
  background: #FFE3CC; border-color: var(--pomelo); color: var(--pomelo-deep); font-weight: 600;
}
.prefs-chip input { accent-color: var(--pomelo); width: 15px; height: 15px; }
/* число с суффиксом */
.pf-num-wrap { position: relative; display: inline-flex; align-items: center; }
.prefs-num {
  width: 72px; padding: 8px 34px 8px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 14px; background: #fff;
}
.prefs-num.wide { width: 130px; }
.pf-num-suffix {
  position: absolute; right: 12px; font-size: 12px; color: var(--ink-soft); pointer-events: none;
}
.pf-budget { margin-top: 14px; }
/* селекти поведінки агента */
.prefs-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prefs-sel {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11.5px; color: var(--ink-soft); font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
}
.prefs-sel select {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 13.5px; font-weight: 400; text-transform: none;
  letter-spacing: 0; color: var(--ink); background: #fff; cursor: pointer;
}
.prefs-sel select:focus { outline: 2px solid var(--pomelo); border-color: var(--pomelo); }
.prefs-save { margin-top: 18px; }

@media (max-width: 760px) {
  .profile-sections { grid-template-columns: 1fr; }
  .prefs-selects { grid-template-columns: 1fr; }
}

/* ---- Персональна рекомендація докупівлі ---- */
.refill-msg { background: linear-gradient(135deg,#FFF4E8,#FFE9D2); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: #7A3E00; margin-bottom: 10px; }
.refill-promo { margin-left: 4px; }
.refill-rate { font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.budget-note { display: inline-block; margin-top: 4px; font-size: 13px; color: #C0392B; font-weight: 600; }

/* ═══════════ ВКЛАДКА «ЧОМУ УНІКАЛЬНО» ═══════════ */
.uniq-hero {
  background: linear-gradient(135deg, #FFF4E8, #FFE3CC);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 20px;
  font-size: 15px; line-height: 1.55; color: #5A3410;
}
.uniq-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.uniq-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.uniq-table th, .uniq-table td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.uniq-table thead th { background: var(--cream); font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.uniq-table th.uniq-us { background: var(--pomelo); color: #fff; }
.uniq-table td.uc-feat { text-align: left; font-weight: 600; color: var(--ink); }
.uc-yes { color: #1E8E4E; font-weight: 800; font-size: 16px; }
.uc-part { color: #E0A020; font-weight: 700; }
.uc-no { color: #C9BBAD; }
.uc-us-cell { background: #FFF4E8; color: #1E8E4E; font-weight: 800; font-size: 16px; }
.uniq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.uniq-card p:not(.eyebrow) { font-size: 13.5px; line-height: 1.5; color: var(--ink); margin: 6px 0 0; }

/* In-Store */
.instore-card p { font-size: 14px; line-height: 1.55; color: var(--ink); }
.instore-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.isf-step { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.isf-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--pomelo); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 800; }
.isf-arrow { color: var(--pomelo); font-weight: 800; }
.instore-demo { margin-top: 16px; background: #1a1a1a; border-radius: 14px; padding: 16px; color: #eee; max-width: 380px; }
.isd-scan { font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid #333; }
.isd-detail { padding: 10px 0; }
.isd-line { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.isd-line span { color: #aaa; }
.isd-promo { color: #FF8C42; }
.isd-combo { font-size: 12.5px; padding-top: 10px; border-top: 1px solid #333; color: #ccc; line-height: 1.5; }
@media (max-width: 760px) { .uniq-cards { grid-template-columns: 1fr; } }

/* ═══════════ IN-STORE СКАНЕР ═══════════ */
.scanner { display: grid; grid-template-columns: 320px 1fr; gap: 20px; margin: 18px 0; align-items: start; }
.scanner-cam { position: relative; width: 320px; height: 240px; background: #111; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.scanner-cam video { width: 100%; height: 100%; object-fit: cover; }
.scan-placeholder { position: absolute; color: #888; font-size: 14px; }
.scan-frame { position: absolute; inset: 40px 30px; border: 2px solid rgba(255,107,0,.9); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.15); }
.scan-laser { position: absolute; left: 0; right: 0; height: 2px; background: #FF6B00; box-shadow: 0 0 8px #FF6B00; animation: scanmove 2s ease-in-out infinite; }
@keyframes scanmove { 0%,100% { top: 4%; } 50% { top: 96%; } }
.scanner-controls { display: flex; flex-direction: column; gap: 10px; }
.scan-manual { display: flex; gap: 8px; }
.scan-manual input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; }
.scan-demo { align-self: flex-start; }
.scan-hint { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; margin: 2px 0 0; }
.instore-result { margin-top: 8px; }
.isr-card { background: #1a1a1a; border-radius: 14px; padding: 16px 18px; color: #eee; max-width: 420px; animation: isrpop .25s ease; }
@keyframes isrpop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.isr-scan { font-size: 12px; color: #FF8C42; padding-bottom: 8px; border-bottom: 1px solid #333; }
.isr-name { font-size: 17px; font-weight: 700; margin: 10px 0; }
.isr-detail { }
.isr-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; }
.isr-line span { color: #aaa; }
.isr-old { color: #888; text-decoration: line-through; font-weight: 400; font-size: 12px; }
.isr-combo { font-size: 13px; padding-top: 10px; margin-top: 8px; border-top: 1px solid #333; color: #ccc; line-height: 1.5; }
.isr-add { margin-top: 14px; width: 100%; }
.isr-empty { color: var(--ink-soft); font-size: 14px; padding: 12px; }
@media (max-width: 760px) { .scanner { grid-template-columns: 1fr; } .scanner-cam { width: 100%; } }

/* ---- Місії в залі ---- */
.store-missions { margin-top: 18px; background: #FFFDFB; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.sm-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sm-item:last-of-type { border-bottom: none; }
.sm-done { opacity: .6; }
.sm-done .sm-title { text-decoration: line-through; }
.sm-emoji { width: 22px; text-align: center; }
.sm-title { flex: 1; }
.sm-prog { font-size: 12px; font-weight: 700; color: var(--pomelo-deep); background: var(--cream); padding: 2px 9px; border-radius: 999px; }
.sm-stats { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-soft); }

/* ═══════════ МАГАЗИН ВИНАГОРОД ═══════════ */
.rewards-head { display: flex; align-items: center; justify-content: space-between; }
.coins-badge { background: linear-gradient(135deg,#FFB800,#FF8C00); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 11px; border-radius: 999px; box-shadow: 0 2px 6px rgba(255,140,0,.3); }
.rw-group { margin-top: 12px; }
.rw-cat { font-size: 11px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.rw-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rw-item:last-child { border-bottom: none; }
.rw-emoji { font-size: 20px; width: 26px; text-align: center; }
.rw-info { flex: 1; display: flex; flex-direction: column; }
.rw-info b { font-size: 13px; }
.rw-desc { font-size: 11px; color: var(--ink-soft); line-height: 1.3; }
.rw-buy { background: var(--pomelo); color: #fff; border: none; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all .15s; }
.rw-buy:hover { background: var(--pomelo-deep); }
.rw-buy.disabled { background: #E5D8C8; color: #A08B75; cursor: not-allowed; }
.rw-got { font-size: 12px; color: #1E8E4E; font-weight: 700; white-space: nowrap; }
.rw-lock { opacity: .7; }
.rw-owned { opacity: .6; }

/* ---- In-store карточка: деталі + порада ---- */
.isr-meta { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.isr-nutri { display: flex; gap: 14px; padding: 10px 0; margin-top: 6px; border-top: 1px solid #333; font-size: 12.5px; color: #ccc; }
.isr-nutri b { color: #fff; }
.isr-allerg { font-size: 12px; color: #E0A020; margin-top: 6px; }
.isr-oos { font-size: 12.5px; color: #FF8C42; margin-top: 8px; }
.isr-tip { background: rgba(255,140,66,.12); border-left: 3px solid #FF8C42; border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: 13px; line-height: 1.5; color: #ffe; }
.isr-tip b { color: #FF8C42; }

/* ---- Персональне привітання ---- */
.greeting-banner { background: linear-gradient(135deg,#FFF4E8,#FFE9D2); border-radius: 12px; padding: 12px 18px; margin-bottom: 14px; font-size: 15px; color: #5A3410; }
.greeting-banner b { color: var(--pomelo-deep); }

/* ---- Бізнес-метрики (вкладка унікальності) ---- */
.uniq-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.um-item { background: #FFFDFB; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; text-align: center; }
.um-num { display: block; font-size: 24px; font-weight: 800; color: var(--pomelo-deep); }
.um-label { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.35; }
@media (max-width: 760px) { .uniq-metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---- Впевненість прогнозу докупівлі ---- */
.conf { font-size: 9px; vertical-align: middle; margin-right: 2px; }
.conf-high { color: #1E8E4E; }
.conf-med { color: #E0A020; }
.conf-low { color: #C9BBAD; }

/* ---- Доступність: трохи темніший вторинний текст для контрасту (WCAG AA) ---- */
:root { --ink-soft: #7A6553; }

/* ---- In-store сканер: мобільна вёрстка ---- */
@media (max-width: 640px) {
  .scanner { grid-template-columns: 1fr; }
  .scanner-cam { width: 100%; height: 220px; }
  .uniq-metrics { grid-template-columns: repeat(2, 1fr); }
  .isr-card { max-width: 100%; }
  .greeting-banner { font-size: 14px; }
}

/* ---- Відеопітч ---- */
.videopitch-card { margin-bottom: 18px; }
.vp-row { display: flex; gap: 10px; margin: 10px 0 8px; }
.vp-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.vp-row input:focus { border-color: var(--pomelo); outline: none; }
.vp-row .cta { padding: 10px 16px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }

/* ═══════════ 🎮 ІГРИ (окрема вкладка) ═══════════ */
.games-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; max-width: 1500px; }
@media (max-width: 1080px) { .games-layout { grid-template-columns: 1fr; } }
.games-col-play { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 820px) { .games-col-play { grid-template-columns: 1fr; } }
.game-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 4px 18px rgba(51,36,26,.05); }
.game-card-tennis { justify-content: flex-start; }
.tennis-stage { position: relative; width: 100%; max-width: 300px; margin: 0 auto; flex: 1; display: flex; }
#tennisCanvas { border-radius: 12px; width: 100%; height: auto; display: block; background: #173a1d; cursor: none; touch-action: none; aspect-ratio: 320 / 440; }
.game-card-head { text-align: center; }
.game-card-head h3 { font-family: "Unbounded"; font-size: 20px; margin: 0 0 3px; }
.game-card-sub { font-size: 13px; color: var(--ink-soft); }
/* колесо */
.wheel-stage { position: relative; padding: 6px; }
.wheel-wrap { position: relative; width: 320px; height: 320px; max-width: 100%; }
.wheel-wrap svg { display: block; width: 100%; height: auto; transform-origin: 50% 50%; }
.wheel-pointer { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); z-index: 3; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--pomelo-deep); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.wheel-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; background: #fff; border: 3px solid var(--pomelo); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.wheel-spin-btn { width: 100%; font-size: 15px; }
.wheel-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 11px; color: var(--ink-soft); }
.wl-item { display: inline-flex; align-items: center; gap: 4px; }
.wl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.game-result { font-size: 14px; font-weight: 700; color: var(--pomelo-deep); text-align: center; min-height: 20px; margin: 0; }
/* теніс */
.tennis-overlay { position: absolute; inset: 0; background: rgba(15,30,18,.72); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; backdrop-filter: blur(2px); }
.tennis-overlay.hidden { display: none; }
.tennis-overlay-inner { color: #fff; padding: 20px; }
.tennis-overlay-inner p { font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.tennis-hud { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.tennis-score { font-weight: 800; font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tennis-diff { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tennis-diff select { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
/* профіль смаку */
.play-profile-card { background: linear-gradient(135deg,#FFFDFB,#FFF4E8); border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 88px; }
@media (max-width: 1080px) { .play-profile-card { position: static; } }
.pp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.pp-title { font-weight: 700; font-size: 15px; }
.pp-badge { background: var(--pomelo); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.pp-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pp-bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; }
.pp-track { height: 8px; background: #EFE4D6; border-radius: 999px; overflow: hidden; }
.pp-track i { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.pp-bar b { text-align: right; font-size: 12px; color: var(--ink-soft); }
.pp-traits { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.pp-offer-box { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--pomelo); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pp-offer-box b { font-size: 14px; color: var(--ink); }
.pp-offer-box span { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.pp-offer-btn { margin-top: 10px; align-self: flex-start; }

/* «Пауза перед оффером» — момент передчуття */
.pp-analyzing { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: #fff; border: 1px dashed var(--pomelo); border-radius: 10px; }
.pp-spin { width: 20px; height: 20px; border: 3px solid #FFE0C2; border-top-color: var(--pomelo); border-radius: 50%; animation: pp-spin .7s linear infinite; flex-shrink: 0; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-analyzing-text { font-size: 13.5px; font-weight: 600; color: var(--pomelo-deep); }
.pp-offer-reveal { animation: pp-reveal .5s ease; }
@keyframes pp-reveal { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Формування контуру: впевненість + графік накопичення */
.pp-confidence { margin-bottom: 12px; }
.pp-conf-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.pp-conf-label { font-size: 13px; color: var(--ink); font-weight: 600; }
.pp-conf-row b { font-size: 16px; color: var(--pomelo-deep); }
.pp-conf-track { height: 10px; background: #EFE4D6; border-radius: 999px; overflow: hidden; }
.pp-conf-track i { display: block; height: 100%; background: linear-gradient(90deg,#FFB800,#FF6B00); border-radius: 999px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.pp-conf-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
.pp-spark { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px; margin-bottom: 12px; }
.pp-spark-empty { font-size: 12px; color: var(--ink-soft); text-align: center; padding: 12px 6px; line-height: 1.5; }
.pp-spark svg { display: block; }
.pp-spark-legend { display: flex; gap: 12px; justify-content: center; font-size: 11px; margin-top: 6px; flex-wrap: wrap; }

/* Що ми зчитуємо в грі — прозорий розбір сигналів */
.pp-signals { margin-bottom: 12px; }
.pps-details { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pps-details summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--ink); list-style: none; user-select: none; }
.pps-details summary::-webkit-details-marker { display: none; }
.pps-details summary::after { content: "⌄"; float: right; transition: transform .2s; }
.pps-details[open] summary::after { transform: rotate(180deg); }
.pps-list { padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.pps-row { display: flex; gap: 10px; align-items: flex-start; }
.pps-row.pps-pending { opacity: .55; }
.pps-src { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.pps-body { flex: 1; min-width: 0; }
.pps-line { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pps-line b { font-size: 13px; color: var(--ink); }
.pps-val { font-size: 12.5px; color: var(--pomelo-deep); font-weight: 600; white-space: nowrap; }
.pps-reads { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.pps-mark { margin-right: 6px; font-size: 9px; vertical-align: middle; }
.pps-on { color: #2E7D32; }
.pps-off { color: #C9BBAD; }
.pps-note { font-size: 11px; color: var(--ink-soft); line-height: 1.5; margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); }

/* ═══════════ 💰 ПЛАНУВАЛЬНИК РАЦІОНУ ═══════════ */
.planner-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 24px; align-items: start; max-width: 1500px; }
@media (max-width: 1000px) { .planner-layout { grid-template-columns: 1fr; } }
.planner-col-form { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 1000px) { .planner-col-form { position: static; } }
.pl-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.pl-budget { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pl-budget input { flex: 1; font: inherit; font-size: 20px; font-weight: 800; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pl-budget input:focus { border-color: var(--pomelo); outline: none; }
.pl-budget span { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.pl-label select { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; background: #fff; }
.pl-build-btn { width: 100%; font-size: 15px; }
.pl-analysis { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pl-an-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.pl-an-row b { color: var(--pomelo-deep); }
.pl-an-hint { font-size: 11px; margin: 6px 0 0; }
.pl-steps { margin: 8px 0 0; padding-left: 20px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.pl-steps b { color: var(--ink); }
.pl-empty { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 48px 24px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.pl-thinking { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--pomelo-deep); padding: 20px 0; }
.pl-sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; margin-bottom: 12px; }
.pl-sum-cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pl-sum-cell span { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .3px; }
.pl-sum-cell b { font-size: 18px; color: var(--ink); }
.pl-save { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }
.pl-save-good { background: var(--basil-soft); color: #1B5E20; }
.pl-save-good b { font-size: 17px; }
.pl-save-warn { background: #FFF3E0; color: #8A5A20; }
.pl-reason { font-size: 13px; line-height: 1.6; color: var(--ink-soft); background: #fff; border-left: 3px solid var(--pomelo); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.pl-val { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pl-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.pl-badge-ai { background: #EDE7F6; color: #4527A0; }
.pl-badge-rules { background: #ECEFF1; color: #455A64; }
.pl-badge-ok { background: var(--basil-soft); color: #1B5E20; }
.pl-val-details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.pl-val-details summary { cursor: pointer; font-size: 12.5px; font-weight: 700; }
.pl-val-details ul { margin: 8px 0; padding-left: 18px; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.pl-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 12px; }
.pl-day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pl-day-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.pl-day-head b { font-size: 12px; color: var(--pomelo-deep); text-transform: uppercase; letter-spacing: .4px; }
.pl-day-head span { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pl-day-items { display: flex; flex-wrap: wrap; gap: 5px; }
.pl-item { background: var(--cream); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; color: var(--ink); }
.pl-why { font-size: 11.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; }
.pl-actions { margin-top: 18px; }

/* Точність двійника — цикл валідації */
.pp-accuracy { margin-bottom: 12px; }
.pp-acc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.pp-acc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; }
.pp-acc-head b { font-size: 17px; color: #2E7D32; }
.pp-acc-head i { font-size: 12px; color: var(--ink-soft); font-style: normal; }
.pp-acc-track { height: 8px; background: #EFE4D6; border-radius: 999px; overflow: hidden; margin: 7px 0 5px; }
.pp-acc-track i { display: block; height: 100%; background: linear-gradient(90deg,#7CB342,#2E7D32); border-radius: 999px; transition: width .7s ease; }
.pp-acc-hint { font-size: 11.5px; color: var(--ink-soft); }
.pp-acc-note { font-size: 10.5px; color: var(--ink-soft); line-height: 1.5; margin: 8px 0 0; padding-top: 7px; border-top: 1px dashed var(--line); }
.pp-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--ink-soft); margin: -4px 0 12px; cursor: pointer; line-height: 1.4; }
.pp-consent input { margin-top: 1px; flex-shrink: 0; }
.pp-offer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pp-why-btn { font-size: 12.5px; padding: 9px 14px; }
.pp-why-box { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 12px; }
.pp-why-chain { display: flex; flex-direction: column; gap: 8px; }
.pp-why-step { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 2px solid var(--pomelo); }
.pp-why-step b { font-size: 11.5px; color: var(--ink); }
.pp-why-step span { font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }
.pp-why-sum { font-size: 12.5px; color: var(--ink); background: var(--basil-soft); border-radius: 8px; padding: 9px 12px; margin: 10px 0 6px; line-height: 1.5; }

/* Валідація та інтеграція (вкладка «Чому унікально») */
.uniq-block { margin: 32px 0; }
.uniq-block h3 { font-family: "Unbounded"; font-size: 19px; margin: 0 0 4px; }
.val-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 14px; margin-top: 14px; }
.val-card p { font-size: 13px; line-height: 1.55; margin: 0; }
.val-list { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.integr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 14px; margin-top: 14px; }
.integr-card { position: relative; padding-top: 22px; }
.integr-num { position: absolute; top: 14px; right: 16px; width: 26px; height: 26px; background: var(--pomelo); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.integr-card p { font-size: 13px; line-height: 1.55; margin: 0; }
.econ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; margin-top: 14px; }
.econ-card p { font-size: 13px; line-height: 1.55; margin: 0; }
.uc-us-no { color: var(--ink-soft) !important; opacity: .6; }
.pl-cold { background: var(--cream); border-radius: 10px; padding: 12px 14px; }
.pl-cold b { font-size: 13px; display: block; margin-bottom: 5px; }
.pl-cold p { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 6px; }
.pl-cold p:last-child { margin-bottom: 0; }
.pl-save-neutral { background: var(--cream); color: var(--ink); }
.pl-badge-basis { background: #E3F2FD; color: #1565C0; }
.isr-unknown { background: #FFF3E0; border: 1px solid #FFCC80; border-radius: 12px; padding: 16px 18px; }
.isr-unknown b { font-size: 14px; display: block; margin-bottom: 6px; }
.isr-unknown p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 6px; }
.isr-demo-note { background: #E3F2FD; color: #1565C0; font-size: 11.5px; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; line-height: 1.45; }

/* План: день → прийоми їжі */
.pl-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; }
.pl-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pl-day-title { font-size: 12px; font-weight: 800; color: var(--pomelo-deep); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pl-meal { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pl-meal:last-child { border-bottom: 0; padding-bottom: 0; }
.pl-meal-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.pl-slot { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.pl-meal-head b { font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.pl-why { font-size: 11px; color: var(--ink-soft); margin-top: 5px; font-style: italic; }
.cart-empty-state { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 44px 24px; text-align: center; }
.cart-empty-state p { margin: 0 0 6px; font-size: 15px; }

/* Знижки та купони в кошику */
.cart-discounts { background: linear-gradient(135deg,#FFF8F0,#FFF1E0); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.cd-head { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; }
.cd-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cd-cell span { font-size: 11px; color: var(--ink-soft); }
.cd-cell b { font-size: 17px; }
.cd-good b { color: #2E7D32; }
.cd-coupons { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cd-sub { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.cd-coupons ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; }
.cd-until { color: var(--ink-soft); font-size: 11px; margin-left: 6px; }

/* Профіль: людські пояснення */
.pp-axis { margin-bottom: 12px; }
.pp-axis-note { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; margin-top: 3px; padding-left: 2px; }
.pp-axis-note b { color: var(--ink); text-transform: lowercase; }
.pp-axis-ben { color: var(--pomelo-deep); }
.pp-arch-explain { background: #fff; border-left: 3px solid var(--pomelo); border-radius: 8px; padding: 10px 13px; font-size: 12.5px; line-height: 1.55; margin-bottom: 10px; }
.pp-traits-list { display: flex; flex-direction: column; gap: 3px; }
.pl-promos { background: #fff; border-left: 3px solid #2E7D32; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 12.5px; }
.pl-promos ul { margin: 5px 0 0; padding-left: 18px; line-height: 1.6; color: var(--ink-soft); }
.cart-budget-note { background: #FFF3E0; border: 1px solid #FFCC80; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; line-height: 1.5; }
.pl-cell-note { font-size: 10px; color: var(--ink-soft); font-style: normal; }
.pl-done { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.pl-done-ok { background: var(--basil-soft); color: #1B5E20; }
.pl-done-warn { background: #FFF3E0; color: #8A5A20; }
.pl-done a { color: inherit; font-weight: 700; }
.pl-shopping { margin-bottom: 14px; }
.pl-shop { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.pl-shop summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.pl-shop-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 6px; }
.pl-shop-list li { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.pl-shop-list li span { flex: 1; }
.pl-shop-list li b { color: var(--pomelo-deep); }
.pl-shop-list li i { font-size: 10.5px; color: var(--ink-soft); font-style: normal; }

/* ═══ 🥫 ВІРТУАЛЬНА КОМОРА ═══ */
.pantry-add { display: flex; gap: 10px; margin-bottom: 12px; max-width: 560px; }
.pantry-add input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.pantry-add input:focus { border-color: var(--pomelo); outline: none; }
.pantry-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }
.pl-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.pl-dot-have { background: #2E7D32; } .pl-dot-low { background: #F9A825; } .pl-dot-out { background: #C62828; }
.pantry-list { display: flex; flex-direction: column; gap: 8px; }
.pantry-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.pantry-have { border-left: 3px solid #2E7D32; }
.pantry-low { border-left: 3px solid #F9A825; }
.pantry-out { border-left: 3px solid #C62828; opacity: .85; }
.pantry-ic { font-size: 16px; }
.pantry-body { flex: 1; min-width: 0; }
.pantry-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pantry-top b { font-size: 14px; }
.pantry-days { font-size: 12px; color: var(--pomelo-deep); font-weight: 700; }
.pantry-conf { font-size: 10.5px; color: var(--ink-soft); background: var(--cream); padding: 1px 7px; border-radius: 999px; }
.pantry-reason { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.pantry-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pantry-btn { font-size: 11.5px; padding: 6px 10px; }
.pantry-empty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 36px 20px; text-align: center; color: var(--ink-soft); }
.pl-swap { margin-top: 7px; font-size: 11px; padding: 4px 9px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink-soft); }
.pl-swap:hover { border-color: var(--pomelo); color: var(--pomelo-deep); }
.pl-swap:disabled { opacity: .6; cursor: default; }

/* ═══ 📈 ЦІНИ ═══ */
.prices-summary { margin-bottom: 14px; }
.pw-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 10px; }
.pw-cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pw-cell span { font-size: 11px; color: var(--ink-soft); }
.pw-cell b { font-size: 20px; }
.pw-save { background: var(--basil-soft); border-color: #A5D6A7; }
.pw-save b { color: #1B5E20; font-size: 18px; }
.pw-good { color: #2E7D32; } .pw-bad { color: #C62828; } .pw-flat { color: var(--ink-soft); }
.prices-list { display: flex; flex-direction: column; gap: 8px; }
.pw-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.pw-row-deal { border-left: 3px solid #2E7D32; background: linear-gradient(90deg,#F6FBF6,#fff 40%); }
.pw-body { flex: 1; min-width: 0; }
.pw-top b { font-size: 14px; }
.pw-promo { font-size: 10.5px; background: var(--pomelo); color: #fff; padding: 1px 8px; border-radius: 999px; margin-left: 8px; }
.pw-nums { display: flex; gap: 12px; align-items: baseline; font-size: 12.5px; margin-top: 3px; flex-wrap: wrap; }
.pw-was { color: var(--ink-soft); text-decoration: line-through; }
.pw-now { font-weight: 700; }
.pw-deal { font-size: 12.5px; color: #1B5E20; margin-top: 7px; line-height: 1.5; }
.pw-why { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.pw-btn { flex-shrink: 0; padding: 9px 16px; font-size: 13px; }

/* 💳 Прогноз балабонусів */
.cart-bonus { background: linear-gradient(135deg,#FFF9E6,#FFF3D6); border: 1px solid #F0D9A0; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.bf-head { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.bf-head b { color: var(--pomelo-deep); font-size: 19px; }
.bf-balance { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.bf-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.8; }
.bf-list b { color: #2E7D32; }
.bf-tag { font-size: 10px; background: var(--pomelo); color: #fff; padding: 1px 7px; border-radius: 999px; }
.bf-hint { color: var(--ink-soft); font-size: 11px; }
.bf-missed { margin-top: 8px; }
.bf-missed summary { cursor: pointer; font-size: 12.5px; font-weight: 700; }

/* Комора: форма з автодоповненням */
.pantry-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; max-width: 760px; }
.pantry-search { position: relative; }
.pantry-search input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; box-sizing: border-box; }
.pantry-search input:focus { border-color: var(--pomelo); outline: none; }
.pantry-suggest { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; box-shadow: 0 10px 30px rgba(51,36,26,.14); z-index: 30; max-height: 280px; overflow: auto; }
.ps-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; cursor: pointer; }
.ps-item:last-child { border-bottom: 0; }
.ps-item:hover { background: var(--cream); }
.ps-name { font-size: 13.5px; font-weight: 600; }
.ps-meta { font-size: 11.5px; color: var(--ink-soft); }
.ps-none { padding: 12px 14px; font-size: 12.5px; color: var(--ink-soft); }
.pantry-fields { display: flex; gap: 12px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.pantry-fields label { font-size: 12px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.pantry-fields input[type=date] { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; }
.pantry-qty { display: flex; gap: 6px; }
.pantry-qty input { width: 80px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; }
.pantry-qty select { padding: 9px 8px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; }
.pl-home { background: #fff; border-left: 3px solid #2E7D32; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 12.5px; }
.pl-home ul { margin: 5px 0 0; padding-left: 18px; line-height: 1.6; color: var(--ink-soft); }
.pl-saved { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: #1B5E20; line-height: 1.5; }

/* Здоровʼя комори — зведення користі */
.pantry-health { margin-bottom: 14px; }
.ph-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.ph-left { text-align: center; }
.ph-score { font-size: 38px; font-weight: 800; line-height: 1; }
.ph-score span { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.ph-label { font-size: 11.5px; color: var(--ink-soft); max-width: 190px; margin-top: 5px; line-height: 1.4; }
.ph-right { display: flex; gap: 22px; flex-wrap: wrap; }
.ph-stat { display: flex; flex-direction: column; gap: 2px; }
.ph-stat span { font-size: 11px; color: var(--ink-soft); }
.ph-stat b { font-size: 18px; }
.ph-warn { color: #C62828; }
.ph-tips { grid-column: 1/-1; margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--ink-soft); line-height: 1.7; border-top: 1px dashed var(--line); padding-top: 10px; }

/* ═══ 👤 ПРОФІЛЬ ГОСТЯ 360° ═══ */
.c3-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .c3-top { grid-template-columns: 1fr 1fr; } }
.c3-seg, .c3-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.c3-seg span, .c3-kpi span { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .3px; }
.c3-seg b { font-size: 20px; } .c3-kpi b { font-size: 19px; }
.c3-seg em, .c3-kpi em { font-size: 11px; color: var(--ink-soft); font-style: normal; }
.c3-sow { font-size: 13px !important; line-height: 1.35; }
.c3-seg-лояльний { border-left: 4px solid #2E7D32; }
.c3-seg-постійний { border-left: 4px solid var(--pomelo); }
.c3-seg-новачок { border-left: 4px solid #1565C0; }
.c3-seg-під { border-left: 4px solid #F9A825; }
.c3-seg-сплячий { border-left: 4px solid #C62828; }
.c3-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .c3-grid { grid-template-columns: 1fr; } }
.c3-bar { display: grid; grid-template-columns: 190px 1fr 46px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; }
.c3-bar em { grid-column: 1/-1; font-size: 10.5px; color: var(--ink-soft); font-style: normal; margin-top: -4px; }
.c3-track { height: 8px; background: #EFE4D6; border-radius: 999px; overflow: hidden; }
.c3-track i { display: block; height: 100%; background: linear-gradient(90deg,#FFB800,var(--pomelo)); border-radius: 999px; }
.c3-bar b { text-align: right; font-size: 12px; }
.c3-play { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.c3-list { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.65; }
.c3-good li { color: #1B5E20; } .c3-bad li { color: #9A2B2B; }
.c3-nba { background: linear-gradient(135deg,#FFFDFB,#FFF4E8); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.c3-nba h3 { font-family: "Unbounded"; font-size: 17px; margin: 0 0 12px; }
.c3-action { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 9px; }
.c3-num { width: 26px; height: 26px; flex-shrink: 0; background: var(--pomelo); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.c3-act-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.c3-act-head b { font-size: 13.5px; }
.c3-chan { font-size: 10.5px; background: var(--cream); padding: 2px 9px; border-radius: 999px; color: var(--ink-soft); }
.c3-act-why { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.c3-act-eff { font-size: 11.5px; color: #1B5E20; margin-top: 2px; }
.c3-src-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin-top: 8px; }
.c3-src { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.c3-src b { font-size: 12px; } .c3-src span { font-size: 11px; color: var(--ink-soft); }
.c3-src-off { opacity: .55; }
.c3-sources { margin-bottom: 16px; }
.c3-bar-unknown { opacity: .6; }
.c3-bar-unknown .c3-track { background: repeating-linear-gradient(45deg,#EFE4D6,#EFE4D6 4px,#F7F0E6 4px,#F7F0E6 8px); }
.c3-coverage { display: grid; grid-template-columns: 140px 1fr 50px; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; margin-bottom: 16px; font-size: 12.5px; }
.c3-coverage em { grid-column: 1/-1; font-size: 11px; color: var(--ink-soft); font-style: normal; margin-top: -3px; }
.c3-cov-track { height: 8px; background: #EFE4D6; border-radius: 999px; overflow: hidden; }
.c3-cov-track i { display: block; height: 100%; background: linear-gradient(90deg,#7CB342,#2E7D32); border-radius: 999px; }
.pl-restored { background: #E3F2FD; color: #1565C0; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 12px; }

/* ═══ ІКОНКИ (замість емодзі) ═══ */
.ic { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em; flex-shrink: 0; }
.ic-lg { width: 1.35em; height: 1.35em; }
.ic-xl { width: 22px; height: 22px; }
.ic-sm { width: .9em; height: .9em; }
/* кольорові акценти для статусів */
.ic-ok { color: #2E7D32; } .ic-warn { color: #F9A825; } .ic-bad { color: #C62828; }
.ic-brand { color: var(--pomelo); } .ic-muted { color: var(--ink-soft); }
/* у навігації іконка над/поруч із текстом */
.tab .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
h2 .ic, h3 .ic { width: 1.05em; height: 1.05em; margin-right: 8px; vertical-align: -0.12em; }
.cta .ic, .ghost .ic { margin-right: 6px; }
.oauth-warn { background: #FFF3E0; border-bottom: 2px solid #FFB74D; padding: 12px 24px; font-size: 13px; line-height: 1.5; }
.oauth-warn b { display: block; margin-bottom: 4px; color: #8A5A20; }
.oauth-warn ul { margin: 4px 0; padding-left: 20px; color: var(--ink-soft); }
.oauth-warn p { margin: 6px 0 0; color: var(--ink-soft); }
.oauth-warn code { background: #fff; padding: 1px 6px; border-radius: 4px; }
