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

:root {
  --bg: #1a1a1a;
  --accent: #0c9;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
}

/* ── Header ──────────────────────────────────── */
header {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px 4px;
  flex-wrap: wrap;
}

header h1 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}
header h1 svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: rgba(0, 204, 153, 0.1);
  border-radius: 5px;
  padding: 3px;
  width: 24px;
  height: 24px;
  color: #0c9;
}

/* ── Tabs ──────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.tab svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.tab:hover {
  color: #ccc;
}
.tab.active {
  color: #0c9;
  border-bottom-color: #0c9;
}

/* ── Filters ─────────────────────────────── */
.header-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 14px 6px;
  border-top: 1px solid #222;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sep {
  width: 1px;
  height: 20px;
  background: #333;
  flex-shrink: 0;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.filter-label svg {
  width: 13px;
  height: 13px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #333;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  background: #222;
  color: #aaa;
  transition: all 0.15s;
  font-family: inherit;
}
.filter-btn svg {
  width: 12px;
  height: 12px;
}
.filter-btn:hover {
  border-color: #555;
  color: #fff;
}

.filter-btn[data-tech="Todos"] {
  --c: #888;
}
.filter-btn[data-tech="5G"] {
  --c: #f04;
}
.filter-btn[data-tech="4G"] {
  --c: #0c9;
}
.filter-btn[data-tech="3G"] {
  --c: #fa0;
}
.filter-btn[data-tech="2G"] {
  --c: #88f;
}
.filter-btn[data-tech="nova"] {
  --c: #f73;
}

.filter-btn[data-op=""] {
  --c: #888;
}
.filter-btn[data-op="Claro"] {
  --c: #e05c2a;
}
.filter-btn[data-op="TIM"] {
  --c: #0050a0;
}
.filter-btn[data-op="Vivo"] {
  --c: #660099;
}

.filter-btn.active {
  color: var(--c);
  border-color: var(--c);
  background: #111;
}

@media (max-width: 599px) {
  .header-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .sep {
    display: none;
  }
  .filter-label {
    display: none;
  }
}
