/* =====================================================================
   Festou! v2 — design system
   Base noturna de índigo, rosa-neon como acento único, laranja para
   dinheiro, amarelo para o canhoto do ingresso. Tema claro via [data-theme].
   ===================================================================== */
:root {
  --bg: #0E0A1F; --bg-2: #150F2E; --surface: #1C1540; --surface-2: #272057; --surface-3: #332B6B;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --text: #F7F3FF; --text-2: #D9D0F0; --muted: #B3A9D3;
  --pink: #FF2E88; --pink-dark: #E01C74; --pink-soft: rgba(255,46,136,.16);
  --orange: #FF8A3D; --yellow: #FFD166; --green: #2ED3B7; --red: #FF5C5C; --blue: #5B8CFF;
  --stub-text: #2A1B00; --overlay: rgba(6,3,16,.72); --yellow-text: #FFD166;
  --radius-xl: 24px; --radius: 18px; --radius-sm: 12px;
  --shadow: 0 16px 40px -18px rgba(0,0,0,.75); --shadow-sm: 0 6px 18px -8px rgba(0,0,0,.6);
  --glow: 0 0 0 5px rgba(255,46,136,.18), 0 14px 32px -8px rgba(255,46,136,.6);
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --topbar-h: 60px; --bottomnav-h: 74px; --max: 1180px; --tap: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --bg-glow-1: rgba(255,46,136,.14); --bg-glow-2: rgba(255,138,61,.10);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F6F3FC; --bg-2: #FFFFFF; --surface: #FFFFFF; --surface-2: #EFEAFB; --surface-3: #E3DBF7;
  --line: rgba(20,10,60,.09); --line-strong: rgba(20,10,60,.18);
  --text: #16102E; --text-2: #3B3160; --muted: #6E6490;
  --pink-soft: rgba(255,46,136,.12); --overlay: rgba(20,10,50,.5); --yellow-text: #9A6B00;
  --shadow: 0 16px 40px -20px rgba(40,20,90,.35); --shadow-sm: 0 6px 18px -10px rgba(40,20,90,.3);
  --bg-glow-1: rgba(255,46,136,.10); --bg-glow-2: rgba(255,138,61,.08);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; overscroll-behavior-y: contain;
  background-image: radial-gradient(1100px 560px at 85% -8%, var(--bg-glow-1), transparent 60%), radial-gradient(800px 500px at -10% 25%, var(--bg-glow-2), transparent 60%); background-attachment: fixed; transition: background-color .25s, color .25s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.hide-mobile { display: none !important; }
[hidden] { display: none !important; }
svg.ic { flex: none; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ----- Top bar ----- */
.topbar { position: sticky; top: 0; z-index: 40; height: calc(var(--topbar-h) + var(--safe-t)); padding-top: var(--safe-t); display: flex; align-items: center; gap: 10px; padding-left: 14px; padding-right: 14px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--pink), var(--orange)); box-shadow: 0 6px 14px -6px rgba(255,46,136,.7); }
.brand-name em { color: var(--pink); font-style: normal; }
.loc-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: .8rem; font-weight: 600; max-width: 44vw; min-height: 36px; color: var(--text); }
.loc-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-chip b { color: var(--pink); font-weight: 600; }
.topnav { display: none; gap: 2px; margin-left: 6px; }
.topnav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.topnav a.active, .topnav a:hover { color: var(--text); background: var(--surface); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 12px; background: transparent; border: 0; color: var(--text); }
.icon-btn:hover { background: var(--surface); }
.badge { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2) center/cover; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-left: 4px; }

/* ----- Bottom nav flutuante ----- */
.bottomnav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); height: 64px; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.bottomnav a { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .66rem; color: var(--muted); font-weight: 600; border-radius: 16px; transition: color .15s; }
.bottomnav a.active { color: var(--pink); }
.bottomnav a.active::before { content: ''; position: absolute; top: 6px; width: 30px; height: 3px; border-radius: 3px; background: var(--pink); }
.bottomnav a.create span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-top: -30px; background: linear-gradient(135deg, var(--pink), var(--orange)); box-shadow: var(--glow); border: 4px solid var(--bg); transition: transform .15s; }
.bottomnav a.create:active span { transform: scale(.92); }
.bottomnav .dot { position: absolute; top: 12px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid var(--surface); }

/* ----- Layout ----- */
.app { max-width: var(--max); margin: 0 auto; padding: 14px 16px calc(var(--bottomnav-h) + var(--safe-b) + 28px); min-height: calc(100vh - var(--topbar-h) - var(--safe-t)); }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { .ev-card, .btn, .chip, .user-card, .conv { transition: transform .15s ease, box-shadow .15s ease, background .15s; } .ev-card:active { transform: scale(.985); } }
.section { margin: 24px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head a { color: var(--pink); font-size: .85rem; font-weight: 700; }
.row-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; flex: 0 0 auto; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-enter { animation: pagein .26s cubic-bezier(.2,.8,.2,1); }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } }

/* ----- Hero ----- */
.hero { padding: 12px 0 4px; }
.hero h1 { max-width: 15ch; }
.hero p { color: var(--muted); margin-top: 8px; max-width: 42ch; }
.hero-tagline { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--pink); font-weight: 700; margin-bottom: 10px; background: var(--pink-soft); padding: 5px 10px; border-radius: 999px; }
.loc-fab { position: fixed; right: 16px; bottom: calc(var(--bottomnav-h) + var(--safe-b) + 24px); z-index: 35; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; min-height: var(--tap); border-radius: 999px; border: 0; background: var(--yellow); color: var(--stub-text); font-weight: 800; box-shadow: 0 12px 30px -8px rgba(255,209,102,.7); animation: fabin .4s cubic-bezier(.2,.8,.2,1); }
@keyframes fabin { from { transform: translateY(20px); opacity: 0; } }

