/* ============================================================
   ObaaraTech CyberToolKit — Pro Polish Edition
   Fonts: Inter + JetBrains Mono
   Brand: Navy #0B2545 + Green #2E7D32 / #4CAF50
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --brand-navy:      #0B2545;
  --brand-navy-dark: #061A33;
  --brand-green:     #2E7D32;
  --brand-green-lt:  #4CAF50;
  --brand-green-hl:  #66BB6A;
  --brand-sky:       #EAF4FB;

  /* Dark theme */
  --bg:        #061A33;
  --bg-2:      #0B2545;
  --bg-3:      #123563;
  --bg-glass:  rgba(18, 53, 99, 0.55);
  --border:    #1E4A7A;
  --border-2:  rgba(76, 175, 80, 0.25);
  --text:      #EAF4FB;
  --muted:     #8FB4D9;
  --accent:    #4CAF50;
  --accent-2:  #2E7D32;
  --success:   #66BB6A;
  --warning:   #F0B429;
  --danger:    #E63946;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Shadows (layered for depth) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.15);
  --shadow-md: 0 4px 12px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.15);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.35), 0 4px 8px rgba(0,0,0,.2);
  --shadow-glow: 0 0 24px rgba(76,175,80,.35);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light {
  --bg:        #F4FAFF;
  --bg-2:      #FFFFFF;
  --bg-3:      #EAF4FB;
  --bg-glass:  rgba(255, 255, 255, 0.7);
  --border:    #C7DDF0;
  --border-2:  rgba(46, 125, 50, 0.25);
  --text:      #0B2545;
  --muted:     #4A6B8A;
  --accent:    #2E7D32;
  --accent-2:  #1B5E20;
  --success:   #2E7D32;
  --warning:   #B7791F;
  --danger:    #C1121F;
  --shadow-glow: 0 0 24px rgba(46,125,50,.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  line-height: 1.6;
  overflow-x: hidden;
}

code, pre, kbd {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}

/* ===== DECORATIVE BACKGROUND ===== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(76,175,80,.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(30,90,180,.15), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(46,125,50,.10), transparent 60%);
  pointer-events: none;
}
body.light .bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(76,175,80,.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(30,90,180,.08), transparent 60%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(76,175,80,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,175,80,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 80%);
  pointer-events: none;
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  transition: all var(--transition);
}
.topbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-2);
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-logo {
  height: 52px; width: auto;
  border-radius: 10px;
  background: #fff;
  padding: 4px 10px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
  transition: transform var(--transition);
}
.brand-logo:hover { transform: scale(1.04); }

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  line-height: 1.15;
}
.brand-accent {
  background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.brand-text .tagline {
  font-size: .7rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
  letter-spacing: .2px;
  font-weight: 400;
}

.topbar-right {
  display: flex; align-items: center; gap: 12px;
}

.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem;
  color: var(--success);
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(76,175,80,.1);
  border: 1px solid rgba(76,175,80,.25);
  border-radius: 20px;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.5); opacity: 0; }
}

.version-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 10px;
  background: var(--bg-3);
  color: var(--muted);
  border-radius: 6px;
  border: 1px solid var(--border);
  letter-spacing: .5px;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== HERO BANNER ===== */
.brand-hero {
  position: relative;
  padding: 60px 24px 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(11,37,69,.5) 0%, rgba(46,125,50,.35) 100%),
    radial-gradient(ellipse at top, rgba(76,175,80,.15), transparent 70%);
}
.brand-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(76,175,80,.15) 0%, transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(30,90,180,.15) 0%, transparent 30%);
  pointer-events: none;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 16px;
  background: rgba(76,175,80,.1);
  border: 1px solid rgba(76,175,80,.3);
  border-radius: 24px;
  letter-spacing: .3px;
  animation: fadeUp .6s ease;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: #fff;
  animation: fadeUp .7s ease;
}
body.light .hero-title { color: var(--brand-navy); }
.hero-gradient {
  background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 50%, #2E7D32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-desc {
  color: #C9E3F7;
  font-size: 1rem;
  max-width: 620px;
  line-height: 1.65;
  animation: fadeUp .8s ease;
}
body.light .hero-desc { color: var(--muted); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  padding: 16px 32px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  animation: fadeUp .9s ease;
}
body.light .hero-stats {
  background: rgba(255,255,255,.7);
  border-color: rgba(11,37,69,.1);
}
.hero-stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
}
.hero-stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
}
.hero-stat span {
  font-size: .72rem;
  color: #C9E3F7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
body.light .hero-stat span { color: var(--muted); }
.hero-divider {
  width: 1px; height: 32px;
  background: rgba(255,255,255,.15);
}
body.light .hero-divider { background: rgba(11,37,69,.15); }

.hero-cta {
  margin-top: 8px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-lt) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(76,175,80,.4);
  transition: all var(--transition);
  animation: fadeUp 1s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(76,175,80,.55);
}
.hero-cta:active { transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: calc(100vh - 280px); }

