:root {
  --bg: #0f1115; --card: #181b22; --line: #2a2f3a; --text: #f2f4f7; --muted: #8b93a3;
  --accent: #ff6b1a; --accent2: #ffb020; --good: #22c55e; --bad: #ef4444; --protein: #38bdf8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.screen { max-width: 480px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }

/* login */
#login { display: grid; place-items: center; min-height: 100dvh; }
.login-box { text-align: center; display: grid; gap: 16px; justify-items: center; }
.logo { width: 96px; height: 96px; border-radius: 24px; }
h1 { font-size: 44px; font-weight: 800; margin: 0; letter-spacing: -1px; }
h1 span, .brand span { color: var(--accent); }
.login-box p { color: var(--muted); margin: 0 0 8px; max-width: 300px; line-height: 1.5; }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 18px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; justify-content: center; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; color: #1a0e00; }
.btn.big { width: 100%; padding: 16px; font-size: 18px; border-radius: 18px; }
.btn:disabled { opacity: .5; }
#googleBtn { background: #fff; color: #222; }
.link { background: none; border: 0; color: var(--accent2); font-weight: 600; padding: 8px; cursor: pointer; }
.icon-btn { background: none; border: 0; font-size: 22px; padding: 6px 10px; border-radius: 10px; color: var(--muted); }
.icon-btn:disabled { opacity: .25; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; }
.brand .name { font-size: 22px; }
/* compact top bar: invite shows only its icon and the +bonus badge */
.top { gap: 8px; }
.top-right { gap: 2px; }
.top-right .pill { padding: 6px 10px; }
.pill.invite [data-t="inviteShort"] { display: none; }
.top-right .icon-btn { padding: 6px 7px; }
@media (max-width: 400px) { .brand .name { display: none; } }
.logo-full { margin: 0; line-height: 0; }
.logo-full img { width: 240px; max-width: 70vw; height: auto; border-radius: 24px; }
.day-nav { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; font-weight: 600; }
.day-nav .icon-btn { font-size: 30px; color: var(--text); }

/* summary */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.summary { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.ring { position: relative; width: 130px; height: 130px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray .5s; }
.ring.over .bar { stroke: var(--bad); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text b { font-size: 30px; font-weight: 800; }
.ring-text small { color: var(--muted); font-size: 12px; }
.macros { display: grid; gap: 8px; }
.macro { display: grid; grid-template-columns: 1fr auto; font-size: 14px; color: var(--muted); }
.macro b { color: var(--text); }
.macro i { grid-column: 1 / -1; height: 6px; background: var(--line); border-radius: 6px; margin-top: 4px; overflow: hidden; }
.macro i em { display: block; height: 100%; width: 0; background: var(--protein); transition: width .5s; }
.left { font-weight: 600; font-size: 14px; color: var(--accent2); }

.snap { margin-top: 18px; cursor: pointer; }
.row-center { display: flex; justify-content: center; align-items: center; gap: 4px; }
.dot { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
#scansLeft { font-size: 13px; margin: 2px 0 0; }

h2 { font-size: 18px; margin: 24px 0 10px; }
.meals { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.meals li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px 12px 14px; }
.meals b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meals small { color: var(--muted); font-size: 12px; }
.meals li > div { min-width: 0; }
.kcal { font-weight: 800; }
.kcal::after { content: " kcal"; font-weight: 400; color: var(--muted); font-size: 12px; }
.del { font-size: 16px; }

/* sheets */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet-box { background: var(--card); width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-box { border-radius: 22px; } }
.sheet-box h3 { margin: 0; }
#preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; }
.scanning { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 24px; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#result, #scanErr { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.item .i-name { grid-column: 1 / 5; }
.item .i-del { grid-column: 5; justify-self: end; font-size: 16px; }
.item label { display: grid; gap: 2px; font-size: 11px; color: var(--muted); }
input { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; min-width: 0; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.total { font-weight: 700; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

.top-right { display: flex; align-items: center; gap: 4px; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.pill b { color: var(--accent2); }
.pill.invite { color: var(--protein); display: inline-flex; align-items: center; gap: 4px; }
.pill.invite .ic { width: 16px; height: 16px; vertical-align: 0; }
.ref-box h4 .plus, .ref-box em { white-space: nowrap; }
.ref-box h4 .plus { font-size: 14px; padding: 2px 9px; vertical-align: 1px; }
.ref-box em { font-style: normal; font-weight: 800; color: var(--accent2); }
.pill.invite .plus, .ref-box .plus { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #1a0e00; border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 800; box-shadow: 0 0 10px rgba(255,140,0,.6); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 16px rgba(255,170,0,.9); transform: scale(1.06); } }
@media (max-width: 380px) { .pill.invite span { display: none; } }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pack.best { border-color: rgba(255,176,32,.7); background: linear-gradient(160deg, rgba(255,107,26,.18), var(--bg)); padding-top: 18px; }
.pack .tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; background: var(--accent2); color: #1a0e00; border-radius: 999px; padding: 2px 8px; }
.pack { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 12px 6px; display: grid; gap: 2px; }
.pack b { font-size: 20px; }
.pack span { font-size: 12px; color: var(--muted); }
/* selected pack: green border, lift, and a "✓ Selected" pill on the bottom edge (Best value stays gold) */
.pack { transition: transform .15s, border-color .15s, box-shadow .15s; }
.pack.on { border-color: var(--good) !important; box-shadow: 0 0 0 1px var(--good), 0 6px 18px rgba(34,197,94,.25); transform: translateY(-2px); padding-bottom: 18px; }
.pack.on::after { content: "✓ " attr(data-sel); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--good); color: #052e14; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; }
.packs { row-gap: 16px; }
.pack { position: relative; }
.pack .bonus { font-style: normal; font-size: 11px; font-weight: 800; color: #1a0e00; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 999px; padding: 1px 6px; justify-self: center; margin-top: 3px; box-shadow: 0 0 8px rgba(255,140,0,.5); }
/* PayPal's frames are light; matching their color scheme keeps the browser from painting a white box behind them */
#ppButtons { min-height: 10px; color-scheme: light; border-radius: 14px; overflow: hidden; }
#payStatus.bad { color: var(--bad); }
.ref-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.ref-box h4 { margin: 0; }
.ref-box p { margin: 0; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-row.two { grid-template-columns: 1fr 1fr; }
#refLink { word-break: break-all; color: var(--accent2); }

.bell { position: relative; }
.bell i { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px Inter, sans-serif; font-style: normal; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.notif-list li.new { border-color: var(--accent); }
.notif-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* icons */
.ic { width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex: none; }
.icon-btn .ic { width: 24px; height: 24px; vertical-align: middle; }
.del .ic, .i-del .ic { width: 16px; height: 16px; }
.pill .bolt { color: var(--accent2); width: 16px; height: 16px; vertical-align: -3px; }
.snap .ic { width: 24px; height: 24px; }
.streak-chip .fire { width: 22px; height: 22px; }
svg.flame-big { width: 72px; height: 72px; flex: none; }
.gender .ic { width: 20px; height: 20px; }
.gender button[data-g="male"].on { color: #7cc4ff; } .gender button[data-g="female"].on { color: #ff8fc7; }
.n-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(56,189,248,.15); color: var(--protein); }
.n-ic.fake { background: rgba(239,68,68,.15); color: var(--bad); }
.n-ic.valid { background: rgba(255,176,32,.15); color: var(--accent2); }
.n-ic .ic { width: 18px; height: 18px; vertical-align: 0; }

.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender button { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 14px; font-weight: 700; font-size: 16px; }
.gender button.on { border-color: var(--accent); background: rgba(255,107,26,.15); }

/* streak + calendar */
.streak-chip { width: 100%; display: flex; align-items: center; gap: 6px; background: linear-gradient(90deg, rgba(255,107,26,.18), rgba(255,176,32,.06)); border: 1px solid rgba(255,107,26,.45); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; text-align: left; }
.streak-chip b { font-size: 18px; color: var(--accent2); }
.streak-chip .go { margin-left: auto; color: var(--muted); font-size: 13px; }
.streak-chip .go::after { content: " ›"; }
.fire { display: inline-block; animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 0%,100% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 4px #ff6b1a); } 50% { transform: scale(1.12) rotate(3deg); filter: drop-shadow(0 0 10px #ffb020); } }
.streak-hero { display: flex; align-items: center; gap: 14px; }
.flame-big { font-size: 64px; animation: flicker 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.streak-hero b { display: block; font-size: 44px; font-weight: 800; line-height: 1; background: linear-gradient(180deg, #fff3b0, #ffb020 45%, #ff4d00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.streak-hero span { font-weight: 600; }
.streak-hero small { display: block; color: var(--muted); margin-top: 2px; }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-head { font-size: 11px; color: var(--muted); }
.cal button { aspect-ratio: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; font-size: 13px; position: relative; padding: 0; color: var(--muted); }
.cal button.ok { background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.6); color: var(--text); }
.cal button.over { background: rgba(255,107,26,.22); border-color: rgba(255,107,26,.6); color: var(--text); }
.cal button.under { background: rgba(139,147,163,.14); border-color: rgba(139,147,163,.4); color: var(--text); }
.cal button.today { outline: 2px solid var(--accent2); outline-offset: -2px; }
.cal button.p::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--protein); }
.cal button:disabled { opacity: .3; cursor: default; }
.cal .blank { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend .ok { background: rgba(34,197,94,.5); } .legend .under { background: rgba(139,147,163,.4); } .legend .over { background: rgba(255,107,26,.6); }
.legend .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--protein); }
.month-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.month-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.month-stats b { display: block; font-size: 20px; }
.month-stats small { color: var(--muted); font-size: 11px; }
.card-wrap { border-radius: 18px; overflow: hidden; box-shadow: 0 0 40px rgba(255,90,0,.45); animation: glow 2s ease-in-out infinite; }
.card-wrap img { display: block; width: 100%; }
@keyframes glow { 50% { box-shadow: 0 0 70px rgba(255,140,0,.7); } }

/* payment methods + GCash chat */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; text-align: center; }
.method b { font-size: 16px; } .method span { font-size: 11px; color: var(--muted); }
.method.gcash { border-color: #0a5bd8; background: linear-gradient(160deg, rgba(10,91,216,.35), var(--bg)); }
.method.gcash b { color: #6fa8ff; }
/* PayPal / Visa / Mastercard acceptance marks */
.pay-marks { display: flex; gap: 4px; justify-content: center; align-items: center; height: 26px; margin-bottom: 2px; }
.pay-marks > span { height: 22px; border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.mk-paypal { font: italic 800 13px/1 Verdana, Arial, sans-serif; letter-spacing: -.3px; }
.mk-paypal i { font-style: inherit; color: #003087; } .mk-paypal em { font-style: inherit; color: #009cde; }
.mk-visa { font: italic 900 12px/1 Arial, sans-serif; color: #1a1f71; letter-spacing: .5px; }
.mk-mc { width: 34px; padding: 0 !important; position: relative; }
.mk-mc i { position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%; }
.mk-mc i:first-child { left: 5px; background: #eb001b; }
.mk-mc i:last-child { left: 14px; background: #f79e1b; mix-blend-mode: multiply; opacity: .95; }
.method.pp b { color: var(--text); }
.method .gc-logo { height: 26px; width: auto; justify-self: center; border-radius: 6px; margin-bottom: 2px; }
.chat-box { height: 92dvh; display: flex; flex-direction: column; }
.chat-box .msgs { flex: 1; }

/* GCash-style payment chat: blue header, light body, blue user bubbles */
.chat-box { --gc: #007dfe; --gc-dark: #0057d9; background: #f2f6fc; color: #1d2a3a; padding: 0 0 calc(10px + env(safe-area-inset-bottom)); gap: 0; overflow: hidden; color-scheme: light; }
.chat-box .chat-top { background: linear-gradient(135deg, var(--gc), var(--gc-dark)); color: #fff; padding: 14px 12px 14px 16px; }
.chat-box .chat-top b { font-size: 17px; }
.chat-box .chat-top small { color: #cfe4ff; }
.chat-box .chat-top .btn { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.chat-box .chat-top .icon-btn { color: #fff; }
.chat-box .qr-box { margin: 10px 12px 0; box-shadow: 0 2px 10px rgba(0,60,140,.15); }
.qr-note { margin: 0; color: #2b3b52; font-size: 13px; text-align: center; line-height: 1.45; max-width: 300px; }
.chat-box .qr-box .btn { background: var(--gc); color: #fff; border: 0; }
.chat-box .msgs { padding: 12px; gap: 10px; }
.chat-box .msg.bot { background: #fff; border: 0; color: #1d2a3a; box-shadow: 0 1px 3px rgba(0,40,100,.10); }
.chat-box .msg.user { background: var(--gc); color: #fff; }
.chat-box .msg.typing { color: #7a8aa0; }
.chat-box .chat-input { background: #fff; margin: 0; padding: 10px 12px; border-top: 1px solid #e1e8f2; }
.chat-box .chat-input input { background: #f2f6fc; border: 1px solid #d5e0ee; color: #1d2a3a; border-radius: 999px; padding: 10px 14px; }
.chat-box .chat-input input:focus { outline: 2px solid var(--gc); }
.chat-box .chat-input .btn.primary { background: var(--gc); color: #fff; border-radius: 999px; }
.chat-box .attach { color: var(--gc); position: relative; border-radius: 50%; cursor: pointer; animation: camBob 2.4s ease-in-out infinite; }
.chat-box .attach::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid var(--gc); opacity: 0; animation: camRing 2.4s ease-out infinite; pointer-events: none; }
@keyframes camRing { 0% { transform: scale(.7); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes camBob { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.15) rotate(-6deg); } }
.chat-box .chat-input input::placeholder { color: #7a8aa0; }
.chat-box .brow { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.chat-box .brow > div { min-width: 0; display: grid; gap: 3px; }
.chat-box .brow .msg { max-width: 100%; }
.chat-box .av { width: 34px; height: 34px; flex: none; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,80,208,.3); }
.chat-box .qr-card { display: grid; gap: 8px; justify-items: center; padding: 10px; width: 200px; max-width: 100%; }
.chat-box .qr-card img { width: 120px; border-radius: 8px; }
.chat-box .qr-card .qr-note { font-size: 12px; }
.chat-box .qr-card .btn { padding: 8px 12px; font-size: 14px; }
.chat-box .qr-card .btn { width: 100%; background: var(--gc); color: #fff; border: 0; text-decoration: none; border-radius: 999px; }
/* welcome guide inside the first chat bubble */
.chat-box .msg:has(.wg) { white-space: normal; max-width: 100%; }
.wg { display: grid; gap: 10px; }
.wg-hi { font-size: 15px; }
.wg-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 8px; }
.wg-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; }
.wg-steps li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--gc, #007dfe); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.wg-steps b { font-size: 14px; } .wg-steps span { font-size: 13px; color: #4d6788; }
.wg-qr { grid-column: 2; display: flex; align-items: center; gap: 10px; margin-top: 6px; }
/* square crop of just the QR code from the tall GCash card (the code sits at ~50% x, ~42% y of the image) */
.wg-thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; border: 1px solid #d5e0ee; background: #fff url(gcash-qr-v2.png) no-repeat -30px -61px / 104px auto; }
.wg-qr .btn { background: var(--gc, #007dfe); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; text-decoration: none; }
/* animated Download QR: a shine sweeps across, the arrow bobs, and a soft glow pulses */
.dl-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; animation: dlGlow 2.2s ease-in-out infinite; }
.dl-btn svg { width: 16px; height: 16px; animation: dlBob 1.1s ease-in-out infinite; }
.dl-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: dlShine 2.2s ease-in-out infinite; }
@keyframes dlBob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@keyframes dlShine { 0%, 40% { left: -60%; } 80%, 100% { left: 130%; } }
@keyframes dlGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,125,254,.45); } 50% { box-shadow: 0 0 0 6px rgba(0,125,254,0); } }
/* price list: one row per amount, lowest to highest, best value highlighted */
/* price rows: fixed columns [price + tag] [bonus] [credits] so every row lines up on any phone */
.wg-prices { display: grid; gap: 6px; }
.wg-prices div { display: grid; grid-template-columns: 1fr auto 5.2em; align-items: center; column-gap: 8px; background: #f5f8fd; border: 1px solid #dbe5f1; border-radius: 12px; padding: 8px 12px; }
.wg-prices .pp { display: grid; justify-items: start; gap: 2px; }
.wg-prices b { font-size: 16px; font-weight: 800; color: #0a2a52; line-height: 1.1; }
.wg-prices em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .05em; color: #b45309; background: #fff3d6; border: 1px solid #ffd27a; border-radius: 999px; padding: 0 6px; white-space: nowrap; }
.wg-prices .pb { justify-self: end; }
.wg-prices i { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff6b1a, #ffb020); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.wg-prices strong { display: grid; justify-items: end; font-size: 16px; font-weight: 800; color: #0057d9; line-height: 1.1; white-space: nowrap; }
.wg-prices strong small { font-size: 10px; font-weight: 600; color: #4d6788; }
.wg-prices .best { background: linear-gradient(135deg, #fff7ec, #ffeccc); border-color: #ffb547; box-shadow: 0 2px 10px rgba(255,140,0,.18); }
.wg-prices .best strong { color: #e35d00; }
.wg-banks { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wg-banks small { color: #4d6788; margin-right: 2px; }
.wg-banks span { font-size: 11px; font-weight: 600; background: #e6f0ff; color: #0057d9; border-radius: 999px; padding: 2px 8px; }
.wg-ask { color: #4d6788; }
.chat-box .who { font-size: 11px; font-weight: 600; color: #4d6788; margin-left: 4px; }
.chat-top { display: flex; align-items: center; gap: 6px; }
.chat-top > div { flex: 1; min-width: 0; } .chat-top small { display: block; color: var(--accent2); font-size: 12px; }
.small-btn { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.qr-box { display: grid; gap: 8px; justify-items: center; background: #fff; border-radius: 14px; padding: 10px; }
.qr-box img { width: 100%; max-width: 260px; border-radius: 8px; }
.qr-box .btn { color: #0a5bd8; border-color: #0a5bd8; background: #fff; text-decoration: none; }
.msgs { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; min-height: 0; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #1a0e00; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-input { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; }
.attach { color: var(--accent2); }

/* AI goal estimate */
.ai-goals { width: 100%; border-color: rgba(255,176,32,.6); color: var(--accent2); }
.coach { display: flex; gap: 10px; align-items: flex-start; }
.coach-av { width: 40px; height: 40px; flex: none; background: var(--bg); border-radius: 50%; padding: 6px; border: 1px solid var(--line); }
.coach small { color: var(--muted); font-size: 12px; font-weight: 600; }
.coach p { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }
.ga-input { display: flex; align-items: center; gap: 8px; }
.ga-input input { font-size: 22px; font-weight: 700; text-align: center; padding: 14px; }
.ga-input span { color: var(--muted); font-weight: 600; min-width: 34px; }
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.units.two { grid-template-columns: 1fr 1fr; }
#gaBody { display: grid; gap: 12px; }
#goalAI .sheet-box { gap: 16px; }
#goalAI .sheet-actions:has(#gaBack[hidden]) { grid-template-columns: 1fr; }
.units button { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.units button.on { border-color: var(--accent); color: var(--text); background: rgba(255,107,26,.15); }
.ga-choices { display: grid; gap: 8px; }
.ga-choices button { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; }
.ga-choices button.on { border-color: var(--accent); background: rgba(255,107,26,.12); }
.ga-choices b { display: block; } .ga-choices small { color: var(--muted); }
.ga-result { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ga-result div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.ga-result b { display: block; font-size: 30px; font-weight: 800; color: var(--accent2); }
.ga-result small { color: var(--muted); }
.ga-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.ga-warn { color: var(--accent2); font-size: 13px; margin: 0; }

.announce { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,176,32,.18), rgba(255,107,26,.08)); border: 1px solid rgba(255,176,32,.45); font-size: 14px; font-weight: 600; }

/* goal card on the main screen */
.goal-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 10px; }
.goal-card.setup, .goal-card.done { border-color: rgba(255,176,32,.55); background: linear-gradient(135deg, rgba(255,107,26,.16), var(--card) 70%); }
.goal-card .gc-top { display: flex; align-items: center; gap: 12px; }
.goal-card .gc-top svg { width: 34px; height: 34px; flex: none; }
.goal-card b { display: block; font-size: 15px; } .goal-card small { color: var(--muted); font-size: 13px; }
.goal-card .gc-bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.goal-card .gc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 8px; }
.goal-card .gc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.goal-card .gc-row .btn { padding: 7px 12px; font-size: 13px; }
#wSheet .sheet-box { gap: 14px; }

/* credits pill: camera + bolt; under 50 it alternates the number with "Tap to add" */
.pill.credits { display: inline-flex; align-items: center; gap: 5px; }
.pill.credits .bolt { width: 18px; height: 18px; vertical-align: 0; }
/* low credits: the number turns red and a red "Top up" bubble hangs under the pill */
.pill.credits { position: relative; overflow: visible; }
.pill.credits.low { border-color: rgba(239,68,68,.6); }
.pill.credits.low #credits { color: #ff6b6b; }
.lowtip { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(220,38,38,.45); animation: tipBounce 1.8s ease-in-out infinite; pointer-events: none; }
.lowtip::before { content: ""; position: absolute; top: -5px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: #ef4444; }
@keyframes tipBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4px); } }

/* reminders */
.goal-card.remind { border-color: rgba(56,189,248,.45); background: linear-gradient(135deg, rgba(56,189,248,.14), var(--card) 70%); }
.goal-card.remind .gc-top .ic { width: 30px; height: 30px; color: var(--protein); animation: camBob 2.4s ease-in-out infinite; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.switch-row b { display: block; font-size: 15px; } .switch-row small { color: var(--muted); font-size: 12px; }
.toggle { width: 46px; height: 26px; border-radius: 999px; background: var(--line); border: 0; position: relative; flex: none; padding: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle.on { background: var(--good); } .toggle.on::after { left: 23px; }

/* container sizes: chips above Snap, and the ruler sheet */
.sizes { margin-top: 16px; display: grid; gap: 6px; }
.sizes small { color: var(--muted); font-size: 12px; }
.size-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.size-chips::-webkit-scrollbar { display: none; }
/* size chips: radio-style choices with an icon, a press effect and a filled selected state */
.sizes { position: relative; }
.size-chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
.size-chips button { flex: none; cursor: pointer; background: linear-gradient(180deg, #1d2129, #171a21); border: 1.5px solid #343a47; border-radius: 12px; padding: 9px 12px 9px 9px; font-size: 13px; font-weight: 600; color: var(--text); display: inline-flex; gap: 7px; align-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.35); transition: transform .08s, border-color .15s, background .15s; }
.size-chips button:hover { border-color: #4a5160; }
.size-chips button:active { transform: translateY(1px) scale(.97); box-shadow: none; }
.size-chips .rd { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #5b6372; flex: none; display: grid; place-items: center; }
.size-chips .ct-ic { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.size-chips button small { color: var(--accent2); font-weight: 800; }
.size-chips button.on { background: linear-gradient(135deg, rgba(255,107,26,.32), rgba(255,176,32,.16)); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(255,107,26,.25); }
.size-chips button.on .nm { font-weight: 800; }
.size-chips button.on .rd { border-color: var(--accent); background: var(--accent); }
.size-chips button.on .rd::after { content: "✓"; color: #1a0e00; font-size: 10px; font-weight: 900; line-height: 1; }
.size-chips button.on .ct-ic { stroke: var(--accent2); }
.size-chips button[data-cid="new"] .nm { color: var(--accent2); }
.sizes + .snap { margin-top: 10px; }
.sizer-box { gap: 12px; }
.sz-saved { display: grid; gap: 8px; }
.sz-saved small { color: var(--muted); font-size: 12px; }
.sz-saved .size-chips button { border-color: var(--accent); color: var(--text); }
.sizer-box .sheet-actions:has(#szDel[hidden]) { grid-template-columns: 1fr; }
.sizer-box .close-sizer { justify-self: center; }
.sz-tabs { grid-template-columns: repeat(3, 1fr); }
.sz-art { width: 100%; height: auto; background: radial-gradient(ellipse at 50% 40%, #1f2430, var(--bg) 75%); border-radius: 14px; border: 1px solid var(--line); }
.sz-read { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.sz-read b { font-size: 26px; font-weight: 800; color: var(--accent2); }
.sz-read span { color: var(--muted); font-size: 13px; }
/* chunky slider: orange fill up to a big pulsing handle */
.sz-range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: grab; --p: 50%; }
.sz-range:active { cursor: grabbing; }
.sz-range::-webkit-slider-runnable-track { height: 12px; border-radius: 12px; background: linear-gradient(90deg, var(--accent2), var(--accent)) 0 / var(--p) 100% no-repeat, #2a2f3a; }
.sz-range::-moz-range-track { height: 12px; border-radius: 12px; background: #2a2f3a; }
.sz-range::-moz-range-progress { height: 12px; border-radius: 12px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.sz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); animation: thumbPulse 1.6s ease-out infinite; }
.sz-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); animation: thumbPulse 1.6s ease-out infinite; }
.sz-range.touched::-webkit-slider-thumb { animation: none; box-shadow: 0 0 0 6px rgba(255,107,26,.25); }
.sz-range.touched::-moz-range-thumb { animation: none; }
@keyframes thumbPulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,26,.6); } 100% { box-shadow: 0 0 0 14px rgba(255,107,26,0); } }
.sz-hint { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--accent2); font-size: 12px; font-weight: 700; margin-top: -6px; transition: opacity .3s; }
.sz-hint i { font-style: normal; font-size: 10px; }
.sz-hint i:first-child { animation: hintL 1s ease-in-out infinite; } .sz-hint i:last-child { animation: hintR 1s ease-in-out infinite; }
@keyframes hintL { 50% { transform: translateX(-5px); } } @keyframes hintR { 50% { transform: translateX(5px); } }
.sz-hint.gone { opacity: 0; pointer-events: none; }
.sz-marks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sz-marks button { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--muted); }
.sz-marks button.on { border-color: var(--accent2); color: var(--text); }

/* partner (coach / influencer / VIP): premium gold styling */
.partner-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid #c9a24a;
  background: linear-gradient(135deg, #2b2210, #1a160c 55%, #3a2c10); box-shadow: 0 0 0 1px rgba(255,215,120,.15) inset, 0 6px 20px rgba(201,162,74,.18); position: relative; overflow: hidden; }
.partner-card::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,230,160,.18), transparent); transform: skewX(-20deg); animation: dlShine 3.2s ease-in-out infinite; }
.pc-crown { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #2b2210; background: linear-gradient(135deg, #ffe08a, #c9a24a); box-shadow: 0 0 12px rgba(255,215,120,.45); }
.pc-txt { flex: 1; min-width: 0; } .pc-txt b { display: block; color: #ffe08a; font-size: 16px; } .pc-txt small { color: #cdb27a; font-size: 12px; }
.pc-bal { font-weight: 800; font-size: 18px; color: #ffe08a; }
.partner-box { gap: 14px; }
.pd-head { display: flex; align-items: center; gap: 10px; } .pd-head > div { flex: 1; } .pd-head b { display: block; font-size: 18px; color: #ffe08a; } .pd-head small { color: var(--muted); }
.pd-bal { text-align: center; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #2b2210, #1a160c); border: 1px solid #c9a24a; }
.pd-bal small { color: #cdb27a; font-weight: 600; } .pd-bal b { display: block; font-size: 34px; font-weight: 800; color: #ffe08a; }
.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.pd-stats b { display: block; font-size: 16px; } .pd-stats small { color: var(--muted); font-size: 11px; }
.pd-req { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.partner-box h4 { margin: 4px 0 0; font-size: 14px; }
.pd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.pd-list li small { display: block; color: var(--muted); font-size: 11px; }
.pd-list .amt { font-weight: 800; color: #ffe08a; white-space: nowrap; }
.pd-list .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); }
.pd-list .tag.paid { background: rgba(34,197,94,.16); color: var(--good); } .pd-list .tag.pending { background: rgba(255,176,32,.16); color: var(--accent2); } .pd-list .tag.rejected, .pd-list .tag.reversed { background: rgba(239,68,68,.16); color: var(--bad); }
.pd-proof { width: 100%; border-radius: 12px; }

/* become a partner */
.apply-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px dashed #c9a24a; background: linear-gradient(135deg, rgba(201,162,74,.12), var(--card) 70%); }
.apply-card .pc-txt b { color: #ffe08a; } .apply-card .ac-go { font-size: 24px; color: #ffe08a; font-weight: 800; }
.apply-card.pending { border-style: solid; border-color: var(--accent2); } .apply-card.rejected { border-color: var(--bad); }
.ap-perks { display: grid; gap: 6px; }
.ap-perks span { background: rgba(255,224,138,.08); border: 1px solid rgba(255,224,138,.25); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #f5e6bd; }
.ap-perks span::before { content: "✓ "; color: #ffe08a; font-weight: 800; }
.gender.ap-kind { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ap-kind button { padding: 12px 6px; font-size: 14px; line-height: 1.2; }
.ap-kind button.on { border-color: #c9a24a; background: rgba(201,162,74,.18); color: #ffe08a; }
.field .ap-link + .ap-link { margin-top: 6px; }
.field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; resize: vertical; }
.ap-upload { justify-content: center; cursor: pointer; }
.ap-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-thumbs div { position: relative; } .ap-thumbs img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ap-thumbs button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 12px; }

/* language switch: always visible (top bar pill + login segmented control) */
.lang-pill { display: inline-flex; align-items: center; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; font-size: 12px; color: var(--text); }
.lang-pill .ic { width: 15px; height: 15px; color: var(--protein); vertical-align: 0; }
.lang-seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.lang-seg span { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.lang-seg span.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #1a0e00; }
@media (max-width: 430px) { .brand .name { display: none; } }

/* guest mode: only snap / upload and the results */
body.guest #streakBtn, body.guest #goalCard, body.guest #remindCard { display: none !important; }
.try-btn { animation: lowPulse 2.4s ease-in-out infinite; }
.try-btn .ic { width: 22px; height: 22px; }
.try-sub { color: var(--muted); margin-top: -8px; }
.or { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#googleBtn { width: 100%; }
.guest-bar { display: grid; gap: 10px; text-align: center; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(56,189,248,.45); background: linear-gradient(135deg, rgba(56,189,248,.14), var(--card) 75%); }
.guest-bar > div { min-width: 0; } .guest-bar b { display: block; font-size: 16px; font-weight: 800; } .guest-bar small { color: var(--muted); font-size: 12px; }
.guest-bar .save-google { width: 100%; justify-content: center; padding: 11px; font-size: 14px; font-weight: 700; }
/* the guest bar's Save with Google button always shines and glows; stronger when free scans are nearly gone */
.guest-bar .save-google { position: relative; overflow: hidden; animation: gGlow 2.2s ease-in-out infinite; }
.guest-bar .save-google::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(66,133,244,.35), transparent); transform: skewX(-20deg); animation: dlShine 2.6s ease-in-out infinite; }
.guest-bar .save-google.urgent { animation: gGlow 1.1s ease-in-out infinite, gNudge 1.1s ease-in-out infinite; }
@keyframes gGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(66,133,244,.55); } 50% { box-shadow: 0 0 0 6px rgba(66,133,244,0), 0 0 16px rgba(66,133,244,.45); } }
@keyframes gNudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.save-google { background: #fff !important; color: #222 !important; border: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 13px; }

/* install */
.install-box { text-align: center; justify-items: center; }
.install-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 30px rgba(255,120,0,.35); }
.install-box p { margin: 0; max-width: 320px; }
.inst-steps { text-align: left; margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; }
.get-app { width: 100%; }
.get-app img { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- main screen animations ---------- */
.ring .bar { stroke: url(#g-ring); transition: stroke-dasharray 1s cubic-bezier(.22,1,.36,1); filter: drop-shadow(0 0 4px rgba(255,120,0,.45)); }
.ring.hit .bar { stroke: url(#g-ring-ok); filter: drop-shadow(0 0 6px rgba(34,197,94,.6)); }
.ring.over .bar { stroke: url(#g-ring-over); filter: drop-shadow(0 0 6px rgba(239,68,68,.6)); }
.ring.hit { animation: ringPulse 2.2s ease-in-out infinite; }
@keyframes ringPulse { 50% { transform: scale(1.03); } }
.ring-text b { font-variant-numeric: tabular-nums; }
.macro i { height: 7px; }
.macro i em { transition: width 1s cubic-bezier(.22,1,.36,1); border-radius: 7px; position: relative; overflow: hidden; }
.macro i em::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: barShine 2.6s ease-in-out infinite; }
@keyframes barShine { 60%, 100% { transform: translateX(100%); } }
.macro.p i em { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.macro.c i em { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.macro.f i em { background: linear-gradient(90deg, #ec4899, #f9a8d4); }
.macro .tick { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--good); color: #fff; font-size: 10px; font-weight: 800; animation: pop .4s cubic-bezier(.34,1.56,.64,1); }
.left { display: inline-block; justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgba(255,176,32,.12); color: var(--accent2); transition: background .3s, color .3s; }
.left.near { background: rgba(255,176,32,.2); }
.left.hit { background: rgba(34,197,94,.16); color: var(--good); animation: pop .4s cubic-bezier(.34,1.56,.64,1); }
.left.over { background: rgba(239,68,68,.16); color: var(--bad); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); animation: dlShine 3s ease-in-out infinite; }
.snap .ic { animation: camBob 2.4s ease-in-out infinite; }
.snap.topup { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; animation: lowPulse 2s ease-in-out infinite; }
@keyframes lowPulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.18), 0 6px 22px rgba(239,68,68,.35); } }
.meals li.pop { animation: slideIn .5s cubic-bezier(.22,1,.36,1); }
@keyframes slideIn { from { transform: translateY(-10px) scale(.97); opacity: 0; background: rgba(255,107,26,.2); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 20; }

/* top-up: ₱1 = 2 snaps emphasis */
.rate-hero{display:flex;flex-direction:column;align-items:center;gap:2px;margin:6px 0 4px;padding:12px;border-radius:14px;background:linear-gradient(135deg,rgba(255,138,0,.22),rgba(255,61,0,.12));border:1.5px solid rgba(255,153,0,.6);animation:rateGlow 2.4s ease-in-out infinite}
.rate-hero b{font-size:26px;font-weight:900;letter-spacing:.3px;background:linear-gradient(90deg,#ffd166,#ff8a00);-webkit-background-clip:text;background-clip:text;color:transparent}
.rate-hero span{font-size:13px;color:#ffd9a8}
@keyframes rateGlow{0%,100%{box-shadow:0 0 0 rgba(255,138,0,0)}50%{box-shadow:0 0 18px rgba(255,138,0,.35)}}
.pack .snaps{display:block;text-decoration:none;font-size:12px;font-weight:800;color:#ffb347;margin-top:2px}

/* GCash chat: big "Upload payment proof" button above the message box */
.proof-btn{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 12px 0;padding:12px;border-radius:14px;background:#007dfe;color:#fff;font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 4px 14px rgba(0,125,254,.35)}
.proof-btn .ic{width:20px;height:20px;color:#fff}
.proof-btn:active{transform:scale(.98)}
.chat-box .chat-input { grid-template-columns: 1fr auto; }
.chat-box .chat-input .btn.primary { padding: 10px 18px; width: auto; min-width: 0; font-size: 15px; }
.proof-btn { position: relative; overflow: hidden; animation: proofPulse 2s ease-in-out infinite; }
.proof-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: proofShine 2.6s ease-in-out infinite; }
.proof-btn .ic { animation: proofBob 1.4s ease-in-out infinite; }
@keyframes proofPulse { 0%,100% { box-shadow: 0 4px 14px rgba(0,125,254,.35); transform: scale(1); } 50% { box-shadow: 0 0 0 6px rgba(0,125,254,.18), 0 6px 20px rgba(0,125,254,.5); transform: scale(1.02); } }
@keyframes proofShine { 0% { left: -60%; } 60%,100% { left: 130%; } }
@keyframes proofBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
#meals li[data-edit] { cursor: pointer; transition: border-color .15s, transform .1s; }
#meals li[data-edit]:hover { border-color: rgba(255,153,0,.5); }
#meals li[data-edit]:active { transform: scale(.99); }
.pd-conv { margin-top: 12px; width: 100%; background: linear-gradient(90deg,#ffd166,#ff8a00); color: #1a1205; font-weight: 900; border: 0; border-radius: 12px; padding: 11px; }
.pd-conv:disabled { opacity: .45; }
.pd-conv-sub { display: block; margin-top: 6px; opacity: .75; }
.tag.converted { background: rgba(255,153,0,.18); color: #ffb347; }
.pd-conv-sm { margin-top: 10px; background: rgba(255,179,71,.14); color: #ffc46b; border: 1px solid rgba(255,179,71,.5); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; cursor: pointer; }
.pd-conv-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.25); text-align: center; }
.pd-conv-box small { display: block; opacity: .8; }
.pd-conv-calc { margin: 8px 0 4px; font-size: 14px; }
.pd-conv-calc .tot { color: #ffc46b; }

/* login: small logo + animated how-to (9s loop: snap 0-3s, AI scan 3-6s, result 6-9s) */
.logo-sm { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; font-size: 26px; font-weight: 900; }
.logo-sm img { width: 40px; height: 40px; border-radius: 10px; }
.logo-sm b { color: #ff8a00; }
.howto { width: 230px; margin: 0 auto 14px; }
.ht-phone { position: relative; width: 190px; height: 230px; margin: 0 auto; border-radius: 26px; background: #0b0c0f; border: 3px solid #2a2d35; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,138,0,.15); overflow: hidden; }
.ht-plate { position: absolute; left: 50%; top: 46%; width: 130px; height: 130px; transform: translate(-50%,-50%); animation: htPlate 9s infinite; }
.ht-plate svg { width: 100%; height: 100%; }
.ht-frame { position: absolute; inset: 30px 22px 50px; animation: htFrame 9s infinite; }
.ht-frame i { position: absolute; width: 18px; height: 18px; border: 3px solid #ff8a00; }
.ht-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.ht-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.ht-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.ht-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.ht-shutter { position: absolute; bottom: 10px; left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: linear-gradient(135deg,#ffb347,#ff6a00); box-shadow: 0 0 0 4px rgba(255,138,0,.25); animation: htShutter 9s infinite; }
.ht-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: htFlash 9s infinite; pointer-events: none; }
.ht-scan { position: absolute; left: 10px; right: 10px; height: 3px; top: 30px; background: linear-gradient(90deg,transparent,#ffb347,transparent); box-shadow: 0 0 14px #ff8a00; opacity: 0; animation: htScan 9s infinite; }
.ht-result { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px; border-radius: 14px; background: rgba(20,22,28,.95); border: 1px solid rgba(255,138,0,.5); text-align: center; opacity: 0; transform: translateY(30px); animation: htResult 9s infinite; }
.ht-result b { display: block; font-size: 24px; font-weight: 900; color: #ffb347; }
.ht-result b small { font-size: 12px; color: #aab; }
.ht-result span { font-size: 10.5px; color: #cfd3dc; }
.ht-steps { position: relative; height: 22px; margin-top: 10px; text-align: center; font-weight: 800; font-size: 14px; }
.ht-steps span { position: absolute; inset: 0; opacity: 0; animation: htStep 9s infinite; }
.ht-steps .s2 { animation-delay: 3s; }
.ht-steps .s3 { animation-delay: 6s; }
@keyframes htStep { 0%,2% { opacity: 0; transform: translateY(6px); } 5%,30% { opacity: 1; transform: none; } 33%,100% { opacity: 0; } }
@keyframes htShutter { 0%,18% { transform: scale(1); } 22% { transform: scale(.8); } 26%,30% { transform: scale(1); opacity: 1; } 34%,100% { opacity: 0; } }
@keyframes htFlash { 0%,21% { opacity: 0; } 23% { opacity: .85; } 28%,100% { opacity: 0; } }
@keyframes htFrame { 0% { opacity: 0; transform: scale(1.15); } 8%,30% { opacity: 1; transform: scale(1); } 34%,100% { opacity: 0; } }
@keyframes htScan { 0%,33% { opacity: 0; top: 30px; } 36% { opacity: 1; } 50% { top: 170px; } 64% { top: 30px; opacity: 1; } 67%,100% { opacity: 0; top: 30px; } }
@keyframes htPlate { 0%,66% { top: 46%; transform: translate(-50%,-50%) scale(1); } 72%,96% { top: 34%; transform: translate(-50%,-50%) scale(.8); } 100% { top: 46%; transform: translate(-50%,-50%) scale(1); } }
@keyframes htResult { 0%,67% { opacity: 0; transform: translateY(30px); } 72%,95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .howto * { animation: none !important; } .ht-result, .ht-steps .s3 { opacity: 1; transform: none; } }
.ht-result span { white-space: nowrap; font-size: 9.5px; } .ht-result { left: 6px; right: 6px; }

/* how-to v2: 12s loop, 4 steps (snap 0-25%, scan 25-50%, result 50-75%, calendar 75-100%) */
.howto .ht-plate { animation: htPlate2 12s infinite; }
.howto .ht-frame { animation: htFrame2 12s infinite; }
.howto .ht-shutter { animation: htShutter2 12s infinite; }
.howto .ht-flash { animation: htFlash2 12s infinite; }
.howto .ht-scan { animation: htScan2 12s infinite; }
.howto .ht-result { animation: htResult2 12s infinite; }
.howto .ht-steps span { animation: htStep2 12s infinite; }
.howto .ht-steps .s2 { animation-delay: 3s; } .howto .ht-steps .s3 { animation-delay: 6s; } .howto .ht-steps .s4 { animation-delay: 9s; }
.ht-steps { height: 40px; font-size: 13.5px; }
.ht-cal { position: absolute; inset: 14px 12px; opacity: 0; animation: htCal 12s infinite; }
.ht-cal-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.ht-streak { background: rgba(255,138,0,.18); color: #ffb347; border-radius: 999px; padding: 2px 8px; font-weight: 900; font-size: 12px; }
.ht-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ht-grid i { aspect-ratio: 1; border-radius: 6px; background: #1c1f26; }
.ht-grid i.ok { background: linear-gradient(135deg,#ffb347,#ff6a00); }
.ht-grid i.miss { background: #3a2a22; }
.ht-grid i.new { animation: htNew 12s infinite; }
@keyframes htStep2 { 0%,1% { opacity: 0; transform: translateY(6px); } 4%,23% { opacity: 1; transform: none; } 25%,100% { opacity: 0; } }
@keyframes htShutter2 { 0%,13% { transform: scale(1); opacity: 1; } 16% { transform: scale(.8); } 19%,22% { transform: scale(1); opacity: 1; } 25%,100% { opacity: 0; } }
@keyframes htFlash2 { 0%,15% { opacity: 0; } 17% { opacity: .85; } 21%,100% { opacity: 0; } }
@keyframes htFrame2 { 0% { opacity: 0; transform: scale(1.15); } 6%,22% { opacity: 1; transform: scale(1); } 25%,100% { opacity: 0; } }
@keyframes htScan2 { 0%,25% { opacity: 0; top: 30px; } 27% { opacity: 1; } 37% { top: 170px; } 47% { top: 30px; opacity: 1; } 50%,100% { opacity: 0; top: 30px; } }
@keyframes htPlate2 { 0%,49% { top: 46%; opacity: 1; transform: translate(-50%,-50%) scale(1); } 54%,73% { top: 34%; opacity: 1; transform: translate(-50%,-50%) scale(.8); } 76%,97% { opacity: 0; top: 34%; transform: translate(-50%,-50%) scale(.6); } 100% { top: 46%; opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes htResult2 { 0%,50% { opacity: 0; transform: translateY(30px); } 54%,73% { opacity: 1; transform: none; } 76%,100% { opacity: 0; transform: translateY(30px); } }
@keyframes htCal { 0%,75% { opacity: 0; transform: scale(.9); } 79%,97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes htNew { 0%,82% { background: #1c1f26; transform: scale(1); } 86% { background: #ffb347; transform: scale(1.35); box-shadow: 0 0 12px #ff8a00; } 90%,100% { background: linear-gradient(135deg,#ffb347,#ff6a00); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ht-steps .s3 { opacity: 0 !important; } .ht-steps .s4, .ht-cal { opacity: 1 !important; } .ht-plate, .ht-result { opacity: 0 !important; } }

/* ---------- landing page v2 ---------- */
#login { display: block; min-height: 100dvh; padding: 0 16px 40px; }
.lp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; max-width: 440px; margin: 0 auto; padding: 12px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.lp-top .logo-sm { margin: 0; font-size: 22px; }
.lp-top .logo-sm img { width: 34px; height: 34px; }
.lang-seg.sm span { padding: 5px 11px; font-size: 12px; }
#login .login-box { max-width: 440px; margin: 6px auto 0; }
.lp-badge { font-size: 12px; font-weight: 800; color: #ffc46b; background: rgba(255,138,0,.12); border: 1px solid rgba(255,138,0,.35); padding: 5px 12px; border-radius: 999px; }
.lp-h { margin: -4px 0 0; font-size: 30px; line-height: 1.15; font-weight: 900; letter-spacing: -.5px; max-width: 340px; background: linear-gradient(90deg,#fff 40%,#ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-box > p { margin-top: -6px !important; }
.lp { max-width: 440px; margin: 44px auto 0; display: grid; gap: 34px; }
.lp-sec h3 { margin: 0 0 14px; font-size: 21px; font-weight: 900; text-align: center; }
.lp-p { color: var(--muted); text-align: center; margin: -6px 0 14px; font-size: 14px; }
.lp-steps { display: grid; gap: 10px; }
.lp-steps div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.lp-steps i { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-style: normal; font-weight: 900; color: #1a0e00; background: linear-gradient(135deg,#ffb347,#ff6a00); }
.lp-steps b { font-size: 15px; }
.lp-steps span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-chips span { padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.lp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-feats div { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.lp-feats em { font-style: normal; font-size: 22px; }
.lp-feats b { font-size: 14px; }
.lp-feats span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.lp-rate { text-align: center; padding: 16px; border-radius: 16px; background: linear-gradient(135deg,rgba(255,138,0,.2),rgba(255,61,0,.1)); border: 1.5px solid rgba(255,153,0,.55); margin-bottom: 12px; }
.lp-rate b { display: block; font-size: 30px; font-weight: 900; background: linear-gradient(90deg,#ffd166,#ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-rate span { color: #ffd9a8; font-size: 13px; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-list li { padding-left: 26px; position: relative; font-size: 14px; }
.lp-list li::before { content: "✓"; position: absolute; left: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #0b2a12; background: #34c759; }
.lp-end { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 22px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.lp-end h3 { margin: 0; }
.lp-top { width: 100%; box-sizing: border-box; } .lp-end .try-btn { width: 100%; font-size: 16px; white-space: nowrap; padding-left: 12px; padding-right: 12px; } .ht-steps { margin-bottom: -6px; }
.lp-feats em { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,138,0,.14); color: #ffa53a; margin-bottom: 4px; }
.lp-feats em .ic { width: 22px; height: 22px; }
.lp-badge { display: inline-flex; align-items: center; gap: 6px; }
.lp-badge .ic { width: 15px; height: 15px; color: #ffc46b; }
.ht-streak { display: inline-flex; align-items: center; gap: 3px; }
.ht-streak .ic { width: 12px; height: 12px; }

/* size picker: dropdown that opens upward (replaces the horizontal chip scroller) */
.size-chips { position: relative; display: block !important; overflow: visible !important; white-space: normal !important; }
.size-chips .sz-cur { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid rgba(255,138,0,.55); color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer; }
.size-chips .sz-cur.new .nm { color: #ffa53a; }
.size-chips .sz-cur .nm { flex: 1; text-align: left; }
.size-chips .sz-cur small { color: #ffb347; font-weight: 900; }
.size-chips .sz-cur .ct-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.size-chips .sz-cur .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.size-chips:not(.has-saved) .sz-cur .chev { display: none; }
.size-chips.open .sz-cur .chev { transform: rotate(180deg); }
.size-chips .sz-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; display: grid; gap: 4px; padding: 6px; border-radius: 16px; background: #1b1e25; border: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,.5); max-height: 260px; overflow-y: auto; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.size-chips.open .sz-menu { opacity: 1; transform: none; pointer-events: auto; }
.size-chips .sz-menu .sz-row { display: flex; gap: 4px; }
.size-chips .sz-menu [data-cid] { flex: 1; width: 100%; display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 10px 12px; border-radius: 12px; background: transparent; border: 1px solid transparent; text-align: left; }
.size-chips .sz-menu [data-cid].on { background: rgba(255,138,0,.12); border-color: rgba(255,138,0,.5); }
.size-chips .sz-menu [data-cid] .nm { flex: 1; }
.size-chips .sz-menu [data-cid="new"] .nm { color: #ffa53a; }
.size-chips .sz-edit { width: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
.size-chips .sz-edit .ic { width: 17px; height: 17px; }
/* v2: [ + New size ] [ saved-size dropdown ], both radio-style */
.size-chips { display: flex !important; gap: 8px; align-items: stretch; }
.size-chips > [data-cid="new"] { flex: none; }
.size-chips .sz-dd { position: relative; flex: 1; min-width: 0; }
.size-chips .sz-cur { height: 100%; border: 1.5px solid var(--line); padding: 8px 12px; }
.size-chips .sz-cur.on { border-color: #ff8a00; background: rgba(255,138,0,.1); }
.size-chips .sz-cur .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.size-chips .sz-menu { left: auto; right: 0; min-width: 100%; width: max-content; max-width: 86vw; }
/* v3: no fade mask (it also clipped the upward menu), show the arrow, padding fix */
.size-chips { -webkit-mask-image: none !important; mask-image: none !important; padding-right: 0 !important; }
.size-chips .sz-cur .chev { display: block !important; flex: none; color: #ffa53a; }
.size-chips.open .sz-cur { border-color: #ff8a00; }
/* the sizer's saved-size list shares .size-chips: let it wrap instead of overflowing the screen */
#szSaved { display: flex !important; flex-wrap: wrap; overflow: visible !important; max-width: 100%; }
#szSaved button { flex: 0 1 auto; max-width: 100%; min-width: 0; }
#szSaved button small { white-space: nowrap; }
/* sizer: saved sizes dropdown (opens downward, inside the sheet) */
.sz-pick { display: grid; gap: 6px; }
.sz-pick-btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid #ff8a00; color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer; }
.sz-pick-btn span { flex: 1; text-align: left; }
.sz-pick-btn b { background: rgba(255,138,0,.18); color: #ffb347; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.sz-pick-btn .chev { width: 18px; height: 18px; color: #ffa53a; transition: transform .2s; }
.sz-pick.open .sz-pick-btn .chev { transform: rotate(180deg); }
.sz-pick-menu { display: none; padding: 4px; border-radius: 14px; background: #1b1e25; border: 1px solid var(--line); max-height: 240px; overflow-y: auto; }
.sz-pick.open .sz-pick-menu { display: grid; gap: 2px; animation: szDrop .18s ease-out; }
.sz-pick-menu button { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 10px; background: transparent; border: 0; color: var(--text); font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; }
.sz-pick-menu button span { flex: 1; }
.sz-pick-menu button small { color: #ffb347; font-weight: 900; }
.sz-pick-menu button:hover, .sz-pick-menu button:active { background: rgba(255,138,0,.12); }
@keyframes szDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#sizeChips .sz-menu { display: flex; flex-direction: column-reverse; } /* opens upward: most recent size sits at the bottom, next to the button */
/* sizer dropdown floats over the content instead of pushing it down */
.sz-pick { position: relative; }
.sz-pick-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.sz-pick.open .sz-pick-menu { display: grid; grid-template-columns: 1fr; }
.sz-pick-menu button { width: 100%; }
/* Upload photo / Add manually as real buttons under Snap meal */
.alt-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.alt-actions .alt-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 14px; background: var(--card); border: 1.5px solid rgba(255,138,0,.45); color: #ffb347; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; transition: transform .08s, border-color .15s, background .15s; }
.alt-actions .alt-btn:hover { border-color: #ff8a00; background: rgba(255,138,0,.08); }
.alt-actions .alt-btn:active { transform: scale(.97); }
.alt-actions .alt-btn .ic { width: 19px; height: 19px; flex: none; }

/* ---------- landing v3: gym audience ---------- */
.lp-sub { margin: -6px 0 2px; max-width: 340px; font-size: 15px; line-height: 1.45; color: #cfd3dc; }
.login-box .lp-h { font-size: 28px; }
.hero-shot { width: 220px; height: auto; border-radius: 24px; border: 3px solid #2a2d35; box-shadow: 0 10px 30px rgba(0,0,0,.5); margin: 8px auto 0; }
.login-box .howto { margin-top: 8px; }
.ht-result b { font-size: 26px; color: #7ee08a; }
.ht-result b small { color: #b8e6bf; }
.lp-train { display: grid; gap: 10px; }
.lp-train div { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.lp-train em { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,138,0,.14); color: #ffa53a; font-style: normal; }
.lp-train em .ic { width: 24px; height: 24px; }
.lp-train b { font-size: 15px; }
.lp-train span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.lp-sub-h { margin: 18px 0 10px; text-align: center; font-size: 15px; }
.lp-chips.gym span { border-color: rgba(126,224,138,.4); background: rgba(126,224,138,.08); }
.lp-ex { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1.5px solid rgba(126,224,138,.45); display: grid; gap: 10px; }
.lp-ex-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lp-ex-h small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.lp-ex-p { display: flex; align-items: baseline; gap: 8px; }
.lp-ex-p b { font-size: 40px; font-weight: 900; color: #7ee08a; line-height: 1; }
.lp-ex-p span { font-weight: 800; color: #b8e6bf; }
.lp-ex-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-ex-m span { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; font-size: 11px; color: var(--muted); }
.lp-ex-m b { display: block; font-size: 16px; color: #fff; }
.lp-ex-m i { font-style: normal; }
.lp-count { text-align: center; margin-bottom: 12px; }
.lp-count b { display: block; font-size: 34px; font-weight: 900; color: #ffb347; }
.lp-proof blockquote { margin: 0 0 10px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.lp-proof cite { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-style: normal; }

.login-box .try-sub { margin: -2px 0 6px; line-height: 1.4; }

/* hero CTAs: clean stacked pair */
.login-box #guestBtn, .login-box .g-btn { width: 100%; max-width: 340px; height: 52px; padding: 0 18px; border-radius: 14px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: none; animation: none; }
.login-box #guestBtn { background: #ff8a00; color: #111; }
.login-box #guestBtn .ic { width: 20px; height: 20px; }
.login-box .g-btn { margin-top: -6px; background: transparent; color: #fff; border: 1px solid #3a3e48; }
.login-box .g-btn:active { background: rgba(255,255,255,.05); }
.login-box .try-sub { margin: -4px 0 4px; font-size: 12px; }

/* hero order: animation, buttons, then headline */
.login-box .hero-shot, .login-box .howto { order: 1; margin: 0 auto 4px; }
.login-box #guestBtn, .login-box #fbBtn, .login-box .g-btn, .login-box .try-sub { order: 2; }
.login-box .lp-badge, .login-box .lp-h, .login-box .lp-sub { order: 3; }
.login-box .lp-badge { margin-top: 10px; }

/* final hero order: headline, animation, buttons */
.login-box .lp-badge, .login-box .lp-h, .login-box .lp-sub { order: 0; }
.login-box .lp-badge { margin-top: 0; }

/* food search */
#items .item { position: relative; }
.food-sug { position: absolute; left: 10px; right: 10px; top: 54px; z-index: 30; max-height: 260px; overflow-y: auto; background: #1d2028; border: 1px solid #3a3e48; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.55); }
.food-sug button { display: block; width: 100%; text-align: left; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid #2a2d35; color: #fff; cursor: pointer; }
.food-sug button:last-child { border-bottom: 0; }
.food-sug button:active, .food-sug button:hover { background: rgba(255,138,0,.1); }
.food-sug b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.food-sug small { font-size: 11.5px; color: #9aa0ad; }
.food-sug em { font-style: normal; font-weight: 800; color: #111; background: #ffb347; border-radius: 4px; padding: 0 4px; margin-right: 6px; font-size: 10px; }
.item.by-g .i-x { color: #7ee08a; }

.food-sug { touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.rm-test { width: 100%; margin-top: 8px; }

/* sizer: AI decides shortcut */
.sz-ai { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left; cursor: pointer; color: #fff; background: linear-gradient(135deg, rgba(126,224,138,.14), rgba(126,224,138,.04)); border: 1.5px solid rgba(126,224,138,.5); }
.sz-ai svg { flex: none; width: 26px; height: 26px; fill: #7ee08a; }
.sz-ai b { display: block; font-size: 15px; }
.sz-ai small { display: block; font-size: 12px; color: #a9b3a9; margin-top: 2px; }
.sz-ai:active { transform: scale(.98); }

/* sizer: Save & snap always visible + tighter layout on phones */
.sizer-box { gap: 10px; padding-bottom: 0; }
.sizer-box .sheet-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--card) 75%, transparent); }
.sizer-box .close-sizer { margin-bottom: 14px; }
.sz-ai { padding: 9px 12px; }
.sz-ai small { font-size: 11.5px; }
.sizer-box .sz-art { max-height: 150px; }
.sizer-box > p.muted { margin: 0; font-size: 12px; }
.sizer-box .sz-read b { font-size: 26px; }
@media (max-height: 760px) { .sizer-box .sz-art { max-height: 120px; } .sizer-box .sz-marks { display: none; } }

/* sizer v2: full-height sheet, AI button beside Save */
#sizer .sizer-box { max-height: calc(100dvh - 8px); }
.sizer-box .sheet-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.sizer-box .sheet-actions > [hidden] { display: none; }
.sizer-box .sz-ai { width: auto; justify-content: center; gap: 8px; padding: 0 12px; min-height: 48px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: #7ee08a; background: rgba(126,224,138,.1); border: 1.5px solid rgba(126,224,138,.55); }
.sizer-box .sz-ai svg { width: 18px; height: 18px; }
.sizer-box #szSave { min-height: 48px; }

.sizer-box .sz-ai, .sizer-box #szSave { white-space: nowrap; font-size: 14px; padding: 0 10px; }

/* coming from /promoters Apply: Google sign-in only */
body.apply-mode #guestBtn, body.apply-mode #guestBtn2, body.apply-mode .try-sub { display: none !important; }

.gb-apply { background: transparent; color: #ffb347; border: 1.5px solid rgba(255,138,0,.6); font-weight: 800; }

/* "where to apply again" pointer after closing the application form */
.ap-hint { position: absolute; z-index: 200; padding: 14px; border-radius: 16px; background: #1f232c; border: 1.5px solid #ff8a00; box-shadow: 0 14px 34px rgba(0,0,0,.6); display: grid; gap: 6px; animation: apIn .25s ease-out; }
.ap-hint::before { content: ""; position: absolute; top: -8px; left: calc(var(--ax) - 7px); width: 14px; height: 14px; background: #1f232c; border-left: 1.5px solid #ff8a00; border-top: 1.5px solid #ff8a00; transform: rotate(45deg); }
.ap-hint b { font-size: 15px; } .ap-hint span { font-size: 13.5px; color: #cfd3dc; line-height: 1.4; }
.ap-hint button { justify-self: end; margin-top: 4px; padding: 7px 16px; border: 0; border-radius: 10px; background: #ff8a00; color: #111; font-weight: 800; cursor: pointer; }
@keyframes apIn { from { opacity: 0; transform: translateY(-6px); } }
.ap-pulse { position: relative; animation: apPulse 1.2s ease-in-out infinite; border-radius: 999px; }
@keyframes apPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,0,.7); } 50% { box-shadow: 0 0 0 8px rgba(255,138,0,0); } }

.apply-card.ap-glow { animation: apGlow 1.2s ease-in-out 5; border-color: #ff8a00 !important; }
@keyframes apGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,0,.75); } 50% { box-shadow: 0 0 0 10px rgba(255,138,0,0), 0 0 22px rgba(255,138,0,.45); } }

/* ---------- Lifetime offer ---------- */
.life-card { position: relative; display: grid; gap: 8px; padding: 18px 16px 16px; border-radius: 18px; text-align: left; cursor: default; background: linear-gradient(135deg, rgba(255,138,0,.18), rgba(255,61,0,.06)); border: 2px solid #ff8a00 !important; }
.life-card .tag { position: absolute; top: -11px; left: 16px; padding: 3px 10px; border-radius: 999px; background: #ff8a00; color: #111; font: 800 11px Inter, sans-serif; font-style: normal; }
.life-name { font-size: 17px; font-weight: 900; }
.life-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.life-price s { color: var(--muted); font-size: 17px; font-weight: 700; }
.life-price b { font-size: 40px; font-weight: 900; line-height: 1; background: linear-gradient(90deg,#ffd166,#ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.life-price span { color: #cfd3dc; font-size: 13px; font-weight: 700; }
.life-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.life-list li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.4; }
.life-list li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 11px; height: 6px; border-left: 2.5px solid #7ee08a; border-bottom: 2.5px solid #7ee08a; transform: rotate(-45deg); }
.life-card.pack.on::after { display: none; }
.life-have { display: grid; gap: 4px; padding: 16px; border-radius: 16px; text-align: center; background: rgba(126,224,138,.1); border: 1.5px solid rgba(126,224,138,.5); }
.life-have span { color: #cfd3dc; font-size: 13.5px; }
.wg-life { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255,138,0,.12); border: 1px solid rgba(255,138,0,.45); }
.wg-life s { color: #9aa0ad; } .wg-life b { font-size: 24px; color: #ffb347; } .wg-life span { flex-basis: 100%; font-size: 12.5px; color: #cfd3dc; }
.lp-was { display: block; color: var(--muted); font-size: 16px; font-weight: 700; }
#creditsBtn.life b { font-size: 15px; }

#topup .life-card .tag { left: 14px !important; right: auto !important; transform: none !important; top: -11px !important; }
#topup .life-card, #topup .life-card.on { border-color: #ff8a00 !important; box-shadow: 0 8px 28px rgba(255,138,0,.18) !important; margin-top: 10px; }

/* top-up: snaps option under Lifetime */
.snaps-opt { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left; cursor: pointer; background: var(--card); border: 1px solid #3a3e48; color: #fff; }
.snaps-opt b { grid-row: span 2; font-size: 15px; color: #ffb347; white-space: nowrap; }
.snaps-opt span { font-size: 12.5px; color: #cfd3dc; }
.snaps-opt i { font-style: normal; font-size: 13px; font-weight: 800; color: #ffb347; }
.wg-snaps { flex-basis: 100%; font-size: 12.5px; color: #ffd9a8 !important; }

/* top-up: snaps mini-card */
.snaps-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid #3a3e48; }
.sc-head { display: flex; align-items: center; gap: 8px; }
.sc-head .ic { width: 20px; height: 20px; color: #ffb347; }
.sc-head b { flex: 1; font-size: 15px; }
.sc-head em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #111; background: #ffb347; padding: 3px 9px; border-radius: 999px; }
.sc-ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-ex div { display: grid; justify-items: center; gap: 2px; padding: 9px 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid #2a2d35; }
.sc-ex b { font-size: 16px; }
.sc-ex svg { width: 16px; height: 16px; color: #7ee08a; transform: rotate(90deg); }
.sc-ex span { font-size: 15px; font-weight: 800; color: #7ee08a; }
.sc-ex small { font-size: 11px; font-weight: 600; color: #b8e6bf; }
.sc-note { color: var(--muted); font-size: 12px; text-align: center; }
.sc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border-radius: 12px; background: transparent; border: 1.5px solid #2a7fff; color: #8fbfff; font-weight: 800; }
.sc-btn .gc-logo { height: 20px; width: auto; }

.sc-btn { white-space: nowrap; }

/* GCash chat: Lifetime price box, dark premium (readable on the light chat bubble) */
.wg .wg-life { background: linear-gradient(135deg, #1a1d24, #0f1115) !important; border: 1.5px solid #ffb347 !important; box-shadow: 0 6px 18px rgba(0,0,0,.25); padding: 14px; gap: 6px 10px; }
.wg .wg-life s { color: #8c92a0 !important; font-weight: 700; }
.wg .wg-life b { font-size: 28px; font-weight: 900; background: linear-gradient(90deg,#ffd166,#ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.wg .wg-life span { color: #e8eaef !important; font-weight: 600; }
.wg .wg-life .wg-snaps { color: #7ee08a !important; font-weight: 700; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.1); }

/* GCash chat Lifetime box as a premium card: gold edge, card chip, moving reflection */
.wg .wg-life { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px !important; padding: 34px 16px 14px !important;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,179,71,.18), transparent 55%), linear-gradient(145deg, #22262f 0%, #12141a 55%, #0b0c10 100%) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,209,102,.55), inset 0 1px 0 rgba(255,255,255,.12) !important; }
.wg .wg-life::before { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: -1; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,236,200,.22), rgba(255,255,255,.35), rgba(255,236,200,.22), transparent);
  animation: wlShine 3.6s ease-in-out infinite; }
@keyframes wlShine { 0%, 35% { left: -60%; } 75%, 100% { left: 130%; } }
.wg .wg-life .wl-chip { position: absolute; top: 12px; left: 16px; font: 900 10px/1 Inter, sans-serif; font-style: normal; letter-spacing: 2px; color: #1a1205; padding: 4px 8px; border-radius: 6px; background: linear-gradient(135deg, #ffe39a, #ffb347 55%, #e08600); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.wg .wg-life::after { content: ""; position: absolute; top: 10px; right: 14px; width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #f7d27a, #b8862b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 -6px 0 rgba(0,0,0,.12); opacity: .9; }
@media (prefers-reduced-motion: reduce) { .wg .wg-life::before { animation: none; display: none; } }

.wg .wg-snapsline { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #eef9f0; border: 1px solid #b9e4c1; color: #1d6b2c; font-size: 13px; font-weight: 700; }

/* top-up Lifetime card: same premium card as the GCash chat (gold edge, chip, moving reflection) */
#topup .life-card, #topup .life-card.on { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; padding: 44px 18px 18px !important; margin-top: 4px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,179,71,.2), transparent 55%), linear-gradient(145deg, #22262f 0%, #12141a 55%, #0b0c10 100%) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,209,102,.6), inset 0 1px 0 rgba(255,255,255,.12) !important; }
#topup .life-card::before { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,236,200,.18), rgba(255,255,255,.3), rgba(255,236,200,.18), transparent);
  animation: wlShine 3.6s ease-in-out infinite; display: block !important; }
#topup .life-card::after { content: "" !important; display: block !important; position: absolute; top: 14px; right: 16px; width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg, #f7d27a, #b8862b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 -7px 0 rgba(0,0,0,.12); }
#topup .life-card .tag { top: 15px !important; left: 18px !important; letter-spacing: 1.5px; font-size: 10px; padding: 4px 9px; border-radius: 6px; background: linear-gradient(135deg, #ffe39a, #ffb347 55%, #e08600); color: #1a1205; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) { #topup .life-card::before { animation: none; display: none !important; } }

#topup .life-card::after { left: auto !important; right: 16px !important; top: 14px !important; bottom: auto !important; transform: none !important; margin: 0 !important; }

/* Buy snaps: clean solid button (no logo image) */
#topup .sc-btn { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; justify-content: center; align-items: center; column-gap: 8px; row-gap: 1px; min-height: 52px; padding: 8px 14px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #1f7bff, #0057e0); color: #fff; box-shadow: 0 6px 16px rgba(0,87,224,.35), inset 0 1px 0 rgba(255,255,255,.25); }
#topup .sc-btn .ic { grid-row: span 2; width: 22px; height: 22px; color: #fff; }
#topup .sc-btn span { font-size: 15.5px; font-weight: 800; line-height: 1.1; }
#topup .sc-btn small { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.8); line-height: 1.1; }
#topup .sc-btn:active { transform: scale(.98); }

/* partner: convert-to-snaps retired (Lifetime replaces it) */
#pdConvert, #pdConvBox { display: none !important; }

/* referral earnings card: plain for regular users (the gold crown look is for approved Promoters) */
.partner-card .pc-cash { display: none; }
.partner-card.plain { background: var(--card) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.partner-card.plain::before, .partner-card.plain::after { display: none !important; }
.partner-card.plain .pc-crown { display: none; }
.partner-card.plain .pc-cash { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(126,224,138,.12); color: #7ee08a; }
.partner-card.plain .pc-cash svg { width: 22px; height: 22px; }
.partner-card.plain #pcTitle { color: #fff !important; background: none !important; -webkit-text-fill-color: #fff !important; }
.partner-card.plain #pcSub { color: var(--muted) !important; }
.partner-card.plain .pc-bal { color: #7ee08a !important; background: none !important; -webkit-text-fill-color: #7ee08a !important; }

/* earnings dashboard: plain for regular users */
.pd-head .pc-cash { display: none; }
#partnerSheet.plain .pd-head .pc-crown { display: none; }
#partnerSheet.plain .pd-head .pc-cash { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(126,224,138,.12); color: #7ee08a; }
#partnerSheet.plain .pd-head .pc-cash svg { width: 22px; height: 22px; }
#partnerSheet.plain #pdTitle { color: #fff !important; background: none !important; -webkit-text-fill-color: #fff !important; }
#partnerSheet.plain .pd-bal { background: var(--bg) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
#partnerSheet.plain .pd-bal::before, #partnerSheet.plain .pd-bal::after { display: none !important; }
#partnerSheet.plain .pd-bal small { color: var(--muted) !important; }
#partnerSheet.plain #pdBal { color: #7ee08a !important; background: none !important; -webkit-text-fill-color: #7ee08a !important; }
#partnerSheet.plain #pdSend { background: #2a2d35 !important; color: #fff !important; box-shadow: none !important; }
#partnerSheet.plain #pdSend:not(:disabled) { background: #7ee08a !important; color: #0b1a0e !important; }

/* convert to snaps: only for regular (non-promoter) users */
#partnerSheet.plain #pdConvert { display: inline-flex !important; }
#partnerSheet.plain #pdConvBox:not([hidden]) { display: grid !important; }

/* use earnings (snaps or Lifetime): regular users without Lifetime only */
#partnerSheet #pdConvert, #partnerSheet #pdConvBox { display: none !important; }
#partnerSheet.canuse #pdConvert { display: inline-flex !important; }
#partnerSheet.canuse #pdConvBox:not([hidden]) { display: grid !important; gap: 10px; }
.pd-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.pd-or::before, .pd-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pd-life { width: 100%; min-height: 46px; border-radius: 12px; font-weight: 800; color: #1a1205; border: 0; background: linear-gradient(135deg, #ffe39a, #ffb347 55%, #e08600); }
.pd-life:disabled { background: #2a2d35; color: var(--muted); }

#partnerSheet.plain:not(.canuse) #pdConvert, #partnerSheet.plain:not(.canuse) #pdConvBox { display: none !important; }

/* "Use your earnings" panel under the balance */
#partnerSheet.canuse #pdConvBox { display: grid !important; }
.pd-use { gap: 10px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pd-use > b { font-size: 15px; }
.pd-use-row { display: grid; gap: 10px; }
.pd-use-opt { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid #2a2d35; }
.pd-use-opt small { color: var(--muted); font-size: 12px; }
.pd-use-opt.life { border-color: rgba(255,179,71,.45); background: rgba(255,138,0,.06); }
.pd-use .pd-conv { width: 100%; min-height: 44px; border-radius: 12px; }

/* "Use your earnings" toggle */
.pd-use-tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 4px 2px; border: 0; background: none; color: #fff; font: 800 15px Inter, sans-serif; cursor: pointer; text-align: left; }
.pd-use-tog .chev { width: 20px; height: 20px; color: #ffb347; transition: transform .2s; }
.pd-use-tog[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pd-use-row[hidden] { display: none !important; }

/* old 'Use earnings' pill in the balance box: replaced by the panel below */
#partnerSheet #pdConvert, #partnerSheet.canuse #pdConvert, #partnerSheet.plain #pdConvert { display: none !important; }

/* "Use your earnings" as a real button */
#pdConvBox.pd-use { padding: 0; background: none; border: 0; gap: 10px; }
.pd-use-tog { justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(126,224,138,.22), rgba(126,224,138,.1)); border: 1.5px solid rgba(126,224,138,.6); color: #b8f0c1; font-size: 15px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pd-use-tog::before { content: "⚡"; }
.pd-use-tog .chev { color: #7ee08a; }
.pd-use-tog:active { transform: scale(.98); }
.pd-use-tog[aria-expanded="true"] { border-radius: 14px; background: rgba(126,224,138,.14); }

/* Lifetime: limited-time note with a pulsing dot */
.life-ltd { display: flex; align-items: center; gap: 8px; margin-top: -2px; font-size: 12.5px; font-weight: 800; color: #ff8a65; }
.life-ltd i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a36; box-shadow: 0 0 0 0 rgba(255,90,54,.7); animation: ltdPulse 1.4s ease-out infinite; }
@keyframes ltdPulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,54,.7); } 100% { box-shadow: 0 0 0 9px rgba(255,90,54,0); } }
@media (prefers-reduced-motion: reduce) { .life-ltd i { animation: none; } }

.wg .wg-life .life-ltd { flex-basis: 100%; margin-top: 2px; color: #ff9a76 !important; font-size: 12px; }

/* landing pricing box: same premium card as the app (gold edge, chip, reflection, limited time) */
.lp-rate.prem { position: relative; overflow: hidden; isolation: isolate; padding: 44px 18px 18px; border-radius: 18px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,179,71,.2), transparent 55%), linear-gradient(145deg, #22262f 0%, #12141a 55%, #0b0c10 100%);
  border: 1px solid transparent; box-shadow: 0 14px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,209,102,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.lp-rate.prem::before { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,236,200,.18), rgba(255,255,255,.3), rgba(255,236,200,.18), transparent); animation: wlShine 3.6s ease-in-out infinite; }
.lp-rate.prem::after { content: ""; position: absolute; top: 14px; right: 16px; width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg, #f7d27a, #b8862b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 -7px 0 rgba(0,0,0,.12); }
.lp-rate.prem .wl-chip { position: absolute; top: 15px; left: 18px; font: 900 10px/1 Inter, sans-serif; font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: #1a1205; padding: 4px 9px; border-radius: 6px; background: linear-gradient(135deg, #ffe39a, #ffb347 55%, #e08600); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.lp-rate.prem > span { color: #e8eaef; }
.lp-rate.prem .life-ltd { justify-content: center; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .lp-rate.prem::before { display: none; } }

.lp-snaps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: #cfd3dc; text-align: center; }
.lp-snaps b { color: #7ee08a; font-size: 15px; }

/* landing pricing = same cards as the top-up screen */
.lp-price .life-card { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 8px; text-align: left; border-radius: 18px; padding: 44px 18px 18px; margin: 0 0 12px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,179,71,.2), transparent 55%), linear-gradient(145deg, #22262f 0%, #12141a 55%, #0b0c10 100%);
  border: 1px solid transparent; box-shadow: 0 14px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,209,102,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.lp-price .life-card::before { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,236,200,.18), rgba(255,255,255,.3), rgba(255,236,200,.18), transparent); animation: wlShine 3.6s ease-in-out infinite; }
.lp-price .life-card::after { content: ""; position: absolute; top: 14px; right: 16px; width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg, #f7d27a, #b8862b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 -7px 0 rgba(0,0,0,.12); }
.lp-price .life-card .tag { position: absolute; top: 15px; left: 18px; font: 900 10px/1 Inter, sans-serif; font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: #1a1205; padding: 4px 9px; border-radius: 6px; background: linear-gradient(135deg, #ffe39a, #ffb347 55%, #e08600); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.lp-price .snaps-card { margin-bottom: 14px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .lp-price .life-card::before { display: none; } }

.wg .wg-snapcard { margin-top: 8px; color: #fff; background: #171a21; border-color: #2a2d35; }
.wg .wg-snapcard .sc-note { color: #9aa0ad; }

/* ---------- MaluFit camera ---------- */
.cam { position: fixed; inset: 0; z-index: 400; background: #000; overflow: hidden; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; } /* whole frame, not zoomed: matches the photo */
.cam-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 42% at 50% 46%, transparent 60%, rgba(0,0,0,.55) 100%), linear-gradient(to bottom, rgba(0,0,0,.55), transparent 18%, transparent 70%, rgba(0,0,0,.75)); }
.cam-frame { position: absolute; left: 50%; top: 46%; width: min(78vw, 360px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; transition: width .35s ease; }
.cam-frame i { position: absolute; width: 38px; height: 38px; border: 4px solid #ff8a00; filter: drop-shadow(0 0 6px rgba(255,138,0,.6)); transition: border-color .25s, transform .35s ease; }
.cam-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.cam-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.cam-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.cam-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.cam-frame.lock { width: min(70vw, 320px); }
.cam-frame.lock i { border-color: #7ee08a; filter: drop-shadow(0 0 8px rgba(126,224,138,.8)); }
.cam-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cam-x { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); }
.cam-x .ic { width: 20px; height: 20px; }
.cam-sp { width: 42px; }
.cam-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; font: 700 13.5px Inter, sans-serif; border: 1px solid rgba(255,255,255,.15); }
.cam-pill i { width: 8px; height: 8px; border-radius: 50%; background: #9aa0ad; }
.cam-pill.point i { background: #ffb347; animation: ltdPulse 1.4s ease-out infinite; }
.cam-pill.food { border-color: rgba(126,224,138,.7); color: #b8f0c1; }
.cam-pill.food i { background: #7ee08a; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: camFlash .35s ease-out; }
@keyframes camFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
.cam-bot { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.cam-side { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.2); cursor: pointer; backdrop-filter: blur(6px); }
.cam-side .ic { width: 24px; height: 24px; }
.cam-shut { position: relative; width: 84px; height: 84px; border: 0; padding: 0; background: none; cursor: pointer; }
.cam-shut svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cam-shut .trk { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 5; }
.cam-shut .ring { fill: none; stroke: #7ee08a; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset .25s linear; }
.cam-shut span { position: absolute; inset: 11px; border-radius: 50%; background: linear-gradient(135deg, #ffd166, #ff8a00 55%, #ff3d00); box-shadow: 0 4px 18px rgba(255,138,0,.55); transition: transform .12s; }
.cam-shut:active span { transform: scale(.9); }
.cam-hint { grid-column: 3; max-width: 96px; color: rgba(255,255,255,.75); font-size: 11.5px; text-align: center; line-height: 1.3; }
.cam-err { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 12px; padding: 22px; border-radius: 18px; background: #171a21; border: 1px solid #2a2d35; text-align: center; color: #fff; }
.cam-err .ic { width: 40px; height: 40px; color: #ffb347; }
.cam-err p { margin: 0; color: #cfd3dc; }
body.cam-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cam-frame, .cam-frame i { transition: none; } }

/* size asked after the photo (only when the AI had nothing to measure by) */
.size-ask { display: grid; gap: 6px; padding: 12px; margin-bottom: 10px; border-radius: 14px; background: rgba(255,138,0,.08); border: 1.5px solid rgba(255,138,0,.5); }
.size-ask > b { font-size: 15px; }
.size-ask > small { color: #cfd3dc; font-size: 12.5px; line-height: 1.4; }
.sa-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 4px; }
.sa-chips button { display: grid; gap: 1px; padding: 8px 6px; border-radius: 12px; background: var(--card); border: 1px solid #3a3e48; color: #fff; cursor: pointer; text-align: center; }
.sa-chips button b { font-size: 15px; }
.sa-chips button span { font-size: 11px; color: var(--muted); line-height: 1.2; }
.sa-chips button.on { border-color: #7ee08a; background: rgba(126,224,138,.12); }
.sa-chips button.ok b { color: #7ee08a; }
/* the "Eating from" size picker before the snap is gone: size is asked after the photo now */
#sizeChips, .size-chips-wrap, .size-on { display: none !important; }

#main > .sizes, .sizes:has(#sizeChips) { display: none !important; }

/* ================= PREMIUM (Lifetime) look ================= */
body.premium { background: radial-gradient(120% 60% at 50% -10%, rgba(255,179,71,.14), transparent 60%), #0d0e12; }
body.premium #main .top { border-bottom: 1px solid rgba(255,209,102,.18); }
body.premium .brand .mark { filter: drop-shadow(0 0 10px rgba(255,190,90,.55)); }
body.premium .brand .name { position: relative; }
body.premium .brand .name span { background: linear-gradient(90deg,#ffe39a,#ffb347 50%,#e08600); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.premium .brand .name::after { content: "LIFETIME"; position: absolute; left: 0; top: 100%; margin-top: 1px; font: 900 8.5px/1 Inter, sans-serif; letter-spacing: 1.6px; padding: 3px 6px; border-radius: 5px; color: #1a1205; background: linear-gradient(135deg,#ffe39a,#ffb347 55%,#e08600); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); white-space: nowrap; }
body.premium #creditsBtn { background: linear-gradient(135deg, rgba(255,209,102,.22), rgba(224,134,0,.12)) !important; border: 1px solid rgba(255,209,102,.6) !important; color: #ffe39a !important; }
body.premium #creditsBtn .ic { color: #ffd166 !important; }
body.premium .snap { position: relative; overflow: hidden; background: linear-gradient(135deg, #ffe39a 0%, #ffb347 40%, #e08600 100%) !important; color: #1a1205 !important; box-shadow: 0 10px 28px rgba(255,170,60,.35), inset 0 1px 0 rgba(255,255,255,.55) !important; }
body.premium .snap::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 35%; transform: rotate(20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: wlShine 3.6s ease-in-out infinite; pointer-events: none; }
body.premium .alt-actions .btn, body.premium .alt-btn { border-color: rgba(255,209,102,.45) !important; color: #ffd98a !important; }
body.premium .streak, body.premium .summary, body.premium .day-card, body.premium .ring-card { border-color: rgba(255,209,102,.3) !important; box-shadow: inset 0 0 0 1px rgba(255,209,102,.08); }
body.premium #scansLeft { color: #ffd98a; }
body.premium .sheet-box { box-shadow: 0 -10px 40px rgba(255,170,60,.08), inset 0 1px 0 rgba(255,209,102,.25); }
body.premium .btn.primary:not(.snap) { background: linear-gradient(135deg, #ffe39a, #ffb347 45%, #e08600) !important; color: #1a1205 !important; }
@media (prefers-reduced-motion: reduce) { body.premium .snap::after { display: none; } }

body.premium .brand { position: relative; }
body.premium .brand::after { content: "♛"; position: absolute; right: -6px; bottom: -4px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; line-height: 1; color: #1a1205; background: linear-gradient(135deg,#ffe39a,#ffb347 55%,#e08600); box-shadow: 0 0 0 2px #0d0e12, 0 0 8px rgba(255,190,90,.6); }

/* ---------- spoon tip before the camera ---------- */
.tip-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tip-art svg { width: 112px; height: 112px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.tip-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #ff8a3d; background: rgba(255,107,26,.12); border-radius: 999px; padding: 4px 10px; }
.tip-box h3 { margin: 2px 0 0; }
.tip-text { margin: 0; font-weight: 600; line-height: 1.45; }
.tip-box .muted.small { margin: 0; line-height: 1.5; }
.tip-never { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0 2px; cursor: pointer; user-select: none; }
.tip-never input { width: 18px; height: 18px; accent-color: #ff6b1a; }
.tip-box .btn.big { width: 100%; margin-top: 6px; }
/* spoon highlight: glowing dashed frame that pulses, so the eye goes to the spoon */
.tip-art svg { overflow: visible; }
.tip-hl { transform-box: fill-box; transform-origin: center; animation: tipPulse 1.6s ease-in-out infinite, tipDash 1.2s linear infinite; filter: drop-shadow(0 0 6px rgba(255,138,61,.9)); }
.tip-spoon { filter: drop-shadow(0 0 4px rgba(255,138,61,.85)); }
@keyframes tipPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .65; } }
@keyframes tipDash { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .tip-hl { animation: none; } }

/* ---------- "Was this accurate?" + correction ---------- */
.acc { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,107,26,.07); border: 1px solid rgba(255,107,26,.22); }
.acc-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acc-btns { display: flex; gap: 8px; }
.acc-btns .btn { padding: 8px 12px; font-size: 14px; }
.acc-fix { display: grid; gap: 8px; }
.acc-fix p { margin: 0; line-height: 1.5; }
.acc-fix textarea { width: 100%; box-sizing: border-box; border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; min-height: 76px; background: var(--card, #fff); color: inherit; border: 1px solid rgba(127,127,127,.3); }
.acc-fix .btn { width: 100%; }
.acc-done { margin: 0; font-weight: 600; font-size: 14px; }
/* accuracy box: everything centered */
.acc { text-align: center; }
.acc-ask { flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.acc-btns { width: 100%; justify-content: center; }
.acc-btns .btn { flex: 1 1 0; max-width: 180px; }
.acc-fix { justify-items: center; }
.acc-fix textarea { text-align: left; }
.sa-spoon { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; background: rgba(255,138,61,.1); border: 1px dashed rgba(255,138,61,.5); }
/* spoon hint under the size question: stronger highlight */
.sa-spoon { position: relative; margin: 12px 0 0; padding: 11px 12px 11px 44px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.45; text-align: left;
  background: linear-gradient(135deg, rgba(255,107,26,.2), rgba(255,176,32,.14)); border: 1.5px solid #ff8a3d; box-shadow: 0 0 0 3px rgba(255,138,61,.15), 0 6px 18px rgba(255,107,26,.18);
  animation: saGlow 2s ease-in-out infinite; }
.sa-spoon::first-letter { position: absolute; left: 12px; top: 9px; font-size: 22px; }
@keyframes saGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(255,138,61,.15), 0 6px 18px rgba(255,107,26,.18); } 50% { box-shadow: 0 0 0 5px rgba(255,138,61,.28), 0 6px 22px rgba(255,107,26,.32); } }
@media (prefers-reduced-motion: reduce) { .sa-spoon { animation: none; } }
.sa-spoon .sa-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 22px; line-height: 1; }

/* Lifetime price ladder: real slots left at this price */
.life-slots { margin: 6px 0 2px; font-size: 13px; font-weight: 600; color: #ff7a3d; }
.life-slots b { font-size: 15px; }

/* slots left: animated so it catches the eye */
.life-slots { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,122,61,.12); border: 1px solid rgba(255,122,61,.45); animation: slotGlow 1.8s ease-in-out infinite; }
.life-slots b { display: inline-block; animation: slotPop 1.8s ease-in-out infinite; }
.life-slots.hot { background: rgba(255,61,61,.14); border-color: rgba(255,61,61,.6); color: #ff4d4d; animation-duration: 1s; }
.life-slots.hot b { animation-duration: 1s; }
@keyframes slotGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,122,61,.0); } 50% { box-shadow: 0 0 14px 2px rgba(255,122,61,.45); } }
@keyframes slotPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .life-slots, .life-slots b { animation: none; } }
.life-once { display: block; color: #cfd3dc; font-size: 13px; font-weight: 700; margin-top: 2px; }

/* landing: what makes MaluFit different */
.lp-feats em.emo { font-style: normal; font-size: 22px; display: grid; place-items: center; }
/* meal log photos */
.meals li.has-ph { grid-template-columns: 48px 1fr auto auto; }
.meals .m-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; cursor: zoom-in; background: var(--line); }
.ph-view { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.ph-view[hidden] { display: none; }
.ph-view img { max-width: 100%; max-height: 100%; border-radius: 14px; }
.lp-diff .lp-feats > div.hl { border: 1.5px solid rgba(255,176,32,.55); background: rgba(255,176,32,.08); }

/* Facebook login */
.fb-btn { background: #1877f2 !important; color: #fff !important; border-color: #1877f2 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#fbBtn { margin: 0; }
.save-fb { margin-top: 8px; width: 100%; }

/* settings: linked logins */
.link-box { display: grid; gap: 8px; margin: 14px 0 6px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.link-box > small { color: var(--muted, #9aa1ad); font-size: 12px; margin-top: -4px; }
.lk-row { display: flex; align-items: center; gap: 10px; }
.lk-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; flex: none; }
.lk-ic.g { background: #fff; color: #4285f4; } .lk-ic.f { background: #1877f2; color: #fff; }
.lk-name { flex: 1; font-weight: 700; }
.lk-on { font-style: normal; color: #7ee08a; font-weight: 700; font-size: 13px; }

/* merge: pick the account to keep, then hold to confirm */
.merge-box h3 { margin-bottom: 4px; }
.mg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.mg-card { text-align: left; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.12); color: inherit; font: inherit; cursor: pointer; transition: .2s; min-width: 0; }
.mg-card b { display: block; font-size: 16px; } .mg-card small { display: block; color: var(--muted, #9aa1ad); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-card ul { margin: 8px 0 0; padding: 0 0 0 16px; font-size: 13px; }
.mg-card.on { border-color: #7ee08a; background: rgba(126,224,138,.12); box-shadow: 0 0 0 3px rgba(126,224,138,.18); }
.mg-card.off { opacity: .55; border-color: rgba(255,80,80,.55); }
.mg-warn { font-size: 13px; color: #ffb4a0; text-align: center; min-height: 2.6em; margin: 0 0 10px; }
.mg-hold { position: relative; overflow: hidden; width: 100%; background: #c0392b !important; color: #fff !important; user-select: none; -webkit-user-select: none; touch-action: none; --p: 0; }
.mg-hold:disabled { background: rgba(255,255,255,.08) !important; color: var(--muted, #9aa1ad) !important; }
.mg-hold i { position: absolute; inset: 0; width: calc(var(--p) * 100%); background: rgba(255,255,255,.28); pointer-events: none; }
.mg-hold span { position: relative; }
.login-box .try-sub { margin: -4px 0 6px; }

/* landing headline: one short line at a time */
.lp-h#lpH { min-height: 1.25em; white-space: nowrap; overflow: hidden; }
.lp-h#lpH span { display: inline-block; }
.lp-h#lpH span.in { animation: lpIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes lpIn { from { opacity: 0; transform: translateY(60%); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 420px) { .login-box .lp-h#lpH { font-size: clamp(20px, 7vw, 28px); max-width: none; } }
@media (prefers-reduced-motion: reduce) { .lp-h#lpH span.in { animation: none; } }

/* guest bar: "Claim free snaps" looks like a bonus (gold, shine, gentle pulse) */
#gbClaim { width: 100%; border: 0; color: #2a1600; font-weight: 800; position: relative; overflow: hidden;
  background: linear-gradient(110deg, #ffb020, #ffd76a 45%, #ff8a00); background-size: 200% 100%;
  animation: gbGold 3s ease-in-out infinite, gbPulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(255,176,32,.5); }
#gbClaim::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: gbShine 2.4s ease-in-out infinite; }
#gbClaim span { position: relative; z-index: 1; }
@keyframes gbGold { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes gbPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,176,32,.45); transform: scale(1); } 50% { box-shadow: 0 0 18px 4px rgba(255,176,32,.45); transform: scale(1.02); } }
@keyframes gbShine { 0% { left: -60%; } 60%,100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { #gbClaim, #gbClaim::after { animation: none; } }
#gbClaim { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
#gbClaim .gb-ics { position: relative; z-index: 1; display: inline-flex; gap: 4px; font-style: normal; }
#gbClaim .gb-ics svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
/* top bar: one size for everything (pills + icon buttons), same icon size, even spacing */
/* Top bar, new structure: [logo] ........ [snaps pill] [invite] [bell] [settings]
   - the snaps counter is the one labelled pill (what people check most)
   - invite, bell, settings: identical 36 px round icon buttons; the invite % is a small badge on its icon (like the bell's)
   - the EN/TL switch lives in Settings (its "English / Tagalog" button), not in the bar */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 6px; }
header.top .top-right { display: flex; align-items: center; gap: 8px; }
header.top .top-right > button { box-sizing: border-box; height: 36px; margin: 0; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; vertical-align: middle; position: relative; background: var(--card); border: 1px solid var(--line); color: var(--text); }
header.top .top-right > .lang-pill { display: none; }
#creditsBtn { order: 1; padding: 0 12px 0 10px; gap: 6px; border-radius: 999px; font-size: 14px; font-weight: 800; }
#creditsBtn .ic { width: 18px !important; height: 18px !important; margin: 0; }
#creditsBtn b { font-size: 14px; line-height: 1; }
#inviteBtn { order: 2; }
#bellBtn { order: 3; }
#settingsBtn { order: 4; }
/* invite button removed from the top bar (referrals stay in Settings) */
header.top #inviteBtn { display: none !important; }
#inviteBtn { padding: 0 11px 0 9px; gap: 5px; border-radius: 999px; }
#inviteBtn .ic { width: 17px !important; height: 17px !important; margin: 0; color: var(--protein); }
#inviteBtn [data-t="inviteShort"] { display: none !important; }
#inviteBtn .plus { position: static; background: none !important; box-shadow: none !important; animation: none !important; padding: 0 !important;
  color: var(--accent, #ff9f1c) !important; font-size: 14px !important; font-weight: 800; line-height: 1; }
header.top .top-right > .icon-btn { width: 36px; padding: 0; border-radius: 50%; gap: 0; }
header.top .top-right > .icon-btn .ic { width: 19px !important; height: 19px !important; margin: 0; color: var(--text); }
#bellBtn #badge { top: -6px; right: -7px; box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 360px) { header.top .top-right { gap: 6px; } header.top .top-right > .icon-btn { width: 34px; height: 34px; } #creditsBtn, #inviteBtn { height: 34px; padding: 0 9px 0 8px; } }
/* Settings language switch: English | Tagalog, the active side lights up (blue = English, warm = Tagalog) */
.set-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; box-sizing: border-box; padding: 4px; margin: 4px 0 2px;
  border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.set-lang button { border: 0; border-radius: 10px; padding: 11px 8px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
  background: transparent; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.set-lang button[data-l="en"].on { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.4); }
.set-lang button[data-l="tl"].on { background: linear-gradient(135deg, var(--accent, #ffb020), #f97316); color: #1a0e00; box-shadow: 0 4px 14px rgba(249,115,22,.4); }
#settings .sheet-actions { flex-wrap: wrap; }
#signOut { flex: 1 1 100%; width: 100%; } /* Settings: Sign out full width */
/* Settings: small Save to the right of the nickname */
.name-row { display: flex; gap: 8px; align-items: stretch; }
.name-row input { flex: 1; min-width: 0; }
.name-row .name-save { flex: 0 0 auto; width: auto; padding: 0 16px; margin: 0; font-size: 14px; border-radius: 12px; }
/* Settings: "Adjust goals" row (opens the goals panel) */
.goal-open { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 12px 14px; margin: 0 0 12px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.goal-open .go-ic { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; font-size: 20px; border-radius: 11px; background: rgba(255,159,28,.14); }
.goal-open .go-txt { flex: 1; min-width: 0; } .goal-open .go-txt b { display: block; font-size: 15px; } .goal-open .go-txt small { color: var(--muted); font-size: 12.5px; }
.goal-open .go-arr { font-size: 22px; color: var(--muted); }
/* goals panel: premium "Estimate my goals with AI" card */
.ai-goals-pro { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 14px; margin: 6px 0 4px;
  text-align: left; cursor: pointer; font: inherit; color: #1a0e00; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #ffe08a 0%, #ffb020 45%, #f08a00 100%); box-shadow: 0 8px 24px rgba(255,160,20,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.ai-goals-pro::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: agpShine 3.2s ease-in-out infinite; }
@keyframes agpShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.ai-goals-pro .agp-ic { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(26,14,0,.88); color: #ffd166; }
.ai-goals-pro .agp-ic .ic { width: 22px; height: 22px; }
.ai-goals-pro .agp-txt { flex: 1; min-width: 0; } .ai-goals-pro .agp-txt b { display: block; font-size: 16px; font-weight: 800; }
.ai-goals-pro .agp-txt small { display: block; font-size: 12.5px; opacity: .8; line-height: 1.35; margin-top: 2px; }
.ai-goals-pro .agp-go { font-size: 24px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .ai-goals-pro::after { animation: none; display: none; } }
.goal-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--muted); font-size: 12.5px; }
.goal-or::before, .goal-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* report a problem (Settings) */
.rep-open { width: 100%; margin-top: 10px; }
.rep-note { width: 100%; box-sizing: border-box; padding: 12px; margin: 6px 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.rep-img { display: block; max-width: 100%; max-height: 220px; margin: 0 auto 10px; border-radius: 10px; border: 1px solid var(--line); }
.rep-img[hidden] { display: none; }
.rep-pick { display: block; width: 100%; text-align: center; margin-bottom: 4px; cursor: pointer; }
/* reply to a problem report */
.rep-reply { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); }
.rep-reply > div { width: 100%; max-width: 420px; padding: 18px; border-radius: 18px; background: var(--card, #fff); color: var(--text, #111); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.rep-reply b { display: block; font-size: 17px; margin-bottom: 6px; }
.rep-reply small { display: block; opacity: .65; font-size: 12.5px; margin-bottom: 10px; white-space: pre-wrap; }
.rep-reply p { margin: 0 0 14px; white-space: pre-wrap; line-height: 1.45; }
.rep-reply button { width: 100%; padding: 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; color: #1a0e00; background: linear-gradient(135deg, #ffd166, #ffb020); cursor: pointer; }

/* photo memory + scan badges + tap-question + repeat */
.memo-ask { background: var(--card); border: 1px solid rgba(255,176,32,.4); border-radius: 14px; padding: 14px; margin: 10px 0; }
.memo-ask p { margin: 6px 0 12px; color: var(--muted); }
.memo-btns { display: flex; gap: 8px; } .memo-btns .btn { flex: 1; }
.scan-info { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.si { font-size: 13px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.si.ok { color: var(--good); border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.si.warn { color: var(--accent2); border-color: rgba(255,176,32,.35); background: rgba(255,176,32,.07); }
.si.memo { color: #7dd3fc; border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.08); }
.si-fresh { display: block; margin-top: 4px; font-size: 12px; }
.si-ask { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.si-opts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.si-opts button { flex: 1 1 0; min-width: 80px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.si-opts button small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.si-opts button.on { border-color: var(--accent); background: rgba(255,107,26,.14); }
.meals .rep { font-size: 17px; color: var(--muted); }
.meals li { grid-template-columns: 1fr auto auto auto; gap: 4px; }
.meals li.has-ph { grid-template-columns: 48px 1fr auto auto auto; }
/* landing: link to /howWeighingWorks */
.how-acc { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 304px; margin: 14px auto 0; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(255,176,32,.5); background: rgba(255,176,32,.06); color: var(--accent2); text-decoration: none; font-weight: 700; font-size: 13.5px; line-height: 1.3; text-align: left; box-sizing: border-box; }
.how-acc span:first-child { font-size: 20px; }
.how-acc span + span { flex: 1; }
.how-acc b { font-size: 22px; }
.how-acc:active { transform: scale(.98); }
/* "How accurate is it?" link: gently pulses + the arrow nudges, so it reads as tappable */
.how-acc { position: relative; overflow: hidden; animation: haGlow 2.4s ease-in-out infinite; cursor: pointer; transition: transform .15s, background .2s; }
.how-acc b { display: inline-block; animation: haNudge 1.2s ease-in-out infinite; }
.how-acc span:first-child { display: inline-block; animation: haTilt 2.4s ease-in-out infinite; }
.how-acc::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,176,32,.22), transparent); animation: haShine 3.2s ease-in-out infinite; }
.how-acc:hover { background: rgba(255,176,32,.12); }
@keyframes haGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,176,32,0); border-color: rgba(255,176,32,.45); } 50% { box-shadow: 0 0 0 4px rgba(255,176,32,.12); border-color: rgba(255,176,32,.9); } }
@keyframes haNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes haTilt { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 94% { transform: rotate(10deg); } }
@keyframes haShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .how-acc, .how-acc b, .how-acc span:first-child, .how-acc::after { animation: none; } }
