/* ============================================================
   MESAUP — PORTAL DO CLIENTE  |  cliente.css  v2
   Mobile-first · max-width 480 px centrado no desktop
   ============================================================ */
:root {
  --c-bg:        #0a0b0f;
  --c-surface:   #13151c;
  --c-surface2:  #1c1f2c;
  --c-border:    rgba(255,255,255,.07);
  --c-text:      #f0f2f6;
  --c-muted:     #6b7280;
  --c-muted2:    #3f4455;
  --c-accent:    #f97316;
  --c-accent2:   #fb923c;
  --c-green:     #22c55e;
  --c-red:       #ef4444;
  --c-yellow:    #fbbf24;
  --c-blue:      #3b82f6;
  --c-purple:    #a855f7;
  --c-indigo:    #6366f1;
  --c-radius:    18px;
  --c-radius-sm: 12px;
  --c-radius-xs: 8px;
  --c-shadow:    0 1px 8px rgba(0,0,0,.28);
  --c-shadow-md: 0 4px 20px rgba(0,0,0,.38);
  --c-shadow-lg: 0 12px 48px rgba(0,0,0,.52);
  --c-nav-h:     70px;
  --c-top-h:     60px;
  --c-nav-stack: calc(var(--c-nav-h) + env(safe-area-inset-bottom, 0px));

  /* ── Emil Kowalski easing tokens ── */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

html[data-theme="light"] {
  --c-bg:      #f5f6fa;
  --c-surface: #ffffff;
  --c-surface2:#eef0f5;
  --c-border:  rgba(15,23,42,.07);
  --c-text:    #0f172a;
  --c-muted:   #6b7280;
  --c-muted2:  #b0b7c3;
  --c-shadow:    0 1px 8px rgba(15,23,42,.06);
  --c-shadow-md: 0 4px 20px rgba(15,23,42,.08);
  --c-shadow-lg: 0 12px 48px rgba(15,23,42,.1);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(15,23,42,.14); }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  background: var(--c-bg);
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(var(--c-nav-stack) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sem transform no body — senão position:fixed do menu fica preso ao fim da página (Safari/iOS) */
  animation: pageEnter .4s var(--ease-out) both;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* ── Shared entry keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-9px) scale(1.03); }
}
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(249,115,22,.38), 0 0 0 0   rgba(249,115,22,.0); }
  50%       { box-shadow: 0 4px 28px rgba(249,115,22,.55), 0 0 0 6px rgba(249,115,22,.15); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }

/* ═══════════════════════════════════════
   TOP BAR
═══════════════════════════════════════ */
.c-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,11,15,.82);
  border-bottom: 1px solid var(--c-border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  min-height: var(--c-top-h);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  transition: box-shadow .2s;
}
.c-topbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.28); }
html[data-theme="light"] .c-topbar {
  background: rgba(245,246,250,.88);
}
html[data-theme="light"] .c-topbar.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,.08); }

.c-topbar-logo { font-size: 1.15rem; font-weight: 800; color: var(--c-accent); white-space: nowrap; letter-spacing: -.02em; }
.c-topbar-logo span { color: var(--c-text); }
.c-location-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: 99px; padding: 7px 13px;
  font-size: .78rem; color: var(--c-muted);
  cursor: pointer; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .18s, background .18s;
}
@media (hover: hover) and (pointer: fine) {
  .c-location-btn:hover { border-color: rgba(249,115,22,.4); }
}
.c-location-btn .loc-city { color: var(--c-text); font-weight: 700; font-size: .8rem; }
.c-topbar-theme {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  flex-shrink: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .18s, transform .15s;
}
.c-topbar-theme:active { transform: scale(.9); }
.c-topbar-theme .theme-ico {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  pointer-events: none;
}
html[data-theme="dark"] .c-topbar-theme .theme-ico-light { opacity: 0; transform: scale(.7) rotate(-30deg); }
html[data-theme="dark"] .c-topbar-theme .theme-ico-dark  { opacity: 1; transform: scale(1); }
html[data-theme="light"] .c-topbar-theme .theme-ico-dark  { opacity: 0; transform: scale(.7) rotate(30deg); }
html[data-theme="light"] .c-topbar-theme .theme-ico-light { opacity: 1; transform: scale(1); }
.c-topbar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), #f43f5e);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  flex-shrink: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 10px rgba(249,115,22,.4);
  transition: transform .15s, box-shadow .15s;
}
.c-topbar-avatar:active { transform: scale(.9); }
.c-topbar-avatar--guest {
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  font-size: 1rem; font-weight: 400; box-shadow: none;
}

/* ═══════════════════════════════════════
   SEARCH
═══════════════════════════════════════ */
.c-search-wrap {
  padding: 12px 16px 6px;
  display: flex; align-items: center; gap: 10px;
}
.c-search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: 99px; padding: 13px 18px;
  transition: border-color .22s var(--ease-out), box-shadow .22s;
  box-shadow: var(--c-shadow);
}
.c-search:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(249,115,22,.1), var(--c-shadow);
}
.c-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--c-text); font-size: .92rem; font-family: inherit;
}
.c-search input::placeholder { color: var(--c-muted); }
.c-search .search-icon { color: var(--c-muted); font-size: 1rem; flex-shrink: 0; }
/* Sparkle / AI button beside search */
.c-search-sparkle {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  border: none; display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 18px rgba(168,85,247,.45);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.c-search-sparkle:active { transform: scale(.88); box-shadow: 0 2px 10px rgba(168,85,247,.3); }
.c-search-sparkle svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.c-section { padding: 20px 16px 0; }
.c-mesa-continue-wrap { display: flex; align-items: stretch; gap: 8px; margin: 12px 16px 0; }
.c-mesa-continue-wrap .c-mesa-continue { margin: 0 !important; }
.c-mesa-continue-dismiss {
  flex-shrink: 0; width: 44px; border-radius: 14px;
  border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-muted); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.c-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.c-section-title { font-size: 1.12rem; font-weight: 800; letter-spacing: -.025em; }
.c-section-link { font-size: .82rem; color: var(--c-accent); font-weight: 600; cursor: pointer; }

/* ═══════════════════════════════════════
   CATEGORY CHIPS
═══════════════════════════════════════ */
.c-cats {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 14px 16px 8px; scrollbar-width: none;
}
.c-cats::-webkit-scrollbar { display: none; }
.c-cat {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; flex-shrink: 0; cursor: pointer;
}
.c-cat-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-surface); border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--c-shadow);
  transition: border-color .2s, background .2s,
              transform .25s var(--ease-spring),
              box-shadow .2s;
}
.c-cat:active .c-cat-icon { transform: scale(.87); }
.c-cat.active .c-cat-icon {
  border-color: var(--c-accent);
  background: rgba(249,115,22,.1);
  box-shadow: 0 4px 18px rgba(249,115,22,.28), var(--c-shadow);
  transform: scale(1.08);
}
@media (hover: hover) and (pointer: fine) {
  .c-cat:hover:not(.active) .c-cat-icon {
    border-color: rgba(249,115,22,.45);
    transform: scale(1.04);
  }
}
.c-cat-label { font-size: .71rem; color: var(--c-muted); font-weight: 600; letter-spacing: .01em; }
.c-cat.active .c-cat-label { color: var(--c-accent); font-weight: 700; }