.sidebar {
  width: 280px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  position: sticky; top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== SEARCH ===== */
.search-wrap {
  position: relative;
  margin-bottom: 18px;
  padding: 0 4px;
}
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: .9rem;
  opacity: .6;
  pointer-events: none;
}
#toolSearch {
  width: 100%;
  padding: 12px 42px 12px 40px;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  font-family: inherit;
  transition: all var(--transition);
}
#toolSearch:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76,175,80,.2);
  background: var(--bg-2);
}
#toolSearch::placeholder { color: var(--muted); }
.search-kbd {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .68rem;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-weight: 500;
  opacity: .8;
}

/* ===== NAV ===== */
.sidebar nav {
  display: flex; flex-direction: column;
  gap: 22px; flex: 1;
}

.nav-group {
  display: flex; flex-direction: column; gap: 2px;
}
.nav-group.hidden { display: none; }

.nav-group-title {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding: 6px 14px 6px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: .9;
}
.group-count {
  font-size: .65rem;
  padding: 1px 6px;
  background: var(--bg-3);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  font-family: 'JetBrains Mono', monospace;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: left;
  font-size: .9rem;
  font-weight: 500;
  font-family: inherit;
  position: relative;
  transition: all var(--transition);
  width: 100%;
}
.nav-item:hover {
  background: var(--bg-3);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-green-lt) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(76,175,80,.35);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: #fff;
  border-radius: 0 3px 3px 0;
}
.nav-item.hidden { display: none; }

.nav-icon {
  font-size: 1.05rem;
  display: inline-flex;
  width: 22px;
  justify-content: center;
  flex-shrink: 0;
}

.nav-home {
  border: 1px solid var(--border);
  font-weight: 600;
  margin-bottom: 4px;
  justify-content: flex-start;
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: 20px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}
.sidebar-footer strong { color: var(--accent); }
.sidebar-footer .tiny { font-size: .7rem; opacity: .8; margin-top: 4px; }

/* ===== CONTENT ===== */
.content { flex: 1; padding: 34px; max-width: 1150px; }

/* ===== PANELS ===== */
.panel { display: none; }
.panel.active {
  display: block;
  animation: fadeSlide .35s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-head { margin-bottom: 24px; }
.panel-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.panel h3 {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.muted {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}
.tiny { font-size: .78rem; margin-top: 10px; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.tool-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all .28s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: transparent;
}
.tool-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-hl) 60%, transparent);
}
.tool-card.hidden { display: none; }

