@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   CONTAINER
============================================================ */
#bottleneck-calculator-container {
  position: relative;
  width: 100vw;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  background: #0b0d12 !important;
  color: #e8eaf0;
  font-family: 'Inter', -apple-system, sans-serif;
  box-sizing: border-box;
  padding: 56px 60px 80px;
}

/* ============================================================
   HERO — two column
============================================================ */
#calculator-form-section {
  max-width: 1040px;
  margin: 0 auto;
}

.sbnc-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

/* ---- LEFT ---- */
.sbnc-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(108,71,255,0.15);
  border: 1px solid rgba(108,71,255,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #9b7fff;
  margin-bottom: 20px;
}
.sbnc-badge-dot {
  width: 6px; height: 6px;
  background: #6c47ff; border-radius: 50%;
  display: inline-block;
}

.sbnc-headline {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: #e8eaf0;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.sbnc-headline span { color: #6c47ff; }

.sbnc-subline {
  font-size: 14px;
  color: #8890a4;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 360px;
}

/* Stats */
.sbnc-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sbnc-stat-n {
  font-size: 22px;
  font-weight: 700;
  color: #e8eaf0;
  line-height: 1;
}
.sbnc-stat-l {
  font-size: 11px;
  color: #8890a4;
  margin-top: 5px;
  line-height: 1.35;
}

/* Trust tags */
.sbnc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sbnc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #111420;
  border: 1px solid #1e2235;
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 12px;
  color: #8890a4;
}
.sbnc-tag i { color: #34c78c; font-size: 13px; }

/* ---- RIGHT — calculator card ---- */
.sbnc-right {
  width: 100%;
}

#bottleneck-form {
  background: #111420 !important;
  border: 1px solid #1e2235 !important;
  border-radius: 14px !important;
  padding: 24px !important;
}

.sbnc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e8eaf0;
  margin-bottom: 20px;
}
.sbnc-card-header i { color: #6c47ff; font-size: 16px; }

/* ---- LABELS ---- */
#bottleneck-calculator-container label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8890a4;
  margin-bottom: 7px;
  text-transform: none !important;
  letter-spacing: 0.02em;
}

/* ---- SEARCHABLE INPUTS ---- */
.searchable-dropdown-container { position: relative; }

.searchable-input {
  width: 100% !important;
  padding: 11px 13px !important;
  background: #1a1d28 !important;
  border: 1px solid #252838 !important;
  border-radius: 8px !important;
  color: #e8eaf0 !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  box-sizing: border-box !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  transition: border-color .2s !important;
}
.searchable-input::placeholder { color: #5a6080 !important; }
.searchable-input:focus {
  border-color: #6c47ff !important;
  box-shadow: 0 0 0 3px rgba(108,71,255,0.2) !important;
}

.searchable-dropdown-list {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #111420;
  border: 1px solid #1e2235;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 99999;
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}
.searchable-dropdown-list::-webkit-scrollbar { width: 4px; }
.searchable-dropdown-list::-webkit-scrollbar-track { background: #0b0d12; }
.searchable-dropdown-list::-webkit-scrollbar-thumb { background: #2e3150; border-radius: 2px; }
.searchable-dropdown-list.show { display: block; }
.dropdown-item {
  padding: 9px 13px;
  font-size: 12px;
  color: #8890a4;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.dropdown-item:hover { background: rgba(108,71,255,0.15); color: #e8eaf0; }

/* ---- NATIVE SELECTS ---- */
#bottleneck-calculator-container select {
  width: 100% !important;
  padding: 11px 30px 11px 12px !important;
  background: #1a1d28 !important;
  border: 1px solid #252838 !important;
  border-radius: 8px !important;
  color: #e8eaf0 !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238890a4' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  outline: none !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color .2s !important;
}
#bottleneck-calculator-container select:focus {
  border-color: #6c47ff !important;
  box-shadow: 0 0 0 3px rgba(108,71,255,0.2) !important;
}
#bottleneck-calculator-container select option {
  background: #111420 !important;
  color: #e8eaf0 !important;
}

/* ---- FORM GROUPS ---- */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.form-group:last-of-type { margin-bottom: 0; }

/* ---- RESOLUTION PILLS ---- */
.sbnc-res-label {
  font-size: 11px;
  font-weight: 500;
  color: #8890a4;
  margin-bottom: 8px;
  display: block;
}

.resolution-pills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 5px;
}

.res-pill {
  background: #1a1d28;
  border: 1px solid #252838;
  border-radius: 7px;
  padding: 9px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #8890a4;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  line-height: 1;
}
.res-pill:hover { border-color: #2e3150; color: #c8cad4; }
.res-pill.active {
  background: rgba(108,71,255,0.15);
  border-color: #6c47ff;
  color: #9b7fff;
}

/* ---- SMALL HINT ---- */
#bottleneck-calculator-container small {
  font-size: 11px;
  color: #5a6080;
  display: block;
  margin-top: 5px;
  margin-bottom: 0;
}

