/* ============================================================
   Provei. — passaporte cervejeiro
   Paleta: espuma/creme, tinta malte, âmbar dourado.
   ============================================================ */
:root {
  --bg: #f4ecdd;
  --bg-grain: #efe5d2;
  --surface: #fffdf7;
  --surface-2: #faf3e6;
  --ink: #211811;
  --ink-soft: #6a5b48;
  --ink-faint: #9c8b73;
  --line: #e4d8c2;
  --line-strong: #d6c6a8;
  --amber: #c47e1c;
  --amber-deep: #9a5e10;
  --amber-soft: #f2d79a;
  --foam: #fff8e9;
  --green: #2f6f4f;       /* "provei" / sucesso */
  --green-soft: #dcebe0;
  --rust: #a23a22;        /* wishlist / destaque */
  --shadow: 0 1px 2px rgba(60,40,15,.06), 0 8px 24px rgba(60,40,15,.07);
  --shadow-lg: 0 12px 48px rgba(45,28,8,.22);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 560px;
  --tabbar-h: 62px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -10%, #fbf4e6 0%, var(--bg) 55%) fixed;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
body::before {
  /* grão sutil de papel */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/></svg>");
}
input, button, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }

#app {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

/* ---------- Topbar ---------- */
.appbar { position: sticky; top: 0; z-index: 30; background: var(--bg); transition: box-shadow .2s; }
.appbar.scrolled { box-shadow: 0 7px 18px -12px rgba(60,40,15,.5); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 12px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark svg { display: block; }
.mark-glass { fill: var(--amber); }
.mark-foam { fill: var(--foam); stroke: var(--amber-deep); stroke-width: .6; }
.brand-text h1 { font-size: 25px; line-height: 1; color: var(--ink); }
.brand-text h1 span { color: var(--amber); }
.brand-text p { margin: 3px 0 0; font-size: 11px; letter-spacing: .04em; text-transform: lowercase; color: var(--ink-faint); }

.progress { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.ring { transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line-strong); stroke-width: 4; }
.ring-fill {
  fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 113.1; stroke-dashoffset: 113.1;
  transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1);
}
.progress-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink); }

/* ---------- Filtros ---------- */
.filters {
  padding: 2px 0 8px;
}
.search {
  display: flex; align-items: center; gap: 9px;
  margin: 0 18px 9px;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 13px; padding: 0 12px; height: 44px;
  box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--amber); }
.search svg { stroke: var(--ink-faint); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: none; outline: none; background: none; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--ink-faint); }
.search-clear { color: var(--ink-faint); font-size: 14px; padding: 4px; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 18px;
}
.chips::after { content: ""; flex: none; width: 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 7px 13px; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .12s, background .15s, color .15s, border-color .15s;
}
.chip:active { transform: scale(.95); }
.chip.is-active { background: var(--ink); color: var(--foam); border-color: var(--ink); }
.chip.is-set { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-deep); }
.chip .x { font-size: 11px; opacity: .7; }
.chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- View / listas ---------- */
.view { padding: 4px 14px 28px; min-height: 50vh; }
.count-line { font-size: 12.5px; color: var(--ink-faint); margin: 2px 6px 10px; font-weight: 500; }

.beer-list { display: flex; flex-direction: column; gap: 9px; }

.beer-card {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 13px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 12px 13px; text-align: left; width: 100%;
  box-shadow: var(--shadow); transition: transform .12s ease, border-color .15s;
  animation: rise .4s both;
}
.beer-card:active { transform: scale(.985); }
.beer-card.tried { border-color: var(--amber-soft); background: linear-gradient(var(--surface), var(--surface-2)); }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* arte gerada (copo) por estilo */
.glass { width: 40px; height: 50px; flex: none; display: block; }
.glass svg { display: block; width: 100%; height: 100%; }

/* bandeira real (imagem) */
.flag {
  display: inline-block; width: 1.25em; height: auto; border-radius: 2px;
  margin-right: 5px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(33,24,17,.1);
}
.meta-pill .flag { width: 1.15em; }

.beer-main { min-width: 0; }
.beer-name { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beer-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beer-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; display: flex; gap: 7px; align-items: center; }
.beer-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.beer-meta .triedat { color: var(--green); font-weight: 600; }
.tag-pill { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  color: var(--amber-deep); background: var(--amber-soft); padding: 1px 6px; border-radius: 5px; }

