/* RolêJunto — estilos globais */
:root {
  --ink: #121826;
  --ink-2: #1D2436;
  --muted: #4A5468;
  --muted-2: #8A92A6;
  --line: #E6E8EF;
  --line-2: #D9DCE5;
  --soft: #F3F4F8;
  --white: #FFFFFF;
  --accent: #D9381E;
  --accent-soft: #FDE9E4;
  --teal: #0B6B61;
  --teal-soft: #E3F2EF;
  --teal-light: #8FD3C9;
  --green: #16A34A;
  --danger: #B91C1C;
  --danger-soft: #FDECEC;
  --amber: #B45309;
  --star: #D97706;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -24px rgba(18, 24, 38, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(18, 24, 38, 0.5);
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --container: 1200px;
  --bg: #FFFFFF;            /* fundo da página */
  --brand-ink: #121826;     /* painéis da marca: sempre escuros */
  --on-brand: #FFFFFF;
  --brand-muted: #C9CEDB;
  --header-bg: rgba(255,255,255,0.92);
  --warn-bg: #FEF1DE;
  --warn-fg: #78350F;
  --shimmer: #E9EBF1;
  --map-bg: #E7EAF0;
  color-scheme: light;
}

/* ---------- Modo escuro ---------- */
:root[data-theme='dark'] {
  --ink: #EEF1F7;
  --ink-2: #D3D8E3;
  --muted: #A8B0C2;
  --muted-2: #7D8699;
  --line: #262D3C;
  --line-2: #343C4E;
  --soft: #1B2130;
  --white: #141924;
  --bg: #0C1018;
  --accent: #FF6A4D;
  --accent-soft: #3B1D17;
  --teal: #4CC2B3;
  --teal-soft: #11302C;
  --teal-light: #8FD3C9;
  --green: #4ADE80;
  --danger: #F87171;
  --danger-soft: #3A1818;
  --amber: #FBBF24;
  --star: #FBBF24;
  --brand-ink: #1A2131;
  --header-bg: rgba(12,16,24,0.88);
  --warn-bg: #3A2A10;
  --warn-fg: #FCD9A0;
  --shimmer: #252C3C;
  --map-bg: #1B2130;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --act-soft: 24%;
  --act-ink: 45%;
  color-scheme: dark;
}
:root[data-theme='dark'] .btn-primary { color: #fff; }
:root[data-theme='dark'] .btn-primary:hover { background: #E8553A; }
:root[data-theme='dark'] img.dim-dark { filter: brightness(.9); }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
.h-xl { font-size: clamp(42px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; }
.h-md { font-size: clamp(26px, 3vw, 32px); }
.h-sm { font-size: 20px; font-weight: 700; font-family: var(--body); letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--brand-ink); color: var(--on-brand); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.grow { flex: 1; min-width: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #BF2F17; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-teal { background: var(--teal-soft); color: var(--teal); }
.btn-sq { border-radius: var(--radius-sm); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--white); display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto;
}
.icon-btn:hover { background: var(--soft); }

/* Chips e badges */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 2px solid transparent; background: var(--soft); color: var(--ink);
}
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-soft { background: var(--soft); color: var(--muted); }
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-ink { background: var(--ink); color: var(--white); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.tile { border-radius: 16px; background: var(--soft); padding: 14px; }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--white); font-size: 16px; outline: none;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.error { font-size: 13px; color: var(--danger); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line-2); cursor: pointer; background: var(--white); }
.radio-card.on { border-color: var(--ink); background: var(--soft); }
.radio-card input { accent-color: var(--ink); width: 18px; height: 18px; }

/* Segmentado / abas */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--soft); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.seg button { min-height: 40px; border-radius: 10px; border: 0; background: transparent; font-size: 14px; font-weight: 700; color: var(--muted); padding: 0 10px; }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 2px 6px rgba(18, 24, 38, 0.15); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }

/* Header do site */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--muted); }
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* App shell */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--soft); }
.app-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.app-top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.app-tabs { display: flex; gap: 6px; }
.app-tabs a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); padding: 10px 14px; border-radius: 12px; }
.app-tabs a.active { color: var(--ink); background: var(--soft); }
.app-main { flex: 1; width: 100%; padding-bottom: 32px; }
.bottom-nav { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.site-footer .inner { padding: 48px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; color: var(--muted); }
.site-footer nav a { text-decoration: none; }

/* Home */
.hero { padding: 64px 0 88px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-left { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-right { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.search-bar { display: flex; flex-wrap: wrap; gap: 8px; background: var(--white); border: 1px solid var(--line-2); border-radius: 22px; padding: 8px; box-shadow: var(--shadow); }
.search-bar .sb-field { flex: 1 1 170px; display: flex; flex-direction: column; padding: 6px 14px; }
.search-bar .sb-field + .sb-field { border-left: 1px solid var(--line); }
.search-bar label { font-size: 12px; font-weight: 700; color: var(--muted); }
.search-bar input { border: 0; outline: none; padding: 4px 0; font-size: 16px; background: transparent; }
.preview-card { width: 400px; max-width: 100%; border-radius: 36px; padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: background .3s ease; }
.activity-tile { text-decoration: none; border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 210px; transition: transform .15s ease; border: 0; text-align: left; color: var(--ink); }
.activity-tile:hover { transform: translateY(-3px); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.step-btn { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border-radius: 20px; text-align: left; background: var(--white); border: 2px solid var(--line); }
.step-btn.on { background: var(--soft); border-color: var(--ink); }
.step-num { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--soft); color: var(--muted); flex: 0 0 auto; }
.step-btn.on .step-num { background: var(--accent); color: var(--white); }
.phone { width: 340px; max-width: 100%; background: var(--brand-ink); border-radius: 40px; padding: 14px; box-shadow: var(--shadow-lg); }
.phone-screen { background: var(--soft); border-radius: 28px; padding: 22px 18px; min-height: 420px; display: flex; flex-direction: column; gap: 12px; }
.safety-card { background: var(--ink-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.cta-band { border-radius: 32px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; background: var(--accent); color: var(--white); }

/* Explorar */
.explore-head { background: var(--white); border-radius: 0 0 28px 28px; box-shadow: 0 10px 30px -24px rgba(18,24,38,.5); }
.explore-head .container { padding-top: 20px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 16px; }
.act-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.act-scroller::-webkit-scrollbar { display: none; }
.act-tile { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 18px; background: var(--white); border: 2px solid transparent; font-size: 12px; font-weight: 700; text-align: center; }
.act-tile .ib { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-inline { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 16px; padding: 0 14px; min-height: 48px; flex: 1 1 220px; }
.search-inline input { border: 0; outline: none; background: transparent; flex: 1; font-size: 16px; min-width: 0; }
.filter-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; padding: 16px; background: var(--soft); border-radius: var(--radius); }
.range { width: 100%; accent-color: var(--accent); }
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.person-card { background: var(--white); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease; }
.person-card:hover { box-shadow: var(--shadow); }
.person-card .pc-main { display: flex; gap: 14px; padding: 12px 12px 10px; text-decoration: none; color: inherit; }
.person-photo { flex: 0 0 auto; width: 96px; height: 112px; border-radius: 16px; position: relative; display: flex; align-items: flex-end; padding: 8px; }
.person-photo .ini { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: .8; color: rgba(255,255,255,.45); }
.person-photo .on { position: absolute; top: 8px; left: 8px; }
.map-wrap { position: relative; height: min(70vh, 620px); border-radius: var(--radius); overflow: hidden; background: var(--map-bg); }
.map-road { position: absolute; background: var(--white); }
.map-pin { position: absolute; display: flex; flex-direction: column; align-items: center; text-decoration: none; transform: translate(-50%, -50%); }
.map-pin .area { position: absolute; top: -22px; width: 96px; height: 96px; border-radius: 50%; opacity: .14; }
.map-pin .av { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 8px 20px -8px rgba(18,24,38,.6); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 20px; }
.map-pin .nm { position: relative; margin-top: 4px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.map-note { position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--white); border-radius: 18px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); max-width: 560px; }
.empty { background: var(--white); border-radius: 22px; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }

/* Perfil */
.profile-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 24px; }
.profile-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.profile-side { flex: 1 1 340px; min-width: 0; position: sticky; top: 92px; }
.gallery { height: 420px; border-radius: 28px; position: relative; display: flex; align-items: flex-end; padding: 24px; transition: background .3s ease; overflow: hidden; }
.gallery .ini { font-family: var(--display); font-weight: 800; font-size: 200px; line-height: .75; color: rgba(255,255,255,.28); }
.gallery .tl { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.gallery .tr { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.gallery .dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery .dots button { height: 8px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.55); }
.gallery .dots button.on { background: var(--white); }
.gallery .lbl { position: absolute; top: 74px; left: 16px; font-size: 13px; font-weight: 700; color: var(--white); background: rgba(0,0,0,.28); padding: 5px 10px; border-radius: 999px; }
.day-pill { flex: 0 0 auto; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 16px; background: var(--white); border: 2px solid var(--line); }
.day-pill.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.day-pill.off { color: var(--muted-2); }
.day-pill .n { font-family: var(--display); font-size: 22px; font-weight: 800; }
.slot { min-height: 46px; border-radius: 14px; font-size: 15px; font-weight: 700; background: var(--white); border: 2px solid var(--line-2); }
.slot.on { background: var(--accent); border-color: var(--accent); color: var(--white); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); font-size: 22px; font-weight: 700; }
.book-box { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.mobile-book-bar { display: none; }
.stars { color: var(--star); letter-spacing: 2px; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(18,24,38,.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--white); border-radius: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }

/* Toast */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--brand-ink); color: var(--on-brand); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 15px; animation: slideDown .25s ease; }
.toast .ti { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--green); }
.toast.warn .ti { background: var(--star); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Chat */
.chat-layout { display: flex; gap: 16px; height: calc(100vh - 68px - 48px); min-height: 520px; padding-top: 24px; }
.chat-list { flex: 0 0 320px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.chat-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; text-decoration: none; background: var(--white); border: 2px solid transparent; }
.chat-item.on { border-color: var(--ink); }
.avatar { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 20px; flex: 0 0 auto; }
.chat-pane { flex: 1; min-width: 0; background: var(--white); border-radius: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 18px; font-size: 15px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; }
.bubble.system { align-self: center; background: var(--teal-soft); color: var(--teal); font-size: 13px; font-weight: 600; text-align: center; max-width: 90%; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

/* Painéis */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); }
tr:last-child td { border-bottom: 0; }
.avail-grid { display: grid; grid-template-columns: 70px repeat(7, minmax(44px, 1fr)); gap: 6px; min-width: 460px; }
.avail-cell { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--white); }
.avail-cell.on { background: var(--teal); border-color: var(--teal); }
.upload-box { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--white); cursor: pointer; }
.upload-box:hover { border-color: var(--ink); }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--accent); }
.auth-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 420px; background: var(--brand-ink); color: var(--on-brand); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form > div { width: 100%; max-width: 420px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 22px; margin-top: 16px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 14px; }
.notice-dark { background: var(--brand-ink); color: var(--on-brand); }
.notice-dark .muted { color: var(--brand-muted); }
.notice-warn { background: var(--warn-bg); color: var(--warn-fg); }
.notice-teal { background: var(--teal-soft); color: #064E47; }
.sos-panel { background: var(--danger-soft); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }

/* Chinês: fonte de apoio para os caracteres */
html[data-lang="zh"] { --display: 'Bricolage Grotesque', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; --body: 'Figtree', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html[data-lang="zh"] .display { letter-spacing: 0; }
html[data-lang="zh"] .eyebrow { letter-spacing: 0.02em; }

/* Seletor de idioma */
.lang { position: relative; flex: 0 0 auto; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink); }
.lang-btn:hover { background: var(--soft); }
.lang-flag { font-size: 18px; line-height: 1; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; list-style: none; margin: 0; padding: 6px; min-width: 190px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; font-size: 15px; text-align: left; color: var(--ink); }
.lang-menu button:hover { background: var(--soft); }
.lang-menu button.on { background: var(--soft); font-weight: 700; }
.lang-dark .lang-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }

/* Categorias em destaque */
.featured-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.feat-tile { position: relative; overflow: hidden; text-decoration: none; color: var(--white); border-radius: 26px; padding: 22px 20px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.feat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat-tile .glyph { position: absolute; right: -18px; bottom: -18px; opacity: .16; }
.feat-tile .ib { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.feat-tile .nm { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1; }
.feat-tile .ds { font-size: 14px; opacity: .92; line-height: 1.4; }
.feat-tile .pill { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.95); }
.lock-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(18,24,38,.75); color: #fff; }
.mini-tile { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 12px; transition: box-shadow .15s ease; }
.mini-tile:hover { box-shadow: var(--shadow); }

/* Carregamento */
.skeleton { background: linear-gradient(90deg, var(--soft) 0%, var(--shimmer) 50%, var(--soft) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Faixa do app */
.app-band { border-radius: 32px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: var(--brand-ink); color: var(--on-brand); }

/* Responsivo */
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .featured-grid > :first-child { grid-column: span 2; min-height: 180px; }
  .feat-tile { min-height: 180px; padding: 18px 16px; }
  .feat-tile .nm { font-size: 24px; }
  .app-band { padding: 28px 22px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 0; text-decoration: none; font-weight: 700; font-size: 18px; }
  .app-tabs { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: sticky; bottom: 0; z-index: 30;
    background: var(--white); border-top: 1px solid var(--line); padding: 6px 6px calc(10px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
  .bottom-nav a.active { color: var(--accent); font-weight: 700; }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 56px; }
  .search-bar .sb-field + .sb-field { border-left: 0; border-top: 1px solid var(--line); }
  .search-bar .btn { width: 100%; }
  .cta-band { padding: 36px 24px; }
  .profile-side { display: none; }
  .gallery { height: 340px; border-radius: 0 0 28px 28px; margin: -24px -24px 0; }
  .profile-layout { padding-top: 24px; }
  .mobile-book-bar {
    display: flex; position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 25; background: var(--white); border-top: 1px solid var(--line);
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 14px;
  }
  .chat-layout { height: calc(100vh - 68px - 76px); padding-top: 12px; }
  .chat-list { flex: 1 1 auto; }
  .chat-layout.has-open .chat-list { display: none; }
  .chat-layout:not(.has-open) .chat-pane { display: none; }
  .auth-side { display: none; }
  .bubble { max-width: 85%; }
}
@media (max-width: 440px) {
  .app-top .wordmark { display: none; }
  .site-header .wordmark { font-size: 24px !important; }
}
@media (min-width: 861px) {
  .only-mobile { display: none !important; }
}
@media (max-width: 860px) {
  .only-desktop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===== App no celular: estilo das telas aprovadas (canvas "App · Explorar" e "App · Perfil") ===== */
.greet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.loc-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-weight: 700; font-size: 16px; color: var(--ink); text-align: left; }
.lang-compact .lang-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 14px; }
.lang-compact .lang-code, .lang-compact .lang-btn > svg { display: none; }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--white); }
.profile-sheet { display: flex; flex-direction: column; gap: 20px; }
.match-box { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border-radius: 18px; padding: 12px 14px; font-size: 14px; }