/* ═══════════════════════════════════════
   BANNER
═══════════════════════════════════════ */
.c-banner {
  margin: 10px 16px 0; border-radius: 20px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 30%, #dc2626 60%, #c2410c 80%, #f97316 100%);
  background-size: 250% 250%;
  animation: gradientShift 8s ease infinite;
  padding: 22px 22px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden; position: relative;
  box-shadow: 0 10px 32px rgba(249,115,22,.32), 0 0 0 1px rgba(255,255,255,.1) inset;
}
.c-banner::before {
  content: ''; position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.c-banner::after {
  content: '🍽️'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 4rem; opacity: .1;
}
.c-banner-title {
  font-size: 1.08rem; font-weight: 800; line-height: 1.3;
  max-width: 60%; letter-spacing: -.025em;
}
.c-banner-sub { font-size: .8rem; opacity: .85; margin-top: 5px; }
.c-banner-btn {
  background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 99px; padding: 9px 17px; font-size: .8rem; font-weight: 700;
  color: #fff; cursor: pointer; white-space: nowrap; position: relative; z-index: 1;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .15s, transform .12s;
}
.c-banner-btn:hover { background: rgba(255,255,255,.32); }
.c-banner-btn:active { transform: scale(.95); }

/* ═══════════════════════════════════════
   RESTAURANT CARDS
═══════════════════════════════════════ */
.c-restaurant-list { display: flex; flex-direction: column; gap: 14px; }
.c-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 20px; overflow: hidden; cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1),
              border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  box-shadow: var(--c-shadow);
  animation: cardIn .4s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.c-card:nth-child(1) { animation-delay: .03s; }
.c-card:nth-child(2) { animation-delay: .07s; }
.c-card:nth-child(3) { animation-delay: .11s; }
.c-card:nth-child(4) { animation-delay: .15s; }
.c-card:nth-child(5) { animation-delay: .19s; }
.c-card:nth-child(6) { animation-delay: .23s; }
@media (hover: hover) and (pointer: fine) {
  .c-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(249,115,22,.5);
    box-shadow: 0 0 0 2.5px rgba(249,115,22,.22), 0 16px 44px rgba(0,0,0,.34);
  }
}
.c-card:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .c-card:hover {
    box-shadow: 0 14px 40px rgba(15,23,42,.1), 0 0 0 1px rgba(249,115,22,.18);
  }
}
.c-card-cover {
  width: 100%; height: 175px; flex-shrink: 0;
  background: var(--c-surface2); overflow: hidden;
  position: relative; z-index: 0;
}
.c-card-cover::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 70px;
  background: linear-gradient(transparent, rgba(8,9,16,.62));
  pointer-events: none; z-index: 1;
}
.c-card-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; max-width: 100%;
  transition: transform .5s cubic-bezier(.22,.68,0,1);
}
.c-card:hover .c-card-cover-img { transform: scale(1.06); }
.c-card-cover-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--c-muted); font-size: 3rem;
}
.c-card-body {
  position: relative; z-index: 1; flex: 1 1 auto; min-width: 0;
  background: var(--c-surface); padding: 14px 16px;
}
.c-card-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.c-card-name {
  font-size: .98rem; font-weight: 700; line-height: 1.3;
  flex: 1; min-width: 0; letter-spacing: -.015em;
}
.c-card-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(8,9,16,.55); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .15s, transform .12s;
}
.c-card-fav:active { transform: scale(.88); }
.c-card-fav.favorited { color: #ef4444; }
.c-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; width: 100%; }
.c-card-meta--primary { margin-bottom: 0; }
.c-card-meta--status { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--c-border); }
.c-card-meta--status .c-open-badge { flex: 0 0 auto; }
.c-card-meta--secondary { margin-top: 6px; }
.c-card-pill { display: inline-flex; align-items: center; gap: 3px; font-size: .73rem; color: var(--c-muted); font-weight: 500; }
.c-stars { color: var(--c-yellow); font-size: .78rem; }
.c-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.c-tag {
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2);
  border-radius: 99px; padding: 3px 9px; font-size: .68rem; color: var(--c-accent); font-weight: 600;
}
.c-tag.green { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.2); color: var(--c-green); }
.c-tag.gray { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--c-muted); }

/* Horizontal scroll */
.c-card-hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.c-card-hscroll::-webkit-scrollbar { display: none; }
.c-card-h {
  flex-shrink: 0; width: 200px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px; overflow: hidden; cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  display: flex; flex-direction: column; box-shadow: var(--c-shadow);
}
@media (hover: hover) and (pointer: fine) {
  .c-card-h:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(249,115,22,.42);
    box-shadow: 0 0 0 2px rgba(249,115,22,.16), var(--c-shadow-md);
  }
}
.c-card-h:active { transform: scale(.97); }
.c-card-h .c-card-cover { height: 110px; }
.c-card-h--reorder .c-card-cover { height: 85px; }
.c-card-h .c-card-body { padding: 10px 12px; }
.c-card-h .c-card-name { font-size: .86rem; }

