/* =========================================================
   BitRecoveryAid — componentes
   ========================================================= */

/* ---------- selos e etiquetas ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.68rem;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  white-space: nowrap;
}

.tag-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag-lv1 { color: var(--lv-1); border-color: rgba(111, 227, 160, 0.3); background: rgba(111, 227, 160, 0.09); }
.tag-lv2 { color: var(--lv-2); border-color: rgba(255, 196, 107, 0.3); background: rgba(255, 196, 107, 0.09); }
.tag-lv3 { color: var(--lv-3); border-color: rgba(255, 127, 143, 0.3); background: rgba(255, 127, 143, 0.09); }

.tag-time {
  color: var(--faint);
}

.badge-new {
  background: var(--grad-hot);
  color: #2a0409;
  border: 0;
  font-weight: 700;
}

/* ---------- superfícies ---------- */

.panel {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 42%),
    rgba(8, 17, 14, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-md);
}

.panel-pad { padding: clamp(1.4rem, 3vw, 2.2rem); }

.panel-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(70, 209, 127, 0.5), transparent 40%, rgba(255, 92, 107, 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- card de guia ---------- */

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.008) 55%), rgba(7, 15, 12, 0.6);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.guide-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 209, 127, 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(70, 209, 127, 0.34);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95);
}

.guide-card:hover::after { opacity: 1; }

.guide-card .gc-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guide-card h3 {
  font-size: 1.16rem;
  line-height: 1.24;
}

.guide-card h3 a { color: #fff; }
.guide-card h3 a:hover { color: var(--green-soft); }

.guide-card p {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

.guide-card .gc-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--faint);
}

.gc-theme {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-theme:hover { color: var(--green-soft); }

.gc-go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-dim);
  font-weight: 600;
  transition: color 0.2s var(--ease);
  flex: none;
  white-space: nowrap;
}

.gc-go:hover { color: #fff; }

.gc-go svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.guide-card:hover .gc-go svg { transform: translateX(4px); }

.gc-done {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--grad-brand);
  color: #04200f;
}

.gc-done svg { width: 13px; height: 13px; }
.guide-card[data-done="1"] .gc-done { display: grid; }

/* pré-visualização expansível */
.gc-peek {
  display: none;
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
  margin-top: 0.2rem;
}

.guide-card.is-open .gc-peek { display: block; animation: fadeUp 0.3s var(--ease); }

.gc-peek ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.gc-peek li { display: flex; gap: 0.5rem; }
.gc-peek li::before { content: "▸"; color: var(--green); }

.gc-peek-btn {
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--faint);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.gc-peek-btn:hover { color: var(--green); }

/* ---------- botão de áudio ---------- */

.say {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(70, 209, 127, 0.3);
  background: rgba(70, 209, 127, 0.1);
  color: var(--green-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
}

.say:hover {
  background: rgba(70, 209, 127, 0.2);
  color: #fff;
  transform: scale(1.07);
}

.say svg { width: 15px; height: 15px; }

.say.is-playing {
  background: var(--grad-brand);
  color: #04200f;
  border-color: transparent;
}

.say.is-playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(70, 209, 127, 0.6);
  animation: pulseRing 1.1s ease-out infinite;
}

.say-wide {
  width: auto;
  padding: 0 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 620;
  font-family: var(--font-display);
}

.say-slow {
  border-color: rgba(255, 160, 90, 0.3);
  background: rgba(255, 160, 90, 0.1);
  color: var(--amber);
}

.say-slow:hover { background: rgba(255, 160, 90, 0.2); }
.say-slow.is-playing { background: var(--grad-hot); color: #2a0409; }

.speech-warn {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 196, 107, 0.28);
  background: rgba(255, 196, 107, 0.08);
  color: #ffd9a3;
  font-size: 0.87rem;
  margin-bottom: 1.4rem;
}

.speech-warn.is-on { display: flex; }

.speech-warn svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  color: var(--amber, #ffc46b);
}

/* seletor de sotaque */
.accent-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  gap: 2px;
}

.accent-switch button {
  padding: 0.34rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 620;
  font-family: var(--font-display);
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.accent-switch button.is-on {
  background: var(--grad-brand);
  color: #04200f;
}

/* ---------- fonética ---------- */

.ipa {
  font-family: var(--font-ipa);
  color: var(--green-soft);
  letter-spacing: 0.01em;
}

.say-it {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber);
}

.en-word {
  font-family: var(--font-display);
  font-weight: 650;
  color: #fff;
}

/* ---------- tabela de exemplos ---------- */

.ex-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 17, 14, 0.55);
  font-size: 0.94rem;
}

.ex-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.ex-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ex-table tr:last-child td { border-bottom: 0; }
.ex-table tbody tr { transition: background 0.2s var(--ease); }
.ex-table tbody tr:hover { background: rgba(70, 209, 127, 0.05); }