@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .app-top { display: none; }
  .app-main { padding-bottom: 0; }
  .explore-head { border-radius: 0 0 28px 28px; }
  .explore-head .container { padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; gap: 14px; }
  .explore-head h1 { font-size: 28px; }
  .act-tile { width: 72px; }
  .act-tile .ib { width: 44px; height: 44px; }
  .filters-row { flex-wrap: nowrap; gap: 8px; }
  .filters-row .seg { flex: 1 1 auto !important; min-width: 0; }
  .filters-row .seg button { font-size: 13px; padding: 0 4px; line-height: 1.15; }
  .filters-row .btn { min-height: 44px; padding: 0 14px; font-size: 13px; }
  .filters-row .btn-filter { width: 44px; padding: 0; }

  /* Perfil: foto em tela cheia + painel sobreposto + barra de reserva fixa, sem a barra inferior */
  .is-profile { background: var(--white); }
  .is-profile .bottom-nav { display: none; }
  .is-profile .mobile-book-bar { bottom: 0; }
  .profile-layout { padding: 0 !important; gap: 0; }
  .profile-main { gap: 0; }
  .gallery { height: 340px; margin: 0; border-radius: 0; padding: 0 20px 44px; }
  .gallery .ini { font-size: 160px; }
  .gallery .tl, .gallery .tr { top: calc(16px + env(safe-area-inset-top, 0px)); }
  .gallery .lbl { top: calc(74px + env(safe-area-inset-top, 0px)); }
  .gallery .dots { bottom: 38px; }
  .profile-sheet { margin-top: -24px; position: relative; background: var(--white); border-radius: 28px 28px 0 0; padding: 22px 20px 24px; gap: 18px; }
}