/* ═══════════════════════════════════════
   PAGE SHELL
═══════════════════════════════════════ */
.c-page-head { padding: 24px 18px 12px; }
.c-page-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.c-page-sub { font-size: .88rem; color: var(--c-muted); line-height: 1.5; }
.c-page-body { padding: 8px 16px var(--c-nav-stack); }

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.c-empty-state {
  text-align: center; padding: 60px 28px 40px;
  color: var(--c-muted); font-size: .9rem; line-height: 1.6;
}
.c-empty-icon {
  font-size: 2.6rem; margin: 0 auto 20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  box-shadow: var(--c-shadow-md);
  display: flex; align-items: center; justify-content: center;
  animation: floatAnim 3.2s var(--ease-in-out) infinite;
}
.c-empty-cta { display: inline-block; margin-top: 22px; }
.c-empty-hint { margin-top: 14px; font-size: .83rem; }
.c-empty-hint a { color: var(--c-accent); font-weight: 600; }

/* ═══════════════════════════════════════
   EMPTY (cards)
═══════════════════════════════════════ */
.c-empty { text-align: center; padding: 60px 24px; }
.c-empty-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.c-empty-sub { font-size: .86rem; color: var(--c-muted); line-height: 1.6; max-width: 240px; margin: 0 auto; }

/* ═══════════════════════════════════════
   FAVORITES
═══════════════════════════════════════ */
.c-fav-list { display: flex; flex-direction: column; gap: 12px; }
.c-fav-card {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 14px 15px 16px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  box-shadow: var(--c-shadow);
  animation: fadeUp .38s var(--ease-out) both;
  transition: transform .2s var(--ease-spring),
              border-color .18s, box-shadow .18s;
}
.c-fav-card:nth-child(1) { animation-delay: .04s; }
.c-fav-card:nth-child(2) { animation-delay: .08s; }
.c-fav-card:nth-child(3) { animation-delay: .12s; }
.c-fav-card:nth-child(4) { animation-delay: .16s; }
.c-fav-card:nth-child(5) { animation-delay: .20s; }
.c-fav-card:nth-child(6) { animation-delay: .24s; }
.c-fav-card:nth-child(7) { animation-delay: .28s; }
.c-fav-card:nth-child(8) { animation-delay: .32s; }
.c-fav-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--c-accent) 0%, #ef4444 100%);
  border-radius: 18px 0 0 18px;
}
.c-fav-card:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .c-fav-card:hover {
    transform: translateY(-3px) scale(1.006);
    border-color: rgba(249,115,22,.48);
    box-shadow: 0 0 0 2.5px rgba(249,115,22,.2), 0 14px 36px rgba(0,0,0,.28);
  }
  html[data-theme="light"] .c-fav-card:hover { box-shadow: 0 0 0 2.5px rgba(249,115,22,.15), 0 12px 32px rgba(15,23,42,.08); }
}
html[data-theme="light"] .c-fav-card { box-shadow: 0 2px 12px rgba(15,23,42,.05); }
.c-fav-card-icon {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(145deg, var(--c-surface2), rgba(249,115,22,.06));
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; flex-shrink: 0; overflow: hidden;
}
.c-fav-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.c-fav-card-body { flex: 1; min-width: 0; }
.c-fav-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.c-fav-card-name {
  font-size: .97rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em;
  margin: 0; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.c-fav-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; font-size: .76rem; color: var(--c-muted); }
.c-fav-card-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--c-text); }
.c-fav-card-rating .c-stars { font-size: .72rem; }
.c-fav-card-rating-num { font-size: .78rem; font-weight: 700; }
.c-fav-card-city { display: inline-flex; align-items: center; gap: 3px; }
.c-fav-card-city::before { content: '·'; opacity: .4; margin-right: 1px; }
.c-fav-card-tags { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.c-fav-card-tags .c-open-badge { font-size: .65rem; padding: 2px 8px; }
.c-fav-card-chevron {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-surface2); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); font-size: 1rem; font-weight: 700; flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.c-fav-card:hover .c-fav-card-chevron {
  background: rgba(249,115,22,.12);
  border-color: rgba(249,115,22,.25);
  transform: translateX(2px);
}
.c-fav-remove {
  margin-left: auto; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer;
  flex-shrink: 0; z-index: 2; transition: background .15s, transform .12s;
}
.c-fav-remove:active { transform: scale(.9); }