.tool-icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(76,175,80,.15), rgba(46,125,50,.1));
  border: 1px solid rgba(76,175,80,.25);
  border-radius: 12px;
  margin-bottom: 6px;
  transition: all var(--transition);
}
.tool-card:hover .tool-icon-wrap {
  background: linear-gradient(135deg, rgba(76,175,80,.25), rgba(46,125,50,.2));
  border-color: rgba(76,175,80,.5);
  transform: scale(1.05);
}
.tool-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
  margin: 0;
}
.tool-card p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 6px;
  flex: 1;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.card-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  font-weight: 700;
}
.tool-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.tag-passwords { background: rgba(76,175,80,.12); color: #66BB6A; }
.tag-phishing  { background: rgba(230,57,70,.12); color: #EF5350; }
.tag-crypto    { background: rgba(66,165,245,.12); color: #64B5F6; }
.tag-recon     { background: rgba(240,180,41,.12); color: #F0B429; }
.tag-privacy   { background: rgba(171,71,188,.12); color: #BA68C8; }

.badge-new {
  position: absolute;
  top: 14px; right: 14px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(76,175,80,.4);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1rem;
}
.no-results.hidden { display: none; }

/* ===== FORMS ===== */
.field {
  display: flex; gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}

input, textarea, select {
  flex: 1;
  padding: 13px 16px;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: all var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76,175,80,.18);
  background: var(--bg-2);
}
textarea {
  min-height: 110px;
  resize: vertical;
  margin-bottom: 14px;
  width: 100%;
  line-height: 1.6;
}

button.primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-lt) 100%);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .2px;
  box-shadow: 0 3px 12px rgba(76,175,80,.3);
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(76,175,80,.45);
  filter: brightness(1.05);
}
button.primary:active { transform: translateY(0) scale(.98); }

button.icon-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition);
}
button.icon-btn:hover {
  border-color: var(--accent);
  background: var(--bg-2);
}

/* ===== STRENGTH BAR ===== */
.strength-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
}
#strengthFill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
  transition: width .4s cubic-bezier(.4,0,.2,1), background .3s;
  border-radius: 6px;
}
.label {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: .95rem;
}

/* ===== CHECKLIST ===== */
.checklist {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.checklist li {
  padding: 10px 14px;
  background: var(--bg-2);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.checklist li.pass {
  border-left-color: var(--success);
  color: var(--success);
  background: rgba(76,175,80,.06);
}
.checklist li.pass::before {
  content: "✔";
  font-weight: bold;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: var(--bg-2);
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .85rem;
  transition: all var(--transition);
}
.stat:hover { border-color: var(--border-2); }
.stat span {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 500;
}
.stat strong {
  font-size: 1.25rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ===== RESULT BOX ===== */
.result-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: .92rem;
  line-height: 1.65;
  word-break: break-word;
  animation: fadeSlide .3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.result-box.hidden { display: none; }
.result-box.success {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(76,175,80,.08), var(--bg-2));
}
.result-box.warning {
  border-color: var(--warning);
  background: linear-gradient(135deg, rgba(240,180,41,.08), var(--bg-2));
}
.result-box.danger {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(230,57,70,.08), var(--bg-2));
}

.result-box code {
  background: var(--bg-3);
  padding: 3px 8px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  word-break: break-all;
  border: 1px solid var(--border);
}
.result-box h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.result-box ul { margin: 8px 0 0 20px; }
.result-box li { margin-bottom: 5px; }

.flag { color: var(--danger); font-weight: 600; }
.ok   { color: var(--success); font-weight: 600; }
.warn { color: var(--warning); font-weight: 600; }

/* ===== PASSWORD GENERATOR ===== */
.mode-toggle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  background: var(--bg-3);
  padding: 5px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.mode-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  padding: 9px 20px;
  border-radius: 7px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.mode-btn.active {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-lt));
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,.4);
}

.range-label {
  display: block;
  margin-bottom: 10px;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}
.range-label strong {
  color: var(--accent);
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  margin-bottom: 18px;
  accent-color: var(--accent);
  padding: 0;
  height: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-lt));
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76,175,80,.5);
  transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}
.checkbox-grid label:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}
.checkbox-grid input {
  width: 17px; height: 17px;
  flex: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ===== DROP ZONE ===== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 20px;
  text-align: center;
  transition: all var(--transition);
  margin-bottom: 16px;
  cursor: pointer;
  background: var(--bg-2);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(76,175,80,.06);
  transform: scale(1.005);
}
.drop-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
  opacity: .8;
}
.drop-zone p {
  margin-bottom: 6px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
}
.drop-zone input[type="file"] {
  background: transparent;
  border: none;
  padding: 0;
  margin: 10px auto 0;
  display: inline-block;
  width: auto;
  color: var(--muted);
  font-size: .85rem;
  flex: 0;
}

