/* SpekCheck styles — single stylesheet, no build step, no external fonts.
   Organized top to bottom: tokens/reset -> layout chrome -> hero -> builder -> summary panel ->
   modals/toasts -> footer -> responsive. Screen-only; css/print.css handles the printable build sheet. */

/* ---------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------- */
:root {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #eef1f8;
  --text: #12172b;
  --text-muted: #5b6478;
  --border: #dde2ee;

  --accent: #4f5bff;
  --accent-hover: #3f4aed;
  --accent-contrast: #ffffff;
  --accent-rgb: 79, 91, 255;

  --success: #16a34a;
  --success-contrast: #ffffff;
  --success-rgb: 22, 163, 74;

  --warning: #d97706;
  --warning-rgb: 217, 119, 6;

  --danger: #dc2626;
  --danger-contrast: #ffffff;
  --danger-rgb: 220, 38, 38;

  --teal: #0d9488;
  --teal-rgb: 13, 148, 136;
  --purple: #9333ea;
  --purple-rgb: 147, 51, 234;
  --neutral-rgb: 100, 116, 139;

  --track: #e2e6f0;
  --shadow: 0 1px 2px rgba(20, 24, 45, .04), 0 8px 24px rgba(20, 24, 45, .06);
  --shadow-lg: 0 16px 40px rgba(20, 24, 45, .16), 0 2px 8px rgba(20, 24, 45, .08);
  --glow: 0 0 20px rgba(79, 91, 255, .3), 0 0 40px rgba(79, 91, 255, .15);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --header-h: 64px;
  --mobile-bar-h: 64px;
  --container-max: 1280px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0e17;
  --bg-elevated: #131829;
  --bg-elevated-2: #1a2036;
  --text: #eef1fb;
  --text-muted: #9aa3bd;
  --border: #262f4a;

  --accent: #7c8bff;
  --accent-hover: #93a0ff;
  --accent-contrast: #0b0e17;
  --accent-rgb: 124, 139, 255;

  --success: #34d399;
  --success-contrast: #06210f;
  --success-rgb: 52, 211, 153;

  --warning: #fbbf24;
  --warning-rgb: 251, 191, 36;

  --danger: #f87171;
  --danger-contrast: #2b0a0a;
  --danger-rgb: 248, 113, 113;

  --teal: #2dd4bf;
  --teal-rgb: 45, 212, 191;
  --purple: #c084fc;
  --purple-rgb: 192, 132, 252;
  --neutral-rgb: 148, 163, 184;

  --track: #232b45;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
  --glow: 0 0 20px rgba(124, 139, 255, .4), 0 0 40px rgba(124, 139, 255, .2);

  color-scheme: dark;
}

/* ---------------------------------------------------------------------
   Reset + base
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
ul { list-style: none; margin: 0; padding: 0; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow), var(--shadow-lg); }
  50% { box-shadow: 0 0 30px rgba(var(--accent-rgb), .5), var(--shadow-lg); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.noscript-banner { background: var(--danger); color: #fff; text-align: center; padding: 10px; font-weight: 700; }

.print-only { display: none; }

/* ---------------------------------------------------------------------
   Buttons + form controls (shared)
--------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated-2); color: var(--text); font-weight: 600; font-size: .9rem;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-contrast);
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  animation: shine 3s infinite;
}
.btn--primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), .4);
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.btn--ghost { background: transparent; }
.btn--small { padding: 6px 10px; font-size: .8rem; }
.btn--select { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn--select:hover { background: var(--accent-hover); }
.btn--selected { background: var(--success); border-color: var(--success); color: var(--success-contrast); }
.btn--add { background: var(--bg-elevated-2); }

.link-btn {
  background: none; border: none; padding: 0; color: var(--accent); font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem;
}

input[type="number"], input[type="search"], input[type="text"], select {
  font-family: inherit;
}

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 4px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); text-decoration: none;
}
.brand-icon { font-size: 1.4rem; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.currency-picker select {
  background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: .85rem;
}

/* ---------------------------------------------------------------------
   Ad slots — fixed min-height reserves layout space so real ads (once
   wired up per README.md) don't cause layout shift when they load.
--------------------------------------------------------------------- */
.ad-slot {
  max-width: var(--container-max); margin: 14px auto; padding: 10px;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; min-height: 90px;
  color: var(--text-muted); font-size: .75rem; background: var(--bg-elevated);
}
.ad-slot-label { text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
  padding: 60px 20px 48px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0%, transparent 50%, rgba(var(--accent-rgb), .04) 100%),
              radial-gradient(1400px 600px at 50% -20%, rgba(var(--accent-rgb), .15), transparent 65%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(var(--accent-rgb), .06) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(var(--purple-rgb), .04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 880px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
  animation: float-in .6s ease-out;
}
.hero-badges {
  color: var(--text-muted); font-size: .85rem; margin: 0 0 16px;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(var(--accent-rgb), .06);
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .4em;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 60%, var(--text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 32px;
  line-height: 1.7;
}

.preset-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
  text-align: left; margin-bottom: 28px;
}
.preset-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: left; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  position: relative;
  cursor: pointer;
}
.preset-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.preset-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.preset-card:hover::before { opacity: 1; }
.preset-card--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), var(--glow);
  background: rgba(var(--accent-rgb), .03);
}
.preset-card-icon { font-size: 1.8rem; }
.preset-card-name { font-weight: 700; }
.preset-card-desc { color: var(--text-muted); font-size: .85rem; }

.hero-quickstart { max-width: 360px; margin: 0 auto 18px; display: flex; flex-direction: column; gap: 6px; }
.hero-quickstart label { font-weight: 600; font-size: .9rem; }
.hero-budget-input {
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 1rem; text-align: center;
}
.hero-quickstart-hint { color: var(--text-muted); font-size: .75rem; }
.hero-alt { margin-top: 8px; }

/* Standard Builds Preview in Hero */
.hero-standard-builds {
  margin-bottom: 32px;
}

.hero-standard-builds h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.hero-standard-intro {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 16px;
}

.standard-builds-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.standard-build-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .15s ease;
  cursor: pointer;
}

.standard-build-mini:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .2);
  transform: translateY(-2px);
}

.standard-build-mini-icon {
  font-size: 1.8rem;
}

.standard-build-mini-name {
  font-weight: 700;
  font-size: .95rem;
  margin: 0;
}

.standard-build-mini-desc {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

.standard-build-mini-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 4px 0 0;
}

.standard-build-mini-button {
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .3);
  color: var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.standard-build-mini-button:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Hero Divider */
.hero-divider {
  margin: 28px 0;
  color: var(--text-muted);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  position: relative;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}

.hero-divider::before { left: 0; }
.hero-divider::after { right: 0; }

/* Hero Advanced Section */
.hero-advanced {
  margin-top: 24px;
}

.hero-advanced h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hero-advanced > p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 16px;
}

/* Build Mode Selector */
.build-mode-selector {
  margin-bottom: 36px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius-lg);
  text-align: center;
}

.mode-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.mode-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.mode-btn {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}

.mode-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .2);
}

.mode-btn--active {
  background: rgba(var(--accent-rgb), .1);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.mode-icon {
  font-size: 2.4rem;
}

.mode-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.mode-desc {
  font-size: .8rem;
  color: var(--text-muted);
}

/* Build Mode Toggle (compact version) */
.build-mode-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toggle-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.toggle-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.toggle-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

/* Laptop Build Card Adjustments */
.laptop-build-card .build-specs {
  padding: 8px;
  background: var(--bg);
  border-radius: 6px;
  font-size: .8rem;
  color: var(--text-muted);
}

.laptop-build-card .build-specs small {
  display: block;
  line-height: 1.4;
}

/* Ad System Styles */
.ad-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  backdrop-filter: blur(4px);
}

