/* VAG Brasil — design system (2026) */

:root {
  --bg: #080c12;
  --bg-elevated: #0f141c;
  --surface: rgba(22, 30, 42, 0.72);
  --surface-solid: #161e2a;
  --surface-hover: #1c2736;
  --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f0f4f8;
  --muted: #8b9cb0;
  --accent: #5eb8f0;
  --accent-deep: #2d7ab8;
  --accent-glow: rgba(94, 184, 240, 0.35);
  --vag-navy: #002a5c;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.14);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --pill: 999px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(94, 184, 240, 0.12), 0 12px 40px rgba(94, 184, 240, 0.08);
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 122, 184, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(94, 184, 240, 0.06), transparent);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #9fd4ff; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.page { padding: 32px 0 56px; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.mono { font-family: var(--mono); font-size: 0.875em; }
.hidden { display: none !important; }

.prose { font-size: 0.95rem; line-height: 1.7; color: var(--muted); max-width: 42rem; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--text); font-weight: 600; }

.back-link { font-size: 0.875rem; margin: 0 0 20px; }
.back-link a { color: var(--muted); }
.back-link a:hover { color: var(--accent); }

h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 12px; }

.page-head { margin-bottom: 28px; }
.page-head .muted { margin-top: 6px; font-size: 0.9375rem; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.75) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.logo:hover { color: var(--text); text-decoration: none; }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #e8eef5 100%);
  color: var(--vag-navy);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.logo-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.header-github {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  backdrop-filter: blur(8px);
}
.header-github:hover {
  background: rgba(94, 184, 240, 0.12);
  border-color: rgba(94, 184, 240, 0.35);
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border: none;
  border-radius: var(--pill);
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Nav bar — pills */
.nav-bar {
  padding-bottom: 12px;
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.nav-bar-inner::-webkit-scrollbar { display: none; }
.nav-bar-wrap {
  position: relative;
  overflow: visible;
}
.nav-bar { overflow: visible; }
.site-header { overflow: visible; z-index: 200; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: all 0.22s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: var(--glass);
  border-color: var(--line);
  text-decoration: none;
}
.nav-link.active {
  color: var(--text);
  background: rgba(94, 184, 240, 0.14);
  border-color: rgba(94, 184, 240, 0.3);
  box-shadow: 0 0 20px rgba(94, 184, 240, 0.1);
}

.nav-soon { font-size: 0.6rem; opacity: 0.7; margin-left: 2px; }
.nav-item { position: relative; flex-shrink: 0; }
.nav-split {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--pill);
  border: 1px solid transparent;
}
.nav-item.is-open .nav-split,
.nav-split:has(.nav-link.active) {
  background: var(--glass);
  border-color: var(--line);
}
.nav-split:has(.nav-link:hover),
.nav-split:has(.nav-dropdown-btn:hover) {
  background: var(--glass);
  border-color: var(--line);
}
.nav-split .nav-link {
  border: none;
  border-radius: var(--pill) 0 0 var(--pill);
}
.nav-split .nav-link.active {
  box-shadow: none;
  background: rgba(94, 184, 240, 0.14);
}
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  z-index: 2;
  position: relative;
  border: none;
  border-left: 1px solid var(--line);
  border-radius: 0 var(--pill) var(--pill) 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-btn:hover,
.nav-item.is-open .nav-dropdown-btn {
  color: var(--accent);
  background: rgba(94, 184, 240, 0.1);
}

.mega-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: min(520px, 100%);
  padding: 16px;
  background: rgba(15, 20, 28, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}
.mega-panel[hidden] {
  display: none !important;
}
.mega-panel.is-open {
  display: flex;
}
.mega-panel-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mega-group-title {
  margin: 0 0 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.mega-links { list-style: none; padding: 0; margin: 0; }
.mega-links a {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.mega-links a:hover {
  background: rgba(94, 184, 240, 0.1);
  color: var(--accent);
  text-decoration: none;
}
.mega-desc { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.mega-footer {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.nav-drawer {
  background: rgba(10, 14, 20, 0.98);
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-drawer-title {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.nav-drawer-group {
  margin: 14px 0 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav-drawer-link {
  display: block;
  padding: 10px 12px;
  margin: 2px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-drawer-link:hover {
  background: var(--glass);
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .mega-panel-links { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .mega-panel { display: none !important; }
  .header-github { display: none; }
}
@media (min-width: 721px) {
  .nav-drawer { display: none !important; }
  .nav-toggle { display: none !important; }
}

.site-main { flex: 1; }

/* ─── Footer ─── */
.site-footer {
  margin-top: auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.6);
}
.footer-inner p { margin: 0 0 8px; font-size: 0.875rem; color: var(--muted); }
.footer-inner strong { color: var(--text); }
.footer-links { margin-top: 14px !important; }
.footer-links a { margin-right: 4px; }

/* ─── Hero ─── */
.hero {
  padding: 48px 0 56px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(94, 184, 240, 0.07), transparent);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
  background: linear-gradient(135deg, #fff 30%, #9fd4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  color: #fff;
  text-decoration: none;
}
.btn-ghost {
  color: var(--text);
  background: var(--glass);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(94, 184, 240, 0.3);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ─── Sections ─── */
.section { padding: 40px 0; }
.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.section-head {
  margin: 0 0 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head-row h2 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.section-head-row a {
  font-size: 0.875rem;
  font-weight: 500;
}

.grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ─── Cards ─── */
.card {
  position: relative;
  display: block;
  padding: 22px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(94, 184, 240, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 184, 240, 0.25);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  color: inherit;
}
.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, rgba(94, 184, 240, 0.2), rgba(45, 122, 184, 0.08));
  border: 1px solid rgba(94, 184, 240, 0.25);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card-icon.abs { background: linear-gradient(145deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.05)); border-color: rgba(248, 113, 113, 0.25); color: #fca5a5; }
.card-icon.gw { background: linear-gradient(145deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05)); border-color: rgba(167, 139, 250, 0.25); color: #c4b5fd; }
.card-icon.mm { background: linear-gradient(145deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05)); border-color: rgba(52, 211, 153, 0.25); color: #6ee7b7; }
.card-icon.tool { background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05)); border-color: rgba(251, 191, 36, 0.25); color: #fcd34d; }

.card-part {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94, 184, 240, 0.1);
  border-radius: var(--pill);
  border: 1px solid rgba(94, 184, 240, 0.2);
}

.card-link { cursor: pointer; }
.card-interactive { cursor: default; }
.card-interactive:hover { cursor: pointer; }

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.card-interactive > .card-icon,
.card-interactive > h3,
.card-interactive > p,
.card-interactive > .card-part,
.card-interactive > .card-feat-preview { position: relative; z-index: 1; pointer-events: none; }

.card-feat-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.feat-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b8d9f5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--pill);
}

.card-sublinks {
  position: relative;
  z-index: 3;
  list-style: none;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}
.card-sublinks li { margin: 0; }
.card-sublinks a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}
.card-sublinks a:hover { color: #9fd4ff; }

/* ─── Lists & articles ─── */
.link-index,
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.link-index li,
.article-list li { border-bottom: 1px solid var(--line); }
.link-index li:last-child,
.article-list li:last-child { border-bottom: none; }

.link-index a,
.article-list a {
  display: block;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.15s, padding-left 0.15s;
}
.link-index a:hover,
.article-list a:hover {
  background: rgba(94, 184, 240, 0.08);
  color: var(--accent);
  text-decoration: none;
  padding-left: 22px;
}
.link-index .desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3px;
}

.faq-block h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.faq-block h3:first-child { margin-top: 0; }
.faq-block p { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }

.alert-warn {
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.875rem;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-md);
}

.placeholder-box {
  padding: 40px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--glass);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.card-static { cursor: default; }
.card-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card-static::before { display: none; }
.card-static .placeholder-box { margin: 16px 0; }

/* ─── Module lists ─── */
.list-page-head { margin-bottom: 24px; }
.list-part { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.list-count { font-size: 0.8125rem; color: var(--muted); margin: 0; flex: 1; }
.list-legend { font-size: 0.8125rem; color: var(--muted); }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--pill);
}
.tab {
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: var(--pill);
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  background: rgba(94, 184, 240, 0.18);
  box-shadow: var(--shadow-sm);
}
.tab-panel { margin-top: 20px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 2;
  min-width: 200px;
}
.filters select,
.filters input {
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}
.filters select:focus,
.filters input:focus { border-color: rgba(94, 184, 240, 0.4); }
.filters input { flex: 1; min-width: 140px; }

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead { position: sticky; top: 0; z-index: 2; }
.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: rgba(94, 184, 240, 0.06); }
.data-table th.center,
.data-table td.center { text-align: center; }
.vehicle-mod-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vehicle-mod-item {
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.data-table td:first-child {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.feat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  line-height: 1;
  transition: transform 0.15s;
}
.feat-badge:hover { transform: scale(1.1); }
.feat-yes { color: var(--ok); background: var(--ok-bg); border: 1px solid rgba(52, 211, 153, 0.35); }
.feat-no { color: var(--bad); background: var(--bad-bg); border: 1px solid rgba(248, 113, 113, 0.3); }
.feat-legend { margin-right: 14px; font-size: 0.8125rem; }

.pop-cell {
  cursor: help;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.sobre-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(8, 12, 18, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.sobre-card-top {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sobre-card-top h1 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
}
.sobre-gh-user {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}
.sobre-gh-user:hover { color: var(--accent); }
.sobre-gh-widgets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sobre-gh-widget-link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.sobre-gh-widget-link:hover { border-color: rgba(94, 184, 240, 0.35); }
.sobre-gh-widget-link img {
  display: block;
  width: 100%;
}

.calc-frame {
  width: 100%;
  min-height: 75vh;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #06080c;
}

[data-dropdown].open .mega-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile polish */
@media (max-width: 560px) {
  .hero { padding: 36px 0 40px; }
  .section { padding: 32px 0; }
  .card { padding: 18px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .filters { width: 100%; }
  .filters input { min-width: 0; }
}
