/* Customer trade-only market interface styles loaded on demand */

.customer-market-screen .customer-price-grid-card {
  background: linear-gradient(150deg, rgba(9, 48, 44, 0.92), rgba(7, 32, 30, 0.88));
}

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

.customer-price-tile {
  border: 1px solid rgba(122, 197, 186, 0.3);
  border-radius: 14px;
  background: rgba(9, 39, 36, 0.84);
  overflow: hidden;
  padding: 0;
  text-align: inherit;
}

.customer-price-sell .customer-price-value {
  color: #edf4f1;
}

.customer-price-value {
  margin: 4px 0 0;
  min-height: 78px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 42px;
  font-weight: 600;
  color: #f0f7f4;
}

.customer-price-buy .customer-price-value {
  color: #d3b664;
}

.customer-trade-head {
  margin-bottom: 10px;
  align-items: flex-start;
  gap: 10px;
}

.customer-market-screen .customer-trade-head-copy {
  display: grid;
  gap: 3px;
}

.customer-trade-mode-toggle {
  margin-left: auto;
  border: 1px solid rgba(111, 198, 186, 0.34);
  border-radius: 999px;
  background: rgba(7, 33, 31, 0.66);
  padding: 3px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-width: 168px;
}

.customer-trade-mode-btn {
  border: 0;
  border-radius: 999px;
  min-height: 28px;
  padding: 0 10px;
  background: transparent;
  color: #b7d4ce;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.customer-trade-mode-btn.active {
  background: linear-gradient(145deg, rgba(210, 177, 93, 0.28), rgba(12, 53, 47, 0.82));
  color: #f6e9c0;
  box-shadow: 0 0 10px rgba(208, 177, 97, 0.22);
}

.customer-trade-helper-card {
  margin: 0 0 10px;
  border: 1px solid rgba(115, 206, 194, 0.34);
  border-radius: 12px;
  background: linear-gradient(148deg, rgba(8, 35, 40, 0.75), rgba(7, 29, 35, 0.74));
  padding: 10px;
  display: grid;
  gap: 5px;
}

.customer-trade-helper-title {
  margin: 0;
  color: #e9f5f1;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.customer-trade-helper-card p {
  margin: 0;
  color: #c8e0da;
  font-size: 13px;
  line-height: 1.38;
}

.customer-market-screen .customer-trade-step {
  display: grid;
  gap: 8px;
}

.customer-market-screen .customer-trade-step + .customer-trade-step {
  margin-top: 12px;
}

.customer-trade-step-label {
  margin: 0;
  color: #cde2dc;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-trade-step-help {
  margin: -2px 0 0;
  color: #9fc0ba;
  font-size: 12px;
  line-height: 1.35;
}

.customer-trade-side-grid {
  gap: 10px;
}

.customer-trade-side-tile {
  border: 1px solid rgba(90, 145, 137, 0.52);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(6, 28, 27, 0.94), rgba(4, 20, 19, 0.94));
  padding: 12px;
  display: grid;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(3, 15, 14, 0.72);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.customer-trade-side-tile:not(.active) {
  opacity: 0.8;
}

.customer-trade-side-tile:hover,
.customer-trade-side-tile:focus-visible {
  border-color: rgba(210, 177, 93, 0.58);
  box-shadow: 0 0 0 2px rgba(210, 177, 93, 0.2);
  outline: none;
}

.customer-trade-side-tile.active {
  opacity: 1;
  border-color: rgba(240, 205, 120, 0.9);
  background: linear-gradient(148deg, rgba(210, 177, 93, 0.34), rgba(14, 56, 50, 0.96));
  box-shadow:
    0 0 0 2px rgba(210, 177, 93, 0.32),
    0 12px 22px rgba(1, 9, 10, 0.34);
  transform: translateY(-1px);
}

.customer-trade-side-title {
  margin: 0;
  color: #e9f4f1;
  font-size: 15px;
  font-weight: 700;
}

.customer-trade-side-tile:not(.active) .customer-trade-side-title {
  color: #c7dad5;
}

.customer-trade-side-tile .customer-price-value {
  margin: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  gap: 6px;
  font-size: 32px;
  line-height: 1;
}

.customer-trade-side-tile:not(.active).customer-price-buy .customer-price-value {
  color: #9f8f5f;
}

.customer-trade-side-tile:not(.active).customer-price-sell .customer-price-value {
  color: #c3d3cf;
}

.customer-trade-side-tile.active.customer-price-buy .customer-price-value {
  color: #fff4cc;
}