.ad-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.ad-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.ad-modal-close:hover {
  color: var(--text);
}

.ad-note {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .8rem;
}

.ad-slot--modal {
  min-height: 400px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0%, transparent 100%);
}

/* Admin Dashboard */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.admin-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  sticky: 0;
  background: var(--bg-elevated);
  top: 0;
}

.admin-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.admin-modal-close:hover {
  color: var(--text);
}

.admin-modal-body {
  padding: 20px;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-tab {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all .2s ease;
}

.admin-tab:hover {
  color: var(--text);
}

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

.admin-tab-content {
  display: none;
}

.admin-tab-content--active {
  display: block;
}

/* Admin Controls */
.admin-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 500;
}

.admin-control input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.admin-control input[type="number"],
.admin-control select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
}

.admin-control span {
  min-width: 150px;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

/* Admin Info */
.admin-info {
  background: rgba(var(--accent-rgb), .05);
  border-left: 3px solid var(--accent);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.admin-info h4 {
  margin: 0 0 8px;
  font-size: .95rem;
}

.admin-info p {
  margin: 6px 0;
  font-size: .9rem;
  color: var(--text-muted);
}

.admin-info ul {
  margin: 8px 0;
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-info li {
  font-size: .9rem;
  color: var(--text-muted);
}

/* Admin Placements */
.admin-placements {
  margin-bottom: 24px;
}

.placement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.placement-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.placement-label {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.placement-size {
  font-size: .8rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* GDPR Consent Banner */
.gdpr-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .95) 0%, rgba(var(--accent-rgb), .85) 100%);
  color: white;
  z-index: 250;
  animation: slide-up .4s ease-out;
  padding: 16px 20px;
}

.gdpr-consent-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gdpr-consent-text {
  flex: 1;
  min-width: 200px;
}

.gdpr-consent-text strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.gdpr-consent-text p {
  margin: 0 0 8px;
  font-size: .9rem;
  line-height: 1.5;
  opacity: .95;
}

.gdpr-consent-text a {
  color: white;
  text-decoration: underline;
  font-size: .85rem;
  font-weight: 600;
}

.gdpr-consent-text a:hover {
  opacity: .8;
}

.gdpr-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.gdpr-consent-actions .btn {
  font-size: .8rem;
  padding: 8px 14px;
  color: var(--accent);
}

.gdpr-consent-actions .btn--primary {
  background: white;
  border-color: white;
  color: var(--accent);
}

.gdpr-consent-actions .btn--primary:hover {
  opacity: .9;
}

.gdpr-consent-actions .btn--ghost {
  color: white;
  border-color: rgba(255, 255, 255, .3);
}

.gdpr-consent-actions .btn--ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, .1);
}

@media screen and (max-width: 640px) {
  .gdpr-consent-inner {
    flex-direction: column;
    gap: 12px;
  }

  .gdpr-consent-actions {
    width: 100%;
  }

  .gdpr-consent-actions .btn {
    flex: 1;
  }
}

/* ---------------------------------------------------------------------
   Builder shell
--------------------------------------------------------------------- */
.builder { max-width: var(--container-max); margin: 0 auto; padding: 16px 20px 40px; }
.builder-toolbar { margin-bottom: 14px; }
.builder-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.builder-main, .builder-side { min-width: 0; }

@media screen and (min-width: 980px) {
  .builder-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .builder-side { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* Category tabs */
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.category-tab {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: .85rem; font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.category-tab--active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.category-tab-badge {
  background: rgba(var(--accent-rgb), .15); color: var(--accent); border-radius: 999px;
  padding: 1px 7px; font-size: .72rem; font-weight: 700;
}
.category-tab--active .category-tab-badge { background: rgba(255, 255, 255, .25); color: inherit; }

/* Filters */
.picker-filters { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-search {
  flex: 1 1 200px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text);
}
.filter-sort { padding: 9px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elevated); }
.filter-toggle { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.filters-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--bg-elevated); padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; color: var(--text-muted); font-weight: 600;
}
.chip--active { background: rgba(var(--accent-rgb), .15); border-color: var(--accent); color: var(--accent); }
.chip--tier { text-transform: capitalize; }

/* Part cards */
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.picker-empty {
  grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 40px 20px;
  border: 1px dashed var(--border); border-radius: var(--radius);
}

.part-card {
  position: relative; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.part-card--selected { border-color: var(--success); box-shadow: 0 0 0 3px rgba(var(--success-rgb), .18); }
.part-card--warning { border-color: var(--warning); }
.part-card--error { border-color: var(--danger); opacity: .85; }
.part-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.part-card-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.part-card-tier {
  font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: capitalize;
  background: rgba(var(--neutral-rgb), .18); color: var(--text-muted); white-space: nowrap;
}
.part-card-tier.tier-mid { background: rgba(var(--accent-rgb), .15); color: var(--accent); }
.part-card-tier.tier-mid-high { background: rgba(var(--teal-rgb), .18); color: var(--teal); }
.part-card-tier.tier-high { background: rgba(var(--warning-rgb), .18); color: var(--warning); }
.part-card-tier.tier-enthusiast { background: rgba(var(--purple-rgb), .18); color: var(--purple); }
.part-card-name { font-size: .98rem; margin: 0; }
.perf-bar { height: 5px; border-radius: 999px; background: var(--track); overflow: hidden; }
.perf-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--success)); border-radius: 999px; }
.part-card-specs { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--text-muted); }
.part-card-specs li::before { content: "\203A"; margin-right: 6px; color: var(--accent); }
.part-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.part-card-price { font-weight: 800; font-size: 1.05rem; }
.part-card-warning {
  font-size: .75rem; background: rgba(var(--warning-rgb), .12); color: var(--warning);
  border-radius: var(--radius-sm); padding: 6px 8px;
}
.part-card--error .part-card-warning { background: rgba(var(--danger-rgb), .12); color: var(--danger); }

/* ---------------------------------------------------------------------
   Build summary panel
--------------------------------------------------------------------- */
.build-summary { display: flex; flex-direction: column; gap: 16px; }
.summary-section {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.summary-section h2 { font-size: 1.15rem; }
.summary-section h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 12px; }
.summary-section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.summary-section-title-row h2, .summary-section-title-row h3 { margin: 0; }

.fx-badge {
  font-size: .68rem; background: rgba(var(--warning-rgb), .15); color: var(--warning);
  padding: 3px 8px; border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.info-btn {
  background: none; border: 1px solid var(--border); border-radius: 50%; width: 24px; height: 24px;
  font-size: .8rem; color: var(--text-muted); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
}
.info-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Budget */
.budget-empty { color: var(--text-muted); font-size: .85rem; margin-bottom: 10px; }
.budget-input {
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated-2); color: var(--text); width: 110px; text-align: right; font-weight: 700;
}
.budget-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.budget-total { font-size: 1.4rem; font-weight: 800; }
.budget-of { color: var(--text-muted); font-size: .85rem; }
.budget-gauge { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.budget-gauge-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
.budget-gauge--ok .budget-gauge-fill { background: var(--success); }
.budget-gauge--near .budget-gauge-fill { background: var(--warning); }
.budget-gauge--over .budget-gauge-fill { background: var(--danger); }
.budget-gauge-label { font-size: .8rem; margin-top: 6px; font-weight: 600; }
.budget-gauge-label--ok { color: var(--success); }
.budget-gauge-label--near { color: var(--warning); }
.budget-gauge-label--over { color: var(--danger); }

/* Parts list */
.summary-parts-list { display: flex; flex-direction: column; gap: 8px; }
.summary-part-row {
  display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-elevated-2); flex-wrap: wrap;
}
.summary-part-row--empty { cursor: pointer; border-style: dashed; color: var(--text-muted); background: transparent; }
.summary-part-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); width: 92px; flex-shrink: 0; }
.summary-part-empty { font-size: .85rem; }
.summary-part-name { flex: 1; font-size: .87rem; font-weight: 600; min-width: 80px; }
.summary-part-price { font-weight: 700; font-size: .87rem; }
.summary-part-remove { background: none; border: none; color: var(--text-muted); font-size: .9rem; padding: 2px 6px; border-radius: 6px; }
.summary-part-remove:hover { color: var(--danger); background: rgba(var(--danger-rgb), .1); }

