/* ========================================================================= */
/* CALPAMOS STARTUP WEB SHELL & DESIGN SYSTEM (v4.7)                         */
/* Supports 3 Live Themes: Linear Dark (default), Marketplace, Fintech       */
/* Strictly preserves Master V3 Deal Card (CARD_SCHEMA.md)                   */
/* ========================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

body.calpamos-startup-body {
  margin: 0;
  padding: 0;
  background-color: var(--site-bg, #060913);
  background-image: var(--site-glow);
  background-repeat: no-repeat;
  background-size: 100% 720px;
  color: var(--site-text, #F8FAFC);
  font-family: system-ui, -apple-system, 'Plus Jakarta Sans', 'Inter', BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.startup-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid var(--site-border-accent, rgba(16, 185, 129, 0.35));
  color: var(--site-accent, #10B981);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--site-accent, #10B981);
  box-shadow: 0 0 10px var(--site-accent, #10B981);
}

.hero-title {
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 880px;
  color: var(--site-text, #F8FAFC);
}

.hero-title-accent {
  background: linear-gradient(135deg, #34D399 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="marketplace"] .hero-title-accent {
  background: linear-gradient(135deg, #059669 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--site-text-secondary, #94A3B8);
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 450;
}

/* --- HERO INSTANT SEARCH BAR --- */
.hero-search-wrap {
  max-width: 640px;
  margin: 0 auto 20px;
  position: relative;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--site-surface-solid, #0F172A);
  border: 1.5px solid var(--site-border-accent, rgba(16, 185, 129, 0.4));
  border-radius: 14px;
  padding: 6px 8px 6px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  transition: all 0.2s ease;
}

.hero-search-box:focus-within {
  border-color: var(--site-accent, #10B981);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero-search-icon {
  color: var(--site-text-muted, #64748B);
  flex-shrink: 0;
  margin-right: 12px;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--site-text, #F8FAFC);
  font-size: 15.5px;
  font-family: inherit;
  padding: 10px 0;
}

.hero-search-input::placeholder {
  color: var(--site-text-muted, #64748B);
}

.hero-search-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #04130D;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  font-family: inherit;
}

.hero-search-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hero-search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #0B132B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 900;
  overflow: hidden;
  text-align: left;
}

.hero-search-results.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  text-decoration: none;
  color: #F8FAFC;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.12s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(16, 185, 129, 0.14);
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-result-num {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-theme {
  font-size: 12px;
  color: #94A3B8;
}

.search-result-price {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #34D399;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Quick Try Set Pills */
.hero-quick-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 12.5px;
  color: var(--site-text-muted, #64748B);
}

.hero-try-pill {
  color: var(--site-text-secondary, #94A3B8);
  background: var(--site-surface, rgba(15, 23, 42, 0.75));
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.09));
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

.hero-try-pill:hover {
  color: var(--site-accent, #10B981);
  border-color: var(--site-border-accent, rgba(16, 185, 129, 0.4));
}

/* Hero Primary CTA Row */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-startup-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #04130D;
  font-weight: 750;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
  transition: all 0.18s ease;
}

.btn-startup-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-startup-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--site-surface-solid, #0F172A);
  color: var(--site-text, #F8FAFC);
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.12));
  font-weight: 650;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-startup-secondary:hover {
  border-color: var(--site-accent-secondary, #38BDF8);
  transform: translateY(-2px);
}

/* --- TRACKED STORES & TELEMETRY RIBBON --- */
.trust-ribbon {
  background: var(--site-surface, rgba(15, 23, 42, 0.7));
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.trust-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--site-border, rgba(255, 255, 255, 0.07));
}

.trust-stat-val {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--site-accent, #10B981);
}

.trust-stat-lbl {
  font-size: 12px;
  color: var(--site-text-secondary, #94A3B8);
  font-weight: 500;
}

.trust-stores-hint {
  font-size: 12.5px;
  color: var(--site-text-secondary, #94A3B8);
  text-align: center;
  margin-bottom: -4px;
}

.trust-stores-hint strong {
  color: var(--site-accent, #10B981);
  font-weight: 700;
}

.trust-stores-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
  font-family: inherit;
  transition: all 0.16s ease;
}

.store-chip img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: contain;
}

.store-chip-interactive {
  cursor: pointer;
}

.store-chip-interactive:hover {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.store-chip-interactive.active {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.22);
  color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.45), 0 6px 18px rgba(16, 185, 129, 0.22);
}

.store-chip-reference {
  cursor: default;
  opacity: 0.65;
  border-style: dashed;
}

/* --- MERCHANT TOP 10 DRAWER --- */
.merchant-top10-drawer {
  margin-top: 22px;
  background: rgba(11, 19, 43, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 26px 24px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(16, 185, 129, 0.08);
}

.merchant-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.merchant-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.merchant-drawer-title-row img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 3px;
  object-fit: contain;
}

.merchant-drawer-title {
  font-size: 20px;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0;
  letter-spacing: -0.02em;
}

.merchant-drawer-sub {
  font-size: 13px;
  color: #94A3B8;
  margin: 4px 0 0;
}

.merchant-drawer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-sim-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 8px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.promo-sim-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  padding: 0 4px;
}

.promo-sim-btn {
  background: transparent;
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  cursor: pointer;
  transition: all 0.14s ease;
}

.promo-sim-btn:hover {
  border-color: rgba(16, 185, 129, 0.45);
  color: #FFFFFF;
}

.promo-sim-btn.active {
  background: #10B981;
  color: #04130D;
  border-color: #10B981;
}

.merchant-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.merchant-drawer-close:hover {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: #FDA4AF;
}


/* --- SECTION HEADERS --- */
.startup-section {
  padding: 56px 0;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-tag {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--site-accent, #10B981);
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--site-text, #F8FAFC);
}

.section-desc {
  font-size: 16px;
  color: var(--site-text-secondary, #94A3B8);
  margin: 0;
}

/* --- ANATOMY OF A FAKE DISCOUNT EXPLAINER --- */
.explainer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  background: var(--site-surface, rgba(15, 23, 42, 0.72));
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.09));
  border-radius: 24px;
  padding: 36px;
}

