:root {
  --bg-dark: #0a0e17;
  --panel-bg: #121927;
  --card-bg: #172235;
  --card-hover: #1d2b42;
  --accent-cyan: #00d9ff;
  --accent-blue: #0077ff;
  --accent-orange: #ff9100;
  --accent-red: #ff3344;
  --accent-green: #00e676;
  --text-main: #f0f4fc;
  --text-muted: #8ca0ba;
  --border-color: #24354f;
  --border-focus: #00d9ff;
  --font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 110px;
}

.app-container {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

/* Header */
header {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

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

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 217, 255, 0.3);
  object-fit: cover;
}

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

.brand-titles h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-titles .brand-sub {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.help-toggle-btn:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--accent-cyan);
}

.help-toggle-btn:active {
  transform: scale(0.94);
}

.db-toggle-btn {
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.db-toggle-btn:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--accent-cyan);
}

.header-db-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(0, 217, 255, 0.4);
}

.lang-toggle-btn {
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle-btn:active {
  transform: scale(0.94);
  background: var(--accent-cyan);
  color: #000;
}

/* Navigation Tabs - Upper Top Bar */
.top-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 5px;
  margin-top: 2px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

.top-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: #8fa0b5;
  padding: 7px 2px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.15s ease;
  line-height: 1.15;
  text-align: center;
  outline: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 50px;
  box-sizing: border-box;
}

.top-tab-btn span:first-child {
  font-size: 16px;
  line-height: 1;
}

.top-tab-btn:hover {
  background: rgba(0, 217, 255, 0.08);
  color: #fff;
}

.top-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.18) 0%, rgba(0, 110, 255, 0.18) 100%);
  color: #fff;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.25);
}

.top-tab-btn.active span:first-child {
  filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.7));
}

/* Navigation Tabs - Compact Bottom Bar */
.tabs-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(8, 14, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px 4px calc(env(safe-area-inset-bottom, 0px) + 2px) 4px;
  border-top: 1px solid rgba(0, 217, 255, 0.22);
  box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.75);
  box-sizing: border-box;
  height: 50px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #7e91a9;
  padding: 2px 2px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: all 0.15s ease;
  line-height: 1.1;
}

.tab-btn span:first-child {
  font-size: 15px;
  line-height: 1;
}

.tab-btn.active {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-cyan);
  border-top: 2px solid var(--accent-cyan);
  border-radius: 0 0 6px 6px;
}

.tab-btn.active span:first-child {
  transform: none;
  filter: drop-shadow(0 0 4px rgba(0, 217, 255, 0.6));
}

/* Tab Contents */
.tab-content {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-content.active {
  display: flex;
}

.tab-bottom-spacer {
  height: 70px;
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}

/* Common Card */
.service-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 217, 255, 0.12);
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0088ff, #00d9ff);
  color: #001529;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
  transition: all 0.2s;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.97);
}

.btn-launch-remote {
  background: linear-gradient(135deg, #00e676, #00b34d);
  color: #052110;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.35);
  transition: all 0.2s;
}

.btn-launch-remote:active {
  transform: scale(0.97);
}

.btn-refine-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-refine-action:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-refine-action:active {
  transform: scale(0.97);
}

.refine-select {
  width: 100%;
  background: #0d1522;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}

.refine-select:focus {
  border-color: var(--accent-cyan);
}

/* Image preview container */
.preview-box {
  display: none;
  position: relative;
  width: 100%;
  max-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
}

.preview-box img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Serial Number & Barcode Decoder */
.sn-decoder-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0, 217, 255, 0.04);
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sn-decoder-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.sn-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sn-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.sn-input {
  width: 100%;
  background: #080e18;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  padding: 9px 34px 9px 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

[dir="rtl"] .sn-input {
  padding-left: 32px;
  padding-right: 12px;
}

[dir="ltr"] .sn-input {
  padding-right: 32px;
  padding-left: 12px;
}

.sn-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.25);
}

.sn-clear-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #8ca0ba;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}

[dir="rtl"] .sn-clear-btn {
  left: 8px;
}

[dir="ltr"] .sn-clear-btn {
  right: 8px;
}

.sn-clear-btn:hover {
  color: #fff;
}

.sn-decode-btn {
  background: linear-gradient(135deg, #00d9ff, #0077ff);
  color: #001529;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.sn-decode-btn:hover {
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.5);
  transform: translateY(-1px);
}

.sn-decode-btn:active {
  transform: scale(0.97);
}

