:root {
  --green: #16a34a;
  --green-2: #22c55e;
  --green-3: #4ade80;
  --green-soft: #e8f7ec;
  --green-ink: #0f5132;
  --bg: #f3f6f2;
  --card: #ffffff;
  --card-2: #f7faf6;
  --text: #13201a;
  --muted: #6b7a71;
  --line: #e4ebe5;
  --protein: #ef5b5b;
  --fat: #f5a524;
  --carb: #3e8bff;
  --warn-bg: #fff6e5;
  --warn-ink: #8a5a00;
  --danger: #e5484d;
  --shadow: 0 6px 24px rgba(19, 60, 32, 0.08);
  --radius: 22px;
  --tab-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1411; --card: #172019; --card-2: #1c271f; --text: #e9f1eb; --muted: #93a398; --line: #26332a;
    --green-soft: #173b24; --green-ink: #bff0cf; --warn-bg: #3a2f14; --warn-ink: #ffd88a;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1411; --card: #172019; --card-2: #1c271f; --text: #e9f1eb; --muted: #93a398; --line: #26332a;
  --green-soft: #173b24; --green-ink: #bff0cf; --warn-bg: #3a2f14; --warn-ink: #ffd88a;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: var(--text); }
b, strong { font-weight: 700; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }

/* ------------------------------------------------ layout */
#app { min-height: 100vh; }
.screen { padding: 14px 16px calc(var(--tab-h) + 24px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.screen.no-tabs { padding-bottom: calc(110px + var(--safe-b)); }
.section-title { font-size: 17px; font-weight: 800; margin: 22px 4px 10px; display: flex; align-items: center; justify-content: space-between; }
.section-title a, .link { color: var(--green); font-weight: 700; font-size: 14px; }
.page-title { font-size: 26px; font-weight: 800; margin: 6px 4px 14px; letter-spacing: -0.02em; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stack > * + * { margin-top: 12px; }

/* ------------------------------------------------ top bar */
.topbar { display: flex; align-items: center; gap: 12px; margin: 4px 2px 16px; }
.logo { width: 42px; height: 42px; flex: none; }
.hello { font-size: 13px; color: var(--muted); }
.hello b { display: block; color: var(--text); font-size: 18px; font-weight: 800; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 999px;
  padding: 8px 12px; box-shadow: var(--shadow); font-weight: 700; font-size: 13px; max-width: 150px;
}
.chip-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-pro {
  display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #ffd66b, #f5a524);
  color: #4a3000; font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 999px;
}

/* ------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #4ade80 0%, #16a34a 45%, #0f7a37 100%);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero .label { opacity: 0.85; font-size: 13px; font-weight: 600; }
.hero .big { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.hero .big small { font-size: 16px; font-weight: 700; opacity: 0.85; margin-left: 4px; }
.hero .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; }
.hero .pill { background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.hero-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.ring { width: 116px; height: 116px; flex: none; }
.ring text { fill: #fff; font-weight: 800; }

/* ------------------------------------------------ macros */
.macro { background: var(--card); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.macro .t { font-size: 12px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.macro .v { font-size: 20px; font-weight: 800; margin: 4px 0 8px; }
.macro .v small { font-size: 12px; color: var(--muted); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; }

/* ------------------------------------------------ tiles */
.tile { background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.tile .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); }
.tile .ic img { width: 30px; height: 30px; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.tile .v { font-size: 17px; font-weight: 800; }
.tile .s { font-size: 12px; color: var(--muted); }

.bmi-scale { position: relative; height: 10px; border-radius: 99px; margin: 14px 0 6px;
  background: linear-gradient(90deg, #7cc4ff 0%, #4ade80 22%, #4ade80 44%, #facc15 62%, #fb923c 78%, #ef4444 100%); }
.bmi-scale .mk { position: absolute; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--card);
  border: 4px solid var(--text); transform: translateX(-50%); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.scale-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 600; }

.progress { height: 12px; border-radius: 99px; background: var(--green-soft); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--green)); border-radius: 99px; transition: width .6s; }

.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 18px; padding: 12px 14px; font-size: 14px; }
.note + .note { margin-top: 8px; }
.note.info { background: var(--green-soft); color: var(--green-ink); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 15px 18px; border-radius: 16px; font-weight: 800; font-size: 15px;
  background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
  transition: transform .12s, opacity .2s;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.secondary { background: var(--green-soft); color: var(--green-ink); box-shadow: none; }
.btn.ghost { background: var(--card-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: none; border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(135deg, #ffd66b, #f5a524); color: #3d2800; box-shadow: 0 8px 18px rgba(245,165,36,.3); }
.btn.sm { width: auto; padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.btn img { width: 22px; height: 22px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, transparent, var(--bg) 30%); z-index: 20; }
.sticky-cta .btn { max-width: 528px; margin: 0 auto; display: flex; }

/* ------------------------------------------------ tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b); background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: center;
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.tabbar button svg { width: 24px; height: 24px; stroke: currentColor; }
.tabbar button.on { color: var(--green); }
.tabbar button.on .tab-ic { background: var(--green-soft); }
.tab-ic { width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s; }

/* ------------------------------------------------ dish rows */
.dish { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.dish + .dish { border-top: 1px solid var(--line); }
.dish.side { padding-left: 16px; }
.dish-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--card-2); display: grid; place-items: center; flex: none; font-size: 30px; }
.dish.side .dish-ic { width: 42px; height: 42px; border-radius: 13px; font-size: 22px; }
.dish-ic img { width: 72%; height: 72%; object-fit: contain; }
.dish .nm { font-weight: 700; font-size: 15px; line-height: 1.25; }
.dish .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dish .kc { font-weight: 800; font-size: 15px; text-align: right; }
.dish .kc small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--warn-bg); color: var(--warn-ink); margin-left: 4px; vertical-align: 1px; }
.tag.green { background: var(--green-soft); color: var(--green-ink); }
.meal-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.meal-head span:last-child { color: var(--muted); font-weight: 700; font-size: 13px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 48px; padding: 8px 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-align: center; font-weight: 800; }
.day small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.day.on { background: var(--green); color: #fff; }
.day.on small { color: rgba(255,255,255,.8); }
.day.today:not(.on) { outline: 2px solid var(--green-3); }

.seg { display: flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--green-2); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ------------------------------------------------ recipes */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); }
.chip.on { background: var(--green); color: #fff; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rcard { background: var(--card); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; }
.rcard .pic { aspect-ratio: 1.25; border-radius: 14px; display: grid; place-items: center; font-size: 44px; }
.rcard .pic img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.15)); }
.rcard .nm { font-weight: 800; font-size: 14px; margin-top: 8px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.rcard .meta { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.pastel-0 { background: #e9f8ee; } .pastel-1 { background: #fff3e2; } .pastel-2 { background: #eaf2ff; }
.pastel-3 { background: #fdeceb; } .pastel-4 { background: #f3eefe; } .pastel-5 { background: #fff9db; }
:root[data-theme="dark"] [class*="pastel-"] { background: var(--card-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [class*="pastel-"] { background: var(--card-2); } }

.vrow { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.vrow::-webkit-scrollbar { display: none; }
.vcard { flex: none; width: 150px; background: var(--card); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); text-align: left; }
.vcard .pic { height: 84px; border-radius: 12px; display: grid; place-items: center; position: relative; }
.vcard .pic img { height: 56px; }
.vcard .play { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: #ff3b30; display: grid; place-items: center; }
.vcard .nm { font-size: 13px; font-weight: 700; margin-top: 8px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------ weight */
.chart { width: 100%; height: 190px; display: block; }
.hist-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 700; }
.hist-row:first-child { border-top: 0; }
.delta-up { color: var(--danger); } .delta-down { color: var(--green); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft); color: var(--green-ink); font-size: 26px; font-weight: 800; }
.stepper input { flex: 1; min-width: 0; text-align: center; font-size: 30px; font-weight: 800; border: 0; background: var(--card-2); border-radius: 16px; height: 52px; outline: 0; }

/* ------------------------------------------------ forms */
.field { margin-top: 14px; }
.field > label, .field .lbl { display: block; font-weight: 700; font-size: 13px; color: var(--muted); margin: 0 4px 6px; }
.input { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 13px 14px; font-size: 16px; outline: 0; transition: border .2s; }
.input:focus { border-color: var(--green-2); }
.unit { position: relative; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 14px; pointer-events: none; }
.err { color: var(--danger); font-size: 13px; margin: 6px 4px 0; font-weight: 600; }
.field.bad .input { border-color: var(--danger); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); font-weight: 700; }
.opt + .opt { margin-top: 8px; }
.opt.on { border-color: var(--green-2); background: var(--green-soft); }
.opt .e { font-size: 22px; }
.opt small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.form-card { background: var(--card); border-radius: var(--radius); padding: 4px 16px 16px; box-shadow: var(--shadow); margin-top: 12px; }
.form-card h3 { margin: 14px 0 0; font-size: 16px; font-weight: 800; }

/* ------------------------------------------------ list menu */
.lmenu { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lmenu button, .lmenu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font-weight: 700; color: var(--text); text-decoration: none; }
.lmenu > * + * { border-top: 1px solid var(--line); }
.lmenu .e { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--green-soft); flex: none; }
.lmenu .e img { width: 22px; height: 22px; }
.lmenu .arrow { margin-left: auto; color: var(--muted); }
.lmenu .danger { color: var(--danger); }

/* ------------------------------------------------ sheet / overlay */
.overlay { position: fixed; inset: 0; background: rgba(8, 20, 12, 0.45); z-index: 50; opacity: 0; transition: opacity .2s; }
.overlay.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--bg); border-radius: 26px 26px 0 0;
  max-height: 88vh; overflow-y: auto; padding: 8px 16px calc(20px + var(--safe-b)); transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1); max-width: 600px; margin: 0 auto;
}
.sheet.show { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
.sheet h2 { font-size: 21px; margin: 4px 0 12px; font-weight: 800; }
.full { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; }
.full-head { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.full-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.icon-btn { width: 40px; height: 40px; border-radius: 13px; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); flex: none; }

.dish-hero { border-radius: 24px; height: 170px; display: grid; place-items: center; font-size: 80px; }
.dish-hero img { height: 120px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }

/* ------------------------------------------------ chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 140px; max-width: 600px; margin: 0 auto; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 15px; white-space: pre-line; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.msg.typing { color: var(--muted); }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg); padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
.composer .inner { display: flex; gap: 8px; align-items: flex-end; max-width: 600px; margin: 0 auto; }
.composer textarea { flex: 1; resize: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 18px; padding: 11px 14px; outline: 0; max-height: 120px; font-size: 15px; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; max-width: 600px; margin: 0 auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }

/* ------------------------------------------------ onboarding */
.onb-hero { position: relative; height: 250px; display: grid; place-items: center; }
.onb-hero .blob { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #bbf7d0, #4ade80 60%, #16a34a); opacity: .9; filter: blur(0.5px); }
.onb-hero .logo-big { width: 110px; height: 110px; position: relative; z-index: 2; filter: drop-shadow(0 12px 18px rgba(0,0,0,.2)); }
.float { position: absolute; z-index: 3; width: 64px; height: 64px; animation: bob 4s ease-in-out infinite; }
.float.f1 { left: 12%; top: 14%; } .float.f2 { right: 10%; top: 8%; animation-delay: -1s; }
.float.f3 { left: 8%; bottom: 10%; animation-delay: -2s; } .float.f4 { right: 12%; bottom: 6%; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.onb-title { font-size: 28px; font-weight: 800; text-align: center; letter-spacing: -0.02em; margin: 6px 0 6px; }
.onb-sub { text-align: center; color: var(--muted); margin: 0 10px 18px; }
.feat { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.feat img { width: 36px; height: 36px; flex: none; }
.feat b { display: block; }
.feat span { color: var(--muted); font-size: 13px; }

.toast { position: fixed; left: 16px; right: 16px; top: 14px; z-index: 90; background: #13201a; color: #fff; padding: 13px 16px; border-radius: 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(calc(-100% - 40px)); visibility: hidden; transition: transform .3s, visibility .3s; max-width: 540px; margin: 0 auto; white-space: pre-line; }
.toast.show { transform: none; visibility: visible; }
.loader { display: grid; place-items: center; min-height: 70vh; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--green-soft); border-top-color: var(--green); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 18px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty img { width: 72px; height: 72px; }
.premium-card { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; background: linear-gradient(135deg, #fff8e6, #ffe7b3); color: #3d2800; }
:root[data-theme="dark"] .premium-card { background: linear-gradient(135deg, #3a2e12, #4a3510); color: #ffe4a3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .premium-card { background: linear-gradient(135deg, #3a2e12, #4a3510); color: #ffe4a3; } }
.premium-card .gem { position: absolute; right: -6px; top: -6px; width: 92px; opacity: .95; transform: rotate(12deg); }
.premium-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; padding-right: 70px; }
.premium-card ul { margin: 8px 0 14px; padding-left: 18px; font-weight: 600; font-size: 14px; }
.ai-card { display: flex; gap: 14px; align-items: center; border-radius: 24px; padding: 16px; color: #fff; background: linear-gradient(135deg, #1f3b2b, #13201a); box-shadow: var(--shadow); width: 100%; text-align: left; }
.ai-card img { width: 52px; height: 52px; flex: none; }
.ai-card b { font-size: 16px; display: block; }
.ai-card span { font-size: 13px; opacity: .8; }
.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
