* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #060408; color: #F0E6FF; font-family: 'Segoe UI', sans-serif; height: 100vh; overflow: hidden; }

#app { display: flex; height: 100vh; }

/* SIDEBAR */
#sidebar {
  width: 220px; flex-shrink: 0;
  background: #0A0812; border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, #D4A853, #F962A9);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(249,98,169,0.35);
}
.logo-name { font-size: 13px; font-weight: 900; color: #F0E6FF; line-height: 1; }
.logo-sub  { font-size: 8px; color: rgba(240,230,255,0.3); letter-spacing: 1.5px; }

.sidebar-nav { flex: 1; padding: 10px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: none; cursor: pointer;
  background: transparent; color: rgba(240,230,255,0.4);
  font-size: 12px; font-weight: 600; text-align: left; width: 100%;
  border-left: 2px solid transparent; transition: all .15s;
}
.nav-btn:hover { background: rgba(249,98,169,0.06); color: #F0E6FF; }
.nav-btn.active { background: rgba(249,98,169,0.12); color: #F962A9; border-left-color: #F962A9; }
.nav-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 8px 0; }

/* MAIN */
#main { flex: 1; overflow-y: auto; padding: 32px 36px; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: #1e1e2e; border-radius: 4px; }

.view { display: none; animation: fadeUp .3s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.view-header { margin-bottom: 28px; }
.view-header h1 { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 4px; }
.view-header p  { font-size: 13px; color: rgba(240,230,255,0.4); }

/* SEARCH BOX */
.search-box { display: flex; gap: 10px; margin-bottom: 24px; }
.search-box input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 16px; color: #F0E6FF; font-size: 14px; outline: none;
  font-family: inherit; transition: border-color .15s;
}
.search-box input:focus { border-color: rgba(249,98,169,0.4); }
.btn-rosa {
  background: #F962A9; border: none; border-radius: 10px; padding: 12px 24px;
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn-rosa:hover { background: #e84d99; transform: translateY(-1px); }
.btn-rosa:disabled { opacity: 0.5; cursor: default; transform: none; }

/* RESULT CARD */
.result-card {
  background: #0A0812; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 24px; margin-bottom: 16px;
}
.result-card .rc-title { font-size: 13px; font-weight: 800; color: #F962A9; letter-spacing: 1px; margin-bottom: 16px; }
.result-row { display: flex; gap: 12px; margin-bottom: 10px; font-family: monospace; font-size: 12px; }
.result-row .rk { color: rgba(240,230,255,0.3); min-width: 90px; }
.result-row .ra { color: rgba(240,230,255,0.3); }
.result-row .rv { }

.kw-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; margin: 4px; }

/* COMING SOON */
.coming-soon { text-align: center; padding: 80px 40px; }
.cs-icon  { font-size: 48px; margin-bottom: 16px; }
.cs-title { font-size: 18px; font-weight: 800; color: #F0E6FF; margin-bottom: 8px; }
.cs-desc  { font-size: 13px; color: rgba(240,230,255,0.35); line-height: 1.6; }

/* ─── MOBILE (versão web do painel) ─── */
@media (max-width: 820px) {
  body { height: auto; overflow: auto; }
  #app { flex-direction: column; height: auto; min-height: 100vh; }
  #sidebar {
    width: 100%; flex-direction: column;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .sidebar-nav {
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 8px 10px; gap: 6px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .nav-btn { width: auto; flex-shrink: 0; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; border-radius: 8px; padding: 9px 12px; }
  .nav-btn.active { border-left: none; border-bottom-color: #F962A9; }
  .nav-divider { display: none; }
  .sidebar-footer, .sidebar-trial, .sidebar-atalhos { display: none; }
  #main { padding: 20px 16px; overflow: visible; }
  .search-box { flex-direction: column; }
  .search-box .btn-rosa { width: 100%; }
  #main [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  #main [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  #main [style*="display:flex"][style*="gap:"] { flex-wrap: wrap; }
}

/* Grupos do menu — organiza por objetivo, não por nome de engine */
.nav-grupo {
  font-size: 8px; font-weight: 800; letter-spacing: 1.4px;
  color: rgba(240,230,255,0.22); text-transform: uppercase;
  padding: 14px 12px 6px; user-select: none;
}
@media (max-width: 820px) { .nav-grupo { display: none; } }
