/* ==========================================================================
   STEMMER MARKETS - SPORTS EVENT TRADING PAGE (MLB GAME 5)
   Clean, Refined Sports Market Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Layout & Responsive Container Grid
   -------------------------------------------------------------------------- */
.event-page-container {
  max-width: var(--container-max-width, 1240px);
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1080px) {
  .event-page-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 14px 16px 100px;
  }
}

.event-main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-sidebar-column {
  position: sticky;
  top: calc(var(--header-height, 64px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 1080px) {
  .event-sidebar-column {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   2. Breadcrumbs & Top Action Bar (Compact & Refined)
   -------------------------------------------------------------------------- */
.event-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.event-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #71717a;
}

.event-breadcrumbs a {
  color: #71717a;
  transition: color 0.15s ease;
}

.event-breadcrumbs a:hover {
  color: #09090b;
}

.event-breadcrumbs .dot-separator {
  color: #a1a1aa;
  font-size: 10px;
}

.event-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-main-title {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #09090b;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
}

/* Bare Icon Buttons for Link & Share (Image 1 top right) */
.event-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 2px;
}

.btn-bare-action {
  border: none;
  background: transparent;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.btn-bare-action:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   3. Open Matchup Banner (Compact & Clean)
   -------------------------------------------------------------------------- */
.event-matchup-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6% 14px;
  background-color: transparent;
  gap: 16px;
  border-bottom: 1px solid #f4f4f5;
}

.team-block-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.team-block-clean:hover {
  transform: scale(1.04);
}

.team-clean-logo-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-clean-logo {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

.team-clean-name-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.15;
  text-align: center;
}

.match-schedule-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.match-schedule-center .sched-date {
  font-size: 13.5px;
  font-weight: 700;
  color: #09090b;
}

.match-schedule-center .sched-time {
  font-size: 11.5px;
  font-weight: 500;
  color: #71717a;
}

/* --------------------------------------------------------------------------
   4. Sticky Matchup Capsule on Scroll (Centered in Left Container, Below Header)
   -------------------------------------------------------------------------- */
.sticky-matchup-capsule {
  position: fixed;
  top: 175px;
  left: 35%;
  transform: translate(-50%, -16px);
  background-color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 850;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
}

.sticky-matchup-capsule.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.capsule-team-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.capsule-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.capsule-team-title {
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
}

.capsule-schedule-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.capsule-sched-date {
  font-size: 12.5px;
  font-weight: 700;
  color: #09090b;
  white-space: nowrap;
}

.capsule-sched-time {
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Interactive Probability Chart Area
   -------------------------------------------------------------------------- */
.chart-card-wrapper {
  
  border-radius: 12px;
  padding: 10px 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.chart-viewport-box {
  width: 100%;
  height: 235px;
  position: relative;
  user-select: none;
}

.chart-svg-canvas {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: #f4f4f5;
  stroke-dasharray: 2 3;
  stroke-width: 1;
}

.chart-axis-label {
  font-size: 10.5px;
  font-weight: 500;
  fill: #71717a;
  font-family: var(--font-sans);
}

.chart-line-guardians {
  fill: none;
  stroke: #F60017;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  transition: d 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-line-rays {
  fill: none;
  stroke: #6A96BE;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  transition: d 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-line-whitesox {
  fill: none;
  stroke: #868FA8;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  transition: d 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-point-guardians {
  fill: #F60017;
  stroke: #ffffff;
  stroke-width: 2.5;
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(246, 0, 23, 0.4));
}

.chart-point-rays {
  fill: #6A96BE;
  stroke: #ffffff;
  stroke-width: 2.5;
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(106, 150, 190, 0.4));
}

.chart-point-whitesox {
  fill: #78829d;
  stroke: #ffffff;
  stroke-width: 2.5;
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(120, 130, 157, 0.4));
}

/* Floating Crosshair tracking line */
.chart-crosshair-line {
  stroke: #cbd5e1;
  stroke-width: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.chart-tracking-dot {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.chart-hover-overlay {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  z-index: 10;
}

/* Top-left dynamic header timestamp */
.chart-header-timestamp {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
  pointer-events: none;
  z-index: 15;
  letter-spacing: -0.01em;
  background-color: rgba(255, 255, 255, 0.88);
  padding: 1px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  font-family: var(--font-sans);
}

.chart-floating-tooltip {
  display: none !important;
}

.chart-recent-trade-badge {
  display: none !important;
}

/* Endpoint Live Trade Pulse Rings */
.chart-pulse-ring,
.pk-chart-pulse-ring {
  animation: chart-pulse 3.25s ease-out 0.7s infinite;
  transform-origin: center;
  pointer-events: none;
}

@keyframes chart-pulse {
  0% {
    opacity: 0.7;
    r: 3.5;
    stroke-width: 2.2;
  }
  69.23%, 100% {
    opacity: 0;
    r: 16;
    stroke-width: 0.5;
  }
}

/* Chart Bottom Controls: Clock countdown on left, 1D 1W 1M All on right */
.chart-footer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f4f4f5;
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-countdown-box {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #71717a;
}

.chart-countdown-box svg {
  color: #71717a;
}

.timeframe-links-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeframe-text-btn {
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: #71717a;
  padding: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.timeframe-text-btn:hover {
  color: #09090b;
}

.timeframe-text-btn.active {
  color: #09090b;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   6. Direct Odds / Moneyline Rows (Matching Image 2)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   6. Direct Odds / Moneyline Rows & Accordion Drawer (Matching Images 1-4)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   6. Direct Odds / Moneyline Rows & Accordion Drawer (Matching Images 1-5)
   -------------------------------------------------------------------------- */
.moneyline-cards-container {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.moneyline-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 3-Column Balanced Grid Alignment (Red Box in Image 3: 44% and 56% dead center) */
.moneyline-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 16px 6px;
  
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.moneyline-row-card:hover {
  background-color: #fafafa;
}

.moneyline-row-divider {
  height: 1px;
  background-color: #f1f5f9;
  width: 100%;
}

.moneyline-team-info {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.moneyline-team-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.moneyline-team-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.moneyline-team-name {
  font-size: 15px;
  font-weight: 700;
  color: #09090b;
}

/* Dead-center 44% & 56% percentage block */
.moneyline-pct-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.02em;
  justify-self: center;
  text-align: center;
}

.moneyline-change-tag {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.moneyline-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  justify-self: end;
}

.moneyline-multiplier {
  font-size: 13.5px;
  font-weight: 500;
  color: #71717a;
  min-width: 42px;
  text-align: right;
}

/* ==========================================================================
   POLYKIT 3D BUTTON ARCHITECTURE (Matching Polymarket's 3D Push-Button Design)
   ========================================================================== */

/* Universal 3D Button Core */
[data-3d="true"],
.btn-moneyline-action,
.btn-trade-outcome,
.btn-outcome-team,
.btn-primary-trade-cta,
.chip-quick-amount,
.btn-mobile-trade-trigger,
.modal-btn-submit {
  --btn-3d-edge: 3.5px;
  --btn-3d-color: #cbd5e1;
  position: relative !important;
  transform: translateY(0);
  box-shadow: 0 var(--btn-3d-edge) 0 0 var(--btn-3d-color), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.4, 1),
              box-shadow 0.1s cubic-bezier(0.2, 0.8, 0.4, 1),
              background-color 0.15s ease,
              border-color 0.15s ease,
              filter 0.12s ease !important;
  user-select: none !important;
  cursor: pointer !important;
}

[data-3d="true"]:hover,
.btn-moneyline-action:hover,
.btn-trade-outcome:hover,
.btn-outcome-team:hover,
.btn-primary-trade-cta:hover,
.chip-quick-amount:hover,
.btn-mobile-trade-trigger:hover,
.modal-btn-submit:hover {
  filter: brightness(1.04) !important;
  transform: translateY(-0.5px);
  box-shadow: 0 calc(var(--btn-3d-edge) + 0.5px) 0 0 var(--btn-3d-color), 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

[data-3d="true"]:active,
.btn-moneyline-action:active,
.btn-trade-outcome:active,
.btn-outcome-team:active,
.btn-primary-trade-cta:active,
.chip-quick-amount:active,
.btn-mobile-trade-trigger:active,
.modal-btn-submit:active {
  transform: translateY(var(--btn-3d-edge)) !important;
  box-shadow: 0 0 0 0 var(--btn-3d-color), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  filter: brightness(0.97) !important;
  transition: transform 0.04s ease, box-shadow 0.04s ease !important;
}

/* 1. Team Action Buttons (CLE Bright Red #F60017 / TB Blue #6A96BE) */
.btn-moneyline-action {
  min-width: 104px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-moneyline-cle {
  background-color: #F60017 !important;
  color: #ffffff !important;
  border: 1px solid #e00015 !important;
  --btn-3d-color: #B30010 !important;
}

.btn-moneyline-cle:hover {
  background-color: #e60015 !important;
}

.btn-moneyline-tb {
  background-color: #6A96BE !important;
  color: #ffffff !important;
  border: 1px solid #5c88af !important;
  --btn-3d-color: #4A7399 !important;
}

.btn-moneyline-tb:hover {
  background-color: #608cb4 !important;
}

.btn-moneyline-cws {
  background-color: #78829d !important;
  color: #ffffff !important;
  border: 1px solid #6b758f !important;
  --btn-3d-color: #555e74 !important;
}

.btn-moneyline-cws:hover {
  background-color: #6e7790 !important;
}

/* Centered Accordion Drawer Toggle Pill - VISIBLE ON HOVER ONLY */
.moneyline-toggle-indicator-bar {
  position: relative;
  width: 100%;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.moneyline-item:hover .moneyline-toggle-indicator-bar,
.market-line-item-row:hover + .moneyline-toggle-indicator-bar,
.moneyline-row-card:hover + .moneyline-toggle-indicator-bar,
.moneyline-toggle-indicator-bar:hover,
.moneyline-toggle-indicator-bar.open-visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-drawer-pill-toggle {
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #71717a;
  transform: translateY(0);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-drawer-pill-toggle:hover {
  background-color: #f4f4f5;
  color: #18181b;
  border-color: #d4d4d8;
}

.btn-drawer-pill-toggle .drawer-chevron-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-drawer-pill-toggle.open .drawer-chevron-icon {
  transform: rotate(0deg);
}

.btn-drawer-pill-toggle:not(.open) .drawer-chevron-icon {
  transform: rotate(180deg);
}

/* Expandable Drawer Panel with Smooth Physics Transition */
.moneyline-drawer-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  border-top: 1px solid transparent;
}

.moneyline-drawer-panel.open {
  grid-template-rows: 1fr;
  border-top-color: #f4f4f5;
}

/* Universal Smooth Drawer Inner Wrapper */
.drawer-panel-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.moneyline-drawer-panel.open > .drawer-panel-inner,
.submarket-drawer-panel.open > .drawer-panel-inner {
  opacity: 1;
}

/* Drawer Sub-tabs Bar: Order Book | Graph | About (Images 2, 3, 4) */
.drawer-subtabs-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 12px;
  height: 42px;
  border-bottom: 1px solid #f4f4f5;
  
}

.drawer-tab-btn {
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #71717a;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 2px;
  transition: color 0.15s ease;
}

.drawer-tab-btn:hover {
  color: #09090b;
}

.drawer-tab-btn.active {
  color: #09090b;
  font-weight: 700;
}

.drawer-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #09090b;
}

.drawer-content-wrapper {
  padding: 0;
}

.drawer-view-pane {
  display: none;
}

.drawer-view-pane.active {
  display: block;
}

/* 1. About View */
.drawer-view-pane#drawerPaneCleAbout,
.drawer-view-pane#drawerPaneTbAbout {
  padding: 16px 14px 20px 14px;
}

.drawer-about-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* 2. Graph View (Image 4 & 5) */
.drawer-view-pane#drawerPaneCleGraph,
.drawer-view-pane#drawerPaneTbGraph {
  padding: 12px 14px 16px 14px;
}

/* 3. Order Book View */
.drawer-view-pane#drawerPaneCleOrderbook,
.drawer-view-pane#drawerPaneTbOrderbook {
  padding: 0;
}

/* 2. Graph View (Image 4 & 5) */
.drawer-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.drawer-graph-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #09090b;
}

.drawer-graph-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.drawer-graph-legend-val {
  font-weight: 700;
  color: #09090b;
  margin-left: 2px;
}

.drawer-graph-tf-list {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-tf-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #71717a;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.drawer-tf-btn:hover {
  color: #09090b;
}

.drawer-tf-btn.active {
  color: #09090b;
  font-weight: 700;
}

.drawer-chart-svg-container {
  position: relative;
  width: 100%;
  height: 190px;
}

.drawer-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.drawer-y-label {
  font-size: 11px;
  fill: #94a3b8;
  font-family: var(--font-sans);
}

.drawer-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: crosshair;
}

/* Light the lines: Dimmed vs Lit paths */
.chart-line-dimmed {
  opacity: 0.22;
  transition: stroke 0.2s ease;
}

.chart-line-lit {
  transition: stroke 0.2s ease;
}

/* Tooltip badge beside cursor (Image 4) */
.drawer-cursor-badge {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: #09090b;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 10;
  white-space: nowrap;
  transform: translateY(-50%);
}

.drawer-cursor-badge .badge-bar {
  width: 3px;
  height: 12px;
  border-radius: 2px;
}

/* 3. Order Book View (Matches Images 3, 4, 5) */
.orderbook-header-row {
  display: grid;
  grid-template-columns: 35% 18% 23% 24%;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
  padding: 6px 14px;
  border-bottom: 1px solid #f4f4f5;
  background: #ffffff;
  position: relative;
  z-index: 20;
  margin: 0;
}

.col-filter-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.col-filter-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #71717a;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.col-filter-icon-btn:hover {
  color: #09090b;
}

