:root {
  --bottleneck-bg: #050a0f;
  --bottleneck-panel: #0a1520;
  --bottleneck-panel2: #0d1e2e;
  --bottleneck-border: #1a3a5c;
  --bottleneck-border-bright: #0d6efd;
  --bottleneck-accent: #00d4ff;
  --bottleneck-accent2: #ff6b35;
  --bottleneck-accent3: #7fff00;
  --bottleneck-accent4: #ff3366;
  --bottleneck-text: #c8dff0;
  --bottleneck-text-dim: #5a7a94;
  --bottleneck-text-bright: #ffffff;
  --bottleneck-cpu-color: #00d4ff;
  --bottleneck-gpu-color: #ff6b35;
  --bottleneck-ok: #7fff00;
  --bottleneck-warn: #ffd700;
  --bottleneck-danger: #ff3366;
  --bottleneck-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --bottleneck-glow-orange: 0 0 20px rgba(255, 107, 53, 0.3);
}

.bottleneck-calculator-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bottleneck-calculator-wrapper {
  background: var(--bottleneck-bg);
  color: var(--bottleneck-text);
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,100,200,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,80,0,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #050a0f 0%, #070d14 100%);
  padding: 20px;
}

/* Grid scanline overlay */
.bottleneck-calculator-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(0,212,255,0.015) 29px, rgba(0,212,255,0.015) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 29px, rgba(0,212,255,0.015) 29px, rgba(0,212,255,0.015) 30px);
  pointer-events: none;
  z-index: 0;
}

/* Animated top scanner line */
.bottleneck-calculator-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bottleneck-accent), transparent);
  animation: bottleneck-scanner 4s ease-in-out infinite;
  z-index: 999;
  pointer-events: none;
}

@keyframes bottleneck-scanner {
  0% { transform: translateY(0); opacity: 1; }
  90% { transform: translateY(100vh); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 0; }
}

/* STATUS BAR - Mobile Responsive */
.bottleneck-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bottleneck-panel);
  border: 1px solid var(--bottleneck-border);
  border-top: 2px solid var(--bottleneck-accent);
  padding: 8px 20px;
  margin: 20px 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--bottleneck-text-dim);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .bottleneck-status-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  
  .bottleneck-status-items {
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
  }
}

.bottleneck-status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bottleneck-ok);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--bottleneck-ok);
  animation: bottleneck-pulse 2s infinite;
}

@keyframes bottleneck-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.bottleneck-status-items { display: flex; gap: 30px; }

/* MAIN GRID */
.bottleneck-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .bottleneck-main-grid { grid-template-columns: 1fr; }
}

/* PANEL */
.bottleneck-panel {
  background: var(--bottleneck-panel);
  border: 1px solid var(--bottleneck-border);
  position: relative;
  overflow: hidden;
}

.bottleneck-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.bottleneck-cpu-panel::before { background: linear-gradient(90deg, var(--bottleneck-cpu-color), transparent); }
.bottleneck-gpu-panel::before { background: linear-gradient(90deg, var(--bottleneck-gpu-color), transparent); }
.bottleneck-result-panel::before { background: linear-gradient(90deg, var(--bottleneck-accent3), transparent); }
.bottleneck-full-panel::before { background: linear-gradient(90deg, var(--bottleneck-accent), transparent); }

.bottleneck-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bottleneck-border);
  background: rgba(255,255,255,0.02);
}

@media (max-width: 480px) {
  .bottleneck-panel-header {
    padding: 10px 12px;
    gap: 8px;
  }
}

.bottleneck-panel-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  position: relative;
}