/* ----- Stories ----- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 6px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--text); }
.story .ring { width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow)); }
.story.seen .ring { background: var(--line-strong); }
.story.add .ring { background: var(--surface-2); display: grid; place-items: center; color: var(--pink); }
.story .ring > div { width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2) center/cover; border: 3px solid var(--bg); display: grid; place-items: center; font-weight: 700; }
.story .lbl { font-size: .68rem; max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-view { position: fixed; inset: 0; z-index: 80; background: #000; display: grid; place-items: center; animation: fade .2s; }
.story-view .img { position: absolute; inset: 0; background: #000 center/contain no-repeat; }
.story-view .bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; }
.story-view .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-view .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story-view .bars i.done b { width: 100%; }
.story-view .bars i.on b { animation: bar 5s linear forwards; }
@keyframes bar { to { width: 100%; } }
.story-view .who { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 14px; right: 60px; display: flex; align-items: center; gap: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.story-view .who .av { width: 36px; height: 36px; border: 2px solid #fff; }
.story-view .cap { position: absolute; bottom: calc(30px + env(safe-area-inset-bottom)); left: 16px; right: 16px; color: #fff; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.story-view .zone { position: absolute; top: 0; bottom: 0; width: 35%; background: none; border: 0; }
.story-view .zone.l { left: 0; } .story-view .zone.r { right: 0; }
.story-view .close { position: absolute; top: calc(20px + env(safe-area-inset-top)); right: 12px; color: #fff; background: rgba(0,0,0,.4); border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }

/* ----- Chips ----- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 9px 14px; min-height: 38px; font-size: .84rem; font-weight: 600; white-space: nowrap; transition: transform .12s, background .15s; }
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip:active { transform: scale(.96); }

/* ----- Card de evento (cartaz + canhoto) ----- */
.ev-card { position: relative; width: 236px; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); isolation: isolate; display: block; }
.ev-card.wide { width: 100%; aspect-ratio: 16/10; }
.ev-card .img { position: absolute; inset: 0; background: var(--surface-2) center/cover; transition: transform .5s ease; }
.ev-card:hover .img { transform: scale(1.04); }
.ev-card .img.auto { display: grid; place-items: center; }
.ev-card .img.auto b { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,.3); }
.ev-card .img.auto::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 55%); }
.ev-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,5,22,.96) 0%, rgba(8,5,22,.5) 45%, transparent 75%); }
.ev-card .stub { position: absolute; top: 12px; left: 12px; background: var(--yellow); color: var(--stub-text); border-radius: 10px; padding: 6px 10px; text-align: center; line-height: 1; font-weight: 800; z-index: 2; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.ev-card .stub b { display: block; font-size: 1.25rem; }
.ev-card .stub small { font-size: .62rem; font-weight: 700; letter-spacing: .04em; }
.ev-card .cat { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: .68rem; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(6px); }
.ev-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; z-index: 2; color: #fff; }
.ev-card h3 { font-size: 1rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card .meta { font-size: .78rem; color: rgba(245,240,255,.85); margin-top: 5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ev-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.ev-card .price { color: var(--orange); font-weight: 700; }
.ev-card .price.free { color: var(--green); }
.ev-card .people { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .74rem; color: rgba(245,240,255,.7); }
.ev-list .ev-card { width: 100%; aspect-ratio: 3/2; }
@media (min-width: 560px) { .ev-list { grid-template-columns: repeat(2, 1fr); } .ev-list .ev-card { aspect-ratio: 4/3; } }
@media (min-width: 960px) { .ev-list { grid-template-columns: repeat(3, 1fr); } .ev-card { width: 262px; } }
.skel-card { width: 236px; aspect-ratio: 4/5; border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; }
.skel-card::before { content: ''; position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); }
.skel-card .l1, .skel-card .l2, .skel-card .l3 { position: absolute; left: 14px; height: 12px; border-radius: 6px; background: var(--surface-2); }
.skel-card .l1 { bottom: 58px; width: 75%; } .skel-card .l2 { bottom: 38px; width: 50%; } .skel-card .l3 { bottom: 18px; width: 35%; }
.skel-card::after, .skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,.07) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.ev-list .skel-card { width: 100%; aspect-ratio: 3/2; }
@media (min-width: 560px) { .ev-list .skel-card { aspect-ratio: 4/3; } }
.skel { background: var(--surface); border-radius: var(--radius); position: relative; overflow: hidden; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ----- Botões ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; padding: 11px 16px; min-height: var(--tap); font-weight: 700; font-size: .92rem; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; color: var(--text); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); box-shadow: var(--glow); }
.btn-secondary { background: var(--surface); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-danger { background: rgba(255,92,92,.14); color: var(--red); border-color: rgba(255,92,92,.3); }
.btn-yellow { background: var(--yellow); color: var(--stub-text); }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: .8rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: var(--tap); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.on { background: var(--pink-soft); border-color: var(--pink); color: var(--pink); }

/* ----- Formulários ----- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-size: .84rem; font-weight: 700; }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]), .form select, .form textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: var(--tap); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.form textarea { min-height: 110px; resize: vertical; }
select.input, .form select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form select option { background: var(--surface); color: var(--text); }
.form .error { color: var(--red); font-size: .8rem; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: var(--tap); }
.check input { width: 20px; height: 20px; accent-color: var(--pink); }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: color-mix(in srgb, var(--surface) 40%, transparent); }
.file-drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; background: var(--surface) center/cover; min-height: 150px; display: grid; place-items: center; }
.file-drop.has { color: transparent; border-style: solid; }
.file-drop input { display: none; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 8px 12px; min-height: 36px; font-weight: 700; font-size: .84rem; color: var(--muted); }
.seg button.active { background: var(--pink); color: #fff; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-3); border: 0; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--pink); } .switch.on::after { transform: translateX(20px); }
.suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; z-index: 30; overflow: hidden; box-shadow: var(--shadow); }
.suggest button { display: flex; align-items: center; width: 100%; gap: 10px; background: none; border: 0; padding: 11px 14px; text-align: left; min-height: var(--tap); color: var(--text); }
.suggest button:hover { background: var(--surface); }
.suggest .type { color: var(--muted); font-size: .74rem; margin-left: auto; }

/* ----- Cards genéricos ----- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.pad-0 { padding: 0; overflow: hidden; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .8rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.user-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 64px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2) center/cover; flex: none; display: grid; place-items: center; font-weight: 700; }
.user-card .name { font-weight: 700; }
.user-card .sub { font-size: .8rem; color: var(--muted); }
.av-lg { width: 96px; height: 96px; border-radius: 50%; background: var(--surface-2) center/cover; border: 4px solid var(--bg); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); }
.tag.pink { background: var(--pink-soft); color: var(--pink); }
.tag.green { background: rgba(46,211,183,.18); color: var(--green); }
.tag.orange { background: rgba(255,138,61,.18); color: var(--orange); }
.tag.red { background: rgba(255,92,92,.18); color: var(--red); }
.tag.yellow { background: rgba(255,209,102,.2); color: var(--yellow-text); }
.stack-avatars { display: flex; }
.stack-avatars .sav { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -6px; background: var(--surface-2) center/cover; }

/* ----- Página do evento ----- */
.ev-hero { position: relative; margin: -14px -16px 0; aspect-ratio: 4/3; max-height: 460px; background: var(--surface-2) center/cover; }
.ev-hero.auto { display: grid; place-items: center; }
.ev-hero.auto b { font-size: 6rem; font-weight: 800; color: rgba(255,255,255,.25); letter-spacing: -.05em; }
.ev-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 20%, transparent) 60%, color-mix(in srgb, var(--bg) 30%, transparent) 100%); }
.ev-hero .back { position: absolute; top: 12px; left: 12px; z-index: 2; }
.ev-hero .top-r { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 6px; }
.ev-head { position: relative; margin-top: -70px; z-index: 2; }
.ev-head h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.ev-facts { display: grid; gap: 10px; margin-top: 12px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .icb { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; color: var(--pink); }
.fact b { display: block; }
.fact span { color: var(--muted); font-size: .85rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.actions .btn { flex: 1 1 auto; }
.participation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.participation button { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 10px 6px; min-height: 64px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--text); }
.participation button b { display: block; font-size: 1.25rem; font-weight: 800; }
.participation button.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); }
.desc { white-space: pre-wrap; color: var(--text-2); }
.mini-map { height: 200px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery a, .gallery div { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2) center/cover; }
.occurrences { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.occurrences a { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; text-align: center; line-height: 1.2; }
.occurrences a b { display: block; font-size: 1.1rem; }
.occurrences a small { color: var(--muted); }
@media (min-width: 900px) {
  .ev-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
  .ev-side { position: sticky; top: calc(var(--topbar-h) + var(--safe-t) + 16px); }
  .ev-hero { margin: 0; border-radius: var(--radius); overflow: hidden; }
}

/* ----- Chat do evento ----- */
.chat { display: flex; flex-direction: column; height: min(70vh, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat .head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat .head .online { margin-left: auto; font-size: .76rem; color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.chat .head .online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat .msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; gap: 8px; max-width: 85%; }
.msg .av { width: 28px; height: 28px; font-size: .68rem; }
.msg .bub { background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.msg .bub .who { font-size: .72rem; font-weight: 700; color: var(--pink); }
.msg .bub .t { word-break: break-word; }
.msg .bub .when { font-size: .66rem; color: var(--muted); margin-left: 6px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bub { background: var(--pink); color: #fff; border-radius: 14px 4px 14px 14px; }
.msg.me .bub .who, .msg.me .bub .when { color: rgba(255,255,255,.8); }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat form input { flex: 1; }
.chat .sys { text-align: center; font-size: .74rem; color: var(--muted); }

/* ----- Ingresso / QR ----- */
.ticket { background: #fff; color: #16102E; border-radius: 22px; padding: 20px; text-align: center; position: relative; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 58%; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket .qr { width: min(240px, 70vw); margin: 10px auto; }
.ticket .qr svg { width: 100%; height: auto; }
.ticket .code { font-family: ui-monospace, monospace; letter-spacing: .12em; font-weight: 700; color: #6E6490; }
.ticket.done { background: var(--green); color: #052; }
.scan-box { position: relative; aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box .frame { position: absolute; inset: 14%; border: 3px solid var(--yellow); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.45); }
.scan-result { padding: 16px; border-radius: var(--radius); text-align: center; font-weight: 700; }
.scan-result.ok { background: rgba(46,211,183,.2); color: var(--green); }
.scan-result.warn { background: rgba(255,209,102,.2); color: var(--yellow-text); }
.scan-result.err { background: rgba(255,92,92,.2); color: var(--red); }

/* ----- Comentários ----- */
.comments { display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment .av { width: 36px; height: 36px; font-size: .8rem; }
.comment .bubble { background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 10px 12px; flex: 1; }
.comment .who { font-weight: 700; font-size: .85rem; }
.comment .when { color: var(--muted); font-size: .72rem; margin-left: 6px; }
.comment .text { margin: 4px 0; white-space: pre-wrap; word-break: break-word; }
.comment .text .mention { color: var(--pink); font-weight: 600; }
.comment .tools { display: flex; gap: 14px; font-size: .76rem; color: var(--muted); }
.comment .tools button { background: none; border: 0; color: inherit; padding: 4px 0; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.comment .tools button.on { color: var(--pink); }
.replies { margin-left: 46px; display: flex; flex-direction: column; gap: 10px; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { flex: 1; min-height: 46px; max-height: 140px; }

/* ----- Feed de fotos ----- */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post .head { display: flex; align-items: center; gap: 10px; padding: 12px; }
.post .head .av { width: 36px; height: 36px; font-size: .75rem; }
.post .pic { aspect-ratio: 1; background: var(--bg-2) center/cover; display: block; }
.post .foot { padding: 12px; }
.post .tools { display: flex; gap: 6px; }
.post .tools button { background: none; border: 0; padding: 8px; min-height: 40px; display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; font-weight: 700; color: var(--muted); border-radius: 10px; }
.post .tools button.on { color: var(--pink); }
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.masonry a { aspect-ratio: 1; background: var(--surface-2) center/cover; border-radius: 6px; display: block; }
@media (min-width: 720px) { .feed { max-width: 560px; margin: 0 auto; } }
.sentinel { height: 1px; }
.loading-more { display: flex; justify-content: center; padding: 16px; }

/* ----- Perfil / organizador ----- */
.profile-cover { margin: -14px -16px 0; height: 160px; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)) center/cover; }
.profile-head { margin-top: -48px; position: relative; }
.profile-stats { display: flex; gap: 18px; margin: 12px 0; flex-wrap: wrap; }
.profile-stats > * { background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.profile-stats b { display: block; font-size: 1.1rem; }
.profile-stats span { font-size: .78rem; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 14px; min-height: var(--tap); color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--text); border-bottom-color: var(--pink); }
.org-banner { background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; border-radius: var(--radius-xl); padding: 20px; margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.org-banner b { font-size: 1.5rem; font-weight: 800; display: block; }
.org-banner span { font-size: .76rem; opacity: .9; }

/* ----- Notificações ----- */
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); align-items: center; min-height: 64px; }
.notif.unread { border-color: rgba(255,46,136,.4); background: color-mix(in srgb, var(--pink-soft) 50%, var(--surface)); }
.notif .av { width: 40px; height: 40px; color: var(--pink); }
.notif .when { font-size: .72rem; color: var(--muted); }

/* ----- Mapa ----- */
.map-wrap { position: relative; margin: -14px -16px 0; height: calc(100vh - var(--topbar-h) - var(--safe-t) - var(--bottomnav-h) - var(--safe-b) - 4px); }
#map { position: absolute; inset: 0; background: var(--bg-2); }
.map-tools { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.map-tools > * { flex: none; }
.map-tools .input { min-width: 180px; flex: 1; }
.map-tools .input, .map-tools select, .map-tools .btn { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); }
.map-popup { width: 220px; }
.map-popup .img { aspect-ratio: 16/9; border-radius: 8px; background: var(--surface-2) center/cover; margin-bottom: 8px; }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: 14px; }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-container { font-family: var(--font); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(255,46,136,.35); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--pink); color: #fff; font-weight: 700; }
.pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.4); overflow: hidden; display: grid; place-items: center; background: var(--pink) center/cover; }
.pin span { transform: rotate(45deg); font-size: 1rem; }
.pin.photo span { display: none; }
.pin-me { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(255,209,102,.3); }

/* ----- Modal (sheet), toast, vazio, loading ----- */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: var(--overlay); backdrop-filter: blur(4px); display: grid; place-items: end center; animation: fade .18s; }
.modal { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 12px 20px calc(20px + var(--safe-b)); animation: up .24s cubic-bezier(.2,.8,.2,1); }
.modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 14px; }
.modal h2 { margin-bottom: 12px; }
@media (min-width: 600px) { .modal-bg { place-items: center; } .modal { border-radius: 24px; padding-top: 20px; } .modal::before { display: none; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; bottom: calc(var(--bottomnav-h) + var(--safe-b) + 18px); left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--surface-2); border: 1px solid var(--line-strong); border-left: 4px solid var(--pink); padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); animation: up .25s; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icb { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; margin: 0 auto 12px; color: var(--pink); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pink); animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.like-pop { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.35); } }
.ptr { position: fixed; top: calc(var(--topbar-h) + var(--safe-t)); left: 50%; transform: translate(-50%, -60px); z-index: 39; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--pink); box-shadow: var(--shadow-sm); transition: transform .2s; }
.ptr.spin svg { animation: spin .8s linear infinite; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ----- Auth / onboarding ----- */
.auth { max-width: 420px; margin: 20px auto; }
.auth .brand { justify-content: center; font-size: 1.6rem; margin-bottom: 8px; }
.auth h1 { text-align: center; font-size: 1.5rem; }
.auth .tagline { text-align: center; color: var(--muted); margin-bottom: 22px; }
.btn-google { background: #fff; color: #16102E; border-color: var(--line-strong); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.onb { max-width: 520px; margin: 0 auto; }
.onb .steps { display: flex; gap: 6px; margin-bottom: 20px; }
.onb .steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); }
.onb .steps i.on { background: var(--pink); }
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.interest-grid button { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 6px; min-height: 76px; color: var(--text); font-weight: 700; font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.interest-grid button span { font-size: 1.5rem; }
.interest-grid button.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); }

