/* ============================================================
   EZbrew Diagnóstico — CSS Principal
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #F4A832;
  --primary-dk: #D4882A;
  --primary-lt: #FEF3DC;
  --dark:       #1A1A2E;
  --dark-2:     #16213E;
  --text:       #2D2D2D;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
  --bg:         #F9FAFB;
  --white:      #FFFFFF;
  --success:    #10B981;
  --error:      #EF4444;
  --whatsapp:   #25D366;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Tipografia ───────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem);   font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.highlight { color: var(--primary); }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.mt-4 { margin-top: 2rem; }

/* ── Botões ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); text-decoration: none; }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); text-decoration: none; }

.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover { background: #c0392b; text-decoration: none; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #128C7E; text-decoration: none; }

.btn-large { padding: .9rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full  { width: 100%; justify-content: center; }
.btn-sm    { padding: .4rem .8rem; font-size: .8rem; }
.btn-xs    { padding: .3rem .6rem; font-size: .75rem; }

.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-arrow { font-size: 1.1em; }

/* ── Header público ───────────────────────────────────────── */
.site-header {
  background: var(--dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.logo-ez   { color: var(--primary); }
.logo-brew { color: var(--white); }

.header-tagline { color: #9CA3AF; font-size: .85rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

/* ── Página: Start ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: var(--white);
}

.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(244,168,50,.15);
  border: 1px solid rgba(244,168,50,.3);
  color: var(--primary);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title { color: var(--white); margin-bottom: 1.2rem; }
.hero-subtitle { color: #D1D5DB; font-size: 1.1rem; margin-bottom: 2rem; }

.benefits-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.benefit {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  color: #D1D5DB;
}

/* ── Formulário de início ─────────────────────────────────── */
.start-form-section { padding: 3rem 0 2rem; }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.start-card { max-width: 560px; margin: 0 auto; }
.card-title { font-size: 1.4rem; margin-bottom: .4rem; }
.card-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-group label { font-size: .9rem; font-weight: 600; color: var(--text); }

.required-star { color: var(--error); margin-left: 2px; }

.form-group input:required:user-invalid,
.form-group input.input-error {
  border-color: var(--error);
  background: #fff8f8;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .2s;
  width: 100%;
  color: var(--text);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row { display: flex; gap: 1rem; }
.form-row.two-cols > * { flex: 1; }
.form-row.three-cols > * { flex: 1; }

.form-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
  margin-top: 1rem;
}

/* ── Chips de produtos ────────────────────────────────────── */
.products-preview { text-align: center; margin-top: 2rem; }
.products-preview-title { color: var(--text-muted); font-size: .85rem; margin-bottom: .75rem; }
.products-chips { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.chip {
  background: var(--primary-lt);
  color: var(--dark);
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(244,168,50,.3);
}

/* ── Diagnóstico: Pergunta ────────────────────────────────── */
.diagnostic-wrapper { padding: 2.5rem 0; min-height: calc(100vh - 200px); }

.progress-section { margin-bottom: 2rem; }
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.progress-category { font-weight: 600; color: var(--primary); }
.progress-counter  { color: var(--text-muted); }

.progress-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dk));
  border-radius: 999px;
  transition: width .5s ease;
}

/* ── Question Card ────────────────────────────────────────── */
.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.question-header { margin-bottom: 2rem; }
.question-text { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; margin-bottom: .6rem; }
.question-help { color: var(--text-muted); font-size: .9rem; }

/* ── Respostas ────────────────────────────────────────────── */
.answers-grid {
  display: grid;
  gap: .85rem;
  margin-bottom: 2rem;
}

.answers-two   { grid-template-columns: 1fr 1fr; }
.answers-three { grid-template-columns: 1fr 1fr 1fr; }
.answers-many  { grid-template-columns: 1fr 1fr; }

@media (max-width: 600px) {
  .answers-two,
  .answers-three,
  .answers-many { grid-template-columns: 1fr; }
}

.answer-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: all .2s;
}