@media (max-width: 480px) {
  .bottleneck-panel-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

.bottleneck-panel-title {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .bottleneck-panel-title {
    font-size: 10px;
    letter-spacing: 2px;
  }
}

.bottleneck-panel-title.bottleneck-cpu { color: var(--bottleneck-cpu-color); }
.bottleneck-panel-title.bottleneck-gpu { color: var(--bottleneck-gpu-color); }
.bottleneck-panel-title.bottleneck-green { color: var(--bottleneck-accent3); }
.bottleneck-panel-title.bottleneck-blue { color: var(--bottleneck-accent); }

.bottleneck-panel-body { padding: 20px; }

@media (max-width: 480px) {
  .bottleneck-panel-body {
    padding: 15px 12px;
  }
}

/* FORM CONTROLS */
.bottleneck-form-group {
  margin-bottom: 16px;
}

.bottleneck-form-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--bottleneck-text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bottleneck-form-select, .bottleneck-form-input {
  width: 100%;
  background: var(--bottleneck-bg);
  border: 1px solid var(--bottleneck-border);
  color: var(--bottleneck-text);
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (max-width: 480px) {
  .bottleneck-form-select, .bottleneck-form-input {
    padding: 8px 10px;
    font-size: 13px;
  }
}

.bottleneck-form-select:hover, .bottleneck-form-input:hover {
  border-color: var(--bottleneck-text-dim);
}

.bottleneck-form-select:focus, .bottleneck-form-input:focus {
  border-color: var(--bottleneck-accent);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.2), var(--bottleneck-glow);
}

.bottleneck-select-wrapper {
  position: relative;
}

.bottleneck-select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--bottleneck-text-dim);
  pointer-events: none;
}

.bottleneck-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .bottleneck-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* RANGE SLIDER */
.bottleneck-range-group {
  margin-bottom: 16px;
}

.bottleneck-range-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--bottleneck-border);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bottleneck-accent);
  box-shadow: 0 0 8px var(--bottleneck-accent);
  cursor: pointer;
  transition: transform 0.15s;
}

@media (max-width: 480px) {
  input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.bottleneck-range-value {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: var(--bottleneck-accent);
}

/* ANALYZE BUTTON */
.bottleneck-analyze-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 2px solid var(--bottleneck-accent);
  color: var(--bottleneck-accent);
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .bottleneck-analyze-btn {
    padding: 14px 10px;
    font-size: 11px;
    letter-spacing: 2px;
  }
}

.bottleneck-analyze-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bottleneck-accent);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: 0;
}

.bottleneck-analyze-btn:hover::before { transform: translateX(0); }
.bottleneck-analyze-btn:hover { color: var(--bottleneck-bg); }
.bottleneck-analyze-btn span { position: relative; z-index: 1; }

.bottleneck-analyze-btn:active { transform: scale(0.98); }

/* METRIC CARDS - Mobile Responsive */
.bottleneck-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .bottleneck-metrics-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .bottleneck-metrics-grid { 
    grid-template-columns: 1fr; 
    gap: 8px;
  }
}

.bottleneck-metric-card {
  background: var(--bottleneck-bg);
  border: 1px solid var(--bottleneck-border);
  padding: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .bottleneck-metric-card {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .bottleneck-metric-label {
    margin-bottom: 0;
    width: 40%;
    text-align: left;
  }
  
  .bottleneck-metric-value {
    width: 30%;
    text-align: center;
  }
  
  .bottleneck-metric-unit {
    width: 30%;
    text-align: right;
    margin-top: 0;
  }
}

.bottleneck-metric-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
}

.bottleneck-metric-card.bottleneck-cpu-card::after { background: var(--bottleneck-cpu-color); box-shadow: 0 0 8px var(--bottleneck-cpu-color); }
.bottleneck-metric-card.bottleneck-gpu-card::after { background: var(--bottleneck-gpu-color); box-shadow: 0 0 8px var(--bottleneck-gpu-color); }
.bottleneck-metric-card.bottleneck-neutral-card::after { background: var(--bottleneck-accent3); box-shadow: 0 0 8px var(--bottleneck-accent3); }

.bottleneck-metric-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bottleneck-text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bottleneck-metric-value {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--bottleneck-text-bright);
  line-height: 1;
}

@media (max-width: 480px) {
  .bottleneck-metric-value {
    font-size: 18px;
  }
}

.bottleneck-metric-unit {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--bottleneck-text-dim);
  margin-top: 4px;
}

/* BOTTLENECK GAUGE - Mobile Responsive */
.bottleneck-gauge-container {
  margin: 20px 0;
  text-align: center;
}

