/* ============================================================
   Omni Unified Portal — Authority Media
   Dark luxury aesthetic: deep blacks, gold accents, warm grays
   ============================================================ */

:root {
  --bg-deepest: #07070b;
  --bg-deep: #0a0a0f;
  --bg-surface: #111118;
  --bg-elevated: #18181f;
  --bg-hover: #1f1f28;

  --gold-primary: #c9a84c;
  --gold-light: #e0c96e;
  --gold-muted: #8a7434;
  --gold-dim: rgba(201, 168, 76, 0.08);
  --gold-glow: rgba(201, 168, 76, 0.15);

  --text-primary: #e8e6e1;
  --text-secondary: #9a978f;
  --text-tertiary: #5e5c56;
  --text-gold: #c9a84c;

  --status-green: #4ade80;
  --status-red: #f87171;
  --status-yellow: #fbbf24;
  --status-dim-green: rgba(74, 222, 128, 0.12);
  --status-dim-red: rgba(248, 113, 113, 0.12);

  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-medium: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 168, 76, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --sidebar-width: 280px;
  --sidebar-collapsed: 0px;
  --header-height: 56px;

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deepest);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ── Layout Shell ─────────────────────────────────── */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  height: 100vh;
  transition: grid-template-columns var(--duration-normal) var(--ease-out);
}

.shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed) 1fr;
}

/* ── Header ───────────────────────────────────────── */

.header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-toggle-sidebar {
  background: none;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.btn-toggle-sidebar:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-gold);
}

.btn-toggle-sidebar svg {
  width: 18px;
  height: 18px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumb .current {
  color: var(--text-secondary);
}

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

.btn-refresh {
  background: none;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-refresh:hover {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.btn-refresh svg {
  width: 14px;
  height: 14px;
}

.health-summary {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.health-summary .count-up {
  color: var(--status-green);
}

.health-summary .count-down {
  color: var(--status-red);
}

/* ── Sidebar ──────────────────────────────────────── */

.sidebar {
  grid-area: sidebar;
  background: var(--bg-deep);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: 30;
}

.shell.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
  position: absolute;
  height: 100vh;
  width: var(--sidebar-width);
}

.sidebar-brand {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-muted));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--bg-deepest);
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.brand-text .subtitle {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 2px;
}

.nav-group {
  margin-bottom: 8px;
}

.nav-group-label {
  padding: 10px 20px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  gap: 10px;
  cursor: pointer;
  transition: all var(--duration-fast);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.nav-item:hover {
  background: var(--bg-hover);
}

.nav-item.active {
  background: var(--gold-dim);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gold-primary);
  border-radius: 0 1px 1px 0;
}

.nav-item .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
  transition: background var(--duration-fast);
}

.nav-item .status-dot.up {
  background: var(--status-green);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.3);
}

.nav-item .status-dot.down {
  background: var(--status-red);
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.3);
}

.nav-item .status-dot.checking {
  background: var(--status-yellow);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-item-text {
  flex: 1;
  min-width: 0;
}

.nav-item-text .name {
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.active .name {
  color: var(--gold-light);
}

.nav-item-text .desc {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item .btn-external {
  opacity: 0;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.nav-item:hover .btn-external {
  opacity: 1;
}

.nav-item .btn-external:hover {
  color: var(--gold-primary);
  background: var(--gold-dim);
}

.nav-item .btn-external svg {
  width: 13px;
  height: 13px;
  display: block;
}

/* ── Main Content ─────────────────────────────────── */

.main {
  grid-area: main;
  background: var(--bg-deepest);
  overflow: hidden;
  position: relative;
}

.iframe-container {
  width: 100%;
  height: 100%;
  display: none;
}

.iframe-container.active {
  display: block;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bg-surface);
}

/* ── Dashboard (default view) ─────────────────────── */

.dashboard {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px;
  display: none;
}

.dashboard.active {
  display: block;
}

.dash-hero {
  margin-bottom: 48px;
}

.dash-hero h1 {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dash-hero h1 strong {
  font-weight: 600;
  color: var(--gold-primary);
}

.dash-hero p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
}

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--duration-fast);
}

.stat-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-elevated);
}

