/* ============================================================================
   II Mostra de Negócios e Inovação de Cedro — Design System
   Tema CLARO por padrão (paleta verde · Prefeitura de Cedro) + tema escuro opcional.
   Mobile-first, centralizado em desktop.
   ============================================================================ */

/* ----- TEMA CLARO (padrão) ----- */
:root {
  --bg: #EEF4F0;
  --bg-grad: #E2EEE7;
  --surface: #FFFFFF;
  --surface-alt: #F3F8F5;
  --surface2: #E9F2EC;
  --border: rgba(10, 45, 30, 0.10);
  --border-strong: rgba(10, 45, 30, 0.18);
  --text: #0C2A1B;
  --text2: #496356;
  --text3: #7E978A;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --accent: #1B9E57;
  --accent-soft: rgba(27, 158, 87, 0.13);
  --on-accent: #FFFFFF;
  --fav: #E8920C;
  --fav-soft: rgba(232, 146, 12, 0.14);
  --success: #1B9E57;
  --danger: #D6455B;
  --shadow: 0 16px 40px rgba(16, 58, 38, 0.14);
  --card-shadow: 0 6px 18px rgba(16, 58, 38, 0.08);
  --page-bg:
    radial-gradient(1200px 700px at 50% -10%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, #E6F0EA, #D7E6DD 70%);
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --maxw: 480px;
}

/* ----- TEMA ESCURO (opcional) ----- */
html.theme-dark {
  --bg: #06160F;
  --bg-grad: #0A2418;
  --surface: #0E2A1C;
  --surface-alt: #143726;
  --surface2: #1A4530;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #EAF7EF;
  --text2: #9CC4AE;
  --text3: #6E9A82;
  --nav-bg: rgba(6, 22, 15, 0.82);
  --accent: #34C27E;
  --accent-soft: rgba(52, 194, 126, 0.16);
  --on-accent: #06160F;
  --fav: #FFB23E;
  --fav-soft: rgba(255, 178, 62, 0.16);
  --success: #34C27E;
  --danger: #FF6B7E;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  --page-bg:
    radial-gradient(1200px 700px at 50% -10%, #103a26 0%, transparent 60%),
    linear-gradient(180deg, #07271a, #041a11 70%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html, body {
  background: var(--page-bg);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--text3); opacity: 1; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------------- App shell ---------------- */
.app-body { display: flex; justify-content: center; align-items: stretch; min-height: 100vh; min-height: 100dvh; }
.app {
  width: 100%;
  max-width: var(--maxw);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (min-width: 520px) {
  .app { min-height: calc(100dvh - 32px); margin: 16px auto; height: calc(100dvh - 32px);
         border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
  .app-body { align-items: center; padding: 0 12px; }
}
.app-screen { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

/* ---------------- Tab bar ---------------- */
.tabbar {
  flex-shrink: 0; position: relative; z-index: 30;
  padding: 8px 0 max(26px, env(safe-area-inset-bottom));
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text3); padding: 2px 8px; flex: 1; transition: color .15s; cursor: pointer;
}
.tab.active { color: var(--accent); }
.tab-ico { position: relative; display: flex; }
.tab-label { font-size: 10.5px; font-weight: 600; }
.tab.active .tab-label { font-weight: 800; }
.tab-dot { position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 8px; background: var(--fav); border: 2px solid var(--bg); }

/* ---------------- Flash ---------------- */
.flash-wrap { position: absolute; top: 0; left: 0; right: 0; z-index: 90; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--card-shadow); animation: fadeDown .3s ease; }
.flash-success { background: rgba(47,181,115,.16); color: #7ee2b0; border: 1px solid rgba(47,181,115,.4); }
.flash-error { background: rgba(255,107,126,.16); color: #ffacb8; border: 1px solid rgba(255,107,126,.4); }
.flash-info { background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- Primitivos ---------------- */
.avatar {
  border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: var(--font-display); letter-spacing: .3px;
  background: linear-gradient(150deg, var(--av), var(--av));
}
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .2px; line-height: 1.1; white-space: nowrap;
  color: #06152C; background: var(--tag);
}
.tag-soft { color: var(--tag); background: color-mix(in srgb, var(--tag) 18%, transparent); }
.cat-dot { border-radius: 999px; flex-shrink: 0; display: inline-block; }
.muted { color: var(--text3); }
.sm { font-size: 12.5px; font-weight: 600; }

/* ---------------- Cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); border-radius: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18.5px; letter-spacing: -.3px; color: var(--text); }
.section-action { color: var(--accent); font-weight: 700; font-size: 13.5px; cursor: pointer; }

.session-card { display: block; padding: 15px; position: relative; overflow: hidden; }
.card-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.card-destaque { position: absolute; top: 13px; right: 13px; }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.card-title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.22; color: var(--text); text-wrap: pretty; }
.card-meta { display: flex; align-items: center; gap: 14px; color: var(--text2); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; }
.card-speakers { display: flex; align-items: center; gap: 8px; }
.card-speakers-name { color: var(--text2); font-size: 12.5px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: flex; }
.stack-item { border-radius: 99px; border: 2px solid var(--surface); }
.stack-item + .stack-item { margin-left: -10px; }

.break-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface2); border: 1px dashed var(--border); color: var(--text3); }
.break-title { flex: 1; color: var(--text2); font-weight: 600; font-size: 14px; }
.break-time { color: var(--text3); font-size: 13px; font-weight: 600; }

.fav-btn {
  border-radius: 999px; flex-shrink: 0; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text3); display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.fav-btn.on { border-color: transparent; background: var(--fav-soft); color: var(--fav); }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border-radius: 15px; border: 1px solid var(--border); background: var(--surface2); color: var(--text);
  font-weight: 700; font-size: 15px; padding: 14px 18px; transition: all .15s; font-family: var(--font-body);
}
.btn:hover { filter: brightness(1.05); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; font-family: var(--font-display); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-block { width: 100%; }
.btn-ghost { background: none; }
.btn-danger { background: none; color: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 12.5px; border-radius: 11px; }

/* ---------------- Campos ---------------- */
.field { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--border); }
.field .icon { color: var(--text3); }
.field input, .field select { flex: 1; border: none; background: none; outline: none; color: var(--text); font-size: 15.5px; font-family: var(--font-body); font-weight: 500; min-width: 0; }
.field-btn { border: none; background: none; color: var(--text3); cursor: pointer; display: flex; }
textarea.input { width: 100%; border-radius: 14px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 12px 14px; resize: vertical; }
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text2); margin: 0 0 6px; }

/* ---------------- Header de páginas ---------------- */
.page-head { background: linear-gradient(165deg, var(--bg-grad), var(--bg)); padding: 58px 20px 14px; position: relative; }
.page-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.5px; color: var(--text); }
.page-body { padding: 16px 20px 24px; }

/* ---------------- Detail header ---------------- */
.detail-head { padding: 56px 18px 22px; position: relative; }
.detail-bar { display: flex; align-items: center; justify-content: space-between; }
.glass-btn { width: 42px; height: 42px; border-radius: 42px; border: none; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: all .15s; }
.glass-btn.active { background: #fff; }
.detail-title { margin: 14px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.16; color: #fff; letter-spacing: -.4px; text-wrap: pretty; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: rgba(255,255,255,.92); font-size: 13.5px; font-weight: 600; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- Home ---------------- */
.home-head { background: linear-gradient(165deg, var(--bg-grad), var(--bg)); padding: 60px 20px 22px; position: relative; }
.home-head .glow { position: absolute; top: -40px; right: -30px; width: 200px; height: 200px; border-radius: 200px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.home-bar { display: flex; align-items: center; justify-content: space-between; position: relative; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.brand b { color: var(--accent); font-weight: 700; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 42px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn .tab-dot { top: 8px; right: 9px; border-color: var(--surface); }
.hello { color: var(--text2); font-size: 14px; font-weight: 600; margin-top: 20px; }
.hello-title { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--text); letter-spacing: -.5px; }
.search-bar { margin-top: 18px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text3); cursor: pointer; font-size: 14.5px; }

.next-card { display: block; padding: 16px; margin-bottom: 24px; position: relative; overflow: hidden; border-radius: 20px; }
.next-card .glow { position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 130px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 800; font-size: 12.5px; }
.live-dot { width: 8px; height: 8px; border-radius: 8px; background: var(--success); box-shadow: 0 0 0 4px rgba(47,181,115,.25); }
.next-title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--text); text-wrap: pretty; }

.quick-actions { display: flex; gap: 8px; margin-bottom: 26px; }
.qa { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; }
.qa-ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.qa-label { font-size: 12px; font-weight: 700; color: var(--text2); }

.announce { display: flex; gap: 12px; padding: 15px; margin-bottom: 26px; border-radius: 18px; }
.announce p { margin: 0; color: var(--text2); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.announce .author { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-weight: 700; font-size: 14px; color: var(--text); }

.speakers-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; }
.speaker-card { width: 140px; flex-shrink: 0; padding: 16px; text-align: center; cursor: pointer; border-radius: 18px; }
.speaker-card .avatar { margin: 0 auto 10px; }
.speaker-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.2; margin-bottom: 4px; }
.speaker-role { color: var(--text3); font-size: 11.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- Agenda ---------------- */
.day-row { display: flex; gap: 8px; }
.day-btn { flex: 1; padding: 10px 0; border-radius: 14px; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-family: var(--font-display); text-align: center; }
.day-btn.active { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.day-wd { font-size: 11.5px; font-weight: 700; opacity: .8; letter-spacing: .5px; }
.day-dom { font-size: 21px; font-weight: 700; line-height: 1.1; }
.day-mo { font-size: 10px; font-weight: 600; opacity: .75; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 12px; }
.chip { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); white-space: nowrap; }
.chip.active { background: var(--text); color: var(--bg); border-color: transparent; }
.fav-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); }
.fav-toggle.active { border-color: transparent; background: var(--fav-soft); color: var(--fav); }

.timeline-row { display: flex; gap: 14px; margin-bottom: 4px; }
.timeline-time { width: 46px; flex-shrink: 0; text-align: right; padding-top: 2px; }
.timeline-time .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.timeline-dot { width: 9px; height: 9px; border-radius: 9px; background: var(--accent); margin: 7px 0 0 auto; box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-line { width: 2px; flex: 1; background: var(--border); margin: 4px 4px 0 auto; min-height: 30px; }
.timeline-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.empty { text-align: center; padding: 50px 20px; color: var(--text3); }
.empty p { margin-top: 10px; font-weight: 600; }

/* ---------------- Segmented ---------------- */
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border-radius: 14px; border: 1px solid var(--border); }
.segmented a, .segmented button { flex: 1; border: none; cursor: pointer; border-radius: 10px; padding: 8px 6px; font-size: 13px; font-weight: 700; background: transparent; color: var(--text2); text-align: center; transition: all .18s; }
.segmented .active { background: var(--accent); color: var(--on-accent); }

/* ---------------- Feed ---------------- */
.composer { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 18px; border-radius: 16px; }
.composer .ph { flex: 1; color: var(--text3); font-size: 14px; font-weight: 500; }
.post { padding: 16px; border-radius: 18px; }
.post + .post { margin-top: 14px; }
.post-pin { display: inline-flex; align-items: center; gap: 5px; color: var(--fav); font-size: 11.5px; font-weight: 800; margin-bottom: 10px; }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.post-author { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14.5px; color: var(--text); }
.post-time { color: var(--text3); font-size: 12px; font-weight: 500; }
.post-body { margin: 0 0 12px; color: var(--text); font-size: 14.5px; line-height: 1.5; text-wrap: pretty; white-space: pre-wrap; }
.post-img { margin-bottom: 12px; border-radius: 16px; overflow: hidden; }
.post-actions { display: flex; align-items: center; gap: 20px; padding-top: 4px; }
.post-act { display: flex; align-items: center; gap: 7px; border: none; background: none; cursor: pointer; color: var(--text2); font-weight: 700; font-size: 13.5px; }
.post-act.liked { color: #FF5C7A; }
.post-comments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; display: none; flex-direction: column; gap: 10px; }
.post-comments.open { display: flex; }
.comment { display: flex; gap: 10px; }
.comment-body { background: var(--surface2); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--text); }
.comment-author { font-weight: 700; font-size: 12.5px; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input { flex: 1; }
.fab { position: absolute; right: 18px; bottom: 96px; width: 58px; height: 58px; border-radius: 20px; border: none; cursor: pointer; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 42%, transparent); z-index: 5; }