.bottleneck-gauge-wrap {
  position: relative;
  width: 220px;
  height: 120px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .bottleneck-gauge-wrap {
    width: 180px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .bottleneck-gauge-wrap {
    width: 160px;
    height: 90px;
  }
}

.bottleneck-gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bottleneck-gauge-label-center {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
}

.bottleneck-gauge-percent {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: var(--bottleneck-text-bright);
  display: block;
}

@media (max-width: 480px) {
  .bottleneck-gauge-percent {
    font-size: 22px;
  }
}

.bottleneck-gauge-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--bottleneck-text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

/* RESULTS GRID - Main responsive fix */
#bottleneck-resultGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 992px) {
  #bottleneck-resultGrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #bottleneck-resultGrid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* BOTTLENECK BAR */
.bottleneck-bottleneck-bar-wrap {
  margin: 16px 0;
}

.bottleneck-bottleneck-bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--bottleneck-text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bottleneck-bottleneck-bar-outer {
  height: 24px;
  background: var(--bottleneck-bg);
  border: 1px solid var(--bottleneck-border);
  position: relative;
  overflow: hidden;
}

.bottleneck-bottleneck-bar-cpu {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,212,255,0.8), rgba(0,212,255,0.4));
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex; align-items: center; padding-left: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--bottleneck-bg);
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
}

.bottleneck-bottleneck-bar-gpu {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  background: linear-gradient(270deg, rgba(255,107,53,0.8), rgba(255,107,53,0.4));
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--bottleneck-bg);
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
}

.bottleneck-bar-center-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.2);
  transform: translateX(-50%);
  z-index: 2;
}

/* STATUS BADGE */
.bottleneck-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  margin: 12px 0;
}

@media (max-width: 480px) {
  .bottleneck-status-badge {
    padding: 6px 12px;
    font-size: 10px;
    gap: 4px;
  }
}

.bottleneck-status-badge.bottleneck-ok { color: var(--bottleneck-ok); background: rgba(127,255,0,0.08); }
.bottleneck-status-badge.bottleneck-warn { color: var(--bottleneck-warn); background: rgba(255,215,0,0.08); }
.bottleneck-status-badge.bottleneck-danger { color: var(--bottleneck-danger); background: rgba(255,51,102,0.08); }

/* ANALYSIS SECTIONS */
.bottleneck-analysis-full {
  grid-column: 1 / -1;
}

/* SPEC COMPARISON TABLE - Mobile Responsive */
.bottleneck-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

@media (max-width: 768px) {
  .bottleneck-spec-table {
    font-size: 11px;
  }
  
  .bottleneck-spec-table th,
  .bottleneck-spec-table td {
    padding: 6px 8px;
  }
}

@media (max-width: 600px) {
  .bottleneck-spec-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

.bottleneck-spec-table th {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bottleneck-text-dim);
  text-transform: uppercase;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--bottleneck-border);
}

.bottleneck-spec-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(26,58,92,0.5);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  vertical-align: middle;
}

.bottleneck-spec-table tr:hover td { background: rgba(255,255,255,0.02); }

.bottleneck-spec-bar {
  height: 6px;
  background: var(--bottleneck-border);
  border-radius: 1px;
  overflow: hidden;
  min-width: 80px;
}

@media (max-width: 768px) {
  .bottleneck-spec-bar {
    min-width: 60px;
  }
}

.bottleneck-spec-bar-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.bottleneck-spec-bar-fill.bottleneck-cpu { background: linear-gradient(90deg, var(--bottleneck-cpu-color), rgba(0,212,255,0.5)); }
.bottleneck-spec-bar-fill.bottleneck-gpu { background: linear-gradient(90deg, var(--bottleneck-gpu-color), rgba(255,107,53,0.5)); }

/* FPS ESTIMATE TABLE - Mobile Responsive */
.bottleneck-fps-table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  .bottleneck-fps-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

.bottleneck-fps-table th {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bottleneck-text-dim);
  text-transform: uppercase;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--bottleneck-border);
}

.bottleneck-fps-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(26,58,92,0.3);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .bottleneck-fps-table td {
    padding: 6px 8px;
    font-size: 12px;
  }
}

.bottleneck-fps-badge {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
}