/* Linha do tempo da reserva */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.timeline li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.now::before { background: var(--teal); }
.tl-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--muted); border: 2px solid var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done .tl-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.timeline li.now { color: var(--ink); }
.timeline li.now .tl-dot { background: var(--white); border-color: var(--teal); color: var(--teal); }
.timeline .small { font-size: 12px; line-height: 1.25; }
.confirm-inline > summary { list-style: none; }
.confirm-inline > summary::-webkit-details-marker { display: none; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.menu-list a:last-child { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 560px; margin: 0 auto; background: var(--brand-ink); color: var(--on-brand); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-lg); }
.offline-bar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 75; background: var(--amber); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; text-align: center; }
.avatar-lg { width: 96px; height: 96px; border-radius: 28px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 40px; color: #fff; background: var(--accent); flex: 0 0 auto; }

/* Abas com rolagem lateral (painel admin com muitas abas) */
.seg-scroll { overflow-x: auto; grid-auto-columns: minmax(max-content, 1fr); scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll button { white-space: nowrap; padding-left: 14px; padding-right: 14px; }

/* ---------- Mapa real (Leaflet) ---------- */
.real-map { isolation: isolate; }
@media (max-width: 760px) { .real-map { height: max(340px, calc(100dvh - 400px)); } }
.real-map .map-canvas { position: absolute; inset: 0; z-index: 0; background: var(--map-bg); }
.real-map .leaflet-container { font-family: var(--body); background: var(--map-bg); }
.real-map .map-note, .real-map .map-card, .real-map .map-err { z-index: 500; }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px; box-shadow: var(--shadow-lg); }
.map-err { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--warn-bg); color: var(--warn-fg); padding: 8px 12px; border-radius: 12px; display: flex; gap: 6px; align-items: center; }
.mp { background: none; border: 0; }
.mp-av { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; background-size: cover; background-position: center; }
.mp-nm { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); background: var(--white); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px -6px rgba(0,0,0,.5); }
.leaflet-tooltip { font-family: var(--body); font-weight: 700; }
:root[data-theme='dark'] .real-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
:root[data-theme='dark'] .leaflet-bar a, :root[data-theme='dark'] .leaflet-control-attribution { background: var(--white); color: var(--ink); border-color: var(--line); }
:root[data-theme='dark'] .leaflet-control-attribution a { color: var(--teal); }

/* ---------- Chat: digitando ---------- */
.typing-label { color: var(--teal); font-weight: 700; }
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px !important; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: tdot 1.2s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Login social ---------- */
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px; }
.btn-social:hover { background: var(--soft); }
.btn-social.apple { background: #000; color: #fff; border-color: #000; }
:root[data-theme='dark'] .btn-social.apple { background: #fff; color: #000; border-color: #fff; }
.gsi-slot { min-height: 44px; display: flex; justify-content: center; }

/* ---------- Cupons e indicação ---------- */
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.coupon-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--teal); border-radius: 16px; background: var(--teal-soft); }
.coupon-chip code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 15px; letter-spacing: .05em; color: var(--ink); }
.ref-card { background: linear-gradient(135deg, var(--brand-ink), #2A1712); color: var(--on-brand); border: 0; }
.ref-card .muted { color: var(--brand-muted); }
.ref-code { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 20px; letter-spacing: .08em; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.35); border-radius: 14px; padding: 8px 14px; }
.ref-card .btn-light { background: #fff; color: #121826; border-color: #fff; }

/* ---------- Agenda com horários exatos ---------- */
.sched-day { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sched-day:last-child { border-bottom: 0; }
.sched-day .dname { font-weight: 800; padding-top: 6px; }
.sched-times { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.time-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.time-chip button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; }
.time-chip button:hover { background: rgba(127,127,127,.25); }
.sched-add { display: inline-flex; align-items: center; gap: 4px; }
.sched-add select { min-height: 36px; border-radius: 999px; border: 1px dashed var(--line-2); background: var(--white); padding: 0 10px; font-weight: 700; font-size: 14px; }
.off-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.agenda-off { opacity: .55; text-decoration: line-through; }

/* ---------- Boas-vindas ---------- */
.onb { position: fixed; inset: 0; z-index: 90; background: var(--brand-ink); color: var(--on-brand); display: flex; flex-direction: column; padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
.onb-top { display: flex; justify-content: space-between; align-items: center; }
.onb-skip { background: none; border: 0; color: var(--brand-muted); font-weight: 700; min-height: 44px; padding: 0 8px; }
.onb-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 20px; max-width: 460px; margin: 0 auto; }
.onb-art { width: 200px; height: 200px; border-radius: 48px; display: flex; align-items: center; justify-content: center; position: relative; }
.onb-art svg { color: #fff; }
.onb-body h1 { font-size: clamp(30px, 8vw, 40px); }
.onb-body p { color: var(--brand-muted); font-size: 17px; }
.onb-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .2s; }
.onb-dots span.on { width: 26px; background: #FF5B3D; }
.onb-slide { animation: onbIn .35s ease; }
@keyframes onbIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .onb-slide, .typing-dots span { animation: none; } }

/* ---------- Tema ---------- */
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
