/* Intercambie.ME — sistema de design próprio (sem dependências). */

:root {
  --primary: #615dfa;
  --primary-600: #4f4ae8;
  --primary-50: #efeefe;
  --accent: #23d2e2;
  --accent-50: #e3fafc;
  --gold: #f5a524;
  --blue: #3b82f6;
  --green: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg: #f3f4fb;
  --surface: #ffffff;
  --surface-2: #f7f7fd;
  --text: #2f3052;
  --text-2: #5b5d7e;
  --muted: #8f91ac;
  --border: #e6e7f2;
  --shadow: 0 1px 2px rgba(47, 48, 82, .04), 0 4px 18px rgba(47, 48, 82, .06);
  --shadow-lg: 0 10px 40px rgba(47, 48, 82, .14);
  --radius: 12px;
  --radius-sm: 8px;
  --gradient: linear-gradient(135deg, #615dfa 0%, #4a8cf5 55%, #23d2e2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(97, 93, 250, .12), rgba(35, 210, 226, .12));
  --topbar-h: 48px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12131f;
    --surface: #1b1c2c;
    --surface-2: #222338;
    --text: #e9eaf6;
    --text-2: #b8bad3;
    --muted: #8587a6;
    --border: #2c2e46;
    --primary-50: #24234a;
    --accent-50: #12333a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 18px rgba(0, 0, 0, .25);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #12131f;
  --surface: #1b1c2c;
  --surface-2: #222338;
  --text: #e9eaf6;
  --text-2: #b8bad3;
  --muted: #8587a6;
  --border: #2c2e46;
  --primary-50: #24234a;
  --accent-50: #12333a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 18px rgba(0, 0, 0, .25);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
h2 { font-size: .95rem; }
h3 { font-size: .86rem; }
h4 { font-size: .82rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.app { display: grid; grid-template-columns: 190px minmax(0, 1fr) 240px; gap: 12px; max-width: 1440px; margin: 0 auto; padding: 10px 12px 32px; }
.app.no-rail { grid-template-columns: 190px minmax(0, 1fr); }
.app.wide { grid-template-columns: minmax(0, 1fr); max-width: 1400px; }
.main { min-width: 0; }
.sidebar, .rail { min-width: 0; }
.sidebar .sticky, .rail .sticky { position: sticky; top: calc(var(--topbar-h) + 10px); display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1200px) {
  .app { grid-template-columns: 180px minmax(0, 1fr); }
  .app .rail { display: none; }
}
@media (max-width: 900px) {
  .app, .app.no-rail { grid-template-columns: minmax(0, 1fr); padding-top: 10px; padding-bottom: 80px; }
  .app .sidebar { display: none; }
}

.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-sm { display: flex; align-items: center; gap: 6px; }
.row.wrap, .row-sm.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 10px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid-cards-sm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Topo ------------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1rem; color: var(--text); letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand span b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 4px 8px; border-radius: 7px; color: var(--text-2); font-weight: 600; font-size: .8rem; }
.topnav a:hover, .topnav a.active { background: var(--primary-50); color: var(--primary); text-decoration: none; }
.search { flex: 1 1 auto; max-width: 380px; position: relative; }
.search input { width: 100%; padding: 5px 10px 5px 31px; font-size: .8rem; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-2); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--primary); text-decoration: none; }
.icon-btn svg { width: 16px; height: 16px; }
.dot { position: absolute; top: 1px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
@media (max-width: 1100px) { .topnav { display: none; } }
@media (max-width: 640px) { .search { display: none; } .brand span { display: none; } }

/* Menu suspenso (details/summary) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px;
}
.menu a, .menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border-radius: 7px; color: var(--text); background: none; border: 0; font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.menu svg { width: 16px; height: 16px; flex: 0 0 auto; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* Navegação inferior (celular) */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .create { color: #fff; }
  .bottom-nav .create span.plus { width: 44px; height: 44px; margin-top: -18px; border-radius: 14px; background: var(--gradient); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
}

/* Cartões ----------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 10px 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: .84rem; }
.card-foot { padding: 7px 12px; border-top: 1px solid var(--border); }
.card.flat { box-shadow: none; }
.card.highlight { background: var(--gradient); color: #fff; border: 0; }
.card.highlight a { color: #fff; }
.card.soft { background: var(--gradient-soft); border-color: transparent; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.section-title h2 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; font-weight: 800; color: var(--primary); }

/* Botões --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 11px; border-radius: 8px;
  font: inherit; font-weight: 700; font-size: .78rem; line-height: 1.2; cursor: pointer; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); white-space: nowrap; transition: transform .08s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-gradient { background: var(--gradient); color: #fff; }
.btn-accent { background: var(--accent); color: #063b40; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn-white { background: #fff; color: var(--primary); }
.btn-sm { padding: 3px 8px; font-size: .72rem; border-radius: 7px; }
.btn-xs { padding: 2px 6px; font-size: .68rem; border-radius: 6px; }
.btn-lg { padding: 8px 14px; font-size: .84rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Formulários ------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 9px; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field label, .label { font-weight: 700; font-size: .74rem; color: var(--text-2); }
.field .hint { color: var(--muted); font-size: .72rem; }
/* :where() zera a especificidade: estilos de componentes (busca, composer…) sempre prevalecem. */
:where(.input, .select, .textarea, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=week], input[type=tel], input[type=url], input[type=search], select, textarea) {
  width: 100%; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: .8rem; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
:where(input, select, textarea)::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 56px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
input[type=file] { font-size: .76rem; color: var(--text-2); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; padding: 4px 10px; margin-right: 8px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--primary); color: var(--primary); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.checkbox { display: flex; align-items: flex-start; gap: 7px; font-size: .8rem; cursor: pointer; }
.checkbox input { width: 15px; height: 15px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.error { color: var(--danger); font-size: .74rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.fieldset { border: 1px dashed var(--border); border-radius: 10px; padding: 10px; }

.alert { padding: 7px 11px; border-radius: 9px; font-weight: 600; font-size: .8rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: color-mix(in srgb, var(--green) 75%, var(--text)); }
.alert-error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.alert-info { background: var(--primary-50); color: var(--primary); }

/* Chips, etiquetas e pílulas -------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.chip.primary { background: var(--primary-50); color: var(--primary); border-color: transparent; }
.chip.accent { background: var(--accent-50); color: #0e8a95; border-color: transparent; }
.chip.gold { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: #a8680a; border-color: transparent; }
.chip.blue { background: color-mix(in srgb, var(--blue) 14%, var(--surface)); color: var(--blue); border-color: transparent; }
.chip.green { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: #0b8a61; border-color: transparent; }
.chip.danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-color: transparent; }
.chip.ai { background: linear-gradient(135deg, rgba(97, 93, 250, .14), rgba(35, 210, 226, .18)); color: var(--primary); border-color: transparent; }
:root[data-theme="dark"] .chip.gold { color: #ffcf7a; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.status-planejada { background: var(--primary-50); color: var(--primary); }
.status-em_andamento { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: #a35c00; }
.status-concluida { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: #0b8a61; }
.status-cancelada { background: var(--surface-2); color: var(--muted); }

/* Avatares e níveis ------------------------------------------------------ */
.avatar { position: relative; display: inline-block; flex: 0 0 auto; width: var(--size, 44px); height: var(--size, 44px); vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--surface-2); }
.avatar.hex img { border-radius: 0; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.avatar.hex::before {
  content: ""; position: absolute; inset: -3px; background: var(--gradient);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); z-index: 0;
}
.avatar.hex img { position: relative; z-index: 1; }
.avatar .level {
  position: absolute; right: -4px; bottom: -2px; z-index: 2; min-width: 16px; height: 16px; padding: 0 3px;
  display: grid; place-items: center; font-size: 9.5px; font-weight: 900; color: #fff;
  background: var(--text); border: 2px solid var(--surface); border-radius: 8px;
}
.avatar.xs { --size: 20px; } .avatar.sm { --size: 26px; } .avatar.md { --size: 34px; } .avatar.lg { --size: 44px; } .avatar.xl { --size: 72px; }
.avatar.xl .level { min-width: 20px; height: 20px; font-size: 10.5px; right: 0; bottom: 3px; }
.avatars-stack { display: flex; }
.avatars-stack .avatar { margin-left: -10px; } .avatars-stack .avatar:first-child { margin-left: 0; }
.avatars-stack .avatar img { border: 2px solid var(--surface); }
.verified { color: var(--accent); }
.user-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-line .name { font-weight: 800; color: var(--text); }
.user-line .meta { font-size: .72rem; color: var(--muted); }

/* Barras de progresso ---------------------------------------------------- */
.progress { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--gradient); transition: width .6s ease; }
.progress.gold > span { background: linear-gradient(90deg, #f5a524, #fbbf24); }
.progress.green > span { background: linear-gradient(90deg, #10b981, #34d399); }
.progress.blue > span { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.progress.danger > span { background: linear-gradient(90deg, #ef4444, #f97316); }
.progress.lg { height: 9px; }
.xp-line { display: flex; justify-content: space-between; gap: 6px; font-size: .68rem; color: var(--muted); font-weight: 700; margin-top: 4px; }

/* Milhas ----------------------------------------------------------------- */
.miles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mile { min-width: 0; padding: 4px 3px; border-radius: 7px; background: var(--surface-2); text-align: center; }
.mile b { display: block; font-size: .82rem; }
.mile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 700; font-size: .62rem; }
.mile.gold b { color: #d48806; } .mile.blue b { color: var(--blue); } .mile.green b { color: var(--green); }

/* Estatísticas ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.stat { padding: 6px 9px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.stat .value { font-size: 1rem; font-weight: 900; letter-spacing: -.02em; }
.stat .label { font-size: .6rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat .icon { font-size: 1.05rem; }

/* Abas --------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); padding: 0 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 7px 9px 5px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .78rem; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pills a { padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: .72rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.pills a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.pills a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Cartão de viagem --------------------------------------------------------- */
.trip-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s; }
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.trip-card .cover { position: relative; aspect-ratio: 2 / 1; background: var(--gradient); overflow: hidden; }
.trip-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.trip-card .cover .flags { position: absolute; left: 8px; bottom: 7px; font-size: 1.25rem; letter-spacing: 2px; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.trip-card .cover .chip { position: absolute; top: 7px; left: 7px; }
.trip-card .cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: rgba(255, 255, 255, .9); }
.trip-card .body { padding: 7px 9px 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.trip-card h3 { margin: 0; font-size: .78rem; }
.trip-card h3 a { color: var(--text); }
.trip-card .meta { font-size: .66rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.trip-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 4px; border-top: 1px solid var(--border); font-size: .66rem; color: var(--muted); }

/* Cabeçalho de perfil/viagem --------------------------------------------- */
.hero-cover { position: relative; height: 118px; border-radius: var(--radius) var(--radius) 0 0; background: var(--gradient); overflow: hidden; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.hero-cover .over { position: absolute; left: 14px; right: 14px; bottom: 9px; z-index: 2; color: #fff; }
.hero-cover .over h1 { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); margin: 0; }
.profile-head { display: flex; gap: 12px; align-items: flex-end; padding: 0 14px 9px; margin-top: -34px; position: relative; z-index: 3; flex-wrap: wrap; }
.profile-head .who { flex: 1; min-width: 200px; padding-top: 38px; }
.profile-head .who h1 { margin: 0; font-size: 1.1rem; }
.profile-head .actions { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 4px; }
@media (max-width: 640px) { .hero-cover { height: 100px; } .profile-head { padding: 0 12px 10px; } }

/* Insígnias (conquistas) ---------------------------------------------------- */
.badge-hex {
  width: var(--bsize, 44px); height: var(--bsize, 44px); display: grid; place-items: center; font-size: calc(var(--bsize, 44px) * .46);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--badge, var(--primary)) 85%, #fff), var(--badge, var(--primary)));
  flex: 0 0 auto;
}
.badge-hex.locked { background: var(--surface-2); filter: grayscale(1); opacity: .55; }
.badge-hex.sm { --bsize: 28px; } .badge-hex.lg { --bsize: 60px; }
:where(.achievement, .post .event) > .badge-hex { --bsize: 38px; }
.achievement { display: flex; gap: 9px; align-items: center; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); }
.achievement.earned { border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface)); }
.achievement h4 { margin: 0 0 1px; font-size: .78rem; }
.achievement p { margin: 0; font-size: .7rem; color: var(--text-2); }
.req { display: flex; align-items: center; gap: 5px; font-size: .66rem; color: var(--text-2); margin-top: 2px; }
.req .progress { flex: 1; height: 5px; }
.rail .achievement p { -webkit-line-clamp: 1; }
.rail .achievement .req + .req + .req { display: none; }
.rail :where(.achievement) > .badge-hex { --bsize: 32px; }
.req.done { color: var(--green); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-row a { display: block; }

/* Feed ------------------------------------------------------------------------ */
.composer textarea { border: 0; background: var(--surface-2); min-height: 38px; }
.composer .tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.post { padding: 10px 12px; }
.post .head { display: flex; gap: 9px; align-items: center; }
.post .head .grow .name { font-weight: 800; color: var(--text); }
.post .head time { font-size: .7rem; color: var(--muted); }
.post .content { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.post .gallery { display: grid; gap: 5px; margin-top: 7px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.post .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.post .actions { display: flex; gap: 4px; margin-top: 7px; padding-top: 5px; border-top: 1px solid var(--border); }
.post .actions button, .post .actions a { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 8px; background: none; border: 0; color: var(--text-2); font: inherit; font-weight: 700; font-size: .76rem; cursor: pointer; }
.post .actions button:hover, .post .actions a:hover { background: var(--surface-2); text-decoration: none; }
.post .actions .on { color: var(--danger); }
.post .event { margin-top: 7px; display: flex; gap: 9px; align-items: center; padding: 7px 9px; border-radius: 9px; background: var(--gradient-soft); }
.post .event .big { font-size: 1.3rem; line-height: 1; }
.comments { margin-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.comment { display: flex; gap: 8px; }
.comment .bubble { background: var(--surface-2); border-radius: 9px; padding: 4px 8px; font-size: .76rem; flex: 1; overflow-wrap: anywhere; }
.comment .bubble b { font-size: .76rem; }
.comment-form { display: flex; gap: 6px; margin-top: 8px; }
.comment-form input { flex: 1; padding: 4px 9px; }

/* Listas -------------------------------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list > * { padding: 6px 0; border-bottom: 1px solid var(--border); }
.list > *:last-child { border-bottom: 0; }
.list-item { display: flex; align-items: center; gap: 9px; }
.rank-num { width: 28px; text-align: center; font-weight: 900; color: var(--muted); }
.rank-num.top1 { color: #d48806; } .rank-num.top2 { color: #8a94a6; } .rank-num.top3 { color: #b45309; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.podium .spot { text-align: center; padding: 9px 7px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.podium .spot.first { background: var(--gradient); color: #fff; border: 0; padding-top: 12px; }
.podium .spot.first a { color: #fff; }
.podium .spot .avatar { margin: 0 auto 6px; }

/* Tabela ------------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.table th, .table td { padding: 5px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.table tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Linha do tempo (roteiro por dia) ------------------------------------------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 10px; }
.day h3 { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.day h3 .n { width: 22px; height: 22px; border-radius: 7px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: .76rem; }
.activity { display: grid; grid-template-columns: 40px 26px minmax(0, 1fr) auto; gap: 7px; align-items: start; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); }
.activity + .activity { margin-top: 4px; }
.activity .time { font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 3px; font-size: .76rem; }
.activity .ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); font-size: .95rem; }
.activity.done { opacity: .72; }
.activity.done .title { text-decoration: line-through; }
.activity .title { font-weight: 800; }
.activity .desc { font-size: .76rem; color: var(--text-2); margin: 2px 0 0; }
@media (max-width: 560px) { .activity { grid-template-columns: 34px minmax(0, 1fr); } .activity .time { grid-column: 2; padding: 0; order: -1; font-size: .8rem; } .activity .ico { grid-row: span 2; } .activity > :last-child { grid-column: 1 / -1; } }

/* Missões (checklist) ------------------------------------------------------- */
.task { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 7px; }
.task:hover { background: var(--surface-2); }
.task button.check { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.task.done button.check { background: var(--green); border-color: var(--green); }
.task.done .t { text-decoration: line-through; color: var(--muted); }

/* Mapa -------------------------------------------------------------------------- */
.map { height: 260px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); z-index: 0; }
.map.tall { height: 380px; } .map.short { height: 170px; }
.leaflet-container { font-family: var(--font); }
.map-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.map-pin.video { background: #ef4444; } .map-pin.activity { background: var(--accent); } .map-pin.stop { background: var(--primary); }
.map-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Donut de custos --------------------------------------------------------------- */
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.donut { width: 116px; height: 116px; flex: 0 0 auto; }
.legend { display: flex; flex-direction: column; gap: 3px; font-size: .72rem; flex: 1; min-width: 180px; }
.legend .item { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.legend .item .v { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Vazio --------------------------------------------------------------------- */
.empty { text-align: center; padding: 16px 12px; color: var(--text-2); }
.empty .icon { font-size: 1.5rem; margin-bottom: 2px; }
.empty h3 { margin-bottom: 4px; }

/* IA ------------------------------------------------------------------------- */
.ai-box { border-radius: 11px; padding: 10px 12px; background: linear-gradient(135deg, rgba(97, 93, 250, .08), rgba(35, 210, 226, .1)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border)); }
.ai-box .story { white-space: pre-line; }
.ai-thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 700; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 7px 11px; border-radius: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; white-space: pre-line; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.assistant p:last-child, .msg.assistant ul:last-child { margin-bottom: 0; }
.msg.assistant ul, .msg.assistant ol { padding-left: 1.2em; margin: .4em 0; }

/* Toasts ------------------------------------------------------------------------ */
.toasts { position: fixed; right: 16px; top: calc(var(--topbar-h) + 12px); z-index: 100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 230px; max-width: 320px; display: flex; gap: 10px; align-items: center; padding: 8px 11px; font-size: .8rem; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.3); }
.toast .ti { font-size: 1.4rem; line-height: 1; }
.toast b { display: block; }
.toast.gold { border-left: 5px solid var(--gold); } .toast.blue { border-left: 5px solid var(--blue); } .toast.green { border-left: 5px solid var(--green); }
.toast.achievement, .toast.rank { background: var(--gradient); color: #fff; border: 0; }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@media (max-width: 640px) { .toasts { left: 12px; right: 12px; } .toast { max-width: none; } }

/* Diálogo ------------------------------------------------------------------------- */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(18, 19, 31, .55); backdrop-filter: blur(3px); }
dialog .dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--border); }
dialog .dialog-head h3 { margin: 0; }
dialog .dialog-body { padding: 16px; max-height: 70vh; overflow: auto; }
dialog .dialog-foot { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* Autocomplete --------------------------------------------------------------------- */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; padding: 4px; }
.ac-list button { display: flex; width: 100%; gap: 8px; padding: 6px 9px; font-size: .8rem; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.ac-list button:hover, .ac-list button.active { background: var(--surface-2); }

/* Paginação --------------------------------------------------------------------- */
.pagination { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin: 14px 0 4px; }
.pagination a, .pagination span { min-width: 28px; height: 28px; padding: 0 9px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; color: var(--text-2); font-size: .78rem; }
.pagination a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .45; }

/* Rodapé ---------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0 24px; font-size: .76rem; color: var(--text-2); }
@media (max-width: 900px) { .footer { padding-bottom: 80px; } }
.footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 20px; }
.footer h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer a { color: var(--text-2); }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* Landing ------------------------------------------------------------------- */
.landing-hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 85% -10%, rgba(35, 210, 226, .35), transparent 60%), radial-gradient(800px 500px at -10% 20%, rgba(97, 93, 250, .35), transparent 60%), var(--bg); padding: 34px 0 20px; }
.landing-hero .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.landing-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 12px; }
.landing-hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-hero .lead { font-size: .92rem; color: var(--text-2); max-width: 560px; }
.landing-hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-art { position: relative; }
.hero-art .globe { width: min(260px, 70%); margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(97, 93, 250, .35)); animation: float 6s ease-in-out infinite; }
.hero-art .float-card { position: absolute; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: .85rem; font-weight: 700; border: 1px solid var(--border); }
.hero-art .fc1 { left: 0; top: 18%; } .hero-art .fc2 { right: 0; top: 48%; } .hero-art .fc3 { left: 8%; bottom: 6%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 900px) { .landing-hero .inner { grid-template-columns: 1fr; } .hero-art { display: none; } }
.lp-section { padding: 28px 0; }
.lp-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 16px; }
.lp-head h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.02em; }
.lp-head p { color: var(--text-2); font-size: .88rem; }
.feature { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.feature .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; background: var(--gradient-soft); margin-bottom: 8px; }
.feature h3 { font-size: .86rem; }
.feature p { color: var(--text-2); margin: 0; }
.pillar { padding: 16px; border-radius: 14px; color: #fff; position: relative; overflow: hidden; min-height: 150px; }
.pillar h3 { font-size: 1rem; letter-spacing: .02em; }
.pillar p { opacity: .92; }
.pillar .n { position: absolute; right: 14px; top: 4px; font-size: 3.4rem; font-weight: 900; opacity: .18; }
.pillar.p1 { background: linear-gradient(135deg, #615dfa, #8b5cf6); }
.pillar.p2 { background: linear-gradient(135deg, #0ea5e9, #23d2e2); }
.pillar.p3 { background: linear-gradient(135deg, #10b981, #22c55e); }
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.level-step { text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.level-step .e { font-size: 1.3rem; }
.level-step b { display: block; margin-top: 4px; }
.level-step small { color: var(--muted); }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.counter { text-align: center; }
.counter b { display: block; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; letter-spacing: -.03em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter span { color: var(--text-2); font-weight: 700; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--text-2); }
.cta-band { border-radius: 16px; padding: 20px; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .92; }

/* Artigos -------------------------------------------------------------------- */
.prose { font-size: .86rem; line-height: 1.6; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 14px; margin: 1em 0; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .8rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 9px; text-align: left; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 4px solid var(--primary); background: var(--surface-2); border-radius: 0 12px 12px 0; }

/* Lugares -------------------------------------------------------------- */
.stars { color: #f5a524; letter-spacing: 1px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.6rem; color: var(--border); cursor: pointer; line-height: 1; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #f5a524; }
.place-card { display: flex; gap: 8px; padding: 7px 9px; }
.place-card .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--gradient-soft); font-size: .9rem; flex: 0 0 auto; }

/* Vídeos ------------------------------------------------------------------- */
.video-card { overflow: hidden; }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .thumb .play span { width: 30px; height: 21px; border-radius: 8px; background: rgba(239, 68, 68, .92); display: grid; place-items: center; color: #fff; }
.video-card .body { padding: 6px 8px; }
.video-card h4 { margin: 0; font-size: .72rem; }

/* Admin -------------------------------------------------------------------------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* Utilitários de espaçamento -------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 16px; }
.p-0 { padding: 0; }
.w-full { width: 100%; }
.hide-sm { } @media (max-width: 640px) { .hide-sm { display: none !important; } }
.show-sm { display: none; } @media (max-width: 640px) { .show-sm { display: initial; } }

/* Bandeiras (SVG) ---------------------------------------------------------- */
.flag { display: inline-block; width: 1.33em; height: 1em; object-fit: cover; border-radius: 3px; vertical-align: -0.14em; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.flag-lg { width: 2.4em; height: 1.8em; border-radius: 5px; }
.flag-xl { width: 3.2em; height: 2.4em; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.trip-card .cover .flags { display: flex; gap: 4px; }
.trip-card .cover .flags .flag { width: 20px; height: 15px; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.trip-card .cover .placeholder .flag-xl { width: 64px; height: 48px; }
.place-card .ico .flag { width: 22px; height: 16px; }
.post .event .big .flag { width: 34px; height: 25px; margin-right: 2px; }
.card.highlight .btn-white, .cta-band .btn-white { color: var(--primary); }
.badge-hex .flag { width: 58%; height: auto; aspect-ratio: 4 / 3; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.dropdown > summary .avatar { display: block; }
.grid-wide-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Etiquetas sobre a capa: vidro escuro, legível em qualquer foto e nos dois temas. */
.hero-cover .chip { background: rgba(15, 16, 32, .48); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(4px); }

/* Páginas de acesso (entrar, cadastro, senha) */
.auth-card .card-body { padding: 22px 24px; }
.auth-card h1 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 4px; }

/* Links institucionais no fim da barra lateral (a área interna não tem rodapé) */
.side-links { display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 0 8px; font-size: .66rem; color: var(--muted); }
.side-links a { color: var(--muted); }
.side-links a:hover { color: var(--primary); }

/* Grades de detalhe com coluna lateral (viagem, perfil, lugar, comunidade) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
