/* AllexxRedação ENEM v2.1.0 · Cursos do Ale · Sistema de 4 Temas */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ═══════════════════════════════════════════
   TEMA 1 — MATRIX (padrão)
   Preto verde, estilo hacker, chuva digital
═══════════════════════════════════════════ */
:root, [data-ared-theme="matrix"] {
  --g:        #00ff41;
  --g2:       #00cc33;
  --bg:       #080c08;
  --bg2:      #0c140c;
  --bg3:      #111d11;
  --bg4:      #162416;
  --bd:       rgba(0,255,65,.12);
  --bd2:      rgba(0,255,65,.22);
  --txt:      #d4ffd4;
  --muted:    #4a7a4a;
  --red:      #ff4444;
  --yel:      #ffcc00;
  --blu:      #44aaff;
  --hero-grad:linear-gradient(135deg, #0c140c 0%, rgba(0,255,65,.05) 100%);
  --glow:     0 0 60px rgba(0,255,65,.07), 0 24px 48px rgba(0,0,0,.6);
  --r:        8px;
}

/* ═══════════════════════════════════════════
   TEMA 2 — DARK NEUTRO
   Preto puro, roxo/branco, elegante e limpo
═══════════════════════════════════════════ */
[data-ared-theme="dark"] {
  --g:        #818cf8;
  --g2:       #6366f1;
  --bg:       #0f0f0f;
  --bg2:      #181818;
  --bg3:      #222222;
  --bg4:      #2a2a2a;
  --bd:       rgba(129,140,248,.13);
  --bd2:      rgba(129,140,248,.25);
  --txt:      #e2e8f0;
  --muted:    #64748b;
  --red:      #f87171;
  --yel:      #fbbf24;
  --blu:      #38bdf8;
  --hero-grad:linear-gradient(135deg, #181818 0%, rgba(99,102,241,.06) 100%);
  --glow:     0 0 60px rgba(99,102,241,.06), 0 24px 48px rgba(0,0,0,.5);
}

/* ═══════════════════════════════════════════
   TEMA 3 — CLEAN CLARO
   Branco, verde escuro profissional, leitura fácil
═══════════════════════════════════════════ */
[data-ared-theme="clean"] {
  --g:        #16a34a;
  --g2:       #15803d;
  --bg:       #f8fafc;
  --bg2:      #ffffff;
  --bg3:      #f1f5f9;
  --bg4:      #e2e8f0;
  --bd:       rgba(22,163,74,.15);
  --bd2:      rgba(22,163,74,.28);
  --txt:      #1e293b;
  --muted:    #64748b;
  --red:      #dc2626;
  --yel:      #d97706;
  --blu:      #2563eb;
  --hero-grad:linear-gradient(135deg, #ffffff 0%, rgba(22,163,74,.04) 100%);
  --glow:     0 0 40px rgba(22,163,74,.06), 0 16px 32px rgba(0,0,0,.08);
}

/* ═══════════════════════════════════════════
   TEMA 4 — SÉPIA
   Bege quente, âmbar, ideal para leitura longa
═══════════════════════════════════════════ */
[data-ared-theme="sepia"] {
  --g:        #b45309;
  --g2:       #92400e;
  --bg:       #fdf6e3;
  --bg2:      #fef9ef;
  --bg3:      #fdf0d0;
  --bg4:      #f5e6c0;
  --bd:       rgba(180,83,9,.14);
  --bd2:      rgba(180,83,9,.26);
  --txt:      #3b1c08;
  --muted:    #92713a;
  --red:      #b91c1c;
  --yel:      #b45309;
  --blu:      #1d4ed8;
  --hero-grad:linear-gradient(135deg, #fef9ef 0%, rgba(180,83,9,.04) 100%);
  --glow:     0 0 40px rgba(180,83,9,.05), 0 16px 32px rgba(0,0,0,.06);
}

/* Ajustes específicos para temas claros (clean e sepia) */
[data-ared-theme="clean"] .ared-auth-glow,
[data-ared-theme="sepia"] .ared-auth-glow { display: none; }

[data-ared-theme="clean"] .ared-hero,
[data-ared-theme="sepia"] .ared-hero {
  border-bottom: 1px solid var(--bd2);
}

[data-ared-theme="clean"] .ared-textarea,
[data-ared-theme="sepia"] .ared-textarea {
  font-family: 'JetBrains Mono', monospace !important;
}

[data-ared-theme="clean"] .ared-ph-ring,
[data-ared-theme="sepia"] .ared-ph-ring {
  border-color: var(--bd2);
}

/* Score ring nos temas claros */
[data-ared-theme="clean"] .ared-ring-bg,
[data-ared-theme="sepia"] .ared-ring-bg { stroke: var(--bg4); }

/* Nav tema claro */
[data-ared-theme="clean"] .ared-nav,
[data-ared-theme="sepia"] .ared-nav {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ═══════════════════════════════════════════
   SELETOR DE TEMA — UI
═══════════════════════════════════════════ */
.ared-theme-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bd);
}
.ared-theme-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.ared-theme-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ared-theme-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: var(--bg3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ared-theme-btn:hover {
  border-color: var(--g);
  color: var(--txt);
}
.ared-theme-btn.ativo {
  border-color: var(--g);
  color: var(--g);
  background: var(--bg4);
}
.ared-theme-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Cores dos dots independentes do tema ativo */
.ared-theme-btn[data-theme="matrix"] .ared-theme-dot { background: #00ff41; }
.ared-theme-btn[data-theme="dark"]   .ared-theme-dot { background: #818cf8; }
.ared-theme-btn[data-theme="clean"]  .ared-theme-dot { background: #16a34a; }
.ared-theme-btn[data-theme="sepia"]  .ared-theme-dot { background: #b45309; }

/* BASE */
.ared-auth-page, .ared-app {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  box-sizing: border-box;
}
.ared-auth-page *, .ared-app * { box-sizing: border-box; }

/* ═══════════════════════════════════════════
   AUTH
═══════════════════════════════════════════ */
.ared-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}
.ared-auth-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,65,.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.ared-auth-box {
  background: var(--bg2);
  border: 1px solid var(--bd2);
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%; max-width: 620px;
  box-shadow: var(--glow);
  position: relative;
}
.ared-auth-badge {
  display: inline-block;
  background: var(--g);
  color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.ared-auth-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: .95;
  margin-bottom: 12px;
  color: var(--txt);
}
.ared-auth-headline span { color: var(--g); }
.ared-auth-desc { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }

.ared-tabs-mini { display: flex; gap: 0; border-bottom: 1px solid var(--bd); margin-bottom: 24px; }
.ared-tab-mini {
  flex: 1; padding: 10px; background: none; border: none;
  border-bottom: 2px solid transparent; color: var(--muted);
  cursor: pointer; font-size: 13px; font-weight: 700; font-family: 'Syne', sans-serif;
  transition: all .2s;
}
.ared-tab-mini.active { color: var(--g); border-bottom-color: var(--g); }

.ared-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ared-f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0; }
.ared-f label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.ared-f input, .ared-f select, .ared-input {
  background: var(--bg3) !important;
  border: 1px solid var(--bd) !important;
  color: var(--txt) !important;
  border-radius: var(--r) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  width: 100% !important;
  font-family: 'Syne', sans-serif !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.ared-f input:focus, .ared-f select:focus, .ared-input:focus {
  border-color: var(--g) !important;
  box-shadow: 0 0 0 3px rgba(0,255,65,.1) !important;
}
.ared-f input::placeholder { color: var(--muted) !important; }
.ared-f select option { background: var(--bg3); }

.ared-btn-cta {
  width: 100%; padding: 14px;
  background: var(--g); color: #000;
  border: none; border-radius: var(--r);
  font-size: 15px; font-weight: 800;
  font-family: 'Syne', sans-serif;
  cursor: pointer; margin-top: 8px;
  transition: background .2s, transform .1s;
}
.ared-btn-cta:hover { background: var(--g2); }
.ared-btn-cta:active { transform: scale(.98); }

.ared-lgpd { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }
.ared-link { color: var(--g); text-decoration: none; }
.ared-msg { padding: 10px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; margin-bottom: 12px; display: none; }
.ared-msg.ok  { display:block; background:rgba(0,255,65,.1); color:var(--g); border:1px solid var(--bd2); }
.ared-msg.err { display:block; background:rgba(255,68,68,.1); color:var(--red); border:1px solid rgba(255,68,68,.3); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.ared-hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 32px 32px 24px;
  background: var(--hero-grad);
  border-bottom: 1px solid var(--bd);
  flex-wrap: wrap;
}
.ared-hero-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px; letter-spacing: 3px;
  background: var(--g); color: #000;
  padding: 3px 10px; border-radius: 4px;
  display: inline-block; margin-bottom: 8px;
}
.ared-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px; line-height: .9;
  margin: 0; color: var(--g);
  text-shadow: 0 0 40px rgba(0,255,65,.3);
}
.ared-hero-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }

.ared-hero-stats { display: flex; gap: 24px; }
.ared-stat { text-align: center; }
.ared-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; color: var(--g); display: block; line-height: 1;
}
.ared-stat-lbl { font-size: 11px; color: var(--muted); }

.ared-hero-user { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ared-user-nome { font-size: 14px; font-weight: 700; }
.ared-user-loc { font-size: 11px; color: var(--muted); }
.ared-sair-btn {
  padding: 6px 14px; border: 1px solid var(--bd);
  color: var(--muted); background: transparent;
  border-radius: 6px; font-size: 12px; cursor: pointer;
  text-decoration: none; transition: all .2s; margin-top: 4px;
}
.ared-sair-btn:hover { border-color: var(--g); color: var(--g); }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.ared-nav {
  display: flex;
  background: var(--bg2);
  border-bottom: 1px solid var(--bd);
  padding: 0 20px;
  gap: 4px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 10;
}
.ared-nav-btn {
  padding: 14px 22px;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted); cursor: pointer;
  font-size: 13px; font-weight: 700;
  font-family: 'Syne', sans-serif;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.ared-nav-btn.active, .ared-nav-btn:hover { color: var(--g); border-bottom-color: var(--g); }

/* ═══════════════════════════════════════════
   TABS
═══════════════════════════════════════════ */
.ared-tab { display: none; padding: 28px; }
.ared-tab.active { display: block; }

/* ═══════════════════════════════════════════
   TAB ESCREVER
═══════════════════════════════════════════ */
.ared-escrever-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .ared-escrever-grid { grid-template-columns: 1fr; } }

.ared-editor-card, .ared-result-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 24px;
}
.ared-card-title {
  font-size: 15px; font-weight: 800; color: var(--g);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--bd);
}

.ared-field { margin-bottom: 16px; }
.ared-field > label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.ared-req { color: var(--g); }
.ared-opt { font-weight: 400; text-transform: none; font-size: 10px; color: var(--muted); }
.ared-campo-dica { font-size: 11px; color: var(--muted); margin-top: 4px; }

.ared-linhas-counter {
  text-align: right; font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted); margin-bottom: 4px;
}
.ared-linhas-counter.over { color: var(--red); }
.ared-linhas-counter.warn { color: var(--yel); }