.bottleneck-fps-badge.bottleneck-high { color: var(--bottleneck-ok); background: rgba(127,255,0,0.12); border: 1px solid rgba(127,255,0,0.3); }
.bottleneck-fps-badge.bottleneck-mid { color: var(--bottleneck-warn); background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.3); }
.bottleneck-fps-badge.bottleneck-low { color: var(--bottleneck-danger); background: rgba(255,51,102,0.12); border: 1px solid rgba(255,51,102,0.3); }

/* RECOMMENDATION CARDS - Mobile Responsive */
.bottleneck-rec-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .bottleneck-rec-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .bottleneck-rec-cards {
    grid-template-columns: 1fr;
  }
}

.bottleneck-rec-card {
  background: var(--bottleneck-bg);
  border: 1px solid var(--bottleneck-border);
  padding: 14px;
  position: relative;
}

@media (max-width: 480px) {
  .bottleneck-rec-card {
    padding: 12px;
  }
}

.bottleneck-rec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
}

.bottleneck-rec-card.bottleneck-tip::before { background: var(--bottleneck-accent); }
.bottleneck-rec-card.bottleneck-warn::before { background: var(--bottleneck-warn); }
.bottleneck-rec-card.bottleneck-upgrade::before { background: var(--bottleneck-ok); }

.bottleneck-rec-icon { font-size: 18px; margin-bottom: 8px; }

.bottleneck-rec-title {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bottleneck-text-bright);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bottleneck-rec-text {
  font-size: 12px;
  color: var(--bottleneck-text-dim);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .bottleneck-rec-text {
    font-size: 11px;
  }
}

/* RADAR CHART - Mobile Responsive */
.bottleneck-radar-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
  .bottleneck-radar-wrap {
    justify-content: flex-start;
  }
  
  #bottleneck-radarCanvas {
    width: 380px;
    height: 340px;
  }
}

/* TABS - Mobile Responsive */
.bottleneck-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--bottleneck-border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .bottleneck-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .bottleneck-tabs {
    flex-direction: column;
    border-bottom: none;
  }
}

.bottleneck-tab-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--bottleneck-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}

@media (max-width: 768px) {
  .bottleneck-tab-btn {
    padding: 8px 12px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .bottleneck-tab-btn {
    border-bottom: 1px solid var(--bottleneck-border);
    margin-bottom: 0;
    text-align: left;
    width: 100%;
  }
  
  .bottleneck-tab-btn.bottleneck-active {
    border-bottom: 1px solid var(--bottleneck-accent);
  }
}

.bottleneck-tab-btn:hover { color: var(--bottleneck-text); }
.bottleneck-tab-btn.bottleneck-active { color: var(--bottleneck-accent); border-bottom-color: var(--bottleneck-accent); }

.bottleneck-tab-content { display: none; }
.bottleneck-tab-content.bottleneck-active { display: block; }

/* HISTORY LOG - Mobile Responsive */
.bottleneck-log-entry {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26,58,92,0.4);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .bottleneck-log-entry {
    gap: 8px;
  }
  
  .bottleneck-log-time {
    min-width: 60px;
    font-size: 10px;
  }
  
  .bottleneck-log-text {
    width: 100%;
    order: 1;
    font-size: 10px;
  }
}

.bottleneck-log-time { color: var(--bottleneck-text-dim); min-width: 70px; }
.bottleneck-log-text { color: var(--bottleneck-text); flex: 1; }
.bottleneck-log-badge { padding: 2px 8px; font-size: 10px; border-radius: 2px; }

/* COMPARE TOGGLE */
.bottleneck-compare-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bottleneck-compare-chip {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border: 1px solid var(--bottleneck-border);
  color: var(--bottleneck-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .bottleneck-compare-chip {
    padding: 4px 8px;
    font-size: 9px;
  }
}

.bottleneck-compare-chip:hover, .bottleneck-compare-chip.bottleneck-active {
  border-color: var(--bottleneck-accent);
  color: var(--bottleneck-accent);
  background: rgba(0,212,255,0.06);
}

/* SCORE RINGS */
.bottleneck-score-rings {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 10px 0;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .bottleneck-score-rings {
    gap: 15px;
  }
}

.bottleneck-score-ring {
  text-align: center;
}

.bottleneck-ring-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bottleneck-text-dim);
  text-transform: uppercase;
  margin-top: 8px;
}