/* Decimalised Popover (Images 4 & 5) */
.decimalised-popover {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  align-items: center;
  gap: 10px;
}

.decimalised-popover.open {
  display: inline-flex;
}

.decimalised-label {
  font-size: 13px;
  font-weight: 500;
  color: #09090b;
  user-select: none;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
  margin: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e4e4e7;
  transition: 0.2s ease;
  border-radius: 20px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .slider-round {
  background-color: #09090b;
}

.switch-toggle input:checked + .slider-round:before {
  transform: translateX(16px);
}

.orderbook-header-row .col-price {
  text-align: left;
}

.orderbook-header-row .col-shares {
  text-align: right;
}

.orderbook-header-row .col-total {
  text-align: right;
}

/* Scrollable Container with Hidden Scrollbar */
.orderbook-scroll-viewport {
  height: 230px;
  max-height: 230px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.orderbook-scroll-viewport::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.orderbook-rows-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.orderbook-asks-group {
  display: flex;
  flex-direction: column;
  min-height: calc(230px - 28px);
}

.orderbook-bids-group {
  display: flex;
  flex-direction: column;
}

/* Order Book Row (Exact 4-column alignment with header: 35% 18% 23% 24%) */
.orderbook-row {
  display: grid;
  grid-template-columns: 35% 18% 23% 24%;
  align-items: center;
  position: relative;
  height: 28px;
  padding: 0 14px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.orderbook-row.ask-row:hover,
.orderbook-asks-group .orderbook-row:hover {
  background-color: #fef2f2 !important;
}

.orderbook-row.bid-row:hover,
.orderbook-bids-group .orderbook-row:hover {
  background-color: #f0fdf4 !important;
}

.orderbook-row .col-filter-placeholder {
  visibility: hidden;
}

.orderbook-row .col-price {
  text-align: left;
  font-weight: 700;
  z-index: 1;
}

.orderbook-row .col-shares {
  text-align: right;
  color: #27272a;
  font-weight: 500;
  z-index: 1;
}

.orderbook-row .col-total {
  text-align: right;
  color: #71717a;
  font-weight: 500;
  z-index: 1;
}

.orderbook-depth-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  max-width: 35%;
  z-index: 0;
  pointer-events: none;
}

.depth-bar-ask {
  background-color: rgba(254, 226, 226, 0.45);
}

.depth-bar-bid {
  background-color: rgba(220, 252, 231, 0.45);
}

.text-ask {
  color: #ef4444;
}

.text-bid {
  color: #16a34a;
}

/* Sticky Spread & Last Bar - Aligned to columns (Images 3, 4, 5) */
.orderbook-spread-bar {
  display: grid;
  grid-template-columns: 35% 18% 23% 24%;
  align-items: center;
  padding: 6px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #52525b;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: none !important;
}

.orderbook-spread-bar.docked-bottom {
  position: sticky !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 10;
  box-shadow: none !important;
}

.orderbook-spread-bar.docked-top {
  position: sticky !important;
  top: 0 !important;
  bottom: auto !important;
  z-index: 10;
  box-shadow: none !important;
}

.orderbook-spread-bar.docked-natural {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  z-index: 10;
  box-shadow: none !important;
}

.orderbook-spread-bar .spread-last-label {
  text-align: left;
}

.orderbook-spread-bar .spread-value-label {
  text-align: left;
}

@media (max-width: 640px) {
  .orderbook-spread-bar {
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   7. Spread & Totals Market Sections
   -------------------------------------------------------------------------- */
.market-group-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-group-title {
  font-size: 16px;
  font-weight: 700;
  color: #09090b;
}

.subtab-pill-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.subtab-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #52525b;
  background-color: #f1f3f6;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.12s ease-out;
}

.subtab-pill-btn:hover:not(.active) {
  background-color: #e7eaee;
  color: #09090b;
}

.subtab-pill-btn:active {
  transform: scale(0.97);
}

.subtab-pill-btn.active {
  background-color: #ffffff !important;
  color: #09090b !important;
  font-weight: 700 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 18, 55, 0.03) !important;
}

/* 3-Column Balanced Grid Alignment (Matches media_1791893245127_509245a3.png: Odds % in dead center) */
.market-line-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid #f4f4f5;
  width: 100%;
}

.market-line-selector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: start;
}

