/* ─────────────────────────────────────────────────────────────────────────────
   Hoje.city — Visual identity v2
   Dark theme · iOS-inspired · DM Sans · max-width 430px
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&display=swap');

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --bg:        #111111;
  --surface:   #1C1C1E;
  --card:      #2C2C2E;
  --border:    rgba(255,255,255,0.07);
  --border-md: rgba(255,255,255,0.12);
  --text:      #FFFFFF;
  --muted:     rgba(255,255,255,0.45);
  --hint:      rgba(255,255,255,0.25);
  --red:       #FF2D55;
  --green:     #30D158;
  --orange:    #FF9F0A;
  --blue:      #0A84FF;

  --radius-card: 16px;
  --radius-pill: 99px;
  --gap: 1.25rem;
  --font-ui: 'DM Sans', -apple-system, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: rgba(17, 17, 17, 0.94);
}
body {
  font-family: var(--font-ui);
  background: rgba(17, 17, 17, 0.94);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-ui); cursor: pointer; border: none; background: none; }

html,
body,
.public-body {
  height: 100%;
}

.public-body {
  display: flex;
  justify-content: center;
  background: rgba(17, 17, 17, 0.94);
}

/* ── Vitrine wrapper ─────────────────────────────────────────────────────── */
.vitrine,
.wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: rgba(17, 17, 17, 0.94);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 45, 85, 0.65) rgba(255, 255, 255, 0.04);
}

.app-main::-webkit-scrollbar {
  width: 10px;
}

.app-main::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.app-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 45, 85, 0.9), rgba(255, 159, 10, 0.7));
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.app-main::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 45, 85, 1), rgba(255, 159, 10, 0.9));
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.vitrine__header,
.header {
  padding: 2rem var(--gap) 1.25rem;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 2;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
}
.vitrine__logo,
.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}
.vitrine__logo .logo-dot,
.logo .logo-dot,
.logo-dot { color: var(--red); }
.vitrine__logo em,
.logo em { font-style: normal; }

.city-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: rgba(255,45,85,0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}
.week-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.week-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.week-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ── Filters ─────────────────────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 6px;
  padding: 0.875rem var(--gap);
  overflow-x: auto;
  border-bottom: 0.5px solid var(--border);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters__scroll { display: contents; }

.filter-pill,
.pill {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-ui);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.filter-pill--active,
.filter-pill.active,
.pill.active {
  background: var(--red);
  color: #fff;
}
.filter-pill:hover:not(.filter-pill--active):not(.active),
.pill:hover:not(.active) {
  color: var(--text);
}

/* ── Section label ───────────────────────────────────────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.25rem var(--gap) 0.6rem;
}

.section-label--flush {
  padding: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gap) 0.6rem;
}

.section-header--future .section-label {
  color: var(--muted);
}

.section-link {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 0.5px solid var(--border-md);
  background: var(--surface);
}

/* ── Destaque card (featured) ────────────────────────────────────────────── */
.destaque {
  margin: 0 var(--gap) 0.5rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 0.5px solid var(--border);
  display: block;
  color: inherit;
  transition: transform 0.15s;
}
.destaque:active { transform: scale(0.98); }
.destaque-img {
  height: 100px;
  background: linear-gradient(135deg,#1a0a2e,#0a1a3e);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}
.destaque-img-tag {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.destaque-body { padding: 12px 14px 14px; }
.destaque-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.destaque-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin-bottom: 10px;
}
.sep { opacity: 0.4; }
.destaque-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ver-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  background: rgba(255,45,85,0.1);
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  text-decoration: none;
}

/* ── Price colors ────────────────────────────────────────────────────────── */
.price-red    { font-size: 13px; font-weight: 600; color: var(--red); }
.price-green  { font-size: 13px; font-weight: 600; color: var(--green); }
.price-orange { font-size: 13px; font-weight: 600; color: var(--orange); }
.currency-mark { color: #22C55E; font-weight: 700; }

/* ── Event rows (list style) ─────────────────────────────────────────────── */
.event-list-section,
.section {
  padding: 0 var(--gap);
}
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--border);
  color: inherit;
  transition: opacity 0.12s;
}
a.event-row { text-decoration: none; }
a.event-row:hover { opacity: 0.72; }
.event-row:last-child { border-bottom: none; }

