/* ShopGPT Homepage Tuner Widget — black + red, embeddable */
.shopgpt-tuner-widget {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: #0a0a0a;
  color: #f2f2f2;
  border: 1px solid #e10600;
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.25rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(225, 6, 0, 0.18);
  box-sizing: border-box;
}
.shopgpt-tuner-widget .widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #2a2a2a;
}
.shopgpt-tuner-widget .brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
}
.shopgpt-tuner-widget .brand .logo { color: #e10600; font-size: 1.2rem; }
.shopgpt-tuner-widget .brand .name { letter-spacing: 0.02em; }
.shopgpt-tuner-widget .mode-toggle { display: flex; gap: 0.35rem; }
.shopgpt-tuner-widget .mode-btn {
  background: #111;
  border: 1px solid #333;
  color: #bbb;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.shopgpt-tuner-widget .mode-btn.active {
  border-color: #e10600;
  color: #fff;
  background: #1a0505;
}
.shopgpt-tuner-widget .section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.45rem;
}
.shopgpt-tuner-widget .presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.shopgpt-tuner-widget .preset-btn {
  background: #111;
  border: 1px solid #333;
  color: #ddd;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.shopgpt-tuner-widget .preset-btn.active {
  border-color: #e10600;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.35);
}

/* Always-on string picker */
.shopgpt-tuner-widget .string-picker {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.7rem 0.35rem;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #0d0d0d;
}
.shopgpt-tuner-widget .string-picker .presets-grid { margin-bottom: 0.35rem; }
.shopgpt-tuner-widget .string-picker .preset-btn {
  min-width: 2.4rem;
  font-weight: 700;
}
.shopgpt-tuner-widget .target-hint {
  font-size: 0.75rem;
  color: #777;
  margin: 0.15rem 0 0.35rem;
  min-height: 1.1em;
}

