/* ==========================================================================
   GSM Hub — Design System Oficial (Estilo GSM Theme / DHRU Fusion)
   Topbar & Rodapé Escuros (#141920) + Superfície Clara (#f4f6f9) + Cards Brancos
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #f4f6f9;
  --bg-elev: #f8fafc;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --txt: #0f172a;
  --txt-sec: #334155;
  --mut: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-gold: rgba(245, 158, 11, 0.45);
  --a: #f59e0b;
  --a-light: #d97706;
  --b: #ea580c;
  --ok: #16a34a;
  --err: #dc2626;
  --info: #0284c7;
  --topbar: #141920;
  --topbar-line: #232b36;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: .16s ease; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; width: 100%; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--mut); }

/* ---------- TOPBAR ESCURA (PADRÃO GSM THEME) ---------- */
.gsm-topbar {
  background: var(--topbar);
  border-bottom: 1px solid var(--topbar-line);
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.gsm-topbar-in {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: nowrap;
}
@media (max-width: 980px) {
  .gsm-topbar-in { flex-wrap: wrap; }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -.02em;
  color: #ffffff;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 55%, #ea580c 100%);
  color: #090a0d;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.gsm-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.gsm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 7px;
  color: #e2e8f0;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.gsm-link:hover, .gsm-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Dropdown Lista de Serviços */
.gsm-dd { position: relative; display: flex; align-items: center; }
.gsm-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 95;
}
.gsm-dd::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.gsm-dd:hover .gsm-dd-menu { display: flex; }
.gsm-dd-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #1e293b;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gsm-dd-menu a:hover { background: #f1f5f9; color: #d97706; }

/* Pílula Aluguel de Box & Serviços Remotos */
.gsm-rent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: 99px;
  background: #1f2733;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: .81rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.gsm-rent-pill:hover {
  border-color: #f59e0b;
  background: #263040;
  color: #fde68a;
}

