@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Default Obsidian Dark Tech Theme */
  --bg-deep: #030712;
  --bg-surface: #0b0f19;
  --bg-glass: rgba(3, 7, 18, 0.75);
  --bg-glass-hover: rgba(17, 24, 39, 0.85);
  
  --ink: #f9fafb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.06);
  --line-active: rgba(99, 102, 241, 0.35);
  
  /* Accent Gradients & Colors */
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-pink: #d946ef;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  --gradient-emerald: linear-gradient(135deg, #059669, #10b981);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  
  --gold: #f59e0b;
  --danger: #ef4444;
  
  /* Shadows & Glass */
  --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.2);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Dot Matrix Grid Pattern */
  --dot-color: rgba(255, 255, 255, 0.03);
}

:root.light-mode {
  /* Color Palette - Premium Slate Light Theme */
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-glass: rgba(248, 250, 252, 0.85);
  --bg-glass-hover: rgba(241, 245, 249, 0.95);
  
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.07);
  --line-active: rgba(99, 102, 241, 0.25);
  
  /* Accents in Light Mode */
  --accent-indigo: #4f46e5;
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  --gradient-emerald: linear-gradient(135deg, #047857, #059669);
  --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(8, 145, 178, 0.06));
  
  --gold: #d97706;
  --danger: #dc2626;
  
  /* Shadows & Glass in Light Mode */
  --card-shadow: 0 20px 35px -12px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.1);
  
  /* Dot Matrix Grid Pattern in Light Mode */
  --dot-color: rgba(15, 23, 42, 0.02);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line-active) var(--bg-deep);
  scrollbar-width: thin;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

body {
  color: var(--ink);
  background: var(--bg-deep);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  
  /* dot matrix background */
  background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Ambient Background Glows */
body::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  top: 60%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-cyan);
}

/* Header & Topbar Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800; /* bold and sleek, matching the wordmark logo style */
  letter-spacing: -1.2px;
  display: flex;
  align-items: center;
  transition: transform var(--transition-normal);
}

.brand-cart {
  color: #ffffff; /* White in dark mode */
  transition: color 0.3s ease;
}

.brand-signal {
  color: #5a60f6; /* High-fidelity indigo/purple in dark mode */
  transition: color 0.3s ease;
}

:root.light-mode .brand-cart {
  color: #0f172a; /* Dark charcoal black in light mode */
}

:root.light-mode .brand-signal {
  color: #4f46e5; /* Rich premium purple-indigo in light mode */
}

.brand:hover .brand-text {
  transform: translateY(-1px) scale(1.02);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--ink);
}

.nav a.active::after {
  width: 100%;
  background: var(--gradient-primary);
}

/* Theme Switcher Button */
.theme-toggle {
  background: var(--bg-glass-hover);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
}

.theme-toggle:hover {
  transform: scale(1.05);
  border-color: var(--line-active);
  box-shadow: var(--shadow-glow);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s ease;
  fill: currentColor;
}

:root.light-mode .theme-toggle svg {
  transform: rotate(180deg);
}

/* Layout Container */
main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

/* Centered Hero Section */
.hero-center {
  text-align: center;
  padding: 72px 0 48px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--line-active);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-indigo);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
  animation: pulse 3s infinite alternate;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(120deg, var(--ink) 40%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Centered Search Terminal Box */
.search-terminal-wrapper {
  width: 100%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.search-terminal-wrapper:focus-within {
  border-color: var(--line-active);
  box-shadow: var(--shadow-glow);
}

.search-terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-terminal-bar input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink);
  padding: 4px 8px;
}

.search-terminal-bar input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.search-terminal-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.search-terminal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  padding: 0 8px;
}

.suggestion-tag {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-glass-hover);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.suggestion-tag:hover {
  color: var(--ink);
  border-color: var(--line-active);
  background: rgba(99, 102, 241, 0.05);
}

/* Horizontal Stats Ribbon */
.stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
  margin: 24px auto 64px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

@media (max-width: 640px) {
  .stats-ribbon {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
}

/* Dual-Column Sidebar Catalog Layout */
.directory-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.console-sidebar {
  position: sticky;
  top: 96px; /* below sticky topbar */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.console-widget {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.console-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-title::before {
  content: "";
  width: 4px;
  height: 12px;
  background: var(--accent-indigo);
  border-radius: 2px;
}

.console-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.category-btn .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  transition: all var(--transition-fast);
}

.category-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--ink);
  border-color: var(--line);
}

.category-btn.active {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--line-active);
  color: var(--ink);
}

.category-btn.active .indicator {
  border-color: var(--accent-indigo);
  background: var(--accent-indigo);
  box-shadow: 0 0 6px var(--accent-indigo);
}

/* Diagnostics List */
.diagnostics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnostic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-badge.green {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.cyan {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-badge.link {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.2);
  cursor: pointer;
}

.status-badge.link:hover {
  background: var(--accent-indigo);
  color: white;
}

.ads-notice-widget {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.02), rgba(0, 0, 0, 0));
  border-color: rgba(245, 158, 11, 0.12);
}

.console-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Catalog Area */
.catalog-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.catalog-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.catalog-header h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}