.ared-textarea {
  width: 100% !important;
  min-height: 380px !important;
  background: var(--bg3) !important;
  border: 1px solid var(--bd) !important;
  color: var(--txt) !important;
  border-radius: var(--r) !important;
  padding: 16px !important;
  font-size: 14px !important;
  font-family: 'JetBrains Mono', monospace !important;
  line-height: 1.8 !important;
  resize: vertical !important;
  outline: none !important;
  transition: border-color .2s !important;
}
.ared-textarea:focus { border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(0,255,65,.08) !important; }
.ared-textarea::placeholder { color: var(--muted) !important; font-size: 13px !important; line-height: 1.7 !important; }
.ared-text-meta { font-size: 11px; color: var(--muted); margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

.ared-editor-actions { display: flex; gap: 10px; margin-top: 4px; }
.ared-btn-avaliar {
  flex: 1; padding: 13px 24px;
  background: var(--g); color: #000;
  border: none; border-radius: var(--r);
  font-size: 14px; font-weight: 800;
  font-family: 'Syne', sans-serif;
  cursor: pointer; transition: background .2s;
}
.ared-btn-avaliar:hover { background: var(--g2); }
.ared-btn-limpar {
  padding: 13px 16px; border: 1px solid var(--bd);
  color: var(--muted); background: transparent;
  border-radius: var(--r); cursor: pointer;
  font-size: 16px; transition: all .2s;
}
.ared-btn-limpar:hover { border-color: var(--red); color: var(--red); }

/* RESULT */
.ared-result-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 70px 20px; color: var(--muted);
  text-align: center;
}
.ared-ph-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px dashed var(--bd2);
  margin-bottom: 20px;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ared-ph-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ared-ph-sub { font-size: 13px; line-height: 1.6; }

