* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
}

/* Variáveis do tema claro (padrão) */
:root {
  --bg-body: #f4f6fb;
  --bg-card: #ffffff;
  --text-primary: #1e2b3c;
  --text-secondary: #2c3e50;
  --text-soft: #475569;
  --border-light: #e2e8f0;
  --border-card: #edf2f7;
  --badge-supported-bg: #e6faf2;
  --badge-supported-text: #00a86b;
  --badge-not-bg: #fee9e7;
  --badge-not-text: #b91c1c;
  --variants-bg: #f1f5f9;
  --variants-border: #e9eef3;
  --scrollbar-track: #e2e8f0;
  --scrollbar-thumb: #a0afc0;
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.04);
  --header-logo: #1a4cff;
  --footer-border: #dde3ea;
  --input-bg: white;
  --input-border: #e0e7ef;
}

/* Tema escuro (quando a classe .dark-mode no body) */
body.dark-mode {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-soft: #94a3b8;
  --border-light: #334155;
  --border-card: #2d3a4f;
  --badge-supported-bg: #1a3a32;
  --badge-supported-text: #6cdbaf;
  --badge-not-bg: #4a2c2c;
  --badge-not-text: #fca5a5;
  --variants-bg: #263445;
  --variants-border: #3f4e66;
  --scrollbar-track: #334155;
  --scrollbar-thumb: #5f6f87;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.6);
  --header-logo: #60a5fa;
  --footer-border: #2e3a4c;
  --input-bg: #1e293b;
  --input-border: #3b4a5e;
  --input-text: #f1f5f9;
}

body {
  background: var(--bg-body);
  padding: 2rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    background-color 0.25s ease,
    color 0.2s;
}

.container {
  max-width: 1600px;
  width: 100%;
}

/* ---------- MENU PRINCIPAL ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 0.8rem 2rem;
  border-radius: 60px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.2rem;
  border: 1px solid var(--border-light);
  transition: background 0.2s;
}

.logo-devices {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-devices span {
  background: var(--header-logo);
  color: white;
  font-size: 0.9rem;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  margin-left: 0.6rem;
}

/* botão de tema (lua / sol) */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  background: var(--variants-bg);
  border: 1px solid var(--border-light);
  transition: 0.15s;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: var(--border-light);
}

/* cabeçalho */
.header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.subhead {
  color: var(--text-soft);
  font-size: 1rem;
  border-left: 4px solid var(--header-logo);
  padding-left: 1rem;
}

/* search */
.search-wrapper {
  margin: 1.5rem 0 1.5rem 0;
}

#searchInput {
  width: 100%;
  max-width: 600px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  background: var(--input-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  transition: 0.2s;
}

#searchInput::placeholder {
  color: var(--text-soft);
}

.result-count {
  margin: -0.5rem 0 1.2rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* grid de cartões compactos (4 colunas) */
.devices-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.device-card {
  flex: 0 0 auto;
  width: calc(25% - 0.75rem);
  max-width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1rem 1rem 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  border-left: 4px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.device-card.supported {
  border-left-color: #00a86b;
}

.device-card.not-supported {
  border-left-color: #e03a3a;
}

.model-name {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  word-break: break-word;
}

.variants-block {
  margin: 0.5rem 0 0.5rem 0;
}

.variants-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.variants-list {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--variants-bg);
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  line-height: 1.4;
  max-height: 75px;
  overflow-y: auto;
  border: 1px solid var(--variants-border);
  font-family: "SF Mono", monospace;
}

.status-badge {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
}

.badge-supported {
  color: var(--badge-supported-text);
  background: var(--badge-supported-bg);
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.badge-not-supported {
  color: var(--badge-not-text);
  background: var(--badge-not-bg);
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.variants-list::-webkit-scrollbar {
  width: 4px;
}
.variants-list::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
.variants-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
}

.no-results {
  background: var(--bg-card);
  border-radius: 30px;
  padding: 2rem;
  text-align: center;
  width: 100%;
  border: 1px dashed var(--border-light);
  color: var(--text-soft);
}

.footer-note {
  margin-top: 2.5rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--footer-border);
  padding-top: 1.8rem;
  text-align: center;
}

/* responsividade */
@media screen and (max-width: 1100px) {
  .device-card {
    width: calc(33.333% - 0.7rem);
  }
}

@media screen and (max-width: 800px) {
  .device-card {
    width: calc(50% - 0.5rem);
  }
}

@media screen and (max-width: 550px) {
  .device-card {
    width: 100%;
  }
  body {
    padding: 1.5rem 1rem;
  }
  .navbar {
    padding: 0.6rem 1.2rem;
  }
  .logo-devices {
    font-size: 1.4rem;
  }
}
.powered-jscellunlock {
  position: fixed;
  right: 0;
  top: 98%;
  transform: translateY(-29%);
  background: #0f3460;
  color: #fff;
  padding: 0px 0px;
  font-size: 13px;
  font-weight: bold;
  z-index: 9999;
  border-radius: 0 5px 5px 0;
}