/* ----- Admin / tabelas / configurações ----- */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; scrollbar-width: none; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: .75rem; }
.table-wrap { overflow-x: auto; }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.chart-box canvas { max-height: 240px; }
.search-box { position: relative; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.settings-row:last-child { border-bottom: 0; }
.settings-row .lbl b { display: block; }
.settings-row .lbl span { font-size: .8rem; color: var(--muted); }

/* ----- Desktop ----- */
@media (min-width: 900px) {
  .hide-mobile { display: inline-flex !important; }
  .topnav { display: flex; }
  .bottomnav { display: none; }
  .app { padding-bottom: 40px; }
  .toasts { bottom: 24px; }
  .loc-fab { bottom: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { height: calc(100vh - var(--topbar-h) - 32px); margin: 0; border-radius: var(--radius); overflow: hidden; }
  .interest-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   v3 — Presets de tema (escolhidos no painel admin) + componentes sociais
   ===================================================================== */
/* Tropical: verde-petróleo + laranja + limão */
[data-preset="tropical"] { --bg: #06201F; --bg-2: #0B2B2A; --surface: #113A38; --surface-2: #17494A; --surface-3: #1F5A5B; --pink: #FF7A1A; --pink-dark: #E56400; --pink-soft: rgba(255,122,26,.18); --orange: #C5F135; --yellow: #FFD166; --green: #35E0A1; --bg-glow-1: rgba(197,241,53,.12); --bg-glow-2: rgba(255,122,26,.12); --glow: 0 0 0 5px rgba(255,122,26,.18), 0 14px 32px -8px rgba(255,122,26,.6); }
[data-preset="tropical"][data-theme="light"] { --bg: #F1FAF6; --bg-2: #fff; --surface: #fff; --surface-2: #E3F4EC; --surface-3: #CFEADD; --text: #0B2B2A; --text-2: #24504C; --muted: #5C7F79; }
/* Sunset: roxo profundo + coral + amarelo */
[data-preset="sunset"] { --bg: #1A0B2E; --bg-2: #24103D; --surface: #2E1650; --surface-2: #3B1E66; --surface-3: #4A2A7A; --pink: #FF5E62; --pink-dark: #E8474B; --pink-soft: rgba(255,94,98,.18); --orange: #FFB347; --yellow: #FFE066; --bg-glow-1: rgba(255,94,98,.16); --bg-glow-2: rgba(255,179,71,.12); --glow: 0 0 0 5px rgba(255,94,98,.18), 0 14px 32px -8px rgba(255,94,98,.6); }
[data-preset="sunset"][data-theme="light"] { --bg: #FFF5F0; --bg-2: #fff; --surface: #fff; --surface-2: #FFE9E0; --surface-3: #FFD9CC; --text: #2B1035; --text-2: #4E2A5C; --muted: #86607E; }
/* Ocean: azul-marinho + ciano */
[data-preset="ocean"] { --bg: #06131F; --bg-2: #0B1C2E; --surface: #11263D; --surface-2: #17324F; --surface-3: #1E3F63; --pink: #22D3EE; --pink-dark: #0EB8D3; --pink-soft: rgba(34,211,238,.16); --orange: #FBBF24; --yellow: #FDE68A; --green: #4ADE80; --stub-text: #1F2937; --bg-glow-1: rgba(34,211,238,.12); --bg-glow-2: rgba(59,130,246,.12); --glow: 0 0 0 5px rgba(34,211,238,.18), 0 14px 32px -8px rgba(34,211,238,.55); }
[data-preset="ocean"] .btn-primary, [data-preset="ocean"] .chip.active, [data-preset="ocean"] .bottomnav a.create span, [data-preset="ocean"] .badge { color: #06131F; }
[data-preset="ocean"][data-theme="light"] { --bg: #EFF7FB; --bg-2: #fff; --surface: #fff; --surface-2: #DFEFF7; --surface-3: #C9E3F0; --text: #0B1C2E; --text-2: #24405C; --muted: #5B7A94; --pink: #0891B2; --pink-dark: #0E7490; }
[data-preset="ocean"][data-theme="light"] .btn-primary, [data-preset="ocean"][data-theme="light"] .chip.active, [data-preset="ocean"][data-theme="light"] .bottomnav a.create span, [data-preset="ocean"][data-theme="light"] .badge { color: #fff; }
/* Minimal: preto e branco, um acento */
[data-preset="minimal"] { --bg: #0A0A0A; --bg-2: #121212; --surface: #1A1A1A; --surface-2: #242424; --surface-3: #2E2E2E; --pink: #FFFFFF; --pink-dark: #E5E5E5; --pink-soft: rgba(255,255,255,.12); --orange: #A3E635; --yellow: #FACC15; --bg-glow-1: transparent; --bg-glow-2: transparent; --glow: 0 10px 30px -10px rgba(255,255,255,.3); --shadow: 0 10px 30px -14px rgba(0,0,0,.8); }
[data-preset="minimal"] .btn-primary, [data-preset="minimal"] .chip.active, [data-preset="minimal"] .bottomnav a.create span, [data-preset="minimal"] .badge, [data-preset="minimal"] .seg button.active, [data-preset="minimal"] .switch.on::after { color: #0A0A0A; }
[data-preset="minimal"] .bottomnav a.create span, [data-preset="minimal"] .brand-mark { background: #fff; color: #0A0A0A; }
[data-preset="minimal"] .switch.on::after { background: #0A0A0A; }
[data-preset="minimal"][data-theme="light"] { --bg: #FAFAFA; --bg-2: #fff; --surface: #fff; --surface-2: #F0F0F0; --surface-3: #E4E4E4; --text: #0A0A0A; --text-2: #333; --muted: #6B6B6B; --pink: #0A0A0A; --pink-dark: #222; --pink-soft: rgba(0,0,0,.08); }
[data-preset="minimal"][data-theme="light"] .btn-primary, [data-preset="minimal"][data-theme="light"] .chip.active, [data-preset="minimal"][data-theme="light"] .badge, [data-preset="minimal"][data-theme="light"] .seg button.active { color: #fff; }
[data-preset="minimal"][data-theme="light"] .bottomnav a.create span, [data-preset="minimal"][data-theme="light"] .brand-mark { background: #0A0A0A; color: #fff; }
[data-preset="minimal"][data-theme="light"] .switch.on::after { background: #fff; }
/* Retrô: creme + vinho + mostarda, serif nos títulos */
[data-preset="retro"] { --bg: #2B1D1A; --bg-2: #382622; --surface: #45302B; --surface-2: #553C36; --surface-3: #654842; --pink: #E85D4A; --pink-dark: #D04A38; --pink-soft: rgba(232,93,74,.2); --orange: #F2B134; --yellow: #F2D06B; --green: #8FBF6A; --text: #FBF3E4; --text-2: #E9DCC6; --muted: #C4B197; --bg-glow-1: rgba(242,177,52,.12); --bg-glow-2: rgba(232,93,74,.12); --glow: 0 0 0 5px rgba(232,93,74,.18), 0 14px 32px -8px rgba(232,93,74,.5); }
[data-preset="retro"] h1, [data-preset="retro"] h2, [data-preset="retro"] .brand-name, [data-preset="retro"] .ev-card h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: 0; }
[data-preset="retro"][data-theme="light"] { --bg: #F7EFDF; --bg-2: #FFFBF2; --surface: #FFFBF2; --surface-2: #F0E4CC; --surface-3: #E4D4B5; --text: #2B1D1A; --text-2: #4E3A34; --muted: #8A7461; --line: rgba(60,30,20,.1); --line-strong: rgba(60,30,20,.2); }
/* Acento personalizado: definido inline em <html> via --accent */
[style*="--accent"] { --pink: var(--accent); --pink-dark: color-mix(in srgb, var(--accent) 85%, #000); --pink-soft: color-mix(in srgb, var(--accent) 16%, transparent); --glow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent), 0 14px 32px -8px color-mix(in srgb, var(--accent) 60%, transparent); --bg-glow-1: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Raio dos cantos */
[data-radius="soft"] { --radius-xl: 16px; --radius: 12px; --radius-sm: 8px; }
[data-radius="sharp"] { --radius-xl: 8px; --radius: 6px; --radius-sm: 4px; }
[data-radius="pill"] { --radius-xl: 30px; --radius: 24px; --radius-sm: 16px; }
[data-radius="sharp"] .btn, [data-radius="sharp"] .chip, [data-radius="sharp"] .loc-chip, [data-radius="sharp"] .input, [data-radius="sharp"] .form input, [data-radius="sharp"] .form select, [data-radius="sharp"] .form textarea, [data-radius="sharp"] .bottomnav, [data-radius="sharp"] .modal, [data-radius="sharp"] .card, [data-radius="sharp"] .user-card, [data-radius="sharp"] .notif { border-radius: var(--radius-sm); }
[data-radius="soft"] .btn, [data-radius="soft"] .input, [data-radius="soft"] .form input, [data-radius="soft"] .form select, [data-radius="soft"] .form textarea { border-radius: 10px; }
[data-radius="pill"] .btn, [data-radius="pill"] .input, [data-radius="pill"] .form input, [data-radius="pill"] .form select { border-radius: 999px; }
[data-radius="pill"] .bottomnav { border-radius: 34px; }
/* Densidade */
[data-density="compact"] { --topbar-h: 52px; --bottomnav-h: 64px; --tap: 40px; }
[data-density="compact"] .app { padding: 10px 12px calc(var(--bottomnav-h) + var(--safe-b) + 20px); }
[data-density="compact"] .section { margin: 16px 0; }
[data-density="compact"] .ev-card { width: 200px; }
[data-density="compact"] .bottomnav { height: 56px; }
[data-density="compact"] .bottomnav a.create span { width: 46px; height: 46px; margin-top: -26px; }
[data-density="compact"] .btn { padding: 8px 14px; }
[data-density="compact"] .hero h1 { font-size: 1.5rem; }
/* Estilo de card: lista (imagem à esquerda) e compacto */
[data-card="list"] .ev-card { aspect-ratio: auto; width: 100%; height: 132px; display: grid; grid-template-columns: 118px 1fr; background: var(--surface); box-shadow: none; border: 1px solid var(--line); }
[data-card="list"] .row-scroll .ev-card { width: 300px; }
[data-card="list"] .ev-card .img { position: relative; inset: auto; }
[data-card="list"] .ev-card .img.auto b { font-size: 2rem; }
[data-card="list"] .ev-card .shade { display: none; }
[data-card="list"] .ev-card .stub { top: 8px; left: 8px; padding: 4px 8px; }
[data-card="list"] .ev-card .stub b { font-size: 1rem; }
[data-card="list"] .ev-card .cat { display: none; }
[data-card="list"] .ev-card .body { position: relative; color: var(--text); padding: 12px; display: flex; flex-direction: column; justify-content: center; }
[data-card="list"] .ev-card .meta { color: var(--muted); }
[data-card="list"] .ev-card .people { color: var(--muted); }
[data-card="list"] .ev-card h3 { font-size: .95rem; }
[data-card="list"] .skel-card { aspect-ratio: auto; height: 132px; width: 100%; }
[data-card="list"] .row-scroll .skel-card { width: 300px; }
[data-card="list"] .ev-list { grid-template-columns: 1fr; }
[data-card="compact"] .ev-card { aspect-ratio: 1; width: 180px; }
[data-card="compact"] .ev-card .people, [data-card="compact"] .ev-card .cat { display: none; }
[data-card="compact"] .ev-card h3 { font-size: .9rem; -webkit-line-clamp: 1; }
[data-card="compact"] .ev-list .ev-card { aspect-ratio: 1; width: 100%; }
[data-card="compact"] .ev-list { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { [data-card="compact"] .ev-list { grid-template-columns: repeat(4, 1fr); } }
/* Nav inferior: colada na borda ou só ícones */
[data-nav="attached"] .bottomnav { left: 0; right: 0; bottom: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; height: calc(64px + var(--safe-b)); padding-bottom: var(--safe-b); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.6); }
[data-nav="attached"] .bottomnav a.active::before { top: 0; width: 100%; border-radius: 0; }
[data-nav="minimal"] .bottomnav a { font-size: 0; gap: 0; }
[data-nav="minimal"] .bottomnav a svg { width: 26px; height: 26px; }
[data-nav="minimal"] .bottomnav a.active::before { display: none; }
[data-nav="minimal"] .bottomnav a.active { background: var(--pink-soft); margin: 8px 6px; height: auto; padding: 8px 0; }
/* Início em grade em vez de carrosséis */
[data-home="grid"] .row-scroll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; overflow: visible; padding: 4px 0 8px; margin: 0; }
[data-home="grid"] .row-scroll .ev-card, [data-home="grid"] .row-scroll .skel-card { width: 100%; aspect-ratio: 3/4; }
@media (min-width: 720px) { [data-home="grid"] .row-scroll { grid-template-columns: repeat(4, 1fr); } }
[data-home="grid"] .stories { display: flex; }

/* ----- Componentes sociais v3 ----- */
.next-up { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 18px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); margin: 10px 0 6px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.next-up::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--pink-soft); filter: blur(30px); }
.next-up .lbl { font-size: .74rem; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: .06em; }
.next-up h3 { font-size: 1.15rem; margin: 4px 0; }
.next-up .cd { text-align: center; position: relative; }
.next-up .cd b { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.next-up .cd span { font-size: .7rem; color: var(--muted); }
.next-up .friends { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.crew { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--yellow); font-weight: 700; margin-top: 6px; }
.crew .stack-avatars .sav { width: 18px; height: 18px; border-color: rgba(0,0,0,.4); }
[data-card="list"] .crew { color: var(--pink); }
.react-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.react-bar button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 4px 9px; font-size: .8rem; display: inline-flex; gap: 4px; align-items: center; color: var(--text); min-height: 30px; }
.react-bar button.on { border-color: var(--pink); background: var(--pink-soft); }
.react-pick { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.react-pick button { background: none; border: 0; font-size: 1.3rem; width: 38px; height: 38px; border-radius: 50%; transition: transform .12s; }
.react-pick button:hover { transform: scale(1.25); background: var(--surface); }
.poll { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.poll .q { font-weight: 700; margin-bottom: 10px; }
.poll .opt { position: relative; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; overflow: hidden; background: none; width: 100%; color: var(--text); text-align: left; min-height: var(--tap); }
.poll .opt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--pink-soft); z-index: 0; transition: width .4s; }
.poll .opt span, .poll .opt b { position: relative; z-index: 1; }
.poll .opt.mine { border-color: var(--pink); }
.poll .meta { font-size: .74rem; color: var(--muted); margin-top: 6px; }
.msg .bub .poll { margin-top: 6px; background: rgba(0,0,0,.15); border: 0; padding: 10px; }
.msg.me .bub .poll .opt { color: #fff; border-color: rgba(255,255,255,.3); }
.msg.me .bub .poll .opt i { background: rgba(255,255,255,.25); }
.msg .bub .ev { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.18); border-radius: 12px; padding: 8px; margin-top: 6px; color: inherit; }
.msg .bub .ev .th { width: 52px; height: 52px; border-radius: 8px; background: var(--surface-3) center/cover; flex: none; }
.msg .rx { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.msg .rx button { border: 0; background: var(--surface); border-radius: 999px; padding: 2px 7px; font-size: .74rem; color: var(--text); }
.msg .rx button.add { opacity: .5; }
.chat .tools { display: flex; gap: 4px; padding: 0 10px 8px; }
.chat form { flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars.pick button { background: none; border: 0; font-size: 1.8rem; color: var(--line-strong); padding: 0 2px; }
.stars.pick button.on { color: var(--yellow); }
.review { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review .av { width: 36px; height: 36px; font-size: .8rem; }
.badge-pill { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--stub-text); font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rank-row .pos { width: 30px; font-weight: 800; font-size: 1.1rem; color: var(--muted); text-align: center; }
.rank-row:nth-child(1) .pos { color: var(--yellow); } .rank-row:nth-child(2) .pos { color: #C0C0C0; } .rank-row:nth-child(3) .pos { color: #CD7F32; }
.act { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.act .av { width: 40px; height: 40px; }
.act .txt b { font-weight: 700; }
.act .when { font-size: .72rem; color: var(--muted); }
.act .ev-mini { display: flex; gap: 10px; align-items: center; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.act .ev-mini .th { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-2) center/cover; flex: none; display: grid; place-items: center; font-weight: 800; color: rgba(255,255,255,.4); }
.act .post-mini { display: block; margin-top: 8px; aspect-ratio: 16/10; border-radius: 12px; background: var(--surface-2) center/cover; }
.coupon { display: flex; align-items: center; gap: 12px; border: 2px dashed var(--yellow); border-radius: 14px; padding: 12px; background: rgba(255,209,102,.08); }
.coupon .code { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .1em; background: var(--yellow); color: var(--stub-text); padding: 6px 10px; border-radius: 8px; }
.coupon .locked { color: var(--muted); font-size: .8rem; }
.conv { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.conv .last { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.chat.full { height: calc(100dvh - var(--topbar-h) - var(--safe-t) - var(--bottomnav-h) - var(--safe-b) - 30px); }
.tag-people { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-people .chip.active { background: var(--pink-soft); color: var(--pink); border-color: var(--pink); }
.preview-box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 74px; border: 2px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface); cursor: pointer; text-align: center; font-size: .68rem; font-weight: 700; color: var(--text); }
.swatch.on { border-color: var(--pink); }
.swatch i { display: block; height: 32px; border-radius: 8px; margin-bottom: 4px; }

/* ----- Editor de fotos ----- */
.editor { max-width: 100%; }
.ed-stage { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; min-height: 200px; padding: 14px; touch-action: none; }
.ed-foot { position: sticky; bottom: calc(-20px - var(--safe-b)); z-index: 3; display: flex; justify-content: space-between; gap: 8px; padding: 10px 0 4px; margin-top: 10px; background: var(--bg-2); }
.ed-stage canvas { max-width: 100%; display: block; }
.ed-crop { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; touch-action: none; }
.ed-crop::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, transparent 33%, rgba(255,255,255,.35) 33%, rgba(255,255,255,.35) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255,255,255,.35) 66%, rgba(255,255,255,.35) calc(66% + 1px), transparent calc(66% + 1px)), linear-gradient(to bottom, transparent 33%, rgba(255,255,255,.35) 33%, rgba(255,255,255,.35) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255,255,255,.35) 66%, rgba(255,255,255,.35) calc(66% + 1px), transparent calc(66% + 1px)); pointer-events: none; }
.ed-crop .h { position: absolute; width: 26px; height: 26px; background: #fff; border-radius: 50%; border: 3px solid var(--pink); }
.ed-crop .tl { left: -13px; top: -13px; cursor: nwse-resize; } .ed-crop .tr { right: -13px; top: -13px; cursor: nesw-resize; } .ed-crop .bl { left: -13px; bottom: -13px; cursor: nesw-resize; } .ed-crop .br { right: -13px; bottom: -13px; cursor: nwse-resize; }
.ed-tabs { display: flex; gap: 4px; margin: 12px 0 10px; border-bottom: 1px solid var(--line); }
.ed-tabs button { flex: 1; background: none; border: 0; padding: 10px 6px; min-height: var(--tap); color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ed-tabs button.active { color: var(--text); border-bottom-color: var(--pink); }
.ed-filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.ed-filters button { flex: none; background: none; border: 0; color: var(--muted); font-size: .72rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; }
.ed-filters button img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 2px solid transparent; }
.ed-filters button.on { color: var(--pink); } .ed-filters button.on img { border-color: var(--pink); }
.ed-slider { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; padding: 6px 0; font-size: .85rem; }
.ed-slider input { accent-color: var(--pink); width: 100%; }
.ed-slider b { text-align: right; color: var(--muted); font-size: .8rem; }

/* ----- Área do organizador ----- */
.org-cta { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, var(--pink-soft), var(--surface)); border: 1px solid var(--pink); color: var(--text); }
.org-cta > div { flex: 1; } .org-cta svg:first-child { color: var(--pink); }
.org-ev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.org-ev-head { display: flex; gap: 12px; align-items: center; }
.org-ev-head .th { width: 56px; height: 56px; border-radius: 12px; background: var(--surface-2) center/cover; flex: none; display: grid; place-items: center; font-weight: 800; color: rgba(255,255,255,.5); }
.org-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 6px; }
.org-nums div { text-align: center; background: var(--surface-2); border-radius: 10px; padding: 6px 2px; }
.org-nums b { display: block; font-size: 1.05rem; } .org-nums span { font-size: .68rem; color: var(--muted); }
.org-cap { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.org-cap div { height: 100%; background: linear-gradient(90deg, var(--pink), var(--orange)); }
.org-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ----- Menções, composer do feed, posts de texto/vídeo, stories interativos ----- */
.mention-box button { padding: 8px 12px; } .mention-box .av { width: 32px; height: 32px; font-size: .7rem; } .mention-box button.on { background: var(--pink-soft); }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 14px; margin-bottom: 14px; }
.composer .top { display: flex; gap: 10px; align-items: flex-start; }
.composer textarea { flex: 1; background: none; border: 0; resize: none; min-height: 48px; font-size: 1rem; padding: 8px 0; color: var(--text); }
.composer textarea:focus { outline: none; }
.composer .media { position: relative; margin-top: 10px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); max-height: 320px; display: grid; place-items: center; }
.composer .media img, .composer .media video { max-height: 320px; max-width: 100%; }
.composer .media .rm { position: absolute; top: 8px; right: 8px; }
.composer .bar { display: flex; gap: 4px; align-items: center; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; flex-wrap: wrap; }
.composer .bar .btn-ghost { color: var(--pink); padding: 8px 10px; }
.composer .bar .post-btn { margin-left: auto; }
.composer .ev-pick, .composer .tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.composer .tag-list .chip { background: var(--pink-soft); color: var(--pink); border-color: transparent; }
.post .text { padding: 0 14px 10px; white-space: pre-wrap; word-break: break-word; font-size: 1rem; line-height: 1.5; }
.post .text a { color: var(--pink); font-weight: 600; }
.post .head { padding: 14px 14px 10px; }
.post .vid { width: 100%; max-height: 520px; background: #000; display: block; }
.post .ev-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; margin: 0 14px 10px; }
.post .foot { border-top: 1px solid var(--line); }
.story-view .acts { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.story-view .acts input { flex: 1; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 12px 16px; min-height: 46px; backdrop-filter: blur(8px); }
.story-view .acts input::placeholder { color: rgba(255,255,255,.7); }
.story-view .acts button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.story-view .acts button.on { color: var(--pink); }
.story-view .acts .cnt { font-size: .7rem; position: absolute; bottom: -2px; right: -2px; background: var(--pink); color: #fff; border-radius: 8px; padding: 0 4px; }
.story-view .cap { bottom: calc(76px + env(safe-area-inset-bottom)); }
.story-view .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 65%; background: var(--bg-2); color: var(--text); border-radius: 22px 22px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; animation: up .2s; }
.story-view .panel .list { flex: 1; overflow-y: auto; }
.story-view .panel form { display: flex; gap: 8px; margin-top: 8px; }
.story-view .panel form input { flex: 1; }
.story-view video.img { object-fit: contain; }
.story-view .who .stats { font-size: .72rem; opacity: .85; }
.story-view .panel .who { position: static; display: inline; color: var(--text); text-shadow: none; }
.story-view .panel .spread > b { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act .post-vid { width: 100%; max-height: 360px; border-radius: 12px; margin-top: 8px; background: #000; }

/* ----- Ingressos ----- */
.tt { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.tt.off { opacity: .55; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; background: var(--surface); border-radius: 999px; padding: 3px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--text); font-size: 1.1rem; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.ticket.done { background: var(--green); }
.live-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottomnav-h) + var(--safe-b) + 12px); z-index: 36; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; box-shadow: var(--glow); animation: up .3s; }
.live-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.live-bar b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.live-bar button { border: 0; background: rgba(255,255,255,.2); color: #fff; border-radius: 10px; padding: 8px 10px; font-weight: 700; }
@media (min-width: 900px) { .live-bar { bottom: 20px; left: auto; right: 20px; width: 380px; } }
.live-head { position: relative; margin: -14px -16px 0; padding: 18px 16px 14px; background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; }
.live-head .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px; }
.live-head .lbl i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.live-now { margin-top: 10px; background: rgba(255,255,255,.15); border-radius: 14px; padding: 10px 12px; }
.live-now .small { opacity: .9; }
.tl { position: relative; padding-left: 22px; margin-top: 10px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl .it { position: relative; padding: 8px 0 8px 6px; }
.tl .it::before { content: ''; position: absolute; left: -19px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--bg); }
.tl .it.done { opacity: .55; } .tl .it.now::before { background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.tl .it .t { font-weight: 700; } .tl .it .h { font-size: .78rem; color: var(--muted); }
.sched-row { display: grid; grid-template-columns: 130px 1fr 90px 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.venue-type { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); }

.tt { flex-wrap: wrap; }
.tt > div:first-child { flex: 1 1 60%; }
.tt .check { flex-basis: 100%; order: 3; }
@media (max-width: 600px) { .sched-row { grid-template-columns: 1fr 1fr; } .sched-row input[data-k="starts_at"] { grid-column: 1 / -1; } .sched-row input[data-k="title"] { grid-column: 1 / span 2; } .sched-row input[data-k="stage"] { grid-column: 1; } .sched-row button { grid-column: 2; justify-self: end; } }

/* Google Maps */
.map-off { display: grid; place-items: center; text-align: center; height: 100%; min-height: 160px; padding: 20px; color: var(--muted); background: var(--surface-2); border-radius: var(--radius); text-decoration: none; }
.pin-cluster { background: var(--pink); color: #fff; font-weight: 800; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; box-shadow: var(--glow); border: 2px solid #fff; }
.gm-style .gm-style-iw-c { background: var(--surface); color: var(--text); border-radius: 14px; padding: 12px !important; } .gm-style .gm-style-iw-d { overflow: hidden !important; } .gm-style .gm-style-iw-tc::after { background: var(--surface); }

.post-comments { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.post-comments .comment-form textarea { min-height: 42px; }
.act-post { padding: 0; border: 0; } .act-post .post { margin: 0; }

/* ----- Área de compra (v5) ----- */
.buy-card { background: var(--surface); border: 1px solid var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); border-radius: var(--radius-xl); padding: 16px; margin: 14px 0; }
.buy-card .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.buy-card h2 { font-size: 1.25rem; margin: 4px 0 2px; }
.buy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.sell-bar { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: 10px; } .sell-bar div { height: 100%; background: linear-gradient(90deg, var(--pink), var(--orange)); border-radius: 999px; }
.step { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 12px 0 8px; font-size: .9rem; } .step b { width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.buy-card .tt { border-width: 2px; } .buy-card .tt.sel { border-color: var(--pink); background: var(--pink-soft); } .buy-card .tt .price { font-size: 1.05rem; }
.buy-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); } .buy-total > div > b { font-size: 1.35rem; white-space: nowrap; }
.btn-lg { padding: 14px 18px; font-size: 1rem; }
.trust { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--muted); } .trust li { display: inline-flex; align-items: center; gap: 4px; }
.queue-box { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px; margin-bottom: 12px; } .queue-box.on { background: var(--pink-soft); border-color: var(--pink); } .queue-box .spinner { width: 28px; height: 28px; flex: none; }
.sector-map { display: block; width: 100%; height: 150px; border-radius: 14px; border: 1px solid var(--line); background-size: cover; background-position: center; position: relative; margin-bottom: 12px; cursor: pointer; } .sector-map span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav-h) + var(--safe-b)); z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.25); transition: transform .25s; } .buy-bar.hide { transform: translateY(120%); }
.buy-bar div { display: flex; flex-direction: column; line-height: 1.1; } .buy-bar span { font-size: .72rem; color: var(--muted); } .buy-bar b { font-size: 1.15rem; }
@media (min-width: 900px) { .buy-bar { display: none; } }

.coupon-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; } .coupon-row input { flex: 1; min-width: 140px; }

/* Modo de ingresso no formulário */
.mode-pick { display: grid; gap: 8px; }
.mode-pick .mode { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: var(--surface-2); }
.mode-pick .mode.on { border-color: var(--pink); background: var(--pink-soft); }
.mode-pick .mode input { position: absolute; opacity: 0; }
.mode-pick .mode b { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.mode-pick .mode span { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.ext-buy { display: block; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); padding: 16px; margin: 14px 0; text-decoration: none; color: inherit; }
.ext-buy .host { font-size: .74rem; color: var(--muted); word-break: break-all; margin-top: 8px; }