/* DIVIDER */
.bottleneck-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bottleneck-border), transparent);
  margin: 16px 0;
}

/* HIDDEN STATE */
.bottleneck-result-section { display: none; }
.bottleneck-result-section.bottleneck-visible { display: block; }

/* CORNER DECORATIONS */
.bottleneck-corner-tl, .bottleneck-corner-br {
  position: absolute;
  width: 16px; height: 16px;
  pointer-events: none;
}
.bottleneck-corner-tl { top: 0; left: 0; border-top: 2px solid var(--bottleneck-accent); border-left: 2px solid var(--bottleneck-accent); }
.bottleneck-corner-br { bottom: 0; right: 0; border-bottom: 2px solid var(--bottleneck-accent); border-right: 2px solid var(--bottleneck-accent); }

/* ANIMATE IN */
@keyframes bottleneck-fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.bottleneck-animate-in {
  animation: bottleneck-fadeSlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.bottleneck-animate-in:nth-child(2) { animation-delay: 0.1s; }
.bottleneck-animate-in:nth-child(3) { animation-delay: 0.2s; }

/* LOADING STATE */
.bottleneck-loading-bar {
  height: 3px;
  background: var(--bottleneck-border);
  position: relative;
  overflow: hidden;
  margin: 10px 0;
}

.bottleneck-loading-bar::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--bottleneck-accent), transparent);
  animation: bottleneck-loading 1.5s ease-in-out infinite;
}

@keyframes bottleneck-loading {
  0% { transform: translateX(0); }
  100% { transform: translateX(350%); }
}

.bottleneck-computing { display: none; }
.bottleneck-computing.bottleneck-active { display: block; }

/* SCENARIO PICKER - Mobile Responsive */
.bottleneck-scenario-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .bottleneck-scenario-pills {
    gap: 6px;
  }
}

.bottleneck-scenario-pill {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 14px;
  background: var(--bottleneck-bg);
  border: 1px solid var(--bottleneck-border);
  color: var(--bottleneck-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .bottleneck-scenario-pill {
    padding: 5px 10px;
    font-size: 9px;
    flex: 1 0 auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .bottleneck-scenario-pill {
    flex: 1 0 calc(50% - 4px);
    font-size: 8px;
    padding: 6px 4px;
  }
}

.bottleneck-scenario-pill:hover { border-color: var(--bottleneck-accent); color: var(--bottleneck-accent); }
.bottleneck-scenario-pill.bottleneck-active { border-color: var(--bottleneck-accent); color: var(--bottleneck-accent); background: rgba(0,212,255,0.08); box-shadow: var(--bottleneck-glow); }

/* THERMAL INDICATORS - Mobile Responsive */
.bottleneck-thermal-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .bottleneck-thermal-row {
    flex-direction: column;
    gap: 8px;
  }
}

.bottleneck-thermal-item {
  flex: 1;
  background: var(--bottleneck-bg);
  border: 1px solid var(--bottleneck-border);
  padding: 10px;
}

@media (max-width: 480px) {
  .bottleneck-thermal-item {
    padding: 8px;
  }
}

.bottleneck-thermal-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--bottleneck-text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bottleneck-thermal-bar-outer {
  height: 8px;
  background: var(--bottleneck-border);
  border-radius: 1px;
  overflow: hidden;
}

.bottleneck-thermal-bar-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.8s;
}

.bottleneck-thermal-temp {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--bottleneck-text-bright);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .bottleneck-thermal-temp {
    font-size: 12px;
  }
}

/* COMPARE TABLE - Mobile Responsive */
.bottleneck-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

@media (max-width: 768px) {
  .bottleneck-compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 12px;
  }
}