/* ═══════════════════════════════════════
   STATUS BADGE
═══════════════════════════════════════ */
button.c-open-badge {
  appearance: none; -webkit-appearance: none; font: inherit; border: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.c-open-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .69rem; font-weight: 700; padding: 3px 9px; border-radius: 99px;
}
.c-open-badge.open { background: rgba(34,197,94,.14); color: var(--c-green); }
.c-open-badge.closed { background: rgba(239,68,68,.14); color: var(--c-red); }
.c-open-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.c-open-badge--owner { cursor: pointer; outline: none; }
.c-open-badge--owner:focus-visible { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-accent); }
.c-rest-closed-orders .c-qty-ctrl .c-qty-btn:not(.minus) { opacity: .38; pointer-events: none; }
.c-nav-label--truncate { max-width: 4.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════ */
/* Chrome fixo — menu + música (sempre visível ao rolar) */
.c-shell-chrome {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  z-index: 9000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
  visibility: visible !important;
  opacity: 1 !important;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.c-shell-chrome .c-bottom-nav,
.c-ambient-player,
.c-shell-chrome .c-ambient-player,
.c-shell-chrome .mesaup-music-modal.is-open {
  pointer-events: auto;
}

/* ── Mini player música (barra laranja, canto sup. direito, minimizável) ── */
.c-ambient-player,
.c-shell-chrome .c-ambient-player {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  left: auto;
  bottom: auto;
  z-index: 9400;
  width: auto;
  max-width: min(320px, calc(100vw - 20px));
  pointer-events: auto;
}
@media (min-width: 481px) {
  .c-ambient-player,
  .c-shell-chrome .c-ambient-player {
    right: max(10px, calc((100vw - 480px) / 2 + 10px));
  }
}
.c-ambient-player .c-ambient-pill {
  display: none;
}
.c-ambient-player.is-minimized .c-ambient-bar {
  display: none;
}
.c-ambient-player.is-minimized {
  max-width: none;
}
.c-ambient-player.is-minimized .c-ambient-pill {
  display: flex;
}
.c-ambient-player.is-expanded .c-ambient-bar {
  display: block;
}
.c-ambient-pill {
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 4px;
  height: 44px;
  border: none;
  border-radius: 99px;
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 55%, #f97316 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.45);
  font-family: inherit;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.c-ambient-pill:active {
  transform: scale(0.96);
}
.c-ambient-pill-art {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.c-ambient-pill-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.c-ambient-pill-bars span {
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  animation: cAmbientBar 0.9s ease-in-out infinite;
}
.c-ambient-pill-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.c-ambient-pill-bars span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.c-ambient-pill-bars span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.c-ambient-player.is-paused .c-ambient-pill-bars span {
  animation: none;
  height: 4px;
  opacity: 0.65;
}
@keyframes cAmbientBar {
  0%, 100% { transform: scaleY(0.45); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.c-ambient-bar {
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #9a3412 0%, #c2410c 42%, #ea580c 100%);
  box-shadow: 0 6px 28px rgba(154, 52, 18, 0.42), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.c-ambient-progress {
  height: 3px;
  background: rgba(0, 0, 0, 0.22);
  width: 100%;
}
.c-ambient-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 2px 2px 0;
  transition: width 0.35s linear;
}
.c-ambient-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 9px 8px;
  min-height: 52px;
}
.c-ambient-cover {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.c-ambient-meta {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.c-ambient-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}
.c-ambient-artist {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-ambient-icon-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0;
  transition: background 0.15s, transform 0.12s;
}
.c-ambient-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.c-ambient-icon-btn:active {
  transform: scale(0.92);
}
.c-ambient-minimize {
  font-size: 1rem;
  margin-right: -2px;
}
.c-ambient-play {
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
}
.c-ambient-play .c-ambient-ico-pause {
  display: none;
}
.c-ambient-player.is-playing .c-ambient-play .c-ambient-ico-play {
  display: none;
}
.c-ambient-player.is-playing .c-ambient-play .c-ambient-ico-pause {
  display: block;
}
.c-ambient-player.needs-gesture .c-ambient-artist::after {
  content: ' · toque play';
  opacity: 0.85;
}
html[data-theme="light"] .c-ambient-bar {
  box-shadow: 0 6px 24px rgba(194, 65, 12, 0.28);
}
.c-bottom-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  width: 100%;
  max-width: none;
  min-height: var(--c-nav-h);
  box-sizing: border-box;
  background: rgba(13, 17, 23, 0.88);
  border-top: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  display: flex; align-items: stretch; justify-content: space-around;
  box-shadow: 0 -1px 0 rgba(255,255,255,.04), 0 -8px 40px rgba(0,0,0,.35);
}
html[data-theme="light"] .c-bottom-nav {
  background: rgba(245,246,250,.82);
  border-top: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 -4px 24px rgba(15,23,42,.07);
}
.c-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  padding: 10px 4px 8px; color: var(--c-muted); cursor: pointer;
  text-decoration: none; transition: color .2s; position: relative;
}
.c-nav-item::after {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 2.5px;
  background: linear-gradient(90deg, var(--c-accent), #fb923c);
  border-radius: 0 0 4px 4px;
  transform: scaleX(0); transition: transform .3s var(--ease-spring);
}
.c-nav-item.active { color: var(--c-accent); }
.c-nav-item.active::after { transform: scaleX(1); }
.c-nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 30px; border-radius: 12px;
  transition: transform .25s var(--ease-spring), background .22s;
}
.c-nav-icon svg { width: 22px; height: 22px; stroke-width: 1.6; transition: stroke-width .2s; }
.c-nav-item.active .c-nav-icon {
  transform: translateY(-2px) scale(1.08);
  background: rgba(249,115,22,.13);
}
.c-nav-item.active .c-nav-icon svg { stroke-width: 2.4; }
.c-nav-label { font-size: .62rem; font-weight: 600; letter-spacing: .01em; transition: font-weight .2s; }
.c-nav-item.active .c-nav-label { font-weight: 800; }
.c-nav-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  background: var(--c-accent); color: #fff; font-size: .56rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--c-surface);
}
/* 5-item nav: tighten icons and labels */
.c-bottom-nav.five .c-nav-label { font-size: .57rem; }
.c-bottom-nav.five .c-nav-icon { width: 40px; height: 28px; }
.c-nav-svg svg { width: 22px; height: 22px; }
.c-bottom-nav.five .c-nav-svg svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════
   RESTAURANT PAGE
═══════════════════════════════════════ */
.c-rest-hero {
  position: relative; width: 100%; height: 230px;
  background: var(--c-surface2); display: flex;
  align-items: center; justify-content: center; font-size: 5rem; overflow: hidden;
}
.c-rest-hero img { width: 100%; height: 100%; object-fit: cover; }
.c-rest-hero--cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.08) 55%, transparent 100%);
  pointer-events: none;
}
.c-rest-hero--cover .c-rest-back,
.c-rest-hero--cover .c-rest-hero-actions { z-index: 12; }
.c-rest-desc { margin: 10px 0 0; font-size: .85rem; color: var(--c-muted); line-height: 1.6; }
.c-rest-back,
.c-rest-fav-btn {
  position: absolute; top: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.48); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; border: 1px solid rgba(255,255,255,.14);
  z-index: 10; color: #fff; transition: background .15s, transform .12s;
}
.c-rest-back:active, .c-rest-fav-btn:active { transform: scale(.9); }
.c-rest-back { left: 14px; }
.c-rest-fav-btn { right: 14px; }
.c-rest-info { padding: 18px 16px 16px; border-bottom: 1px solid var(--c-border); }
.c-rest-info-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.c-rest-info-top .c-open-badge { flex-shrink: 0; margin-top: 4px; }
.c-rest-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }

