main.container { padding-top: 16px; padding-bottom: calc(180px + env(safe-area-inset-bottom)); }

/* Barra de baixo (como a da Uber): some ao descer, volta ao subir. */
:root { --tabbar-h: 64px; }
body { --nav-space: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
body.nav-hidden, body.no-tabbar { --nav-space: 0px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease;
}
body.nav-hidden .tabbar, body.no-tabbar .tabbar { transform: translateY(110%); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 700; -webkit-tap-highlight-color: transparent;
}
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] svg { stroke: var(--brand); stroke-width: 2.1; }
.tabbar a:active svg { transform: scale(0.88); }
@media (min-width: 760px) {
  .tabbar { left: 50%; right: auto; width: 480px; bottom: 14px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 20px; height: var(--tabbar-h); padding-bottom: 0; }
  body.nav-hidden .tabbar, body.no-tabbar .tabbar { transform: translate(-50%, calc(100% + 30px)); }
  body { --nav-space: calc(var(--tabbar-h) + 14px); }
}

/* ---------- Destaque da página inicial ----------
   Duas colunas (texto 55% · foto 45%) no fundo escuro com o brilho rosa de sempre; a foto do FF (fundo preto) funde-se sem recorte.
   Rosa só em detalhes e na ação principal. */
.hero {
  --hero-ink: #ffffff; --hero-pink: #ff2878; --hero-muted: #b9bfce;
  background: radial-gradient(120% 90% at 70% 20%, rgba(255, 45, 122, 0.28), transparent 60%), linear-gradient(160deg, #1a1030, #0f172a);
  color: var(--hero-ink); border-radius: 16px; position: relative; overflow: hidden; isolation: isolate;
  padding: 20px; margin-bottom: 16px; display: grid; gap: 8px 20px; grid-template-columns: 1fr; align-items: center;
}
.hero-copy { display: grid; justify-items: start; min-width: 0; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 0.85rem; font-weight: 700; color: var(--hero-muted); }
.hero-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-pink); flex: none; }
.hero-status.closed i { background: #ef4444; }
.hero h1 { margin: 0; max-width: 17ch; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--hero-ink); }
.hero-lead { margin: 10px 0 0; max-width: 40ch; font-size: 1.02rem; font-weight: 500; line-height: 1.45; color: var(--hero-muted); }
.hero-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.94rem; font-weight: 600; line-height: 1.35; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts .i { width: 18px; height: 18px; flex: none; color: var(--hero-pink); }
.hero-min { margin: 16px 0 0; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font-size: 0.86rem; font-weight: 600; color: var(--hero-muted); }
.hero-min strong { color: var(--hero-ink); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; width: 100%; }
.hero-actions .btn { min-height: 46px; padding: 0 20px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; justify-content: center; box-shadow: none; }
.hero-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.32); color: #fff; }
.hero-ghost:hover { border-color: #fff; }
.hero-ghost:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-media { position: relative; display: grid; place-items: center; min-width: 0; }
/* Os prédios do vídeo atrás do FF, na diagonal da mota: sobem para a direita e, no PC, estendem-se por trás do texto. */
.hero-copy { position: relative; z-index: 1; }
.hero-street { position: absolute; right: -40px; bottom: -21%; width: calc(260% + 40px); height: 106%; display: flex; flex-direction: column; pointer-events: none;
  transform: rotate(-6deg); transform-origin: right 53%;
  /* Por trás do texto ficam mais apagados, para se ler bem. */
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3) 45%, #000 66%); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3) 45%, #000 66%); }
.hero-city { position: relative; flex: 0 0 53%; background: url(/img/cidade-noite.svg?v=1) right bottom / auto 100% repeat-x; }
/* A base dos prédios mais escura, como se a luz da rua não chegasse lá abaixo. */
.hero-city::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(8, 5, 20, 0.55)); }
/* A estrada: passeio, alcatrão e o traço do meio. O FF anda por cima dela. */
.hero-road { position: relative; flex: 1;
  background: linear-gradient(to bottom, #3b2d68 0 4px, #2a1f4e 4px 8px, rgba(8, 5, 20, 0.6) 8px, transparent 26px), linear-gradient(to bottom, #1d1638, #120e24); }
.hero-road::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.32) 0 36px, transparent 36px 72px);
  animation: road-run 0.9s linear infinite paused; }
.ff-wrap:has(.ff-rider.moving) .hero-road::after { animation-play-state: running; }
/* O traço passa para trás, só enquanto o FF anda (a animação do toque). */
@keyframes road-run { to { background-position: -72px 0; } }
@media (prefers-reduced-motion: reduce) { .hero-road::after { animation: none; } }
/* O FF e a rua na mesma caixa, para a estrada ficar sempre debaixo das rodas. */
.ff-wrap { position: relative; width: 100%; display: grid; place-items: center; }
.sale-stamp { position: absolute; top: 14px; right: 14px; z-index: 3; width: 92px; height: 92px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05;
  background: var(--brand); color: #fff; rotate: -12deg; box-shadow: 0 8px 22px rgba(255, 45, 122, 0.35);
  outline: 1.5px dashed rgba(255, 255, 255, 0.55); outline-offset: -7px; pointer-events: none; }
.sale-stamp strong { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.sale-stamp span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.sale-stamp .ss-top { margin-bottom: 2px; } .sale-stamp .ss-bottom { margin-top: 3px; }
@media (max-width: 759px) { .sale-stamp { width: 78px; height: 78px; top: 12px; right: 12px; } .sale-stamp strong { font-size: 1.4rem; } .sale-stamp span { font-size: 0.6rem; } }
@media (max-width: 759px) {
  /* Telemóvel: como antes, o FF na mota em cima (260 px), logo antes das informações; os botões em baixo. */
  .hero-media { order: -1; }
  .hero .ff-rider { max-width: 260px; }
  .hero-street { width: calc(100% + 80px); -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  /* Como funciona estica e o Instagram e o TikTok ficam na mesma linha, ao lado. */
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 14px; white-space: nowrap; font-size: 0.92rem; }
  .hero .sale-stamp { top: 0; right: 0; }
}
/* Redes sociais: botões só com o símbolo, ao lado dos outros. */
.hero-actions .hero-social { min-width: 46px; width: 46px; padding: 0; flex: none; }
.hero-social svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 760px) {
  /* A foto fica na mesma faixa horizontal do texto, ao lado dele. */
  .hero { grid-template-columns: 11fr 9fr; gap: 28px; padding: 28px; }
  .hero .sale-stamp { top: 0; right: 0; }
}
@media (min-width: 1100px) { .hero { padding: 32px 40px; gap: 40px; } }

.closed-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--danger-soft); color: var(--danger); padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; line-height: 1.4; }
.closed-banner .i { flex: none; width: 20px; height: 20px; margin-top: 1px; }