.market-line-label {
  font-size: 14px;
  font-weight: 600;
  color: #09090b;
}

.market-line-label .highlight-blue {
  color: #2563eb;
  font-weight: 700;
}

.run-selector-carousel {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 2px 6px;
  gap: 4px;
  background-color: #ffffff;
  height: 32px;
}

.btn-carousel-arrow {
  background: transparent;
  border: none;
  color: #71717a;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-carousel-arrow:hover {
  background-color: #f1f3f6;
  color: #09090b;
}

.carousel-option-chip {
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
  padding: 2px 6px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.carousel-option-chip:hover:not(.active) {
  color: #09090b;
}

.carousel-option-chip.active {
  font-weight: 700;
  background-color: transparent;
}

.carousel-divider-arrows {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: -2px;
  padding: 0 2px;
  user-select: none;
}

.market-dual-trade-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
}

.market-line-odds-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  color: #09090b;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

/* 2. Trade Outcome (Yes / No) Buttons with 3D Depth */
.btn-trade-outcome {
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Inactive Yes / No Buttons */
.btn-trade-outcome:not(.active):not(.selected) {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #09090b !important;
  --btn-3d-color: #cbd5e1 !important;
}

.btn-trade-outcome:not(.active):not(.selected):hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* Active / Selected Yes Button */
.btn-trade-outcome.btn-yes.active,
.btn-trade-outcome.btn-yes.selected {
  background-color: #00875a !important;
  color: #ffffff !important;
  border: 1px solid #00764f !important;
  --btn-3d-color: #005639 !important; /* Authentic deep green 3D bevel */
}

.btn-trade-outcome.btn-yes.active:hover,
.btn-trade-outcome.btn-yes.selected:hover {
  background-color: #007c53 !important;
}

/* Active / Selected No Button */
.btn-trade-outcome.btn-no.active,
.btn-trade-outcome.btn-no.selected {
  background-color: #b91c1c !important;
  color: #ffffff !important;
  border: 1px solid #a31616 !important;
  --btn-3d-color: #7a1212 !important; /* Authentic deep crimson 3D bevel */
}

.btn-trade-outcome.btn-no.active:hover,
.btn-trade-outcome.btn-no.selected:hover {
  background-color: #aa1717 !important;
}

/* --------------------------------------------------------------------------
   8. Game Lines & Innings Submarket Tabs
   -------------------------------------------------------------------------- */
.main-category-tabs-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 2px solid #e4e4e7;
  margin-top: 8px;
}

