/* Digital Garage typography, served locally for standalone use. */
#instagram-dialog,
#share-caption {
  font-family: Inter, system-ui, sans-serif !important;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/inter-800.ttf") format("truetype");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/inter-900.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: #0d111c;
  --panel-card: #131826;
  --border: #22293c;
  --border-active: #a855f7;
  --text: #f8fafc;
  --muted: #94a3b8;
  --neon-purple: #b87cf8;
  --neon-cyan: #00e5ff;
  --neon-red: #ef4444;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

/* TOPBAR */
.topbar {
  padding: 8px 24px;
  background: #090c14;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 100;
  height: 52px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.back-link {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  letter-spacing: -0.5px;
}
.brand strong span {
  color: var(--neon-purple);
}
.brand i {
  height: 20px;
  width: 1px;
  background: #3b4256;
}

/* Logo Asli Liputan6 */
.liputan6-official-logo {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sponsor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.topbar-byd-logo {
  width: 80px;
  height: auto;
}

/* Radio Pill */
.music-pill {
  display: flex;
  align-items: center;
}
.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #161c2b;
  border: 1px solid #333d54;
  border-radius: 20px;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: all 0.2s;
}
.music-btn:hover {
  border-color: var(--neon-purple);
  background: #201a35;
}
.music-btn.playing {
  border-color: var(--neon-cyan);
  background: #102633;
  color: #79f7ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
.equalizer {
  display: inline-block;
  font-size: 10px;
}
.music-btn.playing .equalizer {
  animation: bounceEq 0.6s ease-in-out infinite alternate;
}
@keyframes bounceEq {
  from {
    transform: scaleY(0.4);
  }
  to {
    transform: scaleY(1.2);
  }
}

/* ======================================================== */
/* DESKTOP SPLIT LAYOUT (KOTAK MERAH KIRI + KOTAK HIJAU KANAN) */
/* ======================================================== */
.tuner-main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 16px;
  height: calc(100vh - 52px);
  padding: 12px 20px 16px;
  max-width: 1820px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  min-height: 0;
}

/* KOTAK MERAH (LEFT): FULL-BLEED MASSIVE CAR PREVIEW STAGE */
.tuner-stage-col {
  display: flex;
  height: 100%;
  width: 100%;
  min-width: 0;
  position: relative;
}

.stage {
  position: relative;
  overflow: hidden;
  background: #070a13;
  /*border-radius: 16px;
  border: 1px solid #283044;*/
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.9);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage:after {
  position: absolute;
  content: "";
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Logo AUTO TUNNING & BYD dimasukkan ke dalam area screen modifikasi di area atas */
.stage-brand-overlay {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.neon-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}
.auto-tunning-neon-img {
  height: 58px;
  width: auto;
  max-width: 85vw;
  object-fit: contain;
  filter: drop-shadow(0 0 1.5px #00e5ff) drop-shadow(0 0 4px #00e5ff)
    drop-shadow(0 0 10px rgba(0, 229, 255, 0.85));
  animation: electricNeonFlicker 3.2s ease-in-out infinite;
  will-change: filter, opacity;
}

@keyframes electricNeonFlicker {
  0%,
  30%,
  44%,
  64%,
  78%,
  100% {
    filter: drop-shadow(0 0 1.5px #00e5ff) drop-shadow(0 0 4.5px #00e5ff)
      drop-shadow(0 0 12px rgba(0, 229, 255, 0.95))
      drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
    opacity: 1;
  }
  32% {
    filter: drop-shadow(0 0 0.8px rgba(0, 229, 255, 0.4))
      drop-shadow(0 0 2px rgba(0, 229, 255, 0.3));
    opacity: 0.55;
  }
  34% {
    filter: drop-shadow(0 0 1.5px #00e5ff) drop-shadow(0 0 4.5px #00e5ff)
      drop-shadow(0 0 12px rgba(0, 229, 255, 0.95));
    opacity: 1;
  }
  36% {
    filter: drop-shadow(0 0 0.6px rgba(0, 229, 255, 0.3))
      drop-shadow(0 0 1.5px rgba(0, 229, 255, 0.2));
    opacity: 0.42;
  }
  38% {
    filter: drop-shadow(0 0 1.5px #00e5ff) drop-shadow(0 0 4.5px #00e5ff)
      drop-shadow(0 0 12px rgba(0, 229, 255, 0.95));
    opacity: 1;
  }
  66% {
    filter: drop-shadow(0 0 0.8px rgba(0, 229, 255, 0.4))
      drop-shadow(0 0 2.5px rgba(0, 229, 255, 0.3));
    opacity: 0.6;
  }
  68% {
    filter: drop-shadow(0 0 1.5px #00e5ff) drop-shadow(0 0 4.5px #00e5ff)
      drop-shadow(0 0 12px rgba(0, 229, 255, 0.95));
    opacity: 1;
  }
  70% {
    filter: drop-shadow(0 0 0.5px rgba(0, 229, 255, 0.25));
    opacity: 0.35;
  }
  72% {
    filter: drop-shadow(0 0 1.5px #00e5ff) drop-shadow(0 0 4.5px #00e5ff)
      drop-shadow(0 0 12px rgba(0, 229, 255, 0.95));
    opacity: 1;
  }
}

.byd-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 2px 9px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 auto;
}
.byd-logo-img {
  width: 46px !important;
  max-width: 48px !important;
  height: auto !important;
  max-height: 10px !important;
  display: inline-block;
  vertical-align: middle;
}

.loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 22, 0.9);
  z-index: 20;
}
.loading[hidden] {
  display: none;
}
/* ALTERNATIVE SPINNER */
.lds-roller {
  color: var(--neon-purple);
  margin-bottom: 18px;
}
.lds-roller,
.lds-roller div,
.lds-roller div:after {
  box-sizing: border-box;
}
.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7.2px;
  height: 7.2px;
  border-radius: 50%;
  background: currentColor;
  margin: -3.6px 0 0 -3.6px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 62.62742px;
  left: 62.62742px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 67.71281px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 70.90963px;
  left: 48.28221px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 70.90963px;
  left: 31.71779px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 67.71281px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 62.62742px;
  left: 17.37258px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12.28719px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* KOTAK HIJAU (RIGHT): MENU & ACTION DOCK SIDEBAR */
.tuner-menu-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--panel);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
  min-width: 0;
}

.sidebar-header {
  padding: 18px 18px 10px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.sidebar-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  font-family: var(--font-heading);
}
.sidebar-subtitle {
  font-size: 10px;
  color: var(--muted);
}

/* Category Switcher Tabs */
.nfsu2-category-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: transparent;
  padding: 6px 12px 10px;
  gap: 6px;
  flex-shrink: 0;
}
.nfsu2-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.nfsu2-cat-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 56px;
  padding: 7px 2px 9px;
  background: #151b2a;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #8b97ad;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-align: center;
}
.nfsu2-cat-btn:hover {
  background: #1b2335;
  border-color: transparent;
  color: #e2e8f0;
}
.nfsu2-cat-btn.active {
  background: #241a3d;
  border-color: transparent;
  color: #ffffff;
}
.nfsu2-cat-btn.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon-purple);
  transform: translateX(-50%);
}
.cat-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.cat-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cat-title {
  font-size: 8.5px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  text-align: center;
}
.badge-count {
  font-size: 7.5px;
  background: #3b2a56;
  color: #d8b4fe;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: center;
}
.cat-current {
  display: block;
  font-size: 7.5px;
  line-height: 1.2;
  color: #8b97ad;
  text-align: center;
}