/* Busca no cabeçalho */
.gsm-top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e2530;
  border: 1px solid #2e3846;
  border-radius: 7px;
  padding: 0 11px;
  height: 40px;
  min-width: 155px;
  flex: 1 1 180px;
  max-width: 245px;
  color: #94a3b8;
}
.gsm-top-search:focus-within {
  border-color: #f59e0b;
  background: #19202a;
}
.gsm-top-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #f8fafc;
  font: inherit;
  font-size: .82rem;
  width: 100%;
}
.gsm-top-search input::placeholder { color: #94a3b8; }

/* Botão do Cliente + Saldo + Menu Dropdown Branco */
.gsm-user-wrap { position: relative; flex-shrink: 0; }
.gsm-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  background: #1e2530;
  border: 1px solid #323c4b;
  border-radius: 8px;
  padding: 0 11px;
  color: #f8fafc;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: .16s;
}
.gsm-user-btn:hover { border-color: #475569; background: #252e3b; }
.gsm-u-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #2b3544;
  color: #cbd5e1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.gsm-u-info { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.gsm-u-info b { font-size: .76rem; font-weight: 800; color: #ffffff; letter-spacing: .02em; }
.gsm-u-info small { font-size: .64rem; color: #94a3b8; font-weight: 700; }
.gsm-u-sep { width: 1px; height: 24px; background: #334155; }
.gsm-u-bal {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  font-weight: 800;
  color: #facc15;
}
.gsm-u-caret { font-size: .75rem; color: #94a3b8; }

.gsm-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 230px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
  padding: 7px;
  display: none;
  flex-direction: column;
  z-index: 100;
}
.gsm-user-menu.open { display: flex; }
.gsm-user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #334155;
  font-size: .86rem;
  font-weight: 600;
}
.gsm-user-menu a:hover { background: #f1f5f9; color: #0f172a; }
.gsm-user-menu .um-ic { width: 20px; text-align: center; font-size: .95rem; }
.gsm-user-menu .um-div { height: 1px; background: #e2e8f0; margin: 5px 4px; }
.gsm-user-menu .um-logout { color: #dc2626; }
.gsm-user-menu .um-logout:hover { background: #fef2f2; color: #b91c1c; }

/* ---------- SUB-NAVEGAÇÃO HORIZONTAL DO PAINEL DO CLIENTE ---------- */
.client-subnav {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.client-subnav-in {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.client-subnav-in::-webkit-scrollbar { display: none; }
.cnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cnav-link:hover {
  background: #f8fafc;
  color: #0f172a;
}
.cnav-link.on {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

/* ---------- CABEÇALHO DE PÁGINA COM BREADCRUMB (ESTILO IMAGEM 2) ---------- */
.svc-head-bar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}
.svc-head-bar h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.svc-head-bar h1::before {
  content: '';
  width: 3px;
  height: 18px;
  background: #111827;
  display: inline-block;
  border-radius: 2px;
}
.svc-breadcrumb {
  font-size: .78rem;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}
.svc-breadcrumb a { color: #475569; font-weight: 600; }
.svc-breadcrumb a:hover { color: #d97706; }
.svc-head-search {
  min-width: 250px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: .86rem;
}
.svc-head-search:focus {
  outline: none;
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Título de bloco com barra vertical | TÍTULO */
.sec-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.sec-bar-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #111827;
  display: inline-block;
}

/* ---------- CARDS DE SERVIÇO EM 3 COLUNAS + MINIATURAS ---------- */
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}
@media (max-width: 980px) { .svc-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .svc-cards-grid { grid-template-columns: 1fr; } }

.svc-card-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.svc-card-box:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}
.svc-thumb, .best-thumb {
  width: 88px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141920;
  border: 1px solid #e2e8f0;
}
.svc-thumb img, .best-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-thumb-fallback {
  width: 100%;
  height: 100%;
  background: #141920;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.svc-thumb-fallback .tf-brand {
  font-size: .5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: .04em;
}

/* Artes automáticas das ferramentas (DNU, UnlockTool, AMT, Samsung, iAccess, iBypassing, etc.) */
.th-art { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px; }
.th-dnu { background: #ffffff; border: 2px solid #bae6fd; border-radius: 7px; color: #0284c7; }
.th-dnu span { font-weight: 900; font-size: .95rem; font-style: italic; letter-spacing: -.03em; line-height: 1; }
.th-dnu small { font-size: .48rem; font-weight: 800; color: #0369a1; letter-spacing: .06em; }
.th-ut { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #1e293b; }
.th-ut .ut-box { width: 28px; height: 34px; border-radius: 4px; background: #18181b; color: #f97316; display: grid; place-items: center; font-size: .85rem; box-shadow: 2px 3px 6px rgba(0,0,0,0.3); }
.th-ut span { font-size: .46rem; font-weight: 800; margin-top: 2px; color: #78350f; }
.th-amt { background: linear-gradient(135deg, #fef9c3, #fde047); color: #1e293b; }
.th-amt span { font-weight: 900; font-size: .88rem; color: #ea580c; text-shadow: 0 1px 0 #000; }
.th-sam { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); color: #fff; }
.th-sam b { font-size: .68rem; font-weight: 900; letter-spacing: .04em; }
.th-sam small { font-size: .54rem; color: #fde047; font-weight: 700; }
.th-term { background: #090d16; color: #38bdf8; border: 1px solid #1e293b; }
.th-term .term-bar { width: 80%; height: 4px; background: #1d4ed8; border-radius: 2px; margin-bottom: 4px; }
.th-term span { font-size: .62rem; font-weight: 800; color: #e2e8f0; }
.th-term small { font-size: .48rem; color: #38bdf8; }
.th-iby { background: #ffffff; color: #334155; border: 1px solid #cbd5e1; }
.th-iby b { font-size: .62rem; font-weight: 800; color: #0f172a; }
.th-iby small { font-size: .52rem; color: #64748b; }
.th-sup { background: radial-gradient(circle, #1e3a8a 0%, #090d16 100%); color: #38bdf8; border: 1px solid #1d4ed8; }
.th-sup b { font-size: .58rem; font-weight: 900; color: #fff; letter-spacing: .04em; }
.th-sup small { font-size: .46rem; color: #38bdf8; font-weight: 800; }

.svc-card-body, .best-body { min-width: 0; flex: 1; }
.svc-card-title, .best-name {
  font-size: .83rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card-badges, .best-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge-brl, .b-price {
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #1e293b;
}
.badge-time, .b-time {
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ffedd5;
  color: #d97706;
}

/* ---------- CARDS, BOTÕES, TABELAS E UTILITÁRIOS ---------- */
.section { padding: 26px 0 36px; flex: 1; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.price-pill {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #0f172a;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 7px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.22);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3); }
.btn.sm { padding: 7px 13px; font-size: .8rem; border-radius: 6px; }
.btn.full { width: 100%; }
.btn.ghost {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}
.btn.ghost:hover { border-color: #94a3b8; background: #f8fafc; }
.gsm-topbar .btn.ghost {
  background: #1e2530;
  color: #f8fafc;
  border-color: #334155;
}
.gsm-topbar .btn.ghost:hover { background: #27303f; border-color: #475569; }
.btn.danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  box-shadow: none;
}
.btn.danger:hover { background: #fee2e2; }

/* Tabelas claras estilo GSM Theme */
.tbl-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}
.tbl { width: 100%; border-collapse: collapse; font-size: .87rem; }
.tbl th {
  background: #f8fafc;
  color: #475569;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #f8fafc; }

/* FAIXA ESCURA INFERIOR DE 4 BENEFÍCIOS & RODAPÉ */
.gsm-feat-strip {
  background: var(--topbar);
  border-top: 1px solid var(--topbar-line);
  padding: 26px 0;
  color: #f8fafc;
  margin-top: auto;
}
.gsm-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 860px) { .gsm-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gsm-feat-grid { grid-template-columns: 1fr; } }

.gsm-feat-item { display: flex; align-items: center; gap: 14px; }
.gsm-feat-ico {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #1f2733;
  border: 1px solid #2e3846;
  color: #f8fafc;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.gsm-feat-item b { display: block; font-size: .88rem; font-weight: 800; color: #ffffff; }
.gsm-feat-item small { display: block; font-size: .76rem; color: #94a3b8; margin-top: 2px; }

footer {
  background: #0e1217;
  border-top: 1px solid #1e2530;
  color: #94a3b8;
  font-size: .8rem;
  padding: 16px 0;
  text-align: center;
}
footer b { color: #f8fafc; }