/* Score ring SVG */
.ared-score-total { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.ared-score-ring { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.ared-svg-ring { width: 110px; height: 110px; transform: rotate(-90deg); }
.ared-ring-bg { fill: none; stroke: var(--bg4); stroke-width: 8; }
.ared-ring-fill { fill: none; stroke: var(--g); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1s ease, stroke .4s; }
.ared-score-inside { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.ared-score-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; line-height: 1; }
.ared-score-den { font-size: 10px; color: var(--muted); }
.ared-score-label { font-size: 20px; font-weight: 800; }
.ared-score-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ared-btn-salvar {
  margin-top: 10px; padding: 8px 16px;
  border: 1px solid var(--g); color: var(--g);
  background: transparent; border-radius: 6px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  font-family: 'Syne', sans-serif;
}
.ared-btn-salvar:hover { background: var(--g); color: #000; }

/* Competências */
.ared-comps { margin-bottom: 16px; }
.ared-comp-item {
  background: var(--bg3); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--bd);
}
.ared-comp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ared-comp-id-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 4px;
  background: var(--bd); color: var(--g);
}
.ared-comp-label { font-size: 12px; font-weight: 700; flex: 1; margin: 0 10px; }
.ared-comp-score { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; }
.ared-comp-bar { height: 5px; background: var(--bg4); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.ared-comp-fill { height: 100%; border-radius: 3px; transition: width .8s ease; }
.ared-comp-fb { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* Feedbacks */
.ared-feedback-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.ared-feed-item {
  font-size: 12px; padding: 7px 12px;
  background: rgba(255,68,68,.06);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  margin-bottom: 5px; line-height: 1.5;
}
.ared-feed-item.ok { background: rgba(0,255,65,.06); border-left-color: var(--g); }

/* ═══════════════════════════════════════════
   TAB TEMAS
═══════════════════════════════════════════ */
.ared-temas-section { margin-bottom: 48px; }
.ared-section-header { margin-bottom: 24px; }
.ared-section-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
  margin-bottom: 10px;
}
.ared-section-badge.previsao { background: rgba(250,204,21,.12); color: #facc15; border: 1px solid rgba(250,204,21,.25); }
.ared-section-badge.historico { background: rgba(68,170,255,.12); color: var(--blu); border: 1px solid rgba(68,170,255,.25); }
.ared-section-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; margin: 0 0 6px; }
.ared-section-sub { font-size: 13px; color: var(--muted); }

/* Grid de temas 2026 */
.ared-temas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.ared-tema-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  position: relative;
}
.ared-tema-card:hover {
  border-color: var(--g);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,255,65,.08);
}
.ared-tema-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; color: var(--muted);
  letter-spacing: 2px; margin-bottom: 6px;
}
.ared-tema-card-text { font-size: 13px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.ared-tema-card-eixo { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.ared-tema-card-actions { display: flex; gap: 8px; }
.ared-btn-usar, .ared-btn-copiar {
  padding: 6px 14px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  font-family: 'Syne', sans-serif;
}
.ared-btn-usar {
  background: var(--g); color: #000; border: none;
  flex: 1;
}
.ared-btn-usar:hover { background: var(--g2); }
.ared-btn-copiar {
  background: transparent;
  border: 1px solid var(--bd); color: var(--muted);
}
.ared-btn-copiar:hover { border-color: var(--g); color: var(--g); }
.ared-copiado { color: var(--g) !important; border-color: var(--g) !important; }

/* Timeline histórico */
.ared-timeline { position: relative; }
.ared-timeline::before {
  content: '';
  position: absolute;
  left: 60px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--g), transparent);
  opacity: .2;
}
.ared-tl-item {
  display: flex; gap: 20px;
  margin-bottom: 8px;
  align-items: flex-start;
}
.ared-tl-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; color: var(--g);
  min-width: 60px; text-align: right;
  line-height: 1.2;
  flex-shrink: 0;
}
.ared-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--g); background: var(--bg);
  flex-shrink: 0; margin-top: 5px;
}
.ared-tl-content {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color .2s;
}
.ared-tl-content:hover { border-color: var(--g); }
.ared-tl-tema { font-size: 13px; font-weight: 600; line-height: 1.4; flex: 1; }
.ared-tl-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ared-btn-tl-usar, .ared-btn-tl-cop {
  padding: 5px 12px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  font-family: 'Syne', sans-serif;
  white-space: nowrap;
}
.ared-btn-tl-usar { background: var(--g); color: #000; border: none; }
.ared-btn-tl-usar:hover { background: var(--g2); }
.ared-btn-tl-cop { background: transparent; border: 1px solid var(--bd); color: var(--muted); }
.ared-btn-tl-cop:hover { border-color: var(--g); color: var(--g); }

/* ═══════════════════════════════════════════
   TAB HISTÓRICO
═══════════════════════════════════════════ */
.ared-hist-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ared-hist-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; margin: 0; }
.ared-hist-resumo { font-size: 13px; color: var(--muted); }
.ared-hist-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg2); border: 1px solid var(--bd);
  border-left: 4px solid var(--g);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 10px;
  transition: border-color .2s;
}
.ared-hist-item:hover { border-left-color: var(--g2); border-color: var(--bd2); }
.ared-hist-score {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  flex-shrink: 0;
}
.ared-hist-den { font-size: 10px; opacity: .6; }
.ared-hist-info { flex: 1; }
.ared-hist-titulo { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ared-hist-meta { font-size: 11px; color: var(--muted); }
.ared-hist-comps { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ared-hist-comp { font-size: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--bd); color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.ared-loading { text-align: center; padding: 48px; color: var(--muted); }

/* ═══════════════════════════════════════════
   TAB GUIA
═══════════════════════════════════════════ */
.ared-guia-hero { margin-bottom: 28px; }
.ared-guia-hero h2 { font-family: 'Bebas Neue', sans-serif; font-size: 38px; margin: 0 0 6px; }
.ared-guia-hero p { font-size: 14px; color: var(--muted); }

.ared-accordion {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ared-accordion summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px; font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color .2s;
}
.ared-accordion summary:hover { color: var(--g); }
.ared-accordion summary::after { content: '▸'; font-size: 12px; color: var(--muted); transition: transform .2s; }
.ared-accordion[open] summary::after { transform: rotate(90deg); }
.ared-accordion-body { padding: 0 20px 20px; border-top: 1px solid var(--bd); padding-top: 16px; }

/* Estrutura */
.ared-estrutura-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ared-est-card {
  border-left: 3px solid var(--c);
  background: var(--bg3); border-radius: 8px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.ared-est-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; color: var(--c); line-height: 1; flex-shrink: 0;
}
.ared-est-card strong { font-size: 13px; display: block; margin-bottom: 4px; }
.ared-est-card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Competências guia */
.ared-comp-guia {
  display: flex; gap: 14px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--bd);
}
.ared-comp-guia:last-child { border-bottom: none; margin-bottom: 0; }
.ared-comp-id {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; color: var(--g); min-width: 30px; flex-shrink: 0;
}
.ared-comp-guia strong { font-size: 13px; display: block; margin-bottom: 4px; }
.ared-comp-guia p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Conectivos */
.ared-conect-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.ared-conect-grid > div { background: var(--bg3); border-radius: 8px; padding: 12px; }
.ared-conect-grid strong { font-size: 12px; display: block; margin-bottom: 4px; color: var(--g); }
.ared-conect-grid p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.7; }

