/* ═══════════════════════════════════════
   DESIGN SYSTEM — MM × SITRAK (v3 Mockup)
   ═══════════════════════════════════════ */
:root {
  --mm-red: #C2001C;
  --mm-red-dark: #9A0016;
  --mm-red-glow: rgba(194, 0, 28, 0.3);
  --mm-dark: #22201F;
  --sitrak-blue: #003D6B;
  --sitrak-blue-light: #1A6A9A;
  --bg: #EDEEF2;
  --shadow-dark: #C5C5D0;
  --shadow-light: #FFFFFF;
  --text-primary: #22201F;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A96;
  --text-light: #FFFFFF;
  --container: min(620px, 94vw);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Russo One', sans-serif; line-height: 1.2; }

/* ═══════════════════════════════════════
   BLUE HERO STRIP
   ═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--mm-dark) 0%, #1A3550 50%, var(--sitrak-blue) 100%);
  padding: 0 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66Z' fill='none' stroke='%23C2001C' stroke-width='1'/%3E%3Cpath d='M28 166L0 150L0 116L28 100L56 116L56 150L28 166Z' fill='none' stroke='%23C2001C' stroke-width='1'/%3E%3C/svg%3E");
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar__mark {
  width: 28px; height: 28px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.topbar__name {
  font-family: 'Russo One', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  line-height: 1.15;
}
.topbar__name small {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar__right { display: flex; align-items: center; gap: 8px; }
.topbar__phone {
  font-family: 'Russo One', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.topbar__phone:hover { color: rgba(255,255,255,0.7); }
.topbar__icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.topbar__icon:hover { background: rgba(255,255,255,0.14); }
.topbar__icon svg { width: 14px; height: 14px; }

/* Hero title */
.hero__title {
  text-align: center;
  padding: 10px 16px 0;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.hero__title h1 {
  font-size: clamp(1.15rem, 3.8vw, 1.5rem);
  color: white;
  margin-bottom: 4px;
}
.hero__title h1 span { color: var(--mm-red); }
.hero__stats {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   MAIN CARD — neumorphic, overlaps hero
   ═══════════════════════════════════════ */
.main-card {
  max-width: var(--container);
  margin: -32px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}
.main-card__inner {
  background: linear-gradient(145deg, #F8F8FB, #E9E9EE);
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    8px 8px 18px var(--shadow-dark),
    -8px -8px 18px var(--shadow-light),
    0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.7);
}

/* ═══ TABS ═══ */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 4px;
}
.tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  background: transparent;
}
.tab.active {
  background: linear-gradient(145deg, #FFFFFF, #EDEDED);
  color: var(--text-primary);
  box-shadow:
    3px 3px 8px var(--shadow-dark),
    -3px -3px 8px var(--shadow-light);
}
.tab:not(.active):hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.3);
}
.tab__icon { width: 17px; height: 17px; }
.tab__lamp-icon {
  width: 20px; height: 20px;
  filter: saturate(0.6) brightness(0.8);
  transition: filter 0.2s;
}
.tab.active .tab__lamp-icon {
  filter: saturate(1.5) brightness(1.1) drop-shadow(0 0 4px rgba(255,160,0,0.5));
}

/* ═══ TAB PANELS ═══ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══════════════════════════════════════
   CODE SEARCH (inside tab panel)
   ═══════════════════════════════════════ */
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.field-full { margin-bottom: 10px; }
.field label,
.fields-row label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.field input,
.fields-row input,
.field-full input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.04), inset -1px -1px 2px rgba(255,255,255,0.8);
}
.field input:focus,
.fields-row input:focus,
.field-full input:focus {
  outline: none;
  border-color: var(--mm-red);
  box-shadow: 0 0 0 3px rgba(194,0,28,0.08), inset 1px 1px 2px rgba(0,0,0,0.02);
}
input::placeholder { color: #C0C0C8; }

.btn-find {
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #D8152E, var(--mm-red-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  box-shadow:
    4px 4px 10px rgba(194,0,28,0.25),
    -2px -2px 6px rgba(255,255,255,0.6);
}
.btn-find:hover {
  box-shadow:
    2px 2px 6px rgba(194,0,28,0.3),
    -1px -1px 3px rgba(255,255,255,0.5);
  transform: translateY(1px);
}
.btn-find:active {
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.15);
  transform: translateY(2px);
}
.search-hint {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ═══ SYMPTOM SEARCH ═══ */
.symptom-section {
  margin-top: 16px;
}
.symptom-divider {
  text-align: center;
  position: relative;
  margin: 8px 0 14px;
}
.symptom-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--shadow-dark);
  opacity: 0.3;
}
.symptom-divider span {
  position: relative;
  background: var(--bg);
  padding: 0 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.symptom-input {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}
.symptom-input::placeholder { color: var(--text-muted); }
.symptom-input:focus {
  outline: none;
  box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light), 0 0 0 2px rgba(0,61,107,0.2);
}
.symptom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.symptom-chip {
  padding: 5px 10px;
  border: none;
  border-radius: 16px;
  font-size: 0.72rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  cursor: pointer;
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
  transition: all 0.15s;
}
.symptom-chip:hover {
  color: var(--sitrak-blue);
  box-shadow: 1px 1px 2px var(--shadow-dark), -1px -1px 2px var(--shadow-light);
}
.symptom-chip.active {
  color: white;
  background: var(--sitrak-blue);
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2);
}
.symptom-result-header {
  background: rgba(0,61,107,0.06);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 auto 12px;
  max-width: var(--container);
}
.symptom-result-header__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sitrak-blue);
  margin-bottom: 4px;
}
.symptom-result-header__desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.symptom-result-header__note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* ═══════════════════════════════════════
   LAMPS PANEL — dark "screen" inset
   ═══════════════════════════════════════ */
