/* ==========================================================================
   BreakdownSystem.tech - Master Stylesheet
   Tech Tips & System Error Resolution Knowledgebase
   ========================================================================== */

:root {
  /* Aurora Graphite palette */
  --bg-primary: #090914;
  --bg-secondary: #111126;
  --bg-card: rgba(23, 23, 49, 0.72);
  --bg-card-hover: rgba(36, 35, 72, 0.92);
  --bg-glass: rgba(18, 18, 39, 0.68);
  
  --border-subtle: rgba(224, 219, 255, 0.12);
  --border-glow: rgba(139, 124, 255, 0.42);
  --border-focus: #a99cff;

  --accent-cyan: #a99cff;
  --accent-cyan-dim: rgba(169, 156, 255, 0.16);
  --accent-blue: #6ea8ff;
  --accent-purple: #c084fc;
  --accent-magenta: #fb7185;
  --accent-green: #34d399;
  --accent-yellow: #fbbf24;
  --accent-red: #fb7185;

  --text-main: #f8f7ff;
  --text-muted: #b5b2cb;
  --text-dim: #777590;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(192, 132, 252, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 38%, rgba(110, 168, 255, 0.07), transparent 30rem),
    var(--bg-primary);
}

/* Background Atmosphere */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.45;
}

.orb-1 {
  top: -150px;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.28), rgba(110, 168, 255, 0.05));
}

.orb-2 {
  top: 35%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(110, 168, 255, 0.2), rgba(251, 113, 133, 0.04));
}