.answer-btn:hover {
  border-color: var(--primary);
  background: var(--primary-lt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.answer-btn.selected {
  border-color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(244,168,50,.2);
}

.answer-icon { font-size: 1.5rem; margin-bottom: .2rem; }
.answer-text { font-weight: 600; font-size: .95rem; color: var(--text); }
.answer-desc { font-size: .8rem; color: var(--text-muted); }

.answer-check {
  position: absolute;
  top: .6rem;
  right: .8rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.answer-btn.selected .answer-check { opacity: 1; }

.question-actions { display: flex; justify-content: flex-end; }

/* ── Resultado ────────────────────────────────────────────── */
.result-wrapper { padding: 2.5rem 0; }

.result-header { text-align: center; margin-bottom: 2.5rem; }
.result-badge {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary-dk);
  border: 1px solid rgba(244,168,50,.3);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.result-title { margin-bottom: .5rem; }
.result-experience { color: var(--text-muted); font-size: .95rem; }

/* ── Card produto principal ───────────────────────────────── */
.primary-product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 2px solid var(--primary);
}

.primary-badge {
  background: var(--primary);
  color: var(--dark);
  text-align: center;
  padding: .5rem;
  font-weight: 700;
  font-size: .9rem;
}

.primary-product-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (max-width: 600px) {
  .primary-product-inner { grid-template-columns: 1fr; text-align: center; }
}

.primary-product-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.product-emoji { font-size: 5rem; line-height: 1; }

.primary-product-name   { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.primary-product-tagline { color: var(--primary-dk); font-weight: 600; margin-bottom: .8rem; }
.primary-product-desc   { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.2rem; line-height: 1.7; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.spec-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
}
.spec-key { display: block; font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.spec-val { display: block; font-size: .85rem; font-weight: 600; }

.price-range {
  background: var(--primary-lt);
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1.2rem;
}

.primary-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Score bar ────────────────────────────────────────────── */
.score-bar-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.score-label { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.score-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.score-bar-fill  { height: 100%; background: var(--primary); border-radius: 999px; transition: width 1s ease; }
.score-value { font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* ── Outros produtos ──────────────────────────────────────── */
.other-products-section { margin-bottom: 2rem; }
.other-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-muted); }

.other-products-grid { display: flex; flex-direction: column; gap: .7rem; }

.other-product-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.other-emoji { font-size: 2rem; }
.other-info  { flex: 1; }
.other-info strong { display: block; font-size: .95rem; }
.other-info span   { font-size: .8rem; color: var(--text-muted); }

.other-score { text-align: right; }
.mini-bar-track { width: 80px; height: 4px; background: var(--border); border-radius: 999px; margin-bottom: 2px; }
.mini-bar-fill  { height: 100%; background: var(--primary); border-radius: 999px; }

/* ── Resumo das respostas ─────────────────────────────────── */
.summary-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.summary-title { margin-bottom: 1rem; color: var(--text-muted); }
.summary-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.summary-item  { border-left: 3px solid var(--primary); padding-left: .8rem; }
.summary-question { display: block; font-size: .75rem; color: var(--text-muted); }
.summary-answer   { display: block; font-weight: 600; font-size: .9rem; }

.final-actions { text-align: center; margin-top: 2rem; }
.no-result { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  padding: .85rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: .9rem;
}
.flash-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--success); }
.flash-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--error); }
.flash-info    { background: var(--primary-lt); color: var(--dark); border-left: 4px solid var(--primary); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-active      { background: #D1FAE5; color: #065F46; }
.badge-inactive    { background: #F3F4F6; color: #6B7280; }
.badge-completed   { background: #D1FAE5; color: #065F46; }
.badge-in_progress { background: #FEF3C7; color: #92400E; }
.badge-abandoned   { background: #FEE2E2; color: #991B1B; }
.badge-category    { background: #EEF2FF; color: #3730A3; }

/* ── Painel Admin Layout ──────────────────────────────────── */
.admin-body { background: #F1F5F9; }

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.admin-sidebar {
  width: 240px;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 1.5rem 1.2rem 1rem;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: .4rem;
}

.sidebar-admin-tag {
  font-size: .65rem;
  background: var(--primary);
  color: var(--dark);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: .5rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1.2rem;
  color: #9CA3AF;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.nav-item:hover { background: rgba(255,255,255,.05); color: var(--white); text-decoration: none; }
.nav-item.active { background: rgba(244,168,50,.1); color: var(--primary); border-left-color: var(--primary); }
.nav-icon { font-size: 1rem; width: 1.2rem; }

.sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logout-link { color: #9CA3AF; font-size: .8rem; }
.logout-link:hover { color: var(--white); }

/* ── Admin Main ───────────────────────────────────────────── */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--white);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-page-title { font-size: 1.2rem; font-weight: 700; }

.admin-content { padding: 2rem; flex: 1; }

/* ── Admin Cards ──────────────────────────────────────────── */
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.admin-card h2, .admin-card h3 { margin-bottom: 1.2rem; }

.admin-tip {
  background: var(--primary-lt);
  border-left: 4px solid var(--primary);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

/* ── Stats ────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon { font-size: 2rem; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { display: block; font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Product stats bar ────────────────────────────────────── */
.admin-section { margin-bottom: 2rem; }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

.products-stats { display: flex; flex-direction: column; gap: .75rem; }
.product-stat-row {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-sm);
}
.product-stat-name  { font-size: .9rem; font-weight: 600; }
.product-stat-bar-track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.product-stat-bar-fill  { height: 100%; background: var(--primary); border-radius: 999px; }
.product-stat-count { font-size: .9rem; font-weight: 700; text-align: right; }

/* ── Tabela admin ─────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .875rem;
}

.admin-table th {
  background: var(--bg);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.admin-table .row-inactive td { opacity: .5; }

.actions-cell { display: flex; gap: .4rem; align-items: center; }
.empty-state { text-align: center; color: var(--text-muted); padding: 2rem; font-style: italic; }

/* ── Products admin cards ─────────────────────────────────── */
.products-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }

.product-admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.product-admin-card.inactive { opacity: .6; }

.product-admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.product-admin-header h3 { font-size: 1rem; }
.product-admin-tagline { color: var(--text-muted); font-size: .85rem; margin-bottom: .75rem; }
.product-admin-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-admin-actions { display: flex; gap: .5rem; }

/* ── Formulários admin ────────────────────────────────────── */
.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.back-link { display: inline-block; color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.back-link:hover { color: var(--text); }

/* ── Scoring section ──────────────────────────────────────── */
.scoring-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.scoring-title { margin-bottom: .4rem; }
.scoring-hint  { color: var(--text-muted); font-size: .85rem; margin-bottom: 1rem; }

.scoring-grid { display: flex; flex-direction: column; gap: .6rem; }
.scoring-row { display: flex; align-items: center; gap: 1rem; }
.scoring-label { flex: 1; font-size: .9rem; font-weight: 500; }
.scoring-input { width: 80px; padding: .4rem .6rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; text-align: center; }
.scoring-input:focus { outline: none; border-color: var(--primary); }
.scoring-unit  { font-size: .8rem; color: var(--text-muted); }

/* ── Detail grid ──────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-list { font-size: .9rem; }
.detail-list dt { font-weight: 600; color: var(--text-muted); font-size: .75rem; text-transform: uppercase; margin-top: .8rem; }
.detail-list dd { margin-left: 0; }

/* ── Results list ─────────────────────────────────────────── */
.results-list { display: flex; flex-direction: column; gap: .6rem; }
.result-row { display: flex; align-items: center; gap .8rem; padding: .6rem 1rem; background: var(--bg); border-radius: var(--radius-sm); gap: .8rem; }
.result-row.primary { background: var(--primary-lt); border: 1px solid rgba(244,168,50,.3); }
.result-rank { font-weight: 800; font-size: 1rem; min-width: 1.5rem; }
.result-name { flex: 1; font-weight: 600; font-size: .9rem; }
.result-score { font-size: .8rem; color: var(--text-muted); }

/* ── Paginação ────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.page-btn {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
}
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--dark); font-weight: 700; }
.page-btn:hover  { border-color: var(--primary); text-decoration: none; }

/* ── Login ────────────────────────────────────────────────── */
.admin-login-body {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-wrapper { width: 100%; max-width: 400px; padding: 1rem; }
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo p { color: var(--text-muted); font-size: .9rem; margin-top: .3rem; }

.total-count { font-size: .85rem; color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { padding: 1rem; }
  .product-stat-row { grid-template-columns: 1fr auto; }
  .product-stat-bar-track { display: none; }
  .form-row.two-cols,
  .form-row.three-cols { flex-direction: column; }
}