.lamp-screen {
  background: linear-gradient(145deg, #1E1E24, #2A2A32);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.3), inset -1px -1px 3px rgba(255,255,255,0.02);
  border: 1px solid rgba(0,0,0,0.1);
}
.lamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}
.lamp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 3px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.lamp-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.lamp-card.selected {
  border-color: var(--mm-red);
  background: rgba(194,0,28,0.08);
}
.lamp-card__img {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: brightness(0.5) saturate(0.3);
  transition: filter 0.2s;
}
.lamp-card:hover .lamp-card__img {
  filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 6px rgba(255,180,0,0.5));
}
.lamp-card.selected .lamp-card__img {
  filter: brightness(1.4) saturate(1.6) drop-shadow(0 0 8px rgba(255,180,0,0.7));
}
.lamp-card[data-color="red"]:hover .lamp-card__img,
.lamp-card[data-color="red"].selected .lamp-card__img {
  filter: brightness(1.3) saturate(1.6) drop-shadow(0 0 8px rgba(255,60,60,0.6));
}
.lamp-card[data-color="green"]:hover .lamp-card__img,
.lamp-card[data-color="green"].selected .lamp-card__img {
  filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 6px rgba(50,200,80,0.5));
}
.lamp-card__name {
  font-size: 0.52rem;
  font-weight: 600;
  color: rgba(255,255,255,0.52);
  text-align: center;
  line-height: 1.15;
}
.lamp-card:hover .lamp-card__name,
.lamp-card.selected .lamp-card__name { color: rgba(255,255,255,0.65); }