/* Power */
.summary-hint { color: var(--text-muted); font-size: .85rem; }
.power-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.power-bar-row { display: grid; grid-template-columns: 60px 1fr 68px; align-items: center; gap: 8px; font-size: .78rem; }
.power-bar-label { color: var(--text-muted); }
.power-bar-track { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.power-bar-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--warning)); border-radius: 999px; }
.power-bar-value { text-align: right; font-weight: 600; }

.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.cost-cell { background: var(--bg-elevated-2); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.cost-amount { display: block; font-weight: 800; font-size: 1.05rem; }
.cost-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

.electricity-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.electricity-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; color: var(--text-muted); }
.electricity-inputs input {
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated-2); color: var(--text); font-size: .9rem;
}

/* Compatibility */
.compat-status { font-weight: 700; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .88rem; }
.compat-status--ok { background: rgba(var(--success-rgb), .12); color: var(--success); }
.compat-status--warning { background: rgba(var(--warning-rgb), .12); color: var(--warning); }
.compat-status--error { background: rgba(var(--danger-rgb), .12); color: var(--danger); }
.compat-issues { display: flex; flex-direction: column; gap: 8px; }
.issue { font-size: .83rem; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-elevated-2); }
.issue--error { border-left: 3px solid var(--danger); }
.issue--warning { border-left: 3px solid var(--warning); }

/* Future-proofing */
.fp-gauge {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.fp-gauge-inner {
  width: 88px; height: 88px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fp-gauge-number { font-size: 1.6rem; font-weight: 800; color: var(--fp-color, var(--text)); }
.fp-gauge-max { font-size: .7rem; color: var(--text-muted); }
.fp-breakdown { display: flex; flex-direction: column; gap: 10px; }
.fp-row-head { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: 2px; gap: 8px; }
.fp-note { font-size: .78rem; color: var(--text-muted); margin: 0; }

.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-actions .btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------------
   Mobile summary bar + bottom sheet
--------------------------------------------------------------------- */
.mobile-summary-bar { display: none; }

@media screen and (max-width: 979px) {
  .builder { padding-bottom: calc(var(--mobile-bar-h) + 24px); }

  .mobile-summary-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 36; height: var(--mobile-bar-h);
    background: var(--bg-elevated); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
  }
  .mobile-bar-inner {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; background: none; border: none; color: inherit;
  }
  .mobile-bar-total { font-weight: 800; font-size: 1.05rem; }
  .mobile-bar-cta { color: var(--accent); font-weight: 700; font-size: .85rem; }

  .build-summary {
    position: fixed; left: 0; right: 0; top: auto; bottom: var(--mobile-bar-h);
    max-height: 0; opacity: 0; pointer-events: none; overflow-y: auto;
    background: var(--bg); z-index: 35; padding: 0 16px; gap: 16px;
    border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
  }
  .build-summary.build-summary--open {
    max-height: 75vh; opacity: 1; pointer-events: auto; padding: 16px;
  }
}

/* ---------------------------------------------------------------------
   Modals
--------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8, 10, 20, .55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: var(--bg-elevated); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto;
  animation: modal-in .18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-elevated);
}
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.1rem; color: var(--text-muted); padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--bg-elevated-2); color: var(--text); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: .9rem; line-height: 1.6; }
.modal-body h3 { margin: 10px 0 4px; font-size: .95rem; }
.modal-body h3:first-child { margin-top: 0; }
.modal-hint { color: var(--text-muted); font-size: .82rem; }
.modal-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .85rem; }
.modal-field input[type="text"] {
  font-weight: 400; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated-2); color: var(--text);
}
.saved-list { display: flex; flex-direction: column; gap: 8px; }
.saved-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated-2); flex-wrap: wrap;
}
.saved-row-info { display: flex; flex-direction: column; gap: 2px; }
.saved-meta { font-size: .75rem; color: var(--text-muted); }
.saved-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.share-url-input {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated-2); color: var(--text); font-size: .85rem;
}

/* ---------------------------------------------------------------------
   Toasts
--------------------------------------------------------------------- */
.toast-container {
  position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column;
  gap: 10px; max-width: 320px;
}
@media screen and (max-width: 979px) {
  .toast-container { bottom: calc(var(--mobile-bar-h) + 16px); right: 12px; left: 12px; max-width: none; }
}
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); padding: 12px 16px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
}
.toast--visible { opacity: 1; transform: none; }
.toast--success { border-left: 4px solid var(--success); }
.toast--error { border-left: 4px solid var(--danger); }
.toast--info { border-left: 4px solid var(--accent); }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer { max-width: var(--container-max); margin: 0 auto; padding: 20px 20px 60px; text-align: center; color: var(--text-muted); font-size: .8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 12px; }
.footer-disclaimer { max-width: 560px; margin: 0 auto 8px; }

/* ---------------------------------------------------------------------
   Small-screen polish
--------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .site-header-inner { padding: 8px 14px; }
  .header-actions { gap: 6px; }
  .cost-grid { grid-template-columns: 1fr 1fr; }
  .cost-cell:last-child { grid-column: 1 / -1; }
  .electricity-inputs { grid-template-columns: 1fr; }
  .power-bar-row { grid-template-columns: 52px 1fr 58px; }
}

/* ---------------------------------------------------------------------
   Motherboard Visualization
--------------------------------------------------------------------- */
.motherboard-section { padding: 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; }
.motherboard-section h3 { font-size: .9rem; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; color: var(--text-muted); }
.motherboard-blueprint { width: 100%; max-width: 100%; height: auto; display: block; background: var(--bg); border: 1px solid var(--border-subtle, var(--border)); border-radius: 6px; }
.motherboard-error { padding: 16px; color: var(--text-muted); font-size: .85rem; text-align: center; }

/* Port section labels and grouping */
.motherboard-section .port-section text { font-weight: 500; }

/* On small screens, hide motherboard viz to save space */
@media screen and (max-width: 979px) {
  .motherboard-section { display: none; }
}

/* ---------------------------------------------------------------------
   Component Completeness Warnings
--------------------------------------------------------------------- */
.completeness-warnings { margin-bottom: 16px; }
.completeness-issue {
  padding: 12px 14px; background: var(--bg-elevated); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 8px; line-height: 1.5;
}
.completeness-issue.critical { border-left-color: var(--danger); background: rgba(var(--danger-rgb), 0.05); }
.completeness-issue.warning { border-left-color: var(--warning); background: rgba(var(--warning-rgb), 0.05); }
.completeness-issue.info { border-left-color: var(--accent); background: rgba(var(--accent-rgb), 0.05); }

.completeness-issue-title { font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; }
.completeness-issue-message { color: var(--text-muted); display: block; }

/* Severity icons */
.completeness-issue::before {
  content: attr(data-severity);
  display: inline-block; margin-right: 6px; font-weight: 700; min-width: 20px;
}

/* ---------------------------------------------------------------------
   Bottleneck Detection Report
--------------------------------------------------------------------- */
.bottleneck-report { margin-bottom: 16px; }
.bottleneck-summary {
  padding: 12px 14px; background: var(--bg-elevated); border-radius: var(--radius-sm); font-size: .85rem;
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.bottleneck-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(var(--accent-rgb), 0.1); font-size: .85rem; font-weight: 700;
}
.bottleneck-icon.none { background: rgba(var(--success-rgb), 0.1); color: var(--success); }
.bottleneck-icon.warning { background: rgba(var(--warning-rgb), 0.1); color: var(--warning); }
.bottleneck-icon.critical { background: rgba(var(--danger-rgb), 0.1); color: var(--danger); }

