/* ============================================================
   INDEPENDÊNCIA DIGITAL — app.css
   Dark #0c0c10 · Laranja #FF8C00 · Syne + Inter
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0c0c10;
  --surface:  #13131a;
  --card:     #1a1a24;
  --card2:    #20202e;
  --input:    #1e1e2a;
  --orange:   #FF8C00;
  --orange-d: rgba(255,140,0,0.10);
  --orange-r: rgba(255,140,0,0.28);
  --white:    #f0ede8;
  --muted:    rgba(240,237,232,0.55);
  --muted2:   rgba(240,237,232,0.28);
  --green:    #4ade80;
  --blue:     #5ba3f5;
  --red:      #f87171;
  --border:   rgba(255,255,255,0.07);
  --display:  'Syne', sans-serif;
  --body:     'Inter', sans-serif;
  --radius:   10px;
  --max:      1100px;
  --narrow:   760px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a    { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img  { max-width: 100%; display: block; }
code { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .9em; }

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 2px solid var(--orange-r);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: var(--white); text-decoration: none;
}
.topbar-logo:hover { text-decoration: none; }
.logo-ia {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--orange); color: #000;
  font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-nome { display: block; }
.topbar-nav  { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 13px; font-weight: 500;
  color: var(--muted); padding: 6px 12px;
  border-radius: 6px; transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-link:hover { background: var(--orange-d); color: var(--white); text-decoration: none; }
.nav-logout:hover { background: rgba(248,113,113,.10); color: var(--red); }
.nav-sep  { color: var(--muted2); }
.nav-nome { font-size: 13px; color: var(--muted2); padding: 0 8px; }

/* ── PROGRESS BAR ──────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--surface); height: 5px;
  position: relative; overflow: hidden;
}
.progress-bar-fill {
  background: var(--orange); height: 100%;
  transition: width .4s ease;
}
.progress-bar-label {
  position: absolute; right: 16px; top: 7px;
  font-size: 11px; font-weight: 600; color: var(--muted2);
  text-transform: uppercase; letter-spacing: .8px;
}

/* ── FLASH ─────────────────────────────────────────────────── */
.flash {
  text-align: center; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-bottom: 1px solid var(--border);
}
.flash-sucesso { background: rgba(74,222,128,.10); color: var(--green); }
.flash-erro    { background: rgba(248,113,113,.10); color: var(--red); }
.flash-info    { background: var(--orange-d); color: var(--orange); }