.catalog-header p {
  color: var(--muted);
  font-size: 14px;
}

/* Product Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product:hover {
  transform: translateY(-4px);
  border-color: var(--line-active);
  box-shadow: var(--shadow-glow);
}

/* AI Trust Score circle visual badge */
.audit-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.radial-gauge {
  width: 38px;
  height: 38px;
  transform: rotate(-90deg);
}

.radial-gauge .circle-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 3.5;
}

.radial-gauge .circle-progress {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.product:hover .circle-progress {
  stroke: var(--accent-indigo);
}

.score-text {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-weight: 850;
  font-size: 11.5px;
  color: var(--ink);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product:hover img {
  transform: scale(1.02);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.pill.disclosure {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.product h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.product p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price-row strong {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 850;
  color: var(--ink);
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .button {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13px;
}

/* Glassmorphic Side Drawer Detail Panel */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 100%);
  background: var(--bg-surface);
  border-left: 1px solid var(--line);
  z-index: 1001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.active .drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h2 {
  font-size: 22px;
}

.close-drawer {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.close-drawer:hover {
  color: var(--ink);
  background: var(--bg-glass-hover);
}

.drawer-content {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tabs Navigation in Drawer */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--accent-indigo);
  border-bottom-color: var(--accent-indigo);
}

.tab-panel {
  display: none;
  animation: fadeIn var(--transition-fast);
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-detail-grid {
  display: grid;
  gap: 16px;
}

.drawer-detail-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--bg-glass-hover);
}

.drawer-detail-item strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.drawer-detail-item p {
  font-size: 14.5px;
}

pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #04060b !important;
  color: #a5f3fc !important;
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.6;
}

:root.light-mode pre {
  background: #0f172a !important;
  color: #38bdf8 !important;
}

/* Machine-Readable Layer Explanation */
.ai-feed {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.ai-feed-content h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.ai-feed-content p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Submit Section & High-Tech Intake Terminal */
.submit {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  padding: 56px 0 80px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.intake-intro h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.intake-intro p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Stylized Terminal Console */
.terminal-window {
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  overflow: hidden;
  max-width: 100%;
}

:root.light-mode .terminal-window {
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.terminal-header {
  background: #0b0f19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.term-dot.close { background: #ef4444; }
.term-dot.minimize { background: #f59e0b; }
.term-dot.expand { background: #10b981; }

.terminal-title {
  color: var(--muted);
  font-size: 11.5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 500;
}

.terminal-body {
  padding: 18px;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  color: #10b981; /* terminal-green */
  font-size: 13px;
  line-height: 1.5;
}

.term-line {
  margin-bottom: 6px;
  white-space: pre-wrap;
}

.term-line.prompt {
  color: #38bdf8;
}

.term-line.info {
  color: #94a3b8;
}

.term-line.warn {
  color: #f59e0b;
}

.term-line.ok {
  color: #10b981;
  font-weight: 600;
}

.typed-cursor {
  animation: blink 1s step-end infinite;
  color: #10b981;
}

@keyframes blink {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

/* Dynamic Live Auditor Preview Section (Fades in) */
.intake-live-preview {
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 24px;
  animation: fadeIn var(--transition-normal);
}

.intake-form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--accent-indigo);
  border-radius: 2px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

form label span {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

select, input, textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--bg-deep);
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition-fast);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

:root.light-mode select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  background: var(--bg-glass-hover);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* Premium Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.button.primary {
  color: white;
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.button.primary:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-glow);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg-glass-hover);
}

.button.secondary:hover {
  background: var(--bg-glass);
  border-color: var(--line-active);
  transform: translateY(-1.5px);
}

.button.ghost {
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

.button.ghost:hover {
  color: var(--ink);
  border-color: var(--line-active);
  background: var(--bg-glass-hover);
}

/* Buyer Guide Elements */
.guide {
  max-width: 800px;
  margin: 56px auto 0;
}

.guide h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}

.notice {
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 20px;
  background: rgba(245, 158, 11, 0.04);
  color: #fbd38d;
  font-size: 14.5px;
  margin-bottom: 40px;
}

:root.light-mode .notice {
  background: rgba(245, 158, 11, 0.05);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}

.notice strong {
  color: var(--gold);
}

.ranking {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  background: var(--bg-surface);
  box-shadow: var(--card-shadow);
  margin-bottom: 32px;
  transition: border-color var(--transition-normal);
}

.ranking:hover {
  border-color: var(--line-active);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.ranking h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.ranking p {
  color: var(--muted);
  margin-bottom: 20px;
}

.criteria {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.criteria h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.criteria ul {
  padding-left: 20px;
  color: var(--muted);
}

.criteria li {
  margin-bottom: 8px;
}

/* Footer Section */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 32px clamp(16px, 5vw, 64px);
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 80px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--ink);
}

@keyframes pulse {
  0% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.3); }
  100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.25); border-color: rgba(99, 102, 241, 0.55); }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .directory-workspace {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .console-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .ads-notice-widget {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ai-feed,
  .submit {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .console-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  
  .nav-container {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  
  .nav {
    font-size: 13px;
    gap: 12px;
  }
  
  .ranking {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
  }
}