/* Lamp detail (inside dark screen) */
.lamp-detail {
  margin-top: 10px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: none;
}
.lamp-detail.visible { display: block; }
.lamp-detail__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lamp-detail__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lamp-detail__icon img { width: 30px; height: 30px; object-fit: contain; }
.lamp-detail__icon--red { background: rgba(255,50,50,0.1); box-shadow: 0 0 16px rgba(255,50,50,0.2); }
.lamp-detail__icon--yellow { background: rgba(255,180,0,0.1); box-shadow: 0 0 16px rgba(255,180,0,0.2); }
.lamp-detail__icon--green { background: rgba(50,200,80,0.08); }
.lamp-detail__icon--blue { background: rgba(80,130,255,0.08); }
.lamp-detail__icon--white { background: rgba(255,255,255,0.05); }
.lamp-detail__title {
  font-family: 'Russo One', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
}
.lamp-detail__close {
  width: 28px; height: 28px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  line-height: 1;
  margin-left: auto;
}
.lamp-detail__close:hover {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}
.lamp-detail__badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 5px;
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.lamp-detail__badge--critical { background: rgba(255,50,50,0.12); color: #ff6b6b; }
.lamp-detail__badge--warning { background: rgba(255,180,0,0.12); color: #ffb347; }
.lamp-detail__badge--info { background: rgba(100,200,255,0.08); color: #7ec8e3; }
.lamp-detail__text {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  line-height: 1.6; margin-bottom: 6px;
}
.lamp-detail__action {
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
  padding: 10px; border-radius: 8px;
  background: rgba(0,0,0,0.12); line-height: 1.5;
  margin-bottom: 8px;
}
.lamp-detail__action strong { color: rgba(255,255,255,0.8); }
.lamp-detail__drive {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 5px;
}
.lamp-detail__drive--no { background: rgba(255,50,50,0.1); color: #ff6b6b; }
.lamp-detail__drive--yes { background: rgba(50,200,80,0.08); color: #5ecf74; }
.lamp-detail__cta-btns {
  display: flex; gap: 6px; margin-top: 10px;
}
.lamp-detail__cta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.72rem; font-weight: 700; font-family: 'Exo 2', sans-serif;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
  border: none;
}
.lamp-detail__cta-btn--tg {
  background: rgba(0,136,204,0.15); color: #4ac1e8;
}
.lamp-detail__cta-btn--tg:hover { background: rgba(0,136,204,0.25); }
.lamp-detail__cta-btn--max {
  background: rgba(123,104,238,0.15); color: #a594ff;
}
.lamp-detail__cta-btn--max:hover { background: rgba(123,104,238,0.25); }
.lamp-detail__cta-btn svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════ */
.loading-overlay {
  max-width: var(--container);
  margin: 20px auto;
  padding: 48px 20px;
  text-align: center;
}
.loading-overlay.hidden { display: none; }
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e4;
  border-top-color: var(--mm-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.loading-error { color: #dc2626; font-size: 0.85rem; line-height: 1.5; }
.loading-error code {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   LIGHT ZONE — results + CTA + footer
   ═══════════════════════════════════════ */

/* Results placeholder */
.results-area {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 16px;
  min-height: 60px;
}
.result-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.result-empty strong {
  display: block;
  font-family: 'Russo One', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

/* ═══════════════════════════════════════
   RESULTS AREA
   ═══════════════════════════════════════ */
#resultsArea {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px 20px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  margin-bottom: 8px;
}
.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.results-count strong { color: var(--mm-red); }

.results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═══════════════════════════════════════
   RESULT CARD (Neumorphic)
   ═══════════════════════════════════════ */
.card {
  background: linear-gradient(145deg, #FFFFFF, #EDEDF0);
  border-radius: 14px;
  box-shadow:
    4px 4px 10px var(--shadow-dark),
    -4px -4px 10px var(--shadow-light);
  border: 1.5px solid rgba(255,255,255,0.7);
  overflow: hidden;
  transition: all 0.25s;
}
.card:hover {
  box-shadow:
    6px 6px 14px var(--shadow-dark),
    -6px -6px 14px var(--shadow-light);
}
.card.expanded {
  border-color: var(--mm-red);
  box-shadow:
    6px 6px 16px var(--shadow-dark),
    -6px -6px 16px var(--shadow-light),
    0 0 0 1px var(--mm-red);
}

.card-header {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.card-system {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(0, 61, 107, 0.08);
  color: var(--sitrak-blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card-codes {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Russo One', sans-serif;
}
.card-codes .spn-val { color: var(--mm-red); }
.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge-factory {
  background: #d1fae5;
  color: #047857;
}
.badge-reference {
  background: #e5e7eb;
  color: #6b7280;
}
.badge-fmi {
  background: #ede9fe;
  color: #7c3aed;
  font-size: 0.62rem;
}

/* Expanded card details */
.card-details {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid #e8e8eb;
}
.card.expanded .card-details { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.card.expanded .card-details { animation: fadeIn 0.25s ease; }

.detail-section { margin-top: 14px; }
.detail-section h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--mm-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  font-family: 'Exo 2', sans-serif;
}
.detail-section p,
.detail-section ol,
.detail-section ul {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #374151;
}
.detail-section ol { padding-left: 18px; }
.detail-section ol li { margin-bottom: 4px; }

.detail-meta {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f3;
}
.detail-meta span { margin-right: 12px; }

/* --- Supplement (reference data) --- */
.detail-supplement {
  background: rgba(0, 61, 107, 0.04);
  border-left: 3px solid rgba(0, 61, 107, 0.15);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 14px;
}
.supplement-item {
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #374151;
}
.supplement-item:last-child { margin-bottom: 0; }
.supplement-source {
  font-size: 0.65rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

/* --- CTA inside card --- */
.card-cta {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0,61,107,0.06), rgba(194,0,28,0.04));
  border-radius: 10px;
  border: 1px solid rgba(0,61,107,0.1);
  text-align: center;
}
.card-cta__text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}
.card-cta__text strong { color: var(--text-primary); }
.card-cta__buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(145deg, var(--mm-red), var(--mm-red-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 2px 2px 6px rgba(194,0,28,0.25);
}
.btn-cta-book:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 10px rgba(194,0,28,0.35);
}
.btn-cta-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #2AABEE;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-cta-tg:hover { background: #229ED9; }

/* --- Feedback actions --- */
.detail-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  border: 1.5px solid;
  transition: all 0.15s;
}
.btn-copy-result {
  background: var(--mm-dark);
  color: #fff;
  border-color: var(--mm-dark);
}
.btn-copy-result:hover { background: #3d3a38; }
.btn-like {
  background: transparent;
  color: #166534;
  border-color: #166534;
}
.btn-like:hover { background: rgba(22, 101, 52, 0.07); }
.btn-like.liked {
  background: #dcfce7;
  color: #166534;
  border-color: #166534;
  pointer-events: none;
}
.btn-dislike {
  background: transparent;
  color: var(--mm-red);
  border-color: var(--mm-red);
}
.btn-dislike:hover { background: rgba(194, 0, 28, 0.05); }
.btn-comment {
  background: transparent;
  color: #1a73e8;
  border-color: #1a73e8;
}
.btn-comment:hover { background: rgba(26, 115, 232, 0.05); }
.copy-toast {
  font-size: 0.68rem;
  color: #059669;
  font-weight: 700;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-toast.show { opacity: 1; }

/* Feedback form */
.feedback-form {
  margin-top: 10px;
  display: none;
}
.feedback-form.visible { display: block; }
.feedback-form textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1.5px solid #e0e0e4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  resize: vertical;
}
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--mm-red);
}
.feedback-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}
.btn-send-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #2AABEE;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-send-tg:hover { background: #229ED9; }

/* Show more */
.btn-more {
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #FFFFFF, #E8E8EB);
  border: 1.5px solid #e0e0e4;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
  box-shadow:
    3px 3px 8px var(--shadow-dark),
    -3px -3px 8px var(--shadow-light);
  transition: all 0.2s;
}
.btn-more:hover {
  border-color: var(--mm-red);
  color: var(--mm-red);
}

/* Empty / Not found */
.empty-state, .not-found {
  background: linear-gradient(145deg, #FFFFFF, #E8E8EB);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  box-shadow:
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
}
.empty-state p, .not-found p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.empty-state .tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.contact-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mm-red);
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid var(--mm-red);
  border-radius: 8px;
  transition: all 0.2s;
  margin-top: 12px;
}
.contact-link-inline:hover {
  background: var(--mm-red);
  color: white;
}

/* ═══════════════════════════════════════
   LAMP RESULT CARD (light zone, below main card)
   ═══════════════════════════════════════ */
.lamp-result-card {
  background: linear-gradient(145deg, #FFFFFF, #EDEDF0);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow:
    6px 6px 14px var(--shadow-dark),
    -6px -6px 14px var(--shadow-light);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.lamp-result__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.lamp-result__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lamp-result__icon img {
  width: 36px; height: 36px;
  object-fit: contain;
}
.lamp-result__icon--red {
  background: rgba(255,50,50,0.1);
  box-shadow: 0 0 20px rgba(255,50,50,0.15);
}
.lamp-result__icon--red img { filter: brightness(1.1) saturate(1.4) drop-shadow(0 0 8px rgba(255,60,60,0.5)); }
.lamp-result__icon--yellow {
  background: rgba(255,180,0,0.1);
  box-shadow: 0 0 20px rgba(255,180,0,0.15);
}
.lamp-result__icon--yellow img { filter: brightness(1.1) saturate(1.3) drop-shadow(0 0 8px rgba(255,180,0,0.5)); }
.lamp-result__icon--green { background: rgba(50,200,80,0.08); }
.lamp-result__icon--green img { filter: saturate(1.2) drop-shadow(0 0 6px rgba(50,200,80,0.3)); }
.lamp-result__icon--blue { background: rgba(80,130,255,0.08); }
.lamp-result__icon--blue img { filter: saturate(1.2) drop-shadow(0 0 6px rgba(80,130,255,0.3)); }
.lamp-result__icon--white { background: rgba(0,0,0,0.04); }

.lamp-result__info { flex: 1; }
.lamp-result__name {
  font-family: 'Russo One', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.lamp-result__location {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.lamp-result__close {
  width: 32px; height: 32px;
  border: none;
  background: rgba(0,0,0,0.04);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  line-height: 1;
}
.lamp-result__close:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text-primary);
}
.lamp-result__severity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lamp-result__drive {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  margin-left: 6px;
}
.lamp-result__meaning {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.lamp-result__action {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  margin-bottom: 4px;
}
.lamp-result__action strong { color: var(--text-primary); }

/* Diagnostic hint (lamp → scanner needed) */
.lamp-diag-hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(0, 61, 107, 0.04);
  border-radius: 12px;
  border-left: 3px solid var(--sitrak-blue);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}
.lamp-diag-hint svg { color: var(--sitrak-blue); margin-top: 1px; }

/* Education teaser (coming soon) */
.lamp-education-teaser {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(0,61,107,0.03), rgba(194,0,28,0.03));
  border-radius: 14px;
  border: 1.5px dashed rgba(0,61,107,0.15);
}
.lamp-education-teaser__icon {
  color: var(--sitrak-blue);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 2px;
}
.lamp-education-teaser__body { flex: 1; min-width: 0; }
.lamp-education-teaser__text strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}
.lamp-education-teaser__text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 3px;
}
.lamp-education-teaser__btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 18px;
  border: none;
  border-radius: 8px;
  background: var(--sitrak-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.lamp-education-teaser__btn:hover { opacity: 0.85; }
.lamp-education-teaser__btn.voted {
  background: rgba(46,125,50,0.1);
  color: #2E7D32;
  cursor: default;
}
.lamp-education-teaser__badge {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mm-red);
  background: rgba(194,0,28,0.08);
  padding: 3px 8px;
  border-radius: 5px;
}

/* ═══════════════════════════════════════
   DRIVER BLOCK (in result card)
   ═══════════════════════════════════════ */
.driver-block {
  background: rgba(46, 125, 50, 0.04);
  border-left: 3px solid #2E7D32;
  border-radius: 0 10px 10px 0;
  padding: 14px;
  margin-top: 14px;
}
.driver-block__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2E7D32;
  margin-bottom: 8px;
}
.driver-block p {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.6;
}
.driver-severity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.driver-severity--ok {
  background: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
}
.driver-severity--warning {
  background: rgba(255, 152, 0, 0.1);
  color: #E65100;
}
.driver-severity--critical {
  background: rgba(194, 0, 28, 0.1);
  color: var(--mm-red);
}

/* ═══════════════════════════════════════
   NOT-FOUND FMI HINT
   ═══════════════════════════════════════ */
.fmi-hint-block {
  background: rgba(124, 58, 237, 0.05);
  border-left: 3px solid #7c3aed;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  margin: 14px 0;
  text-align: left;
}
.fmi-hint-block__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 4px;
}
.fmi-hint-block p {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   SERVICE CTA — neumorphic card
   ═══════════════════════════════════════ */
.service-cta {
  max-width: var(--container);
  margin: 12px auto 0;
  padding: 0 16px;
}
.service-cta__card {
  background: linear-gradient(145deg, #F8F8FB, #E9E9EE);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow:
    5px 5px 12px var(--shadow-dark),
    -5px -5px 12px var(--shadow-light);
  border: 1px solid rgba(255,255,255,0.7);
}
.service-cta__heading {
  font-family: 'Russo One', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.service-cta__text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.service-cta__btns {
  display: flex; gap: 8px; justify-content: center;
}
.btn-msg {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 22px; border-radius: 10px;
  font-size: 0.78rem; font-weight: 700; font-family: 'Exo 2', sans-serif;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
  border: none;
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}
.btn-msg:hover {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
  transform: translateY(1px);
}
.btn-msg:active {
  box-shadow: inset 1px 1px 3px var(--shadow-dark), inset -1px -1px 3px var(--shadow-light);
}
.btn-msg--tg {
  background: linear-gradient(145deg, #F8F8FB, #E9E9EE);
  color: #0088cc;
}
.btn-msg--max {
  background: linear-gradient(145deg, #F8F8FB, #E9E9EE);
  color: #7B68EE;
}
.btn-service-max {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #7B68EE;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-service-max:hover { background: #6A5ACD; }

/* ═══════════════════════════════════════
   LOCATIONS
   ═══════════════════════════════════════ */
.locations {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 16px;
  text-align: center;
}
.locations__title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.locations__row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
}
.loc {
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(145deg, #F8F8FB, #ECECF0);
  box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
}
.loc--own { color: var(--mm-red); }
.loc--partner { color: var(--sitrak-blue); }
.loc-phone {
  font-family: 'Russo One', sans-serif;
  font-size: 0.82rem;
  color: var(--text-primary);
  text-decoration: none;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .topbar__phone { display: none; }
  .topbar__name small { display: none; }
  .lamps-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 5px; }
  .lamp-card { padding: 6px 2px 5px; }
  .lamp-card__img { width: 26px; height: 26px; }
  .lamp-card__name { font-size: 0.48rem; }
  .main-card__inner { padding: 16px; }
}