.sn-quick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.sn-tag-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
}

.sn-tag-pill:hover {
  background: rgba(0, 217, 255, 0.15);
  color: #00d9ff;
  border-color: rgba(0, 217, 255, 0.35);
}

/* Search input */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: #0d131f;
  border: 1.5px solid var(--border-color);
  color: #fff;
  border-radius: 10px;
  padding: 11px 36px 11px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

[dir="rtl"] .search-input {
  padding: 11px 14px 11px 36px;
}

.search-input:focus {
  border-color: var(--accent-cyan);
}

.search-clear-btn {
  position: absolute;
  left: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

[dir="rtl"] .search-clear-btn {
  left: auto;
  right: 10px;
}

/* OEM Filter Dropdown */
.filter-dropdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Custom Neon Dark Dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
  z-index: 60;
}

.custom-dropdown-btn {
  width: 100%;
  background: #0c1424 !important;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  font-family: var(--font-family);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.custom-dropdown.is-open .custom-dropdown-btn,
.custom-dropdown-btn:focus,
.custom-dropdown-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.3);
}

.dropdown-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.dropdown-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dropdown-badge {
  background: rgba(0, 217, 255, 0.12);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(0, 217, 255, 0.25);
  white-space: nowrap;
}

.dropdown-chevron {
  color: var(--accent-cyan);
  font-size: 10px;
  transition: transform 0.25s ease;
}

.custom-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #090e18;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 217, 255, 0.2);
  backdrop-filter: blur(12px);
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.15s ease;
}

.custom-dropdown-item:hover {
  background: rgba(0, 217, 255, 0.12);
  color: #00d9ff;
}

.custom-dropdown-item.is-selected {
  background: rgba(0, 217, 255, 0.22);
  color: #fff;
  font-weight: 800;
  border-inline-start: 3px solid #00d9ff;
}

.custom-dropdown-item .item-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-dropdown-item .item-badge {
  font-size: 11px;
  font-weight: 700;
  color: #8ca0ba;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.custom-dropdown-item.is-selected .item-badge {
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.15);
}

.custom-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.custom-dropdown-menu::-webkit-scrollbar-track {
  background: #090e18;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

/* Error Card */
.error-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.error-card:hover {
  border-color: rgba(0, 217, 255, 0.4);
  background: #141c2c;
}

.error-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-inline-start: 4px;
}

.error-card.expanded .error-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.error-body {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  animation: errorFadeIn 0.18s ease-out;
}

.error-card.expanded .error-body {
  display: flex;
}

@keyframes errorFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-code-badge {
  background: linear-gradient(135deg, #ff3344, #ff6600);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
}

.error-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex: 1;
}

.error-brand-tag {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 700;
}

.error-series-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.12);
  border: 1px solid rgba(255, 183, 77, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.error-series-line {
  font-size: 11px;
  color: #ffe0b2;
  background: rgba(255, 183, 77, 0.08);
  border-inline-start: 3px solid #ffb74d;
  padding: 4px 8px;
  border-radius: 0 4px 4px 0;
}
[dir="rtl"] .error-series-line {
  border-radius: 4px 0 0 4px;
}

.error-meaning {
  font-size: 12px;
  color: #cdd9e8;
  line-height: 1.4;
}

.error-causes {
  font-size: 12px;
  color: var(--accent-orange);
  background: rgba(255, 145, 0, 0.08);
  border-inline-start: 3px solid var(--accent-orange);
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  line-height: 1.35;
}

[dir="rtl"] .error-causes {
  border-radius: 6px 0 0 6px;
}

.error-checks {
  font-size: 12px;
  color: #d1ffe6;
  background: rgba(0, 230, 118, 0.08);
  border-inline-start: 3px solid var(--accent-green);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
  white-space: pre-line;
}

[dir="rtl"] .error-checks {
  border-radius: 6px 0 0 6px;
}

/* Calculator Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.calc-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
}

.calc-select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: #0d131f;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  outline: none;
  font-family: var(--font-family);
}

.calc-select:focus {
  border-color: var(--accent-cyan);
}

.calc-input {
  box-sizing: border-box;
  width: 68px;
  max-width: 72px;
  min-width: 56px;
  background: #0d131f;
  border: 1.5px solid var(--border-color);
  color: #fff;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: var(--font-mono, monospace);
  -moz-appearance: textfield;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

/* Remove number spinners on WebKit/Chrome/Android */
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-result-box {
  background: #0f1624;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.calc-result-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.calc-result-status {
  font-size: 12px;
  font-weight: 700;
}

/* Table styles */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 320px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.data-table th {
  background: #0d131f;
  padding: 8px 6px;
  color: var(--accent-cyan);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
}

.data-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e0e8f5;
  font-family: var(--font-mono);
}

