/* ============================================================
   Ad Lucem — style.css
   Tema: Navy escuro + Dourado, Cinzel + Lato
============================================================ */

:root {
  --bg:          #081534;
  --card:        #0f1f4a;
  --card2:       #1a2f5c;
  --gold:        #FFD700;
  --gold-dim:    #c9a900;
  --border:      #6B9BD1;
  --border-dim:  #2d4a6e;
  --text:        #ffffff;
  --muted:       #a3b3cc;
  --danger:      #d4183d;
  --radius:      10px;
  --radius-sm:   6px;
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, .brand-font { font-family: 'Cinzel', serif; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.65; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 520px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 780px; margin: 0 auto; padding: 0 1rem; }

/* ── HEADER ──────────────────────────────────────────────── */
header.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
header.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; padding: .85rem 1rem;
}

/* ── LOGO ────────────────────────────────────────────────── */
.logo-wrap { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.logo-wrap svg { flex-shrink: 0; }
.logo-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.1;
}
.logo-text p { font-size: .72rem; color: rgba(255,255,255,.55); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .52rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: .9rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: rgba(107,155,209,.12); }
.btn-ghost {
  background: transparent; color: var(--muted); border: none;
}
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm { padding: .3rem .75rem; font-size: .82rem; }
.btn-lg { padding: .7rem 1.4rem; font-size: 1rem; }
.btn-icon {
  width: 2.2rem; height: 2.2rem; padding: 0;
  justify-content: center; border-radius: var(--radius-sm);
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 2px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-hover {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 16px rgba(255,215,0,.25);
  border-color: var(--border);
}
.card-header { padding: 1.25rem 1.25rem .75rem; }
.card-body   { padding: .5rem 1.25rem 1rem; }
.card-footer { padding: .75rem 1.25rem 1.1rem; border-top: 1px solid var(--border-dim); }

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 99px;
  font-size: .75rem; font-weight: 700;
}
.badge-gold      { background: var(--gold); color: var(--bg); }
.badge-outline   { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.badge-secondary { background: var(--card2); color: var(--muted); }
.badge-success   { background: rgba(34,197,94,.18); color: #4ade80; }
.badge-warn      { background: rgba(234,179,8,.18); color: var(--gold); }

/* ── INPUT / FORM ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
label { font-size: .9rem; font-weight: 700; color: var(--text); }
label .req { color: var(--gold); }
.hint { font-size: .78rem; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--card2);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: .93rem;
  padding: .55rem .85rem;
  outline: none;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: var(--border); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--card); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); pointer-events: none; }
.input-icon input { padding-left: 2.25rem; }
.radio-group { display: flex; flex-direction: column; gap: .6rem; }
.radio-option {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem 1rem;
  border: 2px solid var(--border-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.radio-option.selected { border-color: var(--gold); background: rgba(255,215,0,.05); }
.radio-option input[type="radio"] { margin-top: .2rem; accent-color: var(--gold); flex-shrink: 0; }
.radio-option-label { font-weight: 700; }
.radio-option-desc  { font-size: .82rem; color: var(--muted); margin-top: .2rem; }

/* ── TAGS ────────────────────────────────────────────────── */
.tags-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--card2);
  border: 1px solid var(--border-dim);
  border-radius: 99px;
  padding: .2rem .65rem;
  font-size: .78rem;
}
.tag .tag-remove {
  cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1;
  transition: color var(--transition);
}
.tag .tag-remove:hover { color: var(--danger); }