/* Scrollable Items Container */
.nfsu2-items-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 14px 14px;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #3b2a56 #111624;
}
.nfsu2-items-container::-webkit-scrollbar {
  width: 5px;
}
.nfsu2-items-container::-webkit-scrollbar-thumb {
  background: #4a346e;
  border-radius: 4px;
}

.nfsu2-item-panel {
  display: none;
}
.nfsu2-item-panel.active {
  display: block;
  animation: panelFade 0.2s ease-out;
}
@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar Options Grid (2 Kolom) */
.sidebar-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #151b2a;
  border: 1px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 8px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.option:hover {
  background: #1b2335;
  border-color: transparent;
}
.option[aria-pressed="true"] {
  border-color: var(--neon-purple);
  background: #1d1633;
  color: #ffffff;
}
.option[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-purple);
  box-shadow: 0 0 0 2px #1d1633;
}
.option img {
  width: 100%;
  height: auto;
  aspect-ratio: 180 / 110;
  object-fit: cover;
  background: #0d1017;
  margin-bottom: 3px;
}
.option span {
  padding: 0 4px;
  line-height: 1.2;
}

/* Color Palette Grid */
.color-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.palette-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #151b2a;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-align: left;
}
.palette-option:hover {
  background: #1b2335;
  border-color: transparent;
}
.palette-option[aria-pressed="true"] {
  border-color: var(--neon-purple);
  background: #1d1633;
  color: #ffffff;
}
.paint-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #64748b;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.palette-option[aria-pressed="true"] .paint-dot {
  border-color: #ffffff;
  outline: 2px solid var(--neon-purple);
  outline-offset: 2px;
}

