:root {
  color-scheme: dark;
  --bg: #090a0f;
  --bg-soft: #0e1320;
  --panel: rgba(18, 21, 31, 0.88);
  --panel-strong: rgba(13, 15, 24, 0.96);
  --panel-accent: rgba(28, 21, 40, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(67, 125, 255, 0.42);
  --text: #f8fbff;
  --muted: #9ea7bc;
  --blue: #2e7dff;
  --purple: #a13dff;
  --red: #ff4d67;
  --green: #22d96f;
  --green-strong: #0da95c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --max-width: 1240px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(30, 82, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(161, 61, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(6, 9, 17, 0.92), rgba(7, 8, 13, 0.98)),
    url("./assets/tool_background.png") center top / cover no-repeat fixed,
    var(--bg);
  color: var(--text);
  font: 16px/1.55 "Barlow", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.28;
  pointer-events: none;
}

body::before {
  top: -14vw;
  left: -10vw;
  background: rgba(46, 125, 255, 0.34);
}

body::after {
  right: -10vw;
  bottom: -18vw;
  background: rgba(161, 61, 255, 0.28);
}

body.policy-page {
  background:
    radial-gradient(circle at top left, rgba(46, 125, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 126, 46, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(6, 9, 17, 0.96), rgba(7, 8, 13, 0.98)),
    var(--bg);
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.policy-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.policy-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(16, 23, 37, 0.94), rgba(10, 12, 20, 0.96)),
    rgba(10, 12, 20, 0.96);
  box-shadow: var(--shadow);
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.policy-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.policy-card h1 {
  margin: 8px 0 8px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

.policy-updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-weight: 700;
}

.policy-section {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-section h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
}

.policy-section p {
  margin: 0;
  color: #b9c2d1;
  line-height: 1.75;
}

.policy-section p + p {
  margin-top: 12px;
}

.policy-section a {
  color: #ffd66b;
  font-weight: 800;
}

.policy-actions {
  margin-top: 10px;
}

#home,
#products,
#listen,
#pricing,
#order,
#toy-clearance,
#downloads {
  scroll-margin-top: 104px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 4, 7, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 64px;
  padding: 0 clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.brand-mark {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(26px, 2.7vw, 36px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 2.2px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f7f9ff;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.topnav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  overflow-x: auto;
  padding: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #9aa3b4;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease;
}

.topnav a.is-active {
  color: #ffffff;
  border-color: transparent;
  background: transparent;
}

.topnav a.is-active::after {
  display: none;
}

.topnav a {
  position: relative;
}

.support-nav-link {
  color: #ff667b !important;
  font-weight: 700 !important;
}

.cart-nav-button {
  grid-column: 3;
  justify-self: end;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #aeb6c5;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.cart-nav-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.cart-nav-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-back-home {
  grid-column: 3;
  justify-self: end;
  display: none;
  align-items: center;
  min-height: 44px;
  color: #b8c0cf;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

body.tabs-ready:not([data-active-tab="home"]) .topnav {
  display: none;
}

body.tabs-ready:not([data-active-tab="home"]) .cart-nav-button {
  display: none;
}

body.tabs-ready:not([data-active-tab="home"]) .topbar-back-home {
  display: inline-flex;
}

.floating-cta {
  position: fixed;
  right: max(18px, calc((100vw - var(--max-width)) / 2 + 18px));
  bottom: 22px;
  z-index: 80;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(7, 9, 15, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

body.tabs-ready .floating-cta {
  display: none;
}

body.tabs-ready[data-active-tab="listen"] .floating-cta,
body.tabs-ready[data-active-tab="pricing"] .floating-cta {
  display: grid;
}

.floating-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.zalo-button {
  background: linear-gradient(135deg, #0b74ff, #18a7ff);
}

.config-button {
  background: linear-gradient(135deg, #22c55e, #15a66a);
}

.order-button {
  background: linear-gradient(135deg, #ff7a1a, #ff3d14);
}

.shop-cta,
.primary-button,
.ghost-button,
.accent-button,
.secondary-button,
.platform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 20px;
  font-weight: 800;
}

.shop-cta {
  background: linear-gradient(135deg, #ff5a00, #ff3000);
  color: #ffffff;
  min-height: 52px;
  padding: 0 26px;
}

main {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.tabs-ready main > .tab-panel {
  display: none;
}

.tabs-ready main > .tab-panel.is-active-tab {
  display: block;
}

.site-footer {
  background:
    radial-gradient(circle at right bottom, rgba(79, 32, 106, 0.24), transparent 34%),
    #030305;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
  width: min(var(--max-width), calc(100vw - 72px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0 34px;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1fr);
  gap: clamp(48px, 9vw, 160px);
  align-items: start;
}

.footer-brand-block {
  max-width: 390px;
}

.footer-logo-text {
  display: inline-flex;
  margin-bottom: 20px;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

.footer-brand-block p {
  margin: 0;
  color: #8090ad;
  font-size: 16px;
  line-height: 1.65;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 62px);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: #7180a2;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.footer-column a {
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: #dce5ff;
}

.footer-contact-column span {
  color: #8b98b4;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: clamp(54px, 7vw, 78px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #5f6e8b;
  font-size: 13px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
  white-space: nowrap;
}

.footer-legal-links a {
  color: #677394;
  transition: color 160ms ease;
}

.footer-legal-links a:hover {
  color: #dce5ff;
}

.hero-section {
  padding-top: 28px;
}

.hero-panel,
.surface-card,
.platform-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(15, 18, 28, 0.94), rgba(10, 12, 19, 0.96));
  box-shadow: var(--shadow);
}

.hero-panel::before,
.surface-card::before,
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(130deg, rgba(46, 125, 255, 0.1), transparent 35%),
    linear-gradient(315deg, rgba(161, 61, 255, 0.1), transparent 42%);
  pointer-events: none;
}

.hero-panel {
  padding: 40px 44px 46px;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  object-fit: cover;
  pointer-events: none;
}

.hero-panel::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 12, 20, 0.9), rgba(9, 12, 20, 0.5) 54%, rgba(16, 10, 28, 0.82)),
    linear-gradient(130deg, rgba(46, 125, 255, 0.12), transparent 35%),
    linear-gradient(315deg, rgba(161, 61, 255, 0.12), transparent 42%);
}

.hero-panel > :not(.hero-bg-video) {
  position: relative;
  z-index: 2;
}

.release-pill,
.preset-counter,
.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.release-pill {
  padding: 10px 18px;
  color: #ebf2ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: center;
}

.eyebrow,
.micro-label {
  margin: 0;
  color: #9ebcff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  margin-top: 18px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(52px, 9vw, 104px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero-copy h1 span,
.hero-stage-title span,
.section-heading h2 span {
  color: transparent;
  background: linear-gradient(135deg, #2e7dff 0%, #8f46ff 48%, #ff4d67 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text,
.section-copy,
.platform-card p,
.panel-note,
.guide-list,
.contact-list p {
  color: var(--muted);
}

.hero-text {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.shop-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, filter 160ms ease;
}

.shop-action-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.shop-zalo-button {
  background: linear-gradient(135deg, #198dff, #0d7dff);
}

.shop-config-button {
  background: linear-gradient(135deg, #22c55e, #15a66a);
}

.shop-order-button {
  background: linear-gradient(135deg, #ff7b18, #ff4817);
}

.primary-button {
  background: #ffffff;
  color: #0a0d14;
}

.ghost-button,
.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.accent-button {
  background: linear-gradient(135deg, #2e7dff, #8f46ff);
  color: #ffffff;
}

.hero-meta {
  margin: 18px 0 0;
  color: #d6ddf0;
  font-size: 14px;
}

.hero-stage {
  padding: 24px 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(92, 128, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(14, 20, 36, 0.98), rgba(12, 11, 22, 0.98)),
    rgba(255, 255, 255, 0.02);
}

.hero-stage-logo {
  display: block;
  width: 90px;
  height: 90px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.hero-stage-caption {
  margin: 0;
  color: #bcd1ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-stage-title {
  margin-top: 18px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-stage-streak {
  height: 5px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46, 125, 255, 0.92), rgba(161, 61, 255, 0.88), rgba(255, 77, 103, 0.88));
  box-shadow: 0 0 32px rgba(86, 99, 255, 0.34);
}

.hero-stage-note {
  margin: 16px 0 0;
  color: #d6d9e4;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-story-section {
  margin-top: 32px;
}

.product-story-heading {
  margin-bottom: 18px;
}

.product-story-heading h2 {
  max-width: 13ch;
}

.product-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.product-media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.product-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-media-main img {
  height: 100%;
  min-height: 470px;
}

.product-card-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.82);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.product-card-caption span {
  color: #9ebcff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card-caption strong {
  font-size: 16px;
  text-align: right;
}

.product-story-points {
  display: grid;
  gap: 12px;
}

.product-story-points article {
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 18, 30, 0.88), rgba(20, 13, 29, 0.88));
}

.product-story-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 101, 42, 0.16);
  color: #ff9b70;
  font-size: 13px;
  font-weight: 900;
}

.product-story-points strong {
  display: block;
  margin-top: 12px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.product-story-points p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.product-gallery-grid .product-media-card {
  display: grid;
}

.product-gallery-grid strong {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.1;
}

.preset-counter {
  padding: 10px 16px;
  color: #dce6ff;
  font-size: 14px;
  font-weight: 700;
}

.products-section,
.listen-section,
.toy-section,
.platform-section {
  margin-top: 44px;
}

.product-list-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  gap: 18px;
}

.product-subtabs {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid rgba(159, 179, 216, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.product-subtab {
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 7px;
  color: #aebbd1;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.product-subtab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 101, 42, 0.28), rgba(46, 125, 255, 0.16));
  box-shadow: inset 0 -2px 0 #ff6d2d, inset 0 -3px 0 #2e7dff;
}

.product-catalog-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.product-catalog-card:hover,
.product-catalog-card:focus-visible {
  border-color: rgba(255, 110, 80, 0.56);
  box-shadow: 0 22px 68px rgba(255, 83, 28, 0.12), var(--shadow);
  transform: translateY(-2px);
  outline: none;
}

.product-catalog-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.product-catalog-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6d2d, #ff3d14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.product-catalog-body {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.product-catalog-body h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.product-catalog-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.product-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-spec-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e2f8;
  font-size: 13px;
  font-weight: 800;
}

.product-card-action {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(255, 101, 42, 0.16);
  color: #ffffff;
  font-weight: 900;
}

.product-detail-panel {
  margin-top: 24px;
  padding: 24px;
  scroll-margin-top: 104px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: center;
}

.product-detail-copy h2 {
  margin: 10px 0 0;
  max-width: 12ch;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(36px, 5vw, 66px);
  font-style: italic;
  line-height: 0.94;
  text-transform: uppercase;
}

.product-detail-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.product-detail-actions {
  margin-top: 22px;
}

.product-detail-main-image,
.product-use-image {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.product-detail-main-image img,
.product-use-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.product-detail-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.product-detail-card h3,
.product-use-copy h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.product-detail-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.product-use-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 24px;
  align-items: stretch;
}

.product-use-copy {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 18, 30, 0.88), rgba(20, 13, 29, 0.88));
}

.product-use-copy h3 {
  margin-top: 8px;
}

.product-steps {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #d4dbea;
}

.product-steps li + li {
  margin-top: 9px;
}

.product-note-box {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 110, 80, 0.24);
  border-radius: 8px;
  background: rgba(255, 101, 42, 0.08);
}

.product-note-box strong {
  color: #ffffff;
  font-size: 18px;
}

.product-note-box p {
  margin: 8px 0 0;
  color: #d7deef;
}

.product-image-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.product-image-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(32px, 4.5vw, 58px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.6px;
  max-width: 10ch;
}

.section-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  padding-top: 12px;
}

.section-heading-side {
  display: grid;
  gap: 18px;
}

.section-heading-side .section-copy {
  padding-top: 12px;
}

.section-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.listen-layout {
  display: grid;
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
  gap: 24px;
}

#listen .section-heading {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  text-align: center;
}

#listen .section-heading h2 {
  max-width: none;
}

#listen .section-copy {
  max-width: 700px;
  margin: 0 auto;
}

.listen-heading-side {
  justify-items: center;
}

.listen-inline-actions {
  justify-content: center;
}

.listen-panel,
.side-card {
  padding: 24px;
}

.listen-vehicle-tabs {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid rgba(159, 179, 216, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.listen-vehicle-tab {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #aebbd1;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.listen-vehicle-tab::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: -4px;
  background: currentColor;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}

.listen-vehicle-tab[data-listen-vehicle-tab="truck"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 7h11v8h1.6l1.8-3H21v6h-2.1a3 3 0 0 1-5.8 0H9.9a3 3 0 0 1-5.8 0H3V7Zm2 2v5h7V9H5Zm13.5 5-1.2 2H19v-2h-.5ZM7 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 7h11v8h1.6l1.8-3H21v6h-2.1a3 3 0 0 1-5.8 0H9.9a3 3 0 0 1-5.8 0H3V7Zm2 2v5h7V9H5Zm13.5 5-1.2 2H19v-2h-.5ZM7 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'/%3E%3C/svg%3E");
}

.listen-vehicle-tab[data-listen-vehicle-tab="excavator"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 15h3.6l2-4H15l1 2h2.8l1.2 2.8V19h-2.2a3 3 0 0 1-5.6 0H9.8a3 3 0 0 1-5.8-1v-3Zm10.3-2-1.1-2.2H11l-1.1 2.2h4.4ZM6.9 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.2 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 9l5-4h5.5L19 8.5l-1.4 1.4L14.7 7H10.7L6.3 10.5 5 9Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 15h3.6l2-4H15l1 2h2.8l1.2 2.8V19h-2.2a3 3 0 0 1-5.6 0H9.8a3 3 0 0 1-5.8-1v-3Zm10.3-2-1.1-2.2H11l-1.1 2.2h4.4ZM6.9 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.2 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 9l5-4h5.5L19 8.5l-1.4 1.4L14.7 7H10.7L6.3 10.5 5 9Z'/%3E%3C/svg%3E");
}

.listen-vehicle-tab:hover,
.listen-vehicle-tab:focus-visible {
  color: #ffffff;
  background: rgba(46, 125, 255, 0.12);
  outline: none;
}

.listen-vehicle-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(46, 125, 255, 0.28), rgba(34, 217, 111, 0.16));
  box-shadow: inset 0 -2px 0 #22d96f, inset 0 -3px 0 #2e7dff;
}

.listen-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.listen-panel-header h3,
.section-head-compact h3,
.platform-card h3 {
  margin: 8px 0 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: 0.2px;
}

.section-head-compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.preset-block {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.compact-field {
  margin: 0;
}

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

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  outline: none;
}

select,
select option,
select optgroup {
  color: #111111;
  background: #ffffff;
}

select.sound-select,
select#presetSelect,
select#flashPresetSelect,
select#extraRequestPrice {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(46, 125, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(46, 125, 255, 0.14);
}

textarea {
  min-height: 148px;
  resize: vertical;
}

.sound-rows {
  display: grid;
  gap: 12px;
}

.sound-row-inline-option {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 2px;
}