/* ---- ADVANCED TOGGLE ---- */
#advanced-options-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #8890a4;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 0 14px;
  transition: color .2s;
}
#advanced-options-btn:hover { color: #9b7fff; }
#advanced-options-btn .arrow { font-size: 9px; display: inline-block; transition: transform .3s; }
#advanced-options-btn.active .arrow { transform: rotate(180deg); }
#advanced-options-container { max-height: 0; overflow: hidden; transition: max-height .4s ease; }

/* ---- TWO-COL FOR RAM+STORAGE ---- */
.sbnc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ---- CALCULATE BUTTON ---- */
#calculate-btn {
  width: 100%;
  padding: 13px 20px;
  background: #6c47ff !important;
  border: none !important;
  border-radius: 9px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  margin-top: 4px;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 18px rgba(108,71,255,0.35);
}
#calculate-btn:hover {
  background: #7d5cff !important;
  transform: translateY(-1px);
}

.calc-note {
  text-align: center;
  font-size: 11px;
  color: #5a6080;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide WP-injected h3 and stray paragraphs */
#bottleneck-calculator-container > #calculator-form-section h3,
#bottleneck-calculator-container > #calculator-form-section > p,
#calculator-form-section > p:not(.sbnc-subline),
.sbnc-left > p:not(.sbnc-subline) {
  display: none !important;
}

/* ============================================================
   RESULTS SECTION
============================================================ */
#calculator-results-section {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 40px;
  animation: sbUp .4s ease-out;
}
@keyframes sbUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.result-card {
  background: #111420 !important;
  border: 1px solid #1e2235 !important;
  border-radius: 12px !important;
  padding: 20px 22px !important;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.result-card:hover { border-color: #2e3150 !important; }
.result-card p { text-align:left; font-size:13px; color:#8890a4; line-height:1.65; margin:0; }
.result-card h4 { font-size:14px; font-weight:600; color:#e8eaf0; margin:0 0 14px; padding-bottom:12px; border-bottom:1px solid #1e2235; }

#result-summary-card { display:flex; align-items:center; gap:14px; border-color:#2e3150 !important; }
.summary-icon { flex-shrink:0; width:32px; height:32px; }
.summary-text { flex-grow:1; }
.summary-text h4 { font-size:15px; margin:0 0 2px; border:none; padding:0; }
.summary-text p { font-size:12px; color:#8890a4; margin:0; }

#bottleneck-analysis-card .analysis-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
#bottleneck-analysis-card h4 { margin:0; border:none; padding:0; }
.analysis-values { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.analysis-values span { font-size:12px; font-weight:500; padding:3px 10px; border-radius:20px; }
#analysis-percentage { color:#c8cad4; background:rgba(255,255,255,.06); }
#analysis-status.balanced { color:#34c78c; background:rgba(52,199,140,.13); }
#analysis-status.bottleneck { color:#ef9027; background:rgba(239,144,39,.13); }
#analysis-recommendation { color:#5a6080; background:transparent !important; padding:0 !important; font-size:11px !important; }
.analysis-bar-container { width:100%; height:6px; background:#0b0d12; border-radius:4px; overflow:hidden; }
#analysis-bar { height:100%; background:linear-gradient(90deg,#34c78c,#58a6ff); border-radius:4px; transition:width .65s cubic-bezier(.4,0,.2,1); min-width:3px; }
#analysis-bar.orange { background:linear-gradient(90deg,#ef9027,#e24b4a); }

.detailed-performance-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.component-detail-card { text-align:center; padding:18px 14px; transition:transform .2s,border-color .2s; }
.component-detail-card:hover { transform:translateY(-3px); border-color:#6c47ff !important; }
.component-detail-card img { max-width:90px; height:75px; object-fit:contain; margin-bottom:10px; opacity:.9; }
.component-detail-card .component-name { font-size:13px; font-weight:600; color:#c8cad4; text-align:center; margin:0; }
.component-stats { margin-top:10px; padding-top:10px; border-top:1px solid #1e2235; }
.component-stats p { font-size:12px; color:#8890a4; margin-bottom:3px; text-align:center; }
.component-stats span { font-weight:600; color:#9b7fff; }

.resolution-impact-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:12px; }
.impact-stat-group p { font-size:13px; color:#c8cad4; margin-bottom:5px; text-align:left; }
.impact-stat-group p span { font-weight:600; color:#e8eaf0; }
.limiting-factor { font-weight:700 !important; color:#e24b4a !important; }
.impact-description { border-top:1px solid #1e2235; padding-top:11px; font-size:12px !important; color:#8890a4 !important; }

.assessment-row-v2 { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:11px 0; border-bottom:1px solid #1e2235; }
.assessment-row-v2:last-child { border-bottom:none; padding-bottom:0; }
.assessment-row-v2:first-child { padding-top:0; }
.assessment-info { flex-grow:1; }
.assessment-info p { font-size:12px; color:#8890a4; text-align:left; margin-top:2px; }
.status { font-size:11px; font-weight:600; padding:3px 10px; border-radius:20px; white-space:nowrap; flex-shrink:0; }
.status.good,.status.excellent { color:#34c78c; background:rgba(52,199,140,.13); }
.status.fair { color:#ef9027; background:rgba(239,144,39,.13); }
.status.poor { color:#e24b4a; background:rgba(226,75,74,.13); }

#recommendations-list { list-style:none; padding:0; margin:0; }
#recommendations-list li { display:flex; align-items:flex-start; gap:10px; padding:9px 0; font-size:12px; color:#8890a4; border-bottom:1px solid #1e2235; line-height:1.6; }
#recommendations-list li:last-child { border-bottom:none; padding-bottom:0; }
#recommendations-list li::before { content:''; width:5px; height:5px; border-radius:50%; background:#6c47ff; flex-shrink:0; margin-top:5px; }

.info-banner { display:flex; align-items:flex-start; gap:10px; background:rgba(88,166,255,.10); border:1px solid rgba(88,166,255,.18); border-radius:8px; padding:11px 13px; margin-bottom:16px; }
.info-banner-icon { flex-shrink:0; width:18px; height:18px; background:#58a6ff; color:#0b0d12; border-radius:50%; text-align:center; line-height:18px; font-weight:700; font-size:11px; }
.info-banner p { margin:0; font-size:12px; color:#8890a4; line-height:1.6; }
.config-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:11px; }
.config-item { background:#0b0d12; border:1px solid #1e2235; border-radius:9px; padding:13px; }
.config-header { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:4px; }
.config-header label { font-size:10px; font-weight:600; color:#8890a4; margin:0; text-transform:uppercase; letter-spacing:.06em; }
.config-header span { font-size:12px; font-weight:600; color:#e8eaf0; }
.config-rating { display:inline-block; font-size:10px; font-weight:600; padding:2px 8px; border-radius:20px; margin-bottom:4px; }
.config-rating.good,.config-rating.excellent { color:#34c78c; background:rgba(52,199,140,.13); }
.config-rating.fair { color:#ef9027; background:rgba(239,144,39,.13); }
.config-item p { font-size:11px; color:#5a6080; line-height:1.5; margin-top:3px; }

#bottleneck-analysis-text { font-size:13px !important; color:#8890a4 !important; line-height:1.7 !important; text-align:left !important; margin:0 !important; }
.info-box-nested { background:rgba(88,166,255,.10); border:1px solid rgba(88,166,255,.18); border-radius:8px; padding:13px; margin-top:13px; }
.info-box-nested p { font-size:12px; color:#8890a4; line-height:1.65; }
.info-box-nested strong { color:#58a6ff; }

.experience-section { padding:11px 0; border-bottom:1px solid #1e2235; }
.experience-section:last-child { border-bottom:none; padding-bottom:0; }
.experience-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.experience-header h6 { margin:0; font-size:12px; font-weight:600; }
.experience-header h6.esports { color:#58a6ff; }
.experience-header h6.aaa { color:#9b7fff; }
.experience-rating { font-size:11px; font-weight:600; color:#34c78c; padding:2px 9px; background:rgba(52,199,140,.13); border-radius:20px; }
.experience-section > p { font-size:12px; color:#8890a4; text-align:left; }
.experience-section > h6 { font-size:12px; font-weight:600; color:#c8cad4; margin:0 0 4px; }
#optimization-list { list-style:none; padding:0; margin:8px 0 0; display:flex; flex-direction:column; gap:5px; }
#optimization-list li { font-size:12px; color:#8890a4; display:flex; align-items:flex-start; gap:8px; line-height:1.55; }
#optimization-list li::before { content:''; width:4px; height:4px; border-radius:50%; background:#5a6080; flex-shrink:0; margin-top:6px; }

#calculator-results-section > h4 { font-size:15px; font-weight:600; color:#e8eaf0; margin:20px 0 10px; padding:0; border:none; }
#bottleneck-calculator-container h5 { font-size:10px; color:#5a6080; text-transform:uppercase; letter-spacing:.08em; font-weight:600; margin:0 0 10px; }
#bottleneck-calculator-container h6 { font-size:12px; font-weight:600; color:#c8cad4; margin:0 0 3px; }

#recalculate-btn { display:block; max-width:220px; width:100%; margin:24px auto 0; padding:11px 20px; font-size:13px; font-weight:600; color:#9b7fff; background:transparent; border:1px solid rgba(108,71,255,.35); border-radius:8px; cursor:pointer; font-family:'Inter',sans-serif; transition:background .2s,border-color .2s,color .2s; text-align:center; }
#recalculate-btn:hover { background:rgba(108,71,255,.15); border-color:#6c47ff; color:#e8eaf0; }
#future-sections-placeholder { display:none; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 720px) {
  #bottleneck-calculator-container { padding: 32px 20px 60px; }
  .sbnc-hero { grid-template-columns: 1fr; gap: 32px; }
  .sbnc-two-col { grid-template-columns: 1fr; }
  .detailed-performance-grid, .resolution-impact-grid { grid-template-columns: 1fr; }
  #result-summary-card { flex-direction: column; gap: 10px; }
  .assessment-row-v2 { flex-direction: column; gap: 6px; }
  .config-grid { grid-template-columns: 1fr; }
}