.main-cat-tab-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #a1a1aa;
  padding: 12px 2px;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.main-cat-tab-btn:hover {
  color: #71717a;
}

.main-cat-tab-btn.active {
  color: #09090b;
}

.main-cat-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #09090b;
  border-radius: 9999px;
}

.submarket-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.submarket-header-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.submarket-title {
  font-size: 16px;
  font-weight: 800;
  color: #09090b;
}

.submarket-desc {
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
}

.submarket-rows-list {
  display: flex;
  flex-direction: column;
}

.submarket-outcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid #f4f4f5;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.submarket-outcome-row:hover {
  background-color: #fafafa;
}

.submarket-outcome-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  justify-self: start;
}

.submarket-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submarket-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.submarket-icon-tie {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #71717a;
}

.submarket-name {
  font-size: 15px;
  font-weight: 700;
  color: #09090b;
}

/* Submarket Drawer with Smooth Physics Transition & Zero Blank Spacing */
.market-group-block > .moneyline-toggle-indicator-bar {
  margin-top: -12px;
  margin-bottom: -12px;
}

.submarket-drawer-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  border-bottom: 1px solid transparent;
  padding: 0 !important;
  margin: 0;
}

.submarket-drawer-panel.open {
  grid-template-rows: 1fr;
  border-bottom-color: #f4f4f5;
  padding: 0 !important;
}