@media (max-width: 980px) {
  .explainer-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.explainer-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.explainer-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--site-surface-solid, #0F172A);
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 18px 20px;
}

.step-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--site-accent, #10B981);
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--site-text, #F8FAFC);
}

.step-body p {
  margin: 0;
  font-size: 14px;
  color: var(--site-text-secondary, #94A3B8);
}

/* --- LIVE DEALS TABS & GRID --- */
.region-tab-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.region-tab-btn {
  background: var(--site-surface-solid, #0F172A);
  color: var(--site-text-secondary, #94A3B8);
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.1));
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.region-tab-btn.active,
.region-tab-btn:hover {
  background: rgba(16, 185, 129, 0.14);
  color: var(--site-text, #F8FAFC);
  border-color: var(--site-accent, #10B981);
}

.cards-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* --- 3-COLUMN STARTUP BENTO GRID (AUDIENCE TRACKS) --- */
.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.bento-card {
  background: var(--site-surface, rgba(15, 23, 42, 0.78));
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.09));
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--site-border-accent, rgba(16, 185, 129, 0.4));
}

.bento-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  margin-bottom: 12px;
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--site-text, #F8FAFC);
}

.bento-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--site-text-secondary, #94A3B8);
}

.bento-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--site-text, #F8FAFC);
}