/* Repertório */
.ared-rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ared-rep-card { background: var(--bg3); border-radius: 8px; padding: 14px; }
.ared-rep-card strong { font-size: 13px; display: block; margin-bottom: 6px; color: var(--g); }
.ared-rep-card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Erros */
.ared-erros-list {}
.ared-erro-item { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.ared-err-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; padding: 2px 8px;
  border-radius: 4px; min-width: 28px; text-align: center;
  background: rgba(255,68,68,.12); color: var(--red); border: 1px solid rgba(255,68,68,.25);
  flex-shrink: 0;
}
.ared-erro-item p { font-size: 13px; margin: 0; line-height: 1.6; }
.ared-erro-item strong { color: var(--txt); }

/* Proposta */
.ared-accordion .ared-proposta-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.ared-prop-item {
  background: var(--bg3); border-radius: 8px; padding: 10px 12px;
}
.ared-prop-item strong { font-size: 11px; display: block; color: var(--g); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.ared-prop-item span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ared-exemplo-proposta {
  background: var(--bg3); border-radius: 8px; padding: 14px;
  font-size: 12px; color: var(--muted); line-height: 1.7;
  border-left: 3px solid var(--g);
}
.ared-exemplo-proposta strong { color: var(--txt); }

/* ═══════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════ */
@media (max-width: 700px) {
  .ared-hero { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .ared-hero-stats { gap: 16px; }
  .ared-hero-title { font-size: 38px; }
  .ared-hero-user { align-items: flex-start; }
  .ared-tab { padding: 16px; }
  .ared-auth-box { padding: 28px 20px; }
  .ared-auth-headline { font-size: 40px; }
  .ared-row2 { grid-template-columns: 1fr; }
  .ared-timeline::before { left: 44px; }
  .ared-tl-year { font-size: 16px; min-width: 44px; }
  .ared-tl-content { flex-wrap: wrap; }
  .ared-tl-actions { width: 100%; }
  .ared-btn-tl-usar, .ared-btn-tl-cop { flex: 1; text-align: center; }
}

/* ═══════════════════════════════════════════
   BARRA DE NAVEGAÇÃO FLUTUANTE — Redação
═══════════════════════════════════════════ */
.ared-nav-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(8,12,8,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.ared-nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  flex-wrap: wrap;
}
.ared-nav-hub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; letter-spacing: 1.5px;
  color: var(--ared-green);
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid var(--ared-bd2, rgba(0,255,65,.22));
  border-radius: 20px;
  white-space: nowrap;
  transition: all .2s;
}
.ared-nav-hub:hover { background: rgba(0,255,65,.1); color: var(--ared-green); }
.ared-nav-tools {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.ared-nav-tool {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  color: var(--ared-muted);
  border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}
.ared-nav-tool:hover { color: var(--ared-txt); border-color: var(--ared-bd); }
.ared-nav-atual {
  color: var(--ared-green) !important;
  border-color: rgba(0,255,65,.22) !important;
  background: rgba(0,255,65,.06);
  cursor: default;
}
.ared-nav-em-breve { opacity: .4; cursor: not-allowed; }
.ared-nav-em-breve:hover { color: var(--ared-muted) !important; border-color: transparent !important; }
.ared-nav-user { font-size: 13px; font-weight: 700; margin-left: auto; color: var(--ared-txt); }
@media(max-width:700px){
  .ared-nav-tools { display: none; }
}