.chips { position: sticky; top: 60px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--bg); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.chips a.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.category { scroll-margin-top: 120px; margin-top: 18px; }
.products { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.product {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer;
}
.product:hover { border-color: var(--brand); }
.product .thumb { flex: none; width: 76px; height: 76px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.no-photo { width: 44% !important; height: 44% !important; object-fit: contain !important; opacity: 0.35; filter: grayscale(1); }
.product .info { flex: 1; min-width: 0; }
.product h3 { font-size: 1rem; margin: 0 0 2px; }
.product p { margin: 0; color: var(--muted); font-size: 0.87rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .price { font-weight: 800; margin-top: 4px; }
.product .add { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; }

.cart-bar {
  position: fixed; left: 16px; right: 16px; bottom: calc(12px + var(--nav-space, 0px)); z-index: 60; transition: bottom 0.25s ease;
  max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  background: var(--brand); color: #fff; padding: 15px 18px; border-radius: 16px; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 45, 122, 0.45);
}

.modal .product-head { text-align: center; }
.modal .product-head .thumb { background: var(--surface-2); border-radius: 16px; padding: 16px; margin-bottom: 10px; display: grid; place-items: center; }
.modal .actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.modal .actions .btn { flex: 1; }

.checkout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.4fr 1fr; align-items: start; } .checkout .summary { position: sticky; top: 76px; } }
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .emoji { font-size: 1.8rem; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .notes { color: var(--muted); font-size: 0.85rem; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.map-tools { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.map-tools input { flex: 1; min-width: 160px; }
.quote { margin-top: 8px; font-weight: 600; }

.track-head { text-align: center; padding: 8px 0 16px; }
.track-head .big { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.track-head .big .i { width: 32px; height: 32px; }
.track-head .big.status-entregue, .track-head .big.status-pronto { background: var(--ok-soft); color: var(--ok); }
.track-head .big.status-cancelado { background: var(--danger-soft); color: var(--danger); }
.track-head h1 { font-size: 1.5rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); }
.timeline li .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 0.85rem; flex: none; }
.timeline li.done { color: var(--text); }
.timeline li.done .dot { background: var(--ok); color: #fff; }
.timeline li.current { color: var(--text); font-weight: 700; }
.timeline li.current .dot { background: var(--brand); color: #fff; animation: pulse 1.6s infinite; }
.timeline li time { margin-left: auto; font-size: 0.85rem; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 122, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(255, 45, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 122, 0); } }
.track-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .track-grid { grid-template-columns: 1fr 1fr; } }
.order-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.order-list a:last-child { border-bottom: 0; }

.pay-methods label { align-items: flex-start; }
.pay-methods label > span { display: grid; gap: 2px; }
.pay-logo { font-weight: 800; font-style: italic; }
.pay-logo.mbway { color: #d6002a; }
.pay-logo.multibanco { color: var(--info); }
.pay-logo.payshop { color: #e30613; }
.pay-logo.cartao { color: #1a1f71; } /* azul Visa */
@media (prefers-color-scheme: dark) { .pay-logo.mbway, .pay-logo.payshop { color: #ff5a6e; } .pay-logo.cartao { color: #8fa2ff; } }
.pay-card { margin-bottom: 16px; border-color: var(--brand); }
.pay-card h2 { display: flex; gap: 8px; align-items: baseline; }
.pay-hero { text-align: center; }
.pay-hero .big { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.pay-hero .big .i { width: 30px; height: 30px; }
.pay-ref { display: grid; gap: 8px; margin: 12px 0; }
.pay-ref div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--surface-2); padding: 12px 14px; border-radius: 12px; }
.pay-ref dt { color: var(--muted); font-weight: 600; }
.pay-ref dd { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.pay-card details { margin-top: 14px; }
.pay-card summary { cursor: pointer; color: var(--brand); font-weight: 700; }

/* Fotos dos produtos */
.product .thumb.has-photo, .cart-item .emoji.has-photo { overflow: hidden; background: var(--surface-2); }
.product .thumb img, .cart-item .emoji img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .thumb.has-photo { width: 92px; height: 92px; }
.cart-item .emoji.has-photo { width: 52px; height: 52px; border-radius: 12px; flex: none; }
/* Na janela do produto, a foto aparece inteira (garrafas altas, batatas largas…), sem cortes, num fundo escuro como o
   das próprias fotos. A altura acompanha o ecrã, para os botões de baixo ficarem sempre à vista. */
/* As fotos da ementa estão em 4:3 (o fundo foi prolongado para isso): enchem a moldura sem cortar o produto. */
.modal .product-head .thumb.has-photo { position: relative; display: block; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; height: auto; max-height: 48vh; margin: -4px -4px 12px; background: #0e0e11; isolation: isolate; }
.modal .product-head .thumb.has-photo img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
/* Fotos noutro formato (ex.: carregadas na Cozinha): inteiras por cima da mesma foto ampliada e desfocada. */
.modal .product-head .thumb.has-photo .ph-fill { position: absolute; inset: 0; z-index: -1; object-fit: cover; transform: scale(1.25); filter: blur(22px) saturate(1.15) brightness(0.8); }
/* Quantidade e "Adicionar" ficam presos ao fundo da janela, mesmo com texto comprido (alergénios, ingredientes). */
.modal > .actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--surface); margin: 16px -16px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); z-index: 1; }

/* Entrega em curso: tempo que falta */
.eta-card { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; box-shadow: 0 10px 30px rgba(255, 45, 122, 0.35); }
.eta-card .eta-main { font-size: 1.25rem; font-weight: 700; }
.eta-card .hint { color: rgba(255, 255, 255, 0.9); margin-top: 2px; }

/* Sobre nós */
.about-card { display: grid; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
@media (min-width: 700px) { .about-card { grid-template-columns: 300px 1fr; } }
.about-card figure { margin: 0; text-align: center; }
.about-card img { width: 100%; max-width: 260px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; display: block; margin: 0 auto;
  box-shadow: 0 12px 30px rgba(255, 45, 122, 0.25); }
.about-card figcaption { margin-top: 12px; font-weight: 800; font-style: italic; font-size: 1.25rem; }
.about-text { text-align: center; }
.about-text .badge { font-size: 1rem; padding: 8px 16px; background: var(--brand-soft); color: var(--brand); }
@media (min-width: 700px) { .about-text { text-align: left; } }

/* Ícone "Sobre nós" no topo */
.about-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; flex: none; }
.about-link img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid var(--brand); display: block; }
.about h1 { margin-bottom: 16px; }
@media (max-width: 400px) { .about-link img { width: 32px; height: 32px; } }

/* Aberto/fechado: pontinho verde (a pulsar) ou vermelho ao lado do logótipo; a palavra só em ecrãs largos. */
.store-dot { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: 2px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.store-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px var(--surface); }
.store-dot.open i { background: #22c55e; }
.store-dot.closed i { background: #ef4444; }
.store-dot.open .label { color: var(--ok); }
.store-dot.closed .label { color: var(--danger); }
.store-dot .label { display: none; }
@media (min-width: 560px) { .store-dot .label { display: inline; } }
@keyframes store-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .store-dot.open i { animation: none; } }

/* Álcool: +18 */
.age { display: inline-block; font-size: 0.7rem; font-weight: 800; font-style: normal; color: #fff; background: var(--danger); border-radius: 6px; padding: 1px 5px; vertical-align: 2px; }
.adult-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px; border-radius: 12px; background: var(--warn-soft); font-weight: 500; font-size: 0.92rem; cursor: pointer; }
.adult-check input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.alcohol-note { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: 6px 8px; font-size: 0.88rem; font-weight: 600; margin: 6px 0; }

.contacts { margin-top: 16px; }
.contacts p { margin: 8px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.contacts p .i { color: var(--brand); }
.contacts a { color: var(--text); text-decoration: none; }

/* Carrinho: combos e extras */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.combo { flex: none; width: 230px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-2); }
.combo-pics { display: flex; height: 70px; border-radius: 10px; overflow: hidden; gap: 2px; margin-bottom: 4px; }
.combo-pics img, .combo-pics span { flex: 1; min-width: 0; object-fit: cover; display: grid; place-items: center; font-size: 2rem; background: var(--brand-soft); }
.combo-items { font-size: 0.82rem; line-height: 1.3; flex: 1; }
.combo-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.combo-price span { font-weight: 800; font-size: 1.1rem; }
.combo-price s { color: var(--muted); font-size: 0.85rem; }
.combo-price em { font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 1px 7px; }
.extra { flex: none; width: 140px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; padding: 8px; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; color: var(--text); -webkit-appearance: none; appearance: none; }
.extra:hover { border-color: var(--brand); }
.extra-pic { position: relative; display: block; width: 100%; height: 92px; flex: none; border-radius: 10px; overflow: hidden; font-size: 2rem; line-height: 92px; text-align: center; background: var(--brand-soft); }
/* A foto ocupa a moldura toda (no Safari do iPhone, "height: 100%" dentro de um botão deixava uma faixa vazia). */
.extra-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.extra-name { font-weight: 700; font-size: 0.85rem; line-height: 1.2; min-height: 2.4em; }
.extra-name .age { vertical-align: 1px; }
.extra-price { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.extra-price b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; line-height: 1; }
/* As filas deslizantes não podem alargar a página. */
.checkout > * { min-width: 0; }
.upsell { min-width: 0; overflow: hidden; }

/* Combos na página principal */
.combo-thumb { display: flex !important; gap: 2px; overflow: hidden; padding: 0; background: var(--surface-2); }
.combo-thumb img, .combo-thumb span { flex: 1; min-width: 0; height: 100%; object-fit: cover; display: grid; place-items: center; font-size: 1.4rem; }
.product.combo-card .thumb.combo-thumb { width: 92px; height: 92px; }
.price s { color: var(--muted); font-weight: 600; font-size: 0.85rem; margin-left: 4px; }
.price .save { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 1px 6px; margin-left: 2px; }

/* Piadas do FF: botão que se arrasta + janela por cima da página */
.joke-fab { position: fixed; right: 16px; bottom: calc(86px + var(--nav-space, 0px)); z-index: 70; transition: bottom 0.25s ease; width: 62px; height: 62px; padding: 0;
  border-radius: 50%; border: 3px solid var(--brand); background: var(--surface); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  cursor: grab; touch-action: none; user-select: none; }
.joke-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 12%; pointer-events: none; display: block; }
.joke-fab-badge { position: absolute; right: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-size: 0.9rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); pointer-events: none; }
.joke-fab.dragging { cursor: grabbing; opacity: 0.9; transform: scale(1.08); }
@keyframes joke-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
body.no-scroll { overflow: hidden; }
.joke-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(15, 10, 25, 0); display: flex; align-items: flex-end; justify-content: center; transition: background 0.25s; }
.joke-backdrop.open { background: rgba(15, 10, 25, 0.55); }
.joke-sheet { width: 100%; max-width: 560px; height: min(78vh, 680px); background: var(--surface); border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.25s ease-out; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3); }
.joke-backdrop.open .joke-sheet { transform: none; }
@media (min-width: 700px) { .joke-backdrop { align-items: center; } .joke-sheet { border-radius: 22px; } }
/* Pega no topo das janelas que sobem do fundo: mostra que se podem deslizar para baixo para fechar. */
@media (max-width: 599px) {
  .modal-backdrop > .modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: -10px auto 12px; }
}
@media (max-width: 699px) {
  .joke-backdrop > .joke-sheet::before { content: ''; display: block; flex: none; width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 8px auto 0; }
}
.joke-sheet header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.joke-sheet header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid var(--brand); }
.joke-sheet header div { flex: 1; display: grid; }
.joke-sheet header .hint { font-size: 0.8rem; }
.joke-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.joke-msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; white-space: pre-wrap; }
.joke-msg.assistant { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.joke-msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.joke-msg.typing { color: var(--muted); font-style: italic; }
.joke-msg.error { color: var(--danger); }
.joke-actions { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.joke-actions .btn { padding: 13px; border-radius: 14px; }
.joke-react { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.joke-react .btn { font-size: 0.88rem; padding: 12px 6px; white-space: nowrap; }

/* FF Pass e raspadinha */
.pass-card { margin-bottom: 16px; border-top: 4px solid var(--brand); }
.pass-card h3 { margin: 16px 0 8px; font-size: 1rem; }
.stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
  border: 2px dashed var(--border); color: var(--muted); background: var(--surface); }
.stamp.reward { border-color: var(--brand); color: var(--brand); }
.stamp.done { border-style: solid; border-color: var(--brand); background: var(--brand); color: #fff; }
.stamp.done .i { width: 55%; height: 55%; stroke-width: 2.6; }
.scratch-list { display: grid; gap: 8px; margin-top: 8px; }
.coupons { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.coupons li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--brand); background: var(--surface); }
.coupons li strong { font-size: 1.3rem; color: var(--brand); min-width: 64px; }
.coupon-line { color: var(--ok); font-weight: 700; }
.coupon-hint { margin-top: 14px; }
.scratch-modal { text-align: center; }
.scratch-area { position: relative; width: 100%; max-width: 330px; margin: 12px auto; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; }
.scratch-area canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.scratch-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; background: var(--surface-2); }
.scratch-grid span { display: grid; place-items: center; font-size: 2.4rem; background: var(--surface); border-radius: 12px; }
.scratch-grid.win span { animation: pulse 1.6s infinite; }
.scratch-result { min-height: 3em; font-size: 1.05rem; }

/* Agendar e links */
.hero-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hero-links .playlist { background: #1db954; border-color: #1db954; color: #fff; }
.scheduled-pill { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 800; padding: 8px 14px; border-radius: 10px; }

/* Ranking e embaixadores */
.hero-links .group { background: var(--brand); border-color: var(--brand); color: #fff; }
.amb-box { margin-top: 14px; }
.amb-box summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.prize { margin: 12px 0; border-color: var(--brand); background: var(--brand-soft); }
.ranking { display: grid; gap: 10px; }
/* Nome da residência em cima, barra por baixo (os nomes são compridos). */
.ranking { gap: 14px; }
.rank-row { display: grid; grid-template-columns: 34px 1fr 40px; grid-template-areas: "m n p" "m b b"; align-items: center; column-gap: 10px; row-gap: 6px; }
.rank-row .medal { grid-area: m; }
.rank-row strong { grid-area: n; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .bar { grid-area: b; }
.rank-row .pts { grid-area: p; }
.rank-row .medal { text-align: center; font-weight: 800; color: var(--muted); }
.rank-row.top .medal { color: var(--brand); }
.rank-row .bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rank-row .bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.rank-row.top .bar span { background: linear-gradient(90deg, var(--brand), #ffb703); }
.rank-row .pts { font-weight: 800; text-align: right; }

/* Pedido de grupo */
.g-head h1 { margin-bottom: 4px; }
.g-share { display: grid; gap: 8px; margin-top: 14px; }
.g-share input { font-size: 0.9rem; }
.g-share .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-done { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 800; color: var(--ok); }
.g-me, .g-close { min-width: 0; }
.g-picker { margin: 8px 0 12px; }
.g-picker summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 6px 0; }
.g-picker h3 { margin: 14px 0 4px; font-size: 0.95rem; color: var(--muted); }
.g-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.g-row + .g-row { border-top: 1px solid var(--border); }
.g-row.on { background: var(--brand-soft); border-top-color: transparent; }
.g-row > span { min-width: 0; font-weight: 600; }
.g-row .qty { flex: none; }
.g-items { margin: 8px 0; padding-left: 18px; }
.g-row-actions { display: flex; gap: 6px; flex: none; }
.g-row-actions .btn { min-width: 40px; }
/* A minha parte num grupo: cada linha com as suas alterações (ingredientes, observações, escolhas do combo). */
.g-lines { list-style: none; margin: 8px 0 12px; padding: 0; }
.g-lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }
.g-lines li + li { border-top: 1px solid var(--border); }
.g-lines li > span { min-width: 0; }
.g-lines .qty { flex: none; }
.g-wait { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand-soft); }
.g-wait strong { color: var(--brand); }
.g-closed-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); font-weight: 600; }
.g-paid { font-weight: 800; color: var(--ok); }
.g-paybox { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.g-payform, .g-closeform { margin-top: 14px; }
.g-payform h3 { margin-bottom: 8px; }
.g-mbway { margin-top: 8px; }
.g-people { list-style: none; margin: 0; padding: 0; }
.g-people li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.g-people li:first-child { border-top: 0; }
.g-people li > div:first-child { min-width: 0; }
.g-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.g-close .totals { margin-bottom: 8px; }

/* Carteira FF */
.wallet-card { padding-top: 14px; }

/* Cabeçalho de página com ilustração (FF Pass, ranking, grupo) */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.page-head img { flex: none; width: 72px; height: 72px; }
.page-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.15; }
.page-head .hint { margin: 2px 0 0; }

/* Cartões da carteira: cartão de crédito em metal */
.credit-card { position: relative; overflow: hidden; aspect-ratio: 1.586; max-width: 420px; margin: 0 auto 12px; border-radius: 16px; padding: 16px 18px;
  display: grid; grid-template-rows: auto 1fr auto auto; color: #1d1a12; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  isolation: isolate; }
.credit-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--metal); }
/* reflexo em diagonal, como no metal escovado */
.credit-card::after { content: ''; position: absolute; inset: -40% -10%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.45) 46%, transparent 54%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, rgba(0, 0, 0, 0.03) 2px 4px); }
.credit-card.gold { --metal: linear-gradient(135deg, #a87400 0%, #f7d774 28%, #c9971a 48%, #ffeaa0 70%, #b8860b 100%); }
.credit-card.rose { --metal: linear-gradient(135deg, #9c0f45 0%, #ff8cbb 30%, #e0145f 50%, #ffc2da 72%, #b3124f 100%); color: #fff; }
.credit-card.silver { --metal: linear-gradient(135deg, #7b8797 0%, #eef2f7 28%, #a7b1c0 50%, #ffffff 70%, #8e9aab 100%); color: #1b2332; }
.cc-mark { position: absolute; right: -18px; bottom: -8px; width: 62%; z-index: -1; fill: currentColor; opacity: 0.1; transform: rotate(-8deg); }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cc-brand { font-weight: 800; font-style: italic; letter-spacing: -0.02em; white-space: nowrap; }
.cc-brand b { background: #1d1a12; color: #fff; border-radius: 5px; padding: 0 5px; margin-right: 4px; }
.credit-card.rose .cc-brand b { background: #fff; color: #b3124f; }
.cc-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; max-width: 45%; line-height: 1.25; }
.cc-mid { display: flex; align-items: center; gap: 10px; align-self: center; }
.cc-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #e9d18a, #b8923a 45%, #f3e2a8 60%, #a57d2c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); position: relative; }
.cc-chip::before { content: ''; position: absolute; inset: 7px 9px; border: 1.5px solid rgba(0, 0, 0, 0.22); border-radius: 4px; }
.cc-waves { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0.7; }
.cc-amount { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cc-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.85rem; font-weight: 700; }
.cc-number { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.08em; opacity: 0.85; }
.cc-sub { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; opacity: 0.85; }
.wallet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wallet-balance { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-moves { list-style: none; margin: 10px 0 0; padding: 0; }
.wallet-moves li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.wallet-moves strong { flex: none; font-variant-numeric: tabular-nums; }
.wallet-moves .in { color: var(--ok); }
.wallet-use { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); font-weight: 600; cursor: pointer; }
.wallet-use input { width: 20px; height: 20px; flex: none; accent-color: var(--ok); }
.wallet-paid { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.how { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.g-wallet { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); }
.g-wallet-i { display: grid; color: var(--ok); }
.g-wallet-i .i { width: 28px; height: 28px; }
.g-wallet strong { color: var(--ok); }
.g-refund { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); font-weight: 600; }
/* Avisos por cima do botão do carrinho e da barra de baixo. */
.toast { bottom: calc(84px + var(--nav-space, 0px)); opacity: 0; transition: transform 0.25s, opacity 0.25s; }
.toast.show { opacity: 1; }

/* Conta: ícone do topo (sem foto = bonequinho simples; com boneco = o teu boneco) */
.account-link { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border); color: var(--muted); overflow: hidden; text-decoration: none; }
.account-link.logged { border-color: var(--brand); color: var(--text); }
.account-link .avatar-svg { width: 100%; height: 100%; display: block; }
.account-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
@media (max-width: 400px) { .account-link { width: 34px; height: 34px; } }

.account-head { display: flex; gap: 18px; align-items: center; }
.account-head h1 { margin: 0 0 2px; font-size: 1.4rem; }
.account-head .hint { margin: 0 0 10px; word-break: break-word; }
.account-avatar { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; display: block; border: 3px solid var(--brand); background: var(--surface-2); }
.account-avatar .avatar-svg { width: 100%; height: 100%; display: block; }
.account-avatar-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.account-avatar-empty .account-icon { width: 46px; height: 46px; }
.account-avatar-edit { position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); font-size: 0.9rem; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.toggle-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; font-weight: 400; }
.toggle-row input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--brand); }

.auth-card { max-width: 560px; margin: 0 auto; }
.auth-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.auth-hero h1 { margin: 0; font-size: 1.4rem; }
.auth-hero .hint { margin: 2px 0 0; }
.perks { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 8px; font-weight: 600; }
.auth-card .segmented { margin-bottom: 6px; }

.push-nudge { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); }
.push-nudge-i { display: grid; color: var(--brand); }
.push-nudge-i .i { width: 26px; height: 26px; }
.push-nudge > div { flex: 1; min-width: 0; }
.push-nudge .btn { flex: none; }

/* Editor do boneco */
/* minmax(0, 1fr): as filas de opções deslizam dentro do cartão em vez de alargarem a página (iPhone). */
.av-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; overflow: hidden; }
.av-row { min-width: 0; }
.av-preview { display: grid; place-items: center; padding: 6px 0; }
.av-preview .avatar-svg { filter: drop-shadow(0 10px 22px rgba(15, 23, 42, 0.25)); }
.av-actions { display: flex; justify-content: center; margin-bottom: 6px; }
.av-row h3 { margin: 14px 0 8px; font-size: 0.95rem; color: var(--muted); }
.av-options { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.av-options.swatches { flex-wrap: wrap; overflow: visible; }
.av-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px; min-width: 72px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.av-chip.on { border-color: var(--brand); background: var(--brand-soft); }
.av-swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 0 0 2px var(--border); cursor: pointer; }
.av-swatch.on { box-shadow: 0 0 0 3px var(--brand); }
.av-save { position: sticky; bottom: calc(10px + var(--nav-space, 0px)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-top: 12px; padding: 8px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); transition: bottom 0.25s ease; }

.av-save .btn { width: auto; margin: 0; }
.av-save .btn.ghost { padding-inline: 14px; }
/* Na página do boneco o botão das piadas não fica por cima do "Guardar". */
body.hide-fab .joke-fab, body.hide-fab .ff-tab { display: none; }

/* Ingredientes na janela do produto: − para tirar, + para pôr mais */
.ing-list h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 16px 0 6px; font-size: 1rem; }
.ing-list h3 .hint { font-size: 0.78rem; font-weight: 600; }
.ing-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background 0.15s; }
.ing-row + .ing-row { border-top: 1px solid var(--border); }
.ing-row.more { background: var(--brand-soft); border-top-color: transparent; }
.ing-row.off .ing-name strong { text-decoration: line-through; color: var(--muted); }
.ing-name { display: grid; min-width: 0; }
.ing-name .hint { font-size: 0.8rem; }
.ing-row.more .ing-name .hint { color: var(--brand); font-weight: 700; }
.ing-qty { flex: none; }
.ing-qty button { width: 30px; height: 30px; }
.ing-qty button:disabled { opacity: 0.35; cursor: default; }
.ing-fixed { flex: none; width: 30px; text-align: center; color: var(--ok); font-weight: 800; }
/* Alterações no carrinho e no acompanhamento */
.cart-item .mods, .totals .mods { display: block; font-size: 0.82rem; font-weight: 600; color: var(--brand); line-height: 1.35; margin-top: 2px; }