.ex-table .col-audio { width: 54px; }
.ex-table .col-pt { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
}

/* ---------- comparador de pares ---------- */

.pair-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.pair-row:hover { border-color: rgba(70, 209, 127, 0.3); background: rgba(70, 209, 127, 0.045); }

.pair-side {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pair-side:last-child { justify-content: flex-end; text-align: right; }
.pair-side:last-child .pair-meta { align-items: flex-end; }

.pair-meta { display: flex; flex-direction: column; line-height: 1.3; }
.pair-meta strong { font-family: var(--font-display); font-size: 1.05rem; }
.pair-meta span { font-size: 0.8rem; color: var(--muted); }

.pair-vs {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

/* ---------- destaques / callouts ---------- */

.callout {
  position: relative;
  padding: 1.15rem 1.35rem 1.15rem 3.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  margin: 1.8rem 0;
  font-size: 0.96rem;
  color: var(--ink-dim);
}

.callout::before {
  content: "!";
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--grad-brand);
  color: #04200f;
}

.callout strong { display: block; margin-bottom: 0.2rem; }

.callout-tip::before { content: "★"; background: var(--grad-hot); color: #2a0409; }
.callout-tip { border-color: rgba(255, 92, 107, 0.22); background: rgba(255, 92, 107, 0.06); }

/* ---------- erros comuns ---------- */

.mistake {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.mistake + .mistake { margin-top: 0.75rem; }

.mk-line { display: flex; align-items: center; gap: 0.55rem; font-size: 0.96rem; }
.mk-x, .mk-v {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 800;
}
.mk-x { background: rgba(255, 92, 107, 0.18); color: var(--coral); }
.mk-v { background: rgba(70, 209, 127, 0.18); color: var(--green); }
.mistake .mk-why {
  grid-column: 1 / -1;
  font-size: 0.89rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
}

/* ---------- acordeão ---------- */

.acc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.acc + .acc { margin-top: 0.7rem; }

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.01rem;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}

.acc-head:hover { background: rgba(255, 255, 255, 0.03); color: #fff; }

.acc-ico {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--green);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.acc.is-open .acc-ico { transform: rotate(45deg); background: rgba(70, 209, 127, 0.14); }

.acc-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.acc.is-open .acc-body { display: block; animation: fadeUp 0.3s var(--ease); }

/* ---------- exercícios ---------- */

.quiz {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(28rem 16rem at 88% -10%, rgba(255, 92, 107, 0.1), transparent 66%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 50%),
    rgba(7, 15, 12, 0.72);
  padding: clamp(1.35rem, 3vw, 2.1rem);
  box-shadow: var(--sh-md);
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.quiz-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}

.quiz-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--grad-mix);
  transition: width 0.4s var(--ease);
}

.q-item + .q-item {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.q-stem {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 620;
  color: #fff;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.q-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  flex: none;
}

.q-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.q-listen {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(70, 209, 127, 0.07);
  border: 1px dashed rgba(70, 209, 127, 0.28);
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.q-opts { display: grid; gap: 0.55rem; }

.q-opt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  padding: 0.78rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
}

.q-opt:hover:not(:disabled) {
  border-color: rgba(70, 209, 127, 0.38);
  background: rgba(70, 209, 127, 0.06);
  color: #fff;
  transform: translateX(3px);
}

.q-opt:disabled { cursor: default; }

.q-key {
  width: 25px; height: 25px; flex: none;
  border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.q-opt.is-right {
  border-color: rgba(70, 209, 127, 0.55);
  background: rgba(70, 209, 127, 0.12);
  color: #fff;
}
.q-opt.is-right .q-key { background: var(--grad-brand); color: #04200f; border-color: transparent; }

.q-opt.is-wrong {
  border-color: rgba(255, 92, 107, 0.5);
  background: rgba(255, 92, 107, 0.1);
  color: #ffd2d6;
}
.q-opt.is-wrong .q-key { background: var(--coral); color: #2a0409; border-color: transparent; }

.q-feed {
  display: none;
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--green);
  background: rgba(70, 209, 127, 0.07);
  font-size: 0.9rem;
  color: var(--ink-dim);
  animation: fadeUp 0.3s var(--ease);
}

.q-feed.is-on { display: block; }
.q-feed.is-bad { border-left-color: var(--coral); background: rgba(255, 92, 107, 0.07); }
.q-feed b { color: #fff; }

.q-fill {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.q-fill input {
  flex: 1 1 220px;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.q-fill input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(70, 209, 127, 0.15); }
.q-fill input.is-right { border-color: var(--green); }
.q-fill input.is-wrong { border-color: var(--coral); }

.quiz-result {
  display: none;
  margin-top: 1.6rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(70, 209, 127, 0.3);
  background: rgba(70, 209, 127, 0.08);
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.quiz-result.is-on { display: flex; animation: fadeUp 0.35s var(--ease); }

.score-ring {
  --p: 0;
  width: 66px; height: 66px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #08130f;
}

.score-ring b {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #fff;
}

/* ---------- progresso ---------- */

.prog-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
}

.prog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.prog-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prog-stat span {
  font-size: 0.78rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mark-done {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.mark-done.is-done {
  background: rgba(70, 209, 127, 0.14);
  border-color: rgba(70, 209, 127, 0.4);
  color: var(--green-soft);
}

/* ---------- filtros ---------- */

.filters {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 1.1rem;
  width: 19px;
  height: 19px;
  color: var(--faint);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 1rem 3.2rem 1rem 3.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 1rem;
}

.search-field input::placeholder { color: var(--faint); }

.search-field input:focus {
  outline: none;
  border-color: rgba(70, 209, 127, 0.55);
  box-shadow: 0 0 0 4px rgba(70, 209, 127, 0.12);
}

.search-clear {
  position: absolute;
  right: 0.7rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: none;
  place-items: center;
  color: var(--muted);
  background: var(--panel-strong);
}

.search-clear.is-on { display: grid; }
.search-clear:hover { color: #fff; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
  margin-right: 0.3rem;
}

.chip {
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.855rem;
  font-weight: 560;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.chip:hover { color: #fff; border-color: var(--line-strong); transform: translateY(-1px); }

.chip.is-on {
  background: rgba(70, 209, 127, 0.14);
  border-color: rgba(70, 209, 127, 0.45);
  color: var(--green-soft);
}

.chip[data-level="iniciante"].is-on { background: rgba(111, 227, 160, 0.16); border-color: rgba(111, 227, 160, 0.5); color: var(--lv-1); }
.chip[data-level="intermediario"].is-on { background: rgba(255, 196, 107, 0.15); border-color: rgba(255, 196, 107, 0.5); color: var(--lv-2); }
.chip[data-level="avancado"].is-on { background: rgba(255, 127, 143, 0.15); border-color: rgba(255, 127, 143, 0.5); color: var(--lv-3); }

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-bar b { color: #fff; }

.empty-state {
  display: none;
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}

.empty-state.is-on { display: block; }
.empty-state h3 { margin-bottom: 0.5rem; }

/* ---------- busca global (overlay) ---------- */

.finder {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: clamp(1rem, 10vh, 7rem) 1rem 1rem;
  background: rgba(3, 7, 6, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.finder.is-open { display: block; animation: fadeUp 0.22s var(--ease); }

.finder-box {
  width: min(100%, 680px);
  margin-inline: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: #0a1512;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.finder-box .search-field input {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding-block: 1.15rem;
}

.finder-box .search-field input:focus { box-shadow: none; }

.finder-list {
  max-height: min(58vh, 460px);
  overflow-y: auto;
  padding: 0.5rem;
}

.finder-item {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-sm);
  color: var(--ink-dim);
}

.finder-item:hover, .finder-item.is-cursor {
  background: rgba(70, 209, 127, 0.1);
  color: #fff;
}

.finder-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-weight: 620;
}

.finder-item span { font-size: 0.82rem; color: var(--faint); }

.finder-foot {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--faint);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.36rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-dim);
}

/* ---------- migalhas ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--faint);
  margin-bottom: 1.2rem;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-soft); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- paginação de leitura ---------- */

.readnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.readnav a {
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: all 0.25s var(--ease);
}

.readnav a:hover { border-color: rgba(70, 209, 127, 0.35); background: rgba(70, 209, 127, 0.05); transform: translateY(-2px); }
.readnav span { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.readnav strong { font-family: var(--font-display); font-size: 0.99rem; color: #fff; }
.readnav .rn-next { text-align: right; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 140%);
  z-index: 140;
  padding: 0.8rem 1.3rem;
  border-radius: var(--r-pill);
  background: #0d1a15;
  border: 1px solid rgba(70, 209, 127, 0.4);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--sh-lg);
  transition: transform 0.35s var(--ease);
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.is-on { transform: translate(-50%, 0); }

/* ---------- topo ---------- */

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 70;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 21, 17, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
}

.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: #fff; border-color: rgba(70, 209, 127, 0.5); }

@media (max-width: 640px) {
  .pair-row { grid-template-columns: 1fr; text-align: left; }
  .pair-side:last-child { justify-content: flex-start; text-align: left; }
  .pair-side:last-child .pair-meta { align-items: flex-start; }
  .pair-vs { justify-self: start; }
  .readnav { grid-template-columns: 1fr; }
  .readnav .rn-next { text-align: left; }
  .to-top { right: 0.8rem; bottom: 0.8rem; }
}