.person { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; }
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--text); }
.person-role { color: var(--text3); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.person-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.person-tag { font-size: 10.5px; font-weight: 700; color: var(--text2); background: var(--surface2); padding: 2px 8px; border-radius: 6px; }
.conn-btn { flex-shrink: 0; padding: 9px 14px; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 12.5px; border: 1px solid transparent; background: var(--accent); color: var(--on-accent); }
.conn-btn.connected { background: transparent; border-color: var(--success); color: var(--success); }

/* ---------------- Mapa ---------------- */
.plaza { position: relative; width: 100%; padding-top: 118%; border-radius: 22px; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); }
.plaza .floor { fill: var(--surface-alt); }
.plaza .grass { fill: color-mix(in srgb, var(--success) 22%, transparent); }
.plaza .path  { stroke: var(--border-strong); }
.plaza .mark  { fill: color-mix(in srgb, var(--text2) 45%, transparent); }
.plaza svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone { position: absolute; transform: translate(-50%,-50%); padding: 6px 4px; border-radius: 8px; color: #06152C; font-size: 9.5px; font-weight: 800; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.stand { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; cursor: pointer; transition: transform .15s; }
.stand.active { transform: translate(-50%,-50%) scale(1.18); z-index: 4; }
.stand-pin { width: 26px; height: 26px; border-radius: 26px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); border: 2px solid #fff; }
.stand.active .stand-pin { background: var(--fav); }
.stand-label { font-size: 8.5px; font-weight: 800; color: var(--text); background: color-mix(in srgb, var(--surface) 88%, transparent); padding: 1px 4px; border-radius: 4px; }
.legend { display: flex; gap: 16px; justify-content: center; margin: 14px 0 18px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text2); }
.map-detail { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; cursor: pointer; text-align: left; border-radius: 16px; }