.stat-card .label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-card .value .unit {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.stat-card .detail {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.stat-card .value.gold {
  color: var(--gold-primary);
}

/* Service Health Grid */
.section-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.health-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.health-tile:hover {
  border-color: var(--border-gold);
  background: var(--bg-elevated);
}

.health-tile .tile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.health-tile .tile-dot.up {
  background: var(--status-green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}

.health-tile .tile-dot.down {
  background: var(--status-red);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

.health-tile .tile-dot.checking {
  background: var(--status-yellow);
  animation: pulse-dot 1.5s infinite;
}

.health-tile .tile-info {
  flex: 1;
  min-width: 0;
}

.health-tile .tile-name {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
}

.health-tile .tile-url {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-tile .tile-latency {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* Iframe blocked notice */
.iframe-blocked {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
}

.iframe-blocked.active {
  display: flex;
}

.iframe-blocked svg {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
}

.iframe-blocked p {
  font-size: 0.85rem;
  text-align: center;
  max-width: 360px;
  line-height: 1.5;
}

.iframe-blocked .service-name {
  color: var(--gold-primary);
  font-weight: 500;
}

.btn-newtab {
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all var(--duration-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-newtab:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
}

.btn-newtab svg {
  width: 14px;
  height: 14px;
}

/* ── Mobile ───────────────────────────────────────── */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 25;
}

@media (max-width: 768px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    z-index: 30;
  }

  .shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .shell.sidebar-open .mobile-overlay {
    display: block;
  }

  .shell.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    position: fixed;
  }

  .dashboard {
    padding: 24px 16px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .health-grid {
    grid-template-columns: 1fr;
  }

  .dash-hero h1 {
    font-size: 1.6rem;
  }
}

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

/* ── Scrollbar for dashboard ──────────────────────── */
.dashboard::-webkit-scrollbar {
  width: 6px;
}

.dashboard::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 3px;
}

/* ── Loading spinner for iframes ──────────────────── */
.iframe-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-deepest);
  z-index: 5;
}

.iframe-loading.active {
  display: flex;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Footer info in sidebar ───────────────────────── */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-footer .env-label {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.sidebar-footer .env-value {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ── Live stat loading/error states ───────────────── */
.loading-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.02em;
  animation: pulse-dot 1.5s infinite;
}

.err {
  font-size: 0.8rem;
  color: var(--status-red);
  font-weight: 400;
}

/* ── Search Sidebar Icon ──────────────────────────── */

.search-icon-sidebar {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon-sidebar svg {
  width: 14px;
  height: 14px;
}

.nav-item-search {
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
  padding-bottom: 10px;
}

.nav-item-search .name {
  color: var(--gold-light) !important;
}

/* ── Search View ──────────────────────────────────── */

.search-view {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.search-view.active {
  display: flex;
}

/* Search Header / Input */
.search-header {
  padding: 28px 40px 0;
  flex-shrink: 0;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 720px;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input-icon svg {
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-dim), 0 0 20px rgba(201, 168, 76, 0.06);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--bg-hover);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.search-clear-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.search-clear-btn svg {
  width: 14px;
  height: 14px;
}

/* Search Meta (result count + timing) */
.search-meta {
  padding: 12px 0 0;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
}

.search-count {
  color: var(--text-secondary);
  font-weight: 500;
}

.search-time {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

.search-loading {
  color: var(--gold-muted);
  animation: pulse-dot 1.5s infinite;
}

.search-error {
  color: var(--status-red);
}

/* Search Results Container */
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 20px 40px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 3px;
}

/* Empty State */
.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.search-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
  opacity: 0.4;
  margin-bottom: 16px;
}

.search-empty-icon svg {
  width: 48px;
  height: 48px;
}

.search-empty-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.search-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* ── Product Cards ────────────────────────────────── */

.product-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.product-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-elevated);
}

/* Product Image */
.product-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(0.95);
}

.product-image.img-error img {
  display: none;
}

.product-image.img-error::after {
  content: 'No Image';
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.product-image.no-image {
  background: var(--bg-hover);
}

.product-image.no-image span {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

/* Product Content */
.product-content {
  flex: 1;
  min-width: 0;
}

.product-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.product-brand {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.product-brand mark {
  background: var(--gold-dim);
  color: var(--gold-light);
  padding: 0 2px;
  border-radius: 2px;
}

.product-tier {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.product-name mark {
  background: var(--gold-dim);
  color: var(--gold-light);
  padding: 0 2px;
  border-radius: 2px;
}

.product-category {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.product-category mark {
  background: var(--gold-dim);
  color: var(--gold-light);
  padding: 0 2px;
  border-radius: 2px;
}

/* Score + Price */
.product-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.product-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
  font-family: var(--font-mono);
}

.product-score svg {
  width: 14px;
  height: 14px;
  color: var(--gold-primary);
}

.product-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Our Take */
.product-take {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
}

.product-take mark {
  background: var(--gold-dim);
  color: var(--gold-light);
  padding: 0 2px;
  border-radius: 2px;
}

/* Pros/Cons */
.product-pros-cons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pro-tag {
  font-size: 0.68rem;
  color: var(--status-green);
  background: var(--status-dim-green);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.con-tag {
  font-size: 0.68rem;
  color: var(--status-red);
  background: var(--status-dim-red);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Review Link */
.product-review-link {
  font-size: 0.72rem;
  color: var(--gold-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--duration-fast);
}

.product-review-link:hover {
  color: var(--gold-primary);
}

.product-review-link svg {
  width: 12px;
  height: 12px;
}

/* ── Search Mobile ────────────────────────────────── */

@media (max-width: 768px) {
  .search-header {
    padding: 16px 16px 0;
  }

  .search-results {
    padding: 12px 16px 24px;
  }

  .product-card {
    flex-direction: column;
    gap: 12px;
  }

  .product-image {
    width: 100%;
    height: 160px;
  }

  .pro-tag,
  .con-tag {
    max-width: 200px;
  }
}