/* Bi-LED Headlights in Sidebar */
.biled-controller-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.biled-power-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #151b2a;
  border-radius: 14px;
}
.biled-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-family: var(--font-heading);
}
.lamp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 14px;
  background: #1a2132;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-heading);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.switch-track {
  width: 34px;
  height: 18px;
  background: #334155;
  border-radius: 999px;
  position: relative;
  transition: background-color 0.2s ease;
}
.switch-track span {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition:
    left 0.2s ease,
    background-color 0.2s ease;
}
.lamp-switch.is-on {
  background: #0f2431;
  border-color: var(--neon-cyan);
  color: #ffffff;
}
.lamp-switch.is-on .switch-track {
  background: #0284c7;
}
.lamp-switch.is-on .switch-track span {
  left: 18px;
  background: #e0fbff;
}

.biled-colors-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.biled-swatches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.lamp-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #151b2a;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.lamp-option:hover {
  background: #1b2335;
  border-color: transparent;
}
.lamp-option[aria-pressed="true"] {
  border-color: var(--neon-cyan);
  background: #0f2431;
  color: #ffffff;
}
.lens-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--lens-color, #00e5ff);
  box-shadow: 0 0 8px var(--lens-color, #00e5ff);
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

/* Suspension Grid */
.suspension-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.suspension-grid .option {
  flex-direction: row;
  justify-content: flex-start;
  padding: 8px 12px;
  gap: 12px;
}
.suspension-grid .option img {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  border-radius: 6px;
}
.suspension-grid .option span {
  font-size: 12px;
  font-weight: 700;
}

/* ACTION DOCK DIPINDAHKAN KE SEBELAH KANAN (TIDAK TERPOTONG) */
.sidebar-action-dock {
  padding: 12px 14px 14px;
  background: #0b0f19;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.dock-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-msg {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}
.status-msg.error {
  color: var(--neon-red);
}
.selection-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.selection-strip span {
  font-size: 9px;
  padding: 1px 5px;
  background: #1a2133;
  color: #a5b4fc;
  border: 1px solid transparent;
  border-radius: 4px;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.2px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.dock-btn.primary {
  background: #7e22ce;
  border-color: transparent;
  color: #ffffff;
}
.dock-btn.primary:hover:not(:disabled) {
  background: #9333ea;
  border-color: #c084fc;
}
.dock-btn.secondary {
  background: #1a2132;
  border-color: transparent;
  color: #cbd5e1;
}
.dock-btn.secondary:hover {
  background: #1e2639;
  border-color: #3b4762;
  color: #ffffff;
}
.dock-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.dock-btn.full-width {
  width: 100%;
}

.dock-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Dialog */
dialog {
  margin: auto;
  max-width: 440px;
  background: #101422;
  color: #ffffff;
  border: 1px solid #6b21a8;
  border-radius: 16px;
  padding: 24px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 20px;
  margin: 8px 0 12px;
}
dialog p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}
.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #94a3b8;
  font-size: 24px;
}

/* RESPONSIVE MOBILE (< 960px): STACKED VIEWPORT */
@media (max-width: 959px) {
  .topbar {
    padding: 6px 12px;
    height: 48px;
  }
  .sponsor {
    display: none;
  }
  .brand strong {
    font-size: 17px;
  }
  .liputan6-official-logo {
    height: 18px;
  }
  .back-link {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .tuner-main-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 48px);
    padding: 0 0 10px;
    gap: 0;
    overflow-y: auto;
  }

  .tuner-stage-col {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    width: 100%;
    height: auto;
  }
  .stage {
    height: clamp(220px, 40svh, 360px);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .stage-brand-overlay {
    top: 10px;
  }
  .auto-tunning-neon-img {
    height: 40px;
  }
  .byd-brand-badge {
    font-size: 7.5px;
    padding: 1px 7px;
    gap: 4px;
  }
  .byd-logo-img {
    width: 42px !important;
  }

  .tuner-menu-sidebar {
    border-radius: 0;
    border: none;
    background: #090c14;
    height: auto;
    overflow: visible;
  }
  .sidebar-header {
    display: none;
  }

  .nfsu2-category-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px;
    gap: 4px;
  }
  .nfsu2-cat-btn {
    height: 60px;
    padding: 8px 2px;
    gap: 4px;
    justify-content: center;
    touch-action: manipulation;
  }
  .cat-icon {
    width: 20px;
    height: 20px;
  }
  .cat-title {
    font-size: 9.5px;
    line-height: 1.2;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .badge-count {
    font-size: 9px;
  }

  /* Tampilkan kembali summary dengan gaya lebih ringkas */
  .dock-summary {
    display: block;
    margin-bottom: 8px;
  }
  .status-msg {
    font-size: 10px;
    margin-bottom: 4px;
    opacity: 0.8;
  }
  .selection-strip {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    font-size: 9px;
  }

  .nfsu2-items-container {
    padding: 12px;
    height: clamp(260px, 42svh, 420px);
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .palette-option,
  .lamp-option,
  .lamp-switch {
    min-height: 44px;
    touch-action: manipulation;
  }
  .sidebar-action-dock {
    position: sticky;
    bottom: 0;
    z-index: 60;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .dock-secondary-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .dock-btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    touch-action: manipulation;
  }
}
#instagram-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  padding: 26px;
  background: #101827;
  color: #f5f7fc;
  border: 1px solid #46536b;
  border-radius: 18px;
  font-family: Arial, sans-serif;
}
#instagram-dialog::backdrop {
  background: #000b;
}
#instagram-dialog h2 {
  font-size: 25px;
  margin: 0 30px 12px 0;
}
#instagram-dialog .share-close {
  position: absolute;
  top: 10px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  color: white;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}