.passport-event-link {
  border-radius: 12px;
}

.event-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.icon-musica     { background: rgba(48,209,88,0.12); }
.icon-teatro     { background: rgba(94,92,230,0.15); }
.icon-expo       { background: rgba(255,159,10,0.12); }
.icon-standup    { background: rgba(10,132,255,0.12); }
.icon-rua        { background: rgba(255,159,10,0.12); }
.icon-familia    { background: rgba(255,45,85,0.10); }
.icon-gastronomia{ background: rgba(255,159,10,0.15); }
.icon-esporte    { background: rgba(10,132,255,0.12); }
.icon-outros     { background: rgba(255,255,255,0.06); }

.event-info { flex: 1; min-width: 0; }
.event-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.event-sub  { font-size: 11px; color: var(--muted); }
.event-right { text-align: right; flex-shrink: 0; }
.event-date  { font-size: 11px; font-weight: 500; color: var(--hint); margin-bottom: 3px; }

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating-star {
  color: var(--hint);
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.rating-star.active {
  color: var(--orange);
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.score-row {
  margin-top: 6px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  background: rgba(255,45,85,0.12);
  border: 0.5px solid rgba(255,45,85,0.22);
}

/* ── Coming cards (upcoming) ─────────────────────────────────────────────── */
.coming-card {
  margin: 0 var(--gap) 0.5rem;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0.5px solid var(--border);
  color: inherit;
}
a.coming-card { text-decoration: none; }
.coming-card:hover { opacity: 0.9; }
.coming-date {
  background: var(--red);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
}
.coming-day   { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.coming-month { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }
.coming-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.coming-sub   { font-size: 11px; color: var(--muted); }

.coming-card--future {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
}

.coming-date--future {
  background: color-mix(in srgb, var(--muted) 55%, var(--red));
}

.coming-chip-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.coming-chip,
.coming-relative {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
}

.coming-chip {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 0.5px solid var(--border);
}

.coming-relative {
  color: var(--text);
  background: rgba(255, 159, 10, 0.14);
  border: 0.5px solid rgba(255, 159, 10, 0.18);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { height: 0.5px; background: var(--border); margin: 0.5rem var(--gap) 0; }

/* ── Subscribe CTA / WhatsApp CTA ────────────────────────────────────────── */
.subscribe-cta,
.cta {
  padding: 1.5rem var(--gap) 2rem;
}
.cta-box {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  border: 0.5px solid var(--border);
  text-align: center;
}
.subscribe-cta__headline,
.cta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.subscribe-cta__sub,
.cta-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.subscribe-form__row {
  display: flex;
  gap: 8px;
}
.subscribe-form__input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 0.5px solid var(--border-md);
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.subscribe-form__input::placeholder { color: var(--muted); }
.subscribe-form__input:focus { border-color: var(--red); }

.subscribe-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  text-decoration: none;
}
.subscribe-form__btn:hover { opacity: 0.85; }
.subscribe-form__btn:disabled { opacity: 0.5; cursor: default; }

/* CTA button — full width (used in WhatsApp CTA) */
.cta-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cta-btn:hover { opacity: 0.85; }

/* Full-width CTA button variant (legacy alias) */
.cta-btn--full {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  text-align: center;
}

.subscribe-form__msg {
  margin-top: 0.75rem;
  font-size: 13px;
}
.subscribe-form__msg--success { color: var(--green); }
.subscribe-form__msg--error   { color: var(--red); }
.subscribe-form__msg--info    { color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.vitrine__footer,
.footer {
  padding: 1rem var(--gap) 1.5rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 2;
}
.footer-brand { font-size: 13px; font-weight: 700; color: var(--hint); }
.footer-date  { font-size: 11px; color: var(--hint); }

@media (min-width: 768px) {
  .public-body {
    padding: 0;
    align-items: stretch;
  }

  .vitrine,
  .wrap {
    max-width: 100%;
  }

  .header,
  .footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .filters,
  .section,
  .cta,
  .passport-stats,
  .badges-grid,
  .auth-container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .destaque,
  .coming-card,
  .auth-nudge,
  .level-block {
    margin-left: 1.1rem;
    margin-right: 1.1rem;
  }

  .divider {
    margin-left: 1.1rem;
    margin-right: 1.1rem;
  }
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 2rem var(--gap);
  color: var(--muted);
  font-size: 13px;
  display: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary  { background: var(--red); color: #fff; border: none; }
.btn--primary:hover { opacity: 0.85; }
.btn--outline  { background: transparent; color: var(--text); border: 0.5px solid var(--border-md); }
.btn--outline:hover { border-color: var(--text); }
.btn--ghost    { background: transparent; color: var(--muted); border: 0.5px solid transparent; }
.btn--ghost:hover { color: var(--text); }
.btn--danger   { background: var(--red); color: #fff; border: none; opacity: 0.9; }
.btn--danger:hover { opacity: 1; }
.btn--full { width: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 1rem;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--border-md);
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.15s;
}
.btn-outline:hover { border-color: var(--text); }

/* ── Category icon map ───────────────────────────────────────────────────── */
/* .pill is now a real filter button class — see Filters section above */

/* ── Botões de interação social ──────────────────────────────────────────────── */
.event-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-ui);
  padding: 4px 10px;
  border-radius: 99px;
  border: 0.5px solid var(--border-md);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn:hover { color: var(--text); border-color: var(--text); }
.action-btn.active.rsvp-btn  { background: rgba(255,45,85,0.15); color: var(--red); border-color: var(--red); }
.action-btn.active.save-btn  { background: rgba(10,132,255,0.12); color: var(--blue); border-color: var(--blue); }
.action-count { font-size: 10px; opacity: 0.7; }

/* ── Passaporte Cultural ─────────────────────────────────────────────────────── */
.passport-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 1rem 1.25rem 0.5rem;
}
.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: 0.04em; }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 1.25rem 0.5rem;
}
.badge-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge-icon  { font-size: 24px; line-height: 1; }
.badge-name  { font-size: 12px; font-weight: 700; color: var(--text); }
.badge-desc  { font-size: 11px; color: var(--muted); line-height: 1.4; }

.passport-empty {
  text-align: center;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ── Toast de conquista ──────────────────────────────────────────────────────── */
.achievement-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 0.5px solid var(--border-md);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  padding: 10px 18px;
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}
.achievement-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Link Passaporte ─────────────────────────────────────────────────────────── */
.passport-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 0.5px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.15s;
}
.passport-link:hover { color: var(--text); border-color: var(--border-md); }

/* ── Header actions (badge + user icon) ─────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar circular com inicial do usuário */
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.user-avatar:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.profile-summary__copy {
  min-width: 0;
  text-align: right;
}

.profile-summary__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.profile-summary__handle {
  margin-top: 0.18rem;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.1;
}

.profile-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.profile-orbit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 44px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #121417;
  border: 1px dotted #ff2d55;
  color: #ffd3de;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,45,85,0.08);
}