.bento-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-check {
  color: var(--site-accent, #10B981);
  font-weight: 800;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--site-accent, #10B981);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.bento-link:hover {
  text-decoration: underline;
}

/* --- DEDICATED SET TRUTH PAGE (/set/{item_no}) --- */
.set-page-breadcrumb {
  padding: 20px 0 12px;
  font-size: 13px;
  color: var(--site-text-muted, #64748B);
  display: flex;
  align-items: center;
  gap: 8px;
}

.set-page-breadcrumb a {
  color: var(--site-text-secondary, #94A3B8);
  text-decoration: none;
}

.set-page-breadcrumb a:hover {
  color: var(--site-accent, #10B981);
}

.verdict-banner {
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.verdict-banner.warn {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.verdict-badge {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  background: #10B981;
  color: #04130D;
  letter-spacing: 0.04em;
}

.verdict-banner.warn .verdict-badge {
  background: #F59E0B;
  color: #1E1300;
}

.set-truth-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 64px;
}

.set-truth-layout > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .set-truth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.set-panel-card {
  background: var(--site-surface, rgba(15, 23, 42, 0.8));
  border: 1px solid var(--site-border, rgba(255, 255, 255, 0.09));
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.set-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--site-text, #F8FAFC);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.store-comp-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-text-muted, #64748B);
  border-bottom: 1px solid var(--site-border, rgba(255, 255, 255, 0.1));
}

.store-comp-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--site-border, rgba(255, 255, 255, 0.06));
  color: var(--site-text, #F8FAFC);
}

.store-comp-table tr:last-child td {
  border-bottom: none;
}

.store-comp-price {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 14.5px;
}

.store-buy-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.store-buy-link:hover {
  background: #10B981;
  color: #04130D;
}

.store-buy-link-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: #10B981;
  color: #042F2E !important;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.2;
  border: 1px solid #34D399;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  transition: all 150ms ease;
}

.store-buy-link-primary:hover {
  background-color: #34D399;
  color: #022C22 !important;
  text-decoration: none !important;
}

.store-comp-row-winner {
  background-color: rgba(16, 185, 129, 0.05);
  border-left: 3px solid #10B981;
}

.store-comp-row-winner td {
  background-color: rgba(16, 185, 129, 0.05);
  border-top: 1px solid rgba(16, 185, 129, 0.28);
  border-bottom: 1px solid rgba(16, 185, 129, 0.28);
}

.store-comp-row-winner td:first-child {
  border-left: 3px solid #10B981;
}

.cheapest-store-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  color: #34D399;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-show-all-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid #1E293B;
  border-radius: 8px;
  color: #94A3B8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}

.store-show-all-btn:hover {
  background-color: rgba(30, 41, 59, 0.8);
  border-color: #334155;
  color: #34D399;
}

.store-link-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

/* Minifigures Grid on Set Page */
.minifig-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}

.minifig-mini-card {
  background: #0B132B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.minifig-mini-thumb {
  width: 68px;
  height: 68px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 5px;
  object-fit: contain;
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.minifig-mini-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.chart-series-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.chart-series-pill.muted {
  opacity: 0.42;
}

.chart-range-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-range-pill.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
}

/* --- STARTUP FOOTER --- */
.startup-footer {
  border-top: 1px solid var(--site-border, rgba(255, 255, 255, 0.08));
  padding: 40px 0;
  margin-top: 64px;
  font-size: 13px;
  color: var(--site-text-muted, #64748B);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  color: var(--site-text-secondary, #94A3B8);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--site-accent, #10B981);
}

/* --- SET PAGE INLINE SEARCH BAR --- */
.set-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.set-inline-search-wrap {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.set-inline-search-box {
  display: flex;
  align-items: center;
  background: var(--site-bg-card, #0F172A);
  border: 1px solid var(--site-border-strong, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.set-inline-search-box:focus-within {
  border-color: var(--site-accent, #10B981);
  box-shadow: 0 0 0 3px var(--site-accent-soft, rgba(16, 185, 129, 0.12));
}

.set-inline-search-icon {
  color: var(--site-text-muted, #64748B);
  flex-shrink: 0;
  margin-right: 8px;
}

.set-inline-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--site-text, #F8FAFC);
  font-size: 13px;
  font-family: inherit;
  padding: 4px 0;
}

.set-inline-search-input::placeholder {
  color: var(--site-text-muted, #64748B);
}

.set-inline-search-btn {
  background: var(--site-accent, #10B981);
  color: #022C22;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.set-inline-search-btn:hover {
  background: var(--site-accent-hover, #059669);
  color: #FFFFFF;
}

.set-inline-search-wrap .hero-search-results {
  width: 380px;
  max-width: calc(100vw - 32px);
  right: 0;
  left: auto;
}

@media (max-width: 640px) {
  .set-header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .set-inline-search-wrap {
    flex: 1;
    width: auto;
  }
  .set-inline-search-wrap .hero-search-results {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* --- HOMEPAGE INTELLIGENCE VIEW TABS & MONITOR MATRICES --- */
.home-intel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--site-border, rgba(255, 255, 255, 0.08));
}

.intel-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-filter-label {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.08em;
}

.intel-pill-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.intel-pill-btn {
  background: var(--site-surface-solid, #0F172A);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #94A3B8;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.intel-pill-btn:hover {
  border-color: #38BDF8;
  color: #F8FAFC;
}

.intel-pill-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38BDF8;
  color: #38BDF8;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.monitor-matrix-panel {
  background: var(--site-surface, rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.monitor-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(2, 6, 23, 0.65);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 12px;
}

.monitor-matrix-tag {
  color: #38BDF8;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.monitor-matrix-sub {
  color: #94A3B8;
  font-size: 11.5px;
}

.monitor-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.monitor-matrix-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38BDF8;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.monitor-matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
  vertical-align: middle;
}

.monitor-matrix-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

.monitor-set-link {
  color: #F59E0B;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-weight: 700;
  text-decoration: none;
}

.monitor-set-link:hover {
  text-decoration: underline;
  color: #FBBF24;
}

.monitor-name-link {
  color: #F8FAFC;
  font-weight: 600;
  text-decoration: none;
}

.monitor-name-link:hover {
  color: #38BDF8;
}

.pov-seg-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 12.5px;
}

.pov-seg-bar {
  display: inline-flex;
  gap: 2px;
  padding: 2px 4px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.pov-seg-cell {
  width: 7px;
  height: 11px;
  border-radius: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.pov-seg-cell.fill-green {
  background: #10B981;
}

.pov-seg-cell.fill-amber {
  background: #F59E0B;
}

.tier-badge-ev {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  white-space: nowrap;
}

.tier-badge-sub {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.mover-dir-dn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

.mover-dir-up {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.15);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
  white-space: nowrap;
}