/* Páginas legais e rodapé */
.legal { line-height: 1.6; }
.legal h1 { margin-bottom: 2px; }
.legal h2 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--brand); }
.site-footer { margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
.site-footer .who { flex: 1 1 100%; display: grid; gap: 3px; color: var(--muted); line-height: 1.45; }
.site-footer .who strong { color: var(--text); }
.legal-id { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 18px; }
.legal-id dt { font-weight: 800; color: var(--muted); }
.legal-id dd { margin: 0; font-weight: 600; }
.site-footer .who .contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer .who .contacts a { color: var(--brand); }
.site-footer .credits { flex: 1 1 100%; margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }
.site-footer .credits a { color: var(--text); }
.site-footer .livro { color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; background: var(--surface); }
.consent { font-size: 0.8rem; margin-top: 10px; text-align: center; }
.consent a { color: var(--brand); }

/* Alergénios */
.allergens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; font-size: 0.85rem; }
.allergens.unknown, .allergens.none { display: block; color: var(--muted); }
.allergens.none { color: var(--ok); font-weight: 600; }
.allergens a { color: var(--brand); }
.allergen-chip { display: inline-flex; gap: 4px; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: 0.8rem; }
.allergens.traces { display: block; margin-top: 6px; color: var(--muted); }
.ingredients-text { margin-top: 10px; font-size: 0.85rem; }
.ingredients-text summary { cursor: pointer; font-weight: 700; }
.ingredients-text p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.allergen-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.85rem; color: var(--muted); }
.allergen-line { padding: 10px 0; border-top: 1px solid var(--border); }
.allergen-line .allergens { margin-top: 4px; }