.bottleneck-issue {
  padding: 12px 14px; background: var(--bg-elevated); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 8px; line-height: 1.5;
}
.bottleneck-issue.warning { border-left-color: var(--warning); background: rgba(var(--warning-rgb), 0.05); }
.bottleneck-issue.critical { border-left-color: var(--danger); background: rgba(var(--danger-rgb), 0.05); }
.bottleneck-issue.info { border-left-color: var(--accent); }

.bottleneck-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bottleneck-message { color: var(--text-muted); }
.bottleneck-action { display: inline-block; margin-top: 6px; padding: 4px 8px; background: var(--accent);
  color: var(--accent-contrast); border-radius: 4px; font-size: .8rem; font-weight: 600; cursor: pointer; border: none; }
.bottleneck-action:hover { opacity: 0.85; }

/* On small screens, stack bottleneck issues */
@media screen and (max-width: 480px) {
  .bottleneck-issue { padding: 10px 12px; margin-bottom: 6px; }
}

/* ---------------------------------------------------------------------
   Shopping List & Export
--------------------------------------------------------------------- */
.summary-export-actions {
  padding: 12px; background: var(--bg-elevated-2); border-radius: var(--radius-sm);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px;
}
.summary-export-actions .btn--small {
  font-size: .8rem; padding: 8px 10px; line-height: 1.3;
}

.bom-table {
  width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 12px;
}
.bom-table th, .bom-table td {
  padding: 8px; border: 1px solid var(--border); text-align: left;
}
.bom-table th { background: var(--bg-elevated); font-weight: 700; }
.bom-table tr:nth-child(even) { background: var(--bg-elevated-2); }
.bom-table tfoot { font-weight: 700; background: var(--bg-elevated); }

/* Professional services callout */
.summary-assembler-callout {
  padding: 12px; background: rgba(var(--accent-rgb), 0.05); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); margin-bottom: 12px; font-size: .85rem;
}

/* Performance & Benchmarking */
.performance-score {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.performance-metric {
  text-align: center; padding: 12px; background: var(--bg-elevated); border-radius: var(--radius-sm);
}
.performance-metric-value { font-size: 2.2rem; font-weight: 800; margin: 8px 0 4px; }
.performance-metric-label { font-size: .85rem; color: var(--text-muted); }

/* Comparison table */
.comparison-wrapper { overflow-x: auto; margin-top: 12px; }
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: .8rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.comparison-table th, .comparison-table td {
  padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top;
}
.comparison-table th {
  background: var(--bg-elevated); font-weight: 700; position: sticky; top: 0;
}
.comparison-table tr:nth-child(even) td { background: var(--bg-elevated-2); }
.comparison-table tr:last-child { font-weight: 700; background: var(--bg-elevated); }

/* Small screens: stack comparison horizontally */
@media screen and (max-width: 979px) {
  .comparison-wrapper { overflow-x: auto; }
  .comparison-table th, .comparison-table td { font-size: .75rem; padding: 8px 10px; }
}

/* System detection */
.detection-panel { padding: 20px; }
.detection-header { text-align: center; margin-bottom: 24px; }
.detection-header h2 { font-size: 1.5rem; margin: 0 0 8px 0; }
.detection-subtitle { color: var(--text-muted); margin: 0; font-size: .9rem; }
.detection-specs { background: var(--bg); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; border-left: 4px solid var(--accent); }
.spec-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.spec-label { color: var(--text-muted); font-weight: 600; }
.spec-value { color: var(--accent); font-weight: 600; }
.detection-use-case label { display: block; margin-bottom: 12px; font-weight: 600; }
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.use-case-btn { padding: 12px; background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; transition: all 0.2s; font-size: .8rem; position: relative; }
.use-case-btn:hover { border-color: var(--accent); background: var(--bg-elevated); }
.use-case-btn--inferred { border-color: var(--accent); background: rgba(79, 91, 255, 0.05); }
.use-case-icon { font-size: 1.8rem; }
.use-case-label { font-weight: 600; color: var(--text); }
.use-case-desc { font-size: .7rem; color: var(--text-muted); }
.use-case-badge { position: absolute; top: 4px; right: 4px; background: var(--accent); color: white; padding: 2px 6px; border-radius: 3px; font-size: .65rem; }
.detection-skip { text-align: center; margin-top: 12px; }

.recommendation-panel { padding: 20px; }
.recommendation-header { text-align: center; margin-bottom: 20px; }
.recommendation-header h2 { font-size: 1.5rem; margin: 0 0 4px 0; }
.recommendation-subtitle { color: var(--text-muted); margin: 0; font-size: .9rem; }
.comparison-table { background: var(--bg); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.comp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px; background: var(--bg-elevated); border-radius: var(--radius-sm); font-size: .85rem; }
.comp-row:first-child { background: transparent; font-weight: 600; color: var(--text-muted); }
.comp-current { padding: 8px; background: var(--bg); border-radius: 4px; }
.comp-target { padding: 8px; background: var(--bg); border-radius: 4px; color: var(--accent); font-weight: 600; }
.recommendation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Upgrade recommendations */
.upgrade-section { padding: 12px 0; }
.upgrade-current { padding: 12px; background: var(--bg-elevated-2); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.upgrade-recommendation { padding: 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.upgrade-recommendation h4 { margin: 0 0 12px 0; font-size: .95rem; color: var(--text); }
.upgrade-comparison { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.upgrade-from, .upgrade-to { flex: 1; padding: 10px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; font-size: .8rem; }
.upgrade-label { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.upgrade-name { font-weight: 600; color: var(--text); }
.upgrade-price { color: var(--accent); font-weight: 600; }
.upgrade-arrow { color: var(--accent); font-size: 1.2rem; font-weight: bold; }
.upgrade-impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.upgrade-metric { padding: 8px; background: var(--bg); border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.upgrade-metric-label { color: var(--text-muted); }
.upgrade-metric-value { font-weight: 600; color: var(--accent); }
.upgrade-all-options { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.upgrade-all-options h4 { font-size: .95rem; margin-bottom: 12px; }
.upgrade-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upgrade-item { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--bg); border-radius: var(--radius-sm); font-size: .8rem; flex-wrap: wrap; }
.upgrade-idx { font-weight: 600; color: var(--accent); min-width: 20px; }
.upgrade-cat { font-weight: 600; color: var(--text); min-width: 70px; }
.upgrade-desc { flex: 1; color: var(--text); }
.upgrade-details { color: var(--text-muted); font-size: .75rem; }
.current-system-input { padding: 12px; background: var(--bg-elevated-2); border-radius: var(--radius); margin-bottom: 16px; }
.input-hint { margin: 0 0 12px 0; font-size: .9rem; color: var(--text-muted); }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.component-select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; background: var(--bg-elevated); }

/* ---------------------------------------------------------------------
   Legal pages (privacy.html)
--------------------------------------------------------------------- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.legal-inner h1 { font-size: 1.8rem; }
.legal-inner h2 { font-size: 1.05rem; margin-top: 28px; }
.legal-updated { color: var(--text-muted); font-size: .85rem; margin-top: -.4em; }
.legal-inner p { color: var(--text); }
.legal-list { list-style: disc; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.legal-inner code { background: var(--bg-elevated-2); padding: 2px 6px; border-radius: 4px; font-size: .85em; }

/* Glossary Tooltips & Educational Elements */
.glossary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), .1);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.glossary-tooltip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(var(--accent-rgb), .05);
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: var(--radius);
  cursor: help;
  transition: all .2s ease;
}

.glossary-tooltip:hover {
  background: rgba(var(--accent-rgb), .08);
  border-color: rgba(var(--accent-rgb), .4);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .15);
}

.glossary-content {
  flex: 1;
  min-width: 0;
}

.glossary-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: .9rem;
}