/* Meta pills row */
.c-rest-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.c-rest-meta-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600; color: var(--c-muted);
  background: var(--c-surface2); border: 1px solid var(--c-border);
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.c-rest-meta-pill svg { flex-shrink: 0; opacity: .75; }
.c-rest-meta-pill--rating { color: #f59e0b; background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.2); }
.c-rest-meta-pill--rating strong { color: #d97706; }
.c-rest-meta-pill--cat { color: var(--c-accent); background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.2); }
.c-rest-meta-pill--loyalty { color: #a78bfa; background: rgba(167,139,250,.08); border-color: rgba(167,139,250,.2); }

/* Social row */
.c-rest-social-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-border);
}
.c-social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 12px; font-size: .78rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap; cursor: pointer;
}
.c-social-btn:active { transform: scale(.96); opacity: .85; }
.c-social-btn svg { flex-shrink: 0; }
.c-social-btn--instagram {
  background: linear-gradient(135deg, rgba(225,48,108,.12) 0%, rgba(253,29,29,.08) 50%, rgba(131,58,180,.12) 100%);
  border-color: rgba(225,48,108,.3); color: #e1306c;
}
html[data-theme="light"] .c-social-btn--instagram { background: linear-gradient(135deg, rgba(225,48,108,.1) 0%, rgba(131,58,180,.08) 100%); }
.c-social-btn--facebook {
  background: rgba(24,119,242,.1); border-color: rgba(24,119,242,.25); color: #1877f2;
}
.c-social-btn--google {
  background: rgba(66,133,244,.08); border-color: rgba(66,133,244,.2); color: var(--c-text);
}
.c-social-btn--website {
  background: var(--c-surface2); border-color: var(--c-border); color: var(--c-muted);
}
.c-social-btn--waze {
  background: rgba(0,210,91,.08); border-color: rgba(0,210,91,.25); color: #00a656;
}
.c-social-btn--gmaps {
  background: rgba(234,67,53,.08); border-color: rgba(234,67,53,.2); color: #c5221f;
}

/* Legacy - keep for back-compat */
.c-rest-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.c-rest-stats .c-open-badge,
.c-rest-stats .c-open-badge--owner { flex: 1 1 100%; width: max-content; max-width: 100%; margin-top: 2px; }
.c-rest-stat { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--c-muted); }
.c-rest-stat strong { color: var(--c-text); }

/* Maps nav */
.c-maps-nav { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-maps-nav--hero { gap: 10px; }
.c-maps-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; padding: 0;
  border-radius: var(--c-radius-sm); background: var(--c-surface2);
  border: 1px solid var(--c-border); transition: background .15s, border-color .15s, transform .12s;
}
.c-maps-nav-btn:hover { background: var(--c-surface); border-color: rgba(249,115,22,.35); transform: scale(1.05); }
.c-maps-nav-btn-ico {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background-image: url(maps-app-icons.png); background-repeat: no-repeat;
  background-size: 200% 100%; background-position: 0% 50%;
}
.c-maps-nav-btn-ico--gmaps { background-position: 100% 50%; }
.c-maps-nav--hero .c-maps-nav-btn-ico { width: 32px; height: 32px; border-radius: 9px; }
html[data-theme="light"] .c-maps-nav-btn { background: var(--c-surface); }
.c-map-links-row { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Loyalty */
.c-loyalty-card {
  margin: 12px 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 1px solid rgba(99,102,241,.3); border-radius: 18px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.c-loyalty-icon { font-size: 1.8rem; }
.c-loyalty-info { flex: 1; min-width: 0; }
.c-loyalty-title { font-size: .84rem; font-weight: 700; margin-bottom: 2px; }
.c-loyalty-points { font-size: .75rem; color: #a5b4fc; }
.c-loyalty-progress-wrap { margin-top: 8px; background: rgba(255,255,255,.1); border-radius: 99px; height: 5px; }
.c-loyalty-progress { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #818cf8, #a855f7); transition: width .5s; }

/* Waiter FAB */
.c-waiter-fab { position: fixed; bottom: calc(var(--c-nav-stack) + 16px); right: 16px; z-index: 150; }
@media (min-width: 480px) { .c-waiter-fab { right: calc(50% - 480px/2 + 16px); } }
.c-waiter-fab button {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), #f43f5e);
  box-shadow: 0 4px 24px rgba(249,115,22,.55), 0 0 0 1px rgba(255,255,255,.1) inset;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.c-waiter-fab button:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(249,115,22,.65); }

/* Cart bar */
.c-cart-bar {
  position: fixed; bottom: calc(var(--c-nav-stack) + 12px);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: calc(480px - 32px);
  z-index: 150; background: var(--c-accent); border-radius: 18px;
  padding: 13px 18px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 28px rgba(249,115,22,.45); cursor: pointer;
  transition: opacity .22s, transform .22s;
}
.c-rest-page .c-cart-bar {
  bottom: calc(var(--c-nav-stack) + 14px);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 36px); max-width: calc(480px - 36px);
  z-index: 9200; padding: 0; display: block; border-radius: 999px;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  box-shadow: 0 10px 36px rgba(234,88,12,.48), 0 0 0 1px rgba(255,255,255,.14) inset;
  border: none;
}
.c-cart-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; width: 100%; }
.c-cart-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; align-items: center; text-align: center; }
.c-cart-hint { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .02em; }
.c-cart-chev { font-size: 1.35rem; font-weight: 300; color: rgba(255,255,255,.9); }
.c-rest-page #tabMenu { padding-bottom: calc(var(--c-nav-stack) + 100px); }
.c-cart-bar.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(14px); }
.c-rest-page .c-cart-bar.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(calc(100% + 32px)); }
.c-cart-count { background: rgba(0,0,0,.22); border-radius: 99px; padding: 4px 10px; font-size: .74rem; font-weight: 700; color: #fff; }
.c-cart-label { font-size: .9rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.c-cart-total { font-size: .9rem; font-weight: 800; color: #fff; white-space: nowrap; }

/* Menu tabs */
.c-tabs-wrap { position: sticky; top: var(--c-top-h); z-index: 80; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.c-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tab { padding: 14px 16px; font-size: .85rem; font-weight: 600; color: var(--c-muted); cursor: pointer; white-space: nowrap; border-bottom: 2.5px solid transparent; transition: color .15s, border-color .15s; }
.c-tab.active { color: var(--c-accent); border-bottom-color: var(--c-accent); }

/* Menu items */
.c-menu-section { padding: 16px 0 0; }
.c-menu-section-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); padding: 0 16px; margin-bottom: 8px; }
.c-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-border); cursor: pointer; transition: background .15s; }
.c-menu-item:hover { background: rgba(255,255,255,.025); }
.c-menu-item-img {
  width: 72px; height: 72px; border-radius: 12px; background: var(--c-surface2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; overflow: hidden; position: relative;
}
.c-menu-item-emoji {
  font-size: 1.8rem; line-height: 1; z-index: 0;
}
.c-menu-item-img.has-photo .c-menu-item-emoji { display: none; }
.c-menu-item-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px; transition: transform .22s; z-index: 1;
}
.c-menu-item-img.has-photo { cursor: zoom-in; }
.c-menu-item-img.has-photo:active img { transform: scale(.93); }
/* FABs do restaurante — abaixo do mini player */
body.c-rest-page:has(.c-ambient-player.is-expanded) .c-rest-fabs { top: 72px; }
body.c-rest-page:has(.c-ambient-player.is-minimized) .c-rest-fabs { top: 58px; }