.shopgpt-tuner-widget .display-section {
  text-align: center;
  padding: 0.35rem 0 0.75rem;
}
.shopgpt-tuner-widget .note-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.25rem;
}
.shopgpt-tuner-widget .note-name {
  font-size: clamp(2.8rem, 10vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.1s linear;
}
.shopgpt-tuner-widget .note-name.in { color: #5dff8a; }
.shopgpt-tuner-widget .note-name.flat { color: #ff2d2d; }
.shopgpt-tuner-widget .note-name.sharp { color: #ff2d2d; }
.shopgpt-tuner-widget .note-name.idle { color: #f2f2f2; }
.shopgpt-tuner-widget .note-octave { font-size: 1.1rem; color: #888; }

/* Big direction guidance */
.shopgpt-tuner-widget .tune-guide {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 1.35em;
  color: #888;
  transition: color 0.1s, text-shadow 0.1s;
}
.shopgpt-tuner-widget.tune-flat .tune-guide {
  color: #ff2d2d;
  text-shadow: 0 0 14px rgba(255, 45, 45, 0.45);
}
.shopgpt-tuner-widget.tune-sharp .tune-guide {
  color: #ff2d2d;
  text-shadow: 0 0 14px rgba(255, 45, 45, 0.45);
}
.shopgpt-tuner-widget.tune-in .tune-guide {
  color: #5dff8a;
  text-shadow: 0 0 14px rgba(93, 255, 138, 0.4);
}
.shopgpt-tuner-widget .tune-compare {
  font-size: 0.82rem;
  color: #9a9a9a;
  margin-bottom: 0.35rem;
  min-height: 1.2em;
}
.shopgpt-tuner-widget .tune-compare strong { color: #ddd; }
.shopgpt-tuner-widget .cents-display {
  margin: 0.35rem 0 0.25rem;
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 600;
}
.shopgpt-tuner-widget.tune-flat .cents-display,
.shopgpt-tuner-widget.tune-sharp .cents-display { color: #ff6b6b; }
.shopgpt-tuner-widget.tune-in .cents-display { color: #5dff8a; }

/* Traffic-light LEDs */
.shopgpt-tuner-widget .tune-leds {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin: 0.35rem 0 0.5rem;
}
.shopgpt-tuner-widget .tune-led {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #222;
  border: 1px solid #444;
  box-shadow: inset 0 0 4px #000;
  transition: background 0.08s, box-shadow 0.08s, border-color 0.08s;
}
.shopgpt-tuner-widget .tune-led.led-flat.on,
.shopgpt-tuner-widget.tune-flat .tune-led.led-flat {
  background: #ff2d2d;
  border-color: #ff6666;
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.85);
}
.shopgpt-tuner-widget .tune-led.led-in.on,
.shopgpt-tuner-widget.tune-in .tune-led.led-in {
  background: #5dff8a;
  border-color: #9dffb8;
  box-shadow: 0 0 14px rgba(93, 255, 138, 0.9);
}
.shopgpt-tuner-widget .tune-led.led-sharp.on,
.shopgpt-tuner-widget.tune-sharp .tune-led.led-sharp {
  background: #ff2d2d;
  border-color: #ff6666;
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.85);
}
.shopgpt-tuner-widget .tune-led-labels {
  display: flex;
  justify-content: space-between;
  max-width: 220px;
  margin: 0 auto 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

/* Analog meter + color states */
.shopgpt-tuner-widget .analog-meter {
  max-width: 260px;
  margin: 0.25rem auto 0.35rem;
  position: relative;
}
.shopgpt-tuner-widget .analog-meter svg { width: 100%; height: auto; display: block; }
.shopgpt-tuner-widget .analog-needle {
  transform-origin: 100px 100px;
  transition: transform 0.08s linear;
}
.shopgpt-tuner-widget .meter-arc-bg { stroke: #222; }
.shopgpt-tuner-widget .meter-arc-accent { stroke: #444; }
.shopgpt-tuner-widget .analog-needle line,
.shopgpt-tuner-widget .analog-needle circle {
  stroke: #888;
  fill: #888;
  transition: stroke 0.1s, fill 0.1s, filter 0.1s;
}
.shopgpt-tuner-widget.tune-flat .analog-needle line,
.shopgpt-tuner-widget.tune-flat .analog-needle circle,
.shopgpt-tuner-widget.tune-sharp .analog-needle line,
.shopgpt-tuner-widget.tune-sharp .analog-needle circle {
  stroke: #ff2d2d;
  fill: #ff2d2d;
  filter: drop-shadow(0 0 4px rgba(255, 45, 45, 0.8));
}
.shopgpt-tuner-widget.tune-in .analog-needle line,
.shopgpt-tuner-widget.tune-in .analog-needle circle {
  stroke: #5dff8a;
  fill: #5dff8a;
  filter: drop-shadow(0 0 5px rgba(93, 255, 138, 0.85));
}
.shopgpt-tuner-widget.tune-flat .meter-arc-accent { stroke: #ff2d2d; }
.shopgpt-tuner-widget.tune-sharp .meter-arc-accent { stroke: #ff2d2d; }
.shopgpt-tuner-widget.tune-in .meter-arc-accent { stroke: #5dff8a; }

.shopgpt-tuner-widget .meter-scale {
  display: flex;
  justify-content: space-between;
  max-width: 240px;
  margin: 0 auto 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shopgpt-tuner-widget .meter-scale .flat-lab { color: #ff6b6b; }
.shopgpt-tuner-widget .meter-scale .in-lab { color: #5dff8a; }
.shopgpt-tuner-widget .meter-scale .sharp-lab { color: #ff6b6b; }

/* Cents bar always visible */
.shopgpt-tuner-widget .cents-bar-wrap {
  max-width: 280px;
  margin: 0.35rem auto 0.5rem;
}
.shopgpt-tuner-widget .cents-bar {
  position: relative;
  height: 14px;
  background: linear-gradient(90deg, #4a0000 0%, #1a1a1a 45%, #0a2a14 50%, #1a1a1a 55%, #4a0000 100%);
  border: 1px solid #333;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.25rem 0 0.2rem;
}
.shopgpt-tuner-widget .cents-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  left: 50%;
  background: #888;
  transform: translateX(-50%);
  transition: left 0.08s linear, background 0.1s, box-shadow 0.1s;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  z-index: 2;
}
.shopgpt-tuner-widget.tune-flat .cents-indicator,
.shopgpt-tuner-widget.tune-sharp .cents-indicator {
  background: #ff2d2d;
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.85);
}
.shopgpt-tuner-widget.tune-in .cents-indicator {
  background: #5dff8a;
  box-shadow: 0 0 12px rgba(93, 255, 138, 0.9);
}
.shopgpt-tuner-widget .cents-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #5dff8a;
  opacity: 0.55;
  z-index: 1;
}
.shopgpt-tuner-widget .cents-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shopgpt-tuner-widget .cents-bar-labels span:nth-child(1) { color: #ff6b6b; }
.shopgpt-tuner-widget .cents-bar-labels span:nth-child(2) { color: #5dff8a; }
.shopgpt-tuner-widget .cents-bar-labels span:nth-child(3) { color: #ff6b6b; }

.shopgpt-tuner-widget .freq-display { font-size: 0.82rem; color: #666; }
.shopgpt-tuner-widget .status-text { font-size: 0.88rem; color: #9a9a9a; min-height: 1.3em; margin: 0.5rem 0; }
.shopgpt-tuner-widget .controls-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.shopgpt-tuner-widget .ctrl-btn {
  flex: 1;
  min-width: 110px;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.shopgpt-tuner-widget .ctrl-btn.start { background: #e10600; color: #fff; }
.shopgpt-tuner-widget .ctrl-btn.stop { background: transparent; color: #fff; border: 1px solid #444; }
.shopgpt-tuner-widget .ctrl-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.shopgpt-tuner-widget .advanced-controls {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #2a2a2a;
}
.shopgpt-tuner-widget.mode-advanced .advanced-controls { display: block; }
.shopgpt-tuner-widget .advanced-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.5rem;
}
.shopgpt-tuner-widget .advanced-controls select,
.shopgpt-tuner-widget .advanced-controls input {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
}
.shopgpt-tuner-widget .upsell-row {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}
.shopgpt-tuner-widget .upsell-link {
  display: flex !important;
  align-items: stretch;
  gap: 0;
  padding: 0 !important;
  border-radius: 12px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: #f2f2f2 !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  overflow: hidden;
  min-height: 72px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.shopgpt-tuner-widget .upsell-link:hover {
  border-color: #e10600;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.18);
}
.shopgpt-tuner-widget .upsell-thumb {
  flex: 0 0 78px;
  width: 78px;
  min-height: 72px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.shopgpt-tuner-widget .upsell-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.shopgpt-tuner-widget .upsell-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}
.shopgpt-tuner-widget .upsell-link strong {
  color: #e10600;
  display: block;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.25;
}
.shopgpt-tuner-widget .upsell-desc {
  color: #9a9a9a;
  font-size: 0.8rem;
  line-height: 1.3;
  display: block;
}
.shopgpt-tuner-widget .upsell-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e10600;
  border: 1px solid #5a0000;
  border-radius: 999px;
  padding: 0.08rem 0.4rem;
  margin-bottom: 0.2rem;
  width: fit-content;
}
.shopgpt-tuner-widget .widget-footer {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}
.shopgpt-tuner-widget .widget-footer a { color: #e10600 !important; }

/* Homepage section shell */
.sbc-tuner-section {
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(180deg, #050505 0%, #0a0505 100%);
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}
.sbc-tuner-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.75rem;
  align-items: center;
}
@media (max-width: 900px) {
  .sbc-tuner-section-inner { grid-template-columns: 1fr; }
}
.sbc-tuner-copy h2 {
  color: #fff !important;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
  font-weight: 800;
}
.sbc-tuner-copy h2 em { color: #e10600; font-style: normal; }
.sbc-tuner-copy p { color: #9a9a9a; margin: 0 0 1rem; max-width: 32rem; }
.sbc-tuner-copy .sbc-btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }
.sbc-tuner-copy .sbc-kicker {
  color: #e10600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
