/* ========== Ranking Real Matcon — design system ========== */
:root {
  --primary: #f97316;
  --primary-dark: #c2410c;
  --primary-light: #fb923c;
  --accent: #fbbf24;
  --bg-dark: #0f172a;
  --bg-deep: #020617;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #94a3b8;
  --line: #e2e8f0;
  --line-dark: #334155;
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(15,23,42,.12);
  --shadow-lg: 0 24px 48px rgba(15,23,42,.18);
  --shadow-glow: 0 0 60px rgba(249,115,22,.35);
  --radius: 14px;
  --radius-sm: 8px;
  --gradient: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ===== Layout ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } .section-tight { padding: 40px 0; } }

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { height: 38px; max-width: 260px; }
.nav-logo.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .nav-logo.logo-light { display: none; }
  .nav-logo.logo-dark { display: inline-block; }
}
@media (max-width: 640px) {
  .nav-logo { height: 32px; max-width: 200px; }
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  padding: 10px 20px;
  border-radius: 99px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(249,115,22,.35);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(249,115,22,.45); text-decoration: none; }
.nav-pill {
  padding: 9px 18px;
  border-radius: 99px;
  background: transparent;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--primary);
  transition: background .15s, color .15s;
}
.nav-pill:hover { background: var(--primary); color: #fff !important; text-decoration: none; }
.nav-mobile-toggle {
  display: none; background: none; border: 0; padding: 8px;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-mobile { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .nav-mobile a { display: block; padding: 12px 0; color: var(--text-soft); font-weight: 500; }
  .nav-mobile .nav-cta, .nav-mobile .nav-pill { display: inline-block; margin: 8px 8px 8px 0; padding: 10px 18px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1f2937 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 50px; }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(249,115,22,.30), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(251,191,36,.18), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.4);
  color: #fdba74;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}
.hero h1 {
  font-size: clamp(28px, 5.5vw, 60px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 24px 0 20px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; line-height: 1.18; margin: 16px 0 14px; }
  .hero p.lead { font-size: 15px; line-height: 1.55; }
  .hero-ctas { gap: 8px; margin-top: 20px; flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { padding: 12px 18px; font-size: 14px; justify-content: center; width: 100%; }
  .hero-card { padding: 18px; border-radius: 14px; }
  .hero-card-title { font-size: 11.5px; }
  .hero-bars { gap: 8px; }
  .bar-name { font-size: 12.5px; }
  .bar-val { font-size: 11.5px; width: 64px; }
  .bar-track { flex: 1.5; }
  .container { padding-left: 16px; padding-right: 16px; }
}
/* Defesa em profundidade: nada deve causar overflow horizontal */
html, body { overflow-x: hidden; max-width: 100%; }
.hero h1 .accent { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #cbd5e1; max-width: 560px; margin: 0; }
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 12px 30px rgba(249,115,22,.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(249,115,22,.55); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.20); }
.btn-ghost:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

.hero-card {
  position: relative;
  background: rgba(15,23,42,.6);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.hero-card-title { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.hero-bars { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-pos {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.bar-pos.gold { background: var(--gradient-gold); color: #0f172a; }
.bar-name { color: #fff; font-weight: 600; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 2; height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.bar-fill {
  height: 100%; background: var(--gradient-gold); border-radius: 99px;
  transform-origin: left; animation: fillBar 1.4s cubic-bezier(.4,0,.2,1) forwards;
  width: var(--w, 100%);
}
.bar-val { color: #fbbf24; font-weight: 700; font-size: 13px; width: 80px; text-align: right; flex-shrink: 0; }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(249,115,22,.4); }
.stat-num { font-size: 36px; font-weight: 900; letter-spacing: -.02em; color: var(--text); }
.stat-num .accent { color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-soft); margin-top: 4px; font-weight: 500; }

/* ===== Section heading ===== */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(249,115,22,.10);
  padding: 6px 14px; border-radius: 99px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 18px 0 16px;
}
.section-title .accent { color: var(--primary); }
.section-sub { color: var(--text-soft); font-size: 17px; }

/* ===== Cards & feature grids ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(20rem 14rem at 100% 0%, rgba(249,115,22,.10), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(249,115,22,.4); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(249,115,22,.30);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.feature-card p { color: var(--text-soft); margin: 0; font-size: 15px; }

/* ===== Methodology timeline ===== */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; gap: 32px; } }
.method-list { display: flex; flex-direction: column; gap: 16px; }
.method-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.method-step:hover { border-color: rgba(249,115,22,.4); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.method-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
  border: 2px solid var(--accent);
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 22px;
  color: var(--primary);
}
.method-step h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.method-step p { margin: 0; color: var(--text-soft); font-size: 14px; }
.method-formula {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--bg-dark);
  color: var(--accent);
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
}

.method-vis {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-dark);
}
.method-vis h4 { color: #fff; margin: 0 0 16px; font-size: 18px; }
.method-vis ul { margin: 0; padding-left: 20px; color: #cbd5e1; font-size: 14px; }
.method-vis li { margin-bottom: 8px; }
.method-vis strong { color: var(--accent); }

/* ===== Comparison ===== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.compare-card.bad { background: #fef2f2; border-color: #fecaca; }
.compare-card.good { background: #ecfdf5; border-color: #a7f3d0; }
.compare-card h4 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.compare-card.bad h4 { color: #b91c1c; }
.compare-card.good h4 { color: #047857; }
.compare-card ul { margin: 0; padding-left: 20px; color: var(--text-soft); }
.compare-card li { margin-bottom: 8px; font-size: 14px; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--gradient);
  border-radius: 24px;
  padding: 56px 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(20rem 14rem at 90% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(20rem 14rem at 10% 100%, rgba(0,0,0,.12), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 900; margin: 0 0 12px; position: relative; }
.cta-banner p { font-size: 17px; opacity: .92; margin: 0 0 28px; position: relative; }
.cta-banner .btn-light { position: relative; }

/* ===== Footer ===== */
.footer { background: var(--bg-deep); color: #94a3b8; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #cbd5e1; font-size: 14px; }
.footer a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { border-top: 1px solid #1e293b; padding-top: 24px; font-size: 13px; text-align: center; }

/* ===== Dashboard / Tables ===== */
.dashboard-shell { background: #f8fafc; min-height: 100vh; padding: 24px 0 80px; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.dash-title { font-size: 28px; font-weight: 900; margin: 0; letter-spacing: -.02em; }
.dash-sub { color: var(--text-soft); font-size: 14px; margin: 4px 0 0; }
.dash-toolbar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .dash-toolbar { grid-template-columns: 1fr; } }

.input, .select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}
.input-search { position: relative; }
.input-search .input { padding-left: 38px; }
.input-search svg { position: absolute; left: 12px; top: 11px; color: var(--text-mute); width: 18px; height: 18px; }

.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; vertical-align: top; }
.tbl thead th {
  background: #f1f5f9;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  white-space: nowrap;
}
.tbl tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
.tbl tbody tr:hover { background: #fff7ed; }
.tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .pos {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f1f5f9; color: var(--text); font-weight: 800; font-size: 13px;
}
.tbl .pos.gold { background: var(--gradient-gold); color: #0f172a; }
.tbl .pos.silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #0f172a; }
.tbl .pos.bronze { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.tbl .empresa { font-weight: 600; }
.tbl .cnpj { font-family: 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--text-soft); }
.tbl .badge {
  display: inline-block;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  background: #f1f5f9; color: var(--text-soft);
  white-space: nowrap;
}
.tbl .badge.pure { background: #dbeafe; color: #1e40af; }
.tbl .badge.multi { background: #fef3c7; color: #92400e; }
.tbl .badge.nicho { background: #ede9fe; color: #5b21b6; }
.tbl .fat { color: var(--primary); font-weight: 700; }

.empty {
  text-align: center; color: var(--text-soft);
  padding: 60px 20px; font-size: 15px;
}

/* ===== Forms / Auth ===== */
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }
.auth-left {
  padding: 56px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(40rem 30rem at 80% 0%, rgba(249,115,22,.30), transparent 60%),
    radial-gradient(30rem 20rem at 20% 100%, rgba(251,191,36,.18), transparent 60%);
  position: relative; overflow: hidden;
}
@media (max-width: 900px) { .auth-left { display: none; } }
.auth-left h2 { font-size: 32px; font-weight: 900; line-height: 1.15; margin: 24px 0 16px; }
.auth-left p { color: #cbd5e1; }
.auth-left ul { list-style: none; padding: 0; margin: 24px 0; }
.auth-left li { padding: 10px 0; color: #fff; font-size: 15px; display: flex; align-items: start; gap: 10px; }
.auth-left li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px;
  background: var(--gradient-gold);
  border-radius: 99px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}
.auth-right {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
}
.auth-card {
  width: 100%; max-width: 440px;
}
.auth-card h1 { font-size: 28px; font-weight: 900; margin: 0 0 8px; letter-spacing: -.02em; }
.auth-card .lead { color: var(--text-soft); margin: 0 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.field-help { font-size: 12px; color: var(--text-mute); margin: 6px 0 0; }
.checkbox-group { display: flex; gap: 16px; }
.radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; transition: all .15s; }
.radio input { accent-color: var(--primary); }
.radio:has(input:checked) { border-color: var(--primary); background: rgba(249,115,22,.06); color: var(--primary); font-weight: 600; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-soft); }

/* OTP boxes */
.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 16px 0; }
.otp-row input {
  text-align: center;
  font-size: 24px; font-weight: 800;
  padding: 14px 0;
  border-radius: 12px;
  border: 2px solid var(--line);
}
.otp-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.18); }

.alert {
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px;
}
.alert-info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s ease-out backwards; }
.fade-up.d1 { animation-delay: .15s; }
.fade-up.d2 { animation-delay: .30s; }
.fade-up.d3 { animation-delay: .45s; }
.fade-up.d4 { animation-delay: .60s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 6s ease-in-out infinite; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-mute { color: var(--text-mute); }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.mt-32 { margin-top: 32px; }
.hidden { display: none !important; }
.spacer-32 { height: 32px; }

/* ========== AUTO DARK MODE (segue prefers-color-scheme do sistema) ========== */
@media (prefers-color-scheme: dark) {
  body {
    background: #0a1020;
    color: #e2e8f0;
  }
  .nav { background: rgba(15, 23, 42, 0.85); border-bottom-color: rgba(148, 163, 184, .15); }
  .nav-links a { color: #cbd5e1; }
  .nav-links a:hover { color: #fb923c; }
  .stat-card, .compare-card, .method-step, .feature-card, .table-card, .dash-toolbar {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
  }
  .stat-card .stat-num { color: #fff !important; }
  .stat-card .stat-label { color: #94a3b8 !important; }
  .section[style*="background:#f8fafc"], .section[style*="background: #f8fafc"] {
    background: #0f172a !important;
  }
  .section-title, .compare-card h4, .feature-card h3, .method-step h4 { color: #fff !important; }
  .section-sub, .compare-card li, .feature-card p, .method-step p { color: #cbd5e1 !important; }
  .footer { background: #020617 !important; }
  .tbl thead th { background: #0f172a; color: #cbd5e1; border-color: #334155; }
  .tbl tbody tr { border-color: #334155; }
  .tbl tbody td { color: #e2e8f0; }
  .input, .select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], textarea, select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
  }
  .badge { color: #fff; }
  /* preservar páginas que JÁ são dark (estados.html, admin.html, contestar.html, solicitar.html) */
}

/* Botão Compartilhar */
.share-btn {
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 100%);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.15s;
}
.share-btn:hover { transform: translateY(-1px); text-decoration: none; }
.share-menu {
  position: absolute;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.share-menu.open { display: flex; }
.share-menu a {
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}
.share-menu a:hover { background: #334155; color: #fff; text-decoration: none; }

/* Comentários */
.comments-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
  color: #e2e8f0;
}
.comments-section h3 { color: #fff; margin-top: 0; }
.comment-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.comment-card .author { color: #fb923c; font-weight: 600; font-size: 13px; }
.comment-card .meta { color: #94a3b8; font-size: 11px; margin-left: 8px; }
.comment-card .body { color: #cbd5e1; font-size: 14px; line-height: 1.5; margin-top: 6px; white-space: pre-wrap; }
.comment-stars { color: #fbbf24; letter-spacing: 2px; font-size: 14px; }