.check {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; transition: transform .15s, background .2s, border-color .2s;
}
.check svg { width: 19px; height: 19px; stroke: var(--line-strong); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.check.on { background: var(--green); border-color: var(--green); }
.check.on svg { stroke: #fff; }
.check.stamp { animation: stamp .42s cubic-bezier(.2,1.4,.4,1); }
@keyframes stamp { 0% { transform: scale(.4) rotate(-12deg); } 60% { transform: scale(1.12) rotate(4deg); } 100% { transform: none; } }

.wish-flag { color: var(--rust); }

/* empty / sentinel */
.empty { text-align: center; padding: 48px 24px; color: var(--ink-faint); }
.empty .big { font-family: var(--font-display); font-size: 19px; color: var(--ink-soft); margin-bottom: 6px; }
.empty button { color: var(--amber-deep); font-weight: 700; text-decoration: underline; }
#sentinel { height: 1px; }
.loading-more { text-align: center; padding: 14px; color: var(--ink-faint); font-size: 12px; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  max-width: var(--maxw); margin: 0 auto;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,253,247,.92); backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--line-strong);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-faint); }
.tab svg { stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tab span { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tab.is-active { color: var(--amber-deep); }

/* ---------- FAB ---------- */
.fab {
  position: fixed; z-index: 41; right: max(18px, calc(50% - var(--maxw)/2 + 18px));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--ink); color: var(--foam);
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(33,24,17,.32);
  transition: transform .15s;
}
.fab svg { stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.fab:active { transform: scale(.92); }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(33,20,8,.42); backdrop-filter: blur(2px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 51; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--surface); border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg); padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 90dvh; overflow-y: auto; animation: slideup .28s cubic-bezier(.2,.85,.25,1);
}
@keyframes slideup { from { transform: translateY(100%); } }
.sheet-grip { width: 38px; height: 4px; border-radius: 3px; background: var(--line-strong); margin: 6px auto 14px; }

.sheet-head { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: start; margin-bottom: 18px; }
.sheet-head .glass { width: 66px; height: 86px; }
.barrow .lab .glass { width: 24px; height: 30px; }
.sheet-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; }
.sheet-sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.meta-pill { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; }

.big-toggle {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 15px; border-radius: 14px; border: 2px solid var(--green);
  color: var(--green); background: var(--surface); transition: all .18s; margin-bottom: 14px;
}
.big-toggle svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.big-toggle.on { background: var(--green); color: #fff; }
.big-toggle.on.stamp { animation: stamp .42s cubic-bezier(.2,1.4,.4,1); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 11px;
  padding: 11px 13px; font-size: 15px; background: var(--surface-2); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); background: var(--surface); }