/* Pill de "Entrar" para usuários não autenticados */
.btn-login-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 0.5px solid var(--border-md);
  padding: 5px 12px;
  border-radius: 99px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.btn-login-pill:hover { border-color: var(--text); }

/* ── Auth forms (login / register / forgot) ─────────────────────────────────── */
.auth-container {
  padding: 1.5rem var(--gap) 2rem;
}

.auth-title-block {
  margin-bottom: 1.5rem;
}
.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: 0.625rem 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: -0.5px;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--red); }
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form.hidden { display: none; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-input {
  background: var(--surface);
  border: 0.5px solid var(--border-md);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: var(--hint); }
.auth-input:focus { border-color: var(--blue); }

.auth-forgot {
  text-align: right;
  margin-top: -4px;
}
.auth-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: color 0.15s;
}
.auth-link:hover { color: var(--text); }

.auth-submit {
  background: var(--red);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  padding: 0.875rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 0.25rem;
  transition: opacity 0.15s;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  font-size: 13px;
  color: var(--red);
  background: rgba(255,45,85,0.1);
  border: 0.5px solid rgba(255,45,85,0.25);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
}
.auth-success {
  font-size: 13px;
  color: var(--green);
  background: rgba(48,209,88,0.1);
  border: 0.5px solid rgba(48,209,88,0.25);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
}
.auth-error.hidden, .auth-success.hidden { display: none; }