.data-table tr:hover td {
  background: rgba(0, 217, 255, 0.05);
}

/* Company Groups Accordion */
.company-group {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.company-group.open {
  border-color: rgba(0, 217, 255, 0.4);
}

.company-group-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #111827;
  user-select: none;
  transition: background 0.15s ease;
}

.company-group-header:hover {
  background: #162032;
}

.company-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.company-group-badge {
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.company-group-chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.company-group.open .company-group-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.company-group-content {
  display: none;
  padding: 12px;
  flex-direction: column;
  gap: 10px;
  background: #0a0f19;
  border-top: 1px solid var(--border-color);
}

.company-group.open .company-group-content {
  display: flex;
}

/* Accordion Guides */
.guide-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guide-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #141e2e;
}

.guide-header:hover {
  background: #1a273b;
}

.guide-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-content {
  display: none;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #d8e2ef;
  border-top: 1px solid var(--border-color);
  background: #0d131f;
}

.guide-item.open .guide-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-item.open .guide-arrow {
  transform: rotate(180deg);
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-btn {
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.2s;
}

.video-btn:active {
  transform: scale(0.96);
  background: #ff1a1a;
}

/* Toast */
.toast-box {
  display: none;
  position: fixed;
  bottom: 24px;
  background: rgba(18, 25, 38, 0.95);
  border: 1.5px solid var(--accent-cyan);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
  animation: toastFade 0.25s ease-out;
}

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

.preset-pill {
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.25);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-pill:hover, .preset-pill:active {
  background: var(--accent-cyan);
  color: #060b13;
  transform: translateY(-1px);
}

/* Header DB Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.db-toggle-btn {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.db-toggle-btn:active {
  transform: scale(0.94);
  background: var(--accent-green);
  color: #000;
}

.header-db-badge {
  font-size: 10px;
  background: rgba(0, 230, 118, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 9, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.modal-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* DB Status Card */
.db-status-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
}