/* ── LAYOUT ────────────────────────────────────────────────── */
.main-content { min-height: calc(100vh - 120px); padding: 36px 0 80px; }
.container    { max-width: var(--max);    margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
.container--wide   { max-width: 1200px;  margin: 0 auto; padding: 0 24px; }

/* ── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-bottom: 28px;
}
.page-header h1 {
  font-family: var(--display); font-size: clamp(22px,4vw,32px);
  font-weight: 800; letter-spacing: -.5px; line-height: 1.1;
}
.page-header h1 span { color: var(--orange); }
.back-link {
  display: block; font-size: 13px; color: var(--muted);
  margin-bottom: 8px; text-decoration: none;
}
.back-link:hover { color: var(--white); text-decoration: none; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 22px; margin-bottom: 20px;
}
.card-title {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--orange); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.card-title::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: var(--orange); flex-shrink: 0;
}

/* ── BOTÕES ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: var(--radius); border: none;
  cursor: pointer; text-decoration: none; transition: all .15s;
  line-height: 1.3; white-space: nowrap; min-height: 40px;
}
.btn:hover   { text-decoration: none; }
.btn:active  { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: #e07a00; box-shadow: 0 6px 24px rgba(255,140,0,.35); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.18);
}
.btn-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); }
.btn-ghost {
  background: var(--orange-d); color: var(--orange);
  border: 1px solid var(--orange-r);
}
.btn-ghost:hover { background: rgba(255,140,0,.18); }
.btn-sm   { font-size: 12px; padding: 7px 14px; min-height: 32px; }
.btn-full { width: 100%; }

/* ── ALERTAS ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.alert-success { background: rgba(74,222,128,.10);  border: 1px solid rgba(74,222,128,.25); color: var(--green); }
.alert-error   { background: rgba(248,113,113,.10); border: 1px solid rgba(248,113,113,.25); color: var(--red); }
.alert-info    { background: var(--orange-d); border: 1px solid var(--orange-r); color: var(--orange); }

/* ── FORMULÁRIOS ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 7px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--orange); }

input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="date"], input[type="color"],
input[type="number"], input[type="url"], input[type="tel"],
textarea, select {
  width: 100%; background: var(--input);
  border: 1.5px solid rgba(255,255,255,.10);
  border-radius: var(--radius); padding: 11px 14px;
  font-family: var(--body); font-size: 15px; color: var(--white);
  outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(240,237,232,.25); }
input:focus, textarea:focus, select:focus { border-color: var(--orange); }
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
select   { cursor: pointer; }
select option { background: var(--card); color: var(--white); }
input[type="color"] { padding: 4px; height: 42px; cursor: pointer; }

.field-hint { display: block; font-size: 12px; color: var(--muted2); margin-top: 5px; line-height: 1.5; }

.form-check-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted); cursor: pointer;
}
.form-check input { width: auto; min-width: unset; }

.form-actions {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: space-between; gap: 12px;
  padding: 20px 22px; background: var(--card);
  border-radius: 14px; border: 1px solid var(--border);
}
.form-actions__left  { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions__right { display: flex; align-items: center; gap: 12px; }

.save-status {
  font-size: 13px; color: var(--green);
  display: flex; align-items: center; gap: 6px;
}

/* ── CALLOUT ────────────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--orange);
  background: var(--orange-d);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; font-size: 14px; color: var(--white);
  line-height: 1.65; margin-bottom: 24px;
}

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--card); border: 1px solid var(--orange-r);
  border-radius: 16px; padding: 28px 24px;
  width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto;
}
.modal__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px; gap: 12px;
}
.modal__header h2 {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  color: var(--orange);
}
.modal__close {
  background: none; border: none; color: var(--muted2);
  font-size: 20px; cursor: pointer; line-height: 1; padding: 0;
  flex-shrink: 0;
}
.modal__close:hover { color: var(--white); }
.modal__desc   { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.prompt-box {
  background: #08080e; border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 16px;
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 13px; line-height: 1.75;
  color: rgba(240,237,232,.82); white-space: pre-wrap; word-break: break-word;
  max-height: 360px; overflow-y: auto; margin-bottom: 12px;
}

.copy-feedback[hidden] { display: none; }
.copy-feedback {
  font-size: 12px; color: var(--green);
  display: flex; align-items: center; gap: 5px;
}

/* ── LOGIN ──────────────────────────────────────────────────── */
.body-login { background: var(--bg); }
.login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center; padding: 24px;
}
.login-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 32px;
  width: 100%; max-width: 420px;
}
.login-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 18px; font-weight: 800;
  color: var(--white); margin-bottom: 28px; text-decoration: none;
}
.login-logo .logo-ia { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.login-title { font-family: var(--display); font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.login-foot  { font-size: 12px; color: var(--muted2); text-align: center; margin-top: 20px; line-height: 1.6; }
.login-foot a { color: var(--orange); }

/* ── DASHBOARD ALUNO ────────────────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .15s;
  text-decoration: none; color: var(--white);
}
.product-card:hover { border-color: var(--orange-r); transform: translateY(-2px); text-decoration: none; }
.product-card--concluido { border-color: rgba(74,222,128,.25); }
.product-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.product-card__body h2 { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.product-card__body p  { font-size: 13px; color: var(--muted); line-height: 1.5; }
.product-card__footer  { margin-top: auto; }
.product-progress__track {
  background: rgba(255,255,255,.08); border-radius: 999px; height: 5px; margin-bottom: 6px;
}
.product-progress__fill { height: 100%; border-radius: 999px; transition: width .4s; }
.product-progress__label { font-size: 12px; color: var(--muted2); }
.product-card__status { font-size: 12px; font-weight: 600; color: var(--orange); display: block; margin-top: 8px; }
.product-card__status--concluido { color: var(--green); }

/* ── PRODUTO (11 seções) ────────────────────────────────────── */
.produto-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.produto-header__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  flex-shrink: 0;
}
.produto-header__info h1 { font-family: var(--display); font-size: clamp(20px,4vw,28px); font-weight: 800; }
.produto-header__info p  { font-size: 14px; color: var(--muted); margin-top: 4px; }
.overview-progress {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px;
}
.overview-progress__top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.overview-progress__top span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.overview-progress__top strong { font-size: 22px; font-weight: 800; color: var(--orange); }
.overview-progress__track {
  background: rgba(255,255,255,.08); border-radius: 999px; height: 6px; margin-bottom: 6px;
}
.overview-progress__fill { height: 100%; border-radius: 999px; transition: width .4s; }
.overview-progress p { font-size: 12px; color: var(--muted2); }

.secoes-lista { display: flex; flex-direction: column; gap: 8px; }
.secao-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .2s;
}
.secao-row:not(.secao-row--bloqueada):hover { border-color: var(--orange-r); }
.secao-row--concluida { border-color: rgba(74,222,128,.20); }
.secao-row--bloqueada { opacity: .45; }
.secao-row__num {
  font-family: var(--display); font-size: 22px; font-weight: 900;
  color: var(--orange); opacity: .45; min-width: 38px;
}
.secao-row__info { flex: 1; }
.secao-row__title { font-size: 14px; font-weight: 700; color: var(--white); }
.secao-row__desc  { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.secao-row__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.secao-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.secao-status--ok       { color: var(--green); }
.secao-status--lock     { color: var(--muted2); }
.secao-status--progress { color: var(--orange); }
.secao-status--new      { color: var(--blue); }

/* ── SEÇÃO (formulário) ─────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.secao-header { margin-bottom: 24px; }
.secao-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid; margin-bottom: 12px;
}
.secao-header h1 {
  font-family: var(--display); font-size: clamp(22px,5vw,32px);
  font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px;
}
.secao-descricao { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 640px; }

.btn-sugestoes {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--orange);
  display: flex; align-items: center; gap: 5px; padding: 2px 0;
}
.btn-sugestoes:hover { text-decoration: underline; }

.sugestoes-panel {
  background: var(--card2); border: 1px solid var(--orange-r);
  border-radius: var(--radius); padding: 14px; margin-top: 8px;
}
.sugestoes-panel__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 13px; color: var(--muted);
}
.sugestoes-panel__header strong { color: var(--white); }
.sugestoes-panel__header button {
  background: none; border: none; cursor: pointer; color: var(--muted2); font-size: 16px;
}
.sugestoes-lista { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sugestao-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  width: 100%; text-align: left; background: var(--input);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 10px 12px; cursor: pointer; font-size: 13px;
  color: rgba(240,237,232,.85); transition: border-color .15s, background .15s;
  font-family: var(--body);
}
.sugestao-item:hover { border-color: var(--orange-r); background: var(--orange-d); color: var(--white); }
.sug-nota { font-size: 11px; color: var(--orange); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

.secao-nav {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}

/* ── ADMIN ──────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
}
.stat-card__val   { font-family: var(--display); font-size: 34px; font-weight: 900; color: var(--orange); line-height: 1; }
.stat-card__label { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.admin-shortcuts {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.shortcut-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: all .15s;
}
.shortcut-btn:hover { border-color: var(--orange-r); color: var(--white); text-decoration: none; }
.shortcut-btn--primary { background: var(--orange-d); border-color: var(--orange-r); color: var(--orange); }

.admin-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

/* ── TABLE ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table       { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; padding: 9px 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted2);
  border-bottom: 1px solid var(--border);
}
td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--muted); }
tr:last-child td { border: none; }
tr:hover td { background: rgba(255,255,255,.02); }
.empty-row  { text-align: center; color: var(--muted2); padding: 32px !important; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.badge-ok   { background: rgba(74,222,128,.14);  color: var(--green); }
.badge-off  { background: rgba(248,113,113,.14); color: var(--red); }
.badge-info { background: rgba(91,163,245,.14);  color: var(--blue); }
.badge-warn { background: var(--orange-d); color: var(--orange); }

/* ── BUSCA / FILTROS ────────────────────────────────────────── */
.search-form, .filters-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; margin-bottom: 20px;
}
.search-form input[type="search"] { max-width: 300px; }