.bottleneck-compare-table th {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bottleneck-text-dim);
  padding: 8px 10px;
  border-bottom: 1px solid var(--bottleneck-border);
  text-align: center;
}
.bottleneck-compare-table th:first-child { text-align: left; }
.bottleneck-compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(26,58,92,0.3);
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}
.bottleneck-compare-table td:first-child { text-align: left; color: var(--bottleneck-text-dim); font-family: 'Share Tech Mono', monospace; font-size: 11px; letter-spacing: 1px; }
.bottleneck-compare-table .bottleneck-cpu-col { color: var(--bottleneck-cpu-color); }
.bottleneck-compare-table .bottleneck-gpu-col { color: var(--bottleneck-gpu-color); }

.bottleneck-highlight-good { color: var(--bottleneck-ok); }
.bottleneck-highlight-bad { color: var(--bottleneck-danger); }

/* TOOLTIP */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a2a3a;
  border: 1px solid var(--bottleneck-border);
  color: var(--bottleneck-text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 6px 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  [data-tooltip]::after {
    font-size: 9px;
    padding: 4px 8px;
  }
}

[data-tooltip]:hover::after { opacity: 1; }

/* FILTER BUTTONS - Mobile Responsive */
.bottleneck-filter-btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .bottleneck-filter-btn-row {
    gap: 5px;
  }
}

.bottleneck-filter-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--bottleneck-border);
  background: none;
  color: var(--bottleneck-text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

@media (max-width: 480px) {
  .bottleneck-filter-btn {
    padding: 4px 6px;
    font-size: 8px;
    flex: 1 0 auto;
  }
}

.bottleneck-filter-btn.bottleneck-active, .bottleneck-filter-btn:hover {
  border-color: var(--bottleneck-accent);
  color: var(--bottleneck-accent);
}

.bottleneck-footnote {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--bottleneck-text-dim);
  letter-spacing: 1px;
  margin-top: 8px;
  opacity: 0.6;
}

/* Add these CSS rules to your existing css/cpu-gpu-bottleneck.css file */

/* ==========================================
   MOBILE RESPONSIVE FIXES
   ========================================== */

/* Make results grid vertical on mobile */
@media (max-width: 768px) {
  /* Results grid - stack vertically */
  #bottleneck-resultGrid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  /* Center gauge on mobile */
  .bottleneck-gauge-container {
    margin: 10px auto !important;
  }
  
  /* Adjust metrics grid for mobile */
  .bottleneck-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  /* Make metric values slightly smaller on mobile */
  .bottleneck-metric-value {
    font-size: 18px !important;
  }
  
  /* Adjust gauge size for mobile */
  .bottleneck-gauge-wrap {
    width: 180px !important;
    height: 100px !important;
  }
  
  .bottleneck-gauge-percent {
    font-size: 24px !important;
  }
  
  /* Status bar stack on mobile */
  .bottleneck-status-bar {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }
  
  .bottleneck-status-items {
    flex-wrap: wrap !important;
    gap: 15px !important;
  }
  
  /* Form rows stack on mobile */
  .bottleneck-form-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  /* Scenario pills wrap properly */
  .bottleneck-scenario-pills {
    gap: 6px !important;
  }
  
  .bottleneck-scenario-pill {
    font-size: 9px !important;
    padding: 4px 10px !important;
  }
  
  /* Filter buttons wrap */
  .bottleneck-filter-btn-row {
    gap: 4px !important;
  }
  
  .bottleneck-filter-btn {
    font-size: 8px !important;
    padding: 3px 6px !important;
  }
  
  /* Panel headers adjust */
  .bottleneck-panel-header {
    padding: 10px 12px !important;
  }
  
  .bottleneck-panel-title {
    font-size: 10px !important;
    letter-spacing: 2px !important;
  }
  
  /* Tabs scroll horizontally on mobile */
  .bottleneck-tabs {
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 5px !important;
    margin-bottom: 12px !important;
  }
  
  .bottleneck-tab-btn {
    padding: 8px 12px !important;
    font-size: 9px !important;
    display: inline-block !important;
    float: none !important;
  }
  
  /* Thermal section stack on mobile */
  .bottleneck-thermal-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
}

/* ==========================================
   HORIZONTAL SCROLL FOR TABLES
   ========================================== */