.indicator-mode-chip {
  --chip-accent: #ffd66b;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 6px 7px;
  border: 1px solid rgba(159, 179, 216, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
  color: rgba(230, 238, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.indicator-mode-chip-inline {
  margin-left: auto;
}

.indicator-mode-chip input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.indicator-mode-chip-knob {
  position: relative;
  width: 28px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(159, 179, 216, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.indicator-mode-chip-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dce7ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, background 160ms ease;
}

.indicator-mode-chip:hover,
.indicator-mode-chip:focus-within {
  border-color: rgba(255, 214, 107, 0.36);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 214, 107, 0.075), rgba(255, 214, 107, 0.028)),
    rgba(255, 255, 255, 0.035);
}

.indicator-mode-chip input:checked + .indicator-mode-chip-knob {
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.95), rgba(255, 150, 40, 0.82));
  box-shadow: 0 0 0 3px rgba(255, 214, 107, 0.11), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.indicator-mode-chip input:checked + .indicator-mode-chip-knob::after {
  transform: translateX(12px);
  background: #251a05;
}

.indicator-mode-chip input:checked ~ .indicator-mode-chip-text {
  color: #ffe8a8;
}

.sound-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 138px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(159, 179, 216, 0.11);
  background:
    linear-gradient(180deg, rgba(19, 27, 40, 0.88), rgba(10, 15, 24, 0.94)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sound-row:hover,
.sound-row:focus-within {
  border-color: rgba(34, 217, 111, 0.34);
  background:
    linear-gradient(180deg, rgba(22, 31, 45, 0.96), rgba(11, 16, 25, 0.98)),
    rgba(34, 217, 111, 0.03);
}

.sound-label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.sound-icon {
  flex: 0 0 auto;
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 26px rgba(0, 0, 0, 0.22);
}

.sound-icon::before {
  content: "";
  width: 23px;
  height: 23px;
  background: currentColor;
  mask: var(--sound-icon) center / contain no-repeat;
  -webkit-mask: var(--sound-icon) center / contain no-repeat;
}

.sound-icon[data-sound-icon="idle"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 6h6v3h3l3 3v6h-3l-2 3H8l-2-3H3v-6h3V9h1V6Zm2 5v5h2l1 2h2l1-2h2v-3l-1-1h-5v-1H9Zm1-8h6v2h-6V3Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="rev"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 4a9 9 0 0 1 9 9h-4l3 5 3-5h-3A8 8 0 1 0 6.3 18.7l1.4-1.4A6 6 0 1 1 12 6v4l5-3-5-3Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="knock"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m13 2 3 3-4 4 2 2 4-4 4 4-4 4-2-2-9 9H3v-4l9-9-2-2-4 4-4-4 4-4 4 4 3-5Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="start"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M11 2h2v8h-2V2Zm-4.8 4.2 1.5 1.5A6 6 0 1 0 16.3 7.7l1.5-1.5A8 8 0 1 1 6.2 6.2Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="brake"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a9 9 0 1 0 0 18v-3a6 6 0 1 1 0-12V3Zm0 4h2v7h-2V7Zm0 9h2v2h-2v-2Zm4-8 4-3v14l-4-3V8Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="turbo"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a7 7 0 0 1 6.7 5H22v4h-3.1a7 7 0 1 1-7-9Zm0 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm6 8h3v2h-3v-2Zm-2 3h5v2h-5v-2Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="horn"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 10h4l7-4v12l-7-4H3v-4Zm13-2c2 1 3 2 3 4s-1 3-3 4v-3c.6-.4 1-.7 1-1s-.4-.8-1-1V8Zm3-3c3 2 5 4 5 7s-2 5-5 7v-3c1.4-1.2 2-2.4 2-4s-.6-2.8-2-4V5Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="siren"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 4h8l2 10H6L8 4Zm-3 12h14v4H5v-4Zm-4-7h4v3H1V9Zm18 0h4v3h-4V9ZM4 2l3 3-2 2-3-3 2-2Zm16 0 2 2-3 3-2-2 3-3Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="reverse"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 5h10v4h-8v3h5l-7 7-7-7h5V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="indicator"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m7 5 7 7-7 7v-5H1v-4h6V5Zm10 0v5h6v4h-6v5l-7-7 7-7Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="hydraulic"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 15h3l2-5h7l2 5h2v4h-2.2a3 3 0 0 1-5.6 0H9.8A3 3 0 0 1 4 18v-3Zm6.3-3-.8 2h5l-.8-2h-3.4ZM7 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM4 7l5-4h6l5 4-1.3 1.5L14.3 5h-4.6L5.3 8.5 4 7Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="track"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 8h12l4 4v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-3l4-4Zm.8 3-2 2v2a2 2 0 0 0 2 2h10.4a2 2 0 0 0 2-2v-2l-2-2H6.8ZM7 13h10v2H7v-2Zm1-7h8v2H8V6Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="bucket"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 5h8l5 5 4 1-1 3-4-1-5 6H5V5Zm2 2v10h4l4-5-3-5H7Zm9.7 1.3L19 10.6l-1.2 1.2-2.3-2.3 1.2-1.2Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="excavator"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 16h4l2-4h5l1 2h3l2 3v2h-2.2a3 3 0 0 1-5.6 0H9.8A3 3 0 0 1 4 18v-2Zm7.2-2-1 2H14l-1-2h-1.8ZM7 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 10l5-5h6l4 4-1.4 1.4L15.2 7H11l-4.6 4.6L5 10Z'/%3E%3C/svg%3E"); }
.sound-icon[data-sound-icon="fx"] { --sound-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M13 2 4 14h7l-1 8 10-13h-7l0-7Z'/%3E%3C/svg%3E"); }

.sound-label-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sound-label-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.08;
}

.sound-label-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.sound-select-wrap {
  position: relative;
}

.sound-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  pointer-events: none;
  background: #d6def1;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m7 9 5 5 5-5H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m7 9 5 5 5-5H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
}

.sound-fixed-wrap::after {
  display: none;
}

.sound-select {
  min-height: 50px;
  padding-right: 46px;
  border-radius: 8px;
  border-color: rgba(159, 179, 216, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  color: #e8eefc;
  font-weight: 700;
  appearance: none;
}

.sound-fixed-pill {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 214, 107, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 214, 107, 0.105), rgba(255, 214, 107, 0.035)),
    rgba(255, 255, 255, 0.025);
  color: #ffe8a8;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.control-button,
.preview-button {
  width: 100%;
}

.preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(34, 217, 111, 0.36);
  background: rgba(6, 11, 18, 0.72);
  color: #22d96f;
  border-radius: 8px;
  min-height: 50px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preview-button::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 5v14l11-7L8 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 5v14l11-7L8 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.preview-button:hover,
.preview-button:focus-visible {
  border-color: rgba(34, 217, 111, 0.62);
  background: rgba(34, 217, 111, 0.1);
  box-shadow: 0 0 0 4px rgba(34, 217, 111, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preview-button.is-playing,
.stop-button {
  border-color: rgba(255, 77, 103, 0.48);
  background: rgba(255, 77, 103, 0.12);
  color: #ffffff;
  box-shadow: 0 0 28px rgba(255, 77, 103, 0.22);
}

.preview-button.is-playing::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 7h10v10H7V7Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 7h10v10H7V7Z'/%3E%3C/svg%3E");
}

.preview-button.is-loading {
  color: #dfe8fb;
  border-color: rgba(159, 179, 216, 0.28);
  background: rgba(159, 179, 216, 0.08);
}

.preview-button.is-loading::before {
  border: 2px solid rgba(223, 232, 251, 0.28);
  border-top-color: #dfe8fb;
  border-radius: 50%;
  background: transparent;
  mask: none;
  -webkit-mask: none;
  animation: flashStateSpin 800ms linear infinite;
}

.listen-sidebar {
  display: grid;
  width: 100%;
  gap: 18px;
}

.sound-sections {
  display: grid;
  gap: 14px;
}

.excavator-sound-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(159, 179, 216, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 27, 40, 0.56), rgba(8, 13, 22, 0.72)),
    rgba(255, 255, 255, 0.02);
}

.excavator-sound-fieldset legend {
  padding: 0 10px;
  color: #9fbbff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.sound-row.flash-sound-row {
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr) minmax(146px, 0.27fr);
}

.sound-row.excavator-sound-row {
  grid-template-columns: minmax(170px, 0.25fr) minmax(220px, 1fr) minmax(224px, 0.35fr) minmax(116px, 0.18fr);
}

.sound-row.listen-excavator-sound-row {
  grid-template-columns: 230px minmax(0, 1fr) 138px;
}

.sound-row.flash-sound-row,
.sound-row.excavator-sound-row {
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border-color: rgba(159, 179, 216, 0.13);
  background:
    linear-gradient(180deg, rgba(18, 27, 42, 0.82), rgba(8, 13, 22, 0.94)),
    rgba(255, 255, 255, 0.018);
}

.sound-row.flash-sound-row:hover,
.sound-row.flash-sound-row:focus-within,
.sound-row.excavator-sound-row:hover,
.sound-row.excavator-sound-row:focus-within {
  border-color: rgba(46, 125, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(24, 36, 56, 0.9), rgba(9, 15, 25, 0.98)),
    rgba(46, 125, 255, 0.045);
}

.flash-sound-row .sound-label,
.excavator-sound-row .sound-label {
  gap: 10px;
}

.flash-sound-row .sound-icon,
.excavator-sound-row .sound-icon {
  width: 38px;
  height: 38px;
  color: #dce8ff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 48%),
    rgba(46, 125, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(159, 179, 216, 0.22), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.flash-sound-row .sound-label-title,
.excavator-sound-row .sound-label-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.flash-sound-row .sound-label-subtitle,
.excavator-sound-row .sound-label-subtitle {
  color: rgba(173, 188, 216, 0.78);
  font-size: 12px;
}

.flash-sound-row .sound-select,
.excavator-sound-row .sound-select {
  min-height: 44px;
  padding: 8px 42px 8px 12px;
  border-color: rgba(159, 179, 216, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  color: #e8eefc;
  font-size: 13px;
  font-weight: 800;
}

.flash-sound-row .preview-button,
.excavator-sound-row .preview-button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.excavator-sound-volume {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.excavator-volume-line {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 48px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.excavator-volume-slider {
  width: 100%;
  min-width: 0;
  accent-color: #20e889;
}

.excavator-volume-slider:disabled {
  opacity: 0.42;
}

.excavator-volume-value {
  color: #dce8ff;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.excavator-mute-chip {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 88px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(159, 179, 216, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(223, 232, 251, 0.9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.excavator-mute-chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.excavator-mute-chip.is-muted {
  border-color: rgba(255, 183, 77, 0.48);
  background: rgba(255, 183, 77, 0.13);
  color: #ffd89c;
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .sound-row.excavator-sound-row {
    grid-template-columns: minmax(164px, 0.34fr) minmax(260px, 1fr);
  }

  .sound-row.listen-excavator-sound-row {
    grid-template-columns: 230px minmax(0, 1fr) 138px;
  }

  .excavator-sound-row .preview-button {
    width: 100%;
  }
}

.sound-section-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(159, 179, 216, 0.12);
  border-radius: 8px;
  background: rgba(4, 8, 14, 0.36);
}

.sound-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.sound-section-card h4 {
  margin: 0;
  color: #f4d46f;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.sound-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sound-card-slot {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(159, 179, 216, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 27, 40, 0.86), rgba(10, 15, 24, 0.92)),
    rgba(255, 255, 255, 0.02);
}

.sound-card-slot .sound-label {
  gap: 10px;
}

.sound-card-slot .sound-select-wrap {
  grid-column: 1 / 2;
}

.sound-card-slot .preview-button,
.sound-card-slot .control-button {
  min-height: 44px;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}

.sound-card-badge {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(46, 125, 255, 0.38);
  background: rgba(46, 125, 255, 0.15);
  color: #dce8ff;
  font-size: 12px;
  font-weight: 900;
}

body.tabs-ready[data-active-tab="pricing"] #listen .listen-layout {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

body.tabs-ready[data-active-tab="pricing"] #listen .listen-panel,
body.tabs-ready[data-active-tab="pricing"] #listen #order {
  display: none;
}

body.tabs-ready[data-active-tab="pricing"] #listen .listen-sidebar {
  width: 100%;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mode-chip {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #d3ddf4;
  font-weight: 800;
  cursor: pointer;
}

.mode-chip.is-active {
  background: linear-gradient(135deg, rgba(46, 125, 255, 0.24), rgba(161, 61, 255, 0.28));
  border-color: rgba(98, 145, 255, 0.48);
  color: #ffffff;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-item,
.price-option,
.price-total,
.price-deposit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.price-option {
  cursor: pointer;
}

.base-price-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.base-price-copy small {
  color: #7dffb2;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.price-stack {
  display: grid;
  gap: 3px;
  justify-items: end;
  line-height: 1;
  white-space: nowrap;
}

.price-stack s {
  color: rgba(230, 238, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.price-stack span {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.price-option span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.25;
}

.price-option strong {
  flex: 0 0 auto;
}

.price-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.price-option input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.ppm-extra-option {
  border-color: rgba(255, 214, 107, 0.32);
  background: rgba(255, 214, 107, 0.08);
}

.ppm-extra-copy {
  display: grid !important;
  gap: 4px;
  min-width: 0;
}

.ppm-extra-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ppm-extra-copy small {
  color: #ffd66b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.ppm-extra-option strong {
  color: #ffd66b;
}

.price-option:has(input:disabled) {
  border-color: rgba(125, 255, 178, 0.22);
  background: rgba(34, 217, 111, 0.06);
}

.price-option:has(input:disabled) strong {
  color: #7dffb2;
  font-size: 13px;
}

.ppm-extra-option:has(input:disabled) {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ppm-extra-option:has(input:disabled) strong,
.ppm-extra-option:has(input:disabled) small {
  color: var(--muted);
}

.inline-info-button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 107, 0.54);
  background: rgba(255, 214, 107, 0.12);
  color: #ffd66b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.inline-info-button:hover,
.inline-info-button:focus-visible {
  background: rgba(255, 214, 107, 0.22);
  color: #ffffff;
}

.rx-mode-info-button {
  flex: 0 0 auto;
  margin-top: 4px;
}

.board-version-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.board-version-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.board-version-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 18, 0.46);
  cursor: pointer;
}

.board-version-choice:has(input:checked) {
  border-color: rgba(98, 145, 255, 0.55);
  background: rgba(46, 125, 255, 0.12);
}

.board-version-choice input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.board-version-choice span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.board-version-choice small {
  color: var(--muted);
  line-height: 1.3;
}

.board-version-choice em {
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.price-field {
  margin: 0;
}

.price-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.price-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.price-shipping-line {
  justify-content: space-between;
}

.price-shipping-line strong {
  color: #7dffb2;
  font-weight: 900;
}

.price-total {
  margin-top: 16px;
  align-items: flex-start;
  border-color: rgba(98, 145, 255, 0.4);
  background: linear-gradient(135deg, rgba(20, 36, 92, 0.84), rgba(74, 37, 113, 0.72));
}

.price-total-copy {
  display: grid;
  gap: 4px;
}

.price-total-copy small {
  color: rgba(238, 243, 255, 0.82);
  font-size: 13px;
}

.price-total-copy s {
  opacity: 0.92;
}

.price-total strong {
  font-size: 26px;
  line-height: 1;
}

.price-order-button {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f73ff, #2758f6);
  box-shadow: 0 16px 34px rgba(31, 115, 255, 0.24);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.price-order-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(31, 115, 255, 0.3);
}

.price-deposit strong {
  color: #d6ffe3;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-list p {
  margin: 0;
}

.shop-link {
  color: #c5d6ff;
}

.full-width {
  width: 100%;
}

.shop-button {
  margin-bottom: 18px;
}

.guide-list {
  margin: 0;
  padding-left: 18px;
}

.guide-list li + li {
  margin-top: 8px;
}

.toy-shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.toy-market-panel {
  padding: 24px;
}

.toy-market-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.toy-market-toolbar h3 {
  margin: 8px 0 6px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.toy-count-text {
  color: var(--muted);
  font-size: 14px;
}

.toy-search-field {
  margin: 0;
}

.toy-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.toy-filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #d5ddf0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.toy-filter-chip.is-active {
  border-color: rgba(255, 110, 80, 0.52);
  background: rgba(255, 85, 43, 0.18);
  color: #ffffff;
}

.toy-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.toy-product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.toy-product-card.is-sold {
  opacity: 0.72;
}

.toy-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.toy-product-media img,
.toy-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.toy-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 101, 68, 0.22), rgba(46, 125, 255, 0.18)),
    rgba(255, 255, 255, 0.04);
}

.toy-image-placeholder span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.toy-discount-badge,
.toy-sold-badge {
  position: absolute;
  top: 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.toy-discount-badge {
  right: 10px;
  background: #ff3d14;
}

.toy-sold-badge {
  left: 10px;
  background: rgba(13, 15, 24, 0.86);
}

.toy-product-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.toy-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toy-product-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #c7d2ea;
  font-size: 12px;
  font-weight: 800;
}

.toy-product-body h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.14;
}

.toy-product-body p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.toy-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.toy-price-line strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.toy-price-line s {
  color: #8f99ad;
  font-size: 14px;
}

.toy-review-link {
  color: #bdd1ff;
  font-size: 14px;
  font-weight: 800;
}

.toy-product-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.toy-stock-text {
  color: #aeb8cc;
  font-size: 13px;
  font-weight: 800;
}

.toy-add-button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6d2d, #ff3d14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.toy-add-button:disabled,
.toy-cart-actions button:disabled,
.toy-checkout-card button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.toy-empty-state,
.toy-cart-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.toy-empty-state {
  grid-column: 1 / -1;
}

.toy-cart-column {
  display: grid;
  gap: 18px;
}

.toy-cart-items {
  display: grid;
  gap: 10px;
}

.toy-cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.toy-cart-thumb {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.toy-cart-thumb .toy-image-placeholder span {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.toy-cart-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.toy-cart-info strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.18;
  text-overflow: ellipsis;
}

.toy-cart-info > span {
  color: #dce6ff;
  font-weight: 900;
}

.toy-qty-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.toy-qty-controls button {
  min-width: 30px;
  min-height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.toy-qty-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.toy-qty-controls span {
  min-width: 20px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
}

.toy-remove-button {
  margin-left: auto;
  padding: 0 10px;
  color: #ffb1bc;
}

.toy-cart-summary {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.toy-cart-summary > div,
.toy-payment-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.toy-cart-summary span,
.toy-payment-box span,
.toy-payment-box small {
  color: var(--muted);
}

.toy-cart-summary strong,
.toy-payment-box strong {
  color: #ffffff;
}

.toy-deposit-line {
  border-color: rgba(255, 110, 80, 0.34) !important;
  background: rgba(255, 85, 43, 0.1) !important;
}

.toy-deposit-line strong {
  color: #ffd4c7;
}

.toy-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.toy-checkout-card .field + .field {
  margin-top: 10px;
}

.toy-payment-box {
  flex-direction: column;
  align-items: flex-start;
  margin: 12px 0;
}

.toy-payment-box strong {
  font-size: 18px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.platform-card {
  padding: 28px;
}

.accent-platform {
  background: linear-gradient(160deg, rgba(18, 20, 33, 0.96), rgba(28, 16, 43, 0.98));
}

.platform-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.blue-icon {
  background: linear-gradient(135deg, rgba(46, 125, 255, 0.22), rgba(46, 125, 255, 0.74));
}

.purple-icon {
  background: linear-gradient(135deg, rgba(120, 50, 255, 0.28), rgba(161, 61, 255, 0.84));
}

.platform-card h3 {
  margin-top: 20px;
}

.platform-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 18px 0 24px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 12, 0.84);
}

.platform-meta span {
  color: #7f899f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.platform-meta strong {
  font-size: 16px;
}

.platform-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.platform-button {
  width: 100%;
  background: #ffffff;
  color: #090d14;
}

.outline-button {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.platform-button.is-disabled,
.platform-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  color: #9ea7bc;
  background: rgba(255, 255, 255, 0.04);
}

.small-note {
  margin-top: 12px;
  font-size: 14px;
}

body.receipt-open {
  overflow: hidden;
}

body.receipt-preview-open {
  overflow: hidden;
}

body.flash-upgrade-open {
  overflow: hidden;
}

body.dump-video-open {
  overflow: hidden;
}

body.rx-info-open {
  overflow: hidden;
}

.rx-info-modal {
  position: fixed;
  inset: 0;
  z-index: 129;
  display: none;
  padding: 22px;
}

.rx-info-modal.is-open {
  display: grid;
  place-items: center;
}

.rx-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.rx-info-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(18, 25, 40, 0.98), rgba(13, 13, 24, 0.98)),
    rgba(12, 12, 22, 0.98);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.62);
}

.rx-info-head,
.rx-info-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rx-info-head h2 {
  margin: 6px 0 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.02;
}

.rx-info-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rx-info-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.rx-info-lead,
.rx-info-note {
  margin: 0;
  color: #c8d2e6;
  font-weight: 700;
  line-height: 1.65;
}

.rx-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rx-info-grid article {
  padding: 16px;
  border: 1px solid rgba(98, 145, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.rx-info-grid strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.rx-info-grid p {
  margin: 8px 0 0;
  color: #aeb8cb;
  line-height: 1.58;
}

.rx-info-note {
  padding: 14px 16px;
  border: 1px solid rgba(34, 217, 111, 0.24);
  border-radius: 8px;
  color: #c8f7db;
  background: rgba(34, 217, 111, 0.08);
}

.rx-info-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.dump-video-modal {
  position: fixed;
  inset: 0;
  z-index: 128;
  display: none;
  padding: 22px;
}

.dump-video-modal.is-open {
  display: grid;
  place-items: center;
}

.dump-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.dump-video-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(10, 12, 18, 0.98);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.62);
}

.dump-video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dump-video-toolbar h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 5vw, 34px);
}

.dump-video-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dump-video-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.dump-video-player,
.dump-video-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.dump-video-countdown {
  margin: 0;
  padding: 12px 16px;
  color: #aeb8cb;
  font-weight: 800;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flash-upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  padding: 22px;
}

.flash-upgrade-modal.is-open {
  display: grid;
  place-items: center;
}

.flash-upgrade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

.flash-upgrade-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(19, 25, 40, 0.98), rgba(12, 12, 22, 0.98)),
    rgba(12, 12, 22, 0.98);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.62);
}

.flash-upgrade-head,
.flash-upgrade-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flash-upgrade-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.05;
}

.flash-upgrade-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.flash-upgrade-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.flash-upgrade-detail {
  margin: 0;
  color: #c8d2e6;
  font-weight: 700;
}