/* ---------------- Detalhe: lembrete, vagas, votação, avaliação ---------------- */
.toggle { width: 50px; height: 30px; border-radius: 30px; border: none; cursor: pointer; background: var(--surface2); position: relative; transition: background .2s; }
.toggle.on { background: var(--accent); }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 24px; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle.on .knob { left: 23px; }
.info-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; margin-bottom: 20px; }
.info-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.poll-opt { position: relative; overflow: hidden; text-align: left; padding: 12px 14px; border-radius: 13px; cursor: pointer; border: 1px solid var(--border); background: var(--surface2); width: 100%; display: block; }
.poll-opt.sel { border-color: var(--accent); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 20%, transparent); transition: width .4s; }
.poll-opt-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.rate-box { padding: 18px; text-align: center; border-radius: 18px; }
.stars { display: flex; gap: 4px; justify-content: center; }
.star-btn { background: none; border: none; padding: 0; cursor: pointer; color: var(--text3); display: flex; }
.star-btn.on { color: var(--fav); }

/* ---------------- Perfil ---------------- */
.profile-head { background: linear-gradient(165deg, var(--bg-grad), var(--bg)); padding: 58px 20px 18px; }
.profile-user { display: flex; align-items: center; gap: 14px; }
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -.3px; }
.stats { display: flex; gap: 10px; margin-top: 18px; }
.stat { flex: 1; border-radius: 14px; padding: 12px 6px; text-align: center; }
.stat-n { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text); }
.stat-l { color: var(--text3); font-size: 11.5px; font-weight: 700; }
.cred-btn { width: 100%; border-radius: 18px; padding: 16px; cursor: pointer; border: none; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #ffffff)); color: var(--on-accent); display: flex; align-items: center; gap: 14px; text-align: left; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.cred-ico { width: 54px; height: 54px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.settings-list { border-radius: 18px; overflow: hidden; }
.settings-item { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.settings-item:last-child { border-bottom: none; }
.settings-item .icon { color: var(--accent); }
.settings-item .l { flex: 1; font-weight: 600; font-size: 14.5px; color: var(--text); }
.interests { display: flex; gap: 8px; flex-wrap: wrap; }
.interest { padding: 8px 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 13px; }

/* QR */
.qr-grid { width: 180px; height: 180px; display: grid; grid-template-columns: repeat(13,1fr); gap: 0; }
.qr-grid div.on { background: #0A1F3C; }
.realizacao { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 11px; opacity: .9; }
.realizacao .tit { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text3); }
.realizacao .logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 3px; display: flex; }
.realizacao .nm { font-size: 12px; font-weight: 600; color: var(--text2); }

/* ---------------- Modal / Sheet ---------------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(3,10,22,.55); backdrop-filter: blur(2px); display: none; }
.sheet-backdrop.open { display: block; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--maxw); margin: 0 auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 0 34px; max-height: 88%; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,.4); transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet-handle { width: 40px; height: 5px; border-radius: 5px; background: var(--border-strong); margin: 4px auto 8px; }
.sheet-title { padding: 4px 20px 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }

/* ---------------- Auth ---------------- */
.auth-hero { padding: 72px 28px 26px; text-align: center; position: relative; }
.auth-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 320px; height: 320px; border-radius: 320px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%); pointer-events: none; }
.auth-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: 1px; margin-bottom: 18px; }
.auth-h { font-family: var(--font-display); font-weight: 700; color: var(--text); line-height: .94; letter-spacing: -1px; position: relative; }
.auth-h .pre { font-size: 17px; font-weight: 600; color: var(--text2); letter-spacing: 3px; margin-bottom: 4px; }
.auth-h .big { font-size: 46px; }
.auth-h .big .accent { color: var(--accent); }
.auth-loc { margin-top: 14px; color: var(--text2); font-size: 14.5px; font-weight: 600; }
.auth-card { flex: 1; background: var(--surface); border-radius: 28px 28px 0 0; padding: 8px 24px 28px; border-top: 1px solid var(--border); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text3); font-size: 12.5px; font-weight: 600; }
.auth-divider .ln { flex: 1; height: 1px; background: var(--border); }
.auth-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 11px; }

/* ---------------- Admin ---------------- */
.admin { background: var(--bg); }
.admin-head { padding: 24px 20px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.admin-nav a { padding: 8px 14px; border-radius: 10px; background: var(--surface); color: var(--text2); font-weight: 700; font-size: 13px; white-space: nowrap; }
.admin-nav a.active { background: var(--accent); color: var(--on-accent); }
.admin-body { padding: 20px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-stat { padding: 16px; border-radius: 16px; }
.admin-stat .n { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--text); }
.admin-stat .l { color: var(--text3); font-size: 12.5px; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.table th { color: var(--text3); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.row-actions { display: flex; gap: 6px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-admin { background: var(--accent-soft); color: var(--accent); }
.badge-on { background: rgba(47,181,115,.16); color: var(--success); }
.badge-off { background: rgba(255,107,126,.16); color: var(--danger); }
.form-grid { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 140px; }
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--text2); font-weight: 600; font-size: 14px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.ml-auto { margin-left: auto; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.stack-v { display: flex; flex-direction: column; gap: 10px; }
.flex { display: flex; align-items: center; gap: 10px; }