/* Submarket Tabs Bar: Underline Tabs Design (Matching Image 2) */
.submarket-drawer-tabs-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  height: 40px;
  border-bottom: 1px solid #f4f4f5;
  background: transparent;
  margin: 0;
}

.submarket-tab-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13.5px;
  font-weight: 600;
  color: #71717a;
  cursor: pointer;
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 2px;
  transition: color 0.15s ease;
  outline: none;
  user-select: none;
}

.submarket-tab-btn:hover {
  color: #09090b;
}

.submarket-tab-btn.active {
  color: #09090b !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.submarket-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #09090b;
  border-radius: 2px;
}

/* Submarket Panes */
.submarket-pane {
  display: none;
  padding: 0;
  margin: 0;
}

.submarket-pane.active {
  display: block;
}

.submarket-pane[id*="Graph"] {
  padding: 12px 14px 16px 14px;
}

.submarket-pane[id*="About"] {
  padding: 16px 14px 20px 14px;
}

/* --------------------------------------------------------------------------
   9. Accordions (With Stepper Preview)
   -------------------------------------------------------------------------- */
.accordions-container {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e4e4e7;
  margin-top: 16px;
}

.accordion-item-card {
  
  border-bottom: 1px solid #e4e4e7;
  transition: background-color 0.15s ease;
}