/* Photo lightbox */
.c-photo-lb { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px 28px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: c-lb-in .18s ease; }
@keyframes c-lb-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.c-photo-lb-img { max-width: 100%; max-height: 65vh; border-radius: 16px; object-fit: contain; box-shadow: 0 16px 60px rgba(0,0,0,.7); }
.c-photo-lb-name { margin-top: 16px; font-size: 1rem; font-weight: 700; color: #f1f5f9; text-align: center; max-width: 280px; line-height: 1.3; }
.c-photo-lb-price { font-size: .88rem; font-weight: 600; color: var(--c-accent); margin-top: 4px; }
.c-photo-lb-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.c-photo-lb-close:hover { background: rgba(255,255,255,.22); }
.c-photo-lb-add { margin-top: 18px; padding: 13px 32px; background: var(--c-accent); color: #fff; border: none; border-radius: 99px; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 4px 16px rgba(249,115,22,.35); transition: opacity .15s, transform .12s; }
.c-photo-lb-add:active { opacity: .85; transform: scale(.97); }
.c-menu-item-info { flex: 1; min-width: 0; }
.c-menu-item-name { font-size: .9rem; font-weight: 700; margin-bottom: 3px; letter-spacing: -.01em; }
.c-menu-item-desc { font-size: .75rem; color: var(--c-muted); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.c-menu-item-price { font-size: .9rem; font-weight: 700; color: var(--c-accent); margin-top: 6px; }
.c-menu-item-actions { flex-shrink: 0; }
.c-qty-ctrl { display: flex; align-items: center; gap: 8px; }
.c-qty-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s, opacity .15s; box-shadow: 0 2px 8px rgba(249,115,22,.3); }
.c-qty-btn:active { transform: scale(.88); }
.c-qty-btn.minus { background: var(--c-surface2); color: var(--c-text); box-shadow: none; }
.c-qty-num { font-size: .9rem; font-weight: 800; min-width: 18px; text-align: center; }

/* Reviews */
.c-review { padding: 14px 16px; border-bottom: 1px solid var(--c-border); }
.c-review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.c-review-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c-surface2); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.c-review-name { font-size: .84rem; font-weight: 600; }
.c-review-date { font-size: .72rem; color: var(--c-muted); margin-left: auto; }
.c-review-text { font-size: .8rem; color: var(--c-muted); line-height: 1.55; }

/* Hours */
.c-hours-list { padding: 0 16px; }
.c-hours-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-border); font-size: .83rem; }
.c-hours-row:last-child { border-bottom: none; }
.c-hours-day { color: var(--c-muted); font-weight: 500; }
.c-hours-time { font-weight: 600; }
.c-hours-time--closed { color: var(--c-red); font-weight: 600; }
.c-hours-row.today .c-hours-day,
.c-hours-row.today .c-hours-time:not(.c-hours-time--closed) { color: var(--c-accent); font-weight: 700; }

/* ═══════════════════════════════════════
   MODALS
═══════════════════════════════════════ */
.c-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 10100;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: var(--c-nav-stack);
  box-sizing: border-box;
  animation: overlayIn .2s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.c-modal {
  background: var(--c-surface); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  padding: 24px 20px calc(var(--c-nav-stack) + 20px);
  max-height: calc(100dvh - var(--c-nav-stack) - 12px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetIn .28s cubic-bezier(.34,1.1,.64,1);
}
@keyframes sheetIn {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.c-modal-handle { width: 40px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); margin: 0 auto 20px; }
html[data-theme="light"] .c-modal-handle { background: rgba(15,23,42,.1); }
.c-modal-title { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -.025em; }
.c-modal-sub { font-size: .83rem; color: var(--c-muted); margin-bottom: 18px; line-height: 1.55; }

/* ═══════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════ */
.c-input {
  width: 100%; background: var(--c-surface2); border: 1.5px solid var(--c-border);
  border-radius: 12px; padding: 14px 16px; color: var(--c-text);
  font-size: .9rem; font-family: inherit; transition: border-color .18s, box-shadow .18s;
}
.c-input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(249,115,22,.1); }
.c-btn {
  width: 100%; padding: 15px; border-radius: 99px;
  font-size: .93rem; font-weight: 700; cursor: pointer; border: none;
  transition: opacity .15s, transform .12s; margin-top: 12px;
}
.c-btn:hover { opacity: .9; }
.c-btn:active { transform: scale(.97); opacity: .85; }
.c-btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 4px 18px rgba(249,115,22,.35); }
.c-btn-secondary { background: var(--c-surface2); border: 1.5px solid var(--c-border); color: var(--c-text); box-shadow: var(--c-shadow); }