.db-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.db-status-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.badge-status-builtin {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.badge-status-custom {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.db-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.db-info-item {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.db-info-k {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.db-info-v {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

/* DB Action Sections */
.db-action-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-input-row {
  display: flex;
  gap: 8px;
}

.db-text-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  direction: ltr;
}

.db-text-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.btn-primary-action {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-primary-action:active {
  transform: scale(0.96);
}

.db-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.db-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.db-action-btn:active {
  transform: scale(0.98);
}

.btn-danger-action {
  color: #ff5252;
  border-color: rgba(255, 82, 82, 0.3);
}

.btn-danger-action:hover {
  background: rgba(255, 82, 82, 0.1);
}

.btn-cloud-large {
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, #00d9ff, #0077ff);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.25);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-cloud-large:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.btn-cloud-large:active {
  transform: scale(0.98);
}

/* ========================================================
   TADIRAN STYLE ERROR CODE ACCORDION HIERARCHY
   ======================================================== */
.error-lookup-card {
  margin-bottom: 4px;
}

.error-search-box {
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

.error-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Category Card (Tadiran screenshot 0, 1) */
.error-cat-card {
  background: rgba(18, 30, 49, 0.8);
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.error-cat-card.is-open {
  border-color: rgba(0, 217, 255, 0.55);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.18);
}

.cat-header {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition: background 0.2s ease;
}

.cat-header:active {
  background: rgba(0, 217, 255, 0.12);
}

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

.cat-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.cat-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.cat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-count-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.cat-chevron {
  font-size: 14px;
  color: #8fa3bf;
  transition: transform 0.25s ease;
  display: inline-block;
}

html[dir="rtl"] .cat-chevron {
  transform: rotate(0deg);
}

html[dir="rtl"] .error-cat-card.is-open .cat-chevron {
  transform: rotate(-90deg);
}

html[dir="ltr"] .cat-chevron {
  transform: rotate(0deg);
}

html[dir="ltr"] .error-cat-card.is-open .cat-chevron {
  transform: rotate(90deg);
}

.cat-body {
  display: none;
  padding: 10px 12px 14px 12px;
  background: rgba(8, 14, 26, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-direction: column;
  gap: 8px;
}

.error-cat-card.is-open .cat-body {
  display: flex;
}

/* Sub-Series Card (Tadiran screenshot 2, 3) */
.error-series-card {
  background: rgba(26, 41, 66, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.error-series-card.is-open {
  border-color: rgba(255, 179, 0, 0.45);
}

.series-header {
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.series-header:active {
  background: rgba(255, 179, 0, 0.12);
}

.series-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.series-toggle-icon {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-amber);
  width: 18px;
  text-align: center;
}

.series-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.series-count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.series-body {
  display: none;
  padding: 8px 8px 12px 8px;
  background: rgba(10, 18, 32, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-direction: column;
  gap: 6px;
}

.error-series-card.is-open .series-body {
  display: flex;
}

/* Error Code Item (Tadiran screenshot 3) */
.error-code-item {
  background: rgba(18, 30, 49, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.error-code-item:hover {
  border-color: rgba(0, 217, 255, 0.35);
}

.error-code-item.is-expanded {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.18);
}

.code-row {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.code-row:active {
  background: rgba(0, 217, 255, 0.08);
}

.code-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #00e676;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.code-summary {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  flex: 1;
  line-height: 1.35;
}

.code-chevron {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.error-code-item.is-expanded .code-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* Error Full Diagnostic Panel (Tadiran screenshot 4) */
.error-detail-panel {
  display: none;
  padding: 12px 14px;
  background: #08111e;
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.error-code-item.is-expanded .error-detail-panel {
  display: flex;
}

.diag-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.diag-field-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.diag-field-val {
  color: #e2e8f0;
  font-size: 13px;
}

.diag-meaning-box {
  background: rgba(0, 217, 255, 0.06);
  border-right: 3px solid var(--accent-cyan);
  padding: 8px 10px;
  border-radius: 4px;
}
html[dir="ltr"] .diag-meaning-box {
  border-right: none;
  border-left: 3px solid var(--accent-cyan);
}

.diag-causes-box {
  background: rgba(255, 179, 0, 0.06);
  border-right: 3px solid var(--accent-amber);
  padding: 8px 10px;
  border-radius: 4px;
}
html[dir="ltr"] .diag-causes-box {
  border-right: none;
  border-left: 3px solid var(--accent-amber);
}

.diag-checks-box {
  background: rgba(0, 230, 118, 0.07);
  border-right: 3px solid #00e676;
  padding: 8px 10px;
  border-radius: 4px;
  white-space: pre-line;
}
html[dir="ltr"] .diag-checks-box {
  border-right: none;
  border-left: 3px solid #00e676;
}

.btn-copy-diag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy-diag:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--accent-cyan);
}

.btn-copy-diag:active {
  transform: scale(0.96);
}

/* Technology filter segmented bar */
.tech-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 19, 31, 0.7);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

.tech-filter-btn {
  flex: 1;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.tech-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tech-filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.22), rgba(0, 119, 255, 0.3));
  color: #00d9ff;
  border: 1px solid rgba(0, 217, 255, 0.45);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

/* Model Sensor Resistance Specs Card */
.model-sensors-card {
  background: linear-gradient(145deg, #111a2e, #0c1424);
  border: 1.5px solid rgba(0, 217, 255, 0.35);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.model-sensors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.model-sensors-title {
  font-size: 13px;
  font-weight: 800;
  color: #00d9ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-sensor-tech-badge {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.model-sensors-model-name {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.model-sensors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.model-sensor-item {
  background: rgba(13, 22, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.model-sensor-item.highlight {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.06);
}

.model-sensor-role {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.model-sensor-val {
  font-size: 12px;
  font-weight: 800;
  color: #00e676;
  font-family: var(--font-mono);
}

.model-sensor-btn {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 8px;
  color: #00d9ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.model-sensor-btn:hover {
  background: rgba(0, 217, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
}


/* 5-Step Technician Workflow Styles - Accordion Architecture */
.step-card {
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-card.is-open {
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow: 0 6px 24px rgba(0, 217, 255, 0.12);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  margin-bottom: 0;
  border-bottom: none;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.step-header:hover, .step-header:active {
  background: rgba(0, 217, 255, 0.08);
}

.step-card.is-open .step-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 217, 255, 0.05);
}

.step-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #080d14;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
  flex-shrink: 0;
}

.step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-meta-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 217, 255, 0.25);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.step-chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  display: inline-block;
}

.step-card.is-open .step-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.step-body {
  display: none;
  padding: 14px;
}

.step-card.is-open .step-body {
  display: block;
}