.accordion-trigger-btn {
  width: 100%;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #09090b;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger-btn:hover {
  color: #2563eb;
}

.accordion-trigger-right-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* 3-Dot Inline Stepper Graphic for Timeline & Payout */
.timeline-inline-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.stepper-mini-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  
}

.stepper-mini-line {
  width: 18px;
  height: 1.5px;
  background-color: #cbd5e1;
}

.chevron-icon {
  color: #a1a1aa;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.accordion-item-card.open .chevron-icon {
  transform: rotate(90deg);
  color: #09090b;
}

.accordion-content-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 4px;
}

.accordion-item-card.open .accordion-content-panel {
  max-height: 1500px;
  padding: 0 4px 22px;
}

/* Market Rules Picker */
.rules-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rules-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e4e4e7;
  background-color: #f4f4f5;
  font-size: 13px;
  font-weight: 700;
  color: #09090b;
  cursor: pointer;
}

.rules-body-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #52525b;
}

/* Timeline Stepper Inside Accordion */
.timeline-stepper-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 6px;
  margin-top: 10px;
}

.timeline-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.timeline-step-item:last-child {
  padding-bottom: 0;
}

.timeline-step-track {
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 0;
  width: 1.5px;
  background-color: #e4e4e7;
}

.timeline-step-item:last-child .timeline-step-track {
  display: none;
}

.timeline-step-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 3px;
}

.timeline-step-item.active .timeline-step-node {
  border-color: #cbd5e1;
  background-color: #ffffff;
  color: transparent;
}

.timeline-step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-step-label {
  font-size: 14px;
  font-weight: 700;
  color: #09090b;
}