/* ===== WI-FI PROGRESS ===== */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.progress-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-3);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
#wifiProgress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-hl));
  transition: width .4s cubic-bezier(.4,0,.2,1);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(76,175,80,.5);
}
#wifiPercent {
  font-weight: 700;
  color: var(--success);
  min-width: 50px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
}

.wifi-list { display: grid; gap: 10px; }
.wifi-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.wifi-item:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}
.wifi-item input {
  flex: 0;
  margin-top: 3px;
  accent-color: var(--success);
  width: 18px; height: 18px;
  cursor: pointer;
}
.wifi-item.checked {
  border-color: var(--success);
  background: rgba(76,175,80,.06);
}
.wifi-item strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: .92rem;
}
.wifi-item small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

/* ===== CVE CARDS ===== */
.cve-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-3);
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  transition: all var(--transition);
}
.cve-card:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}
.cve-card h4 {
  font-size: .95rem;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.cve-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}
.severity {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  font-family: 'JetBrains Mono', monospace;
}
.sev-CRITICAL { background: #6e0b0b; color: #fff; }
.sev-HIGH     { background: #a33; color: #fff; }
.sev-MEDIUM   { background: #a80; color: #fff; }
.sev-LOW      { background: #2a7; color: #fff; }
.sev-UNKNOWN  { background: #555; color: #fff; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-2);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 380px;
  animation: toastIn .3s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error   { border-left-color: var(--danger); }
.toast.toast-info    { border-left-color: var(--accent); }
.toast.fade-out { animation: toastOut .3s cubic-bezier(.4,0,.2,1) forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  height: 42px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 3px 8px;
  box-shadow: var(--shadow-sm);
}
.footer-brand p {
  font-size: .88rem;
  color: var(--muted);
}
.footer-brand p strong { color: var(--accent); }
.footer-brand .tiny {
  font-size: .72rem;
  font-style: italic;
  margin-top: 2px;
}
.footer-info {
  text-align: right;
  font-size: .82rem;
  color: var(--muted);
}
.footer-info .tiny {
  font-size: .72rem;
  opacity: .85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .topbar { padding: 10px 14px; }
  .topbar-right { gap: 8px; }
  .status-dot { display: none; }
  .version-badge { display: none; }
  .brand-logo { height: 42px; }
  .brand-text h1 { font-size: 1rem; }
  .brand-text .tagline { font-size: .65rem; }

  .brand-hero { padding: 40px 18px 46px; }
  .hero-title { font-size: 1.5rem; }
  .hero-desc { font-size: .9rem; }
  .hero-stats { gap: 16px; padding: 14px 20px; }
  .hero-stat strong { font-size: 1.15rem; }

  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    max-height: none;
  }
  .search-wrap { padding: 0 0 12px; }
  .search-kbd { display: none; }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 12px;
  }
  .nav-group {
    flex-direction: row;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding-right: 12px;
    gap: 4px;
  }
  .nav-group-title { display: none; }
  .nav-item span:not(.nav-icon) { display: none; }
  .nav-item { padding: 10px 14px; font-size: 1.15rem; flex-shrink: 0; }
  .nav-icon { font-size: 1.15rem; width: auto; }
  .sidebar-footer { display: none; }

  .content { padding: 22px 18px; }

  .field { flex-direction: column; }
  .field .icon-btn { align-self: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }

  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }
  .tool-card { padding: 18px; }
  .tool-icon-wrap { width: 42px; height: 42px; }
  .tool-icon { font-size: 1.3rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { text-align: center; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: auto; width: 100%; }
}

@media (max-width: 480px) {
  .brand-text .tagline { display: none; }
  .brand-logo { height: 38px; }
  .brand-text h1 { font-size: .92rem; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .hero-stat strong { font-size: 1rem; }
  .panel-head h2 { font-size: 1.2rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: 20px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}
.sidebar-footer strong { color: var(--accent); }
.sidebar-footer .tiny { font-size: .7rem; opacity: .8; margin-top: 4px; }

/* NEW — ObaaraTech blog link */
.footer-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: opacity var(--transition);
}
.footer-link strong {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.footer-link:hover strong {
  border-bottom-color: var(--accent);
}
.footer-link:hover {
  opacity: 0.9;
}