/* ═══════════════════════════════════════
   CART PAGE
═══════════════════════════════════════ */
.c-cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-border); }
.c-cart-item-img { width: 54px; height: 54px; border-radius: 12px; background: var(--c-surface2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.c-cart-item-name { font-size: .88rem; font-weight: 600; flex: 1; }
.c-cart-item-price { font-size: .85rem; font-weight: 700; color: var(--c-accent); }
.c-order-summary { margin: 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; overflow: hidden; box-shadow: var(--c-shadow); }
.c-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; font-size: .86rem; border-bottom: 1px solid var(--c-border); }
.c-summary-row:last-child { border-bottom: none; }
.c-summary-row.total { font-weight: 700; font-size: .96rem; }
.c-summary-label { color: var(--c-muted); }
.c-summary-value { font-weight: 600; }

/* ═══════════════════════════════════════
   ORDER HISTORY
═══════════════════════════════════════ */
.c-order-card {
  margin: 0 16px 14px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px; overflow: hidden; box-shadow: var(--c-shadow);
  animation: fadeUp .38s var(--ease-out) both;
  transition: transform .2s var(--ease-spring), box-shadow .18s, border-color .18s;
}
.c-order-card:nth-child(1) { animation-delay: .04s; }
.c-order-card:nth-child(2) { animation-delay: .08s; }
.c-order-card:nth-child(3) { animation-delay: .12s; }
.c-order-card:nth-child(4) { animation-delay: .16s; }
.c-order-card:nth-child(5) { animation-delay: .20s; }
.c-order-card:nth-child(6) { animation-delay: .24s; }
.c-order-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .c-order-card:hover {
    transform: translateY(-3px) scale(1.004);
    border-color: rgba(249,115,22,.42);
    box-shadow: 0 0 0 2px rgba(249,115,22,.18), 0 12px 36px rgba(0,0,0,.28);
  }
}
.c-order-card-header { padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--c-border); }
.c-order-rest-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--c-surface2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.c-order-rest-name { font-size: .92rem; font-weight: 700; letter-spacing: -.015em; }
.c-order-date { font-size: .72rem; color: var(--c-muted); }
.c-order-status-badge { margin-left: auto; padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.c-order-status-badge.delivered { background: rgba(34,197,94,.14); color: var(--c-green); }
.c-order-status-badge.pending { background: rgba(251,191,36,.14); color: var(--c-yellow); }
.c-order-status-badge.cancelled { background: rgba(239,68,68,.14); color: var(--c-red); }
.c-order-card-body { padding: 12px 16px; }
.c-order-items-text { font-size: .8rem; color: var(--c-muted); margin-bottom: 10px; line-height: 1.55; }
.c-order-card-footer { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.015); border-top: 1px solid var(--c-border); }
.c-order-total { font-size: .9rem; font-weight: 700; color: var(--c-accent); }
.c-reorder-btn { background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.25); border-radius: 99px; padding: 6px 14px; font-size: .78rem; font-weight: 700; color: var(--c-accent); cursor: pointer; transition: background .15s, transform .12s; }
.c-reorder-btn:active { transform: scale(.95); }

/* ═══════════════════════════════════════
   PROFILE — TheFork style
═══════════════════════════════════════ */
.c-profile-header {
  padding: 28px 20px 20px; display: flex; align-items: flex-start; gap: 18px;
}
.c-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), #f43f5e);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(249,115,22,.38);
  animation: avatarPulse 2.8s var(--ease-in-out) infinite;
}
.c-profile-info { flex: 1; min-width: 0; }
.c-profile-name { font-size: 1.18rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px; }
.c-profile-email { font-size: .82rem; color: var(--c-muted); margin-top: 3px; }
/* Stats row — N pontos | N pedidos | N favoritos */
.c-profile-stats {
  display: flex; align-items: center; gap: 0; margin-bottom: 12px;
}
.c-profile-stat {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; gap: 1px;
}
.c-profile-stat strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.c-profile-stat span { font-size: .68rem; color: var(--c-muted); font-weight: 500; }
.c-stat-divider { width: 1px; height: 28px; background: var(--c-border); flex-shrink: 0; }
.c-points-banner {
  margin: 12px 16px 0;
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(239,68,68,.07));
  border: 1px solid rgba(249,115,22,.18); border-radius: 16px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--c-shadow);
}
.c-points-icon { font-size: 1.7rem; }
.c-points-value { font-size: 1.3rem; font-weight: 800; color: var(--c-accent); letter-spacing: -.03em; }
.c-points-label { font-size: .75rem; color: var(--c-muted); }

/* Profile menu */
.c-profile-menu { margin: 0 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; overflow: hidden; box-shadow: var(--c-shadow); }
.c-profile-menu-item { display: flex; align-items: center; gap: 14px; padding: 16px 16px; font-size: .92rem; font-weight: 500; border-bottom: 1px solid var(--c-border); cursor: pointer; transition: background .15s; }
.c-profile-menu-item:last-child { border-bottom: none; }
.c-profile-menu-item:hover { background: rgba(255,255,255,.03); }
.c-profile-menu-item:active { background: rgba(255,255,255,.06); }
.c-profile-menu-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(249,115,22,.1); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.c-profile-menu-arrow { margin-left: auto; color: var(--c-muted); font-size: .85rem; }

/* ═══════════════════════════════════════
   SETTINGS (perfil.php tabs)
═══════════════════════════════════════ */
.c-settings-group { margin: 0 16px 20px; }

/* TheFork-style: section label is BIG and BOLD, not small caps */
.c-settings-label {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.025em;
  padding: 24px 0 12px;
  text-transform: none;
}
.c-settings-list {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px; overflow: hidden; box-shadow: var(--c-shadow);
}
.c-settings-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px; border-bottom: 1px solid var(--c-border);
  cursor: pointer; transition: background .15s, transform .15s var(--ease-spring);
  font-size: .92rem; font-weight: 500;
  animation: fadeUp .32s var(--ease-out) both;
}
.c-settings-item:nth-child(1) { animation-delay: .04s; }
.c-settings-item:nth-child(2) { animation-delay: .07s; }
.c-settings-item:nth-child(3) { animation-delay: .10s; }
.c-settings-item:nth-child(4) { animation-delay: .13s; }
.c-settings-item:nth-child(5) { animation-delay: .16s; }
.c-settings-item:nth-child(6) { animation-delay: .19s; }
.c-settings-item:last-child { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .c-settings-item:hover { background: rgba(255,255,255,.03); }
}
.c-settings-item:active { background: rgba(255,255,255,.06); transform: scale(.99); }
/* TheFork-style: thin outline icon, no background box */
.c-settings-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); background: transparent;
}
.c-settings-icon svg { width: 20px; height: 20px; }
.c-settings-icon--danger { color: var(--c-red) !important; }
.c-settings-item--danger { color: var(--c-red); }
.c-settings-arrow { margin-left: auto; color: var(--c-muted2); font-size: .8rem; }
/* Optional value badge beside arrow */
.c-settings-badge {
  background: rgba(249,115,22,.12); color: var(--c-accent);
  border-radius: 99px; padding: 2px 10px; font-size: .74rem; font-weight: 700;
  margin-left: auto; margin-right: 8px;
}
.c-toggle {
  width: 48px; height: 26px; border-radius: 99px;
  background: var(--c-surface2); border: 1px solid var(--c-border);
  cursor: pointer; position: relative; transition: background .22s, border-color .22s;
  margin-left: auto; flex-shrink: 0;
}
.c-toggle.on { background: var(--c-accent); border-color: var(--c-accent); }
.c-toggle::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.c-toggle.on::after { transform: translateX(22px); }