/* ── GRID CARDS ──────────────────────────────────────────── */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── STATS BANNER ────────────────────────────────────────── */
.stats-banner {
  background: var(--card);
  border: 2px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
  margin-bottom: 1.25rem;
}
.stats-banner:hover { box-shadow: 0 4px 20px rgba(0,0,0,.3); border-color: var(--border); }
.stats-banner .stat-icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stats-banner .stat-main { display: flex; align-items: center; gap: 1rem; }
.stats-banner h3 { font-size: .82rem; color: var(--muted); margin-bottom: .15rem; }
.stats-banner .big-num { font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stats-banner .badges-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  background: var(--card);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.filter-bar h2 { font-size: .95rem; color: var(--muted); margin-bottom: .85rem; display: flex; align-items: center; gap: .4rem; }
.filter-bar .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 600px) { .filter-bar .filter-row { grid-template-columns: 1fr; } }
.tabs { display: flex; background: var(--card2); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.tab-btn {
  flex: 1; padding: .4rem .5rem;
  background: transparent; border: none;
  color: var(--muted); font-size: .78rem; font-weight: 700;
  border-radius: 5px; cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.tab-btn.active { background: var(--bg); color: var(--gold); }
.filter-second-row { margin-top: .75rem; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--muted);
}
.empty-state svg { margin: 0 auto 1rem; opacity: .45; }
.empty-state h3 { color: var(--text); margin-bottom: .5rem; }

/* ── SEPARATOR ───────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border-dim); margin: 1rem 0; }

/* ── LOGIN / CADASTRO PAGE ───────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-wrap { width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo h1 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 2.4rem; }
.auth-logo p { color: rgba(255,255,255,.55); margin-top: .3rem; }
.auth-card {
  background: var(--card);
  border: 2px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 2rem;
}
.auth-card h2 { margin-bottom: .3rem; }
.auth-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-link { color: var(--gold); text-decoration: none; font-weight: 700; }
.auth-link:hover { text-decoration: underline; }
.btn-divider { border-top: 1px dashed var(--border-dim); margin: .75rem 0; }
.center-text { text-align: center; font-size: .88rem; color: var(--muted); margin-top: .9rem; }

/* ── NOVA IDEIA PAGE ─────────────────────────────────────── */
.page-body { padding: 2rem 0 4rem; }
.tips-box {
  background: var(--card);
  border: 2px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: .87rem; color: var(--muted);
}
.tips-box h3 { font-size: .95rem; color: var(--text); margin-bottom: .5rem; }
.tips-box ul { padding-left: 1rem; }
.tips-box li { margin-bottom: .25rem; }

/* ── IDEIA DETALHES ──────────────────────────────────────── */
.meta-row { display: flex; align-items: center; gap: .5rem; font-size: .87rem; color: var(--muted); }
.meta-row svg { flex-shrink: 0; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
@media (max-width: 520px) { .meta-grid { grid-template-columns: 1fr; } }
.proposta-card { background: var(--card2); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .75rem; }
.proposta-card .prop-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.proposta-card .prop-body { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.proposta-card .prop-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.conv-card { background: var(--card2); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: .6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.conv-card .conv-name { display: flex; align-items: center; gap: .5rem; font-weight: 700; }

/* ── CONVERSAS PAGE ──────────────────────────────────────── */
.chat-list-card {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.chat-list-card:hover { transform: translateX(4px); box-shadow: 4px 0 0 var(--gold); }
.avatar-circle {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.2rem; flex-shrink: 0;
}
.last-msg-box { background: var(--card2); border-radius: var(--radius-sm); padding: .55rem .75rem; margin-top: .4rem; font-size: .84rem; }
.last-msg-box .sender { font-weight: 700; margin-bottom: .1rem; }
.last-msg-box .text   { color: var(--muted); }

/* ── CHAT PAGE ───────────────────────────────────────────── */
.chat-page {
  display: flex; flex-direction: column;
  height: 100vh;
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.msg-row { display: flex; gap: .5rem; max-width: 72%; }
.msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-row.theirs { align-self: flex-start; }
.msg-bubble {
  padding: .6rem .9rem;
  border-radius: 16px;
  font-size: .9rem; line-height: 1.5;
}
.msg-row.mine .msg-bubble   { background: var(--gold); color: var(--bg); border-bottom-right-radius: 4px; }
.msg-row.theirs .msg-bubble { background: var(--card2); color: var(--text); border-bottom-left-radius: 4px; }
.msg-meta { font-size: .7rem; color: var(--muted); margin-top: .2rem; text-align: right; }
.chat-input-bar {
  display: flex; gap: .6rem;
  padding: .75rem 1rem;
  background: var(--card);
  border-top: 1px solid var(--border-dim);
}
.chat-input-bar input { flex: 1; }

/* ── PERFIL PAGE ─────────────────────────────────────────── */
.perfil-avatar {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  font-size: 2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── MODAL ────────────────────────────────────────────────── */
#modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 200;
  animation: fadeIn .15s ease;
}
#modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  width: min(94vw, 640px);
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .2s ease;
}
#modal-inner {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
}
#modal-close {
  position: absolute; top: .85rem; right: 1rem;
  background: none; border: none;
  color: var(--muted); font-size: 1.5rem;
  cursor: pointer; line-height: 1;
}
#modal-close:hover { color: var(--text); }
.modal-title {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--gold); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .5rem;
}

/* ── TOAST ────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: .5rem;
  align-items: center;
}
.toast {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1.2rem;
  font-size: .88rem; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: slideUp .2s ease, fadeOut .3s ease 2.7s forwards;
  white-space: nowrap;
}
.toast.success { border-color: #4ade80; color: #4ade80; }
.toast.error   { border-color: var(--danger); color: #f87171; }
.toast.info    { border-color: var(--gold); color: var(--gold); }

/* ── ALERT BOX ────────────────────────────────────────────── */
.alert-box {
  background: rgba(212,24,61,.12);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  margin-bottom: 1.1rem;
  font-size: .88rem;
}
.alert-box strong { color: #f87171; display: block; margin-bottom: .25rem; }

/* ── FIXED DOA BUTTON ─────────────────────────────────────── */
#btn-donate {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 50;
  display: flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--bg);
  border: none; border-radius: var(--radius-sm);
  padding: .65rem 1.15rem;
  font-weight: 700; font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: filter var(--transition), transform var(--transition);
}
#btn-donate:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.prog-bar-wrap { height: .5rem; background: var(--bg); border-radius: 99px; overflow: hidden; display: flex; margin-top: .6rem; }
.prog-bar-abandoned { background: var(--danger); height: 100%; }
.prog-bar-collab    { background: var(--gold);   height: 100%; }

/* ── STAT CARD ────────────────────────────────────────────── */
.stat-curso-card {
  background: var(--card2);
  border: 2px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
}
.stat-curso-card .curso-name { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.stat-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .65rem; }
.stat-mini { background: var(--bg); border-radius: var(--radius-sm); padding: .5rem .65rem; }
.stat-mini-label { font-size: .72rem; color: var(--muted); margin-bottom: .15rem; }
.stat-mini-val { display: flex; align-items: center; justify-content: space-between; }
.stat-mini-val span:first-child { font-size: 1.3rem; font-weight: 900; }
.stat-mini-val span:last-child  { font-size: .72rem; color: var(--muted); }

/* ── PIX MODAL ─────────────────────────────────────────────── */
.pix-box {
  background: var(--card2); border: 2px solid var(--border-dim);
  border-radius: var(--radius-sm); padding: .85rem 1rem; margin: .75rem 0;
}
.pix-box label { font-size: .8rem; color: var(--gold); margin-bottom: .3rem; display: block; }
.pix-key { font-family: monospace; font-size: .83rem; word-break: break-all; color: var(--muted); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes slideUp {
  from { transform: translate(-50%, calc(-50% + 16px)); opacity: 0 }
  to   { transform: translate(-50%, -50%); opacity: 1 }
}
@keyframes slideUpIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
#app > * { animation: slideUpIn .22s ease; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ============================================================
   ACESSIBILIDADE
============================================================ */

/* ── SKIP LINK ────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -9999px; left: 1rem;
  background: var(--gold); color: var(--bg);
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: .5rem; }

/* ── FOCUS STYLES ─────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── TTS BAR ──────────────────────────────────────────────── */
.tts-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(8,21,52,.97);
  border-bottom: 2px solid var(--gold);
  padding: .45rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .85rem; color: var(--gold);
  flex-wrap: wrap;
}
.tts-bar #tts-icon { font-size: 1.1rem; animation: tts-pulse 1.2s ease infinite; }
@keyframes tts-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
body.tts-active { padding-top: 2.6rem; }

/* TTS hover highlight */
body.tts-active [data-tts]:hover,
body.tts-active [data-tts]:focus {
  outline: 2px dashed var(--gold);
  outline-offset: 2px;
  cursor: pointer;
}

/* ── LIBRAS WIDGET ────────────────────────────────────────── */
.libras-widget {
  position: fixed; bottom: 5rem; left: 1rem;
  z-index: 400;
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: .85rem;
  width: 130px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: libras-in .3s ease;
}
@keyframes libras-in { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
.libras-widget #libras-avatar { margin: 0 auto .4rem; }
.libras-widget #libras-avatar svg { animation: libras-wave 2s ease infinite; }
@keyframes libras-wave {
  0%,100%{ transform: rotate(0deg); }
  25%     { transform: rotate(-8deg); }
  75%     { transform: rotate(8deg); }
}
.libras-widget #libras-text {
  font-size: .7rem; color: var(--muted);
  min-height: 2.2em; line-height: 1.3;
  word-break: break-word;
}
.libras-widget .libras-label {
  font-size: .7rem; color: var(--gold); font-weight: 700;
  margin-top: .3rem; letter-spacing: .05em;
}

/* ── DALTONISMO FILTERS ───────────────────────────────────── */
/* SVG filter defs injected at runtime via JS */
body.cb-protanopia   { filter: url(#cb-protanopia); }
body.cb-deuteranopia { filter: url(#cb-deuteranopia); }
body.cb-tritanopia   { filter: url(#cb-tritanopia); }
body.cb-achromatopsia{ filter: url(#cb-achromatopsia); }

/* ── HIGH CONTRAST OVERRIDE (acompanha daltonismo se preciso) */
body.cb-protanopia   :root,
body.cb-deuteranopia :root {
  --gold: #FFE066;
  --border: #7ec8e3;
}

/* ── ACESSIBILIDADE TOGGLE SWITCH ─────────────────────────── */
.a11y-section {
  background: var(--card2);
  border: 2px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.a11y-section h3 {
  font-size: 1rem; margin-bottom: .85rem;
  display: flex; align-items: center; gap: .5rem;
  color: var(--gold);
}
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border-dim);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: .92rem; color: var(--text); }
.toggle-sub   { font-size: .75rem; color: var(--muted); display: block; margin-top: .1rem; }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-dim);
  border-radius: 99px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-slider { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Daltonismo select */
.cb-select-wrap { margin-top: .5rem; }
.cb-select-wrap select { font-size: .88rem; }

/* ── RESPONSIVE MOBILE ────────────────────────────────────── */
@media (max-width: 480px) {
  .libras-widget { width: 110px; padding: .65rem; }
  .libras-widget #libras-avatar svg { width: 52px; height: 52px; }
  .tts-bar #tts-label { display: none; }
}
@media (max-width: 600px) {
  header.site-header .inner .btn span.hidden-xs { display: none; }
  .ideas-grid { grid-template-columns: 1fr; }
  .meta-grid  { grid-template-columns: 1fr; }
}

/* ── UTILITY ──────────────────────────────────────────────── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.mt-1  { margin-top: .25rem; }
.mt-2  { margin-top: .5rem; }
.mt-3  { margin-top: .75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: .25rem; }
.mb-2  { margin-bottom: .5rem; }
.mb-3  { margin-bottom: .75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.py-2  { padding-top: .5rem; padding-bottom: .5rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-sm   { font-size: .85rem; }
.text-xs   { font-size: .75rem; }
.font-bold { font-weight: 700; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}