/* ── Auth nudge (convite de login no passaporte) ─────────────────────────────── */
.auth-nudge {
  margin: 1rem var(--gap) 0.5rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}
.auth-nudge-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.auth-nudge-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0.625rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.auth-nudge-btn:hover { opacity: 0.88; }

/* ── Level / XP block ────────────────────────────────────────────────────────── */
.level-block {
  margin: 1rem var(--gap) 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.125rem;
}
.level-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
}
.level-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  background: rgba(255,45,85,0.14);
  color: var(--red);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}
.level-streak {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.xp-bar-track {
  height: 6px;
  background: var(--card);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.xp-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 99px;
  transition: width 0.4s ease;
  min-width: 4px;
}
.xp-label {
  font-size: 11px;
  color: var(--hint);
}

html[data-theme='light'] {
  --bg: #f4ede8;
  --surface: rgba(255, 250, 246, 0.82);
  --card: rgba(255, 255, 255, 0.84);
  --border: rgba(57, 34, 29, 0.08);
  --border-md: rgba(57, 34, 29, 0.14);
  --text: #231917;
  --muted: rgba(35, 25, 23, 0.62);
  --hint: rgba(35, 25, 23, 0.38);
  --red: #d44d63;
  --green: #2d8a58;
  --orange: #cf8b2e;
  --blue: #2b74ca;
}

html[data-theme='light'],
html[data-theme='light'] body,
html[data-theme='light'] .public-body {
  background: #f4ede8;
}

.public-body {
  position: relative;
  padding: 16px;
  align-items: stretch;
}

.app-bokeh {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.app-bokeh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: app-bokeh-float 24s ease-in-out infinite;
}

.app-bokeh__blob:nth-child(1) { width: 320px; height: 320px; background: rgba(229, 18, 69, 0.35); top: 2%; left: -4%; }
.app-bokeh__blob:nth-child(2) { width: 260px; height: 260px; background: rgba(255, 159, 10, 0.25); top: 18%; right: 8%; animation-delay: -5s; }
.app-bokeh__blob:nth-child(3) { width: 380px; height: 380px; background: rgba(10, 132, 255, 0.16); bottom: 8%; left: 12%; animation-delay: -9s; }
.app-bokeh__blob:nth-child(4) { width: 280px; height: 280px; background: rgba(48, 209, 88, 0.18); bottom: 14%; right: -6%; animation-delay: -12s; }
.app-bokeh__blob:nth-child(5) { width: 240px; height: 240px; background: rgba(255, 255, 255, 0.14); top: 52%; left: 42%; animation-delay: -16s; }

html[data-theme='light'] .app-bokeh__blob:nth-child(1) { background: rgba(231, 117, 131, 0.32); }
html[data-theme='light'] .app-bokeh__blob:nth-child(2) { background: rgba(243, 182, 115, 0.3); }
html[data-theme='light'] .app-bokeh__blob:nth-child(3) { background: rgba(124, 174, 233, 0.22); }
html[data-theme='light'] .app-bokeh__blob:nth-child(4) { background: rgba(110, 191, 144, 0.2); }
html[data-theme='light'] .app-bokeh__blob:nth-child(5) { background: rgba(255, 255, 255, 0.35); }

@keyframes app-bokeh-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, -18px, 0) scale(1.06); }
}