.field textarea { resize: vertical; min-height: 60px; }
.field.disabled { opacity: .4; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rating { display: flex; gap: 6px; }
.rating button { font-size: 27px; line-height: 1; filter: grayscale(1) opacity(.35); transition: transform .12s, filter .15s; }
.rating button.on { filter: none; }
.rating button:active { transform: scale(1.2); }

.sheet-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn { flex: 1; padding: 13px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--foam); }
.btn-ghost { background: var(--surface-2); color: var(--ink-soft); border: 1.5px solid var(--line-strong); }
.btn-wish { flex: none; width: 50px; display: grid; place-items: center; background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 12px; font-size: 19px; }
.btn-wish.on { background: #fbe4dd; border-color: var(--rust); }

/* ---------- Stats / passaporte ---------- */
.stats { padding: 6px 4px 20px; }
/* hero = copo de cerveja vivo: líquido = progresso, espuma, bolhas, reage à inclinação */
.stat-hero {
  position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 16px;
  min-height: 162px; padding: 20px; color: var(--foam);
  background: linear-gradient(172deg, #1d1308, #3a2614);
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end;
}
.stat-hero::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,.07) 0 15%, transparent 20%); }
.beer-liquid {
  position: absolute; left: -12%; right: -12%; bottom: -6px; height: 40%;
  background: linear-gradient(180deg, #eaab30, #c47e1c 55%, #8f560f);
  transform-origin: center bottom; transform: rotate(var(--tilt, 0deg));
  transition: height .9s cubic-bezier(.2,.8,.2,1), transform .18s ease-out;
}
.beer-foam {
  position: absolute; top: -8px; left: 0; right: 0; height: 15px;
  background: radial-gradient(circle at 12px 10px, #fff7e6 0 8px, transparent 9px) 0 0/24px 15px repeat-x, #fff2d6;
  border-radius: 0 0 3px 3px; box-shadow: 0 1px 6px rgba(255,235,190,.4);
}
.beer-liquid .bub { position: absolute; bottom: 4%; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,247,230,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  animation: rise-bub linear infinite; }
@keyframes rise-bub { 0% { transform: translateY(0) scale(.5); opacity: 0; } 12% { opacity: .8; } 90% { opacity: .5; } 100% { transform: translateY(-150px) scale(1.05); opacity: 0; } }
.hero-content { position: relative; z-index: 2; }
.stat-hero .pct { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.stat-hero .pct small { font-size: 23px; opacity: .85; }
.stat-hero .cap { font-size: 13px; opacity: .94; margin-top: 6px; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.hero-hint { position: absolute; top: 12px; right: 14px; z-index: 4; font-size: 10.5px; font-weight: 600; opacity: .5; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 18px; }
.stat-cell { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat-cell .n { font-family: var(--font-display); font-weight: 800; font-size: 27px; color: var(--ink); }
.stat-cell .l { font-size: 12px; color: var(--ink-faint); margin-top: 2px; font-weight: 500; }

.stat-section-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 18px 6px 10px; color: var(--ink); }
.barlist { display: flex; flex-direction: column; gap: 8px; }
.barrow { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.barrow .lab { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.barrow .val { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.barrow .track { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.barrow .fill { height: 100%; border-radius: 4px; background: var(--amber); }

.pick-row {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 12px 12px; border-radius: 11px; font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.pick-row:active { background: var(--surface-2); }
.pick-row span { margin-left: auto; }
.pick-row .glass { width: 26px; height: 30px; margin-left: 0; }

.discover-btn {
  width: 100%; margin: 16px 0 8px; padding: 15px; border-radius: 14px;
  background: var(--surface); border: 2px dashed var(--line-strong); color: var(--amber-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 9px;
}
.discover-btn:active { transform: scale(.98); }

.data-actions { display: flex; gap: 10px; margin-top: 20px; }
.data-actions .btn { font-size: 13.5px; padding: 11px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 18px);
  background: var(--ink); color: var(--foam); font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toastin .25s; max-width: 80%;
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } }

/* desktop: moldura discreta */
@media (min-width: 600px) {
  body { padding: 0; }
  #app { border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); background: rgba(255,253,247,.35); min-height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- conta / topbar ---------- */
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.acct-btn {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: var(--surface); overflow: hidden; flex: none;
}
.acct-btn svg { stroke: var(--ink-soft); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acct-btn.logged { border-color: var(--amber); }
.acct-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acct-initial { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--amber-deep); }
.tab { min-width: 0; }
.tab span { font-size: 9.5px; letter-spacing: -.01em; }
.tab svg { width: 21px; height: 21px; }

/* ---------- login / cadastro ---------- */
.auth-intro { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 14px; }
.auth-tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.auth-tab { flex: 1; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-faint); }
.auth-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth-err { color: var(--rust); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.linkish { color: var(--amber-deep); font-weight: 700; text-decoration: underline; }

/* ---------- perfil ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.prof-av { border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--amber-soft); }
.prof-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.av-edit { position: relative; cursor: pointer; display: block; flex: none; }
.av-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--foam); display: grid; place-items: center; font-size: 12px; border: 2px solid var(--surface); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.toggle-row input { width: 44px; height: 26px; -webkit-appearance: none; appearance: none; background: var(--line-strong); border-radius: 999px; position: relative; transition: background .2s; flex: none; }
.toggle-row input:checked { background: var(--green); }
.toggle-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle-row input:checked::after { transform: translateX(18px); }

/* ---------- feed comunidade ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 24px; }
.feed-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px; box-shadow: var(--shadow); text-align: left; width: 100%;
  animation: rise .35s both;
}
.feed-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.feed-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.feed-body { min-width: 0; }
.feed-line { font-size: 13.5px; color: var(--ink-soft); }
.feed-line b { color: var(--ink); font-weight: 700; }
.feed-time { color: var(--ink-faint); }
.feed-beer { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.feed-beer .glass { width: 30px; height: 38px; }
.feed-bt { min-width: 0; }
.feed-name { font-weight: 700; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-sub { font-size: 12px; color: var(--ink-faint); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-stars { display: inline-block; margin-top: 7px; font-size: 13px; letter-spacing: 1px; }
.more-btn { width: 100%; padding: 13px; margin-top: 4px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line-strong); color: var(--ink-soft); font-weight: 700; font-size: 14px; }

/* ---------- onboarding (pós-cadastro) ---------- */
.ob { text-align: center; padding: 6px 4px 4px; }
.ob-art { min-height: 128px; display: grid; place-items: center; margin: 4px 0 12px; }
.ob-emoji { font-size: 70px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(60,40,15,.18)); }
.ob-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.ob-text { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); max-width: 360px; margin: 0 auto 14px; }
.ob-text b { color: var(--ink); font-weight: 700; }
.ob-dots { display: flex; gap: 7px; justify-content: center; margin: 2px 0 16px; }
.ob-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: all .2s; }
.ob-dots span.on { background: var(--amber); width: 20px; border-radius: 4px; }
.ob-nav { display: flex; gap: 10px; }
.ob-nav .btn { flex: 1; }
.ob-ios { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.ob-ios-step { display: flex; align-items: center; gap: 10px; }
.ob-ios-share { width: 42px; height: 42px; border-radius: 11px; background: #0a84ff; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(10,132,255,.35); flex: none; }
.ob-ios-share svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ob-ios-pills { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ob-ios-pill { background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ob-ios-icon { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ob-ios-icon small { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.appicon { width: 58px; height: 58px; border-radius: 14px; background: radial-gradient(125% 125% at 30% 18%, #e7b54a, #b9701a 72%); display: grid; place-items: center; box-shadow: 0 5px 12px rgba(60,28,4,.28); }
.appicon svg { width: 30px; height: 37px; }

/* ===================== REDE SOCIAL ===================== */
/* sino + badge */
.notif-btn { position: relative; overflow: visible; }
.notif-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--rust); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; display: grid; place-items: center; border: 2px solid var(--bg); z-index: 2; }
.notif-badge[hidden] { display: none; }

.comm { padding: 4px 0 24px; }

/* compose bar */
.compose-bar { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  margin: 0 0 14px; padding: 11px 14px; border-radius: 14px; background: var(--surface);
  border: 1.5px solid var(--line-strong); box-shadow: var(--shadow); }
.compose-text { flex: 1; color: var(--ink-faint); font-size: 14px; font-weight: 500; }
.compose-bar svg { width: 22px; height: 22px; stroke: var(--amber-deep); fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.compose-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.compose-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 14px; }

/* ranking */
.rank-sec:not(:empty) { margin-bottom: 18px; }
.rank-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin: 2px 4px 9px; }
.rank-list { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.rank-row { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row.me { background: var(--amber-soft); }
.rank-pos { width: 26px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink-soft); }
.rank-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.rank-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.rank-name { flex: 1; font-weight: 700; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-count { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--amber-deep); }
.rank-count::after { content: " 🍺"; font-size: 12px; }

/* posts */
.post { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
.post-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.post-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.post-who { display: flex; flex-direction: column; line-height: 1.2; }
.post-who b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.post-time { font-size: 12px; color: var(--ink-faint); }
.post-img { background: #efe5d2; }
.post-img img { width: 100%; display: block; max-height: 560px; object-fit: cover; }
.post-actions { display: flex; gap: 16px; padding: 11px 14px 4px; }
.post-actions button { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.post-actions svg { width: 25px; height: 25px; fill: none; stroke: var(--ink-soft); stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; transition: transform .15s; }
.post-like.on svg { fill: var(--rust); stroke: var(--rust); }
.post-like.on { color: var(--rust); }
.post-like.pop svg { animation: pop .42s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop { 0% { transform: scale(.6); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }
.post-cap { padding: 4px 14px 2px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.post-cap b { font-weight: 700; }
.mention { color: var(--amber-deep); font-weight: 700; }
.post-viewc { padding: 4px 14px 13px; font-size: 13px; color: var(--ink-faint); font-weight: 600; }

/* compose sheet */
.compose-drop { display: block; cursor: pointer; }
.compose-prev { aspect-ratio: 4/3; border-radius: 14px; border: 2px dashed var(--line-strong); background: var(--surface-2);
  display: grid; place-items: center; gap: 6px; overflow: hidden; color: var(--ink-faint); }
.compose-prev svg { width: 40px; height: 40px; stroke: var(--ink-faint); fill: none; stroke-width: 1.7; stroke-linejoin: round; }
.compose-prev span { font-size: 13px; font-weight: 600; }
.compose-prev img { width: 100%; height: 100%; object-fit: cover; }

/* comentários */
.cm-list { max-height: 50dvh; overflow-y: auto; margin: 0 -4px 12px; }
.cm-row { display: flex; gap: 10px; padding: 9px 4px; }
.cm-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.cm-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.cm-who b { font-size: 13.5px; font-weight: 700; }
.cm-time { font-size: 11.5px; color: var(--ink-faint); margin-left: 5px; }
.cm-body { font-size: 14px; color: var(--ink); margin-top: 1px; line-height: 1.4; }
.cm-form { display: flex; gap: 9px; align-items: center; }
.cm-form input { flex: 1; border: 1.5px solid var(--line-strong); border-radius: 11px; padding: 11px 13px; font-size: 15px; background: var(--surface-2); outline: none; }
.cm-form input:focus { border-color: var(--amber); background: var(--surface); }
.cm-form .btn { flex: none; padding: 11px 16px; }

/* menção popover */
.mention-pop { position: fixed; z-index: 70; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 220px; overflow-y: auto; }
.mention-opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mention-opt:active { background: var(--surface-2); }
.mention-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mention-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-weight: 800; font-size: 12px; }

/* notificações */
.nt-list { max-height: 64dvh; overflow-y: auto; margin: 0 -4px; }
.nt-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.nt-row.unread { background: var(--amber-soft); border-radius: 10px; }
.nt-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.nt-av.ph { display: grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.nt-txt { font-size: 14px; color: var(--ink); display: flex; flex-direction: column; }
.nt-time { font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

/* segmented Feed/Ranking */
.comm-seg { display: flex; gap: 6px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 13px; padding: 4px; margin-bottom: 14px; }
.seg { flex: 1; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-faint); transition: background .15s, color .15s; }
.seg.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* apagar post/comentário */
.post-head { position: relative; }
.post-menu { margin-left: auto; padding: 6px; color: var(--ink-faint); border-radius: 8px; }
.post-menu svg { width: 20px; height: 20px; fill: currentColor; }
.post-menu:active { background: var(--surface-2); }
.btn-danger { background: var(--rust); color: #fff; }
.cm-del { align-self: center; margin-left: auto; color: var(--ink-faint); font-size: 13px; padding: 4px 7px; }

/* ===== RANKING (página própria) ===== */
.rankpage { padding: 2px 0 18px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 12px 4px 6px; }
.pod { flex: 1; max-width: 33%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pod.empty { visibility: hidden; }
.pod-medal { font-size: 22px; line-height: 1; }
.pod-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--amber-soft); }
.pod-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.pod-name { font-size: 12.5px; font-weight: 700; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-name.me { color: var(--amber-deep); }
.pod-glass { position: relative; width: 100%; max-width: 92px; border-radius: 8px 8px 12px 12px; border: 2px solid rgba(33,24,17,.14); border-top: none; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,247,230,.2)); }
.pod1 .pod-glass { height: 132px; }
.pod2 .pod-glass { height: 104px; }
.pod3 .pod-glass { height: 84px; }
.pod-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill, 30%); background: linear-gradient(180deg, #eaab30, #c47e1c 60%, #9a5e10); transition: height 1.1s cubic-bezier(.2,.8,.2,1); }
.pod-foam { position: absolute; top: -7px; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 9px 8px, #fff7e6 0 7px, transparent 8px) 0 0/20px 12px repeat-x, #fff2d6; }
.pod-liquid .bub { position: absolute; bottom: 6%; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,247,230,.6); animation: rise-bub-sm linear infinite; }
@keyframes rise-bub-sm { 0% { transform: translateY(0) scale(.5); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-95px) scale(1); opacity: 0; } }
.pod-count { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #3a2412; text-shadow: 0 1px 2px rgba(255,247,230,.55); z-index: 2; }
.pod1 .pod-count { font-size: 26px; }

.you-card { background: linear-gradient(150deg, #2a1c10, #432c14); color: var(--foam); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.45; margin: 10px 0 16px; box-shadow: var(--shadow); }
.you-card b { color: var(--amber-soft); font-weight: 800; }
.you-card.lead { background: linear-gradient(150deg, #6b4a12, #c47e1c); }
.you-card.lead b { color: #fff; }

.rk-list { display: flex; flex-direction: column; }
.rk-row { display: flex; align-items: center; gap: 11px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.rk-row.me { background: var(--amber-soft); border-radius: 10px; }
.rk-pos { width: 22px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-faint); }
.rk-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.rk-av.ph { display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-deep); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.rk-mid { flex: 1; min-width: 0; }
.rk-name { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-bar { height: 6px; border-radius: 4px; background: var(--line); margin-top: 5px; overflow: hidden; }
.rk-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--amber-soft), var(--amber)); }
.rk-count { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--amber-deep); }
.rk-count::after { content: " 🍺"; font-size: 11px; }
.rank-foot { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 16px; font-weight: 500; }