/* ═══════════════════════════════════════
   RATING INPUT
═══════════════════════════════════════ */
.c-star-input { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.c-star-input button { background: none; border: none; font-size: 2rem; cursor: pointer; opacity: .35; transition: opacity .15s, transform .18s cubic-bezier(.34,1.56,.64,1); }
.c-star-input button.active,
.c-star-input button:hover { opacity: 1; transform: scale(1.2); }

/* Waiter anim */
.waiter-anim { font-size: 3.5rem; animation: ring 1s ease-in-out infinite; display: inline-block; margin-bottom: 12px; }
@keyframes ring { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.c-toast {
  position: fixed; bottom: calc(var(--c-nav-stack) + 80px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 99px; padding: 12px 22px;
  font-size: .86rem; font-weight: 600; box-shadow: var(--c-shadow-md);
  z-index: 10200; white-space: nowrap; opacity: 0;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.c-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.c-toast.success { border-color: var(--c-green); color: var(--c-green); }
.c-toast.error { border-color: var(--c-red); color: var(--c-red); }
.c-rest-page .c-toast { bottom: calc(var(--c-nav-stack) + 96px); }

/* ═══════════════════════════════════════
   DESKTOP FRAME
═══════════════════════════════════════ */
@media (min-width: 480px) {
  body { box-shadow: 0 0 80px rgba(0,0,0,.6); }
}

/* ═══════════════════════════════════════
   SHIMMER SKELETON
═══════════════════════════════════════ */
.c-skeleton {
  background: linear-gradient(90deg, var(--c-surface2) 25%, var(--c-surface) 50%, var(--c-surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 8px;
}

/* ═══════════════════════════════════════
   PAGE HEADER (pedidos, etc.)
═══════════════════════════════════════ */
.c-page-head {
  animation: fadeUp .36s var(--ease-out) .05s both;
}

/* ═══════════════════════════════════════
   TOPBAR LOGO ANIMATION
═══════════════════════════════════════ */
.c-topbar-logo {
  animation: fadeUp .3s var(--ease-out) both;
}

/* ═══════════════════════════════════════
   BUTTON PRESS STATES — Emil rule: every pressable gets scale(.97)
═══════════════════════════════════════ */
.c-btn:active               { transform: scale(.97); }
.c-banner-btn:active        { transform: scale(.96); }
.c-topbar-theme:active      { transform: scale(.92); }
.c-topbar-avatar:active     { transform: scale(.92); }
.c-search-sparkle:active    { transform: scale(.90); }
.c-reorder-btn:active       { transform: scale(.96); }
.c-qty-btn:active           { transform: scale(.88); }
.c-waiter-fab button:active { transform: scale(.94) !important; }

/* ═══════════════════════════════════════
   PROFILE STATS — fade in
═══════════════════════════════════════ */
.c-profile-stat {
  animation: fadeUp .3s var(--ease-out) both;
}
.c-profile-stat:nth-child(1) { animation-delay: .1s; }
.c-profile-stat:nth-child(3) { animation-delay: .14s; }
.c-profile-stat:nth-child(5) { animation-delay: .18s; }

/* ═══════════════════════════════════════
   ACCESSIBILITY — prefers-reduced-motion
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body { animation: none; }
  .c-empty-icon { animation: none; }
  .c-banner { animation: none; }
  .c-profile-avatar { animation: none; }
}

/* ═══════════════════════════════════════
   SHELL — sticky search, nav fixo, transições
═══════════════════════════════════════ */
.c-shell-chrome {
  view-transition-name: cliente-chrome;
}
html::view-transition-group(cliente-chrome) {
  animation: none;
}
body > .c-shell-chrome {
  animation: none !important;
}

.c-search-wrap.c-sticky-follow,
.c-home-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 11, 15, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}
html[data-theme="light"] .c-search-wrap.c-sticky-follow,
html[data-theme="light"] .c-home-sticky {
  background: rgba(245, 246, 250, 0.94);
}
.c-home-sticky .c-search-wrap {
  padding-top: 10px;
  padding-bottom: 4px;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
}
.c-home-sticky .c-cats {
  padding-bottom: 8px;
}

/* Hero início — compacto */
.idx-hero {
  padding: 12px 14px 14px;
}
.idx-hero-top {
  margin-bottom: 12px;
}
.idx-hero-title {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.idx-location-pill {
  padding: 7px 12px;
  font-size: 0.78rem;
}
.idx-glow-1 { width: 160px; height: 160px; top: -50px; right: -30px; }
.idx-glow-2 { width: 130px; height: 130px; }

/* Transição entre abas do bottom nav */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: cNavOut 0.22s var(--ease-out) both;
}
::view-transition-new(root) {
  animation: cNavIn 0.28s var(--ease-out) 0.04s both;
}
html[data-nav-dir="next"] ::view-transition-old(root) {
  animation-name: cNavOutLeft;
}
html[data-nav-dir="next"] ::view-transition-new(root) {
  animation-name: cNavInRight;
}
html[data-nav-dir="prev"] ::view-transition-old(root) {
  animation-name: cNavOutRight;
}
html[data-nav-dir="prev"] ::view-transition-new(root) {
  animation-name: cNavInLeft;
}
@keyframes cNavOut {
  to { opacity: 0; transform: scale(0.98); }
}
@keyframes cNavIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cNavOutLeft {
  to { opacity: 0; transform: translateX(-18px); }
}
@keyframes cNavInRight {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes cNavOutRight {
  to { opacity: 0; transform: translateX(18px); }
}
@keyframes cNavInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}
body.c-page-leave {
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}

/* Tabs internas — painéis fluidos */
.c-tab-panels {
  display: grid;
  width: 100%;
}
.c-tab-panels > .c-tab-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.28s var(--ease-out),
    visibility 0.28s;
}
.c-tab-panels > .c-tab-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1;
}
.c-tab-panels > .c-tab-panel.is-exiting {
  opacity: 0;
  transform: translateY(-6px);
}
.c-tab {
  transition: color 0.2s, border-color 0.25s var(--ease-out);
}

/* SPA — troca de abas do bottom nav sem reload */
#c-app-root {
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
#c-app-root.c-app-swapping {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
@keyframes cAppEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
#c-app-root.c-app-enter {
  animation: cAppEnter 0.28s var(--ease-out) both;
}