.wrap {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

html[data-theme='light'] .wrap {
  background: rgba(255, 250, 246, 0.72);
}

.theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border-md);
  background: rgba(15, 15, 15, 0.72);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

html[data-theme='light'] .theme-toggle {
  background: rgba(255, 255, 255, 0.88);
}

.user-avatar {
  overflow: hidden;
}

.user-avatar__img,
.profile-hero__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-cta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.passport-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.profile-hero {
  margin: 1rem var(--gap) 0.5rem;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 18px;
}

.profile-hero--profile {
  margin-top: 1.5rem;
}

.profile-hero__avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,45,85,0.22), rgba(255,159,10,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
}

.profile-hero__copy h1,
.profile-hero__copy h2 {
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.profile-hero__copy p {
  font-size: 13px;
  color: var(--red);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.profile-hero__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.profile-hero__meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 0.5px solid var(--border);
}

.profile-hero__action {
  grid-column: 1 / -1;
  justify-self: start;
}

.profile-page {
  padding: 0 0 2rem;
}

.profile-form-card {
  margin: 0 var(--gap) 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 18px;
}

.profile-form-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile-field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.profile-field input {
  width: 100%;
  border-radius: 14px;
  border: 0.5px solid var(--border-md);
  background: var(--card);
  color: var(--text);
  padding: 0.9rem 1rem;
  font-family: var(--font-ui);
  font-size: 14px;
}

.profile-field small {
  color: var(--hint);
  font-size: 11px;
}

.profile-field--full {
  grid-column: 1 / -1;
}

.profile-message {
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  font-size: 13px;
}

.profile-message--error {
  color: #fda4af;
  background: rgba(255, 45, 85, 0.12);
  border: 0.5px solid rgba(255, 45, 85, 0.22);
}

.profile-message--success {
  color: #8ef0b0;
  background: rgba(48, 209, 88, 0.12);
  border: 0.5px solid rgba(48, 209, 88, 0.22);
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

@media (min-width: 900px) {
  .public-body {
    padding: 0;
    align-items: stretch;
  }

  .wrap {
    max-width: 100%;
    min-height: 100dvh;
    border-radius: 0;
  }

  .header,
  .footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .filters,
  .section,
  .cta,
  .passport-stats,
  .badges-grid,
  .auth-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .destaque,
  .coming-card,
  .auth-nudge,
  .level-block,
  .profile-hero,
  .profile-form-card {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .profile-form-card__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   EVENTO PAGE — Desktop layout fix
   When .wrap contains .ev-grid (event detail page only), remove the
   mobile-app constraints and allow proper 2-column grid layout.
   ════════════════════════════════════════════════════════════════════════════ */

/* Remove height/overflow cage on event page */
.wrap:has(.ev-grid) {
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.wrap:has(.ev-grid) .app-main {
  overflow: visible;
  flex: none;
}

/* Desktop grid for /evento */
@media (min-width: 1024px) {
  .wrap:has(.ev-grid) {
    max-width: 100%;
  }

  .wrap:has(.ev-grid) .header {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .wrap:has(.ev-grid) .ev-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2.5rem 24px 4rem;
    align-items: start;
  }

  .wrap:has(.ev-grid) .ev-left {
    min-width: 0;
  }

  .wrap:has(.ev-grid) .ev-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
  }

  .wrap:has(.ev-grid) .ev-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
  }

  .wrap:has(.ev-grid) .ev-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Mobile: single column */
@media (max-width: 1023px) {
  .wrap:has(.ev-grid) .ev-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .wrap:has(.ev-grid) .ev-sidebar {
    position: static;
  }
}