.customer-trade-side-tile.active.customer-price-sell .customer-price-value {
  color: #cffff1;
}

.customer-price-unit {
  color: #bdd8d2;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.customer-trade-side-tile:not(.active) .customer-price-unit {
  color: #9cb7b1;
}

.customer-trade-side-tile.active .customer-price-unit {
  color: #f5e6b9;
}

.customer-trade-side-hint {
  margin: 0;
  color: #c8e0da;
  font-size: 13px;
}

.customer-trade-side-tile:not(.active) .customer-trade-side-hint {
  color: #90aba5;
}

.customer-trade-side-tile.active .customer-trade-side-hint {
  color: #f0e4bc;
}

.customer-trade-side-total {
  margin: 0;
  color: #f2e3b3;
  font-size: 13px;
  font-weight: 700;
}

.customer-trade-side-tile:not(.active) .customer-trade-side-total {
  color: #abc4be;
}

.customer-trade-side-tile.active .customer-trade-side-total {
  color: #fff1c2;
}

.customer-trade-side-unavailable {
  color: #9bb6b0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.customer-trade-side-indicative-price {
  color: #d9e6e2;
}

.customer-trade-side-source {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: #afc9c3;
}

.customer-trade-side-tile.active.customer-price-buy .customer-trade-side-source {
  color: #f6e7b9;
}

.customer-trade-side-tile.active.customer-price-sell .customer-trade-side-source {
  color: #bcf7ea;
}

.customer-trade-side-total-muted {
  color: #9ab5af;
  font-weight: 600;
}