.orb-3 {
  bottom: 5%;
  right: 10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.14), rgba(169, 156, 255, 0.04));
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.max-w-narrow {
  max-width: 860px;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #d8d1ff 0%, #9d8cff 42%, #fb9bb0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(150%);
  background: rgba(9, 9, 20, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(9, 9, 20, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  border: 1px solid var(--accent-cyan);
  opacity: 0.6;
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.brand-text span {
  color: var(--accent-cyan);
}

.brand-text .tld {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0099ff 100%);
  color: #03101d;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
  background: linear-gradient(135deg, #33f3ff 0%, #1ea7ff 100%);
}

.btn-primary-nav {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00a2ff 100%);
  color: #041424;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-primary-nav:hover {
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.btn-outline-nav {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-outline-nav:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.plus-icon {
  font-weight: 800;
  color: var(--accent-cyan);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem;
  position: relative;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.badge-tag {
  background: var(--accent-cyan);
  color: #05101e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto 2.25rem;
  max-width: 720px;
}

/* Universal Hero Search */
.hero-search-wrapper {
  margin: 0 auto 2.5rem;
  max-width: 820px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(14, 21, 34, 0.95);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.15);
  transition: all var(--transition-normal);
}

.search-input-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.35);
  transform: translateY(-2px);
}

.search-icon {
  color: var(--accent-cyan);
  margin-right: 0.85rem;
  flex-shrink: 0;
}

.search-input-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  padding: 0.6rem 0;
}

.search-input-box input::placeholder {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

.quick-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quick-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-chip:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Hero Stats */
.hero-stats-row {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-sep {
  width: 1px;
  height: 35px;
  background: var(--border-subtle);
}

/* Sections */
.section-padded {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.sub-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
}

/* Cards & Glassmorphism */
.glass-card {
  background: linear-gradient(145deg, rgba(31, 30, 64, 0.78), rgba(14, 14, 31, 0.72));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: var(--shadow-card);
}

/* Interactive Error Breakdown Decrypter */
.decrypter-box {
  padding: 2.25rem;
  border-color: rgba(169, 156, 255, 0.34);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), 0 0 42px rgba(169, 156, 255, 0.08);
}

.decrypter-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.dec-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.dec-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.dec-tab.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.decrypter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 2.5rem;
  align-items: start;
  min-width: 0;
}

.dec-input-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.form-select, select, textarea, input[type="text"] {
  width: 100%;
  background: rgba(10, 15, 24, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus, select:focus, textarea:focus, input[type="text"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.18);
}

.or-divider {
  text-align: center;
  position: relative;
  margin: 0.5rem 0;
}

.or-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
  z-index: 1;
}

.or-divider span {
  position: relative;
  z-index: 2;
  background: #111724;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-weight: 700;
}

/* Decrypter Result Breakdown Card */
.dec-result-col {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  animation: fadeIn 0.3s ease;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}

.error-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.result-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.result-verified {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.breakdown-cards {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.breakdown-subcard {
  min-width: 0;
  overflow: hidden;
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.breakdown-subcard.cause { border-left: 3px solid #f87171; }
.breakdown-subcard.fix { border-left: 3px solid var(--accent-cyan); }
.breakdown-subcard.command { border-left: 3px solid var(--accent-purple); }
.breakdown-subcard.tip { border-left: 3px solid var(--accent-green); }

.subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.subcard-header strong {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breakdown-subcard p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

pre {
  background: #04070c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #38bdf8;
  margin-top: 0.35rem;
}

.copy-command-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-command-btn:hover {
  background: var(--accent-cyan);
  color: #03101d;
}

/* Knowledgebase Filter Controls */
.kb-filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.filter-chip.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.filter-chip span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.8;
}

.kb-search-inline input {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  min-width: 240px;
  border-radius: var(--radius-full);
}

/* Knowledgebase Cards Grid */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.kb-card {
  background: linear-gradient(160deg, rgba(29, 29, 60, 0.78), rgba(13, 13, 29, 0.78));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  backdrop-filter: blur(14px);
}

.kb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

.kb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.os-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.os-pill.windows { background: rgba(0, 153, 255, 0.15); color: #60a5fa; }
.os-pill.linux { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.os-pill.web { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.os-pill.dev { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.os-pill.performance { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.error-code-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.kb-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.kb-symptom {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.15rem;
  flex: 1;
}

.kb-code-box {
  background: #05080e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.kb-code-box code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-copy-icon-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  transition: color var(--transition-fast);
}

.kb-copy-icon-btn:hover {
  color: var(--accent-cyan);
}

.kb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.kb-details-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kb-details-btn:hover {
  text-decoration: underline;
}

.kb-votes {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Empty State */
.empty-results-box {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(16, 23, 36, 0.4);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-results-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.empty-results-box p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Cheatsheet Section */
.cheatsheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  min-width: 0;
}

.cheat-card {
  min-width: 0;
  max-width: 100%;
  padding: 2.25rem;
}

.cheat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cheat-os-icon {
  font-size: 2rem;
}

.cheat-header h3 {
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cheat-header small {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.cheat-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cheat-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.cheat-info {
  min-width: 0;
}

.cheat-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.cheat-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.code-snippet-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  background: #05080e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.code-snippet-row code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  padding: 0.55rem 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}

.snippet-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.snippet-copy-btn:hover {
  background: var(--accent-cyan);
  color: #03101d;
}

/* AI Tips Assistant */
.ai-tips-section {
  position: relative;
}

.ai-tips-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border-color: rgba(255, 129, 87, 0.34);
  background: linear-gradient(145deg, rgba(53, 35, 31, 0.88), rgba(22, 19, 19, 0.86));
}

.ai-panel-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ai-spark,
.ai-result-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #24110c;
  background: linear-gradient(135deg, #ffd18a, #ff8157);
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(255, 129, 87, 0.22);
}

.ai-panel-intro h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.ai-panel-intro p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.ai-input-row {
  display: flex;
  gap: 0.75rem;
}

.ai-input-row input {
  flex: 1;
  min-width: 0;
  background: rgba(15, 14, 15, 0.94);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  outline: none;
}

.ai-input-row input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(255, 129, 87, 0.16);
}

.ai-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1.25rem;
}

.ai-suggestion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.78rem;
}

.ai-suggestion:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(255, 129, 87, 0.08);
}

.ai-result {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 129, 87, 0.07);
  border: 1px solid rgba(255, 129, 87, 0.2);
}

.ai-result-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 1rem;
}

.ai-result strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ai-result p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ai-nav-link {
  color: #ffad86;
}

.ai-nav-link span {
  color: var(--accent-yellow);
}

/* Pro Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.tip-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.tip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.25);
}

.tip-icon-box {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.tip-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.tip-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tip-card code {
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.tip-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* CTA Banner */
.cta-banner-section {
  padding: 4rem 0 6rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(14, 24, 40, 0.95), rgba(8, 12, 20, 0.9));
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.1);
}

.cta-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.25rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #070711;
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 320px;
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.footer-links-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-notes code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.88);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 580px;
  background: #0d131e;
  border: 1px solid var(--border-glow);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-dialog.modal-lg {
  max-width: 760px;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.modal-os-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
}

.modal-icon {
  font-size: 1.75rem;
}

.modal-title-group h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.modal-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.modal-section p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-list {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.modal-feedback-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.feedback-buttons {
  display: flex;
  gap: 0.65rem;
}

.btn-vote {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-vote:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 300;
  pointer-events: none;
}

.toast {
  padding: 0.9rem 1.4rem;
  background: #0e1522;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: var(--text-main);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .decrypter-grid {
    grid-template-columns: 1fr;
  }
  .cheatsheet-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #0b0b19;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-stats-row {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-stat-sep {
    display: none;
  }
  .kb-filters-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .kb-search-inline input {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .decrypter-box,
  .cheat-card,
  .ai-tips-panel,
  .modal-dialog {
    padding: 1.35rem;
  }

  .ai-input-row {
    flex-direction: column;
  }

  .ai-input-row .btn {
    width: 100%;
  }

  .result-header,
  .modal-feedback-box {
    flex-direction: column;
    align-items: stretch;
  }

  .result-verified {
    align-self: flex-start;
  }

  .feedback-buttons {
    flex-wrap: wrap;
  }
}

/* Aurora Graphite finishing details */
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 3px;
}

.btn-primary,
.btn-primary-nav {
  background: linear-gradient(135deg, #c4baff 0%, #8b7cf6 48%, #f08da5 100%);
  box-shadow: 0 8px 24px rgba(139, 124, 246, 0.28);
}

.btn-primary:hover,
.btn-primary-nav:hover {
  background: linear-gradient(135deg, #ddd8ff 0%, #a99cff 48%, #f7a7b9 100%);
  box-shadow: 0 10px 30px rgba(169, 156, 255, 0.42);
}

.logo-mark {
  background: linear-gradient(135deg, rgba(169, 156, 255, 0.24), rgba(251, 113, 133, 0.18));
  box-shadow: inset 0 0 18px rgba(169, 156, 255, 0.1);
}

.search-input-box {
  border-color: rgba(169, 156, 255, 0.42);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 28px rgba(169, 156, 255, 0.13);
}

.search-input-box:focus-within {
  border-color: #c4baff;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.58), 0 0 38px rgba(169, 156, 255, 0.28);
}

.dec-tab.active,
.filter-chip.active {
  background: rgba(169, 156, 255, 0.15);
  border-color: #a99cff;
  color: #d8d1ff;
  box-shadow: 0 0 18px rgba(169, 156, 255, 0.18);
}

/* Mobile viewport safeguards */
@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-content {
    height: 64px;
  }

  .site-header .brand-logo {
    gap: 0.5rem;
    font-size: 0.98rem;
    min-width: 0;
  }

  .site-header .logo-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .site-header .logo-mark svg {
    width: 18px;
    height: 18px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-outline-nav,
  .header-actions .btn-primary-nav {
    display: none;
  }

  .mobile-toggle {
    padding: 0.5rem 0.25rem;
  }

  .nav-menu {
    top: 64px;
  }

  .hero-section {
    padding: 3rem 0 2.5rem;
  }

  .pill-badge {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.7rem;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .search-input-box {
    padding-left: 0.85rem;
    padding-right: 0.5rem;
  }

  .search-input-box input {
    min-width: 0;
    font-size: 0.9rem;
  }

  .search-input-box input::placeholder {
    font-size: 0.78rem;
  }

  .quick-tags-row {
    justify-content: flex-start;
  }

  .quick-label {
    width: 100%;
    text-align: left;
  }

  .tag-chip {
    font-size: 0.68rem;
    padding: 0.25rem 0.55rem;
  }

  .hero-stats-row {
    width: 100%;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .section-padded {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-desc {
    font-size: 0.92rem;
    margin-bottom: 2rem;
  }

  .decrypter-box,
  .cheat-card {
    padding: 1rem;
  }

  .decrypter-tabs {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .dec-tab {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.6rem 0.75rem;
  }

  .dec-result-col {
    padding: 1rem;
    min-width: 0;
  }

  .result-header h3 {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .breakdown-subcard {
    padding: 0.85rem;
  }

  .subcard-header {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .subcard-header strong {
    font-size: 0.8rem;
  }

  .copy-command-btn {
    flex-shrink: 0;
    font-size: 0.65rem;
  }

  pre,
  .code-snippet-row code,
  .kb-code-box code {
    max-width: 100%;
    font-size: 0.7rem;
  }

  .kb-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-card {
    min-width: 0;
    padding: 1.15rem;
  }

  .filter-chips {
    gap: 0.4rem;
  }

  .filter-chip {
    font-size: 0.74rem;
    padding: 0.4rem 0.7rem;
  }

  .kb-search-inline input {
    min-width: 0;
  }

  .code-snippet-row {
    min-width: 0;
  }

  .code-snippet-row code {
    min-width: 0;
  }

  .tips-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tip-card {
    padding: 1.25rem;
  }

  .cta-banner-section {
    padding: 2rem 0 3.5rem;
  }

  .cta-box {
    padding: 2.5rem 1rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 0.75rem;
    overflow-y: auto;
  }

  .modal-dialog,
  .modal-dialog.modal-lg {
    max-height: calc(100vh - 1.5rem);
    padding: 1rem;
    margin: 0;
  }

  .modal-title-group h3 {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    font-size: 0.78rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Obsidian Ember theme */
:root {
  --bg-primary: #0d0d0f;
  --bg-secondary: #171719;
  --bg-card: rgba(31, 28, 27, 0.82);
  --bg-card-hover: rgba(49, 40, 36, 0.94);
  --bg-glass: rgba(23, 22, 23, 0.78);

  --border-subtle: rgba(255, 237, 224, 0.13);
  --border-glow: rgba(255, 126, 82, 0.48);
  --border-focus: #ff9b72;

  --accent-cyan: #ff8157;
  --accent-cyan-dim: rgba(255, 129, 87, 0.15);
  --accent-blue: #f5b84b;
  --accent-purple: #d98bff;
  --accent-magenta: #ff668f;
  --accent-green: #55d6a0;
  --accent-yellow: #ffc857;
  --accent-red: #ff6b6b;

  --text-main: #fff8f2;
  --text-muted: #c9beb7;
  --text-dim: #847a75;

  --shadow-card: 0 14px 38px -12px rgba(0, 0, 0, 0.68), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 28px rgba(255, 129, 87, 0.22);
}

body {
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 112, 65, 0.13), transparent 27rem),
    radial-gradient(circle at 92% 28%, rgba(245, 184, 75, 0.09), transparent 30rem),
    linear-gradient(135deg, #0d0d0f 0%, #121112 52%, #0d0d0f 100%);
}

.glow-orb {
  opacity: 0.3;
  filter: blur(135px);
}

.orb-1 {
  background: radial-gradient(circle, rgba(255, 112, 65, 0.38), rgba(255, 200, 87, 0.04));
}

.orb-2 {
  background: radial-gradient(circle, rgba(218, 139, 255, 0.16), rgba(255, 102, 143, 0.04));
}

.orb-3 {
  background: radial-gradient(circle, rgba(85, 214, 160, 0.12), rgba(255, 129, 87, 0.04));
}

.grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255, 248, 242, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 248, 242, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
}

.gradient-text {
  display: inline-block;
  color: #d85f52;
  background: linear-gradient(120deg, #d85f52 0%, #e56d59 48%, #d94b70 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #d85f52;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text {
    -webkit-text-fill-color: transparent;
  }
}

.site-header {
  background: rgba(13, 13, 15, 0.84);
  border-bottom-color: rgba(255, 129, 87, 0.16);
}

.site-header.scrolled {
  background: rgba(13, 13, 15, 0.97);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.62);
}

.logo-mark {
  background: linear-gradient(135deg, rgba(255, 129, 87, 0.22), rgba(245, 184, 75, 0.14));
  border-color: rgba(255, 129, 87, 0.5);
  box-shadow: inset 0 0 18px rgba(255, 129, 87, 0.1);
}

.brand-text span,
.nav-link:hover,
.plus-icon,
.search-icon,
.stat-number,
.sub-badge,
.footer-links-col a:hover,
.kb-details-btn,
.kb-copy-icon-btn:hover,
.search-clear-btn:hover {
  color: var(--accent-cyan);
}

.btn-primary,
.btn-primary-nav {
  background: linear-gradient(135deg, #ffb36b 0%, #ff8157 52%, #ed5d67 100%);
  color: #24110c;
  box-shadow: 0 8px 24px rgba(255, 105, 73, 0.28);
}

.btn-primary:hover,
.btn-primary-nav:hover {
  background: linear-gradient(135deg, #ffd18a 0%, #ff9b72 52%, #ff7585 100%);
  box-shadow: 0 10px 30px rgba(255, 129, 87, 0.4);
}

.btn-outline-nav:hover,
.btn-outline:hover,
.btn-glass:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(255, 129, 87, 0.08);
}

.pill-badge,
.alert-box {
  background: rgba(255, 129, 87, 0.08);
  border-color: rgba(255, 129, 87, 0.28);
  color: #ffad86;
}

.badge-dot,
.status-dot {
  background: var(--accent-green);
}

.badge-tag {
  background: var(--accent-cyan);
}

.search-input-box {
  background: rgba(22, 19, 19, 0.96);
  border-color: rgba(255, 129, 87, 0.46);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 129, 87, 0.12);
}

.search-input-box:focus-within {
  border-color: #ffad86;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.62), 0 0 38px rgba(255, 129, 87, 0.25);
}

.tag-chip:hover,
.dec-tab.active,
.filter-chip.active {
  background: rgba(255, 129, 87, 0.13);
  border-color: var(--accent-cyan);
  color: #ffb18f;
  box-shadow: 0 0 18px rgba(255, 129, 87, 0.16);
}

.glass-card,
.kb-card {
  background: linear-gradient(145deg, rgba(38, 33, 31, 0.84), rgba(19, 18, 19, 0.82));
  border-color: rgba(255, 237, 224, 0.13);
}

.glass-card:hover,
.kb-card:hover,
.tip-card:hover {
  border-color: rgba(255, 129, 87, 0.38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.58), 0 0 22px rgba(255, 129, 87, 0.1);
}

.decrypter-box {
  border-color: rgba(255, 129, 87, 0.34);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4), 0 0 42px rgba(255, 129, 87, 0.08);
}

.form-select,
select,
textarea,
input[type="text"] {
  background: rgba(15, 14, 15, 0.94);
}

.form-select:focus,
select:focus,
textarea:focus,
input[type="text"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(255, 129, 87, 0.16);
}

.cta-box {
  background: linear-gradient(135deg, rgba(48, 29, 25, 0.94), rgba(20, 18, 18, 0.94));
  border-color: rgba(255, 129, 87, 0.34);
  box-shadow: 0 0 50px rgba(255, 129, 87, 0.09);
}

.modal-dialog {
  background: #191617;
  border-color: rgba(255, 129, 87, 0.48);
}

.toast {
  background: #1b1717;
  border-color: rgba(255, 129, 87, 0.48);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: #ffc857;
}

/* Professional navigation spacing and responsive layout */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.8vw, 1.65rem);
  flex: 1;
  margin: 0 1.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}

.ai-nav-link {
  gap: 0.35rem;
}

@media (max-width: 1180px) {
  .nav-menu {
    gap: 0.85rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .header-actions {
    gap: 0.6rem;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(13, 13, 15, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover {
    background: rgba(255, 129, 87, 0.08);
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    top: 64px;
    padding: 1rem;
    gap: 0.25rem;
  }
}

/* Theme control (retained for compatibility with saved markup) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font: 600 0.78rem var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Professional light theme */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f4f7fb;
  --bg-secondary: #e9eef6;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --border-subtle: rgba(22, 42, 70, 0.14);
  --border-glow: rgba(203, 91, 57, 0.36);
  --border-focus: #c85d3b;
  --accent-cyan: #c85d3b;
  --accent-cyan-dim: rgba(200, 93, 59, 0.1);
  --accent-blue: #2563a8;
  --accent-purple: #8b45a8;
  --accent-magenta: #d94b70;
  --accent-green: #16845c;
  --accent-yellow: #a96b00;
  --accent-red: #c43f45;
  --text-main: #182331;
  --text-muted: #526173;
  --text-dim: #718096;
  --shadow-card: 0 12px 30px rgba(39, 55, 78, 0.1), 0 0 0 1px var(--border-subtle);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 174, 122, 0.22), transparent 27rem),
    radial-gradient(circle at 92% 28%, rgba(117, 173, 235, 0.18), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 52%, #f8fafc 100%);
}

[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(34, 54, 78, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 54, 78, 0.045) 1px, transparent 1px);
}

[data-theme="light"] .glow-orb {
  opacity: 0.2;
}

[data-theme="light"] .site-header,
[data-theme="light"] .site-header.scrolled {
  background: rgba(248, 250, 252, 0.88);
  border-bottom-color: rgba(45, 63, 84, 0.14);
  box-shadow: 0 8px 24px rgba(39, 55, 78, 0.08);
}

[data-theme="light"] .logo-mark {
  background: linear-gradient(135deg, #fff0e8, #fce2d8);
  border-color: rgba(200, 93, 59, 0.38);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .kb-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(45, 63, 84, 0.14);
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .kb-card:hover,
[data-theme="light"] .tip-card:hover,
[data-theme="light"] .glass-card:hover {
  background: #ffffff;
  border-color: rgba(200, 93, 59, 0.4);
  box-shadow: 0 16px 34px rgba(39, 55, 78, 0.13);
}

[data-theme="light"] .search-input-box,
[data-theme="light"] .form-select,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] input[type="text"],
[data-theme="light"] .ai-input-row input {
  background: #ffffff;
  color: var(--text-main);
  border-color: rgba(45, 63, 84, 0.2);
  box-shadow: 0 8px 24px rgba(39, 55, 78, 0.08);
}

[data-theme="light"] .search-input-box:focus-within,
[data-theme="light"] .form-select:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] .ai-input-row input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(200, 93, 59, 0.14);
}

[data-theme="light"] .dec-result-col,
[data-theme="light"] .breakdown-subcard,
[data-theme="light"] .kb-code-box,
[data-theme="light"] pre,
[data-theme="light"] .code-snippet-row {
  background: #f7f9fc;
  border-color: rgba(45, 63, 84, 0.14);
}

[data-theme="light"] pre,
[data-theme="light"] .kb-code-box code,
[data-theme="light"] .code-snippet-row code {
  color: #135f91;
}

[data-theme="light"] .nav-menu {
  background: rgba(248, 250, 252, 0.98);
}

[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #fff1e9, #f8fbff);
  box-shadow: 0 16px 38px rgba(39, 55, 78, 0.1);
}

[data-theme="light"] .site-footer {
  background: #e9eef5;
}

[data-theme="light"] .modal-dialog,
[data-theme="light"] .toast {
  background: #ffffff;
  color: var(--text-main);
}

/* Keep the brand and primary links side by side on tablet-sized screens. */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-content {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .site-header .brand-logo {
    flex: 0 0 auto;
    gap: 0.45rem;
    font-size: 1rem;
  }

  .site-header .logo-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .nav-menu,
  .nav-menu.open {
    display: flex;
    position: static;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.55rem;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    flex-direction: row;
  }

  .nav-link {
    width: auto;
    min-height: 40px;
    padding: 0.25rem 0;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: 0.25rem;
  }

  .header-actions .btn,
  .mobile-toggle {
    display: none;
  }
}

@media (max-width: 600px) {
  .theme-toggle {
    min-width: 40px;
    justify-content: center;
    padding: 0.5rem;
  }

  .theme-toggle-label {
    display: none;
  }
}

/* Header spacing refinement: keeps the existing colors and improves alignment */
.site-header .container {
  max-width: 1240px;
}

.header-content {
  min-height: 68px;
  height: 68px;
  gap: 1.25rem;
}

.brand-logo {
  flex: 0 0 auto;
  margin: 0;
}

.nav-menu {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 auto;
  gap: clamp(1rem, 1.55vw, 1.6rem);
}

.nav-link {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.header-actions {
  flex: 0 0 auto;
  gap: 0.75rem;
  margin: 0;
}

.header-actions .btn {
  white-space: nowrap;
  margin: 0;
}

.theme-toggle {
  margin: 0;
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .header-content {
    gap: 0.8rem;
  }

  .nav-menu {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-actions .btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .header-content {
    height: 68px;
  }

  .nav-menu {
    margin: 0;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.7rem 0.75rem;
  }
}

@media (max-width: 600px) {
  .header-content {
    height: 64px;
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .nav-menu {
    top: 64px;
    padding: 0.75rem 1rem 1rem;
  }
}

/* Final header alignment: balanced spacing without changing the theme colors */
@media (min-width: 1025px) {
  .header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.5rem;
  }

  .brand-logo {
    min-width: max-content;
  }

  .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.55rem, 0.9vw, 0.95rem);
    min-width: 0;
    margin: 0;
  }

  .nav-link {
    flex: 0 0 auto;
    font-size: clamp(0.78rem, 0.85vw, 0.88rem);
    white-space: nowrap;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
  }

  .header-actions .btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .theme-toggle {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .header-content {
    column-gap: 1rem;
  }

  .nav-menu {
    gap: 0.65rem;
  }

  .nav-link {
    font-size: 0.76rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-actions .btn {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

@media (max-width: 1024px) {
  .header-content {
    display: flex;
    justify-content: space-between;
  }
}

/* Bright transparent glass header */
.site-header,
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 28px rgba(96, 112, 132, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.site-header.scrolled,
[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(200, 93, 59, 0.22);
  box-shadow: 0 10px 32px rgba(96, 112, 132, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

/* Dark plum theme inspired by the supplied reference */
:root {
  color-scheme: dark;
  --bg-primary: #1c1922;
  --bg-secondary: #25212d;
  --bg-card: rgba(45, 40, 54, 0.94);
  --bg-card-hover: rgba(56, 49, 67, 0.98);
  --bg-glass: rgba(39, 34, 48, 0.94);
  --border-subtle: rgba(226, 217, 244, 0.12);
  --border-glow: rgba(169, 115, 229, 0.48);
  --border-focus: #bd8af2;
  --accent-cyan: #b88aed;
  --accent-cyan-dim: rgba(184, 138, 237, 0.17);
  --accent-blue: #9b8cf4;
  --accent-purple: #c39af0;
  --accent-magenta: #d49be9;
  --accent-green: #7ad5ac;
  --accent-yellow: #e6c878;
  --accent-red: #ee8a9b;
  --text-main: #f7f5fb;
  --text-muted: #d0cad9;
  --text-dim: #aaa3b5;
  --shadow-card: 0 12px 32px rgba(10, 8, 15, 0.3), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 25px rgba(184, 138, 237, 0.2);
}

html {
  background: var(--bg-primary);
  color: var(--text-main);
}

body {
  background:
    radial-gradient(circle at 15% 5%, rgba(128, 83, 166, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 42%, rgba(106, 72, 139, 0.12), transparent 34rem),
    linear-gradient(145deg, #1c1922 0%, #211b29 55%, #1b1821 100%);
  color: var(--text-main);
}

.site-header,
.site-header.scrolled {
  background: rgba(29, 26, 36, 0.94);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 8px 28px rgba(10, 8, 15, 0.25);
}

.glass-card,
.kb-card {
  background: linear-gradient(145deg, rgba(48, 43, 58, 0.96), rgba(38, 34, 46, 0.96));
  border-color: var(--border-subtle);
}

.glass-card:hover,
.kb-card:hover,
.tip-card:hover {
  border-color: rgba(184, 138, 237, 0.42);
}

.ai-tips-panel {
  background: linear-gradient(145deg, rgba(49, 41, 59, 0.98), rgba(38, 34, 46, 0.98));
  border-color: rgba(184, 138, 237, 0.3);
}

.ai-spark,
.ai-result-icon {
  color: #fff;
  background: linear-gradient(135deg, #aa79dd, #8158b5);
  box-shadow: 0 0 20px rgba(169, 115, 229, 0.2);
}

.ai-result {
  background: rgba(184, 138, 237, 0.08);
  border-color: rgba(184, 138, 237, 0.22);
}

.ai-nav-link {
  color: var(--text-muted);
}

.btn-primary,
.btn-primary-nav {
  background: linear-gradient(135deg, #a97be0, #8055b7);
  color: #fff;
  box-shadow: 0 8px 24px rgba(126, 81, 177, 0.3);
}

.btn-primary:hover,
.btn-primary-nav:hover {
  background: linear-gradient(135deg, #bb91eb, #9168c5);
  color: #fff;
}

.search-input-box,
.form-select,
select,
textarea,
input[type="text"],
input[type="search"],
.ai-input-row input {
  background-color: rgba(31, 28, 39, 0.98);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.search-input-box:focus-within,
.form-select:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus,
.ai-input-row input:focus {
  border-color: var(--accent-cyan);
}

.dec-result-col {
  background: rgba(31, 28, 39, 0.96);
}

.or-divider span {
  background: #292431;
}

pre,
.kb-code-box,
.code-snippet-row {
  background: #211e29;
}

.cta-box {
  background: linear-gradient(135deg, rgba(55, 44, 68, 0.98), rgba(35, 31, 43, 0.98));
  border-color: rgba(184, 138, 237, 0.32);
  box-shadow: 0 0 45px rgba(126, 81, 177, 0.1);
}

.site-footer {
  background: #19161f;
}

.modal-dialog,
.toast {
  background: #292431;
  color: var(--text-main);
  border-color: rgba(184, 138, 237, 0.36);
}

.brand-text span,
.nav-link:hover,
.plus-icon,
.search-icon,
.stat-number,
.sub-badge,
.footer-links-col a:hover,
.kb-details-btn,
.kb-copy-icon-btn:hover,
.search-clear-btn:hover {
  color: var(--accent-cyan);
}

.gradient-text {
  background: linear-gradient(120deg, #e4d2fb, #bb8ae9 55%, #d5a5ec);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: #c9a3f3;
}

@media (max-width: 1024px) {
  .nav-menu {
    background: rgba(35, 31, 43, 0.98);
  }
}

/* Keep the terminal mark white against its colored tile. */
.logo-mark {
  color: #fff;
}

/* Keep the selected filter label and count consistently white. */
.filter-chip.active,
.filter-chip.active span {
  color: #fff;
}

/* White hover glow for the AI tip button, while preserving its purple fill. */
#getAiTipBtn:hover,
#getAiTipBtn:focus-visible {
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.45), 0 0 42px rgba(255, 255, 255, 0.2);
}

/* Use white for decorative and interactive glow effects throughout the page. */
:root {
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.28);
}

.pulse-ring {
  border-color: #fff;
}

.badge-dot,
.status-dot {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.logo-mark {
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.2);
}

.btn-primary,
.btn-primary-nav {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.24);
}

.btn-primary:hover,
.btn-primary-nav:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.38);
}

.search-input-box {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 255, 255, 0.18);
}

.search-input-box:focus-within {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.58), 0 0 38px rgba(255, 255, 255, 0.32);
}

.dec-tab.active,
.filter-chip.active {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
}

.glass-card:hover,
.kb-card:hover,
.tip-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.58), 0 0 22px rgba(255, 255, 255, 0.16);
}

.decrypter-box {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4), 0 0 42px rgba(255, 255, 255, 0.14);
}

.cta-box {
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.16);
}

.ai-spark,
.ai-result-icon {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.24);
}

/* Match the hero badge to the site's plum and lavender palette. */
.pill-badge {
  background: rgba(184, 138, 237, 0.1);
  border-color: rgba(184, 138, 237, 0.32);
  color: #d8c2f3;
}

.badge-tag {
  background: var(--accent-cyan);
  color: #211b29;
}

/* Keep the selected DevOps tab in the same plum-and-lavender palette. */
.dec-tab.active {
  background: rgba(184, 138, 237, 0.14);
  border-color: rgba(184, 138, 237, 0.72);
  color: #e4d2fb;
  box-shadow: 0 0 0 1px rgba(184, 138, 237, 0.22), 0 0 18px rgba(184, 138, 237, 0.22);
}

.dec-tab.active:hover {
  background: rgba(184, 138, 237, 0.2);
  border-color: #c9a3f3;
}

/* Softer, consistent lavender glows across the site */
:root {
  --shadow-glow: 0 0 18px rgba(184, 138, 237, 0.1);
}

.pulse-ring {
  border-color: #c9a3f3;
  opacity: 0.35;
}

.badge-dot,
.status-dot {
  box-shadow: 0 0 5px rgba(184, 138, 237, 0.35);
}

.logo-mark {
  box-shadow: inset 0 0 12px rgba(184, 138, 237, 0.12);
}

.btn-primary,
.btn-primary-nav {
  box-shadow: 0 4px 14px rgba(126, 81, 177, 0.18);
}

.btn-primary:hover,
.btn-primary-nav:hover {
  box-shadow: 0 6px 18px rgba(169, 115, 229, 0.24);
}

#getAiTipBtn:hover,
#getAiTipBtn:focus-visible {
  box-shadow: 0 0 12px rgba(184, 138, 237, 0.2);
}

.search-input-box {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(184, 138, 237, 0.08);
}

.search-input-box:focus-within {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.36), 0 0 20px rgba(184, 138, 237, 0.14);
}

.dec-tab.active,
.filter-chip.active {
  box-shadow: 0 0 10px rgba(184, 138, 237, 0.12);
}

/* Match the Back to Search action to the site's plum-and-lavender palette. */
.cta-actions .btn-glass {
  background: rgba(184, 138, 237, 0.1);
  border-color: rgba(184, 138, 237, 0.42);
  color: #e4d2fb;
}

.cta-actions .btn-glass:hover {
  background: rgba(184, 138, 237, 0.16);
  border-color: rgba(184, 138, 237, 0.62);
  color: #f7f5fb;
  box-shadow: 0 6px 18px rgba(184, 138, 237, 0.12);
}

.glass-card:hover,
.kb-card:hover,
.tip-card:hover {
  box-shadow: 0 12px 28px rgba(10, 8, 15, 0.32), 0 0 14px rgba(184, 138, 237, 0.08);
}

.decrypter-box {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 24px rgba(184, 138, 237, 0.07);
}

.cta-box {
  box-shadow: 0 0 28px rgba(184, 138, 237, 0.08);
}

.ai-spark,
.ai-result-icon {
  box-shadow: 0 0 12px rgba(184, 138, 237, 0.12);
}

/* Match every terminal logo icon to the site's plum-and-lavender palette. */
.logo-mark {
  color: #f7f5fb;
  background: linear-gradient(135deg, rgba(184, 138, 237, 0.2), rgba(106, 72, 139, 0.18));
  border-color: rgba(184, 138, 237, 0.48);
  box-shadow: inset 0 0 12px rgba(184, 138, 237, 0.1);
}

/* Match knowledgebase filter chips to the site's plum-and-lavender palette. */
.filter-chip {
  background: rgba(48, 43, 58, 0.72);
  border-color: rgba(226, 217, 244, 0.14);
  color: #d0cad9;
}

.filter-chip:hover {
  background: rgba(184, 138, 237, 0.09);
  border-color: rgba(184, 138, 237, 0.42);
  color: #f7f5fb;
}

.filter-chip.active,
.filter-chip.active span {
  background: rgba(184, 138, 237, 0.14);
  border-color: rgba(184, 138, 237, 0.68);
  color: #e4d2fb;
  box-shadow: 0 0 10px rgba(184, 138, 237, 0.12);
}

/* Match the header's Submit Error Tip button to the plum-and-lavender theme. */
#openSubmitModalBtn {
  background: rgba(184, 138, 237, 0.08);
  border-color: rgba(184, 138, 237, 0.42);
  color: #e4d2fb;
  box-shadow: none;
}

#openSubmitModalBtn .plus-icon {
  color: #c9a3f3;
}

#openSubmitModalBtn:hover {
  background: rgba(184, 138, 237, 0.15);
  border-color: rgba(184, 138, 237, 0.68);
  color: #f7f5fb;
  box-shadow: 0 4px 12px rgba(126, 81, 177, 0.14);
}
