:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #16182b;
  --ink-2: #4a4d63;
  --ink-3: #8a8ca0;
  --line: #e9e4db;
  --navy: #0f1b3d;
  --coral: #ff6b4a;
  --coral-soft: #fff0eb;
  --sun: #ffb547;
  --teal: #0fa39a;
  --teal-soft: #e3f6f4;
  --violet: #6d5dfc;
  --violet-soft: #eeecff;
  --green: #18a058;
  --green-soft: #e4f6ec;
  --red: #e5484d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 24, 43, .04), 0 8px 24px rgba(22, 24, 43, .06);
  --shadow-lg: 0 24px 60px rgba(15, 27, 61, .18);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.mono { font-family: var(--mono); }

/* ---------- botões & campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 74, .35); }
.btn-primary:hover { background: #f25a38; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: #1b2a57; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(22, 24, 43, .06); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.btn-danger { color: var(--red); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 11px 14px; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 74, .12); }
textarea.input { resize: vertical; min-height: 80px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fields-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.money-input { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-weight: 500; }

/* checkbox redondo animado */
.tick { appearance: none; width: 24px; height: 24px; border: 2px solid #cfc8bb; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; transition: all .18s; background: #fff; margin: 0; }
.tick:hover { border-color: var(--green); }
.tick:checked { background: var(--green); border-color: var(--green); animation: pop .3s; }
.tick:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
@keyframes pop { 50% { transform: scale(1.25); } }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.chip-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip-coral { background: var(--coral-soft); color: #d6482a; border-color: transparent; }
.chip-violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.chip-teal { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.chip-x { border: 0; background: none; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; opacity: .6; }

.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; border: 2px solid #fff; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -8px; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(246, 243, 238, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(233, 228, 219, .7); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; background: rgba(22, 24, 43, .05); padding: 4px; border-radius: 999px; }
.nav a { padding: 7px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.nav a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.nav a.world.active { background: var(--navy); color: #fff; }
.user-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 999px; }
.menu { position: absolute; right: 20px; top: 58px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; z-index: 50; }
.menu button, .menu a { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }

.page { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }

/* ---------- login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 20% 110%, #ff6b4a 0%, transparent 55%), radial-gradient(900px 500px at 100% 0%, #6d5dfc 0%, transparent 55%), var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.auth-art p { color: rgba(255, 255, 255, .75); max-width: 420px; font-size: 17px; }
.auth-art .plane { position: absolute; font-size: 40px; animation: fly 14s linear infinite; }
@keyframes fly { from { transform: translate(-10vw, 60vh) rotate(-15deg); } to { transform: translate(60vw, -10vh) rotate(-15deg); } }
.auth-art .route { position: absolute; inset: 0; opacity: .35; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 30px; margin-bottom: 6px; }
.auth-card .btn-primary { width: 100%; padding: 13px; font-size: 15px; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.auth-links a { color: var(--coral); font-weight: 600; text-decoration: none; cursor: pointer; }
.error { background: #fdecec; color: var(--red); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }
.success { background: var(--green-soft); color: var(--green); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }

/* ---------- temas de capa ---------- */
.theme-sunset { background: linear-gradient(135deg, #ff5e62 0%, #ff9966 50%, #ffc371 100%); }
.theme-ocean { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #22d3ee 100%); }
.theme-aurora { background: radial-gradient(800px 300px at 20% 0%, rgba(52, 211, 153, .75), transparent 60%), radial-gradient(700px 300px at 85% 20%, rgba(167, 139, 250, .8), transparent 60%), linear-gradient(160deg, #0b1330, #10294a 60%, #0d3b4a); }
.theme-tuscany { background: linear-gradient(135deg, #9a3412 0%, #ea580c 40%, #eab308 80%, #84cc16 100%); }
.theme-sakura { background: linear-gradient(135deg, #db2777 0%, #f472b6 50%, #c4b5fd 100%); }
.theme-desert { background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #fcd34d 100%); }
.theme-night { background: radial-gradient(600px 300px at 80% 10%, rgba(109, 93, 252, .7), transparent 60%), linear-gradient(160deg, #0f1b3d, #1e1b4b); }
.theme-tropical { background: linear-gradient(135deg, #047857 0%, #10b981 40%, #06b6d4 75%, #facc15 110%); }

/* ---------- mural de polaroides ---------- */
.mural { margin-bottom: 34px; }
.mural-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.mural-head h2 { font-size: 22px; font-weight: 800; }
.polaroids { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; padding: 14px 10px 6px; --k: 1; }
.polaroids:not(.all) .polaroid { width: calc(var(--w, 250px) * var(--k)); max-width: 100%; flex: none; }
.polaroid { position: relative; margin: 0; background: #fffdf8; padding: 12px 12px 10px; border-radius: 3px; box-shadow: 0 14px 34px rgba(22, 24, 43, .16), 0 2px 6px rgba(22, 24, 43, .08); transform: rotate(var(--r, 0deg)); transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s; cursor: pointer; }
.polaroid:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 22px 50px rgba(22, 24, 43, .22); z-index: 2; }
.polaroid .ph { aspect-ratio: 1; background: #f3eee4; overflow: hidden; display: grid; place-items: center; }
.polaroid .ph { position: relative; }
.polaroid .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { padding: 10px 4px 2px; text-align: center; min-height: 52px; }
.polaroid .cap { display: block; font-family: 'Caveat', cursive; font-size: 24px; line-height: 1.1; color: #2b2d42; overflow-wrap: anywhere; }
.polaroid .by { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; letter-spacing: .02em; }
.polaroid .tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 226, 150, .72); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); z-index: 1; }
.polaroid .like { position: absolute; right: 18px; bottom: 74px; border: 0; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: transform .15s; }
.polaroid .like:hover { transform: scale(1.12); }
.polaroid.empty .ph { border: 2px dashed #cfc6b6; background: #f7f3ec; color: var(--ink-3); text-align: center; font-weight: 600; font-size: 14px; }
.polaroid.empty .ph b { display: block; font-size: 40px; font-weight: 400; line-height: 1; margin-bottom: 4px; }
.polaroid.empty .cap { color: #b3aa9a; }
.polaroid.empty:hover .ph { border-color: var(--coral); color: var(--coral); }
.polaroid.big { cursor: default; box-shadow: none; padding: 0; }
.polaroid.big .ph { aspect-ratio: auto; max-height: 65vh; background: #111; }
.polaroid.big .ph img { object-fit: contain; max-height: 65vh; }
.polaroid.upload-pick { display: block; max-width: 320px; margin: 10px auto 6px; }
.cap-input { width: 100%; border: 0; border-bottom: 1.5px dashed #d8d0c2; background: transparent; outline: none; text-align: center; font-family: 'Caveat', cursive; font-size: 26px; color: #2b2d42; padding: 4px; }
.polaroids.all { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px; }
.polaroid.small .cap { font-size: 19px; }
.polaroid.small .like { bottom: 66px; right: 14px; }


.polaroid .ph img { transition: transform .1s; user-select: none; -webkit-user-drag: none; }
.polaroid .rs { position: absolute; right: -9px; bottom: -9px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--coral); cursor: nwse-resize; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .15s; touch-action: none; z-index: 3; }
.polaroid .rs::after { content: '⤡'; display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--coral); font-weight: 700; }
.polaroid:hover .rs, .polaroid.resizing .rs { opacity: 1; }
@media (hover: none) { .polaroid .rs { opacity: .9; width: 22px; height: 22px; } }
.polaroid.resizing { transition: none; transform: rotate(0); }
.pe-stage { display: grid; place-items: center; padding: 10px 0 16px; background: repeating-linear-gradient(45deg, #faf6ef 0 10px, #f5f0e7 10px 20px); border-radius: 16px; margin-bottom: 8px; }
.polaroid.pe { width: var(--w); max-width: 100%; cursor: default; }
.polaroid.pe .ph { cursor: grab; touch-action: none; }
.polaroid.pe .ph:active { cursor: grabbing; }
input[type=range] { width: 100%; accent-color: var(--coral); }
.zoom-row { display: flex; align-items: center; gap: 8px; }
.zoom-row .btn-icon { width: 36px; height: 36px; font-size: 20px; flex: none; }
#pe-zl { color: var(--coral); text-transform: none; }

/* ---------- curiosidades (ícone ⓘ) ---------- */
.info-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #cfc6b6; background: transparent; color: #b3aa9a; font: italic 700 13px/1 Georgia, serif; cursor: pointer; vertical-align: middle; padding: 0; margin-left: 4px; flex: none; transition: transform .15s; }
.info-btn:hover { transform: scale(1.15); border-color: var(--violet); color: var(--violet); }
.info-btn.has { border: 0; background: linear-gradient(135deg, var(--violet), #9b8cff); color: #fff; box-shadow: 0 2px 8px rgba(109, 93, 252, .35); }
.info-card .info-kicker { font-size: 12px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.info-text { white-space: pre-wrap; font-size: 15.5px; line-height: 1.6; margin: 14px 0 18px; padding: 16px 18px; background: linear-gradient(160deg, #fbfaff, #f6f3ff); border-left: 4px solid var(--violet); border-radius: 12px; }
.info-field textarea { background: #fbfaff; }

/* ---------- mapa da viagem ---------- */
.map-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed #cfc6b6; background: transparent; cursor: pointer; vertical-align: middle; padding: 0; margin-left: 4px; font-size: 12px; filter: grayscale(1); opacity: .7; transition: transform .15s; }
.map-btn:hover { transform: scale(1.15); filter: none; opacity: 1; border-color: var(--coral); }
.map-btn.has { border: 0; background: var(--green-soft); filter: none; opacity: 1; box-shadow: 0 0 0 2px var(--green) inset; }
.map-btn[disabled] { opacity: .3; pointer-events: none; }
.map-layout { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; }
.map-main { position: sticky; top: 76px; }
.map-layout > * { min-width: 0; }
.map-side .row.wrap .btn { white-space: normal; }
#tripmap { height: calc(100vh - 110px); min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 1; }
.map-stats { font-size: 13px; color: var(--ink-2); margin: 14px 2px 10px; }
.stop { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--radius-sm); padding: 10px 10px 10px 12px; box-shadow: var(--shadow); }
.stop .num { width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.stop.done .num { background: var(--green); }
.stop.done b { text-decoration: line-through; color: var(--ink-3); }
.stop .main { flex: 1; min-width: 0; cursor: pointer; }
.stop .stop-act { display: flex; }
.stop .stop-act .btn-icon { width: 28px; height: 28px; font-size: 13px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); padding: 6px 12px 6px 24px; margin: 0 0 0 12px; border-left: 2px dashed #cfc6b6; }
.leg a { text-decoration: none; padding: 3px 7px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.leg a:hover { border-color: var(--violet); }
.num-pin span, .sp-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; font: 800 13px var(--body); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.num-pin.done span { background: var(--green); }
.sp-pin span { width: 36px; height: 36px; font-size: 18px; background: #fff; border: 3px solid var(--coral); border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); }
.sp-pin span { line-height: 1; }
.leaflet-container { font-family: var(--body); }
.sp-pop img { width: 180px; height: 110px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }

/* ---------- comunidade ---------- */
.comm-hero { border-radius: 28px; padding: 30px 32px; color: #fff; background: radial-gradient(700px 300px at 90% 0%, rgba(255, 181, 71, .55), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(15, 163, 154, .6), transparent 60%), linear-gradient(135deg, #0f1b3d, #233a7a); box-shadow: var(--shadow-lg); }
.comm-hero .kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.comm-hero h1 { font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; margin: 8px 0; }
.comm-hero p { margin: 0; opacity: .85; max-width: 640px; }
.spmap { height: 460px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); z-index: 1; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.spot-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.spot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sp-ph { position: relative; height: 170px; overflow: hidden; background: linear-gradient(135deg, #ffe7d6, #e8e4ff); display: grid; place-items: center; font-size: 54px; }
.sp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-cat { z-index: 1; position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.sp-pending { z-index: 1; position: absolute; right: 10px; top: 10px; background: var(--navy); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.sp-body { padding: 14px 16px 16px; }
.sp-body h3 { font-size: 17px; font-weight: 800; }
.sp-stars { color: #e0a100; letter-spacing: 2px; margin: 4px 0; }
.sp-text { font-size: 14px; color: var(--ink-2); margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-photos { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; }
.sp-photos img { height: 240px; border-radius: 12px; object-fit: cover; }
.sp-up { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-add { width: 92px; height: 92px; border: 2px dashed #cfc6b6; border-radius: 14px; display: grid; place-items: center; align-content: center; cursor: pointer; font-size: 26px; color: var(--ink-3); }
.sp-add span { font-size: 12px; font-weight: 600; }
.sp-thumb { position: relative; width: 92px; height: 92px; }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.sp-thumb button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; font-size: 11px; }
.sp-mini { height: 220px; border-radius: 14px; margin-top: 10px; overflow: hidden; z-index: 1; }
.topics { display: flex; flex-direction: column; gap: 10px; }
.topic { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; }
.topic:hover { transform: translateX(3px); }
.t-main { flex: 1; min-width: 0; }
.t-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--violet)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.t-n { text-align: center; flex: none; }
.t-n b { display: block; font-family: var(--display); font-size: 22px; }
.t-n small { font-size: 11px; color: var(--ink-3); }
.replies { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.reply { display: flex; gap: 10px; align-items: flex-start; }
.reply .bubble { background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 10px 14px; box-shadow: var(--shadow); max-width: 680px; }
.reply.mine { flex-direction: row-reverse; }
.reply.mine .bubble { background: var(--coral-soft); border-radius: 16px 4px 16px 16px; }
.link-del { border: 0; background: none; color: var(--red); cursor: pointer; font-size: 12px; padding: 0 0 0 6px; }

/* ---------- dashboard ---------- */
.hello { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.hello h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.next-trip { position: relative; display: block; border-radius: 28px; overflow: hidden; color: #fff; text-decoration: none; padding: 34px; min-height: 280px; box-shadow: var(--shadow-lg); margin-bottom: 30px; isolation: isolate; }
.next-trip .cover-img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; z-index: -1; filter: brightness(.6); }
.next-trip .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.next-trip h2 { font-size: clamp(32px, 5.4vw, 64px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; margin: 10px 0 8px; max-width: 820px; text-shadow: 0 2px 30px rgba(0, 0, 0, .2); }
.next-trip .count { position: absolute; right: 34px; bottom: 30px; text-align: right; }
.next-trip .count b { font-family: var(--display); font-size: 72px; line-height: .9; display: block; }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.trip-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.trip-card .top { height: 120px; color: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; position: relative; isolation: isolate; }
.trip-card .top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(.7); }
.trip-card .emoji { font-size: 30px; }
.trip-card .body { padding: 14px 16px 16px; }
.trip-card h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.trip-new { border: 2px dashed #d8d1c4; background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 230px; cursor: pointer; color: var(--ink-2); font-weight: 600; text-align: center; }
.trip-new:hover { border-color: var(--coral); color: var(--coral); }
.trip-new .plus { font-size: 40px; display: block; }
.progress { height: 6px; background: #eee8de; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 99px; transition: width .5s; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 34px 0 14px; }
.section-title h2 { font-size: 22px; font-weight: 800; }

/* ---------- herói da viagem ---------- */
.hero { position: relative; border-radius: 28px; overflow: hidden; color: #fff; padding: 30px 34px 26px; isolation: isolate; box-shadow: var(--shadow-lg); }
.hero .cover-img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; z-index: -1; filter: brightness(.55); }
.hero-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero .back { color: #fff; text-decoration: none; font-weight: 600; opacity: .85; font-size: 14px; }
.hero .goal-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .85; margin-top: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 76px); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; margin: 6px 0 4px; text-shadow: 0 2px 40px rgba(0, 0, 0, .25); word-break: break-word; }
.hero .sub { font-size: 17px; opacity: .9; }
.hero-stats { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hstat { background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 10px 16px; min-width: 120px; }
.hstat small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 600; }
.hstat b { font-family: var(--display); font-size: 24px; font-weight: 800; }
.hero .glass-btn { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); }
.hero .glass-btn:hover { background: rgba(255, 255, 255, .3); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .22) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: rgba(15, 27, 61, .55); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.banner { margin-top: 16px; background: var(--violet-soft); color: #3d2fd6; border-radius: var(--radius-sm); padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; }

.tabs { display: flex; gap: 4px; margin: 22px 0 22px; overflow-x: auto; scrollbar-width: none; background: var(--surface); padding: 5px; border-radius: 999px; box-shadow: var(--shadow); width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tabs a.active { background: var(--navy); color: #fff; }
.tabs a .n { font-size: 11px; opacity: .7; margin-left: 4px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi small { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.kpi b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; margin-top: 2px; }
.kpi .sub { font-size: 13px; color: var(--ink-3); }

/* ---------- roteiro / timeline ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); padding: 4px; border-radius: 999px; box-shadow: var(--shadow); overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: var(--coral); color: #fff; }

.day { position: relative; padding-left: 64px; margin-bottom: 8px; }
.day::before { content: ''; position: absolute; left: 25px; top: 52px; bottom: -8px; width: 2px; background: repeating-linear-gradient(to bottom, #d8d1c4 0 6px, transparent 6px 12px); }
.day:last-child::before { display: none; }
.day-head { display: flex; align-items: center; gap: 12px; margin-left: -64px; padding: 6px 0 12px; position: sticky; top: 62px; background: var(--bg); z-index: 5; }
.day-badge { width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; line-height: 1; flex: none; box-shadow: var(--shadow); }
.day-badge b { font-family: var(--display); font-size: 20px; display: block; }
.day-badge small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.day.today .day-badge { background: var(--coral); }
.day.past .day-badge { background: #9aa0b4; }
.day-title { font-family: var(--display); font-weight: 800; font-size: 19px; }
.day-sub { font-size: 13px; color: var(--ink-3); }
.day-note { background: #fff8e6; border: 1px solid #f6e3b0; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin-bottom: 10px; color: #6b5414; cursor: pointer; white-space: pre-wrap; }
.day-note::before { content: '💡 '; }
.day-empty { color: var(--ink-3); font-size: 14px; padding: 4px 0 18px; }

.tl { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: box-shadow .15s, transform .12s; border-left: 4px solid transparent; }
.tl:hover { box-shadow: var(--shadow-lg); }
.tl .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: var(--surface-2); }
.tl .time { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 46px; padding-top: 10px; }
.tl .main { flex: 1; min-width: 0; }
.tl .t { font-weight: 600; }
.tl .meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.tl .right { text-align: right; flex: none; }
.tl .price { font-weight: 700; font-size: 14px; }
.tl.done .t { text-decoration: line-through; color: var(--ink-3); }
.tl.t-atividade { padding: 8px 14px; box-shadow: none; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-left: 4px solid var(--teal); }
.tl.t-atividade .time { padding-top: 2px; }
.tl.t-hospedagem { border-left-color: var(--violet); }
.tl.t-passeio { border-left-color: var(--sun); }

/* cartão de embarque */
.pass { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 10px; display: grid; grid-template-columns: 1fr 150px; overflow: hidden; cursor: pointer; transition: box-shadow .15s; position: relative; }
.pass:hover { box-shadow: var(--shadow-lg); }
.pass .l { padding: 14px 18px; }
.pass .r { border-left: 2px dashed var(--line); padding: 14px 16px; background: var(--surface-2); display: flex; flex-direction: column; justify-content: center; gap: 4px; position: relative; }
.pass .r::before, .pass .r::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.pass .r::before { top: -9px; } .pass .r::after { bottom: -9px; }
.pass .route { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 6px 0 4px; }
.pass .code { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.01em; }
.pass .hr { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pass .line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, #cfc8bb 0 6px, transparent 6px 10px); }
.pass .line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); background: var(--surface); padding: 0 6px; font-size: 18px; }
.pass .dur { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: -2px; }
.pass .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.pass .val { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.pass .head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.plus1 { font-size: 10px; vertical-align: super; color: var(--coral); }

/* ---------- meu sonho (planilha) ---------- */
.dream-head { background: radial-gradient(600px 200px at 90% 0%, rgba(109, 93, 252, .18), transparent 70%), linear-gradient(135deg, #fff, #fbf7ff); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.dream-head h2 { font-size: 26px; font-weight: 800; }
.dream-kpi b { background: linear-gradient(90deg, var(--violet), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet-card { padding: 8px 20px 16px; }
.sheet-card .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet { width: 100%; min-width: 1020px; border-collapse: collapse; font-size: 14px; }
.sheet th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 10px 4px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.sheet td { border-bottom: 1px solid #f0ebe3; padding: 3px 2px; vertical-align: middle; }
.sheet td.n { color: var(--ink-3); font-family: var(--mono); font-size: 12px; text-align: center; width: 28px; }
.sheet .num { text-align: right; }
.sheet td.brl { font-weight: 700; white-space: nowrap; padding: 0 8px; font-variant-numeric: tabular-nums; }
.cell { width: 100%; border: 1.5px solid transparent; background: transparent; border-radius: 8px; padding: 8px 8px; outline: none; font-size: 14px; min-width: 0; }
.cell:hover { background: var(--surface-2); }
.cell:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 3px rgba(109, 93, 252, .12); }
input.cell.num { text-align: right; min-width: 80px; font-variant-numeric: tabular-nums; }
input.cell[type=date] { width: 114px; min-width: 114px; font-size: 13px; padding: 8px 2px; }
select.cell { min-width: 74px; cursor: pointer; }
select.cell[data-field=type] { min-width: 124px; width: 124px; }
.sheet tr.new-row td { background: #fcfbf8; }
.sheet tr.new-row .cell::placeholder { color: #b8b0a2; }
.sheet tr.real td { background: #f1fbf5; }
.sheet tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; padding: 12px 8px; font-size: 15px; }
.real-btn { border: 0; cursor: pointer; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 11.5px; white-space: nowrap; background: linear-gradient(90deg, var(--violet), var(--coral)); color: #fff; box-shadow: 0 4px 14px rgba(109, 93, 252, .3); transition: transform .12s; }
.real-btn:hover { transform: scale(1.05); }
.real-btn[disabled] { opacity: .35; pointer-events: none; }
.real-btn.done { background: var(--green-soft); color: var(--green); box-shadow: none; }
.del-row { width: 28px; height: 28px; opacity: .4; }
.del-row:hover { opacity: 1; color: var(--red); }

/* ---------- checklist ---------- */
.ck-group { margin-bottom: 18px; }
.ck-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-family: var(--body); }
.ck-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 6px; box-shadow: 0 1px 2px rgba(22, 24, 43, .04); }
.ck-row .txt { flex: 1; cursor: text; }
.ck-row.done .txt { text-decoration: line-through; color: var(--ink-3); }
.ck-row .del { opacity: 0; transition: opacity .15s; }
.ck-row:hover .del { opacity: 1; }
.ck-add { display: flex; gap: 8px; margin-top: 4px; }
.ck-add .input { padding: 8px 12px; font-size: 14px; background: transparent; border-style: dashed; }
.assignee { border: 0; background: none; cursor: pointer; padding: 0; }
.assignee .avatar { width: 26px; height: 26px; font-size: 11px; }
.assignee .none { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed #cfc8bb; display: grid; place-items: center; font-size: 12px; color: var(--ink-3); }
.sugg { background: linear-gradient(160deg, #1c1747, #0f1b3d); color: #fff; border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; }
.sugg h3 { font-size: 18px; margin-bottom: 4px; }
.sugg p { color: rgba(255, 255, 255, .7); font-size: 13px; margin: 0 0 14px; }
.sugg-list { max-height: 60vh; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.sg { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); margin-bottom: 6px; }
.sg .tx { flex: 1; font-size: 14px; }
.sg .why { font-size: 12px; color: rgba(255, 255, 255, .55); }
.sg button { border: 0; cursor: pointer; border-radius: 999px; font-weight: 700; flex: none; }
.sg .add { background: var(--coral); color: #fff; width: 30px; height: 30px; font-size: 18px; }
.sg .no { background: none; color: rgba(255, 255, 255, .4); width: 24px; height: 30px; }
.sg .no:hover { color: #fff; }

/* ---------- orçamento ---------- */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.bar { height: 10px; background: #f0ebe2; border-radius: 99px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid #f2eee7; vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr { cursor: pointer; }
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.quick { display: grid; grid-template-columns: 1.2fr 90px 1fr 1.4fr auto; gap: 8px; }
.rate-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f2eee7; }
.rate-row .input { width: 110px; padding: 7px 10px; }
.pill-toggle { border: 0; cursor: pointer; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.pill-toggle.paid { background: var(--green-soft); color: var(--green); }
.pill-toggle.unpaid { background: var(--coral-soft); color: #d6482a; }

/* ---------- arquivos ---------- */
.drop { border: 2px dashed #d3cbbd; border-radius: var(--radius); padding: 30px; text-align: center; cursor: pointer; transition: all .15s; background: var(--surface); }
.drop.over, .drop:hover { border-color: var(--coral); background: var(--coral-soft); }
.drop .big { font-size: 34px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 18px; }
.file { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.file .thumb { height: 110px; background: var(--surface-2); display: grid; place-items: center; font-size: 36px; overflow: hidden; text-decoration: none; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .info { padding: 10px 12px; font-size: 13px; }
.file .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-list { display: flex; flex-wrap: wrap; gap: 6px; }
.att { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; text-decoration: none; max-width: 100%; }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 27, 61, .45); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 24px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: rise .2s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 720px; }
.modal-head { padding: 22px 24px 8px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h2 { font-size: 22px; font-weight: 800; flex: 1; }
.modal-body { padding: 8px 24px 8px; }
.modal-foot { padding: 14px 24px 22px; display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; background: var(--surface); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.type-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 16px; }
.type-pick button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.type-pick button span { font-size: 22px; }
.type-pick button.on { border-color: var(--coral); background: var(--coral-soft); }
.theme-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-pick button { width: 44px; height: 44px; border-radius: 12px; border: 3px solid transparent; cursor: pointer; }
.theme-pick button.on { border-color: var(--ink); }
.emoji-pick { display: flex; gap: 4px; flex-wrap: wrap; }
.emoji-pick button { width: 40px; height: 40px; font-size: 22px; border: 1.5px solid transparent; background: var(--surface-2); border-radius: 10px; cursor: pointer; }
.emoji-pick button.on { border-color: var(--coral); background: var(--coral-soft); }
.geo-wrap { position: relative; }
.geo-results { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 10; overflow: hidden; margin-top: 4px; }
.geo-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; font-size: 14px; }
.geo-results button:hover { background: var(--surface-2); }
.stars button { border: 0; background: none; font-size: 30px; cursor: pointer; padding: 0 2px; filter: grayscale(1); opacity: .4; }
.stars button.on { filter: none; opacity: 1; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2eee7; }

/* ---------- toast ---------- */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .25s; }
.toast.err { background: var(--red); }

/* ---------- MEU MUNDO ---------- */
body.world-mode { background: #070b1f; }
body.world-mode .topbar { background: rgba(7, 11, 31, .75); border-bottom-color: rgba(255, 255, 255, .06); }
body.world-mode .logo, body.world-mode .user-btn { color: #fff; }
body.world-mode .nav { background: rgba(255, 255, 255, .08); }
body.world-mode .nav a { color: rgba(255, 255, 255, .7); }
.world { color: #fff; position: relative; }
.stars-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(1200px 700px at 70% -10%, rgba(109, 93, 252, .35), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(255, 107, 74, .22), transparent 60%), #070b1f; }
.stars-bg i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
.world-head { text-align: center; padding: 10px 0 20px; }
.world-head .kicker { font-family: var(--mono); letter-spacing: .3em; font-size: 12px; color: var(--sun); text-transform: uppercase; }
.world-head h1 { font-size: clamp(46px, 9vw, 110px); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(90deg, #fff, #ffd29a 50%, #ff8a6b); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: .95; margin: 8px 0; }
.world-head p { color: rgba(255, 255, 255, .6); }
.wstats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 20px 0 26px; }
.wstat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 16px; text-align: center; }
.wstat b { font-family: var(--display); font-size: 34px; font-weight: 800; display: block; line-height: 1.1; }
.wstat small { color: rgba(255, 255, 255, .55); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.map-box { position: relative; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 28px; overflow: hidden; }
.map-box svg { display: block; width: 100%; height: auto; }
.map-box .country { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .12); stroke-width: .4; }
.map-box .country.on { fill: url(#visited); stroke: rgba(255, 210, 154, .7); filter: drop-shadow(0 0 6px rgba(255, 140, 90, .6)); }
.map-box .arc { fill: none; stroke: #ffd29a; stroke-width: 1.3; stroke-dasharray: 4 4; opacity: .85; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.map-box .pin { fill: #fff; }
.map-box .pin-glow { fill: rgba(255, 181, 71, .35); animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.map-ctrl { position: absolute; right: 14px; bottom: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(7, 11, 31, .7); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); }
.map-ctrl:hover { background: rgba(255, 255, 255, .15); }
.map-tip { position: absolute; pointer-events: none; background: #fff; color: var(--ink); padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; transform: translate(-50%, -130%); white-space: nowrap; }
.flags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 8px; }
.flag { font-size: 34px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); transition: transform .2s; cursor: default; }
.flag:hover { transform: scale(1.3) rotate(-8deg); }
.passport { margin-top: 40px; background: linear-gradient(160deg, #1b2a57, #0f1b3d); border-radius: 28px; padding: 30px; border: 1px solid rgba(255, 255, 255, .08); position: relative; }
.passport h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.passport .pp-sub { color: rgba(255, 255, 255, .55); margin: 4px 0 24px; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.stamp { --c: #ff8a6b; border: 3px solid var(--c); color: var(--c); border-radius: 18px; padding: 18px; text-align: center; transform: rotate(var(--r, -3deg)); text-decoration: none; position: relative; transition: transform .25s; background: rgba(255, 255, 255, .02); mix-blend-mode: screen; }
.stamp::before { content: ''; position: absolute; inset: 5px; border: 1.5px dashed var(--c); border-radius: 12px; opacity: .6; }
.stamp:hover { transform: rotate(0) scale(1.04); }
.stamp .e { font-size: 36px; }
.stamp .tt { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; line-height: 1.05; margin: 6px 0; }
.stamp .dd { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.stamp .fl { font-size: 18px; margin-top: 8px; }
.stamp .st { font-size: 14px; margin-top: 4px; letter-spacing: 2px; }
.stamp.round { border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; }
.stamp.round::before { border-radius: 50%; }
.world-empty { text-align: center; padding: 60px 20px; color: rgba(255, 255, 255, .7); }
.world-empty .globe { font-size: 90px; animation: spin 20s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.upcoming { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.upcoming a { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* confete */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; padding: 28px; }
  .cols, .cols-2 { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-main { position: static; order: -1; }
  #tripmap { height: 46vh; min-height: 300px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .wstats { grid-template-columns: repeat(3, 1fr); }
  .sugg { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .page { padding: 18px 16px 90px; }
  .topbar-in { padding: 10px 16px; gap: 10px; }
  .logo span { display: none; }
  .nav .nav-l { display: none; }
  .nav a { padding: 7px 14px; font-size: 16px; }
  .spmap { height: 360px; }
  .comm-hero { padding: 22px 20px; border-radius: 22px; }
  .nav a { padding: 7px 12px; font-size: 13px; }
  .hero { padding: 22px 20px 20px; border-radius: 22px; }
  .hstat { min-width: 0; flex: 1 1 40%; padding: 8px 12px; }
  .hstat b { font-size: 19px; }
  .next-trip { padding: 24px; min-height: 240px; }
  .next-trip .count { position: static; text-align: left; margin-top: 18px; }
  .next-trip .count b { font-size: 52px; }
  .fields-2, .fields-3 { grid-template-columns: 1fr; }
  .day { padding-left: 0; }
  .day::before { display: none; }
  .day-head { margin-left: 0; }
  .pass { grid-template-columns: 1fr; }
  .pass .r { border-left: 0; border-top: 2px dashed var(--line); flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .pass .r::before, .pass .r::after { display: none; }
  .pass .code { font-size: 22px; }
  .quick { grid-template-columns: 1fr 90px; }
  .polaroids:not(.all) { gap: 12px; padding: 12px 2px 4px; --k: .42; }
  .polaroids:not(.all) .polaroid { padding: 6px 6px 4px; }
  .polaroids:not(.all) .cap { font-size: 16px; }
  .polaroids:not(.all) .by { display: none; }
  .polaroids:not(.all) figcaption { min-height: 30px; padding-top: 6px; }
  .polaroids:not(.all) .tape { width: 50px; height: 16px; top: -8px; }
  .polaroids:not(.all) .like { bottom: 42px; right: 8px; padding: 2px 7px; font-size: 11px; }
  .polaroid.empty .ph { font-size: 11px; }
  .polaroid.empty .ph b { font-size: 26px; }
  .wstats { grid-template-columns: repeat(2, 1fr); }
  .passport { padding: 20px; }
  .modal-bg { padding: 0; align-items: end; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .tl .time { min-width: 40px; }
}