.customer-price-action {
  border: 1px solid rgba(210, 177, 93, 0.52);
  width: 100%;
  min-height: 46px;
  background: linear-gradient(145deg, rgba(210, 177, 93, 0.26), rgba(12, 52, 47, 0.82));
  color: #f3e4b8;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 12px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.customer-price-action:hover:not(:disabled),
.customer-price-action:focus-visible:not(:disabled) {
  border-color: rgba(240, 205, 120, 0.7);
  background: linear-gradient(145deg, rgba(210, 177, 93, 0.34), rgba(11, 46, 42, 0.88));
  color: #fff4cf;
  outline: none;
}

.customer-price-action:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.customer-trade-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.customer-market-screen .customer-trade-product-control {
  display: grid;
  gap: 8px;
}


.customer-trade-qty-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.customer-trade-qty-pill {
  border: 1px solid rgba(112, 189, 179, 0.3);
  border-radius: 999px;
  background: rgba(8, 35, 33, 0.72);
  color: #cde3de;
  width: 100%;
  min-width: 0;
  min-height: 23px;
  padding: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-trade-qty-pill.active {
  border-color: rgba(210, 177, 93, 0.58);
  background: linear-gradient(145deg, rgba(210, 177, 93, 0.2), rgba(12, 56, 50, 0.78));
  color: #f2e3b2;
}

.customer-trade-review {
  border-top: 1px solid rgba(112, 189, 179, 0.24);
  padding-top: 12px;
  border-radius: 12px;
  background: rgba(7, 31, 29, 0.42);
  padding-inline: 10px;
  padding-bottom: 10px;
}

.customer-market-screen .customer-trade-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.customer-market-screen .customer-trade-review-grid p {
  margin: 0;
  color: #d6e9e4;
  font-size: 13px;
}

.customer-trade-submit {
  margin-top: 4px;
}

.customer-market-screen .customer-trade-submit-wrap {
  margin-top: 4px;
}

.customer-trade-submit-sticky {
  box-shadow:
    0 0 0 1px rgba(210, 177, 93, 0.22),
    0 0 20px rgba(180, 153, 82, 0.22);
}

.customer-trade-advanced-toggle-row {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.customer-trade-advanced-toggle {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.customer-market-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.customer-market-metrics p {
  margin: 0;
  color: #d0e7e1;
  font-size: 13px;
}

.customer-chart-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(80, 255, 229, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 207, 108, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(5, 24, 36, 0.96), rgba(3, 16, 26, 0.96));
  border: 1px solid rgba(88, 245, 223, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(220, 255, 250, 0.06),
    0 0 28px rgba(34, 198, 173, 0.12);
}

.customer-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-chart-kicker {
  margin: 0 0 6px;
  color: rgba(142, 246, 228, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.customer-chart-head h4 {
  margin: 0;
  font-size: 22px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: #f0fffb;
}

.customer-chart-subtitle {
  margin: 6px 0 0;
  max-width: 520px;
  color: #9ec8c0;
  font-size: 13px;
  line-height: 1.45;
}

.customer-chart-meta {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.customer-chart-meta p {
  margin: 0;
  color: #c8e0da;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.customer-chart-meta small {
  color: rgba(155, 211, 201, 0.84);
  font-size: 12px;
  line-height: 1.35;
}

.customer-chart-state {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(115, 192, 181, 0.42);
  background: rgba(8, 33, 31, 0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.customer-chart-state.is-live {
  border-color: rgba(132, 214, 180, 0.72);
  background: rgba(23, 90, 62, 0.62);
  color: #e9fff2;
}

.customer-chart-state.is-paused {
  border-color: rgba(241, 167, 167, 0.72);
  background: rgba(106, 34, 44, 0.62);
  color: #ffe7e9;
}

.customer-chart-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.customer-chart-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-chart-range-btn {
  border: 1px solid rgba(80, 194, 177, 0.3);
  border-radius: 999px;
  background: rgba(6, 24, 32, 0.74);
  color: #c9ede6;
  min-height: 32px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.customer-chart-range-btn:hover,
.customer-chart-range-btn:focus-visible {
  border-color: rgba(96, 237, 215, 0.56);
  background: rgba(7, 33, 45, 0.9);
  color: #f2fffd;
  box-shadow: 0 0 0 2px rgba(73, 216, 193, 0.12);
  outline: none;
}

.customer-chart-range-btn.active {
  border-color: rgba(255, 207, 108, 0.72);
  background: linear-gradient(145deg, rgba(12, 48, 63, 0.92), rgba(7, 28, 41, 0.9));
  color: #fff2cf;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px rgba(255, 207, 108, 0.14);
}

.customer-chart-focus {
  min-width: 220px;
  border: 1px solid rgba(84, 198, 184, 0.24);
  border-radius: 18px;
  background: rgba(5, 19, 29, 0.8);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(220, 255, 250, 0.04);
}

.customer-chart-focus p {
  margin: 0;
}

.customer-chart-focus-value {
  color: #f1fffb;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.customer-chart-focus-value span {
  color: #9dd3ca;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.customer-chart-focus-time {
  margin-top: 6px;
  color: #aadad2;
  font-size: 12px;
}

.customer-chart-focus-delta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}

.customer-chart-focus-delta.is-up {
  color: #87ffd5;
}

.customer-chart-focus-delta.is-down {
  color: #ff9c9c;
}

.customer-chart-focus-delta.is-flat {
  color: #dbeeed;
}

.customer-chart-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.customer-chart-stat {
  border: 1px solid rgba(85, 196, 181, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 25, 37, 0.9), rgba(3, 15, 25, 0.92));
  padding: 14px;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.customer-chart-stat small,
.customer-chart-stat span {
  color: #8ebcb5;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-chart-stat strong {
  color: #f0fffb;
  font-size: 18px;
  line-height: 1.2;
}

.customer-chart-stat.is-up strong {
  color: #90ffdb;
}

.customer-chart-stat.is-down strong {
  color: #ff9d9d;
}

.customer-chart-stage {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.customer-chart-axis {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.customer-chart-axis-label {
  color: rgba(154, 214, 204, 0.84);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.customer-chart-board {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(76, 188, 172, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(72, 255, 229, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(6, 24, 35, 0.96), rgba(3, 12, 20, 0.98));
  padding: 14px 14px 34px;
  overflow: hidden;
  cursor: crosshair;
  box-shadow:
    inset 0 0 0 1px rgba(76, 188, 172, 0.1),
    0 0 28px rgba(37, 177, 157, 0.12);
}

.customer-chart-board svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.customer-chart-loading,
.customer-chart-empty {
  position: absolute;
  inset: 14px 14px 34px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #bfe7de;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
}

.customer-chart-loading {
  background: rgba(4, 18, 28, 0.58);
  backdrop-filter: blur(2px);
  z-index: 2;
}

.customer-chart-empty {
  background: rgba(4, 18, 28, 0.52);
}

.customer-chart-grid line {
  stroke: rgba(130, 211, 200, 0.16);
  stroke-width: 0.36;
}

.customer-chart-area {
  fill: url(#trade-chart-area);
}

.customer-chart-line {
  fill: none;
  stroke: url(#trade-chart-line);
  stroke-width: 1.22;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(88, 245, 223, 0.22));
}

.customer-chart-crosshair {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 0.34;
  stroke-dasharray: 1.6 1.6;
}

.customer-chart-dot {
  fill: #f4fffd;
  stroke: #58f5df;
  stroke-width: 0.5;
  filter: drop-shadow(0 0 8px rgba(88, 245, 223, 0.42));
}

.customer-chart-labels {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 20px;
}

.customer-chart-time {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1.2;
  color: rgba(177, 221, 214, 0.9);
  white-space: nowrap;
}

.customer-chart-time.is-first {
  transform: translateX(0);
}

.customer-chart-time.is-last {
  transform: translateX(-100%);
  text-align: right;
}

.customer-trade-neon {
  position: relative;
  isolation: isolate;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.customer-market-screen.customer-trade-neon::before,
.customer-market-screen.customer-trade-neon::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
}

.customer-market-screen.customer-trade-neon::before {
  top: 22px;
  left: -52px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(86, 240, 216, 0.28), transparent 72%);
  filter: blur(2px);
}

.customer-market-screen.customer-trade-neon::after {
  right: -58px;
  top: 290px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(244, 206, 119, 0.22), transparent 72%);
  filter: blur(2px);
}

.customer-market-screen.customer-trade-neon .customer-card {
  border-color: rgba(117, 237, 219, 0.58);
  background:
    radial-gradient(circle at 11% 0%, rgba(79, 236, 209, 0.16), transparent 45%),
    radial-gradient(circle at 89% 100%, rgba(247, 207, 118, 0.11), transparent 48%),
    linear-gradient(150deg, rgba(5, 28, 37, 0.96), rgba(4, 20, 29, 0.95) 56%, rgba(5, 27, 24, 0.93));
  box-shadow:
    0 0 0 1px rgba(92, 203, 185, 0.22),
    0 0 28px rgba(39, 192, 169, 0.17),
    0 20px 34px rgba(1, 8, 12, 0.44),
    inset 0 1px 0 rgba(163, 244, 232, 0.12);
}

.customer-market-screen.customer-trade-neon .customer-hero-card {
  border-color: rgba(123, 246, 228, 0.72);
  background:
    radial-gradient(circle at 76% 16%, rgba(102, 247, 223, 0.2), transparent 36%),
    linear-gradient(152deg, rgba(6, 44, 60, 0.95), rgba(6, 28, 39, 0.94) 56%, rgba(6, 36, 32, 0.9));
  box-shadow:
    0 0 0 1px rgba(94, 219, 200, 0.28),
    0 0 30px rgba(53, 226, 201, 0.2),
    0 18px 32px rgba(2, 9, 14, 0.44),
    inset 0 1px 0 rgba(178, 246, 237, 0.14);
}

.customer-trade-neon .customer-hero-top h3 {
  text-shadow: 0 0 16px rgba(165, 244, 233, 0.26);
}

.customer-trade-neon .customer-hero-holdings strong {
  text-shadow: 0 0 14px rgba(245, 214, 142, 0.34);
}

.customer-market-screen.customer-trade-neon .customer-price-grid-card {
  border-color: rgba(116, 238, 220, 0.62);
  box-shadow:
    0 0 0 1px rgba(83, 205, 186, 0.26),
    0 0 32px rgba(36, 196, 172, 0.2),
    0 22px 34px rgba(1, 8, 12, 0.44),
    inset 0 1px 0 rgba(169, 244, 233, 0.12);
}

.customer-trade-neon .customer-chart-card,
.customer-trade-neon .customer-trade-orders-card {
  border-color: rgba(112, 232, 216, 0.6);
  box-shadow:
    0 0 0 1px rgba(83, 199, 183, 0.22),
    0 0 24px rgba(36, 184, 164, 0.16),
    0 18px 30px rgba(1, 7, 11, 0.42),
    inset 0 1px 0 rgba(166, 237, 227, 0.1);
}

.customer-market-screen.customer-trade-neon .customer-trade-step {
  border: 1px solid rgba(100, 214, 200, 0.34);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(148deg, rgba(6, 32, 44, 0.74), rgba(5, 24, 34, 0.72));
  box-shadow: inset 0 1px 0 rgba(156, 236, 225, 0.08);
}

.customer-market-screen.customer-trade-neon .customer-trade-step + .customer-trade-step {
  margin-top: 10px;
}

.customer-trade-neon .customer-trade-step-label {
  color: #d8eeea;
}

.customer-trade-neon .customer-trade-step-help {
  color: #b6d7d2;
}

.customer-trade-neon .customer-trade-review {
  border-top: 0;
  background: linear-gradient(150deg, rgba(7, 33, 43, 0.82), rgba(6, 24, 32, 0.76));
}

.customer-market-screen.customer-trade-neon .customer-trade-side-tile {
  border-color: rgba(100, 191, 180, 0.62);
  background: linear-gradient(146deg, rgba(7, 32, 41, 0.9), rgba(5, 22, 30, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(5, 20, 26, 0.76),
    0 0 0 1px rgba(73, 168, 156, 0.16);
}

.customer-market-screen.customer-trade-neon .customer-trade-side-tile:hover,
.customer-market-screen.customer-trade-neon .customer-trade-side-tile:focus-visible {
  border-color: rgba(124, 241, 223, 0.76);
  box-shadow:
    0 0 0 1px rgba(124, 241, 223, 0.26),
    0 0 18px rgba(78, 224, 203, 0.22);
}

.customer-market-screen.customer-trade-neon .customer-trade-side-tile.active.customer-price-buy {
  border-color: rgba(246, 212, 123, 0.94);
  background: linear-gradient(145deg, rgba(179, 139, 54, 0.35), rgba(10, 43, 50, 0.94));
  box-shadow:
    0 0 0 1px rgba(244, 209, 117, 0.3),
    0 0 24px rgba(243, 202, 99, 0.26),
    0 12px 20px rgba(1, 8, 11, 0.4);
}

.customer-market-screen.customer-trade-neon .customer-trade-side-tile.active.customer-price-sell {
  border-color: rgba(120, 241, 221, 0.92);
  background: linear-gradient(145deg, rgba(52, 165, 145, 0.34), rgba(8, 39, 47, 0.94));
  box-shadow:
    0 0 0 1px rgba(121, 241, 222, 0.3),
    0 0 24px rgba(88, 227, 205, 0.24),
    0 12px 20px rgba(1, 8, 11, 0.4);
}

.customer-market-screen.customer-trade-neon .customer-product-search-wrap,
.customer-market-screen.customer-trade-neon .customer-card input,
.customer-market-screen.customer-trade-neon .customer-card select,
.customer-market-screen.customer-trade-neon .customer-card textarea,
.customer-market-screen.customer-trade-neon .customer-trade-qty-shell {
  border-color: rgba(106, 216, 202, 0.46);
  background: rgba(5, 25, 34, 0.92);
}

.customer-market-screen.customer-trade-neon .customer-product-thumb {
  border-color: rgba(103, 198, 186, 0.44);
  background: rgba(6, 28, 37, 0.82);
}

.customer-market-screen.customer-trade-neon .customer-product-thumb:hover,
.customer-market-screen.customer-trade-neon .customer-product-thumb:focus-visible {
  border-color: rgba(122, 237, 220, 0.76);
  background: rgba(9, 36, 45, 0.9);
  box-shadow:
    0 0 0 1px rgba(118, 235, 218, 0.22),
    0 0 16px rgba(86, 225, 205, 0.2);
}

.customer-market-screen.customer-trade-neon .customer-product-thumb.active {
  border-color: rgba(243, 209, 119, 0.7);
  background: linear-gradient(146deg, rgba(153, 118, 46, 0.24), rgba(9, 38, 45, 0.9));
  box-shadow:
    0 0 0 1px rgba(243, 209, 119, 0.18),
    0 0 14px rgba(232, 190, 84, 0.18);
}

.customer-trade-neon .customer-trade-qty-pill {
  border-color: rgba(101, 201, 188, 0.46);
  background: rgba(6, 29, 37, 0.8);
}

.customer-trade-neon .customer-trade-qty-pill.active {
  border-color: rgba(246, 213, 126, 0.74);
  background: linear-gradient(144deg, rgba(183, 143, 56, 0.3), rgba(9, 38, 44, 0.86));
  box-shadow: 0 0 14px rgba(245, 208, 117, 0.16);
}

.customer-market-screen.customer-trade-neon .customer-price-action {
  border-color: rgba(119, 236, 219, 0.62);
  background: linear-gradient(145deg, rgba(58, 186, 165, 0.32), rgba(8, 35, 43, 0.9));
  color: #dcfff6;
  box-shadow:
    0 0 0 1px rgba(113, 233, 215, 0.24),
    0 0 18px rgba(72, 219, 198, 0.24);
}

.customer-market-screen.customer-trade-neon .customer-price-action:hover:not(:disabled),
.customer-market-screen.customer-trade-neon .customer-price-action:focus-visible:not(:disabled) {
  border-color: rgba(141, 245, 230, 0.86);
  background: linear-gradient(145deg, rgba(76, 204, 184, 0.4), rgba(9, 39, 48, 0.95));
  color: #f0fffa;
  box-shadow:
    0 0 0 1px rgba(138, 244, 228, 0.28),
    0 0 22px rgba(96, 229, 210, 0.28);
}

.customer-trade-neon .customer-trade-mode-toggle {
  border-color: rgba(111, 215, 201, 0.4);
  background: rgba(5, 28, 36, 0.82);
}

.customer-trade-neon .customer-trade-mode-btn.active {
  background: linear-gradient(145deg, rgba(115, 229, 211, 0.3), rgba(12, 43, 49, 0.88));
  color: #ddfff7;
  box-shadow: 0 0 12px rgba(100, 228, 208, 0.22);
}

.customer-trade-neon .customer-trade-helper-card {
  border-color: rgba(112, 226, 211, 0.44);
  background:
    radial-gradient(circle at 92% 8%, rgba(240, 202, 108, 0.11), transparent 44%),
    linear-gradient(148deg, rgba(7, 34, 44, 0.8), rgba(5, 25, 33, 0.78));
}

.customer-trade-neon .customer-trade-advanced-toggle {
  border-color: rgba(103, 220, 204, 0.56);
  background: linear-gradient(145deg, rgba(32, 132, 118, 0.22), rgba(7, 32, 40, 0.84));
  color: #c8f6ec;
}

.customer-trade-neon .customer-trade-advanced-toggle:hover,
.customer-trade-neon .customer-trade-advanced-toggle:focus-visible {
  border-color: rgba(132, 239, 223, 0.78);
  background: linear-gradient(145deg, rgba(57, 164, 148, 0.3), rgba(9, 37, 45, 0.9));
  color: #ecfffa;
}

.customer-trade-neon .customer-market-metrics p {
  color: #d8f0eb;
}

.customer-trade-neon .customer-chart-card {
  border-color: rgba(94, 237, 215, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(232, 255, 250, 0.06),
    0 0 40px rgba(36, 186, 164, 0.16);
}

.customer-trade-neon .customer-chart-range-btn {
  border-color: rgba(93, 224, 206, 0.34);
  background: rgba(5, 24, 34, 0.82);
}

.customer-trade-neon .customer-chart-range-btn.active {
  border-color: rgba(255, 209, 116, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(255, 207, 108, 0.16);
}

.customer-trade-neon .customer-chart-focus,
.customer-trade-neon .customer-chart-stat {
  border-color: rgba(97, 220, 205, 0.26);
  background:
    linear-gradient(180deg, rgba(6, 25, 37, 0.92), rgba(3, 13, 21, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 16px rgba(38, 176, 157, 0.08);
}

.customer-trade-neon .customer-chart-board {
  border-color: rgba(103, 224, 211, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(90, 201, 186, 0.12),
    0 0 36px rgba(32, 171, 151, 0.16);
}

.customer-trade-neon .customer-chart-grid line {
  stroke: rgba(147, 231, 218, 0.18);
}

.customer-trade-neon .customer-chart-line {
  filter: drop-shadow(0 0 14px rgba(88, 245, 223, 0.26));
}

.customer-trade-neon .customer-chart-dot {
  filter: drop-shadow(0 0 12px rgba(88, 245, 223, 0.46));
}

.customer-market-screen.customer-trade-neon .customer-order-item {
  border-color: rgba(102, 206, 192, 0.42);
  background: linear-gradient(146deg, rgba(6, 30, 40, 0.8), rgba(4, 21, 29, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(160, 237, 226, 0.08),
    0 0 14px rgba(39, 176, 157, 0.14);
}

.customer-trade-neon .customer-order-value {
  color: #eaf8f4;
}

.customer-trade-neon .customer-order-kpi {
  border-color: rgba(104, 207, 194, 0.38);
  background: rgba(6, 28, 36, 0.74);
}

.customer-market-screen.customer-trade-neon .customer-trade-confirm-dialog {
  border-color: rgba(118, 232, 216, 0.6);
  background:
    radial-gradient(circle at 10% 0%, rgba(71, 222, 199, 0.15), transparent 40%),
    linear-gradient(165deg, rgba(7, 34, 46, 0.98), rgba(6, 24, 33, 0.96));
  box-shadow:
    0 0 0 1px rgba(102, 216, 201, 0.24),
    0 0 26px rgba(58, 197, 177, 0.22),
    0 24px 44px rgba(0, 0, 0, 0.46);
}


@media (max-width: 920px) {
  .customer-market-screen .customer-trade-submit-wrap.is-simple {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
    z-index: 46;
    padding-top: 8px;
  }
}

@media (min-width: 921px) {
  .customer-market-screen .customer-trade-submit-wrap.is-simple {
    position: static;
    bottom: auto;
    z-index: auto;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .customer-trade-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .customer-trade-mode-toggle {
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }

  .customer-market-screen .customer-trade-submit-wrap.is-simple {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  }

  .customer-market-screen.customer-trade-neon::before,
  .customer-market-screen.customer-trade-neon::after {
    opacity: 0.56;
  }

  .customer-market-screen.customer-trade-neon .customer-card {
    box-shadow:
      0 0 0 1px rgba(92, 203, 185, 0.2),
      0 0 20px rgba(39, 192, 169, 0.14),
      0 16px 28px rgba(1, 8, 12, 0.42),
      inset 0 1px 0 rgba(163, 244, 232, 0.1);
  }

  .customer-market-screen.customer-trade-neon .customer-trade-step {
    padding: 9px;
  }

  .customer-price-action {
    min-height: 42px;
    font-size: 16px;
  }

  .customer-trade-side-tile {
    padding: 10px;
    gap: 4px;
  }

  .customer-trade-side-tile .customer-price-value {
    font-size: 26px;
  }

  .customer-trade-step-label {
    font-size: 12px;
  }

  .customer-market-metrics {
    grid-template-columns: 1fr;
  }

  .customer-trade-controls {
    grid-template-columns: 1fr;
  }

  .customer-market-screen .customer-trade-review-grid {
    grid-template-columns: 1fr;
  }

  .customer-market-screen .customer-trade-confirm-grid {
    grid-template-columns: 1fr;
  }

  .customer-market-screen .customer-trade-quantity-control {
    width: 100%;
    justify-self: stretch;
  }

  .customer-trade-qty-pill {
    min-height: 23px;
    font-size: 14px;
  }

  .customer-chart-meta {
    margin-left: 0;
    width: 100%;
    justify-items: start;
  }

  .customer-chart-meta p,
  .customer-chart-meta small {
    white-space: normal;
  }

  .customer-chart-toolbar {
    gap: 10px;
  }

  .customer-chart-focus {
    width: 100%;
    min-width: 0;
  }

  .customer-chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-chart-stage {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-chart-axis {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }

  .customer-chart-board {
    min-height: 220px;
  }

  .customer-chart-time {
    font-size: 11px;
  }
}

/* Unified market hard override */
.customer-market-screen .customer-price-grid-card,
.customer-price-tile,
.customer-chart-board,
.customer-chart-stage,
.customer-chart-stats > *,
.customer-trade-helper-card,
.customer-trade-side-tile,
.customer-trade-mode-toggle,
.customer-trade-advanced-toggle {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-card-gradient);
}

.customer-market-screen .customer-price-grid-card {
  background: var(--belora-theme-hero-gradient);
}

.customer-chart-meta p,
.customer-chart-meta small,
.customer-chart-axis,
.customer-chart-time,
.customer-trade-step-label,
.customer-trade-step-help,
.customer-trade-helper-card p,
.customer-trade-side-hint,
.customer-price-unit {
  color: var(--belora-theme-text-muted);
}

.customer-chart-value,
.customer-chart-stats strong,
.customer-trade-helper-title,
.customer-trade-side-title,
.customer-price-value,
.customer-trade-side-total {
  color: var(--belora-theme-text);
}

.customer-price-buy .customer-price-value,
.customer-trade-side-tile.active.customer-price-buy .customer-price-value,
.customer-trade-side-tile.active .customer-price-unit,
.customer-trade-side-tile.active .customer-trade-side-hint,
.customer-trade-side-tile.active .customer-trade-side-total {
  color: var(--belora-theme-text-strong);
}

.customer-trade-mode-btn,
.customer-trade-advanced-toggle {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-chip-gradient);
  color: var(--belora-theme-text);
}

.customer-trade-mode-btn.active,
.customer-trade-side-tile.active,
.customer-trade-advanced-toggle.active {
  border-color: var(--belora-theme-border-strong);
  background: var(--belora-theme-chip-active-gradient);
  color: var(--belora-theme-text-strong);
}


/* Light mode normalization for neon customer trade surfaces */
body.theme-light .customer-market-screen.customer-trade-neon .customer-card,
body.theme-light .customer-market-screen.customer-trade-neon .customer-chart-card,
body.theme-light .customer-market-screen.customer-trade-neon .customer-trade-orders-card,
body.theme-light .customer-market-screen.customer-trade-neon .customer-trade-confirm-dialog {
  border-color: var(--belora-theme-border);
  background: var(--belora-theme-shell-gradient);
  box-shadow:
    var(--belora-theme-shadow),
    inset 0 1px 0 rgba(190, 255, 243, 0.05);
}

body.theme-light .customer-market-screen.customer-trade-neon .customer-hero-card,
body.theme-light .customer-market-screen.customer-trade-neon .customer-price-grid-card {
  background: var(--belora-theme-hero-gradient);
}

body.theme-light .customer-market-screen.customer-trade-neon :is(
  .customer-trade-step,
  .customer-trade-review,
  .customer-trade-side-tile,
  .customer-product-search-wrap,
  .customer-trade-qty-shell,
  .customer-product-thumb,
  .customer-trade-qty-pill,
  .customer-trade-mode-toggle,
  .customer-trade-helper-card,
  .customer-chart-range-btn,
  .customer-chart-focus,
  .customer-chart-stat,
  .customer-order-item,
  .customer-order-kpi
) {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-card-gradient);
  box-shadow: inset 0 1px 0 rgba(190, 255, 243, 0.04);
}

body.theme-light .customer-market-screen.customer-trade-neon :is(
  .customer-card input,
  .customer-card select,
  .customer-card textarea
) {
  border-color: var(--belora-theme-border-soft);
  background: var(--belora-theme-input-bg);
  color: var(--belora-theme-text);
}

body.theme-light .customer-market-screen.customer-trade-neon .customer-card input::placeholder,
body.theme-light .customer-market-screen.customer-trade-neon .customer-card textarea::placeholder {
  color: var(--app-placeholder-color);
}

body.theme-light .customer-market-screen.customer-trade-neon :is(
  .customer-trade-step-label,
  .customer-trade-step-help,
  .customer-market-metrics p
) {
  color: var(--belora-theme-text-muted);
}

body.theme-light .customer-market-screen.customer-trade-neon .customer-order-value {
  color: var(--belora-theme-text);
}

body.theme-light .customer-market-screen.customer-trade-neon :is(
  .customer-product-thumb:hover,
  .customer-product-thumb:focus-visible,
  .customer-chart-range-btn:hover,
  .customer-chart-range-btn:focus-visible,
  .customer-trade-side-tile:hover,
  .customer-trade-side-tile:focus-visible,
  .customer-trade-qty-pill:hover,
  .customer-trade-qty-pill:focus-visible
) {
  border-color: var(--belora-theme-border-strong);
  background: var(--app-chip-hover-bg);
  box-shadow: 0 0 0 1px rgba(111, 248, 255, 0.08), 0 0 18px rgba(103, 245, 255, 0.08);
}

body.theme-light .customer-market-screen.customer-trade-neon :is(
  .customer-product-thumb.active,
  .customer-trade-qty-pill.active,
  .customer-trade-side-tile.active.customer-price-buy,
  .customer-trade-side-tile.active.customer-price-sell
) {
  border-color: var(--belora-theme-border-strong);
  background: var(--belora-theme-chip-active-gradient);
  box-shadow: 0 0 0 1px rgba(111, 248, 255, 0.1), 0 0 20px rgba(103, 245, 255, 0.1);
}

body.theme-light .customer-market-screen.customer-trade-neon .customer-price-action {
  border-color: var(--app-primary-button-border);
  background: var(--app-accent-gradient);
  color: var(--app-accent-contrast);
  box-shadow:
    0 14px 28px rgba(28, 44, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-light .customer-market-screen.customer-trade-neon .customer-price-action:hover:not(:disabled),
body.theme-light .customer-market-screen.customer-trade-neon .customer-price-action:focus-visible:not(:disabled) {
  border-color: var(--app-primary-button-hover-border);
  background: var(--belora-theme-chip-active-gradient);
  color: var(--belora-theme-text-strong);
  box-shadow: 0 0 0 1px rgba(111, 248, 255, 0.1), 0 0 24px rgba(103, 245, 255, 0.1);
}

body.theme-light .customer-market-screen.customer-trade-neon .customer-chart-board {
  box-shadow:
    inset 0 0 0 1px rgba(15, 92, 88, 0.08),
    0 0 28px rgba(15, 92, 88, 0.08);
}