.flash-upgrade-modal[data-state="success"] .flash-upgrade-head,
.flash-upgrade-modal[data-state="success"] .flash-upgrade-board,
.flash-upgrade-modal[data-state="success"] .flash-upgrade-actions {
  display: none;
}

.flash-upgrade-modal[data-state="success"] .flash-upgrade-body {
  padding: 28px 20px 22px;
}

.flash-upgrade-detail[data-state="good"] {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.flash-upgrade-board {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 210, 100, 0.26);
  border-radius: 16px;
  background: rgba(255, 210, 100, 0.08);
}

.flash-upgrade-board span,
.flash-upgrade-board small {
  color: #aeb8cb;
  font-size: 13px;
  font-weight: 700;
}

.flash-upgrade-board strong {
  color: #ffffff;
  font-size: 18px;
}

.flash-upgrade-form {
  display: grid;
  gap: 12px;
}

.flash-upgrade-mac-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.flash-upgrade-mac-copy span {
  display: block;
  color: #9ea7bc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.flash-upgrade-mac-copy strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 16px;
}

.flash-upgrade-form .accent-button {
  width: 100%;
}

.flash-upgrade-countdown {
  margin: 0;
  color: #aeb8cb;
  font-weight: 800;
  text-align: center;
}

.flash-upgrade-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.flash-upgrade-actions .secondary-button,
.flash-upgrade-actions .accent-button {
  min-width: 136px;
}

.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.receipt-modal[hidden] {
  display: none;
}

.receipt-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.receipt-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 18%, rgba(46, 125, 255, 0.18), transparent 36%),
    rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.receipt-dialog {
  position: relative;
  z-index: 1;
  width: min(1010px, calc(100vw - 36px));
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(10, 12, 18, 0.98);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1.25, 0.36, 1);
  will-change: opacity, transform;
}

.receipt-modal.is-open .receipt-backdrop {
  opacity: 1;
}