/* Make all tables horizontally scrollable on mobile */
@media (max-width: 768px) {
  .bottleneck-spec-table,
  .bottleneck-compare-table,
  .bottleneck-fps-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
  }
  
  /* Ensure table cells maintain their structure */
  .bottleneck-spec-table table,
  .bottleneck-compare-table table,
  .bottleneck-fps-table table {
    min-width: 600px !important; /* Minimum width before scrolling */
  }
  
  /* Specific table styles for scrolling */
  .bottleneck-spec-table,
  .bottleneck-compare-table,
  .bottleneck-fps-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }
  
  .bottleneck-spec-table th,
  .bottleneck-spec-table td,
  .bottleneck-compare-table th,
  .bottleneck-compare-table td,
  .bottleneck-fps-table th,
  .bottleneck-fps-table td {
    white-space: nowrap !important;
  }
  
  /* Add scroll indicator hint */
  .bottleneck-tab-content {
    position: relative !important;
  }
  
  .bottleneck-tab-content::after {
    content: '← SWIPE TO SCROLL →' !important;
    display: none !important;
  }
  
  @media (max-width: 768px) {
    .bottleneck-tab-content:has(table)::after {
      display: block !important;
      text-align: center !important;
      font-family: 'Share Tech Mono', monospace !important;
      font-size: 9px !important;
      color: var(--bottleneck-text-dim) !important;
      letter-spacing: 2px !important;
      margin-top: 8px !important;
      opacity: 0.7 !important;
    }
  }
}

/* ==========================================
   EXTRA SMALL DEVICES (PHONES)
   ========================================== */
@media (max-width: 480px) {
  .bottleneck-main-grid {
    gap: 8px !important;
  }
  
  .bottleneck-panel-body {
    padding: 12px !important;
  }
  
  .bottleneck-metrics-grid {
    grid-template-columns: 1fr !important;
  }
  
  .bottleneck-gauge-wrap {
    width: 160px !important;
    height: 90px !important;
  }
  
  .bottleneck-gauge-percent {
    font-size: 20px !important;
  }
  
  .bottleneck-gauge-desc {
    font-size: 8px !important;
  }
  
  #bottleneck-bottleneckType {
    font-size: 12px !important;
  }
  
  #bottleneck-bottleneckSub {
    font-size: 9px !important;
  }
  
  .bottleneck-bottleneck-bar-labels {
    font-size: 8px !important;
  }
  
  .bottleneck-bottleneck-bar-cpu,
  .bottleneck-bottleneck-bar-gpu {
    font-size: 9px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  
  /* Make badges smaller */
  .bottleneck-status-badge {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  
  /* Adjust corner decorations */
  .bottleneck-corner-tl,
  .bottleneck-corner-br {
    width: 12px !important;
    height: 12px !important;
  }
  
  /* Recommendation cards full width */
  .bottleneck-rec-cards {
    grid-template-columns: 1fr !important;
  }
  
  /* Log entries stack */
  .bottleneck-log-entry {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  
  .bottleneck-log-time {
    min-width: 60px !important;
  }
}

/* ==========================================
   TABLES - ALWAYS SCROLLABLE ON MOBILE
   ========================================== */

/* Ensure tables don't break layout */
.bottleneck-spec-table,
.bottleneck-compare-table,
.bottleneck-fps-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

/* Add scroll container for tables */
@media (max-width: 768px) {
  .bottleneck-tab-content {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Hide scroll indicator after user scrolls (optional) */
  .bottleneck-tab-content.scrolled::after {
    opacity: 0 !important;
    transition: opacity 0.3s !important;
  }
}

/* ==========================================
   TOUCH FRIENDLY IMPROVEMENTS
   ========================================== */

/* Increase touch target size on mobile */
@media (max-width: 768px) {
  .bottleneck-filter-btn,
  .bottleneck-scenario-pill,
  .bottleneck-tab-btn,
  .bottleneck-analyze-btn {
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Better spacing for touch */
  .bottleneck-form-select,
  .bottleneck-form-input {
    padding: 12px 14px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* Range sliders easier to grab */
  input[type="range"]::-webkit-slider-thumb {
    width: 20px !important;
    height: 20px !important;
  }
}