/* Mini-leitor da Playlist FF (continua a tocar enquanto se navega) */
.ff-player { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--nav-space, 0px)); z-index: 66; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); overflow: hidden; transition: bottom 0.25s ease; }
.ff-player-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.ff-player-bar > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-player-bar .btn { flex: none; padding: 6px 10px; }
.ff-player-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-weight: 800; cursor: pointer; }
.ff-player-embed { height: 80px; padding: 0 8px 8px; overflow: hidden; transition: height 0.25s ease, padding 0.25s ease; }
.ff-player-embed iframe { border-radius: 12px; display: block; }
.ff-player.mini .ff-player-embed { height: 0; padding-bottom: 0; }
/* Minimizado: só a barra (o leitor e o texto de ajuda não ficam por cima um do outro). */
.ff-player.mini .ff-player-tip { display: none; }
.ff-player-slot .hint { margin: 8px 4px; }
body.has-player { --player-space: 150px; }
body.has-player.player-mini { --player-space: 56px; }
body.has-player .cart-bar { bottom: calc(12px + var(--nav-space, 0px) + var(--player-space)); }
body.has-player .joke-fab { bottom: calc(86px + var(--nav-space, 0px) + var(--player-space)); }
body.has-player main.container { padding-bottom: calc(330px + env(safe-area-inset-bottom)); }
.g-music { margin-top: 10px; }
.ff-player-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 10px 8px; scrollbar-width: none; }
.ff-player-chips::-webkit-scrollbar { display: none; }
.ff-player-chips button { flex: none; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.ff-player-chips button.on { background: #1db954; border-color: #1db954; color: #fff; }
.ff-player.mini .ff-player-chips { display: none; }
body.has-player.player-chips { --player-space: 190px; }
body.has-player.player-chips.player-mini { --player-space: 56px; }
/* Leitor escondido de lado: a música continua; só fica a patilha verde na margem. */
body.has-player.player-tucked { --player-space: 0px; }
body.has-player.player-tucked main.container { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
.ff-player-bar { touch-action: pan-y; }
/* Setinha na margem para voltar a mostrar o que se escondeu (botão do FF, leitor de música). */
.edge-tab { position: fixed; z-index: 70; width: 26px; height: 48px; border: 0; padding: 0; display: grid; place-items: center; color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25); animation: tab-in 0.25s ease-out; -webkit-tap-highlight-color: transparent; }
.edge-tab[hidden] { display: none; }
.edge-tab.right { right: 0; border-radius: 10px 0 0 10px; }
.edge-tab.left { left: 0; border-radius: 0 10px 10px 0; }
.edge-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.edge-tab:active { filter: brightness(0.92); }
.edge-tab::before { content: ''; position: absolute; inset: -8px -6px; } /* área de toque maior que a setinha */
.ff-tab { background: var(--brand); }
.ff-player-tab { background: #1db954; bottom: calc(14px + var(--nav-space, 0px)); }
@keyframes tab-in { from { opacity: 0; } }

.joke-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.joke-main .btn { font-size: 0.9rem; padding: 13px 6px; }
.joke-actions .btn.music { background: #1db954; border-color: #1db954; color: #fff; }

/* Língua: bandeira no topo e menu Português / English */
.install-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 10px; border-radius: 10px; border: 2px solid var(--brand); background: transparent; color: var(--brand); font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.install-btn[hidden] { display: none; }
.install-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.install-btn:hover { background: var(--brand); color: #fff; }
@media (max-width: 480px) { .install-btn { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 400px) { .install-btn { width: 34px; height: 34px; } }
/* Com o botão de instalar visível, o topo do telemóvel aperta um pouco para o carrinho não sair do ecrã. */
@media (max-width: 480px) {
  .topbar .container:has(#install-btn:not([hidden])) { gap: 6px; }
  .topbar .container:has(#install-btn:not([hidden])) .logo-img { width: clamp(84px, 29vw, 140px); }
  .topbar .container:has(#install-btn:not([hidden])) :is(.install-btn, .lang-btn, .account-link) { width: 34px; height: 34px; }
  .topbar .container:has(#install-btn:not([hidden])) .about-link img { width: 32px; height: 32px; }
}
.lang-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface-2); padding: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.lang-btn svg { width: 24px; height: 16px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.lang-menu { position: fixed; z-index: 3000; min-width: 170px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); padding: 6px; display: grid; gap: 2px; }
.lang-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.on { background: var(--brand-soft); color: var(--brand); }
.lang-menu svg { width: 24px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
@media (max-width: 400px) { .lang-btn { width: 34px; height: 34px; } }
.promo-box { margin-top: 8px; }
.discounts-card .disc-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.discounts-card .disc-form h3 { margin: 0 0 4px; font-size: 1rem; }
.auth-card .forgot { margin-top: 8px; }
/* A bola do FF desliza para a margem quando se larga. */
.joke-fab.snapping { transition: left 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15), top 0.3s ease; }

/* ---------- Celebrações ---------- */
.festa { position: fixed; inset: 0; height: 100lvh; z-index: 4000; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; cursor: pointer;
  background: rgba(26, 15, 53, 0.96); opacity: 0; transition: opacity 0.35s ease; }
.festa.in { opacity: 1; }
.festa.out { opacity: 0; }
.festa-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.festa-box { position: relative; max-width: 420px; display: grid; justify-items: center; gap: 8px; }
.festa h2 { margin: 6px 0 0; font-size: 1.6rem; font-weight: 800; animation: festa-up 0.5s ease-out 0.5s both; }
.festa p { margin: 0; opacity: 0.9; font-weight: 600; animation: festa-up 0.5s ease-out 0.7s both; }
.festa-tap { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 0; right: 0; font-size: 0.8rem; opacity: 0.6 !important; animation: none !important; }
@keyframes festa-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Pedido: o FF entra na mota, salta, e no fim sai disparado */
.festa-ride { width: min(88vw, 380px); aspect-ratio: 3 / 2; }
.festa-ride img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; border-radius: 20px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 50%, #000 60%, transparent 100%);
  animation: festa-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) both, festa-bump 0.4s ease-in-out 0.9s 4 alternate; }
.festa.out .festa-ride img { animation: festa-out 0.45s cubic-bezier(0.6, 0, 0.9, 0.4) both; }
@keyframes festa-in { from { transform: translateX(-120vw) skewX(-10deg); } to { transform: none; } }
@keyframes festa-out { to { transform: translateX(130vw) skewX(-12deg); } }
@keyframes festa-bump { to { transform: translateY(-3px) rotate(-0.6deg); } }

@keyframes festa-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* FF Pass: os carimbos aparecem um a um */
.festa-card { width: min(88vw, 340px); padding: 14px; border-radius: 16px; background: var(--brand); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); animation: festa-pop 0.4s ease-out both; }
.festa-card-head { font-weight: 800; text-align: left; margin-bottom: 10px; }
.festa-stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.festa-stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); font-weight: 800; font-size: 0.85rem; }
.festa-stamp.on { background: #fff; color: var(--brand); animation: festa-stamp 0.3s ease-out both; animation-delay: calc(0.4s + var(--i) * 0.08s); }
.festa-stamp .i { width: 60%; height: 60%; stroke-width: 2.6; }
@keyframes festa-stamp { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .festa *, .festa { animation: none !important; transition: none !important; } }

/* ---------- Todos os meus pedidos ---------- */
.all-orders { margin-top: 10px; }
.history-filters { position: static; flex-wrap: wrap; overflow: visible; margin-bottom: 6px; }
.history-filters button { flex: none; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.history-filters button.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.history-sum { margin: 4px 0 10px; }
.back-link { display: inline-block; margin: 4px 0 6px; color: var(--muted); text-decoration: none; font-weight: 600; }

/* ---------- Convite para criar conta (FF Pass) ---------- */
.invite-modal { text-align: center; max-width: 420px; position: relative; }
.invite-x { position: absolute; top: 10px; right: 10px; }
/* Cartão do FF Pass: os primeiros carimbos marcam-se uma vez, ao abrir. */
.invite-pass { margin: 0 auto 14px; max-width: 300px; padding: 14px; border-radius: 14px; background: var(--brand); color: #fff; text-align: left; }
.ipass-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 10px; }
.ipass-head span + span { font-weight: 600; font-size: 0.8rem; opacity: 0.85; }
.ipass-stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.ipass-stamps span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); font-size: 0.7rem; font-weight: 800; }
.ipass-stamps span.on { background: #fff; color: var(--brand); animation: festa-stamp 0.3s ease-out both; animation-delay: calc(0.3s + var(--i) * 0.12s); }
.ipass-stamps span.r { background: #fff; color: var(--night); }
.ipass-stamps .i { width: 60%; height: 60%; stroke-width: 2.6; }
@media (prefers-reduced-motion: reduce) { .ipass-stamps span.on { animation: none; } }
.invite-modal h2 { margin: 6px 0 4px; }
.invite-modal .perks { text-align: left; margin: 12px 0 16px; }
.invite-actions { display: grid; gap: 8px; }
.invite-modal > .hint { margin: 12px 0 0; }
.pass-locked .row-buttons { margin-top: 12px; }
.pass-nudge { margin-top: 14px; }

/* ---------- Bebidas alcoólicas: só até às 23:45 ---------- */
.alcohol-note { margin: -4px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); font-weight: 600; font-size: 0.92rem; }
.alcohol-note.closed { background: var(--surface-2); }
/* Combos que se podem pedir várias vezes e Hora da Pré. */
.repeat-tag, .pre-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; font-style: normal; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; white-space: nowrap; }
.repeat-tag { color: #fff; background: var(--brand); }
.pre-tag { color: var(--brand); background: var(--brand-soft); }
.combo-rule { margin: -4px 0 12px; }
.pre-note { margin: -4px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.92rem; }
.pre-note.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.product.off .add { background: var(--surface-2); color: var(--muted); }
.product.off .add .i { width: 17px; height: 17px; }
.product.off .price { color: var(--muted); }
/* Produto ou combo que agora não se pode encomendar: vê-se tudo, o botão fica trancado e diz porquê. */
.order-lock { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 0.9rem; font-weight: 600; line-height: 1.4; }
.order-lock .i { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.btn.locked { background: var(--surface-2); border-color: var(--border); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn.locked .i { width: 16px; height: 16px; margin-right: 6px; }
/* "Não dá": abana de lado, curto. */
.nope { animation: nope 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes nope { 0%, 100% { translate: 0; } 20% { translate: -6px; } 40% { translate: 5px; } 60% { translate: -3px; } 80% { translate: 2px; } }
.order-lock.flash { animation: lock-flash 0.7s ease-out; }
@keyframes lock-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 40, 120, 0.45); background: var(--brand-soft); } 100% { box-shadow: 0 0 0 10px rgba(255, 40, 120, 0); } }
@media (prefers-reduced-motion: reduce) { .nope, .order-lock.flash { animation: none; } }

/* ---------- O FF na mota: toca e ele faz um fixe ---------- */
/* O FF já recortado (fundo transparente, com os riscos de velocidade, o brilho do farol e a sombra no chão): fica em cima da estrada. */
.hero .ff-rider { position: relative; display: block; width: 100%; max-width: 360px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero .ff-rider .art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transform-origin: 30% 92%; }
.hero .ff-rider .ff-move { position: absolute; inset: 0; height: 100%; }
.hero .ff-rider .ff-move[hidden] { display: none; }
/* O vídeo empacotado só alimenta o canvas: tem de estar na página (o iPhone não o descodifica fora dela), mas não se vê. */
.hero .ff-rider .ff-src { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero .ff-rider:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
.ff-rider.moving > .art:first-child { visibility: hidden; } /* a animação começa e acaba igual à foto: troca invisível */
/* Sem vídeo do gesto: o toque dá só um pequeno acelerar da mota. */
.ff-rider.fixe > .art:first-child { animation: ff-nudge 0.9s ease-in-out; }
/* Dica de que o FF se mexe ao tocar: um pequeno acelerão (sobe a frente da mota e volta), uma só vez. */
.ff-rider.hint > .art:first-child { animation: ff-nudge 1s ease-in-out; }
@keyframes ff-nudge {
  0%, 100% { transform: none; }
  25% { transform: rotate(-3deg) translateY(-3px); }
  45% { transform: rotate(0.5deg); }
  65% { transform: rotate(-1.5deg) translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) { .ff-rider.fixe > .art:first-child, .ff-rider.hint > .art:first-child { animation: none; } }
@media (min-width: 760px) { .hero .ff-rider { max-width: 480px; } }

.scratch-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: 0.9rem; }
.scratch-legend span { display: inline-flex; align-items: center; gap: 4px; }
.scratch-legend img { width: 26px; height: 26px; object-fit: cover; border-radius: 6px; }
.scratch-grid img { width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; pointer-events: none; user-select: none; }

/* ---------- Prémio da faculdade vencedora ---------- */
.faculty-reward { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid #f5b400; }
.faculty-reward .fr-icon { display: grid; color: #f5b400; }
.faculty-reward .fr-icon .i { width: 32px; height: 32px; }
.faculty-reward h2 { margin: 0 0 4px; font-size: 1.1rem; }
.faculty-reward p { margin: 0 0 4px; }
.last-winner { border-left: 4px solid #f5b400; }
.order-prizes { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit;
  border-left: 4px solid var(--brand); }
.order-prizes span { font-size: 0.95rem; }

/* ---------- Mais informações (o que a app tem de especial) ---------- */
.info-sheet .feature-list { flex: 1; overflow-y: auto; margin: 0; padding: 16px 16px 16px 18px; overscroll-behavior: contain; }
.feature-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 20px; line-height: 1.4; }
.feature-list li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
/* ---------- Carteira: dinheiro e prémios ---------- */
.wallet-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.wallet-split > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.wallet-split strong { font-size: 1.2rem; }
.wallet-split .hint { font-size: 0.78rem; }

/* ---------- Combos: ingredientes de cada produto ---------- */
.bundle-part { border: 1px solid var(--border); border-radius: 14px; margin: 10px 0; padding: 0 12px; background: var(--surface-2); }
.bundle-part summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; cursor: pointer; font-weight: 700; list-style: none; }
.bundle-part summary::-webkit-details-marker { display: none; }

.bundle-part summary .hint { font-weight: 500; text-align: right; flex: 1; }
.bundle-part[open] summary::after { content: '▲'; font-size: 0.8rem; }
.bundle-recipe { margin: 0 0 12px; line-height: 1.45; }
.bundle-choice { border: 1px solid var(--border); border-radius: 14px; margin: 10px 0; padding: 8px 12px 10px; background: var(--surface-2); }
.bundle-choice legend { font-weight: 700; padding: 0 4px; }
.choice-opt { display: flex; align-items: center; gap: 10px; padding: 8px 2px; cursor: pointer; font-weight: 600; }
.choice-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: 0 0 auto; }
.choice-opt span:first-of-type { flex: 1; }
.bundle-modal .actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 14px; }
.bundle-modal .actions .btn { white-space: nowrap; justify-content: center; }
.wallet-more summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 8px 0; }

/* ---------- Palavra-passe segura e confirmar email ---------- */
.check-email { text-align: center; }
.check-email .big { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.check-email .big .i { width: 30px; height: 30px; }

/* ---------- Grupo: participantes com os bonecos ---------- */
.g-tabs { margin-bottom: 14px; }
.g-avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 8px; }
.g-avatar { display: grid; justify-items: center; text-align: center; gap: 2px; }
.g-avatar strong { font-size: 0.92rem; }
.g-avatar .hint { font-size: 0.75rem; }
.g-avatar-pic { position: relative; width: 72px; height: 72px; }
.g-avatar.mine .g-avatar-pic { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 50%; }
.g-initial { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: 1.8rem; font-weight: 800; color: #fff;
  background: hsl(var(--h) 60% 45%); }
.g-crown { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 0.65rem; font-weight: 800; white-space: nowrap; }
.g-tick { position: absolute; bottom: -2px; right: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; font-weight: 800; font-size: 0.8rem; border: 2px solid var(--surface); }
.g-address { margin: 6px 0; font-weight: 600; }

/* ---------- Conta: menu, mensagens, amigos, segurança e ajuda ---------- */
.account-menu { padding: 4px 0; margin-bottom: 16px; }
.account-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.account-menu a:last-child { border-bottom: 0; }
.account-menu a:active { background: var(--surface-2); }
.am-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.am-icon .i { width: 22px; height: 22px; }
.am-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.am-text .hint { font-size: 0.85rem; }
.am-go { flex: none; color: var(--muted); display: grid; }
.menu-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 0.8rem; font-weight: 800; display: grid; place-items: center; }
/* Mensagens por ler: anel rosa à volta do ícone da conta */
.account-link.has-unread { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

.messages { list-style: none; margin: 0; padding: 0; }
.messages li { border-bottom: 1px solid var(--border); }
.messages li:last-child { border-bottom: 0; }
.messages li > a, .messages li > div { display: flex; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.msg-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.messages li.unread .msg-dot { background: var(--brand); }
.msg-text { display: grid; gap: 3px; min-width: 0; }
.messages li:not(.unread) strong { font-weight: 600; }
.msg-text time { font-size: 0.8rem; }

.friends-card p { margin-top: 0; }
.friend-code { display: grid; justify-items: center; gap: 4px; margin: 14px 0; padding: 16px; border: 2px dashed var(--brand); border-radius: 14px; background: var(--brand-soft); }
.friend-code strong { font-size: 1.8rem; letter-spacing: 0.08em; font-family: ui-monospace, 'SF Mono', Menlo, monospace; color: var(--brand); }
.friend-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0; max-width: 320px; }
.friend-dots span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--border); color: var(--muted); font-weight: 800; }
.friend-dots span.on { border-style: solid; border-color: var(--brand); background: var(--brand); color: #fff; }
.friend-dots .i { width: 55%; height: 55%; stroke-width: 2.6; }
.friend-reward { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--ok-soft); color: var(--text); }
.friend-reward .i { flex: none; color: var(--ok); width: 22px; height: 22px; }
.friend-list { list-style: none; margin: 0; padding: 0; }
.friend-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.friend-list li:first-child { border-top: 0; }
.friend-use .i { color: var(--brand); }
.ok-text { color: var(--ok); }
.ok-text .i { vertical-align: -0.2em; }

.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.help-contacts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Erro e sem internet (ilustrações animadas) ---------- */
.st-page { text-align: center; padding: 36px 16px 48px; max-width: 420px; margin: 0 auto; }
.st-page h2 { margin: 6px 0 6px; }
.st-page p { color: var(--muted); line-height: 1.45; margin: 0 0 18px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.st-art { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto; color: var(--text); overflow: visible; }
.st-bag { transform-box: fill-box; transform-origin: 30% 100%; animation: st-wobble 2.6s ease-in-out infinite; }
.st-burger { transform: translate(116px, 94px); animation: st-roll 1.1s cubic-bezier(.3, .7, .4, 1) both; }
.st-alert { transform-box: fill-box; transform-origin: 50% 100%; animation: st-pop 0.5s 0.9s ease-out both, st-pulse 2.6s 1.6s ease-in-out infinite; }
@keyframes st-wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@keyframes st-roll {
  0% { transform: translate(80px, 62px) rotate(-140deg); opacity: 0; }
  15% { opacity: 1; }
  70% { transform: translate(119px, 94px) rotate(12deg); }
  85% { transform: translate(116px, 90px) rotate(-3deg); }
  100% { transform: translate(116px, 94px) rotate(0); }
}
@keyframes st-pop { from { transform: scale(0); } 70% { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.st-scooter { animation: st-idle 0.5s ease-in-out infinite alternate; }
.st-signal rect { fill: currentColor; animation: st-bar 3s ease-in-out infinite; }
.st-signal .b4 { animation-delay: 0s; }
.st-signal .b3 { animation-delay: 0.25s; }
.st-signal .b2 { animation-delay: 0.5s; }
.st-signal .b1 { animation-delay: 0.75s; }
.st-cross { stroke-dasharray: 54; animation: st-cross 3s ease-in-out infinite; }
@keyframes st-idle { from { transform: translateY(0); } to { transform: translateY(-1.2px); } }
@keyframes st-bar { 0%, 10% { opacity: 1; } 30%, 80% { opacity: 0.18; } 100% { opacity: 1; } }
@keyframes st-cross { 0%, 35% { stroke-dashoffset: 54; } 50%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 54; } }

.st-offline-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--nav-space, 0px)); z-index: 150; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px;
  background: var(--night, #0f172a); color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(20px); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease;
}
.st-offline-bar.on { transform: none; opacity: 1; }
.st-offline-bar .st-art { width: 76px; max-width: none; margin: 0; flex: none; color: #fff; }
.st-offline-bar strong { display: block; }
.st-offline-bar span { font-size: 0.88rem; opacity: 0.8; line-height: 1.35; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--nav-space, 0px)); z-index: 150; max-width: 560px; margin: 0 auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22); transform: translateY(24px); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease;
  max-height: calc(100dvh - 120px); overflow-y: auto;
}
.cookie-banner.on { transform: none; opacity: 1; }
.cb-head { display: flex; gap: 12px; align-items: flex-start; }
.cb-art { width: 42px; height: 42px; flex: none; }
.cb-head strong { display: block; margin-bottom: 2px; }
.cb-head p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.cb-head a { color: var(--brand); font-weight: 600; }
.cb-details { margin-top: 10px; border-top: 1px solid var(--border); }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.cb-row small { display: block; color: var(--muted); font-size: 0.82rem; }
.cb-row input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.cb-actions .btn { flex: 1 1 auto; }
.ff-player-consent { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.ff-player-consent .hint { margin: 0; flex: 1; }

/* ---------- Página não encontrada (404) ---------- */
.nf-page { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; text-align: center; }
.nf-page h1 { font-size: clamp(1.35rem, 5vw, 1.8rem); margin: 22px 0 8px; line-height: 1.2; }
.nf-page > p { color: var(--muted); line-height: 1.5; margin: 0 auto 20px; max-width: 440px; }
.nf-scene { position: relative; overflow: hidden; border-radius: 24px; background: radial-gradient(90% 60% at 50% 0%, rgba(255, 45, 122, 0.18) 0%, transparent 70%), #07090f; aspect-ratio: 4 / 3.1; }
.nf-code { position: absolute; top: 6%; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 0.04em;
  font-weight: 900; font-size: clamp(4.6rem, 26vw, 8.5rem); line-height: 1; color: var(--brand); letter-spacing: -0.02em; text-shadow: 0 10px 40px rgba(255, 45, 122, 0.35); }
.nf-code > span { display: inline-block; animation: nf-drop 0.7s cubic-bezier(.2, .9, .3, 1.3) both; }
.nf-code > span:nth-child(2) { animation-delay: 0.12s; }
.nf-code > span:nth-child(3) { animation-delay: 0.24s; }
.nf-zero { width: 0.72em; height: 0.9em; display: inline-grid !important; place-items: center; }
.nf-zero svg { width: 100%; height: 100%; color: #fff; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); transform-origin: 50% 100%; animation: nf-search 2.8s 0.9s ease-in-out infinite; }
.nf-ride { position: absolute; left: 50%; bottom: 4%; width: 78%; transform: translateX(-50%); animation: nf-in 1.1s 0.3s cubic-bezier(.2, .8, .25, 1) both; }
.nf-ride img { display: block; width: 100%; height: auto; mix-blend-mode: lighten; animation: nf-bump 0.34s 1.4s ease-in-out infinite alternate;
  -webkit-mask-image: radial-gradient(50% 50% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(50% 50% at 50% 52%, #000 62%, transparent 100%); }
.nf-bubble { position: absolute; top: 2%; right: -2%; background: #fff; color: #0f172a; font-weight: 800; font-size: clamp(0.72rem, 3vw, 0.9rem); padding: 7px 11px; border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); white-space: nowrap; animation: nf-pop 0.45s 1.5s cubic-bezier(.2, .9, .3, 1.4) both; }
.nf-bubble::after { content: ''; position: absolute; left: 18px; bottom: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.nf-road { position: absolute; left: 0; right: 0; bottom: 6%; height: 4px; opacity: 0.55;
  background: repeating-linear-gradient(90deg, #fff 0 26px, transparent 26px 52px); animation: nf-road 0.6s linear infinite; }
@keyframes nf-drop { from { transform: translateY(-60%) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nf-in { from { transform: translateX(-120%); } to { transform: translateX(-50%); } }
@keyframes nf-bump { from { transform: translateY(0); } to { transform: translateY(-1.5%); } }
@keyframes nf-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nf-search { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes nf-road { from { background-position: 0 0; } to { background-position: -52px 0; } }

@media (prefers-reduced-motion: reduce) {
  .nf-page *, .nf-road { animation: none !important; }
  .st-art *, .st-offline-bar, .cookie-banner { animation: none !important; transition: none !important; }
  .st-burger { transform: translate(116px, 94px); }
  .st-signal rect { opacity: 0.25; }
}

/* ---------- Guia "instalar no iPhone" (animação em 3 passos, 7,5 s em ciclo) ---------- */
.ig h2 { margin: 0 0 6px; font-size: 1.25rem; }
.ig > .hint { margin: 0 0 14px; }
.ig svg { width: 1.1em; height: 1.1em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ig-phone { position: relative; width: 176px; height: 228px; margin: 0 auto 14px; border: 7px solid #0f172a; border-radius: 28px; background: #f1f3f7; overflow: hidden; color: #111827; }
.ig-phone::before { content: ''; position: absolute; top: 5px; left: 50%; width: 46px; height: 12px; margin-left: -23px; border-radius: 8px; background: #0f172a; z-index: 3; }
.ig-scene { position: absolute; inset: 0; opacity: 0; animation: ig-scene 7.5s infinite; }
.ig-s2 { animation-delay: 2.5s; }
.ig-s3 { animation-delay: 5s; }
@keyframes ig-scene { 0% { opacity: 0; } 3%, 31% { opacity: 1; } 34%, 100% { opacity: 0; } }
.ig-page { padding: 26px 12px 0; }
.ig-page i { display: block; height: 11px; margin-bottom: 9px; border-radius: 6px; background: #d7dbe3; }
.ig-page i:first-child { height: 58px; border-radius: 10px; background: linear-gradient(135deg, #1e1b3a, #ff2d7a); }
.ig-page i.short { width: 60%; }
.ig-page.dim { filter: brightness(0.75); }
.ig-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #fff; border-top: 1px solid #e5e7eb; }
.ig-url { flex: 1; font-size: 9px; color: #6b7280; background: #eef0f4; border-radius: 8px; padding: 5px 8px; }
.ig-share { color: #0a84ff; display: grid; place-items: center; }
.ig-share svg { width: 18px; height: 18px; }
.ig-tap { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(10, 132, 255, 0.35); border: 2px solid rgba(10, 132, 255, 0.8); animation: ig-tap 1.1s ease-out infinite; }
.ig-tap1 { left: 147px; top: 194px; }
.ig-tap2 { left: 128px; top: 146px; }
@keyframes ig-tap { 0% { transform: scale(0.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.ig-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 8px 12px; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18); animation: ig-sheet 7.5s 2.5s infinite; }
@keyframes ig-sheet { 0% { transform: translateY(100%); } 7%, 100% { transform: none; } }
.ig-row { display: flex; align-items: center; justify-content: space-between; font-size: 10px; padding: 8px; border-radius: 8px; }
.ig-row + .ig-row { border-top: 1px solid #f0f1f4; }
.ig-row.hl { background: rgba(10, 132, 255, 0.12); font-weight: 700; color: #0a57c2; }
.ig-home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; padding: 30px 14px 0; background: linear-gradient(160deg, #1e3a8a, #0f172a); position: absolute; inset: 0; align-content: start; }
.ig-home i { aspect-ratio: 1; border-radius: 9px; background: rgba(255, 255, 255, 0.28); }
.ig-app { display: grid; justify-items: center; min-width: 0; gap: 3px; animation: ig-pop 7.5s 5s infinite; }
.ig-app img { width: 100%; aspect-ratio: 1; border-radius: 9px; box-shadow: 0 0 0 2px #fff; }
.ig-app small { font-size: 6.5px; color: #fff; font-weight: 600; white-space: nowrap; }
@keyframes ig-pop { 0%, 6% { transform: scale(0); } 11% { transform: scale(1.18); } 14%, 100% { transform: scale(1); } }
.ig-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: ig; display: grid; gap: 6px; }
.ig-steps li { counter-increment: ig; display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; line-height: 1.4; animation: ig-step 7.5s infinite; }
.ig-steps li::before { content: counter(ig); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; background: var(--surface-2); color: var(--text); }
.ig-steps .ig-l2 { animation-delay: 2.5s; }
.ig-steps .ig-l3 { animation-delay: 5s; }
@keyframes ig-step { 0%, 33% { background: rgba(255, 45, 122, 0.1); } 34%, 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .ig * { animation: none !important; }
  .ig-s2 { opacity: 1; }
}

/* ---------- Escolher a residência (pinos no mapa) ---------- */
.res-hint { margin: -2px 0 8px; }
.res-map { height: 300px; }
.map-pin.res span { width: 30px; height: 30px; }
.map-pin.res span .i { width: 16px; height: 16px; }
.map-pin.res-on span { width: 38px; height: 38px; margin: -4px 0 0 -1px; box-shadow: 0 0 0 4px rgba(255, 45, 122, 0.3), 0 2px 8px rgba(0, 0, 0, 0.35); }
.res-select { margin-top: 10px; }
.res-card { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.res-card > .i { color: var(--brand); width: 20px; height: 20px; margin-top: 2px; }
.res-card div { display: grid; gap: 2px; }
.res-card span { color: var(--muted); font-size: 0.9rem; }
.res-card em { font-style: normal; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.res-card em:empty { display: none; }

/* ---------- Código de entrega (o cliente diz ao estafeta) ---------- */
.delivery-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0; border: 2px dashed var(--brand); background: var(--brand-soft); }
.delivery-code > div { display: grid; gap: 4px; }
.delivery-code p { margin: 0; flex: 1 1 200px; line-height: 1.4; }
.dc-digits { display: flex; gap: 6px; }
.dc-digits span { display: grid; place-items: center; width: 42px; height: 52px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.delivery-code.now { animation: dc-pulse 1.6s ease-in-out 3; }
@keyframes dc-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 45, 122, 0.25); } }
@media (prefers-reduced-motion: reduce) { .delivery-code.now { animation: none; } }

/* Pedido aberto por um link copiado (sem dados pessoais) */
.limited-note { display: flex; gap: 12px; align-items: flex-start; }
.limited-note .i { flex: none; width: 22px; height: 22px; color: var(--muted); margin-top: 2px; }
.limited-note p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 0.92rem; }
.limited-note strong { color: var(--text); }

.ff-player-tip { margin: 6px 12px 10px; font-size: 0.8rem; line-height: 1.35; }

/* Reclamação depois da entrega */
.review-card { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.review-card p { margin: 4px 0 0; }
.review-card.done { justify-content: flex-start; flex-wrap: nowrap; }
.review-card > .i, .review-card > svg { color: var(--ok); }
.complaint-card { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.complaint-card p { margin: 4px 0 0; }
.complaint-card.done { justify-content: flex-start; flex-wrap: nowrap; }
.complaint-card.done .i { flex: none; width: 22px; height: 22px; color: var(--ok); }
.complaint-card.done p { margin: 0; line-height: 1.45; }
.modal.complaint fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.modal.complaint legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.cp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-opt { position: relative; cursor: pointer; }
.cp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cp-opt span { display: inline-block; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 0.9rem; font-weight: 600; }
.cp-opt input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.cp-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.modal.complaint textarea { width: 100%; }
.cp-photo-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-photo-buttons .btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cp-photo-buttons .i { width: 18px; height: 18px; }
.cp-preview { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cp-preview img { max-width: 100%; max-height: 240px; border-radius: 12px; border: 1px solid var(--border); }

/* Esqueletos de carregamento */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sk-wrap { padding-top: 8px; }
.sk { display: block; background: var(--surface-2); border-radius: 8px; position: relative; overflow: hidden; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: sk-shine 1.3s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent); } }
@keyframes sk-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-line.sk-small { height: 10px; }
.sk-line.sk-h1 { height: 22px; margin: 10px 0; }
.sk-line.sk-h2 { height: 16px; margin: 12px 0 10px; }
.sk-line.sk-big { height: 26px; }
.sk-line.sk-pill { height: 20px; border-radius: 99px; }
.sk-line.sk-center { margin-left: auto; margin-right: auto; }
.sk-line.sk-sep { height: 1px; margin: 14px 0; }
.sk-card { margin-bottom: 12px; }
.sk-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.sk-row .sk-line { flex: none; }
/* Ementa */
.sk-hero { display: flex; gap: 16px; align-items: center; margin: 8px 0 16px; }
.sk-art { flex: none; width: 38%; max-width: 220px; aspect-ratio: 1; border-radius: 20px; }
.sk-hero-text { flex: 1; }
.sk-chips, .sk-filters { display: flex; gap: 8px; overflow: hidden; margin: 6px 0 12px; }
.sk-chip { flex: none; width: 92px; height: 34px; border-radius: 10px; }
.sk-products { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 18px; }
.sk-product { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.sk-thumb { flex: none; width: 84px; height: 84px; border-radius: 12px; }
.sk-product-text { flex: 1; }
/* Pedido */
.sk-track-head { text-align: center; margin-bottom: 16px; }
.sk-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 6px; }
.sk-map { height: 260px; border-radius: 16px; margin-bottom: 16px; }
.sk-step { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.sk-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; }
/* FF Pass, carteira, ranking */
.sk-stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 8px; }
.sk-stamp { width: 100%; height: auto; aspect-ratio: 1; }
.sk-wallets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sk-rank { padding: 6px 0; justify-content: flex-start; }
.sk-bar { flex: none; height: 10px; margin-left: auto; border-radius: 99px; }
/* Conta sem faculdade: convite para escolher (prémio do ranking) */
.faculty-nudge { display: flex; gap: 12px; align-items: flex-start; border-color: var(--brand); background: var(--brand-soft); }
.faculty-nudge > .i { flex: none; width: 24px; height: 24px; color: var(--brand-dark); margin-top: 2px; }
.faculty-nudge p { margin: 4px 0 10px; }
.prize-note { margin: 8px 0 0; }

.cp-notice { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 0.85rem; line-height: 1.4; }

/* Ecrãs muito estreitos (320 px): no carrinho, a quantidade passa para baixo do nome, para o nome não partir palavra a palavra. */
@media (max-width: 360px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item .info { flex-basis: calc(100% - 64px); }
  .cart-item > div:last-child { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left !important; }
  .cart-item > div:last-child > div { margin-top: 0 !important; }
}