/* ── TOKEN COPIAR ───────────────────────────────────────────── */
.token-code { font-size: 12px; color: var(--orange); }
.btn-copy {
  background: none; border: none; cursor: pointer;
  font-size: 14px; padding: 2px 4px; color: var(--muted2);
}
.btn-copy:hover { color: var(--orange); }

/* ── EDITOR ─────────────────────────────────────────────────── */
.editor-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.editor-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; position: sticky; top: 76px; }
.editor-sidebar__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted2); padding: 0 4px; margin-bottom: 8px; }
.editor-prof-item, .editor-secao-item {
  display: block; padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: background .15s, color .15s; margin-bottom: 2px;
}
.editor-prof-item:hover, .editor-secao-item:hover { background: var(--orange-d); color: var(--white); text-decoration: none; }
.editor-prof-item.active, .editor-secao-item.active { background: var(--orange-d); color: var(--orange); font-weight: 700; }
.editor-secao-num { display: inline-block; width: 22px; font-size: 11px; color: var(--muted2); }
.editor-content {}

.campo-detail { background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.campo-detail > summary { cursor: pointer; padding: 12px 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; list-style: none; }
.campo-detail > summary::-webkit-details-marker { display: none; }
.campo-detail[open] > summary { border-bottom: 1px solid var(--border); }
.campo-detail__ordem { font-family: monospace; font-size: 11px; color: var(--muted2); min-width: 18px; }
.campo-form { padding: 16px; }

/* ── ADMIN PRODUTOS ─────────────────────────────────────────── */
.products-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }
.prod-admin-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px; }
.prod-admin-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prod-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.prod-admin-card__stats { font-size: 13px; color: var(--muted); display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.prod-admin-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── RELATÓRIOS ──────────────────────────────────────────────── */
.relatorio-destaque { text-align: center; padding: 32px 0; margin-bottom: 24px; }
.relatorio-destaque__val { font-family: var(--display); font-size: clamp(52px,10vw,88px); font-weight: 900; color: var(--orange); line-height: 1; letter-spacing: -3px; }
.relatorio-destaque__label { font-size: 15px; color: var(--muted); margin-top: 8px; }
.relatorio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.relatorio-bar-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.relatorio-bar-row:last-child { border: none; }
.relatorio-bar-label { font-size: 13px; color: var(--muted); min-width: 100px; max-width: 140px; }
.relatorio-bar { flex: 1; background: rgba(255,255,255,.06); border-radius: 999px; height: 8px; overflow: hidden; }
.relatorio-bar__fill { background: var(--orange); height: 100%; border-radius: 999px; transition: width .4s; min-width: 2px; }
.relatorio-bar-val { font-size: 13px; font-weight: 700; color: var(--white); min-width: 24px; text-align: right; }
.chart-wrap { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; overflow-x: auto; }
.chart-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 32px; flex: 1; }
.chart-col__bar { background: var(--orange); border-radius: 4px 4px 0 0; width: 100%; min-height: 4px; transition: height .4s; }
.chart-col__val { font-size: 10px; color: var(--orange); font-weight: 700; }
.chart-col__label { font-size: 10px; color: var(--muted2); }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h2 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.empty-state p { font-size: 14px; line-height: 1.65; max-width: 400px; margin: 0 auto; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.app-footer { border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; font-size: 12px; color: var(--muted2); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { position: static; }
  .admin-two-col  { grid-template-columns: 1fr; }
  .relatorio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-content  { padding: 24px 0 60px; }
  .container, .container--narrow, .container--wide { padding: 0 16px; }
  .form-row      { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .secao-row__right { flex-direction: column; align-items: flex-end; }
  .form-actions  { flex-direction: column; align-items: stretch; }
  .form-actions__left, .form-actions__right { width: 100%; justify-content: stretch; }
  .login-box     { padding: 28px 20px; }
  .logo-nome     { display: none; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── TOPBAR ADMIN MENU ───────────────────────────────────────── */
.topbar-nav--admin {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.topbar-nav--admin .nav-link {
  font-size: 12px;
  padding: 5px 10px;
}
.nav-link--active {
  background: var(--orange-d) !important;
  color: var(--orange) !important;
  border-radius: 6px;
}

/* ── ADMIN CARD PADDING FIX ─────────────────────────────────── */
.card.card--table { padding: 0; overflow: hidden; }