.glossary-content p {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.glossary-modal {
  padding: 0;
}

.glossary-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.glossary-modal-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), .1);
  border-radius: 12px;
}

.glossary-modal h3 {
  margin: 0;
  font-size: 1.2rem;
}

.glossary-modal-simple {
  margin: 0 0 12px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--accent);
}

.glossary-modal-detailed {
  margin: 0 0 16px 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.glossary-modal-examples {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.glossary-modal-examples strong {
  display: block;
  margin-bottom: 8px;
  font-size: .85rem;
}

.glossary-modal-examples ul {
  margin: 0;
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.glossary-modal-examples li {
  font-size: .85rem;
  color: var(--text-muted);
}

/* Help Icon for Glossary */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .3);
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  cursor: help;
  margin-left: 4px;
  transition: all .2s ease;
}

.info-icon:hover {
  background: rgba(var(--accent-rgb), .2);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Layman explanation text */
.layman-explain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(var(--success-rgb), .08);
  border: 1px solid rgba(var(--success-rgb), .2);
  border-radius: 6px;
  font-size: .8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}

.layman-explain:hover {
  background: rgba(var(--success-rgb), .15);
  border-color: rgba(var(--success-rgb), .4);
}

/* Standard Builds Grid */
.standard-builds-grid {
  padding: 40px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.standard-builds-grid h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-align: center;
}

.standard-builds-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.standard-build-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}

.standard-build-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.standard-build-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.standard-build-card:hover::before {
  opacity: 1;
}

.build-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.build-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), .1);
  border-radius: var(--radius);
}

.build-titles {
  flex: 1;
}

.build-titles h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.build-friendly {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.build-description {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.build-budget {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin: 8px 0;
}

.build-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.build-tag {
  font-size: .75rem;
  padding: 6px 12px;
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: 999px;
  font-weight: 600;
  color: var(--accent);
}

.build-tag.future-proof {
  background: rgba(var(--success-rgb), .1);
  border-color: rgba(var(--success-rgb), .2);
  color: var(--success);
}

.standard-build-card .btn {
  margin-top: auto;
}

/* Processor Tiers */
.tier-card {
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-icon {
  font-size: 2rem;
}

.tier-card h3 {
  margin: 0;
  font-size: 1rem;
}

.tier-friendly {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
}

.tier-description {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Store Modal */
.store-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.store-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.store-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.store-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.store-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.store-modal-close:hover {
  color: var(--text);
}

.store-modal-body {
  padding: 20px;
  flex: 1;
}

.store-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.store-nav-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all .2s ease;
}

.store-nav-btn:hover {
  color: var(--text);
}

.store-nav-btn--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.store-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s ease;
}

.store-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .2);
  transform: translateY(-2px);
}

.store-card-image {
  font-size: 2.4rem;
  text-align: center;
}

.store-card-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.store-card-specs {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.store-card-location {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.store-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.store-card-meta {
  display: flex;
  gap: 10px;
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.store-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-seller {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 600;
}

.store-turnaround {
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-card-details {
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-card-details p {
  margin: 0;
}

.store-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .8rem;
}

.store-services li {
  color: var(--text-muted);
}

.store-card-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
}

.store-card--prebuilt {
  position: relative;
}

.store-retailer {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* FAQs Modal */
.faqs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.faqs-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.faqs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.faqs-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.faqs-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.faqs-modal-close:hover {
  color: var(--text);
}

.faqs-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.faqs-search-box {
  margin-bottom: 20px;
}

.faqs-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated-2);
  color: var(--text);
  font-size: .9rem;
}

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

.faqs-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.faqs-nav-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}

.faqs-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.faqs-nav-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

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

.faqs-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: .9rem;
}

.faq-item {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all .2s ease;
}

.faq-item--open {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: all .2s ease;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-item--open .faq-question {
  background: var(--bg);
  color: var(--accent);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .1);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faq-item--open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  border-top: 1px solid var(--border);
}

.faq-item--open .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding: 16px;
  margin: 0;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Profile Modal */
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.profile-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.profile-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.profile-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.profile-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.profile-modal-close:hover {
  color: var(--text);
}

.profile-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.profile-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
}

.section-title.danger {
  color: var(--danger);
}

.profile-avatar-section {
  text-align: center;
  border-bottom: none;
  margin-bottom: 32px;
  padding-bottom: 0;
}

.profile-avatar-display {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-section h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.profile-subtitle {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.profile-field {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
}

.profile-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: .9rem;
}

.profile-input,
.profile-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: .9rem;
  margin-bottom: 10px;
}

.profile-input:focus,
.profile-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .2);
}