#instagram-dialog .share-help {
  font-size: 13px;
  line-height: 1.6;
  color: #b9c5d9;
  margin: 12px 0;
}
#share-preview {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 14px 0;
}
#instagram-dialog label {
  display: block;
  font-size: 14px;
  margin: 10px 0;
}
#share-caption {
  width: 100%;
  box-sizing: border-box;
  background: #0a1020;
  color: #f7f9fc;
  border: 1px solid #526078;
  border-radius: 8px;
  padding: 12px;
  font:
    14px/1.5 Arial,
    sans-serif;
  resize: vertical;
}
#instagram-dialog .share-actions,
#instagram-dialog .share-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
#instagram-dialog button:not(.share-close),
#instagram-dialog .share-fallback a {
  min-height: 44px;
  padding: 12px 15px;
  border-radius: 8px;
  background: #6fe8df;
  border: 0;
  color: #0b1824;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
#instagram-dialog button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#instagram-dialog .share-fallback button,
#instagram-dialog .share-fallback a {
  background: #25344b;
  color: #fff;
}
#share-status {
  font-size: 13px;
  line-height: 1.6;
  color: #89eee5;
}
#instagram-dialog :focus-visible {
  outline: 3px solid #c8a4ff;
  outline-offset: 3px;
}
.dock-main-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Keep neon emphasis on the title and keyboard focus; controls use solid states. */
.music-btn,
.music-btn.playing,
.nfsu2-cat-btn,
.nfsu2-cat-btn.active,
.nfsu2-option-btn,
.nfsu2-option-btn.active,
.lamp-switch,
.lamp-switch.is-on,
.switch-track,
.switch-track span,
.dock-btn,
.dock-btn.primary,
.dock-btn.secondary,
.lamp-color-btn,
.lamp-color-btn.active,
.color-swatch,
.color-swatch.active {
  box-shadow: none !important;
  filter: none !important;
}
.tuner-menu-sidebar,
.preview-stage {
  box-shadow: none;
}
.tuner-menu-sidebar * {
  box-shadow: none !important;
  filter: none !important;
}
.nfsu2-category-bar button[aria-selected="true"] {
  border-color: transparent;
}
.asset-error {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #101827ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 16px;
}
.asset-error[hidden] {
  display: none;
}
.asset-error h2 {
  font-size: 22px;
}
.asset-error p {
  max-width: 440px;
  line-height: 1.6;
  color: #dbe5f3;
}
.asset-error button {
  min-height: 44px;
  padding: 12px 20px;
  background: #6fe8df;
  color: #101827;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.asset-error button:focus-visible {
  outline: 3px solid #c8a4ff;
  outline-offset: 4px;
}