.timeline-step-subtext {
  font-size: 12.5px;
  color: #71717a;
}

/* FAQ Items */
.faq-items-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-single-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-question {
  font-size: 14px;
  font-weight: 700;
  color: #09090b;
}

.faq-answer {
  font-size: 13.5px;
  line-height: 1.55;
  color: #52525b;
}

/* --------------------------------------------------------------------------
   10. Right Sticky Sidebar
   -------------------------------------------------------------------------- */
.btn-build-combo {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(192, 132, 252, 0.45);
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: #6b21a8;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(168, 85, 247, 0.06);
  transform: none !important;
  transition: all 0.2s ease;
}

.btn-build-combo:hover {
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.8) 0%, #ffffff 100%);
  border-color: #a855f7;
  color: #581c87;
  box-shadow: 0 3px 8px rgba(168, 85, 247, 0.12);
  transform: translateY(-1px) !important;
}

.btn-build-combo:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(168, 85, 247, 0.06);
}

/* Order Ticket Card */
.order-slip-card {
  
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-slip-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-slip-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-slip-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.order-slip-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-slip-match {
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-slip-market-name {
  font-size: 16px;
  font-weight: 700;
  color: #09090b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-mode-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.order-buy-sell-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.order-tab-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.15s ease;
}

.order-tab-btn:hover {
  color: #09090b;
}

.order-tab-btn.active {
  color: #09090b;
  font-weight: 700;
}

.order-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #09090b;
}

.order-type-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.order-type-dropdown-btn:hover {
  color: #09090b;
}

/* Outcome Buttons (Exact Match to Image 5: White Sox 44% vs Guardians 56%) */
.order-outcome-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 3. Outcome Buttons in Order Ticket with 3D Depth */
.btn-outcome-team {
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  --btn-3d-color: #cbd5e1;
}

.btn-outcome-team:not(.active):hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.btn-outcome-team .outcome-team-text {
  font-weight: 500;
  color: #475569;
}

.btn-outcome-team .outcome-pct-text {
  font-weight: 700;
  color: #09090b;
}

/* Active State for Rays (#6A96BE) */
.btn-outcome-team.team-tb.active {
  background-color: #6A96BE !important;
  border: 1px solid #5c88af !important;
  color: #ffffff !important;
  --btn-3d-color: #4A7399 !important;
}

.btn-outcome-team.team-tb.active .outcome-team-text,
.btn-outcome-team.team-tb.active .outcome-pct-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Active State for Guardians (Solid Red #F60017) */
.btn-outcome-team.team-cle.active {
  background-color: #F60017 !important;
  border: 1px solid #e00015 !important;
  color: #ffffff !important;
  --btn-3d-color: #B30010 !important;
}

.btn-outcome-team.team-cle.active .outcome-team-text,
.btn-outcome-team.team-cle.active .outcome-pct-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Active State for White Sox (Solid Slate Grey #78829d) */
.btn-outcome-team.team-cws.active {
  background-color: #78829d !important;
  border: 1px solid #6b758f !important;
  color: #ffffff !important;
  --btn-3d-color: #555e74 !important;
}

.btn-outcome-team.team-cws.active .outcome-team-text,
.btn-outcome-team.team-cws.active .outcome-pct-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Amount Input Box (Matching Image 5) */
.order-amount-input-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-amount-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.order-amount-label-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #09090b;
}

.order-amount-big-display {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1px;
}

.order-currency-symbol {
  font-size: 26px;
  font-weight: 700;
  color: #78829d;
}

.order-amount-big-input {
  border: none;
  background: transparent;
  text-align: right;
  font-size: 26px;
  font-weight: 700;
  color: #78829d;
  width: 90px;
  outline: none;
  font-family: inherit;
}

.order-amount-big-input.has-value {
  color: #09090b;
  font-weight: 800;
}

.order-quick-chips-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

/* 4. Quick Amount Chips with 3D Depth */
.chip-quick-amount {
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #09090b;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  --btn-3d-edge: 2.5px;
  --btn-3d-color: #cbd5e1;
}

.chip-quick-amount:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.order-summary-metrics {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  background-color: #f8fafc;
  border-radius: 10px;
  font-size: 12.5px;
  border: 1px solid #f1f5f9;
}

.order-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
}

.order-metric-row span:last-child {
  font-weight: 700;
  color: #09090b;
}

/* 5. Primary CTA Trade Button with 3D Depth */
.btn-primary-trade-cta {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  --btn-3d-edge: 4px;
}

.btn-primary-trade-cta.btn-cta-tb {
  background-color: #6A96BE !important;
  border: 1px solid #5c88af !important;
  --btn-3d-color: #4A7399 !important;
}

.btn-primary-trade-cta.btn-cta-tb:hover {
  background-color: #608cb4 !important;
}

.btn-primary-trade-cta.btn-cta-cle {
  background-color: #F60017 !important;
  border: 1px solid #e00015 !important;
  --btn-3d-color: #B30010 !important;
}

.btn-primary-trade-cta.btn-cta-cle:hover {
  background-color: #e60015 !important;
}

.btn-primary-trade-cta.btn-cta-cws {
  background-color: #78829d !important;
  border: 1px solid #6b758f !important;
  --btn-3d-color: #555e74 !important;
}

.btn-primary-trade-cta.btn-cta-cws:hover {
  background-color: #6e7790 !important;
}

/* --------------------------------------------------------------------------


/* --------------------------------------------------------------------------
   12. Mobile Sticky Bar & Responsive Rules
   -------------------------------------------------------------------------- */
.mobile-sticky-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e4e4e7;
  padding: 12px 16px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1080px) {
  .mobile-sticky-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

.mobile-bar-summary {
  display: flex;
  flex-direction: column;
}

.mobile-bar-match {
  font-size: 12px;
  font-weight: 700;
  color: #09090b;
}

.mobile-bar-odds {
  font-size: 11.5px;
  color: #71717a;
}

.btn-mobile-trade-trigger {
  flex: 1;
  max-width: 200px;
  height: 42px;
  border-radius: 10px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .event-matchup-clean {
    padding: 12px 4% 16px;
  }
  .moneyline-odds-group {
    gap: 12px;
  }
  .moneyline-multiplier {
    display: none;
  }
  .market-dual-trade-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }
  .sticky-matchup-capsule {
    width: min(92%, 400px);
    padding: 6px 14px;
    gap: 10px;
    justify-content: space-between;
  }
  .capsule-team-title {
    font-size: 12px;
  }
  .capsule-sched-date {
    font-size: 12px;
  }
  .capsule-sched-time {
    font-size: 10.5px;
  }
  .capsule-logo-img {
    width: 20px;
    height: 20px;
  }
  .orderbook-col-headers,
  .orderbook-row-cols {
    grid-template-columns: 60px 85px 95px;
    gap: 8px;
  }
  .drawer-subtabs-bar {
    gap: 14px;
    padding: 0 14px;
  }
  .drawer-content-wrapper {
    padding: 0;
  }
}