.receipt-modal.is-open .receipt-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: checkoutDialogBounce 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes checkoutDialogBounce {
  0% {
    transform: translateY(30px) scale(0.94);
  }
  72% {
    transform: translateY(-5px) scale(1.012);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .receipt-modal,
  .receipt-backdrop,
  .receipt-dialog {
    animation: none !important;
    transition: none !important;
  }
}

.receipt-toolbar,
.receipt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.receipt-toolbar h2 {
  margin: 8px 0 0;
  font-size: 24px;
}

.receipt-close-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.receipt-scroll {
  overflow: auto;
  padding: 18px;
  background: #dfe3eb;
}

.order-receipt {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 34px 32px 22px;
  background: #ffffff;
  color: #050505;
  border-radius: 2px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  font-family: "Barlow", "Segoe UI", sans-serif;
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.receipt-brand img {
  width: 238px;
  max-width: 48vw;
  height: auto;
  display: block;
}

.receipt-brand span {
  display: block;
  width: 300px;
  max-width: 50vw;
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(90deg, #ff6500, transparent);
}

.receipt-hero-art {
  width: 438px;
  min-width: 438px;
  height: 188px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: visible;
}

.receipt-hero-art-image {
  width: 436px;
  max-width: 100%;
  height: auto;
  display: block;
}

.order-receipt h3 {
  margin: 28px 0 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.order-receipt h1 {
  margin: 10px 0 0;
  color: #ff6500;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-orange-line {
  height: 3px;
  margin: 22px 0 24px;
  background: linear-gradient(90deg, #111 0 28%, #ff6500 28% 100%);
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  overflow: hidden;
}

.receipt-meta div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px 18px;
}

.receipt-meta div + div {
  border-left: 1px solid #d4d4d4;
}

.receipt-meta span {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-meta strong {
  color: #ff2500;
  font-size: 20px;
}

.receipt-address-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
}

.receipt-address-line span {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-address-line strong {
  text-align: right;
  font-size: 18px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.receipt-payment-qr {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  background: #f8fbff;
}

.receipt-payment-qr img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.receipt-payment-qr div {
  display: grid;
  gap: 5px;
}

.receipt-payment-qr span,
.receipt-payment-qr small {
  color: #5f6b7c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-payment-qr strong {
  color: #1167ff;
  font-size: 30px;
  line-height: 1;
}

.receipt-payment-qr b {
  color: #111827;
  overflow-wrap: anywhere;
}

.receipt-box {
  margin-top: 24px;
}

.receipt-section-title {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-bottom: -20px;
  position: relative;
  z-index: 2;
}

.receipt-section-title span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 56px;
  border-radius: 10px;
  background: #ff6500;
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
}

.receipt-section-title strong {
  display: grid;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 0 8px 8px 0;
  background: #111111;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-list,
.receipt-sound-grid {
  border: 2px solid #333333;
  border-radius: 10px;
  padding: 34px 18px 16px;
}

.receipt-row,
.receipt-sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  border-bottom: 1px solid #dddddd;
  font-size: 20px;
}

.receipt-row span,
.receipt-sound-row span {
  font-weight: 650;
}

.receipt-row strong,
.receipt-sound-row strong {
  text-align: right;
  font-weight: 800;
}

.receipt-red {
  color: #e90000;
}

.receipt-green {
  color: #008c39;
}

.receipt-total-row {
  min-height: 68px;
  margin: 8px 0;
  padding: 0 18px;
  border: 2px solid #ff6500;
  border-radius: 10px;
  background: linear-gradient(90deg, #ffc232, #ffe77d);
}

.receipt-total-row span {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-total-row strong {
  font-size: 42px;
  line-height: 1;
}

.receipt-sound-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
}

.receipt-sound-row {
  min-width: 0;
}

.receipt-sound-row strong {
  overflow-wrap: anywhere;
}

.receipt-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 2px solid #ff6500;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.receipt-footer strong,
.receipt-footer span {
  display: block;
}

.receipt-footer span {
  margin-top: 4px;
  color: #ff6500;
  font-size: 16px;
  font-weight: 900;
}

.receipt-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.receipt-actions button {
  flex: 1;
}

.checkout-dialog {
  width: min(972px, calc(100vw - 44px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(382px, 0.86fr) minmax(374px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  border-radius: 24px;
  background: #f7f8fb;
  color: #111827;
}

.checkout-form-panel {
  min-width: 0;
  overflow: auto;
  padding: 17px 20px 17px;
  background: #ffffff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.checkout-form-panel .micro-label,
.checkout-summary-panel .micro-label,
.checkout-block-label {
  color: #1f66ff;
  letter-spacing: 0.12em;
}

.checkout-form-panel h2 {
  margin: 0 0 5px;
  color: #111827;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.checkout-lead {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.42;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-wide-field {
  grid-column: 1 / -1;
}

.checkout-field span,
.checkout-block-label {
  color: #1f66ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-field input,
.checkout-field textarea,
.checkout-address-field input {
  min-height: 32px;
  padding: 0 10px;
  border-color: #d9dee7;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.checkout-field textarea {
  min-height: 70px;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 1.35;
  resize: vertical;
}

.checkout-autofill-field textarea {
  min-height: 52px;
  max-height: 82px;
  resize: vertical;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder,
.checkout-address-field input::placeholder {
  color: #7f8897;
}

.checkout-field input.is-invalid,
.checkout-address-field input.is-invalid {
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.checkout-address-block {
  display: grid;
  gap: 6px;
}

.checkout-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
}

.checkout-address-field {
  min-width: 0;
  display: block;
}

.checkout-address-field input {
  width: 100%;
}

.checkout-payment-block {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  min-height: 0;
}

.checkout-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-payment-choice {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid #dbe1ea;
  border-radius: 11px;
  background: #f9fafb;
  cursor: pointer;
}

.checkout-payment-choice:has(input:checked) {
  border-color: #1f66ff;
  background: #eef5ff;
}

.checkout-payment-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  min-height: 1px;
  margin: 0;
  accent-color: #1f66ff;
}

.checkout-payment-choice span {
  display: grid;
  gap: 3px;
}

.checkout-payment-choice strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.checkout-payment-choice small {
  color: #4b5f77;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.checkout-qr-box {
  display: grid;
  grid-template-columns: minmax(198px, 0.58fr) minmax(164px, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  padding: 7px 8px;
  border: 1px solid #d7e2f4;
  border-radius: 14px;
  background: #f8fbff;
  flex: 1 1 auto;
  min-height: 232px;
}

.checkout-qr-media {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 5px;
  border-radius: 11px;
  background: #f3f8ff;
}

.checkout-qr-frame {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 5px;
  width: 100%;
  max-width: 232px;
  min-height: 100%;
  overflow: hidden;
  padding: 0 8px 7px;
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.checkout-qr-brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 3px 0;
}

.checkout-vietqr-word {
  color: #e11d48;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900;
  letter-spacing: 0;
}

.checkout-vietqr-word::after {
  content: " Pay";
  color: #1e3a8a;
  font-size: 0.5em;
  font-weight: 900;
}

.checkout-mb-word {
  color: #1d4ed8;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 900;
  letter-spacing: 0;
}

.checkout-mb-word::before {
  content: "";
  margin-right: 0;
  color: #e11d48;
  font-size: 0.85em;
}

.checkout-qr-media img {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

.checkout-qr-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 7px;
  color: #1e3a8a;
  font-size: 9px;
  font-weight: 900;
}

.checkout-qr-copy {
  display: grid;
  gap: 4px;
}

.checkout-qr-copy > span,
.checkout-qr-copy small {
  color: #475569;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-qr-copy > strong {
  color: #111827;
  font-size: clamp(22px, 2.25vw, 28px);
  line-height: 1;
}

.checkout-qr-copy .checkout-account-name {
  color: #0f172a;
  font-size: clamp(15.5px, 1.35vw, 17px);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.checkout-qr-copy div {
  display: grid;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #ffffff;
}

.checkout-qr-copy b {
  min-width: 0;
  color: #1f66ff;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.checkout-payment-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.checkout-payment-status::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid rgba(15, 118, 110, 0.22);
  border-top-color: #0f766e;
  animation: checkoutStatusSpin 0.9s linear infinite;
}

.checkout-payment-status[data-state="good"] {
  color: #059669;
}

.checkout-payment-status[data-state="good"]::before {
  border-color: #059669;
  background: #059669;
  animation: none;
}

.checkout-payment-status[data-state="bad"] {
  color: #dc2626;
}

.checkout-payment-status[data-state="bad"]::before {
  border-color: #dc2626;
  animation: none;
}

.checkout-payment-warning {
  margin: 0;
  padding: 6px 7px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-payment-warning strong {
  color: #c2410c;
  font-weight: 950;
  white-space: nowrap;
}

.checkout-payment-countdown,
.receipt-payment-countdown {
  margin: -1px 0 0;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
}

.checkout-payment-countdown[data-state="bad"],
.receipt-payment-countdown[data-state="bad"] {
  color: #dc2626;
}

@keyframes checkoutQrPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.42);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes checkoutStatusSpin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-payment-success {
  display: none;
}

.checkout-qr-box.is-paid {
  grid-template-columns: 1fr;
  min-height: 160px;
  border-color: rgba(5, 150, 105, 0.34);
  background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 100%);
}

.checkout-qr-box.is-paid .checkout-qr-media,
.checkout-qr-box.is-paid .checkout-qr-copy {
  display: none;
}

.checkout-qr-box.is-paid .checkout-payment-success {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 150px;
  padding: 10px;
  text-align: center;
}

.checkout-payment-success-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
  background: linear-gradient(135deg, #059669, #22c55e);
  box-shadow: 0 12px 26px rgba(5, 150, 105, 0.22);
}

.checkout-payment-success strong {
  color: #065f46;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 900;
}

.checkout-payment-success p {
  max-width: 360px;
  margin: 0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
}

.checkout-payment-success .accent-button {
  min-width: 190px;
  min-height: 44px;
}

.checkout-summary-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #dde3ec;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 102, 255, 0.1), transparent 34%),
    #f7f8fb;
  position: relative;
}

.checkout-summary-content {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 48px 16px 16px;
}

.checkout-summary-card,
.checkout-support-card,
.checkout-receipt-link {
  border: 1px solid #d9e2f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.checkout-summary-card {
  padding: 14px;
}

.checkout-summary-intro {
  background: linear-gradient(135deg, #ffffff, #eef5ff);
}

.checkout-summary-intro h3 {
  margin: 6px 0 5px;
  color: #0f172a;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.06;
}

.checkout-summary-intro p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.checkout-summary-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.checkout-summary-card-head span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6a1a, #ff3d00);
  font-size: 15px;
  font-weight: 950;
}

.checkout-summary-card-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.checkout-summary-rows {
  display: grid;
  gap: 6px;
}

.checkout-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 31px;
  padding: 7px 9px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #f8fafc;
}

.checkout-summary-row span {
  min-width: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.checkout-summary-row strong {
  min-width: 0;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 950;
  text-align: right;
  overflow-wrap: anywhere;
}

.checkout-summary-row.is-discount strong {
  color: #dc2626;
}

.checkout-summary-row.is-shipping strong {
  color: #059669;
}

.checkout-summary-row.is-total {
  min-height: 42px;
  border-color: #ff6500;
  background: linear-gradient(135deg, #ffe08a, #fff4be);
}

.checkout-summary-row.is-total span,
.checkout-summary-row.is-total strong {
  color: #111827;
  font-size: 15px;
}

.checkout-support-card {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-color: rgba(5, 150, 105, 0.28);
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.checkout-support-card span {
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-support-card strong {
  color: #064e3b;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.checkout-support-card small {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.checkout-confirm-button {
  min-height: 52px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #1167ff, #3459ff);
  box-shadow: 0 18px 40px rgba(31, 102, 255, 0.28);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.checkout-confirm-button:hover,
.checkout-confirm-button:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(31, 102, 255, 0.34);
}

.checkout-confirm-button:disabled {
  color: #cbd5e1;
  background: linear-gradient(135deg, #1f2937, #475569);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.checkout-receipt-link {
  min-height: 38px;
  padding: 0 8px;
  justify-self: center;
  border: 0;
  border-bottom: 1px solid #94a3b8;
  border-radius: 0;
  color: #475569;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.checkout-receipt-link:hover,
.checkout-receipt-link:focus-visible {
  color: #1f66ff;
  filter: none;
  transform: translateY(-1px);
  box-shadow: none;
}

.receipt-preview-modal {
  z-index: 142;
}

.receipt-preview-dialog {
  width: min(760px, calc(100vw - 44px));
  max-height: calc(100vh - 34px);
  background: #eef2f7;
  color: #111827;
}

.receipt-preview-toolbar {
  background: #ffffff;
  border-bottom-color: #dce3ed;
}

.receipt-preview-toolbar h2 {
  color: #111827;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 950;
}

.receipt-preview-toolbar .receipt-close-button {
  background: #eef2f7;
  color: #334155;
}

.receipt-preview-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  background: #e7ebf2;
}

.receipt-preview-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 166px);
  display: block;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.2);
}

.receipt-preview-loading {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.receipt-preview-status {
  background: #ffffff;
}

.receipt-preview-actions {
  justify-content: center;
  background: #ffffff;
  border-top-color: #dce3ed;
}

.receipt-preview-actions .secondary-button {
  flex: 0 1 320px;
}

.thank-you-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

.thank-you-modal[hidden] {
  display: none;
}

.thank-you-modal.is-open {
  opacity: 1;
}

.thank-you-card {
  width: min(360px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
  text-align: center;
  transform: translateY(10px) scale(0.96);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.thank-you-modal.is-open .thank-you-card {
  transform: translateY(0) scale(1);
}

.thank-you-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #22c55e);
  font-size: 28px;
  font-weight: 950;
}

.thank-you-card strong {
  color: #064e3b;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 950;
}

.thank-you-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.thank-you-card .accent-button {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
}

.checkout-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 16px 6px;
}

.checkout-summary-head h3 {
  margin: 2px 0 0;
  color: #111827;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 16px;
}

.checkout-summary-head .receipt-close-button {
  flex: 0 0 auto;
  background: #eef2f7;
  color: #374151;
}

.checkout-floating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  background: #eef2f7;
  color: #374151;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.checkout-receipt-scroll {
  padding: 7px 10px 5px;
  background: transparent;
}

.checkout-summary-panel .order-receipt {
  width: 100%;
  padding: 7px 8px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.checkout-summary-panel .receipt-head {
  display: none;
}

.checkout-summary-panel .receipt-brand img {
  width: 128px;
}

.checkout-summary-panel .receipt-hero-art {
  display: none;
}

.checkout-summary-panel .order-receipt h3 {
  margin-top: 0;
  font-size: 15px;
}

.checkout-summary-panel .order-receipt h1 {
  margin-top: 3px;
  font-size: 17px;
}

.checkout-summary-panel .receipt-orange-line {
  height: 2px;
  margin: 6px 0 6px;
}

.checkout-summary-panel .receipt-meta,
.checkout-summary-panel .receipt-sound-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-summary-panel .receipt-meta div + div {
  border-top: 0;
  border-left: 0;
}

.checkout-summary-panel .receipt-meta div:nth-child(2n) {
  border-left: 1px solid #d4d4d4;
}

.checkout-summary-panel .receipt-meta div:nth-child(n + 3) {
  border-top: 1px solid #d4d4d4;
}

.checkout-summary-panel .receipt-meta div {
  min-height: 31px;
  padding: 4px 6px;
}

.checkout-summary-panel .receipt-meta span,
.checkout-summary-panel .receipt-address-line span {
  font-size: 8.5px;
}

.checkout-summary-panel .receipt-meta strong {
  min-height: 15px;
  font-size: 10.5px;
}

.checkout-summary-panel .receipt-address-line {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  padding: 5px 6px;
}

.checkout-summary-panel .receipt-address-line strong {
  min-height: 14px;
  text-align: left;
  font-size: 10px;
}

.checkout-summary-panel .receipt-payment-qr {
  display: none;
}

.checkout-summary-panel .receipt-payment-qr strong {
  font-size: 21px;
}

.checkout-summary-panel .receipt-payment-qr span,
.checkout-summary-panel .receipt-payment-qr small {
  font-size: 9.5px;
}

.checkout-summary-panel .receipt-box {
  margin-top: 7px;
}

.checkout-summary-panel .receipt-section-title {
  min-height: 30px;
  margin-bottom: -9px;
}

.checkout-summary-panel .receipt-section-title span {
  width: 28px;
  height: 26px;
  font-size: 16px;
}

.checkout-summary-panel .receipt-section-title strong {
  min-height: 24px;
  padding: 0 7px;
  font-size: 10px;
}

.checkout-summary-panel .receipt-list,
.checkout-summary-panel .receipt-sound-grid {
  border-width: 1px;
  padding: 12px 6px 5px;
}

.checkout-summary-panel .receipt-row,
.checkout-summary-panel .receipt-sound-row {
  min-height: 17px;
  gap: 6px;
  font-size: 9px;
}

.checkout-summary-panel .receipt-total-row {
  min-height: 28px;
}

.checkout-summary-panel .receipt-total-row span {
  font-size: 10.5px;
}

.checkout-summary-panel .receipt-total-row strong {
  font-size: 15px;
}

.checkout-summary-panel .receipt-footer {
  margin-top: 5px;
  padding-top: 5px;
  font-size: 9px;
}

.checkout-submit-status {
  min-height: 16px;
  margin: 0;
  padding: 0 16px 6px;
  color: #1f9f5f;
  font-size: 11.5px;
  font-weight: 800;
}

.checkout-summary-content .checkout-submit-status {
  padding: 0;
  text-align: center;
}

.checkout-submit-status[data-state="bad"] {
  color: #e53e3e;
}

.checkout-actions {
  gap: 8px;
  padding: 8px 14px 12px;
  border-top: 1px solid #dde3ec;
}

.checkout-actions button {
  min-height: 42px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 900;
}

.checkout-actions .secondary-button {
  border-color: #d9e1ed;
  background: #ffffff;
  color: #111827;
}

.checkout-actions .accent-button {
  background: linear-gradient(135deg, #1167ff, #255fff);
  color: #ffffff;
}

.checkout-actions .accent-button:disabled {
  border-color: #334155;
  background: linear-gradient(135deg, #1f2937, #475569);
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.checkout-actions .secondary-button:disabled {
  color: #94a3b8;
  background: #f1f5f9;
  cursor: not-allowed;
  opacity: 1;
}

/* Checkout payment UI - commercial light layout */
.checkout-modal {
  padding: 20px;
}

.checkout-modal .receipt-backdrop {
  background:
    radial-gradient(circle at 16% 100%, rgba(46, 125, 255, 0.22), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.2), transparent 26%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.checkout-dialog {
  width: min(1380px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  grid-template-columns: minmax(500px, 0.82fr) minmax(580px, 1fr);
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  color: #0f172a;
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.32);
}

.checkout-form-panel {
  gap: 20px;
  padding: 28px 28px 24px;
  overflow: auto;
  border-radius: 14px 0 0 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08), transparent 32%),
    #ffffff;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
}

.checkout-form-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.checkout-form-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #6ea4ff, #2f70ff);
  box-shadow: 0 16px 34px rgba(47, 112, 255, 0.24);
}

.checkout-form-icon svg,
.checkout-section-icon svg,
.checkout-payment-icon svg,
.checkout-security-note svg,
.checkout-summary-row-icon svg,
.checkout-confirm-icon svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-form-icon svg {
  width: 28px;
  height: 28px;
}

.checkout-form-panel h2 {
  margin: 0 0 6px;
  color: #111827;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 900;
  line-height: 1.05;
}

.checkout-lead {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
}

.checkout-form-card {
  display: grid;
  gap: 16px;
  min-height: 0;
  padding: 22px 20px;
  border: 1px solid #dbe8ff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1766ff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-section-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #1766ff;
}

.checkout-section-icon svg {
  width: 27px;
  height: 27px;
}

.checkout-form-grid {
  gap: 12px 18px;
}

.checkout-field span,
.checkout-block-label {
  color: #1766ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.checkout-field input,
.checkout-field textarea,
.checkout-address-field input {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  background: #fbfdff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.checkout-field textarea {
  min-height: 66px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.45;
}

.checkout-autofill-field textarea {
  min-height: 66px;
  max-height: 96px;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-address-field input:focus {
  border-color: #2f70ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 112, 255, 0.12);
}

.checkout-address-grid {
  gap: 10px 18px;
}

.checkout-payment-block {
  gap: 12px;
  margin-top: 4px;
}

.checkout-payment-title {
  margin-top: 10px;
}

.checkout-payment-grid {
  gap: 16px;
}

.checkout-payment-choice {
  position: relative;
  min-height: 78px;
  gap: 12px;
  padding: 16px 52px 16px 20px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.checkout-payment-choice:hover,
.checkout-payment-choice:focus-within {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
}

.checkout-payment-choice.is-selected,
.checkout-payment-choice:has(input:checked) {
  border-color: #1766ff;
  background: linear-gradient(135deg, #eef5ff, #ffffff);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.checkout-payment-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #1766ff;
}

.checkout-payment-icon svg {
  width: 30px;
  height: 30px;
}

.checkout-payment-choice .checkout-payment-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkout-payment-choice strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.checkout-payment-choice small {
  color: #5f6b7c;
  font-size: 12px;
  font-weight: 650;
}

.checkout-payment-check {
  position: absolute;
  right: 17px;
  bottom: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.checkout-payment-choice.is-selected .checkout-payment-check,
.checkout-payment-choice:has(input:checked) .checkout-payment-check {
  border-color: #1766ff;
  background: #1766ff;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.checkout-qr-box {
  grid-template-columns: minmax(230px, 0.92fr) minmax(230px, 1fr);
  gap: 16px;
  min-height: 332px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #cfe0f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.checkout-qr-media {
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
}

.checkout-qr-frame {
  max-width: 264px;
  min-height: 100%;
  padding: 14px 16px 15px;
  border: 1px solid #d5e5ff;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.checkout-qr-brand-head {
  padding: 0 0 10px;
}

.checkout-vietqr-word {
  color: #e11d48;
  font-size: 25px;
  font-weight: 900;
}

.checkout-vietqr-word::after {
  content: " Pay";
  color: #1e3a8a;
  font-size: 0.46em;
  font-weight: 900;
}

.checkout-mb-word {
  color: #1d4ed8;
  font-size: 28px;
  font-weight: 900;
}

.checkout-qr-media img {
  width: 100%;
  min-height: 190px;
  object-fit: contain;
  border-radius: 4px;
}

.checkout-qr-foot {
  padding: 12px 0 0;
  color: #173e91;
  font-size: 11px;
}

.checkout-qr-copy {
  align-content: center;
  gap: 8px;
}

.checkout-qr-copy > span,
.checkout-qr-copy small {
  color: #617085;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.checkout-qr-copy > strong {
  color: #111827;
  font-size: clamp(31px, 3vw, 38px);
  font-weight: 900;
}

.checkout-qr-copy .checkout-account-name {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.05;
  white-space: nowrap;
}

.checkout-qr-copy div {
  gap: 5px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.72);
}

.checkout-qr-copy b {
  color: #1766ff;
  font-size: 16px;
}

.checkout-payment-status {
  gap: 9px;
  margin-top: 3px;
  color: #047857;
  font-size: 14px;
}

.checkout-payment-status::before {
  width: 16px;
  height: 16px;
}

.checkout-payment-countdown {
  margin-top: -2px;
  color: #4b5563;
  font-size: 13px;
}

.checkout-payment-warning {
  margin-top: 4px;
  padding: 11px 13px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #a33b00;
  font-size: 13px;
}

.checkout-qr-box.is-paid {
  min-height: 280px;
  border-color: #9ce3bf;
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
}

.checkout-qr-box.is-paid .checkout-payment-success {
  min-height: 246px;
  gap: 10px;
}

.checkout-payment-success-icon {
  width: 58px;
  height: 58px;
  font-size: 36px;
}

.checkout-payment-success strong {
  font-size: 32px;
}

.checkout-payment-success p {
  font-size: 15px;
}

.checkout-summary-panel {
  border-left: 1px solid #d8e4f3;
  border-radius: 0 14px 14px 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(47, 112, 255, 0.1), transparent 28%),
    #f7fbff;
}

.checkout-summary-content {
  gap: 16px;
  padding: 32px 28px 24px;
  overflow: auto;
}

.checkout-summary-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.42fr);
  align-items: start;
  gap: 22px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.checkout-summary-intro .micro-label {
  display: block;
  margin-bottom: 10px;
  color: #1766ff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-summary-intro h3 {
  margin: 0 0 8px;
  color: #111827;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(29px, 2.6vw, 38px);
  font-weight: 900;
  line-height: 1.03;
}

.checkout-summary-intro p {
  max-width: 660px;
  margin: 0;
  color: #475569;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.checkout-security-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  padding: 15px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.07);
}

.checkout-security-note span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #1766ff;
}

.checkout-security-note svg {
  width: 31px;
  height: 31px;
}

.checkout-security-note strong {
  color: #1766ff;
  font-size: 14px;
  font-weight: 900;
}

.checkout-security-note small {
  color: #475569;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.checkout-summary-card,
.checkout-support-card {
  border: 1px solid #d8e4f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.checkout-summary-card {
  padding: 20px 18px 18px;
}

.checkout-summary-card-head {
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-summary-card-head span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7b1a, #ff4e08);
  font-size: 18px;
}

.checkout-summary-card-head strong {
  color: #111827;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.checkout-summary-rows {
  gap: 0;
}

#checkoutSoundSummaryRows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.checkout-summary-row {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #e3ebf6;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.checkout-summary-row + .checkout-summary-row {
  margin-top: -1px;
}

.checkout-summary-row.has-icon {
  grid-template-columns: 28px minmax(0, 0.86fr) minmax(0, 1fr);
}

.checkout-summary-row-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #1766ff;
}

.checkout-summary-row-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.checkout-summary-row span {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.checkout-summary-row strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.checkout-price-summary-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkout-price-column {
  display: grid;
  gap: 0;
  min-width: 0;
}

.checkout-price-column .checkout-summary-row:first-child {
  border-radius: 10px 10px 0 0;
}

.checkout-price-column .checkout-summary-row:last-child {
  border-radius: 0 0 10px 10px;
}

.checkout-summary-row.is-total {
  min-height: 48px;
  margin: 8px 0;
  border: 2px solid #ff6500;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #ffd24a, #fff0a6);
}

.checkout-summary-row.is-total span,
.checkout-summary-row.is-total strong {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.checkout-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 18px;
  padding: 20px 26px;
  border-color: #b7e6cd;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.checkout-support-card::before {
  content: "";
  grid-row: span 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid #078a54;
  box-shadow:
    inset 12px 0 0 transparent,
    0 0 0 6px rgba(5, 150, 105, 0.06);
}

.checkout-support-card span {
  color: #047857;
  font-size: 14px;
}

.checkout-support-card strong {
  color: #047857;
  font-size: 30px;
}

.checkout-support-card small {
  color: #475569;
  font-size: 14px;
}

.checkout-confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f8fff 0%, #3158ff 100%);
  color: #ffffff;
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.26);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-confirm-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #ffffff;
}

.checkout-confirm-icon svg {
  width: 24px;
  height: 24px;
}

.checkout-confirm-button:disabled {
  color: #d5dde8;
  background: linear-gradient(135deg, #253244, #465365);
}

.checkout-receipt-link {
  min-height: 34px;
  border-bottom-color: #94a3b8;
  color: #64748b;
  font-size: 15px;
  font-weight: 750;
}

.checkout-receipt-link::after {
  content: "›";
  display: inline-block;
  margin-left: 10px;
  color: #64748b;
  font-size: 24px;
  line-height: 0;
  transform: translateY(3px);
}

.checkout-floating-close {
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #eef4fb;
  color: #334155;
  font-size: 26px;
}

.checkout-submit-status {
  min-height: 18px;
  font-size: 13px;
}

/* Compact checkout proportions */
.checkout-dialog {
  width: min(1180px, calc(100vw - 54px));
  max-height: calc(100vh - 60px);
  grid-template-columns: minmax(430px, 0.82fr) minmax(500px, 1fr);
}

.checkout-form-panel {
  gap: 13px;
  padding: 20px 22px 18px;
}

.checkout-form-header {
  gap: 13px;
}

.checkout-form-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.checkout-form-icon svg {
  width: 23px;
  height: 23px;
}

.checkout-form-panel h2 {
  margin-bottom: 4px;
  font-size: clamp(21px, 1.7vw, 27px);
}

.checkout-lead {
  font-size: 13px;
}

.checkout-form-card {
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
}

.checkout-section-title {
  gap: 8px;
  font-size: 13px;
}

.checkout-section-icon {
  width: 23px;
  height: 23px;
}

.checkout-section-icon svg {
  width: 22px;
  height: 22px;
}

.checkout-form-grid {
  gap: 8px 12px;
}

.checkout-field span,
.checkout-block-label {
  font-size: 10.5px;
}

.checkout-field input,
.checkout-field textarea,
.checkout-address-field input {
  min-height: 35px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}

.checkout-field textarea,
.checkout-autofill-field textarea {
  min-height: 54px;
  max-height: 72px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.checkout-address-grid {
  gap: 8px 12px;
}

.checkout-payment-block {
  gap: 8px;
}

.checkout-payment-title {
  margin-top: 6px;
}

.checkout-payment-grid {
  gap: 12px;
}

.checkout-payment-choice {
  min-height: 58px;
  gap: 9px;
  padding: 10px 34px 10px 13px;
  border-radius: 10px;
}

.checkout-payment-icon {
  width: 25px;
  height: 25px;
}

.checkout-payment-icon svg {
  width: 24px;
  height: 24px;
}

.checkout-payment-choice strong {
  font-size: 14px;
}

.checkout-payment-choice small {
  font-size: 10.5px;
}

.checkout-payment-check {
  right: 11px;
  bottom: 11px;
  width: 12px;
  height: 12px;
}

.checkout-qr-box {
  grid-template-columns: minmax(190px, 0.78fr) minmax(188px, 1fr);
  gap: 10px;
  min-height: 258px;
  padding: 10px;
  border-radius: 12px;
}

.checkout-qr-media {
  padding: 6px;
  border-radius: 10px;
}

.checkout-qr-frame {
  max-width: 212px;
  padding: 10px 12px 11px;
  border-radius: 13px;
}

.checkout-qr-brand-head {
  padding-bottom: 7px;
}

.checkout-vietqr-word {
  font-size: 20px;
}

.checkout-mb-word {
  font-size: 23px;
}

.checkout-qr-media img {
  min-height: 154px;
}

.checkout-qr-foot {
  padding-top: 8px;
  font-size: 9.5px;
}

.checkout-qr-copy {
  gap: 5px;
}

.checkout-qr-copy > span,
.checkout-qr-copy small {
  font-size: 10px;
}

.checkout-qr-copy > strong {
  font-size: clamp(25px, 2.2vw, 31px);
}

.checkout-qr-copy .checkout-account-name {
  font-size: clamp(17px, 1.45vw, 20px);
}

.checkout-qr-copy div {
  gap: 3px;
  padding: 7px 9px;
  border-radius: 8px;
}

.checkout-qr-copy b {
  font-size: 13.5px;
}

.checkout-payment-status {
  gap: 7px;
  font-size: 12px;
}

.checkout-payment-status::before {
  width: 14px;
  height: 14px;
}

.checkout-payment-countdown {
  font-size: 11px;
}

.checkout-payment-warning {
  padding: 8px 9px;
  font-size: 11px;
}

.checkout-qr-box.is-paid {
  min-height: 208px;
}

.checkout-qr-box.is-paid .checkout-payment-success {
  min-height: 190px;
}

.checkout-payment-success-icon {
  width: 46px;
  height: 46px;
  font-size: 28px;
}

.checkout-payment-success strong {
  font-size: 25px;
}

.checkout-payment-success p {
  font-size: 13px;
}

.checkout-summary-content {
  gap: 10px;
  padding: 23px 20px 18px;
}

.checkout-summary-intro {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.38fr);
  gap: 14px;
}

.checkout-summary-intro .micro-label {
  margin-bottom: 6px;
  font-size: 12.5px;
}

.checkout-summary-intro h3 {
  margin-bottom: 5px;
  font-size: clamp(22px, 1.9vw, 29px);
}

.checkout-summary-intro p {
  font-size: 13px;
}

.checkout-security-note {
  gap: 4px 9px;
  padding: 10px 11px;
  border-radius: 10px;
}

.checkout-security-note span {
  width: 27px;
  height: 27px;
}

.checkout-security-note svg {
  width: 25px;
  height: 25px;
}

.checkout-security-note strong {
  font-size: 12.5px;
}

.checkout-security-note small {
  font-size: 10.5px;
}

.checkout-summary-card {
  padding: 13px 12px 12px;
  border-radius: 12px;
}

.checkout-summary-card-head {
  gap: 9px;
  margin-bottom: 9px;
}

.checkout-summary-card-head span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 15px;
}

.checkout-summary-card-head strong {
  font-size: 14px;
}

#checkoutSoundSummaryRows {
  gap: 0 10px;
}

.checkout-summary-row {
  min-height: 35px;
  padding: 0 9px;
}

.checkout-summary-row.has-icon {
  grid-template-columns: 23px minmax(0, 0.86fr) minmax(0, 1fr);
}

.checkout-summary-row-icon {
  width: 20px;
  height: 20px;
}

.checkout-summary-row-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.checkout-summary-row span,
.checkout-summary-row strong {
  font-size: 12px;
}

.checkout-price-summary-rows {
  gap: 10px;
}

.checkout-summary-row.is-total {
  min-height: 38px;
  margin: 5px 0;
}

.checkout-summary-row.is-total span,
.checkout-summary-row.is-total strong {
  font-size: 13.5px;
}

.checkout-support-card {
  gap: 5px 12px;
  padding: 12px 16px;
  border-radius: 12px;
}

.checkout-support-card::before {
  width: 36px;
  height: 36px;
  border-width: 2px;
}

.checkout-support-card span {
  font-size: 11.5px;
}

.checkout-support-card strong {
  font-size: 24px;
}

.checkout-support-card small {
  font-size: 12px;
}

.checkout-confirm-button {
  min-height: 50px;
  border-radius: 11px;
  font-size: 16px;
}

.checkout-confirm-icon {
  width: 21px;
  height: 21px;
}

.checkout-confirm-icon svg {
  width: 20px;
  height: 20px;
}

.checkout-receipt-link {
  min-height: 28px;
  font-size: 13px;
}

.checkout-floating-close {
  top: 12px;
  right: 13px;
  width: 36px;
  height: 36px;
  font-size: 22px;
}

.checkout-submit-status {
  min-height: 14px;
  font-size: 11.5px;
}

@media (min-width: 981px) {
  .checkout-modal {
    padding: 18px;
  }

  .checkout-dialog {
    width: min(1100px, calc(100vw - 72px));
    max-height: calc(100vh - 72px);
    grid-template-columns: minmax(410px, 0.82fr) minmax(488px, 1fr);
    overflow: hidden;
  }

  .checkout-form-panel,
  .checkout-summary-content {
    overflow: hidden;
  }

  .checkout-form-panel {
    gap: 8px;
    padding: 14px 16px 12px;
  }

  .checkout-form-header {
    gap: 10px;
  }

  .checkout-form-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .checkout-form-icon svg {
    width: 19px;
    height: 19px;
  }

  .checkout-form-panel h2 {
    margin-bottom: 2px;
    font-size: 22px;
  }

  .checkout-lead {
    font-size: 11.5px;
    line-height: 1.2;
  }

  .checkout-form-card {
    gap: 7px;
    padding: 9px 11px;
  }

  .checkout-section-title {
    gap: 6px;
    font-size: 11.5px;
  }

  .checkout-section-icon {
    width: 19px;
    height: 19px;
  }

  .checkout-section-icon svg {
    width: 18px;
    height: 18px;
  }

  .checkout-form-grid {
    gap: 5px 10px;
  }

  .checkout-field {
    gap: 4px;
  }

  .checkout-field span,
  .checkout-block-label {
    font-size: 9.4px;
  }

  .checkout-field input,
  .checkout-field textarea,
  .checkout-address-field input {
    min-height: 29px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 11.5px;
  }

  .checkout-field textarea,
  .checkout-autofill-field textarea {
    min-height: 43px;
    max-height: 48px;
    padding-top: 7px;
    padding-bottom: 7px;
    line-height: 1.25;
  }

  .checkout-address-block {
    gap: 4px;
  }

  .checkout-address-grid {
    gap: 5px 10px;
  }

  .checkout-payment-block {
    gap: 6px;
  }

  .checkout-payment-title {
    margin-top: 3px;
  }

  .checkout-payment-grid {
    gap: 9px;
  }

  .checkout-payment-choice {
    min-height: 44px;
    gap: 7px;
    padding: 7px 28px 7px 10px;
  }

  .checkout-payment-icon {
    width: 20px;
    height: 20px;
  }

  .checkout-payment-icon svg {
    width: 19px;
    height: 19px;
  }

  .checkout-payment-choice strong {
    font-size: 12.5px;
  }

  .checkout-payment-choice small {
    font-size: 9.4px;
  }

  .checkout-payment-check {
    right: 9px;
    bottom: 9px;
    width: 10px;
    height: 10px;
  }

  .checkout-qr-box {
    grid-template-columns: minmax(164px, 0.74fr) minmax(176px, 1fr);
    gap: 8px;
    min-height: 204px;
    padding: 7px;
  }

  .checkout-qr-media {
    padding: 4px;
  }

  .checkout-qr-frame {
    max-width: 176px;
    padding: 7px 9px 8px;
    border-radius: 11px;
  }

  .checkout-qr-brand-head {
    padding-bottom: 4px;
  }

  .checkout-vietqr-word {
    font-size: 16.5px;
  }

  .checkout-mb-word {
    font-size: 19px;
  }

  .checkout-qr-media img {
    min-height: 128px;
  }

  .checkout-qr-foot {
    padding-top: 5px;
    font-size: 8px;
  }

  .checkout-qr-copy {
    gap: 3px;
  }

  .checkout-qr-copy > span,
  .checkout-qr-copy small {
    font-size: 8.8px;
  }

  .checkout-qr-copy > strong {
    font-size: 25px;
  }

  .checkout-qr-copy .checkout-account-name {
    font-size: 15.5px;
  }

  .checkout-qr-copy div {
    gap: 2px;
    padding: 5px 7px;
    border-radius: 7px;
  }

  .checkout-qr-copy b {
    font-size: 11.5px;
  }

  .checkout-payment-status {
    gap: 5px;
    font-size: 10.5px;
  }

  .checkout-payment-status::before {
    width: 12px;
    height: 12px;
  }

  .checkout-payment-countdown {
    font-size: 9.5px;
  }

  .checkout-payment-warning {
    padding: 6px 7px;
    font-size: 9.5px;
    line-height: 1.22;
  }

  .checkout-summary-content {
    gap: 7px;
    padding: 16px 16px 12px;
  }

  .checkout-summary-intro {
    grid-template-columns: minmax(0, 1fr) 174px;
    gap: 10px;
  }

  .checkout-summary-intro .micro-label {
    margin-bottom: 4px;
    font-size: 10.8px;
  }

  .checkout-summary-intro h3 {
    margin-bottom: 3px;
    font-size: 23px;
  }

  .checkout-summary-intro p {
    font-size: 11.2px;
    line-height: 1.25;
  }

  .checkout-security-note {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 2px 7px;
    padding: 7px 8px;
    border-radius: 9px;
  }

  .checkout-security-note span {
    width: 22px;
    height: 22px;
  }

  .checkout-security-note svg {
    width: 20px;
    height: 20px;
  }

  .checkout-security-note strong {
    font-size: 10.5px;
  }

  .checkout-security-note small {
    font-size: 9px;
    line-height: 1.2;
  }

  .checkout-summary-card {
    padding: 8px 9px;
    border-radius: 10px;
  }

  .checkout-summary-card-head {
    gap: 7px;
    margin-bottom: 6px;
  }

  .checkout-summary-card-head span {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 13px;
  }

  .checkout-summary-card-head strong {
    font-size: 12.5px;
  }

  #checkoutSoundSummaryRows {
    gap: 0 8px;
  }

  .checkout-summary-row {
    min-height: 27px;
    padding: 0 7px;
  }

  .checkout-summary-row.has-icon {
    grid-template-columns: 19px minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .checkout-summary-row-icon {
    width: 17px;
    height: 17px;
  }

  .checkout-summary-row-icon svg {
    width: 15px;
    height: 15px;
  }

  .checkout-summary-row span,
  .checkout-summary-row strong {
    font-size: 10.5px;
  }

  .checkout-price-summary-rows {
    gap: 8px;
  }

  .checkout-summary-row.is-total {
    min-height: 31px;
    margin: 3px 0;
  }

  .checkout-summary-row.is-total span,
  .checkout-summary-row.is-total strong {
    font-size: 12px;
  }

  .checkout-support-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 3px 10px;
    padding: 8px 12px;
  }

  .checkout-support-card::before {
    width: 28px;
    height: 28px;
  }

  .checkout-support-card span {
    font-size: 10px;
  }

  .checkout-support-card strong {
    font-size: 21px;
  }

  .checkout-support-card small {
    font-size: 10px;
  }

  .checkout-confirm-button {
    min-height: 40px;
    border-radius: 10px;
    font-size: 13.5px;
  }

  .checkout-confirm-icon,
  .checkout-confirm-icon svg {
    width: 18px;
    height: 18px;
  }

  .checkout-receipt-link {
    min-height: 22px;
    font-size: 11.5px;
  }

  .checkout-receipt-link::after {
    font-size: 18px;
    transform: translateY(2px);
  }

  .checkout-submit-status {
    min-height: 0;
    font-size: 10px;
  }

  .checkout-floating-close {
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
}

/* Keep checkout text crisp: avoid compositor scaling on the payment dialog. */
.checkout-modal .checkout-dialog,
.checkout-modal.is-open .checkout-dialog {
  animation: none;
  transform: none;
  transition: opacity 160ms ease;
  will-change: auto;
}

.checkout-dialog,
.checkout-dialog input,
.checkout-dialog textarea,
.checkout-dialog button {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: auto;
  text-rendering: geometricPrecision;
}

.checkout-dialog * {
  text-shadow: none;
}

.checkout-form-panel h2,
.checkout-summary-intro h3,
.checkout-summary-card-head strong,
.checkout-payment-choice strong,
.checkout-qr-copy > strong,
.checkout-summary-row strong {
  color: #071120;
}

.checkout-lead,
.checkout-summary-intro p,
.checkout-payment-choice small,
.checkout-summary-row span,
.checkout-security-note small,
.checkout-support-card small {
  color: #344256;
}

.checkout-field input,
.checkout-field textarea,
.checkout-address-field input {
  color: #071120;
  font-weight: 650;
}

.price-order-button {
  width: min(100%, 340px);
  min-height: 48px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 16px;
}

.checkout-confirm-button {
  width: min(100%, 330px);
  min-height: 46px;
  justify-self: center;
  border-radius: 11px;
  font-size: 14.5px;
}

@media (min-width: 981px) {
  .checkout-summary-row span,
  .checkout-summary-row strong {
    font-size: 11px;
  }

  .checkout-field input,
  .checkout-field textarea,
  .checkout-address-field input {
    font-size: 12px;
  }

  .checkout-payment-choice strong,
  .checkout-qr-copy b {
    font-size: 12px;
  }

  .checkout-confirm-button {
    width: 286px;
    min-height: 38px;
    font-size: 12.8px;
  }

  .price-order-button {
    width: 300px;
    min-height: 46px;
    font-size: 15px;
  }
}

.flash-section,
.version-update-section {
  width: min(var(--max-width), calc(100vw - 36px));
  margin: 0 auto;
  padding: 118px 0 90px;
}

.version-update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.version-update-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  border-color: rgba(159, 179, 216, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(46, 125, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 22, 34, 0.96), rgba(7, 12, 20, 0.98));
}

.version-update-primary-card {
  min-height: 420px;
}

.version-update-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.version-update-card h3 {
  margin: 6px 0 0;
  color: #ffffff;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.version-update-card p {
  margin: 0;
  color: #b9c5d9;
  line-height: 1.62;
}

.version-update-chip {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(46, 125, 255, 0.38);
  border-radius: 8px;
  background: rgba(46, 125, 255, 0.14);
  color: #dce8ff;
  font-size: 12px;
  font-weight: 900;
}

.version-update-chip.preview-chip {
  border-color: rgba(34, 217, 111, 0.38);
  background: rgba(34, 217, 111, 0.12);
  color: #c8ffdc;
}

.version-update-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.version-update-meta div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(159, 179, 216, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.version-update-meta span {
  color: #7f8da6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.version-update-meta strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.version-update-open-button {
  align-self: end;
  min-height: 52px;
}

.excavator-preview-card {
  align-content: start;
}

.excavator-preview-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.excavator-preview-button {
  min-height: 54px;
}

.flash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  gap: 24px;
  align-items: start;
}

.flash-sound-panel {
  padding: 24px;
  border-color: rgba(159, 179, 216, 0.16);
  background:
    radial-gradient(circle at 18% 0%, rgba(46, 125, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(15, 22, 34, 0.96), rgba(7, 12, 20, 0.98));
}

.flash-panel {
  padding: 26px;
  border-color: rgba(159, 179, 216, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 201, 94, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(15, 22, 34, 0.96), rgba(7, 12, 20, 0.98));
}

.flash-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 82px;
}

.flash-manual-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(159, 179, 216, 0.1);
}

.flash-manual-header h3 {
  margin: 8px 0 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0;
}

.flash-sound-sections {
  margin-top: 16px;
}

.flash-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.flash-subtabs {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid rgba(159, 179, 216, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.flash-subtab {
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 7px;
  color: #aebbd1;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.flash-subtab::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: -3px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 4h10v4h2v11H5V8h2V4Zm2 2v2h6V6H9Zm-1 6v2h8v-2H8Zm0 4v2h5v-2H8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 4h10v4h2v11H5V8h2V4Zm2 2v2h6V6H9Zm-1 6v2h8v-2H8Zm0 4v2h5v-2H8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.flash-subtab[data-flash-subtab="flasher"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 7h11v8h1.6l1.8-3H21v6h-2.1a3 3 0 0 1-5.8 0H9.9a3 3 0 0 1-5.8 0H3V7Zm2 2v5h7V9H5Zm13.5 5-1.2 2H19v-2h-.5ZM7 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 7h11v8h1.6l1.8-3H21v6h-2.1a3 3 0 0 1-5.8 0H9.9a3 3 0 0 1-5.8 0H3V7Zm2 2v5h7V9H5Zm13.5 5-1.2 2H19v-2h-.5ZM7 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'/%3E%3C/svg%3E");
}

.flash-subtab[data-flash-subtab="controller"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 7h10a5 5 0 0 1 5 5v2a4 4 0 0 1-4 4h-1l-2-3H9l-2 3H6a4 4 0 0 1-4-4v-2a5 5 0 0 1 5-5Zm0 4H5v2h2v2h2v-2h2v-2H9V9H7v2Zm9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm4 2.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 7h10a5 5 0 0 1 5 5v2a4 4 0 0 1-4 4h-1l-2-3H9l-2 3H6a4 4 0 0 1-4-4v-2a5 5 0 0 1 5-5Zm0 4H5v2h2v2h2v-2h2v-2H9V9H7v2Zm9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm4 2.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z'/%3E%3C/svg%3E");
}

.flash-subtab[data-flash-subtab="excavator"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 15h3.6l2-4H15l1 2h2.8l1.2 2.8V19h-2.2a3 3 0 0 1-5.6 0H9.8a3 3 0 0 1-5.8-1v-3Zm10.3-2-1.1-2.2H11l-1.1 2.2h4.4ZM6.9 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.2 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 9l5-4h5.5L19 8.5l-1.4 1.4L14.7 7H10.7L6.3 10.5 5 9Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 15h3.6l2-4H15l1 2h2.8l1.2 2.8V19h-2.2a3 3 0 0 1-5.6 0H9.8a3 3 0 0 1-5.8-1v-3Zm10.3-2-1.1-2.2H11l-1.1 2.2h4.4ZM6.9 19a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.2 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 9l5-4h5.5L19 8.5l-1.4 1.4L14.7 7H10.7L6.3 10.5 5 9Z'/%3E%3C/svg%3E");
}

.flash-subtab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(46, 125, 255, 0.28), rgba(255, 77, 149, 0.18));
  box-shadow: inset 0 -2px 0 #ff4d95, inset 0 -3px 0 #2e7dff;
}

.flash-section[data-active-flash-subtab="controller"] .flash-layout {
  grid-template-columns: minmax(0, 1fr);
}

.flash-section[data-active-flash-subtab="controller"] .flash-main-column {
  gap: 0;
}

.flash-controller-panel {
  padding: 24px;
}

.controller-test-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.controller-test-header h3 {
  margin: 8px 0 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0;
}

.controller-test-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.controller-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 260px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d8e2f5;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.controller-status-pill[data-state="busy"] {
  border-color: rgba(79, 145, 255, 0.46);
  color: #d8e7ff;
  background: rgba(79, 145, 255, 0.14);
  box-shadow: 0 0 0 5px rgba(79, 145, 255, 0.08);
}

.controller-status-pill[data-state="good"] {
  border-color: rgba(34, 217, 111, 0.44);
  color: #b8ffd5;
  background: rgba(34, 217, 111, 0.11);
}

.controller-status-pill[data-state="warn"] {
  border-color: rgba(255, 216, 77, 0.5);
  color: #ffe68a;
  background: rgba(255, 216, 77, 0.12);
}

.controller-status-pill[data-state="bad"] {
  border-color: rgba(255, 77, 103, 0.46);
  color: #ffb8c2;
  background: rgba(255, 77, 103, 0.12);
}

.controller-profile-line {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.controller-profile-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.controller-profile-line strong {
  min-width: 0;
  color: #f4d46f;
  font-family: "Orbitron", "Barlow", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.controller-test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.controller-metric-table {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.controller-metric-head,
.controller-metric-row {
  display: grid;
  grid-template-columns: 108px minmax(130px, 1fr) 132px 76px;
  gap: 10px;
  align-items: center;
}

.controller-metric-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.controller-metric-row {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.controller-metric-row > span:first-child {
  color: #f4d46f;
  font-size: 13px;
  font-weight: 900;
}

.controller-metric-row strong,
.controller-metric-row em {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.controller-metric-row strong {
  color: #e8eef9;
}

.controller-metric-row em {
  color: #9fb0c8;
}

.controller-meter {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.controller-meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.26);
  transform: translateX(-0.5px);
}

.controller-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e7dff, #22d96f);
  transition: left 120ms ease, width 120ms ease;
}

.controller-meter[data-centered="true"] .controller-meter-fill {
  left: 50%;
  width: 0%;
  background: linear-gradient(90deg, #ffb347, #4f91ff);
}

.controller-side-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.controller-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.controller-summary-grid div,
.controller-event-grid div,
.controller-light-grid div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.controller-summary-grid div {
  padding: 11px 12px;
}

.controller-summary-grid span,
.controller-event-grid span,
.controller-light-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.controller-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-family: "Orbitron", "Barlow", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.controller-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.controller-event-grid div {
  padding: 10px 11px;
  transition: border-color 140ms ease, background 140ms ease;
}

.controller-event-grid strong,
.controller-light-grid strong {
  display: block;
  margin-top: 5px;
  color: #9fb0c8;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.controller-event-grid div[data-active="true"] {
  border-color: rgba(34, 217, 111, 0.34);
  background: rgba(34, 217, 111, 0.09);
}

.controller-event-grid div[data-active="true"] strong {
  color: #b8ffd5;
}

.controller-light-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.controller-light-grid div {
  padding: 9px 10px;
}

.controller-light-grid div[data-active="true"] {
  border-color: rgba(241, 201, 77, 0.38);
  background: rgba(241, 201, 77, 0.1);
}

.controller-light-grid div[data-active="true"] strong {
  color: #ffe68a;
}

.controller-test-note {
  margin-top: 14px;
}

.flash-controller-panel.controller-console {
  --controller-orange: #ff9e2b;
  --controller-orange-soft: rgba(255, 158, 43, 0.22);
  --controller-blueprint: #9fb3d8;
  --controller-card: rgba(8, 16, 26, 0.82);
  --controller-card-strong: rgba(11, 20, 31, 0.94);
  --speed-percent: 0%;
  --rpm-percent: 0%;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 8px;
  border-color: rgba(82, 104, 138, 0.34);
  background:
    linear-gradient(135deg, rgba(10, 21, 34, 0.96), rgba(5, 11, 19, 0.98) 62%, rgba(13, 17, 27, 0.96)),
    rgba(7, 11, 18, 0.98);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.flash-controller-panel.controller-console::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 22px;
  width: 520px;
  height: 86px;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(45deg, transparent 0 46%, rgba(255, 158, 43, 0.42) 47% 49%, transparent 50%) 0 0 / 26px 18px repeat-x,
    linear-gradient(180deg, transparent 0 28px, rgba(79, 145, 255, 0.22) 29px 30px, transparent 31px),
    linear-gradient(180deg, transparent 0 64px, rgba(255, 158, 43, 0.2) 65px 66px, transparent 67px);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 46% 100%, 38% 66%, 0 66%, 0 24%);
}

.controller-console > * {
  position: relative;
  z-index: 1;
}

.controller-console-header {
  margin-bottom: 16px;
  padding: 4px 4px 0;
}

.controller-title-cluster {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.controller-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 158, 43, 0.7);
  border-radius: 8px;
  color: var(--controller-orange);
  background: rgba(255, 158, 43, 0.08);
  box-shadow: inset 0 0 18px rgba(255, 158, 43, 0.08);
  font-family: "Orbitron", "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.controller-title-cluster h3 {
  margin: 0;
  color: #f3f7ff;
  text-shadow: 0 0 20px rgba(159, 179, 216, 0.2);
}

.controller-console .controller-profile-line {
  width: min(100%, 620px);
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.controller-console .controller-profile-line span {
  color: var(--controller-blueprint);
  font-size: 12px;
  letter-spacing: 0;
}

.controller-console .controller-profile-line strong {
  color: var(--controller-orange);
  font-size: 14px;
}

.controller-console .controller-test-actions {
  gap: 14px;
}

.controller-console .controller-status-pill {
  min-height: 46px;
  min-width: 210px;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0;
}

.controller-console .controller-status-pill::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.controller-console .controller-status-pill[data-state="good"] {
  color: #5cff83;
  border-color: rgba(34, 217, 111, 0.62);
  background: rgba(34, 217, 111, 0.13);
}

.controller-console .controller-status-pill[data-state="busy"] {
  color: #9fd0ff;
  border-color: rgba(79, 145, 255, 0.58);
  background: rgba(79, 145, 255, 0.14);
}

.controller-console .controller-status-pill[data-state="warn"] {
  color: #ffd64d;
  border-color: rgba(255, 214, 77, 0.68);
  background: rgba(255, 214, 77, 0.11);
}

.controller-console .controller-status-pill[data-state="bad"] {
  color: #ff7488;
  border-color: rgba(255, 77, 103, 0.6);
}

.controller-stop-button {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(159, 179, 216, 0.22);
  background: linear-gradient(180deg, rgba(32, 42, 59, 0.88), rgba(15, 20, 31, 0.94));
  color: #f5f8ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.controller-stop-button::before {
  content: "↯";
  margin-right: 8px;
  color: #ff4d67;
  font-weight: 900;
}

.controller-dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.18fr 0.94fr 0.88fr;
  gap: 10px;
  margin-bottom: 14px;
}

.controller-gauge-card,
.controller-console-section {
  min-width: 0;
  border: 1px solid rgba(159, 179, 216, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 29, 45, 0.86), rgba(8, 14, 22, 0.94)),
    var(--controller-card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), inset 0 -2px 0 rgba(255, 158, 43, 0.2);
}

.controller-gauge-card {
  position: relative;
  min-height: 148px;
  padding: 22px 26px;
  overflow: hidden;
}

.controller-gauge-card::before,
.controller-console-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--controller-orange), transparent);
}

.controller-card-label,
.controller-console-section h4 {
  margin: 0;
  color: var(--controller-blueprint);
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.controller-card-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 14px rgba(159, 179, 216, 0.44);
  transform: rotate(45deg);
}

.controller-speed-layout {
  display: grid;
  grid-template-columns: 84px minmax(150px, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 18px;
}

.controller-big-readout strong,
.controller-rpm-readout,
.controller-gear-card strong,
.controller-engine-card strong,
.controller-rx-card strong {
  color: #ffffff;
  font-family: "Orbitron", "Barlow", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.14);
}

.controller-big-readout strong {
  display: block;
  font-size: 48px;
  line-height: 0.95;
}

.controller-big-readout span {
  display: block;
  margin-top: 6px;
  color: var(--controller-blueprint);
  font-size: 16px;
  font-weight: 800;
}

.controller-rpm-readout {
  display: block;
  margin-top: 18px;
  font-size: 50px;
  line-height: 0.9;
}

.controller-speed-bar-block {
  min-width: 0;
  align-self: end;
}

.controller-speed-scale,
.controller-rpm-scale {
  position: relative;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(159, 179, 216, 0.2);
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(159, 179, 216, 0.18) 0 2px, transparent 2px 16px),
    rgba(29, 39, 58, 0.76);
}

.controller-speed-scale {
  margin: 0 0 8px;
}

.controller-rpm-scale {
  margin: 12px 0 8px 52px;
}

.controller-speed-fill,
.controller-rpm-fill {
  display: block;
  height: 100%;
  transition: width 160ms ease;
}

.controller-speed-fill {
  width: var(--speed-percent);
  background: linear-gradient(90deg, rgba(32, 209, 179, 0.85), #ff9e2b 72%, #ff3333);
  box-shadow: 0 0 14px rgba(255, 158, 43, 0.42);
}

.controller-rpm-fill {
  width: var(--rpm-percent);
  background: linear-gradient(90deg, rgba(46, 125, 255, 0.72), #ff9e2b 74%, #ff3333);
  box-shadow: 0 0 14px rgba(255, 83, 55, 0.42);
}

.controller-speed-ticks,
.controller-rpm-ticks {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: #c7d4ec;
  font-size: 13px;
  font-weight: 800;
}

.controller-rpm-ticks {
  grid-template-columns: repeat(8, auto);
}

.controller-gear-card,
.controller-engine-card,
.controller-rx-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.controller-gear-card strong,
.controller-engine-card strong,
.controller-rx-card strong {
  margin-top: 22px;
  color: var(--controller-orange);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.controller-test-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 10px;
}

.controller-console-section {
  position: relative;
  padding: 20px 14px 14px;
}

.controller-console-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px 4px;
}

.controller-console-section h4 span {
  color: var(--controller-orange);
  font-size: 21px;
  line-height: 1;
}

.controller-console .controller-metric-head,
.controller-console .controller-metric-row {
  grid-template-columns: 126px minmax(170px, 1fr) 118px 76px;
  gap: 12px;
}

.controller-console .controller-metric-head {
  padding: 0 20px 4px;
  color: var(--controller-blueprint);
  font-size: 12px;
}

.controller-console .controller-metric-row {
  min-height: 46px;
  padding: 8px 20px;
  border-color: rgba(159, 179, 216, 0.14);
  background: linear-gradient(180deg, rgba(18, 28, 43, 0.8), rgba(10, 17, 27, 0.88));
}

.controller-console .controller-metric-row > span:first-child {
  color: var(--controller-orange);
  font-size: 16px;
}

.controller-console .controller-metric-row strong {
  color: #f3f7ff;
  font-size: 14px;
}

.controller-console .controller-metric-row em {
  color: #c9d7ee;
  font-size: 14px;
}

.controller-console .controller-meter {
  height: 18px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(159, 179, 216, 0.18) 0 1px, transparent 1px 18px),
    rgba(39, 51, 73, 0.78);
}

.controller-console .controller-meter::before {
  width: 2px;
  background: var(--controller-orange);
  box-shadow: 0 0 10px rgba(255, 158, 43, 0.6);
}

.controller-console .controller-meter-fill {
  background: linear-gradient(90deg, #16d6a5, #26e6bd);
  box-shadow: 0 0 12px rgba(38, 230, 189, 0.35);
}

.controller-console .controller-meter[data-centered="true"] .controller-meter-fill {
  background: linear-gradient(90deg, #2e7dff, var(--controller-orange));
}

.controller-console .controller-side-stack {
  display: block;
}

.controller-console .controller-event-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.controller-console .controller-event-grid div,
.controller-console .controller-light-grid div {
  position: relative;
  min-height: 78px;
  padding: 16px 14px 14px 78px;
  border-color: rgba(159, 179, 216, 0.16);
  background: linear-gradient(145deg, rgba(18, 29, 45, 0.84), rgba(10, 15, 24, 0.92));
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.controller-console .controller-event-grid div::before,
.controller-console .controller-light-grid div::before {
  content: attr(data-card-icon);
  position: absolute;
  left: 16px;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b5c6eb;
  background: rgba(159, 179, 216, 0.08);
  box-shadow: inset 0 0 0 1px rgba(159, 179, 216, 0.12);
  transform: translateY(-50%);
  font-family: "Orbitron", "Barlow", sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.controller-console .controller-event-grid div[data-card-icon="throttle"]::before { content: "GA"; }
.controller-console .controller-event-grid div[data-card-icon="brake"]::before { content: "BR"; }
.controller-console .controller-event-grid div[data-card-icon="reverse"]::before { content: "R"; }
.controller-console .controller-event-grid div[data-card-icon="horn"]::before { content: "CO"; }
.controller-console .controller-event-grid div[data-card-icon="indicator"]::before { content: "XI"; }
.controller-console .controller-event-grid div[data-card-icon="lights"]::before { content: "Đ"; }
.controller-console .controller-event-grid div[data-card-icon="siren"]::before { content: "ƯT"; }
.controller-console .controller-event-grid div[data-card-icon="engine"]::before { content: "EN"; }

.controller-console .controller-event-grid div[data-card-icon]::before,
.controller-console .controller-light-grid div[data-light-icon]::before {
  content: "";
  color: #b5c6eb;
  background: currentColor;
  mask: var(--controller-icon) center / 25px 25px no-repeat;
  -webkit-mask: var(--controller-icon) center / 25px 25px no-repeat;
}

.controller-console .controller-event-grid div[data-card-icon="throttle"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M15 3h3l-2 7 3 2-4 9H9l2-8-4-2 2-4h4l2-4Z'/%3E%3C/svg%3E"); }
.controller-console .controller-event-grid div[data-card-icon="brake"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a9 9 0 1 0 0 18v-3a6 6 0 1 1 0-12V3Zm0 4h2v7h-2V7Zm0 9h2v2h-2v-2Zm4-8 4-3v14l-4-3V8Z'/%3E%3C/svg%3E"); }
.controller-console .controller-event-grid div[data-card-icon="reverse"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 5h10v4h-8v3h5l-7 7-7-7h5V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.controller-console .controller-event-grid div[data-card-icon="horn"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 10h4l7-4v12l-7-4H3v-4Zm13-2c2 1 3 2 3 4s-1 3-3 4v-3c.6-.4 1-.7 1-1s-.4-.8-1-1V8Zm3-3c3 2 5 4 5 7s-2 5-5 7v-3c1.4-1.2 2-2.4 2-4s-.6-2.8-2-4V5Z'/%3E%3C/svg%3E"); }
.controller-console .controller-event-grid div[data-card-icon="indicator"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m7 5 7 7-7 7v-5H1v-4h6V5Zm10 0v5h6v4h-6v5l-7-7 7-7Z'/%3E%3C/svg%3E"); }
.controller-console .controller-event-grid div[data-card-icon="lights"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M11 3a7 7 0 0 1 4 12.7V19H7v-3.3A7 7 0 0 1 11 3Zm-4 18h8v2H7v-2Zm11-13h5v2h-5V8Zm0 4h5v2h-5v-2Zm0 4h5v2h-5v-2Z'/%3E%3C/svg%3E"); }
.controller-console .controller-event-grid div[data-card-icon="siren"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 4h8l2 10H6L8 4Zm-3 12h14v4H5v-4Zm-4-7h4v3H1V9Zm18 0h4v3h-4V9ZM4 2l3 3-2 2-3-3 2-2Zm16 0 2 2-3 3-2-2 3-3Z'/%3E%3C/svg%3E"); }
.controller-console .controller-event-grid div[data-card-icon="engine"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 5h6v3h3l3 3v6h-3l-2 3H8l-2-3H3v-6h3V8h2V5Zm2 3v3H8v5h2l1 2h3l1-2h2v-4l-1-1h-4V8h-2Z'/%3E%3C/svg%3E"); }

.controller-console .controller-event-grid span,
.controller-console .controller-light-grid span {
  color: var(--controller-blueprint);
  font-size: 14px;
  letter-spacing: 0;
}

.controller-console .controller-event-grid strong,
.controller-console .controller-light-grid strong {
  margin-top: 3px;
  color: #9fb0c8;
  font-size: 15px;
  line-height: 1.15;
}

.controller-console .controller-event-grid div[data-active="true"],
.controller-console .controller-light-grid div[data-active="true"] {
  border-color: rgba(255, 158, 43, 0.56);
  background: linear-gradient(145deg, rgba(48, 35, 18, 0.9), rgba(16, 21, 30, 0.94));
  box-shadow: 0 0 0 1px rgba(255, 158, 43, 0.08), inset 0 -2px 0 rgba(255, 158, 43, 0.34);
}

.controller-console .controller-event-grid div[data-active="true"]::before,
.controller-console .controller-light-grid div[data-active="true"]::before {
  color: #14171d;
  background: var(--controller-orange);
  box-shadow: 0 0 18px rgba(255, 158, 43, 0.48);
}

.controller-console .controller-event-grid div[data-active="true"] strong,
.controller-console .controller-light-grid div[data-active="true"] strong {
  color: #ffd899;
}

.controller-lights-panel {
  margin-top: 14px;
}

.controller-console .controller-light-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.controller-console .controller-light-grid div {
  min-height: 74px;
  padding-left: 72px;
}

.controller-console .controller-light-grid div::before {
  content: attr(data-light-icon);
}

.controller-console .controller-light-grid div[data-light-icon="headlight"]::before { content: "PHA"; }
.controller-console .controller-light-grid div[data-light-icon="taillight"]::before { content: "HẬU"; }
.controller-console .controller-light-grid div[data-light-icon="left"]::before { content: "←"; }
.controller-console .controller-light-grid div[data-light-icon="right"]::before { content: "→"; }
.controller-console .controller-light-grid div[data-light-icon="fog"]::before { content: "SM"; }
.controller-console .controller-light-grid div[data-light-icon="reverse"]::before { content: "R"; }
.controller-console .controller-light-grid div[data-light-icon="roof"]::before { content: "NÓC"; }
.controller-console .controller-light-grid div[data-light-icon="side"]::before { content: "HÔ"; }
.controller-console .controller-light-grid div[data-light-icon="beacon"]::before { content: "BC"; }
.controller-console .controller-light-grid div[data-light-icon="cabin"]::before { content: "CAB"; }
.controller-console .controller-light-grid div[data-light-icon="brake"]::before { content: "BR"; }

.controller-console .controller-light-grid div[data-light-icon="headlight"],
.controller-console .controller-light-grid div[data-light-icon="fog"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 7h8c4 0 7 2 7 5s-3 5-7 5H4V7Zm15 0h4v2h-4V7Zm0 4h4v2h-4v-2Zm0 4h4v2h-4v-2Z'/%3E%3C/svg%3E"); }
.controller-console .controller-light-grid div[data-light-icon="taillight"],
.controller-console .controller-light-grid div[data-light-icon="side"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 6h10a5 5 0 0 1 0 10H4V6Zm14 1h4v2h-4V7Zm0 4h4v2h-4v-2Zm0 4h4v2h-4v-2Z'/%3E%3C/svg%3E"); }
.controller-console .controller-light-grid div[data-light-icon="left"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10 5 1 12l9 7v-5h13v-4H10V5Z'/%3E%3C/svg%3E"); }
.controller-console .controller-light-grid div[data-light-icon="right"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m14 5 9 7-9 7v-5H1v-4h13V5Z'/%3E%3C/svg%3E"); }
.controller-console .controller-light-grid div[data-light-icon="reverse"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 5h10v4H9v3h5l-7 7-7-7h5V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.controller-console .controller-light-grid div[data-light-icon="roof"],
.controller-console .controller-light-grid div[data-light-icon="beacon"],
.controller-console .controller-light-grid div[data-light-icon="cabin"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 4h8l2 9H6l2-9Zm-3 11h14v5H5v-5ZM3 7h3v3H3V7Zm15 0h3v3h-3V7ZM11 1h2v3h-2V1Z'/%3E%3C/svg%3E"); }
.controller-console .controller-light-grid div[data-light-icon="brake"] { --controller-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a9 9 0 1 0 0 18v-3a6 6 0 1 1 0-12V3Zm0 4h2v7h-2V7Zm0 9h2v2h-2v-2Zm4-8 4-3v14l-4-3V8Z'/%3E%3C/svg%3E"); }

.controller-console .controller-light-grid div[data-light-icon]::before {
  content: "";
}

.controller-console .controller-test-note {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(159, 179, 216, 0.14);
  border-radius: 8px;
  background: rgba(159, 179, 216, 0.05);
}

.flash-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dfe7f8;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.flash-badge[data-state="good"] {
  border-color: rgba(34, 217, 111, 0.46);
  color: #b8ffd5;
  background: rgba(34, 217, 111, 0.1);
}

.flash-badge[data-state="warn"] {
  border-color: rgba(255, 194, 50, 0.42);
  color: #ffe5a0;
  background: rgba(255, 194, 50, 0.1);
}

.flash-state-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}

.flash-state-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.flash-state-dot {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(127, 138, 160, 0.2);
  color: #dfe8fb;
  box-shadow: 0 0 0 5px rgba(127, 138, 160, 0.08);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.flash-state-dot::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: var(--flash-step-icon) center / contain no-repeat;
  -webkit-mask: var(--flash-step-icon) center / contain no-repeat;
}

.flash-state-item[data-step="connect"] {
  --flash-step-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h10v5h2v5a6 6 0 0 1-5 5.9V22h-4v-4.1A6 6 0 0 1 5 12V7h2V2Zm2 2v3h2V4H9Zm4 0v3h2V4h-2Z'/%3E%3C/svg%3E");
}

.flash-state-item[data-step="verify"] {
  --flash-step-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm-1 13.5-3.5-3.5L9 10.5l2 2 4-4 1.5 1.5-5.5 5.5Z'/%3E%3C/svg%3E");
}

.flash-state-item[data-step="flash"] {
  --flash-step-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 4h10v4h2v11H5V8h2V4Zm2 2v2h6V6H9Zm-1 6v2h8v-2H8Zm0 4v2h5v-2H8Z'/%3E%3C/svg%3E");
}

.flash-state-item strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.flash-state-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.flash-state-item[data-state="busy"] {
  border-color: rgba(46, 125, 255, 0.35);
  background: rgba(46, 125, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(46, 125, 255, 0.08), 0 12px 28px rgba(46, 125, 255, 0.1);
}

.flash-state-item[data-step="flash"][data-state="busy"] {
  animation: flashBreathPanel 1700ms ease-in-out infinite;
}

.flash-state-item[data-state="busy"] .flash-state-dot {
  background: #4f91ff;
  box-shadow: 0 0 0 6px rgba(79, 145, 255, 0.15);
  animation: flashStateFloat 1100ms ease-in-out infinite;
}

.flash-state-item[data-state="busy"] .flash-state-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(79, 145, 255, 0.18);
  border-top-color: #b8d4ff;
  animation: flashStateSpin 800ms linear infinite;
}

.flash-state-item[data-state="good"] {
  border-color: rgba(34, 217, 111, 0.34);
  background: rgba(34, 217, 111, 0.09);
  box-shadow: 0 0 0 1px rgba(34, 217, 111, 0.08), 0 12px 28px rgba(34, 217, 111, 0.08);
}

.flash-state-item[data-state="good"] .flash-state-dot {
  background: #22d96f;
  box-shadow: 0 0 0 6px rgba(34, 217, 111, 0.13);
}

.flash-state-item[data-state="warn"] {
  border-color: rgba(255, 216, 77, 0.42);
  background: rgba(255, 216, 77, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 216, 77, 0.08), 0 12px 28px rgba(255, 216, 77, 0.08);
}

.flash-state-item[data-state="warn"] .flash-state-dot {
  background: #ffd84d;
  box-shadow: 0 0 0 6px rgba(255, 216, 77, 0.15);
}

.flash-state-item[data-state="bad"] {
  border-color: rgba(255, 77, 103, 0.4);
  background: rgba(255, 77, 103, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 77, 103, 0.08), 0 12px 28px rgba(255, 77, 103, 0.08);
}

.flash-state-item[data-state="bad"] .flash-state-dot {
  background: #ff4d67;
  box-shadow: 0 0 0 6px rgba(255, 77, 103, 0.13);
}

.flash-controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}

.flash-action-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 10px;
}

.flash-action-row .secondary-button,
.flash-action-row .accent-button {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 8px;
  gap: 10px;
}

.flash-action-row .secondary-button::before,
.flash-action-row .accent-button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--flash-action-icon) center / contain no-repeat;
  -webkit-mask: var(--flash-action-icon) center / contain no-repeat;
}

#flashConnectButton {
  --flash-action-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h10v5h2v5a6 6 0 0 1-5 5.9V22h-4v-4.1A6 6 0 0 1 5 12V7h2V2Zm2 2v3h2V4H9Zm4 0v3h2V4h-2Z'/%3E%3C/svg%3E");
}

#flashBuildButton {
  --flash-action-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m13 2-1 7h6l-8 13 1-8H5l8-12Z'/%3E%3C/svg%3E");
}

.flash-turnstile-container {
  display: flex;
  justify-content: center;
  min-height: 74px;
  margin-top: 14px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(34, 217, 111, 0.24);
  border-radius: 8px;
  background: rgba(34, 217, 111, 0.06);
}

.flash-turnstile-container[hidden] {
  display: none;
}

.flash-live-notice {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 16px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.flash-live-notice[hidden] {
  display: none;
}

.flash-live-notice strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.flash-live-notice small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.flash-live-dot {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d7dfef;
  box-shadow: 0 0 0 6px rgba(215, 223, 239, 0.1);
  color: #0d111b;
  font-size: 12px;
  font-weight: 950;
}

.flash-live-dot::before {
  content: "i";
}

.flash-live-notice[data-state="busy"] {
  border-color: rgba(46, 125, 255, 0.42);
  background: rgba(46, 125, 255, 0.12);
}

.flash-live-notice[data-phase="build"][data-state="busy"] {
  animation: flashBreathPanel 1700ms ease-in-out infinite;
}

.flash-live-notice[data-state="busy"] .flash-live-dot {
  background: #4f91ff;
  box-shadow: 0 0 0 6px rgba(79, 145, 255, 0.16);
  animation: flashLivePulse 950ms ease-in-out infinite;
}

.flash-live-notice[data-state="busy"] .flash-live-dot::before {
  content: "...";
  transform: translateY(-1px);
}

.flash-live-notice[data-state="good"] {
  border-color: rgba(34, 217, 111, 0.38);
  background: rgba(34, 217, 111, 0.11);
}

.flash-live-notice[data-state="good"] .flash-live-dot {
  background: #22d96f;
  box-shadow: 0 0 0 6px rgba(34, 217, 111, 0.14);
}

.flash-live-notice[data-state="good"] .flash-live-dot::before {
  content: "✓";
}

.flash-live-notice[data-state="warn"] {
  border-color: rgba(255, 216, 77, 0.46);
  background: rgba(255, 216, 77, 0.11);
}

.flash-live-notice[data-state="warn"] .flash-live-dot {
  background: #ffd84d;
  box-shadow: 0 0 0 6px rgba(255, 216, 77, 0.16);
  animation: flashLivePulse 1200ms ease-in-out infinite;
}

.flash-live-notice[data-state="warn"] .flash-live-dot::before {
  content: "!";
}

.flash-live-notice[data-state="bad"] {
  border-color: rgba(255, 77, 103, 0.42);
  background: rgba(255, 77, 103, 0.11);
}

.flash-live-notice[data-state="bad"] .flash-live-dot {
  background: #ff4d67;
  box-shadow: 0 0 0 6px rgba(255, 77, 103, 0.14);
}

.flash-live-notice[data-state="bad"] .flash-live-dot::before {
  content: "×";
}

.flash-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 240;
  width: min(380px, calc(100vw - 32px));
  padding: 14px 14px 12px;
  border: 1px solid rgba(159, 179, 216, 0.24);
  border-radius: 8px;
  background: rgba(10, 14, 24, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  animation: flashToastIn 180ms ease-out;
}

.flash-toast[hidden] {
  display: none;
}

.flash-toast-body {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-right: 30px;
}

.flash-toast-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07111d;
  background: #d7dfef;
  box-shadow: 0 0 0 6px rgba(215, 223, 239, 0.1);
  font-size: 14px;
  font-weight: 950;
}

.flash-toast-icon::before {
  content: "i";
}

.flash-toast-copy strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.flash-toast-copy small {
  display: block;
  margin-top: 4px;
  color: #b9c6dc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.flash-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #dfe8fb;
  background: rgba(255, 255, 255, 0.05);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.flash-toast-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.flash-toast-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e7dff, #22d96f);
  transition: width 180ms ease;
}

.flash-toast-percent {
  margin-top: 6px;
  color: #dfe8fb;
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.flash-toast[data-state="busy"] {
  border-color: rgba(46, 125, 255, 0.42);
}

.flash-toast[data-state="busy"] .flash-toast-icon {
  background: #4f91ff;
  box-shadow: 0 0 0 6px rgba(79, 145, 255, 0.16);
  animation: flashLivePulse 950ms ease-in-out infinite;
}

.flash-toast[data-state="busy"] .flash-toast-icon::before {
  content: "...";
  transform: translateY(-1px);
}

.flash-toast[data-state="good"] {
  border-color: rgba(34, 217, 111, 0.42);
}

.flash-toast[data-state="good"] .flash-toast-icon {
  background: #22d96f;
  box-shadow: 0 0 0 6px rgba(34, 217, 111, 0.14);
}

.flash-toast[data-state="good"] .flash-toast-icon::before {
  content: "✓";
}

.flash-toast[data-state="warn"] {
  border-color: rgba(255, 216, 77, 0.48);
}

.flash-toast[data-state="warn"] .flash-toast-icon {
  background: #ffd84d;
  box-shadow: 0 0 0 6px rgba(255, 216, 77, 0.16);
}

.flash-toast[data-state="warn"] .flash-toast-icon::before {
  content: "!";
}

.flash-toast[data-state="bad"] {
  border-color: rgba(255, 77, 103, 0.46);
}

.flash-toast[data-state="bad"] .flash-toast-icon {
  background: #ff4d67;
  box-shadow: 0 0 0 6px rgba(255, 77, 103, 0.14);
}

.flash-toast[data-state="bad"] .flash-toast-icon::before {
  content: "×";
}

@keyframes flashToastIn {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes flashLivePulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes flashStateFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.06);
  }
}

@keyframes flashStateSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flashBreathPanel {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(46, 125, 255, 0.1), 0 10px 24px rgba(46, 125, 255, 0.08);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 1px rgba(46, 125, 255, 0.22), 0 16px 34px rgba(46, 125, 255, 0.18);
  }
}

@keyframes flashBreathText {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.flash-progress-shell {
  height: 10px;
  margin: 22px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.flash-progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e7dff, #22d96f);
  transition: width 180ms ease;
}

.flash-progress-text {
  margin-top: -7px;
  color: #dfe8fb;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.flash-build-timer {
  margin-top: 6px;
  color: #d8e3ff;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.flash-build-timer[hidden] {
  display: none;
}

.flash-build-timer[data-state="warn"] {
  color: #ffe68a;
}

.flash-build-timer[data-state="busy"] {
  animation: flashBreathText 1350ms ease-in-out infinite;
}

.flash-build-timer[data-state="good"] {
  color: #b8ffd5;
}

.flash-build-timer[data-state="bad"] {
  color: #ffb8c2;
}

#flashStatusText[data-state="good"] {
  color: #b8ffd5;
}

#flashStatusText[data-state="bad"] {
  color: #ffb8c2;
}

#flashStatusText[data-state="busy"] {
  color: #d8e3ff;
}

#flashStatusText[data-state="warn"] {
  color: #ffe68a;
}

.flash-incident-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.flash-incident-actions[hidden] {
  display: none;
}

.flash-report-button {
  min-height: 42px;
  border-color: rgba(255, 193, 89, 0.44);
  color: #ffe0a3;
  background:
    linear-gradient(135deg, rgba(255, 160, 64, 0.14), rgba(255, 88, 116, 0.1)),
    rgba(255, 255, 255, 0.035);
}

.flash-report-button:hover:not(:disabled) {
  border-color: rgba(255, 214, 128, 0.72);
  color: #fff3d4;
  transform: translateY(-1px);
}

.flash-incident-status {
  min-height: 16px;
  color: #aeb9cf;
  font-size: 12px;
  font-weight: 800;
}

.flash-incident-status[data-state="busy"] {
  color: #d8e3ff;
}

.flash-incident-status[data-state="good"] {
  color: #7cffae;
}

.flash-incident-status[data-state="bad"] {
  color: #ffb8c2;
}

.flash-info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.flash-info-list div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
}

.flash-info-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.flash-info-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-family: "Orbitron", "Barlow", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  .hero-layout,
  .section-heading,
  .product-story-layout,
  .product-detail-hero,
  .product-use-layout,
  .listen-layout,
  .version-update-layout,
  .toy-shop-layout,
  .flash-layout,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .listen-panel-header,
  .flash-manual-header,
  .controller-test-header,
  .controller-test-grid,
  .toy-market-toolbar {
    grid-template-columns: 1fr;
  }

  .flash-sidebar {
    position: static;
  }

  .version-update-meta {
    grid-template-columns: 1fr;
  }

  .preset-block {
    justify-items: stretch;
  }

  .controller-test-actions {
    justify-content: flex-start;
  }

  .controller-light-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-shell {
    padding-bottom: 86px;
  }

  .flash-toast {
    right: 14px;
    bottom: 96px;
    width: calc(100vw - 28px);
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .topbar-inner {
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 14px 9px;
  }

  .brand-mark {
    width: auto;
    text-align: left;
    font-size: 22px;
    letter-spacing: 1.2px;
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .shop-cta {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 15px;
  }

  .topnav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .cart-nav-button {
    grid-column: 2;
    width: 38px;
    height: 38px;
  }

  .topbar-back-home {
    grid-column: 2;
    min-height: 38px;
  }

  .floating-cta {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .floating-cta-button {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 15px;
  }

  .flash-state-list,
  .flash-controls-grid,
  .sound-card-grid {
    grid-template-columns: 1fr;
  }

  .flash-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .receipt-modal {
    padding: 10px;
  }

  .flash-upgrade-modal {
    padding: 10px;
  }

  .rx-info-modal {
    padding: 10px;
  }

  .dump-video-modal {
    padding: 10px;
  }

  .rx-info-dialog,
  .dump-video-dialog {
    width: calc(100vw - 16px);
    border-radius: 20px;
  }

  .dump-video-toolbar {
    padding: 12px;
  }

  .flash-upgrade-dialog {
    width: calc(100vw - 16px);
    border-radius: 20px;
  }

  .flash-upgrade-head,
  .flash-upgrade-body,
  .flash-upgrade-actions {
    padding: 14px;
  }

  .flash-upgrade-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .flash-upgrade-mac-copy {
    grid-template-columns: 1fr;
  }

  .flash-upgrade-actions .secondary-button,
  .flash-upgrade-actions .accent-button {
    width: 100%;
  }

  .receipt-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }

  .receipt-toolbar,
  .receipt-actions {
    padding: 12px;
  }

  .receipt-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .receipt-scroll {
    padding: 10px;
  }

  .order-receipt {
    padding: 22px 18px 18px;
  }

  .receipt-head {
    display: grid;
  }

  .receipt-hero-art {
    display: none;
  }

  .receipt-brand img {
    width: 250px;
    max-width: 100%;
  }

  .order-receipt h3 {
    margin-top: 22px;
    font-size: 30px;
  }

  .order-receipt h1 {
    font-size: 34px;
  }

  .receipt-meta,
  .receipt-sound-grid {
    grid-template-columns: 1fr;
  }

  .receipt-address-line {
    display: grid;
  }

  .receipt-address-line strong {
    text-align: left;
  }

  .receipt-meta div + div {
    border-left: 0;
    border-top: 1px solid #d4d4d4;
  }

  .receipt-section-title span {
    width: 54px;
    height: 48px;
    font-size: 30px;
  }

  .receipt-section-title strong {
    min-height: 40px;
    padding: 0 14px;
    font-size: 19px;
  }

  .receipt-list,
  .receipt-sound-grid {
    padding: 30px 12px 12px;
  }

  .receipt-row,
  .receipt-sound-row {
    font-size: 17px;
  }

  .receipt-total-row span {
    font-size: 19px;
  }

  .receipt-total-row strong {
    font-size: 30px;
  }

  main {
    width: min(var(--max-width), calc(100vw - 18px));
    padding-top: 14px;
  }

  .hero-panel,
  .surface-card,
  .platform-card {
    border-radius: 22px;
  }

  .hero-panel {
    padding: 20px 18px 24px;
  }

  .release-pill {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-layout {
    margin-top: 18px;
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 74px);
    line-height: 0.98;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-stage {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-stage-title {
    font-size: 32px;
  }

  .hero-meta {
    margin-top: 14px;
    font-size: 13px;
  }

  .product-story-section {
    margin-top: 24px;
  }

  .product-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-media-main img {
    min-height: 0;
  }

  .product-story-points {
    gap: 10px;
  }

  .hero-actions,
  .toolbar-actions,
  .platform-actions,
  .action-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .toolbar-actions {
    display: grid;
  }

  .products-section,
  .listen-section,
  .toy-section,
  .flash-section,
  .platform-section {
    margin-top: 42px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-heading h2 {
    max-width: none;
    font-size: clamp(30px, 10vw, 44px);
    line-height: 0.96;
  }

  .section-copy {
    padding-top: 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .listen-layout,
  .toy-shop-layout {
    gap: 16px;
  }

  .listen-panel,
  .version-update-card,
  .flash-sound-panel,
  .flash-controller-panel,
  .flash-panel,
  .toy-market-panel,
  .side-card {
    padding: 18px;
  }

  .listen-panel-header {
    gap: 14px;
    margin-bottom: 16px;
  }

  .listen-vehicle-tabs {
    width: 100%;
    margin-bottom: 16px;
  }

  .flash-manual-header {
    gap: 14px;
    margin-bottom: 16px;
  }

  .excavator-preview-buttons,
  .flash-subtabs {
    grid-template-columns: 1fr;
  }

  .sound-row.flash-sound-row,
  .sound-row.excavator-sound-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .flash-sound-row .preview-button,
  .excavator-sound-row .preview-button {
    min-height: 44px;
    width: 100%;
  }

  .excavator-sound-volume {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .excavator-volume-line {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .excavator-mute-chip {
    width: 100%;
  }

  .listen-panel-header h3,
  .flash-manual-header h3,
  .controller-test-header h3,
  .toy-market-toolbar h3,
  .section-head-compact h3,
  .platform-card h3 {
    font-size: 24px;
  }

  .controller-profile-line,
  .controller-metric-head,
  .controller-metric-row {
    grid-template-columns: 1fr;
  }

  .controller-metric-head {
    display: none;
  }

  .controller-metric-row strong,
  .controller-metric-row em {
    text-align: left;
  }

  .controller-summary-grid,
  .controller-event-grid,
  .controller-light-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preset-block {
    gap: 8px;
  }

  .preset-counter {
    padding: 9px 14px;
    font-size: 13px;
  }

  .sound-rows {
    gap: 10px;
  }

  .sound-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .sound-label-title {
    font-size: 18px;
  }

  .sound-label-subtitle {
    font-size: 12px;
  }

  .sound-select,
  .preview-button,
  .mode-chip,
  select,
  input {
    min-height: 48px;
  }

  textarea {
    min-height: 128px;
  }

  .segmented-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .price-list {
    gap: 10px;
  }

  .price-item,
  .price-option,
  .price-summary-line,
  .price-total,
  .price-deposit {
    padding: 11px 12px;
    border-radius: 16px;
  }

  .price-total strong {
    font-size: 22px;
  }

  .field {
    gap: 6px;
  }

  .field span,
  .small-note,
  .panel-note {
    font-size: 13px;
  }

  .action-row {
    gap: 8px;
  }

  .contact-list {
    gap: 6px;
    margin-bottom: 14px;
  }

  .rx-info-grid {
    grid-template-columns: 1fr;
  }

  .platform-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px;
  }

  .site-footer-inner {
    width: min(100%, calc(100vw - 32px));
    padding: 48px 0 28px;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 42px;
  }
}

@media (max-width: 560px) {
  #home,
  #products,
  #listen,
  #pricing,
  #order,
  #toy-clearance,
  #downloads {
    scroll-margin-top: 124px;
  }

  .topbar-inner {
    width: 100%;
    padding-top: 10px;
    gap: 8px 10px;
  }

  .brand-mark {
    font-size: 20px;
    letter-spacing: 1px;
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .topnav {
    gap: 16px;
  }

  .topnav a {
    min-height: 32px;
    padding: 0;
    font-size: 13px;
  }

  .topbar-back-home {
    font-size: 13px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-block {
    max-width: none;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 14px 24px;
    white-space: normal;
  }

  .shop-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  main {
    width: calc(100vw - 12px);
    padding-top: 10px;
  }

  .hero-section {
    padding-top: 6px;
  }

  .hero-panel {
    padding: 16px 14px 18px;
  }

  .hero-copy h1 {
    font-size: 36px;
    letter-spacing: 0.4px;
  }

  .hero-text {
    font-size: 14px;
    margin-top: 10px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .primary-button,
  .ghost-button,
  .accent-button,
  .secondary-button,
  .shop-action-button,
  .platform-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 15px;
  }

  .hero-stage {
    display: none;
  }

  .product-story-heading {
    margin-bottom: 14px;
  }

  .product-story-layout {
    gap: 12px;
  }

  .product-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-story-points article {
    padding: 14px;
  }

  .product-story-points strong {
    font-size: 19px;
  }

  .product-story-points p {
    font-size: 14px;
  }

  .product-card-caption {
    position: static;
    margin: 0;
    border-radius: 0;
  }

  .product-list-grid {
    grid-template-columns: 1fr;
  }

  .product-catalog-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .product-catalog-media img {
    min-height: 0;
  }

  .product-catalog-body h3 {
    font-size: 27px;
  }

  .product-detail-panel {
    padding: 16px 14px;
    scroll-margin-top: 124px;
  }

  .product-detail-copy h2 {
    max-width: none;
    font-size: 34px;
  }

  .product-detail-lead {
    font-size: 15px;
  }

  .product-detail-grid,
  .product-image-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-detail-card {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 12px;
  }

  .product-detail-card h3,
  .product-use-copy h3 {
    font-size: 22px;
  }

  .product-detail-card p {
    font-size: 14px;
  }

  .product-use-copy {
    padding: 14px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .listen-panel,
  .flash-sound-panel,
  .flash-controller-panel,
  .flash-panel,
  .toy-market-panel,
  .side-card,
  .platform-card {
    padding: 16px 14px;
  }

  .platform-card p {
    font-size: 14px;
  }

  .listen-panel-header h3,
  .flash-manual-header h3,
  .controller-test-header h3,
  .toy-market-toolbar h3,
  .section-head-compact h3,
  .platform-card h3 {
    font-size: 22px;
  }

  .controller-test-actions,
  .controller-summary-grid,
  .controller-event-grid,
  .controller-light-grid {
    grid-template-columns: 1fr;
  }

  .controller-test-actions {
    display: grid;
    justify-content: stretch;
  }

  .controller-status-pill {
    max-width: none;
    justify-content: center;
  }

  .sound-row {
    padding: 12px;
  }

  .sound-label-title {
    font-size: 17px;
  }

  .sound-select,
  .preview-button,
  .mode-chip,
  select,
  input,
  textarea {
    border-radius: 16px;
  }

  .price-item,
  .price-option,
  .price-summary-line,
  .price-total,
  .price-deposit,
  .platform-meta {
    border-radius: 16px;
  }

  .board-version-choice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .board-version-choice em {
    grid-column: 2;
  }

  .price-total strong {
    font-size: 20px;
  }

  .platform-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 16px;
  }

  .platform-meta {
    grid-template-columns: 1fr;
  }

  .toy-product-grid {
    grid-template-columns: 1fr;
  }

  .toy-market-toolbar {
    gap: 12px;
  }

  .toy-cart-actions {
    grid-template-columns: 1fr;
  }

  .toy-product-footer {
    grid-template-columns: 1fr;
  }

  .toy-add-button {
    width: 100%;
  }

  .receipt-toolbar h2 {
    font-size: 18px;
  }

  .receipt-close-button {
    width: 40px;
    height: 40px;
  }

  .order-receipt {
    padding: 18px 12px 14px;
  }

  .receipt-brand img {
    width: 210px;
  }

  .order-receipt h3 {
    font-size: 25px;
  }

  .order-receipt h1 {
    font-size: 28px;
  }

  .receipt-row,
  .receipt-sound-row {
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
  }

  .receipt-payment-qr,
  .checkout-qr-box {
    grid-template-columns: 1fr;
  }

  .checkout-qr-media {
    max-width: 320px;
    margin: 0 auto;
  }

  .receipt-row strong,
  .receipt-sound-row strong {
    max-width: 54%;
  }

  .receipt-total-row {
    display: grid;
    justify-items: stretch;
  }

  .receipt-total-row strong {
    max-width: none;
    text-align: left;
    font-size: 28px;
  }
}

@media (max-width: 1180px) {
  .controller-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controller-console .controller-test-grid {
    grid-template-columns: 1fr;
  }

  .controller-console .controller-light-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .flash-controller-panel.controller-console {
    padding: 14px;
  }

  .controller-title-cluster {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .controller-mode-badge {
    justify-self: start;
    min-height: 40px;
  }

  .controller-dashboard-grid,
  .controller-console .controller-event-grid,
  .controller-console .controller-light-grid {
    grid-template-columns: 1fr;
  }

  .controller-gauge-card {
    min-height: auto;
    padding: 18px;
  }

  .controller-speed-layout {
    grid-template-columns: 84px minmax(120px, 1fr);
  }

  .controller-console .controller-metric-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .controller-console .controller-metric-row strong,
  .controller-console .controller-metric-row em {
    text-align: left;
  }

  .controller-console .controller-metric-head {
    display: none;
  }
}

@media (max-width: 520px) {
  .section-heading h2 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.02;
    text-wrap: wrap;
    word-break: break-word;
  }

  .flash-subtabs {
    grid-template-columns: 1fr;
  }

  .product-subtabs {
    grid-template-columns: 1fr;
  }

  .flash-subtab {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .product-subtab {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .controller-console .controller-test-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .controller-console .controller-status-pill,
  .controller-stop-button {
    width: 100%;
  }

  .controller-speed-layout {
    grid-template-columns: 1fr;
  }

  .controller-speed-ticks,
  .controller-rpm-ticks {
    gap: 6px;
    font-size: 11px;
  }

  .controller-speed-scale,
  .controller-rpm-scale {
    margin-left: 0;
  }

  .controller-console .controller-event-grid div,
  .controller-console .controller-light-grid div {
    padding-left: 68px;
  }

  .sound-card-slot {
    grid-template-columns: 1fr;
  }

  .sound-card-slot .sound-select-wrap,
  .sound-card-slot .preview-button,
  .sound-card-slot .control-button {
    grid-column: auto;
    grid-row: auto;
  }

  .sound-icon {
    width: 38px;
    height: 38px;
  }

  .flash-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .checkout-modal.is-open {
    place-items: start center;
  }

  .checkout-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: auto;
    align-self: start;
  }

  .checkout-summary-panel {
    border-left: 0;
    border-top: 1px solid #dde3ec;
  }

  .checkout-form-panel {
    padding: 28px 24px;
    overflow: visible;
  }

  .checkout-summary-panel {
    min-height: auto;
  }

  .checkout-summary-content {
    padding: 48px 16px 16px;
  }

  .checkout-summary-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .checkout-form-grid,
  .checkout-payment-grid,
  .checkout-address-grid {
    grid-template-columns: 1fr;
  }

  .checkout-form-panel {
    padding: 24px 16px;
  }

  .checkout-summary-head,
  .checkout-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .checkout-receipt-scroll {
    padding-left: 12px;
    padding-right: 12px;
  }

  .checkout-summary-content {
    padding: 46px 12px 14px;
  }

  .checkout-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .checkout-summary-row strong {
    text-align: left;
  }

  .receipt-preview-dialog {
    width: calc(100vw - 16px);
  }

  .receipt-preview-body {
    padding: 8px;
  }

  .receipt-preview-image {
    max-height: calc(100vh - 146px);
  }
}

/* Payment confirmation color pass */
.checkout-support-card {
  border-color: rgba(37, 99, 235, 0.55);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #1e88ff 0%, #1554c8 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.checkout-support-card::before {
  border-color: rgba(255, 255, 255, 0.92);
  background:
    #020617
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23fff' d='M18 54c.8-8.1 8.3-13.4 14-13.4S45.2 45.9 46 54c.1 1-.7 1.9-1.7 1.9H19.7c-1 0-1.8-.9-1.7-1.9Z'/%3E%3Cpath fill='%23fff' d='M23.3 25.4c0-6.8 4.6-11.5 8.7-11.5s8.7 4.7 8.7 11.5v5.1c0 7.2-4.4 12.8-8.7 12.8s-8.7-5.6-8.7-12.8v-5.1Z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='4.2' stroke-linecap='round' d='M15.5 31v-4.3C15.5 16.5 24 8.5 32 8.5s16.5 8 16.5 18.2V31'/%3E%3Crect width='8.5' height='12' x='10.5' y='28' fill='%23fff' rx='3'/%3E%3Crect width='8.5' height='12' x='45' y='28' fill='%23fff' rx='3'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round' d='M48.5 37c0 6-4.9 9.7-12.6 9.7'/%3E%3Crect width='12' height='7' x='27.8' y='43.2' fill='none' stroke='%23fff' stroke-width='4' rx='3.5'/%3E%3C/svg%3E")
    center / 76% 76% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 6px rgba(255, 255, 255, 0.12);
}

.checkout-support-card span,
.checkout-support-card strong,
.checkout-support-card small {
  color: #ffffff;
}

/* Mobile-first commerce shell */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(91, 160, 255, 0.9);
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-order-total,
.mobile-order-button,
.mobile-product-more-button {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --mobile-inline: 16px;
  }

  body {
    min-width: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-shell {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: calc(64px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .topbar-inner {
    width: 100%;
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
    padding: 10px var(--mobile-inline);
  }

  .brand-mark {
    grid-column: 1;
    max-width: 100%;
    overflow: hidden;
    font-size: 20px;
    letter-spacing: 1px;
    text-overflow: ellipsis;
  }

  .cart-nav-button,
  body.tabs-ready:not([data-active-tab="home"]) .cart-nav-button {
    display: inline-grid;
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 62;
    display: block;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topnav,
  body.tabs-ready:not([data-active-tab="home"]) .topnav {
    position: fixed;
    z-index: 60;
    top: calc(72px + env(safe-area-inset-top));
    right: var(--mobile-inline);
    left: var(--mobile-inline);
    display: none;
    max-height: calc(100dvh - 88px);
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(8, 11, 18, 0.98);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.58);
  }

  body.mobile-menu-open .topnav,
  body.tabs-ready.mobile-menu-open:not([data-active-tab="home"]) .topnav {
    display: grid;
  }

  .topnav a {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #d7deeb;
    font-size: 16px;
    line-height: 1.25;
    white-space: normal;
  }

  .topnav a.is-active {
    border-color: rgba(76, 142, 255, 0.5);
    color: #ffffff;
    background: rgba(46, 112, 255, 0.18);
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 45;
    inset: calc(64px + env(safe-area-inset-top)) 0 0;
    width: 100%;
    height: calc(100dvh - 64px - env(safe-area-inset-top));
    padding: 0;
    background: rgba(0, 0, 0, 0.64);
  }

  body.mobile-menu-open .mobile-menu-backdrop {
    display: block;
  }

  .topbar-back-home,
  body.tabs-ready:not([data-active-tab="home"]) .topbar-back-home {
    display: none;
  }

  main {
    width: 100%;
    min-width: 0;
    padding: 16px var(--mobile-inline) 36px;
  }

  main > .tab-panel,
  .products-section,
  .listen-section,
  .version-update-section,
  .toy-section,
  .flash-section,
  .platform-section {
    min-width: 0;
    margin-top: 0;
  }

  .hero-section {
    padding-top: 0;
  }

  .hero-panel {
    width: calc(100% + (var(--mobile-inline) * 2));
    min-height: 0;
    margin-left: calc(var(--mobile-inline) * -1);
    padding: 22px var(--mobile-inline) 24px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .hero-layout {
    margin-top: 8px;
    gap: 12px;
  }

  .hero-copy h1 {
    max-width: 290px;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0;
  }

  .hero-text {
    max-width: 34rem;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions > *,
  .section-inline-actions > * {
    width: 100%;
    min-height: 48px;
  }

  .hero-meta {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .mobile-product-more-button {
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 800;
    cursor: pointer;
  }

  .product-story-section {
    margin-top: 18px;
  }

  body.tabs-ready .mobile-product-more-button {
    display: inline-flex;
  }

  body.tabs-ready .product-story-section {
    display: none;
  }

  body.tabs-ready .product-story-section.is-mobile-expanded {
    display: block;
  }

  .section-heading,
  .listen-panel-header,
  .flash-manual-header,
  .toy-market-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .section-copy,
  .product-detail-lead,
  .product-story-points p,
  .product-detail-card p,
  .product-use-copy,
  .version-update-card > p,
  .platform-card p {
    font-size: 16px;
    line-height: 1.55;
  }

  .eyebrow,
  .micro-label,
  .small-note,
  .panel-note,
  .sound-label-subtitle {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-panel,
  .surface-card,
  .platform-card,
  .listen-panel,
  .version-update-card,
  .flash-sound-panel,
  .flash-controller-panel,
  .flash-panel,
  .toy-market-panel,
  .side-card,
  .product-media-card,
  .product-story-points article,
  .product-catalog-card,
  .product-detail-card,
  .product-use-copy,
  .product-note-box {
    border-radius: 8px;
  }

  .listen-layout,
  .version-update-layout,
  .toy-shop-layout,
  .flash-layout,
  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .listen-panel,
  .version-update-card,
  .flash-sound-panel,
  .flash-controller-panel,
  .flash-panel,
  .toy-market-panel,
  .side-card,
  .platform-card,
  .product-detail-panel {
    min-width: 0;
    padding: 16px 14px;
  }

  .listen-heading-side .listen-inline-actions .shop-zalo-button,
  .listen-heading-side .listen-inline-actions .shop-order-button {
    display: none;
  }

  .listen-inline-actions {
    grid-template-columns: 1fr;
  }

  .preset-block {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .preset-counter {
    justify-self: start;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
  }

  .compact-field,
  .compact-field select,
  .sound-select-wrap,
  .sound-select {
    width: 100%;
    min-width: 0;
  }

  .sound-rows {
    gap: 12px;
  }

  .sound-row,
  .sound-row.flash-sound-row,
  .sound-row.excavator-sound-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
  }

  .sound-row:has(.preview-button.is-playing) {
    border-color: rgba(34, 217, 111, 0.7);
    box-shadow: inset 3px 0 0 #22d96f;
  }

  .sound-label {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .sound-icon {
    width: 44px;
    height: 44px;
  }

  .sound-label-text,
  .sound-label-title,
  .sound-label-subtitle {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .sound-label-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .sound-select,
  .preview-button,
  .mode-chip,
  select,
  input,
  textarea,
  .primary-button,
  .ghost-button,
  .accent-button,
  .secondary-button,
  .shop-action-button,
  .platform-button,
  .price-order-button {
    min-height: 48px;
    border-radius: 8px;
    font-size: 16px;
  }

  .preview-button {
    width: 100%;
    min-width: 0;
  }

  .preview-button.is-playing {
    color: #06140d;
    background: #54e49a;
  }

  .excavator-sound-volume,
  .excavator-volume-line {
    min-width: 0;
  }

  .excavator-mute-chip {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
  }

  .segmented-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mode-chip {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    white-space: normal;
  }

  .mode-chip::after {
    color: #98a8bd;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
  }

  .mode-chip[data-rx-mode="PWM"]::after {
    content: "Từng kênh riêng";
  }

  .mode-chip[data-rx-mode="PPM"]::after {
    content: "Gộp trên 1 dây";
  }

  .mode-chip[data-rx-mode="I-BUS"]::after {
    content: "FlySky kỹ thuật số";
  }

  .mode-chip[data-rx-mode="S-BUS"]::after {
    content: "Futaba kỹ thuật số";
  }

  .mode-chip.is-active::after {
    color: #dce9ff;
  }

  .price-list,
  .price-summary {
    gap: 10px;
  }

  .price-item,
  .price-option,
  .price-summary-line,
  .price-total,
  .price-deposit,
  .board-version-choice,
  .toy-cart-summary,
  .toy-payment-box {
    min-width: 0;
    border-radius: 8px;
  }

  .price-item,
  .price-option,
  .price-summary-line,
  .price-total,
  .price-deposit {
    gap: 10px;
    padding: 13px 12px;
  }

  .board-version-choice {
    min-height: 68px;
  }

  .price-item > *,
  .price-option > *,
  .price-total > *,
  .price-deposit > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .price-total strong {
    font-size: 24px;
    line-height: 1.15;
  }

  .floating-cta {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px var(--mobile-inline) calc(8px + env(safe-area-inset-bottom));
    padding-right: max(var(--mobile-inline), env(safe-area-inset-right));
    padding-left: max(var(--mobile-inline), env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(7, 10, 16, 0.98);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
  }

  .floating-cta .zalo-button,
  .floating-cta .config-button {
    display: none;
  }

  .mobile-order-total {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
  }

  .mobile-order-total span {
    color: #aeb9ca;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-order-total strong {
    max-width: 100%;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-order-button {
    display: inline-flex;
    min-width: 124px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
  }

  body.receipt-open .floating-cta {
    display: none;
  }

  .field,
  .checkout-address-field {
    width: 100%;
    min-width: 0;
    gap: 7px;
  }

  .checkout-address-field {
    display: flex;
    flex-direction: column;
  }

  .field > span,
  .checkout-address-field > span,
  .checkout-block-label {
    display: block;
    color: #243247;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
  }

  .listen-panel .field > span,
  .toy-checkout-card .field > span {
    color: #d8e0ed;
  }

  .checkout-form-grid,
  .checkout-payment-grid,
  .checkout-address-grid,
  .toy-cart-actions,
  .action-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  input,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  textarea {
    min-height: 112px;
    resize: vertical;
  }

  .receipt-modal,
  .flash-upgrade-modal,
  .rx-info-modal,
  .dump-video-modal,
  .thank-you-modal {
    padding: 12px;
  }

  .receipt-dialog,
  .checkout-dialog,
  .receipt-preview-dialog,
  .flash-upgrade-dialog,
  .rx-info-dialog,
  .dump-video-dialog,
  .thank-you-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 8px;
  }

  .checkout-dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-bottom: 84px;
  }

  .checkout-form-panel {
    min-width: 0;
    padding: 22px 14px 18px;
    overflow: visible;
  }

  .checkout-form-header {
    padding-right: 44px;
  }

  .checkout-floating-close {
    position: fixed;
    z-index: 8;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .checkout-summary-panel {
    min-width: 0;
    min-height: 0;
    border-top: 1px solid #dce4ef;
    border-left: 0;
  }

  .checkout-summary-content {
    padding: 22px 12px 16px;
  }

  .checkout-summary-row,
  .checkout-price-summary-rows,
  .checkout-summary-rows {
    min-width: 0;
  }

  .checkout-price-summary-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-summary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px;
  }

  .checkout-summary-row strong {
    max-width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .receipt-actions,
  .checkout-actions,
  .flash-upgrade-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .receipt-close-button,
  .flash-toast-close,
  .inline-info-button {
    min-width: 44px;
    min-height: 44px;
  }

  button {
    min-height: 44px;
  }

  .order-receipt,
  .receipt-scroll,
  .receipt-preview-body {
    min-width: 0;
    max-width: 100%;
  }

  .receipt-row,
  .receipt-sound-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .receipt-row strong,
  .receipt-sound-row strong {
    max-width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .controller-metric-table,
  .controller-metric-row,
  .controller-event-grid,
  .controller-light-grid,
  .controller-summary-grid,
  .flash-info-list,
  .version-update-meta {
    min-width: 0;
    max-width: 100%;
  }

  .controller-metric-row,
  .flash-info-list div,
  .version-update-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-media-card img,
  .product-catalog-media img,
  .product-detail-main-image img,
  .product-detail-card img,
  .product-use-image img,
  .product-image-strip img,
  .receipt-preview-image {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 430px) {
  .section-heading h2 {
    font-size: 29px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .listen-panel,
  .version-update-card,
  .flash-sound-panel,
  .flash-controller-panel,
  .flash-panel,
  .toy-market-panel,
  .side-card,
  .platform-card,
  .product-detail-panel {
    padding: 14px 12px;
  }
}

@media (max-width: 360px) {
  :root {
    --mobile-inline: 14px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .hero-copy h1 {
    max-width: 260px;
    font-size: 32px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .mobile-order-button {
    min-width: 112px;
    padding: 0 14px;
  }

  .mobile-order-total strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle span,
  .topnav,
  .floating-cta {
    transition: none;
  }
}

.checkout-support-card small {
  opacity: 0.9;
}

.checkout-confirm-button:not(:disabled) {
  background: linear-gradient(135deg, #22c55e 0%, #059669 100%);
  box-shadow: 0 18px 38px rgba(5, 150, 105, 0.28);
}

.checkout-confirm-button:not(:disabled):hover,
.checkout-confirm-button:not(:disabled):focus-visible {
  filter: brightness(1.04);
  box-shadow: 0 20px 44px rgba(5, 150, 105, 0.36);
}
