/* =====================================================================
   Trip4All · App do passageiro
   VOICE   elegante, calmo, de agência de luxo; nada de ruído
   IDEA    um passaporte/caderno de viagem: capa, carimbos, cartão de embarque
   PICTURE capa da viagem em tela cheia, cartão de embarque recortado
   COLOUR  azul-marinho #0E2238, creme #F5EFE3, dourado #B08D4F (marca Trip4All)
   TYPE    Lora (títulos) + Poppins (texto)
   ===================================================================== */

:root {
  color-scheme: light dark;
  --navy: #0E2238;
  --navy-2: #16304D;
  --head: #0E2238;
  --gold: #B08D4F;
  --gold-2: #D9BE86;
  --bg: #F5EFE3;
  --card: #FBF8F1;
  --card-2: #FFFFFF;
  --ink: #1F2A37;
  --muted: #6B6F76;
  --line: #E4D9C0;
  --line-soft: #EFE6D3;
  --shadow: 0 1px 2px rgba(14, 34, 56, .06), 0 8px 24px rgba(14, 34, 56, .08);
  --shadow-lg: 0 2px 6px rgba(14, 34, 56, .08), 0 18px 48px rgba(14, 34, 56, .16);
  --ok: #2E7D5B;
  --ok-bg: #E3F1E9;
  --warn: #A86A12;
  --warn-bg: #FBEFD9;
  --bad: #B23B32;
  --bad-bg: #F8E1DE;
  --info: #2F6FA3;
  --info-bg: #E2EDF6;

  --t-air: #2F7FB8;
  --t-hotel: #8A5A86;
  --t-ground: #4E8B5F;
  --t-tour: #B7832F;
  --t-food: #B5523B;
  --t-rail: #3D6E8F;
  --t-sea: #2C6A8C;
  --t-safe: #5E6B7A;
  --t-other: #7A6A55;

  --r: 20px;
  --r-sm: 14px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0A1624;
    --card: #11223A;
    --card-2: #152A45;
    --ink: #EFE7D6;
    --muted: #A2A9B4;
    --line: #233A57;
    --line-soft: #1B3150;
    --gold: #D2B377;
    --head: #1A3858;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
    --ok-bg: #173A2C; --ok: #7FD1A7;
    --warn-bg: #3E2E12; --warn: #F0C06A;
    --bad-bg: #44201D; --bad: #F2948B;
    --info-bg: #17324A; --info: #8EC3EC;
    --t-air: #6FB3E4; --t-hotel: #C597C1; --t-ground: #86C595; --t-tour: #E2B35F;
    --t-food: #E58C74; --t-rail: #82B3D3; --t-sea: #74B4D4; --t-safe: #A8B5C4; --t-other: #C7B79E;
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0A1624; --card: #11223A; --card-2: #152A45; --ink: #EFE7D6; --muted: #A2A9B4;
  --line: #233A57; --line-soft: #1B3150; --gold: #D2B377; --head: #1A3858;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.45);
  --ok-bg: #173A2C; --ok: #7FD1A7; --warn-bg: #3E2E12; --warn: #F0C06A;
  --bad-bg: #44201D; --bad: #F2948B; --info-bg: #17324A; --info: #8EC3EC;
  --t-air: #6FB3E4; --t-hotel: #C597C1; --t-ground: #86C595; --t-tour: #E2B35F;
  --t-food: #E58C74; --t-rail: #82B3D3; --t-sea: #74B4D4; --t-safe: #A8B5C4; --t-other: #C7B79E;
}
:root[data-theme=light] { color-scheme: light; }

* { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { background: var(--bg); overflow-x: hidden; }
body {
  font: 15px/1.55 var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
input, textarea, select { font: inherit; font-size: 16px; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* -------- moldura: no computador o app fica numa coluna de celular -------- */
#app {
  position: relative;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
}
@media (min-width: 640px) {
  html { background: radial-gradient(1200px 600px at 50% -10%, #1B3554 0%, #0E2238 55%, #0A1828 100%) fixed; }
  #app { box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.45); }
}

.screen { min-height: 100dvh; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); animation: enter .32s cubic-bezier(.2,.7,.2,1) both; }
.screen.no-tabs { padding-bottom: calc(var(--safe-b) + 32px); }
.screen.back-anim { animation-name: enter-back; }
@keyframes enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.pad { padding-inline: 20px; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.nowrap { white-space: nowrap; }

/* ------------------------------ tipografia ------------------------------ */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.kicker {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.rule { width: 34px; height: 2px; background: var(--gold); border-radius: 2px; margin: 10px 0 0; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-inline: 20px; margin-bottom: 12px; }
.section-head h2 { font-size: 20px; }
.section-head .kicker { display: block; margin-bottom: 4px; }
.link { background: none; border: 0; padding: 6px 0; color: var(--gold); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }

/* ------------------------------- botões ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 14px; border: 0; white-space: nowrap;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  background: var(--navy); color: #F5EFE3; transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--gold { background: linear-gradient(180deg, #C7A465, #A9864A); color: #0E2238; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--soft { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-soft); }
.btn--wa { background: #1F8F55; color: #fff; }
.btn--danger { background: var(--bad-bg); color: var(--bad); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
:root[data-theme=dark] .btn:not(.btn--gold):not(.btn--ghost):not(.btn--soft):not(.btn--wa):not(.btn--danger),
.dark-btn { background: #F5EFE3; color: #0E2238; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .btn:not(.btn--gold):not(.btn--ghost):not(.btn--soft):not(.btn--wa):not(.btn--danger) { background: #EFE3C8; color: #0E2238; } }

.iconbtn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer;
}
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn--glass { background: rgba(10, 22, 36, .38); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.iconbtn--soft { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.iconbtn .dot { position: absolute; }

/* ------------------------------- topo ------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  min-height: 56px; padding: calc(var(--safe-t) + 6px) 8px 6px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line-soft); }
.topbar__title { text-align: center; font: 600 16px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__sub { display: block; font: 500 11px/1.3 var(--sans); color: var(--muted); letter-spacing: .02em; }
.topbar__right { display: flex; justify-content: flex-end; }

/* ------------------------------- barra de abas ------------------------------- */
.tabbar {
  position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; margin: 0 auto;
  max-width: 520px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 6px 8px var(--safe-b);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(20px); -webkit-backdrop-filter: saturate(1.5) blur(20px);
  border-top: 1px solid var(--line-soft);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font: 500 10.5px/1 var(--sans); letter-spacing: .02em; text-decoration: none; position: relative;
}
.tab svg { width: 23px; height: 23px; transition: transform .2s; }
.tab[aria-current=page] { color: var(--ink); }
.tab[aria-current=page] svg { color: var(--gold); transform: translateY(-1px); }
.tab[aria-current=page]::before { content: ""; position: absolute; top: -6px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.tab .badge { position: absolute; top: 2px; left: calc(50% + 6px); }

.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 600 10.5px/18px var(--sans); text-align: center; }

/* ------------------------------- cartões ------------------------------- */
.card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  border: 1px solid var(--line-soft); overflow: hidden;
}
.card--gold { border-top: 0; position: relative; }
.card--gold::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.card__body { padding: 18px; }
.mx { margin-inline: 20px; }

/* ------------------------------- selos ------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 13px; font: 600 11.5px/1 var(--sans); white-space: nowrap;
  background: var(--line-soft); color: var(--ink);
}
.pill svg { width: 14px; height: 14px; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--gold { background: rgba(176, 141, 79, .16); color: var(--gold); }
.pill--glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill .live { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ------------------------------- chips e segmentos ------------------------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 19px; cursor: pointer; scroll-snap-align: start;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 500 13px/1 var(--sans); white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; }
.chip[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #F5EFE3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .chip[aria-pressed=true] { background: #EFE3C8; border-color: #EFE3C8; color: #0E2238; } }
:root[data-theme=dark] .chip[aria-pressed=true] { background: #EFE3C8; border-color: #EFE3C8; color: #0E2238; }
.chip .n { opacity: .6; font-size: 12px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 20px; border-radius: 14px; background: var(--line-soft); }
.seg button { height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: 500 13.5px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.seg button[aria-selected=true] { background: var(--card-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14,34,56,.12); }

/* ------------------------------- entrada ------------------------------- */
.login {
  position: relative; min-height: 100dvh; overflow: hidden; color: #F5EFE3;
  background: #0E2238; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 48px) 28px calc(var(--safe-b) + 28px);
}
.login__art { position: absolute; inset: 0; z-index: 0; }
.login__art svg { width: 100%; height: 100%; }
.login > *:not(.login__art) { position: relative; z-index: 1; }
.login__brand { text-align: center; }
.login__brand .logo { margin: 0 auto; }
.login__tag { margin-top: 18px; font: italic 500 22px/1.3 var(--serif); color: #EFE3C8; text-align: center; text-wrap: balance; }
.login__form { margin-top: auto; padding-top: 40px; }
.login__label { display: block; text-align: center; font: 600 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.codebox {
  width: 100%; height: 66px; border-radius: 18px; text-align: center;
  font: 600 28px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-indent: .32em;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(217, 190, 134, .45);
  caret-color: var(--gold-2); outline: none; transition: border-color .2s, background .2s;
}
.codebox::placeholder { color: rgba(245, 239, 227, .28); letter-spacing: .32em; }
.codebox:focus { border-color: var(--gold-2); background: rgba(255,255,255,.12); }
.codebox.err { border-color: #F2948B; animation: shake .38s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.login__err { min-height: 22px; margin: 10px 0 4px; text-align: center; font-size: 14.5px; font-weight: 500; color: #FFC4BC; }
.login__help { margin-top: 20px; text-align: center; font-size: 15px; color: #F5EFE3; line-height: 1.6; }
.login__help a { color: #E8CF98; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 8px 6px; font-size: 15px; }
.login__help button { background: none; border: 0; color: #E8CF98; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 6px; font-size: 15px; }
.login__foot { margin-top: 26px; text-align: center; font-size: 12.5px; color: rgba(245,239,227,.7); }

/* logo provisório */
.logo { display: inline-flex; align-items: baseline; gap: 1px; font: 600 34px/1 var(--serif); letter-spacing: -.01em; }
.logo b { color: var(--gold-2); font-weight: 700; }
.logo small { display: block; }
.logo-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.logo-wrap .plane { width: 44px; height: 44px; color: var(--gold-2); }
.logo-img { max-height: 64px; width: auto; }

/* ------------------------------- minhas viagens ------------------------------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--safe-t) + 18px) 20px 6px; }
.hello h1 { font-size: 28px; }
.hello .kicker { display: block; margin-bottom: 6px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-2); font: 600 15px/1 var(--serif); border: 0; cursor: pointer;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold);
}
.avatar--sm { width: 34px; height: 34px; font-size: 13px; box-shadow: none; }

.tripcard {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  border: 0; padding: 0; border-radius: 24px; overflow: hidden; color: #fff;
  background: var(--navy); box-shadow: var(--shadow-lg); isolation: isolate;
  aspect-ratio: 4 / 4.6; max-height: 520px;
}
.tripcard--row { aspect-ratio: auto; height: 132px; display: grid; grid-template-columns: 116px 1fr; border-radius: 20px; color: var(--ink); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.tripcard__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tripcard:active .tripcard__img { transform: scale(1.02); }
.tripcard__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,36,.35) 0%, rgba(10,22,36,0) 28%, rgba(10,22,36,.25) 52%, rgba(10,22,36,.92) 100%); }
.tripcard__top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; }
.tripcard__bottom { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.tripcard__bottom .kicker { color: var(--gold-2); }
.tripcard__bottom h2 { font-size: 30px; margin-top: 8px; color: #fff; }
.tripcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.85); }
.tripcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tripcard__meta svg { width: 15px; height: 15px; opacity: .85; }
.tripcard__progress { margin-top: 14px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.tripcard__progress i { display: block; height: 100%; background: var(--gold-2); border-radius: 2px; }
.tripcard--row .tripcard__thumb { width: 100%; height: 100%; object-fit: cover; }
.tripcard--row .tripcard__info { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.tripcard--row h3 { font-size: 17px; }
.tripcard--row .kicker { font-size: 10px; letter-spacing: .14em; }
.tripcard--row .meta { font-size: 12.5px; color: var(--muted); }
.list-gap > * + * { margin-top: 12px; }

/* ------------------------------- início da viagem ------------------------------- */
.hero { position: relative; height: min(58vh, 460px); min-height: 360px; color: #fff; isolation: isolate; overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,36,.55) 0%, rgba(10,22,36,0) 24%, rgba(10,22,36,.08) 38%, rgba(10,22,36,.62) 62%, rgba(10,22,36,.94) 100%); }
.hero__content, .tripcard__bottom, .dhero__content { text-shadow: 0 1px 12px rgba(6,14,24,.45); }
.hero__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: calc(var(--safe-t) + 10px) 12px 0; }
.hero__bar .group { display: flex; gap: 8px; }
.hero__content { position: absolute; left: 20px; right: 20px; bottom: 54px; }
.hero__content .kicker { color: var(--gold-2); }
.hero__content h1 { font-size: clamp(32px, 9vw, 42px); margin-top: 10px; color: #fff; line-height: 1.05; }
.hero__phrase { margin-top: 8px; font: italic 400 16px/1.4 var(--serif); color: rgba(255,255,255,.88); text-wrap: balance; }
.hero__dates { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.status-card { position: relative; z-index: 2; margin: -36px 20px 0; padding: 18px 18px 16px; }
.status-row { display: flex; align-items: center; gap: 16px; }
.status-big { font: 600 40px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.status-big small { font: 500 13px/1.2 var(--sans); color: var(--muted); display: block; letter-spacing: 0; margin-top: 4px; }
.status-sep { width: 1px; align-self: stretch; background: var(--line); }
.status-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1; text-align: center; }
.status-stats b { display: block; font: 600 20px/1.1 var(--serif); }
.status-stats span { font-size: 11px; color: var(--muted); line-height: 1.2; display: block; margin-top: 3px; }
.progress { margin-top: 14px; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.next-card { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; cursor: pointer; width: 100%; text-align: left; border: 1px solid var(--line-soft); background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.next-card__when { flex: none; width: 64px; text-align: center; padding: 10px 0; border-radius: 14px; background: var(--head); color: #F5EFE3; }
.next-card__when b { display: block; font: 600 20px/1 var(--serif); }
.next-card__when span { display: block; font: 600 10px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }
.next-card__body { flex: 1; }
.next-card__body .kicker { font-size: 10px; }
.next-card__title { font: 600 16px/1.3 var(--serif); margin-top: 3px; }
.next-card__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.next-card > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }

.alert-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--warn-bg); color: var(--warn); border: 0; width: 100%; text-align: left; cursor: pointer; }
.alert-banner.bad { background: var(--bad-bg); color: var(--bad); }
.alert-banner svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alert-banner b { display: block; font-size: 14px; }
.alert-banner span { display: block; font-size: 13px; line-height: 1.45; color: var(--ink); opacity: .85; margin-top: 2px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-inline: 20px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 104px;
  padding: 14px; border-radius: 18px; cursor: pointer; text-align: left; text-decoration: none;
  background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); color: var(--ink);
}
.tile__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.tile__ico svg { width: 20px; height: 20px; }
.tile b { font: 600 14px/1.2 var(--sans); margin-top: auto; }
.tile small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.people { display: flex; align-items: center; gap: 12px; }
.people__faces { display: flex; }
.people__faces .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.people__faces .avatar:first-child { margin-left: 0; }

.consult { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.consult__txt { flex: 1; }
.consult__txt b { display: block; font: 600 15px/1.3 var(--serif); }
.consult__txt span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------- roteiro / linha do tempo ------------------------------- */
.filterbar { position: sticky; top: calc(56px + var(--safe-t)); z-index: 15; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 8px 0 6px; }
.day { margin: 0 20px 14px; }
.day__head {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--head); color: #F5EFE3; position: relative;
}
.day.today .day__head { box-shadow: 0 0 0 2px var(--gold-2), 0 10px 26px rgba(176,141,79,.25); }
.day.past .day__head { opacity: .8; }
.day__date { text-align: center; border-right: 1px solid rgba(217,190,134,.3); padding-right: 12px; }
.day__date b { display: block; font: 600 26px/1 var(--serif); }
.day__date span { display: block; font: 600 10px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.day__title { font: 600 15.5px/1.25 var(--serif); }
.day__sub { font-size: 12px; color: rgba(245,239,227,.7); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.day__sub svg { width: 13px; height: 13px; }
.day__icons { display: flex; gap: 2px; }
.day__icons svg { width: 17px; height: 17px; opacity: .22; }
.day__icons svg.on { opacity: 1; color: var(--gold-2); }
.day__tag { position: absolute; top: -9px; right: 14px; }
.day__body { margin: 0 6px; padding: 6px 0 2px; background: var(--card); border: 1px solid var(--line-soft); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: var(--shadow); }
.day__text { padding: 12px 16px 4px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.day__text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.day__more { padding: 0 16px; }
.item {
  position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 14px 12px 14px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; text-decoration: none;
}
.item + .item::before { content: ""; position: absolute; left: 31px; top: -10px; height: 20px; border-left: 1.5px dashed var(--line); }
.item__ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.item__ico svg { width: 18px; height: 18px; }
.item__label { font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.item__title { font: 600 15px/1.3 var(--sans); margin-top: 2px; }
.item__sub { font-size: 13px; color: var(--muted); margin-top: 1px; line-height: 1.45; }
.item__right { display: flex; align-items: center; gap: 4px; color: var(--muted); font: 600 13px/1 var(--sans); padding-top: 2px; white-space: nowrap; }
.item__right svg { width: 16px; height: 16px; }
.item__right .time { color: var(--ink); }
.item__right s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.item.changed .item__right .time { color: var(--warn); }
.overnight { display: flex; align-items: center; gap: 8px; margin: 2px 16px 10px; padding: 9px 12px; border-radius: 12px; background: var(--line-soft); font-size: 12.5px; color: var(--muted); }
.overnight svg { width: 15px; height: 15px; color: var(--t-hotel); flex: none; }
.overnight b { color: var(--ink); font-weight: 600; }
.free-day { padding: 12px 16px 14px; font-size: 13px; color: var(--muted); font-style: italic; font-family: var(--serif); }

/* ------------------------------- cartão de embarque ------------------------------- */
.pass { margin: 8px 20px 0; filter: drop-shadow(0 14px 30px rgba(14,34,56,.18)); }
.pass__top {
  position: relative; padding: 22px 22px 26px; border-radius: 22px 22px 0 0; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #24496F 0%, #0E2238 60%);
}
.pass__top::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(217,190,134,.18); }
.pass__airline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pass__airline b { font: 600 14px/1.2 var(--sans); letter-spacing: .02em; }
.pass__route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 22px; }
.pass__iata { font: 600 44px/1 var(--sans); letter-spacing: .02em; }
.pass__city { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; }
.pass__time { font: 600 18px/1 var(--serif); margin-top: 10px; color: var(--gold-2); }
.pass__time s { font: 500 13px/1 var(--sans); color: rgba(255,255,255,.5); margin-right: 6px; }
.pass__time sup { font: 600 10px/1 var(--sans); color: rgba(255,255,255,.7); margin-left: 2px; }
.pass__right { text-align: right; }
.pass__arc { width: 92px; color: var(--gold-2); }
.pass__arc svg { width: 100%; height: auto; display: block; }
.pass__cut { position: relative; height: 28px; background: var(--card); }
.pass__cut::before, .pass__cut::after { content: ""; position: absolute; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.pass__cut::before { left: -14px; } .pass__cut::after { right: -14px; }
.pass__cut i { position: absolute; left: 22px; right: 22px; top: 13px; border-top: 2px dashed var(--line); }
.pass__top + .pass__cut { margin-top: -1px; }
.pass__body { background: var(--card); border-radius: 0 0 22px 22px; padding: 4px 22px 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
.field__k { font: 500 11.5px/1.2 var(--sans); color: var(--gold); letter-spacing: .02em; }
.field__v { font: 500 15px/1.35 var(--sans); margin-top: 3px; word-break: break-word; }
.field__v.big { font: 600 18px/1.2 var(--serif); }
.field__v s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.pass__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted); }
.barcode { height: 46px; margin-top: 18px; border-radius: 6px; opacity: .85; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }

.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-inline: 20px; }
.actions .full { grid-column: 1 / -1; }

.events { padding-inline: 20px; }
.event { position: relative; padding: 0 0 18px 26px; }
.event::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 0; border-left: 1.5px solid var(--line); }
.event:last-child::before { display: none; }
.event::after { content: ""; position: absolute; left: 1px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--bg); }
.event.bad::after { background: var(--bad); }
.event.info::after { background: var(--info); }
.event b { font-size: 14px; }
.event p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.event time { font-size: 11.5px; color: var(--muted); }

/* ------------------------------- detalhe (hotel / serviço) ------------------------------- */
.dhero { position: relative; height: 300px; color: #fff; isolation: isolate; overflow: hidden; }
.dhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dhero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,36,.5), rgba(10,22,36,0) 35%, rgba(10,22,36,.85)); }
.dhero__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: calc(var(--safe-t) + 10px) 12px 0; }
.dhero__content { position: absolute; left: 20px; right: 20px; bottom: 22px; }
.dhero__content .kicker { color: var(--gold-2); }
.dhero__content h1 { font-size: 28px; color: #fff; margin-top: 8px; }
.dhero--color { height: auto; padding: calc(var(--safe-t) + 66px) 20px 26px; }
.dhero--color .dhero__content { position: static; }
.dhero__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.16); margin-bottom: 16px; }
.dhero__ico svg { width: 28px; height: 28px; }

.stay { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px 18px; }
.stay__d b { display: block; font: 600 19px/1.1 var(--serif); }
.stay__d span { font-size: 12px; color: var(--muted); }
.stay__d.r { text-align: right; }
.stay__n { text-align: center; padding: 8px 12px; border-radius: 12px; background: var(--line-soft); }
.stay__n b { display: block; font: 600 18px/1 var(--serif); }
.stay__n span { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

.addr { padding: 16px 18px; }
.addr__row { display: flex; gap: 12px; align-items: flex-start; }
.addr__row svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
.addr__row p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.5; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.routes a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-soft); text-decoration: none; font: 600 12px/1.2 var(--sans); }
.routes a svg { width: 22px; height: 22px; color: var(--gold); }

.rows { padding: 4px 0; }
.rowi { display: flex; align-items: center; gap: 14px; padding: 13px 18px; text-decoration: none; color: inherit; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.rowi + .rowi { border-top: 1px solid var(--line-soft); }
.rowi__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--line-soft); color: var(--gold); }
.rowi__ico svg { width: 19px; height: 19px; }
.rowi__txt { flex: 1; }
.rowi__k { font-size: 12px; color: var(--muted); }
.rowi__v { font-size: 15px; font-weight: 500; line-height: 1.4; word-break: break-word; }
.rowi > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.prose { font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-line; }

/* ------------------------------- reservas ------------------------------- */
.vouch { display: grid; grid-template-columns: 64px 1fr auto; align-items: stretch; width: 100%; padding: 0; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-align: left; cursor: pointer; color: inherit; text-decoration: none; }
.vouch__date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; background: var(--head); color: #F5EFE3; }
.vouch__date b { font: 600 24px/1 var(--serif); }
.vouch__date span { font: 600 10px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.vouch__date i { font: 500 10px/1.2 var(--sans); font-style: normal; color: rgba(245,239,227,.6); text-transform: uppercase; letter-spacing: .08em; }
.vouch__body { padding: 13px 14px; }
.vouch__route { display: flex; align-items: center; gap: 8px; font: 600 17px/1.2 var(--sans); }
.vouch__route svg { width: 16px; height: 16px; color: var(--t-air); flex: none; }
.vouch__title { font: 600 15px/1.3 var(--sans); }
.vouch__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.vouch__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 12px 12px 12px 0; gap: 6px; }
.vouch__end > svg { width: 18px; height: 18px; color: var(--muted); }
.vouch__thumb { width: 64px; height: 100%; min-height: 86px; object-fit: cover; }
.group-h { display: flex; align-items: center; gap: 10px; margin: 22px 20px 10px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.group-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-h i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-style: normal; }
.group-h i svg { width: 15px; height: 15px; }

.paxlist .rowi__ico { background: var(--navy); color: var(--gold-2); font: 600 14px/1 var(--serif); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font: 600 10.5px/1 var(--sans); background: var(--line-soft); color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.tag--gold { background: rgba(176,141,79,.16); color: var(--gold); }
.tag--you { background: var(--navy); color: var(--gold-2); }

.doc { display: flex; gap: 12px; align-items: center; }
.doc__ico { width: 42px; height: 50px; border-radius: 8px; display: grid; place-items: center; background: var(--bad-bg); color: var(--bad); font: 700 10px/1 var(--sans); flex: none; position: relative; }
.doc__ico.img { background: var(--info-bg); color: var(--info); }
.doc__ico.lnk { background: var(--ok-bg); color: var(--ok); }

/* ------------------------------- guia ------------------------------- */
.cities { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cities::-webkit-scrollbar { display: none; }
.city { flex: none; width: 148px; height: 104px; border-radius: 18px; overflow: hidden; position: relative; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start; color: #fff; text-align: left; isolation: isolate; box-shadow: var(--shadow); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,36,0) 30%, rgba(10,22,36,.8)); }
.city span { position: absolute; left: 12px; bottom: 10px; right: 12px; font: 600 16px/1.15 var(--serif); }
.city[aria-pressed=true] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.city small { display: block; font: 500 11px/1.2 var(--sans); opacity: .8; margin-top: 2px; }

.tip { padding: 16px 18px; }
.tip + .tip { border-top: 1px solid var(--line-soft); }
.tip__head { display: flex; align-items: flex-start; gap: 10px; }
.tip__name { flex: 1; font: 600 16px/1.3 var(--serif); }
.tip__rec { display: inline-block; margin-top: 4px; font: italic 600 13px/1 var(--serif); color: var(--gold); }
.tip__rec::before { content: "✦ "; font-style: normal; font-size: 10px; vertical-align: 1px; }
.heart { width: 40px; height: 40px; margin: -8px -8px 0 0; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.heart svg { width: 22px; height: 22px; transition: transform .2s; }
.heart[aria-pressed=true] { color: #D2453B; }
.heart[aria-pressed=true] svg { fill: currentColor; transform: scale(1.08); }
.tip__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tip__text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tip__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tip__cat { font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.info { display: flex; gap: 14px; padding: 16px 18px; }
.info + .info { border-top: 1px solid var(--line-soft); }
.info__ico { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; }
.info__ico svg { width: 22px; height: 22px; }
.info__k { font: 600 14.5px/1.3 var(--serif); }
.info__v { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.55; white-space: pre-line; }
.clock { font: 600 22px/1 var(--serif); color: var(--ink); margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.clock small { font: 500 12px/1 var(--sans); color: var(--muted); }

/* ------------------------------- diário ------------------------------- */
.map { position: relative; margin: 0 20px; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); height: 260px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* mapa de verdade (ladrilhos do OpenStreetMap) */
.tmap { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; background: #E8E2D2; z-index: 1; }
.tmap:active { cursor: grabbing; }
.tmap__tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; opacity: 0; transition: opacity .25s; user-select: none; -webkit-user-drag: none; filter: saturate(.6) sepia(.12) contrast(.96); }
.tmap__tiles img.on { opacity: 1; }
.tmap__over { position: absolute; left: 0; top: 0; overflow: visible; }
.tmap__pin { cursor: pointer; }
.tmap__ctl { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 2; }
.tmap__ctl button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.92); color: #0E2238; font: 600 19px/1 var(--sans); box-shadow: var(--shadow); cursor: pointer; }
.tmap__attr { position: absolute; right: 6px; bottom: 4px; z-index: 2; font: 500 9.5px/1.3 var(--sans); color: #4A4F57; background: rgba(255,255,255,.75); padding: 1px 5px; border-radius: 4px; }
.map.is-live .map__legend, .map.is-live .map__count { z-index: 2; background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 8px; }
.map.is-live .map__legend { color: #0E2238; }
@media (prefers-color-scheme: dark) { .tmap__tiles img { filter: invert(.92) hue-rotate(180deg) saturate(.45) brightness(.92); } .tmap { background: #1A2433; } }
.map__legend { position: absolute; left: 14px; bottom: 12px; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map__count { position: absolute; right: 12px; bottom: 10px; }
.screen.has-fab { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 96px); }
.moment { overflow: hidden; }
.moment__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line-soft); }
.moment__body { padding: 14px 16px 6px; }
.moment__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.moment__meta .avatar { box-shadow: none; }
.moment__meta b { color: var(--ink); font-weight: 600; font-size: 13px; }
.moment__text { margin: 10px 0 0; font: 400 16px/1.55 var(--serif); }
.moment__place { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12.5px; color: var(--gold); font-weight: 600; }
.moment__place svg { width: 14px; height: 14px; }
.moment__acts { display: flex; gap: 4px; padding: 6px 8px 8px; border-top: 1px solid var(--line-soft); margin-top: 12px; }
.moment__acts .btn { flex: 1; }
.moment.hl { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

.fab {
  position: fixed; z-index: 25; right: max(20px, calc(50% - 260px + 20px)); bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  height: 54px; padding: 0 20px 0 16px; border-radius: 27px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans);
  background: linear-gradient(180deg, #C7A465, #A9864A); color: #0E2238; box-shadow: 0 10px 28px rgba(176,141,79,.45);
}
.fab svg { width: 22px; height: 22px; }

/* ------------------------------- folha (bottom sheet) ------------------------------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(6, 14, 24, .5); animation: fade .2s both; }
.sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 26px 26px 0 0; padding: 10px 20px calc(var(--safe-b) + 22px);
  box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: up .32s cubic-bezier(.2,.8,.2,1) both;
}
.sheet.closing { animation: down .22s ease-in both; }
.sheet-back.closing { animation: fade .22s reverse both; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes down { to { transform: translateY(100%); } }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 21px; }
.sheet .sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.sheet__acts { display: grid; gap: 10px; margin-top: 20px; }
.menu-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 16px; border-bottom: 1px solid var(--line-soft); }
.menu-head .avatar { width: 52px; height: 52px; font-size: 18px; }
.menu-head b { display: block; font: 600 18px/1.2 var(--serif); }
.code-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 10px; background: var(--line-soft); font: 600 12.5px/1 var(--sans); letter-spacing: .14em; border: 0; cursor: pointer; color: var(--ink); }
.code-pill svg { width: 14px; height: 14px; }
.menu .rowi { padding-inline: 0; }

/* passo a passo ilustrado (instalar no iPhone) */
.ig { margin-top: 14px; }
.ig__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ig__track::-webkit-scrollbar { display: none; }
.ig__slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0 2px; }
.ig__art { border-radius: 18px; overflow: hidden; background: #0E2238; box-shadow: var(--shadow); }
.ig__art svg { display: block; width: 100%; height: auto; }
.ig__k { display: block; margin-top: 14px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ig__t { margin-top: 6px; font: 600 19px/1.25 var(--serif); }
.ig__p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink); min-height: 66px; }
.ig-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ig__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ig__nav .btn { min-width: 104px; }
.ig__dots { display: flex; gap: 7px; }
.ig__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); cursor: pointer; transition: all .2s; }
.ig__dot.on { width: 20px; border-radius: 4px; background: var(--gold); }
.ig-pulse { transform-box: fill-box; transform-origin: center; animation: igPulse 1.6s ease-out infinite; }
.ig-tap { animation: igTap 1.6s ease-in-out infinite; }
@keyframes igPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes igTap { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .ig-pulse, .ig-tap { animation: none; } .ig-pulse { opacity: 0; } }

.step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.step + .step { border-top: 1px solid var(--line-soft); }
.step__n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font: 600 14px/1 var(--serif); }
.step p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.step svg { width: 18px; height: 18px; vertical-align: -4px; color: var(--info); }

/* formulário do diário */
.photo-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.photo-pick label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 96px; border-radius: 16px; border: 1.5px dashed var(--line); background: var(--card-2); cursor: pointer; font: 600 13px/1 var(--sans); color: var(--ink); }
.photo-pick label svg { width: 26px; height: 26px; color: var(--gold); }
.photo-prev { position: relative; margin-top: 16px; border-radius: 16px; overflow: hidden; }
.photo-prev img { width: 100%; max-height: 300px; object-fit: cover; }
.photo-prev .iconbtn { position: absolute; top: 8px; right: 8px; }
.ta { width: 100%; min-height: 96px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); resize: vertical; outline: none; font: 400 16px/1.5 var(--serif); }
.ta:focus, .inp:focus { border-color: var(--gold); }
.inp { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); outline: none; }
.lbl { display: block; margin: 18px 0 8px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.loc-now { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; font-weight: 500; margin-top: 10px; }
.loc-now svg { width: 18px; height: 18px; flex: none; }
.loc-now span { flex: 1; color: var(--ink); }
.sheet .chips { padding-inline: 0; flex-wrap: wrap; overflow: visible; }

/* ------------------------------- toast, vazio, carregando ------------------------------- */
.toast-wrap { position: fixed; z-index: 80; left: 12px; right: 12px; margin: 0 auto; max-width: 480px; top: calc(var(--safe-t) + 12px); pointer-events: none; display: grid; gap: 8px; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 16px; background: #0E2238; color: #F5EFE3; box-shadow: var(--shadow-lg); font-size: 14px; animation: drop .3s cubic-bezier(.2,.8,.2,1) both; }
.toast svg { width: 20px; height: 20px; color: var(--gold-2); flex: none; }
.toast.out { animation: lift .25s ease-in both; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes lift { to { opacity: 0; transform: translateY(-14px); } }

.empty { text-align: center; padding: 36px 30px; }
.empty svg { width: 46px; height: 46px; color: var(--gold); opacity: .8; }
.empty h3 { margin-top: 12px; }
.empty p { margin: 8px auto 0; color: var(--muted); font-size: 14px; max-width: 300px; }

.loading { min-height: 100dvh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--line-soft) 25%, var(--card-2) 50%, var(--line-soft) 75%); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: 14px; }
@keyframes sh { to { background-position: -200% 0; } }

.offline { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; font-size: 12px; background: var(--warn-bg); color: var(--warn); }
.offline svg { width: 15px; height: 15px; }

.foot-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 26px 20px 0; line-height: 1.6; }
.foot-note .logo { font-size: 18px; color: var(--ink); }
.demo-flag { position: fixed; z-index: 20; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); pointer-events: none; padding: 5px 10px; border-radius: 10px; background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: 0 0 0 1px var(--line-soft); font: 600 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.demo-flag.low { bottom: calc(var(--safe-b) + 10px); }

/* faixa "nova versão" (quando o cliente está no meio de algo) */
.update-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 84px); z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 16px; background: #0E2238; color: #F5EFE3; box-shadow: var(--shadow-lg); font: 500 14px/1.3 var(--sans); }
.update-bar button { border: 0; border-radius: 10px; padding: 9px 14px; background: var(--gold-2); color: #0E2238; font: 600 13.5px/1 var(--sans); cursor: pointer; }