/* Toast (Disabled per user requirement) */
.toast-notification {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.toast-notification.show {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Auth Modal */
.stemmer-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.stemmer-modal-card {
  background-color: #ffffff !important;
  border: 1px solid #e4e4e7;
  border-radius: 18px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  padding: 30px 26px;
  position: relative;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from {
    transform: translateY(12px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #09090b;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #a1a1aa;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #09090b;
  background-color: #f4f4f5;
}

.modal-tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background-color: #f4f4f5;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #71717a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-tab-btn.active {
  background-color: #ffffff !important;
  color: #09090b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #09090b;
}

.form-input {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background-color: #ffffff !important;
  font-size: 14px;
  outline: none;
  color: #09090b;
  transition: all 0.15s ease;
}

.form-input:focus {
  border-color: #7980FA;
  box-shadow: 0 0 0 3px rgba(121, 128, 250, 0.15);
}

/* 6. Auth, Modal, and Mobile Action Buttons with 3D Depth */
.modal-btn-submit {
  width: 100%;
  height: 44px;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  border-radius: 12px !important;
  --btn-3d-edge: 4px !important;
  --btn-3d-color: #1e40af !important;
}


.btn-mobile-trade-trigger {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  --btn-3d-edge: 3.5px !important;
  --btn-3d-color: #1e40af !important;
}