.field-hint {
  margin: 0 0 10px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.profile-info-box {
  padding: 12px;
  background: var(--bg-elevated-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.profile-info-box p {
  margin: 0 0 4px;
  font-size: .85rem;
}

.profile-info-box code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: .8rem;
}

.profile-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.profile-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.profile-checkbox label {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
}

.profile-danger {
  border-color: rgba(var(--danger-rgb), .3);
  background: rgba(var(--danger-rgb), .05);
  border-radius: var(--radius);
  padding: 16px;
}

.danger-warning {
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.danger-warning p {
  margin: 0 0 12px;
  font-size: .85rem;
  line-height: 1.5;
}

.btn--danger {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.btn--danger:hover {
  background: #d11a11;
  border-color: #d11a11;
}

.profile-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.profile-footer .field-hint {
  margin: 0 0 12px;
}

.profile-footer .link-btn {
  display: inline-block;
}

/* Roadmap Modal */
.roadmap-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.roadmap-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.roadmap-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.roadmap-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.roadmap-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.roadmap-modal-close:hover {
  color: var(--text);
}

.roadmap-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.roadmap-intro {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 28px;
}

.roadmap-intro p {
  margin: 0 0 8px;
  font-size: .9rem;
  line-height: 1.6;
}

.roadmap-intro p:last-child {
  margin: 0;
}

.roadmap-intro strong {
  color: var(--accent);
}

.roadmap-phases {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.roadmap-phase-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all .2s ease;
}

.roadmap-phase-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .15);
}

.roadmap-phase-complete {
  border-color: var(--success);
  background: rgba(var(--success-rgb), .05);
}

.roadmap-phase-in-progress {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .03);
}

.roadmap-phase-planned {
  border-color: var(--text-muted);
  opacity: .75;
}

.roadmap-phase-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.roadmap-phase-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.roadmap-phase-info {
  flex: 1;
  min-width: 0;
}

.roadmap-phase-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.roadmap-phase-desc {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.roadmap-progress {
  margin-bottom: 12px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width .3s ease;
}

.progress-text {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.roadmap-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap-feature {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  opacity: .6;
}

.roadmap-feature--done {
  opacity: 1;
}

.roadmap-feature-check {
  flex-shrink: 0;
  font-size: .9rem;
}

.roadmap-feature-content {
  flex: 1;
  min-width: 0;
}

.roadmap-feature-content strong {
  display: block;
  font-size: .85rem;
}

.roadmap-feature-content p {
  margin: 2px 0 0;
  font-size: .8rem;
  color: var(--text-muted);
}

.roadmap-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.roadmap-cta {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.roadmap-cta h3 {
  margin: 0 0 4px;
  font-size: .95rem;
}

.roadmap-cta p {
  margin: 0 0 12px;
  font-size: .85rem;
  color: var(--text-muted);
}

.roadmap-note {
  padding: 12px;
  background: rgba(var(--warning-rgb), .08);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  font-size: .8rem;
}

.roadmap-note p {
  margin: 0;
  line-height: 1.5;
}

/* Keyboard Shortcuts Modal */
.shortcuts-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.shortcuts-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.shortcuts-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.shortcuts-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.shortcuts-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.shortcuts-modal-close:hover {
  color: var(--text);
}

.shortcuts-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.shortcuts-intro {
  margin: 0 0 16px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.shortcut-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}

.shortcut-row:hover {
  background: var(--bg);
}

.shortcut-keys {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
  min-width: 100px;
}

kbd {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

.key-plus {
  color: var(--text-muted);
  margin: 0 2px;
  font-size: .7rem;
}

.shortcut-desc {
  flex: 1;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.4;
}

.shortcuts-footer {
  padding: 12px;
  background: rgba(var(--accent-rgb), .05);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.shortcuts-footer p {
  margin: 0 0 8px;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.shortcuts-footer p:last-child {
  margin: 0;
}

.shortcuts-footer kbd {
  padding: 1px 5px;
  font-size: .7rem;
  background: var(--bg-elevated);
}

/* Build Ideas Modal */
.build-ideas-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.build-ideas-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.build-ideas-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.build-ideas-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.build-ideas-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.build-ideas-modal-close:hover {
  color: var(--text);
}

.build-ideas-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.build-ideas-intro {
  margin: 0 0 20px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.build-ideas-container {
  margin-bottom: 20px;
}

.build-idea-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slide-up .3s ease;
}

.build-idea-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.build-idea-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.build-idea-header h3 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}

.build-idea-budget {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.build-idea-description {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.build-idea-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
}

.build-idea-specs li {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.4;
}

.build-idea-pros {
  padding: 12px;
  background: rgba(var(--success-rgb), .05);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.build-idea-pros strong {
  font-size: .85rem;
  color: var(--success);
}

.build-idea-pro-tag {
  display: inline-block;
  font-size: .8rem;
  color: var(--text);
  background: var(--bg-elevated);
  padding: 4px 8px;
  border-radius: 999px;
}

.build-ideas-controls {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.build-ideas-controls .btn {
  flex: 1;
}

.build-ideas-browse {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.build-ideas-browse > p {
  margin: 0 0 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.idea-category-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}

.idea-category-btn {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}

.idea-category-btn:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
}

/* Build Analysis Modal */
.analysis-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.analysis-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.analysis-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.analysis-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.analysis-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.analysis-modal-close:hover {
  color: var(--text);
}

.analysis-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.analysis-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.analysis-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.analysis-section h3 {
  margin: 0 0 16px;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.metric-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.metric-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.efficiency-card {
  padding: 12px;
  background: var(--bg-elevated-2);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.efficiency-good { border-left-color: var(--success); background: rgba(var(--success-rgb), .05); }
.efficiency-ok { border-left-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.efficiency-tight { border-left-color: var(--warning); background: rgba(var(--warning-rgb), .05); }
.efficiency-insufficient { border-left-color: var(--danger); background: rgba(var(--danger-rgb), .05); }
.efficiency-overkill { border-left-color: var(--teal); background: rgba(var(--teal-rgb), .05); }
.efficiency-excellent { border-left-color: var(--success); background: rgba(var(--success-rgb), .05); }
.efficiency-balanced { border-left-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.efficiency-risky { border-left-color: var(--danger); background: rgba(var(--danger-rgb), .05); }

.efficiency-label {
  flex: 1;
  font-size: .85rem;
  font-weight: 600;
}

.efficiency-rating {
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  white-space: nowrap;
  color: var(--text);
}

.efficiency-message {
  font-size: .75rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.bottleneck-card {
  padding: 16px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius);
  border-left: 4px solid var(--border);
}

.bottleneck-none { border-left-color: var(--success); background: rgba(var(--success-rgb), .05); }
.bottleneck-minor { border-left-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.bottleneck-moderate { border-left-color: var(--warning); background: rgba(var(--warning-rgb), .05); }
.bottleneck-severe { border-left-color: var(--danger); background: rgba(var(--danger-rgb), .05); }

.bottleneck-card strong {
  display: block;
  margin-bottom: 4px;
}

.bottleneck-card p {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.upgrade-suggestion {
  padding: 10px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: .85rem;
  border-left: 3px solid var(--accent);
}

.analysis-hint {
  padding: 10px;
  background: rgba(var(--success-rgb), .05);
  color: var(--success);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin: 0;
}

.issue-card {
  padding: 12px;
  background: rgba(var(--danger-rgb), .05);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.issue-card strong {
  display: block;
  color: var(--danger);
  margin-bottom: 4px;
}

.issue-card p {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
}

.analysis-summary {
  background: rgba(var(--accent-rgb), .05);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius);
  padding: 16px;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.analysis-summary p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

/* Services Marketplace Modal */
.services-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.services-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.services-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.services-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.services-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.services-modal-close:hover {
  color: var(--text);
}

.services-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.services-intro {
  background: rgba(var(--accent-rgb), .05);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.services-intro p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.services-region {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.services-region label {
  font-weight: 600;
  font-size: .9rem;
}

.services-region select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated-2);
  color: var(--text);
  min-width: 200px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.service-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .15);
  transform: translateY(-2px);
}

.service-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.service-card h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.service-desc {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.service-duration {
  font-size: .8rem;
  color: var(--text-muted);
}

.service-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.service-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .8rem;
  color: var(--text-muted);
}

.service-benefits li {
  line-height: 1.3;
}

.services-partners-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}

.services-partners-section h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.services-partners-intro {
  margin: 0 0 16px;
  font-size: .85rem;
  color: var(--text-muted);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.partner-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
}

.partner-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .1);
}

.partner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.partner-card h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.partner-type {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.partner-rating {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

.partner-info {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.partner-info p {
  margin: 0;
}

.partner-services {
  font-size: .8rem;
  color: var(--text);
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.partner-services strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.partner-languages {
  font-size: .8rem;
  color: var(--text);
}

.partner-languages strong {
  font-weight: 600;
}

.services-trust {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}

.services-trust h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.trust-point {
  background: rgba(var(--success-rgb), .05);
  border: 1px solid rgba(var(--success-rgb), .15);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.trust-point strong {
  display: block;
  font-size: .85rem;
  color: var(--success);
  margin-bottom: 4px;
}

.trust-point p {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* User Dashboard Modal */
.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.dashboard-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dashboard-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 10;
}

.dashboard-modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.dashboard-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.dashboard-modal-close:hover {
  color: var(--text);
}

.dashboard-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.dashboard-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.dashboard-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dashboard-section h3 {
  margin: 0 0 16px;
  font-size: .95rem;
  font-weight: 700;
}

.progress-summary {
  background: rgba(var(--accent-rgb), .05);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.progress-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.progress-stat strong {
  font-size: 1.4rem;
  color: var(--accent);
}

.progress-stat span {
  font-size: .8rem;
  color: var(--text-muted);
}

.progress-bar-container {
  flex: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--track);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 4px;
  transition: width .3s ease;
}

.progress-text {
  font-size: .8rem;
  color: var(--text-muted);
}

.badges-showcase {
  margin-top: 16px;
}

.badges-showcase h4 {
  margin: 0 0 12px;
  font-size: .85rem;
  font-weight: 600;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.badge-item {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: all .2s ease;
}

.badge-item.badge-unlocked {
  border-color: var(--success);
  background: rgba(var(--success-rgb), .05);
}

.badge-item:hover {
  transform: scale(1.05);
}

.badge-emoji {
  font-size: 1.8rem;
}

.badge-name {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.hint {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}

.collections-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.collection-item {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.collection-header strong {
  font-size: .9rem;
}

.collection-count {
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
}

.collection-desc {
  margin: 6px 0;
  font-size: .8rem;
  color: var(--text-muted);
}

.collection-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .15);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* Leaderboards UI */
.modal--large {
  max-width: 900px;
}

.leaderboards-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.leaderboards-tab {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -12px;
}

.leaderboards-tab:hover {
  background: var(--bg-elevated-2);
  color: var(--text);
}

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

.leaderboards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.leaderboard-build-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  transition: all .2s ease;
}

.leaderboard-build-card:hover {
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), .1);
}

.build-card-rank {
  position: absolute;
  top: 8px;
  right: 8px;
  font-weight: 800;
  font-size: .75rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .8) 0%, rgba(var(--accent-rgb), .5) 100%);
  color: var(--accent-contrast);
  padding: 4px 8px;
  border-radius: 4px;
}

.build-card-header {
  margin-bottom: 12px;
  padding-right: 40px;
}

.build-author {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-author > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.author-name {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-date {
  font-size: .75rem;
  color: var(--text-muted);
}

.leaderboard-build-card h4 {
  margin: 0 0 6px;
  font-size: .9rem;
  line-height: 1.3;
}

.build-description {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.build-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(var(--accent-rgb), .05);
  border-radius: var(--radius-sm);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.metric-icon {
  font-size: .9rem;
}

.metric-value {
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent);
}

.metric-label {
  font-size: .7rem;
  color: var(--text-muted);
}

.build-actions {
  display: flex;
  gap: 6px;
}

.build-actions .btn {
  flex: 1;
  font-size: .8rem;
  padding: 6px 8px;
}

.leaderboards-cta {
  padding: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .1) 0%, rgba(var(--accent-rgb), .05) 100%);
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboards-cta p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

/* Collections UI */
.collections-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.collection-detail-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: all .2s ease;
}

.collection-detail-card:hover {
  border-color: rgba(var(--accent-rgb), .5);
}

.collection-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.collection-detail-header h3 {
  margin: 0 0 4px;
  font-size: .95rem;
}

.collection-detail-desc {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.collection-detail-meta {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.build-badge,
.date-badge {
  font-size: .75rem;
  background: var(--bg);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.collection-builds-list {
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(var(--accent-rgb), .05);
  border-radius: var(--radius-sm);
}

.collection-build-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .8rem;
  padding: 4px 0;
  color: var(--text-muted);
}

.build-index {
  font-weight: 600;
  color: var(--accent);
}

.build-id {
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
}

.collection-more {
  margin: 4px 0 0;
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
}

.collection-detail-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-icon {
  font-size: 2.5rem;
  margin: 0;
}

.empty-title {
  margin: 0;
  font-weight: 700;
  font-size: .95rem;
}

.empty-desc {
  margin: 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.collections-create-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.collections-create-section h4 {
  margin: 0 0 12px;
  font-size: .9rem;
}

.modal-field textarea {
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  color: var(--text);
  font-family: var(--font);
  resize: vertical;
}

.collection-detail-full {
  padding-bottom: 20px;
}

.collection-detail-full h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.collection-full-desc {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.5;
}

.collection-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(var(--accent-rgb), .05);
  border-radius: var(--radius-sm);
}

.collection-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.collection-stats .stat-value {
  font-weight: 700;
  font-size: .95rem;
  color: var(--accent);
}

.collection-stats .stat-label {
  font-size: .75rem;
  color: var(--text-muted);
}

.builds-in-collection h4 {
  margin: 0 0 12px;
  font-size: .9rem;
}

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

.build-in-collection {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .8rem;
}

.build-num {
  font-weight: 600;
  color: var(--accent);
  min-width: 20px;
}

.build-ref {
  flex: 1;
  font-family: monospace;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
}

/* Achievements UI */
.achievements-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .1) 0%, rgba(var(--accent-rgb), .05) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-ring-bg {
  fill: none;
  stroke: var(--track);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray .3s ease;
}

.progress-text-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-percent {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.progress-label {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.achievements-summary {
  display: flex;
  gap: 16px;
  flex: 1;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.summary-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.summary-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.achievements-section {
  margin-bottom: 20px;
}

.achievements-section h3 {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 700;
}

.section-hint {
  margin: -8px 0 12px;
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.achievement-badge {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all .2s ease;
}

.achievement-badge.unlocked {
  background: linear-gradient(135deg, rgba(22, 163, 74, .08) 0%, transparent 100%);
  border-color: rgba(22, 163, 74, .3);
}

.achievement-badge.unlocked:hover {
  border-color: var(--success);
  box-shadow: 0 2px 8px rgba(22, 163, 74, .15);
}

.achievement-badge.locked {
  background: rgba(var(--accent-rgb), .04);
  border-color: var(--border);
  opacity: .7;
}

.badge-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.badge-content h4 {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
}

.badge-content p {
  margin: 0;
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.badge-reward,
.badge-requirement {
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}

.badge-reward {
  background: rgba(22, 163, 74, .15);
  color: var(--success);
}

.badge-requirement {
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
  font-family: monospace;
}

.achievements-tips {
  padding: 14px;
  background: rgba(var(--warning-rgb), .08);
  border: 1px solid rgba(var(--warning-rgb), .2);
  border-radius: var(--radius-sm);
}

.achievements-tips h4 {
  margin: 0 0 10px;
  font-size: .85rem;
  font-weight: 700;
}

.achievements-tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.achievements-tips li {
  margin: 4px 0;
}

/* Marketplace UI */
.marketplace-browse {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marketplace-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.marketplace-tab {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: all .15s ease;
}

.marketplace-tab:hover {
  color: var(--text);
  background: var(--bg-elevated-2);
}

.marketplace-tab.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  margin-bottom: -12px;
  padding-bottom: 10px;
}

.marketplace-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
}

.filter-select,
.filter-checkbox {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: .85rem;
}

.filter-select {
  flex: 1;
  min-width: 140px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
}

.filter-checkbox input {
  cursor: pointer;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.marketplace-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}

.marketplace-card:hover {
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), .1);
}

.listing-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background: rgba(var(--accent-rgb), .05);
  border-bottom: 1px solid var(--border);
}

.listing-type-badge {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), .15);
  padding: 3px 6px;
  border-radius: 3px;
}

.listing-condition {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.listing-placeholder-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  overflow: hidden;
}

.listing-placeholder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketplace-card h4 {
  margin: 8px 8px 4px;
  font-size: .85rem;
  line-height: 1.2;
}

.listing-description {
  margin: 0 8px 8px;
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-seller {
  padding: 0 8px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.seller-info strong {
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-rating {
  font-size: .7rem;
  color: var(--text-muted);
}

.listing-price {
  padding: 8px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .08) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-value {
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
}

.auction-badge,
.fixed-badge {
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-muted);
}

.listing-meta {
  padding: 8px;
  display: flex;
  gap: 8px;
  font-size: .7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.meta-item.verified {
  color: var(--success);
  font-weight: 600;
}

.marketplace-card .btn {
  margin: 8px;
  margin-top: auto;
}

.marketplace-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.listing-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.detail-photos {
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.detail-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-photos .placeholder {
  font-size: 1.4rem;
}

.detail-info h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.detail-description {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-specs h4 {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}

.detail-specs p {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
}

.verification-badge {
  padding: 8px;
  background: linear-gradient(135deg, rgba(22, 163, 74, .1) 0%, transparent 100%);
  border: 1px solid rgba(22, 163, 74, .3);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verification-badge span {
  font-size: .8rem;
}

.detail-purchase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .1) 0%, rgba(var(--accent-rgb), .05) 100%);
  border-radius: var(--radius);
}

.purchase-price h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--accent);
}

.purchase-price p {
  margin: 0;
}

.auction-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
}

.auction-info p {
  margin: 0;
  font-size: .85rem;
}

.trust-info {
  border: 1px solid rgba(22, 163, 74, .3);
}

.trust-info ul li {
  margin: 3px 0;
}

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

.create-listing-form h3 {
  margin: 0;
  font-size: 1rem;
}

.create-listing-form > p {
  margin: 0;
}

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

.form-group label {
  font-weight: 600;
  font-size: .85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  color: var(--text);
  font-family: var(--font);
  font-size: .85rem;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  font-size: .9rem;
}

.checkbox-label input {
  cursor: pointer;
}

.form-note {
  padding: 12px;
  background: rgba(var(--warning-rgb), .08);
  border: 1px solid rgba(var(--warning-rgb), .2);
  border-radius: var(--radius-sm);
}

.form-note p {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .marketplace-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* Admin Catalog Manager */
.admin-catalog-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  height: 500px;
}

.admin-catalog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 12px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.catalog-meta {
  padding: 10px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
  font-size: .75rem;
}

.catalog-meta p {
  margin: 0 0 4px;
}

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

.category-list h4 {
  margin: 0 0 8px;
  font-size: .85rem;
}

.category-btn {
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  transition: all .15s ease;
  text-align: left;
}

.category-btn:hover {
  border-color: rgba(var(--accent-rgb), .5);
  color: var(--text);
}

.category-btn.active {
  background: rgba(var(--accent-rgb), .1);
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-catalog-main {
  overflow-y: auto;
  padding-right: 8px;
}

.category-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.editor-header h3 {
  margin: 0;
  font-size: .95rem;
}

.parts-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .8rem;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 100px 80px 140px;
  gap: 0;
  padding: 10px;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 100px 80px 140px;
  gap: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background: var(--bg-elevated-2);
}

.col-name input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font-size: .8rem;
}

.col-price input,
.col-stock input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
  font-size: .8rem;
  text-align: center;
}

.col-actions {
  display: flex;
  gap: 4px;
}

.col-actions .btn {
  padding: 4px 6px;
  font-size: .75rem;
}

.editor-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-footer p {
  margin: 0;
}

.part-details-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.part-details-editor h3 {
  margin: 0;
  font-size: 1rem;
}

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

.details-form .form-group {
  grid-column: auto;
}

.details-form .form-group:nth-child(n+2):nth-last-child(-n+2) {
  grid-column: span 2;
}

.form-group input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Seller Dashboard */
.seller-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.seller-tab {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s ease;
}

.seller-tab:hover {
  color: var(--text);
  background: var(--bg-elevated-2);
}

.seller-tab.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  margin-bottom: -12px;
  padding-bottom: 10px;
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.seller-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .1) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: var(--radius);
  padding: 14px;
}

.highlight-card h4 {
  margin: 0 0 8px;
  font-size: .9rem;
}

.balance-large,
.rating-large,
.amount-large {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}

.balance-meta,
.rating-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.trust-meter {
  width: 100%;
  height: 8px;
  background: var(--track);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.trust-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width .3s ease;
}

.seller-actions {
  display: flex;
  gap: 10px;
}

.seller-listings,
.seller-orders,
.seller-payouts,
.seller-disputes,
.seller-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listings-list,
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.listing-row,
.payout-row {
  display: grid;
  grid-template-columns: 2fr 100px 100px 100px 100px;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: .85rem;
}

.listing-row:last-child,
.payout-row:last-child {
  border-bottom: none;
}

.listing-row:hover {
  background: var(--bg-elevated-2);
}

.listing-row-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-row-price {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
}

.listing-row-status {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(22, 163, 74, .15);
  color: var(--success);
  border-radius: 3px;
  width: fit-content;
  margin: 0 auto;
}

.payout-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.payout-box {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .1) 0%, transparent 100%);
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.payout-box h4 {
  margin: 0 0 8px;
  font-size: .85rem;
}

.payouts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.payout-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--bg-elevated-2);
}

.payout-row:hover {
  background: rgba(var(--accent-rgb), .05);
}

.disputes-summary {
  padding: 12px;
  background: rgba(var(--warning-rgb), .08);
  border: 1px solid rgba(var(--warning-rgb), .2);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 12px;
}

.disputes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.dispute-card {
  background: var(--bg-elevated-2);
  border: 1px solid rgba(var(--danger-rgb), .2);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dispute-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dispute-id {
  font-weight: 700;
  color: var(--accent);
  font-size: .8rem;
}

.dispute-reason {
  font-size: .8rem;
  background: rgba(var(--warning-rgb), .15);
  color: var(--warning);
  padding: 2px 6px;
  border-radius: 3px;
}

.dispute-status {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.dispute-status.status-warning {
  background: rgba(var(--warning-rgb), .15);
  color: var(--warning);
}

.dispute-status.status-info {
  background: rgba(var(--accent-rgb), .15);
  color: var(--accent);
}

.dispute-status.status-success {
  background: rgba(22, 163, 74, .15);
  color: var(--success);
}

.dispute-description {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

.dispute-messages {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 0;
}

.dispute-resolution {
  padding: 8px;
  background: rgba(22, 163, 74, .1);
  border: 1px solid rgba(22, 163, 74, .2);
  border-radius: 3px;
  font-size: .8rem;
}

.dispute-resolution p {
  margin: 2px 0;
}

.dispute-date {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 0;
}

.reviews-summary {
  padding: 12px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: .85rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-header strong {
  font-size: .85rem;
}

.review-stars {
  color: var(--warning);
  font-size: .9rem;
}

.review-comment {
  margin: 0 0 8px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.review-meta {
  display: flex;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
  align-items: center;
}

.verified-badge {
  background: rgba(22, 163, 74, .15);
  color: var(--success);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* Wishlist */
.wishlist-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.wishlist-header h4 {
  margin: 0;
  font-size: .9rem;
  flex: 1;
}

.priority-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.priority-high {
  background: rgba(var(--danger-rgb), .15);
  color: var(--danger);
}

.priority-normal {
  background: rgba(var(--accent-rgb), .15);
  color: var(--accent);
}

.priority-low {
  background: var(--border);
  color: var(--text-muted);
}

.wishlist-desc,
.wishlist-notes {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
}

.wishlist-price {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent);
}

.wishlist-target {
  margin: 0;
  font-size: .75rem;
  color: var(--text-muted);
}

.wishlist-actions {
  display: flex;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* Small button utility */
.btn--tiny {
  padding: 2px 6px;
  font-size: .7rem;
}

@media (max-width: 1024px) {
  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .seller-highlights {
    grid-template-columns: 1fr;
  }

  .payout-summary {
    grid-template-columns: 1fr;
  }

  .listing-row {
    grid-template-columns: 1fr;
  }
}

/* Notifications */
.notification-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--border);
  transition: all .2s ease;
}

.notification-item.unread {
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb), .05);
}

.notif-badge {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content strong {
  display: block;
  font-size: .85rem;
  margin-bottom: 3px;
}

.notif-content p {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-time {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.notif-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* Conversations */
.conversation-item {
  padding: 12px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s ease;
  border-left: 4px solid transparent;
}

.conversation-item:hover {
  border-color: rgba(var(--accent-rgb), .5);
}

.conversation-item.unread {
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb), .05);
}

.conv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.conv-header strong {
  font-size: .85rem;
}

.unread-badge {
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.conv-preview {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-time {
  font-size: .75rem;
  color: var(--text-muted);
}

/* Messages */
.message {
  display: flex;
  margin-bottom: 12px;
}

.message.own {
  justify-content: flex-end;
}

.message-content {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated-2);
}

.message.own .message-content {
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .2);
}

.message-content strong {
  display: block;
  font-size: .8rem;
  margin-bottom: 4px;
}

.message-content p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.4;
}

.message-time {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.edited-badge {
  font-size: .65rem;
  color: var(--text-muted);
  font-style: italic;
}
