:root {
  color-scheme: light;
  --bg: #08111f;
  --panel: #0f172a;
  --panel-strong: #15213a;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.14);
  --accent: #3b82f6;
  --accent-2: #f59e0b;
  --danger: #ef4444;
  --cyan: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(64, 211, 155, 0.08), transparent 34%),
    linear-gradient(215deg, rgba(242, 184, 75, 0.08), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, ui-sans-serif, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent);
  color: #062017;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.login-help-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.shell {
  min-height: 100vh;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel.hidden {
  display: none;
}

.login-card {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 32, 0.96);
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf7f4;
  color: #0b1114;
  font-weight: 900;
}

.brand-row strong,
.brand-row span,
.session-card strong,
.session-card em {
  display: block;
}

.brand-row span,
.session-card em,
.eyebrow,
article span,
article em,
td,
th {
  color: var(--muted);
}

.eyebrow {
  margin: 28px 0 6px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
}

h2 {
  font-size: 1.08rem;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

#loginMessage {
  min-height: 20px;
  color: var(--danger);
  font-weight: 800;
}

.login-subcopy {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.app {
  display: none;
  min-height: 100vh;
}

.app.visible {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(12, 19, 22, 0.94);
}

nav {
  display: grid;
  gap: 8px;
}

nav button,
.ghost-button {
  width: 100%;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

nav button.active {
  background: rgba(64, 211, 155, 0.14);
  color: var(--ink);
  border-color: rgba(64, 211, 155, 0.45);
}

.session-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(64, 211, 155, 0.12);
}

.content {
  min-width: 0;
  padding: 24px;
}

.topbar,
.section-header,
	  .wallet-strip,
	  .pph-mode-panel,
.event-card footer,
.ticket-card footer,
.pulse-card footer,
.line-card footer,
.betslip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 20px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions button:last-child {
  background: var(--accent-2);
}

#agentButton {
  background: var(--accent);
  color: #04140f;
}

.mode-header-figure {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-figure-pill {
  display: none;
  width: calc(100% - 20px);
  min-height: 72px;
  margin: 10px 10px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 30, 38, 0.98), rgba(9, 16, 21, 0.98));
  color: var(--ink);
  text-align: left;
}

.mobile-figure-pill span,
.mobile-figure-pill em {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
}

.mobile-figure-pill strong {
  color: #f8fafc;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.18rem;
}

.mobile-figure-pill.negative strong {
  color: var(--danger);
}

.mobile-figure-pill.positive strong {
  color: #10b981;
}

.wallet-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pph-mode-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.history-kpis,
.readiness-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wallet-strip article,
.pph-mode-panel article,
.history-kpis article,
.readiness-summary article,
.panel,
.event-card,
.ticket-card,
.pulse-card,
.memory-row,
.ai-card,
.line-card,
.history-row,
.criteria-row,
.guardrail-row,
.empty-card,
.empty-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 32, 0.92);
}

.wallet-strip article,
.pph-mode-panel article,
.history-kpis article,
.readiness-summary article {
  min-height: 116px;
  padding: 16px;
}

.pph-mode-panel article.credit {
  border-color: rgba(64, 211, 155, 0.5);
  background: rgba(64, 211, 155, 0.11);
}

.pph-mode-panel article.agent {
  border-color: rgba(103, 197, 255, 0.42);
  background: rgba(103, 197, 255, 0.1);
}

.pph-mode-panel article.postup,
.pph-mode-panel article.warning {
  border-color: rgba(242, 184, 75, 0.5);
  background: rgba(242, 184, 75, 0.1);
}

.pph-mode-panel strong {
  margin-top: 8px;
  font-size: 1.05rem;
}

.pph-mode-panel em {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}

article strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.wallet-strip strong {
  margin-top: 10px;
  font-size: 1.7rem;
}

.history-kpis strong {
  margin-top: 8px;
  font-size: 1.35rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.main-panel {
  min-height: 330px;
}

.side-panel {
  min-height: 330px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.event-grid,
.pulse-grid,
.ai-feed,
.line-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.event-card,
.pulse-card,
.line-card {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.event-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.event-identity {
  display: inline-grid;
  grid-template-columns: repeat(3, 28px);
  grid-template-rows: 28px 18px;
  align-items: center;
  justify-items: center;
  gap: 3px;
  min-width: 90px;
}

.event-identity.compact {
  grid-template-columns: repeat(3, 24px);
  grid-template-rows: 24px 16px;
  min-width: 78px;
}

.identity-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--logo-bg, #2563eb);
}

.event-identity.compact .identity-logo {
  width: 24px;
  height: 24px;
}

.identity-logo.league {
  grid-column: 1 / -1;
  width: 42px;
  height: 18px;
  border-radius: 999px;
}

.identity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.identity-logo b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
}

.identity-at {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.event-card strong,
.pulse-card strong,
.line-card strong {
  margin-top: 7px;
  font-size: 1.04rem;
}

.event-card button {
  min-height: 36px;
  padding: 0 14px;
}

.line-card footer {
  align-items: flex-end;
}

.line-card footer span {
  display: grid;
  gap: 3px;
}

.line-card footer button {
  min-height: 36px;
  padding: 0 12px;
  background: var(--cyan);
  color: #041923;
}

.betting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  margin-top: 14px;
}

.market-depth-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(89, 199, 232, 0.22);
  border-radius: 8px;
  background: rgba(89, 199, 232, 0.06);
}

.market-sport-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-sport-tabs button {
  min-height: 34px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
}

.market-sport-tabs button.active {
  border-color: rgba(64, 211, 155, 0.5);
  background: rgba(64, 211, 155, 0.13);
  color: var(--ink);
}

.market-depth-sections {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.market-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.market-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.market-section summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.market-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
}

.market-chip-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.76rem;
  font-weight: 800;
}

.betslip-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 16, 18, 0.92);
}

.section-header.compact {
  align-items: flex-start;
}

.betslip-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.betslip-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.betslip-catalog-note {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(64, 211, 155, 0.22);
  border-radius: 8px;
  background: rgba(64, 211, 155, 0.07);
}

.betslip-catalog-note div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.betslip-catalog-note p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.betslip-capability {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.betslip-capability.active {
  border-color: rgba(64, 211, 155, 0.45);
  color: var(--accent);
}

.betslip-capability.setup {
  border-color: rgba(242, 184, 75, 0.45);
  color: var(--accent-2);
}

.selected-lines {
  display: grid;
  gap: 10px;
}

.selected-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.selected-line strong {
  margin: 5px 0;
}

.sport-rule-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.08);
}

.sport-rule-panel label,
.sport-rule-fields {
  display: grid;
  gap: 6px;
}

.sport-rule-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sport-rule-panel select,
.sport-rule-panel input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.sport-rule-panel small {
  color: var(--muted);
  line-height: 1.35;
}

.selected-line button {
  min-height: 34px;
  padding: 0 10px;
  background: transparent;
  color: var(--danger);
}

.preview-box {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 13px;
  border: 1px solid rgba(89, 199, 232, 0.28);
  border-radius: 8px;
  background: rgba(89, 199, 232, 0.08);
}

.preview-box ul {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.accepted-text {
  color: var(--accent);
}

.rejected-text,
.betslip-message {
  color: var(--danger);
}

.betslip-actions {
  gap: 8px;
}

.betslip-actions button {
  flex: 1 1 0;
}

.betslip-actions button:disabled,
.confirm-slip-card .betslip-actions button:disabled {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.42);
  cursor: not-allowed;
}

.confirm-slip-card .place-bet-button:disabled span {
  color: rgba(255, 255, 255, 0.42);
}

.betslip-actions .ghost-button {
  text-align: center;
}

.betslip-message {
  min-height: 22px;
  font-weight: 800;
}

.history-panel,
.readiness-panel,
.arcade-panel,
.status-panel,
.mobile-slip-panel {
  grid-column: 1 / -1;
}

.status-screen-grid {
  margin-top: 12px;
}

.mobile-slip-content {
  display: grid;
  gap: 12px;
}

.mobile-slip-state,
.mobile-slip-line {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-slip-state.active {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.mobile-slip-state.confirmed {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(96, 165, 250, 0.08);
}

.mobile-slip-state span,
.mobile-slip-line span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-slip-state strong,
.mobile-slip-line strong {
  color: #fff;
}

.mobile-slip-state em,
.mobile-slip-line em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.mobile-slip-state button {
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.16);
  color: #fff;
  font-weight: 800;
}

.mobile-slip-lines {
  display: grid;
  gap: 8px;
}

.ai-products-header {
  margin-top: 18px;
}

.ai-product-dimensions,
.ai-product-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ai-product-dimensions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ai-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ai-product-dimensions article,
.ai-product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 13px;
}

.ai-product-dimensions span,
.ai-product-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-product-dimensions strong {
  margin: 6px 0;
  font-size: 1.3rem;
}

.ai-product-dimensions em,
.ai-product-card p,
.ai-product-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ai-product-card {
  display: grid;
  align-content: space-between;
  min-height: 178px;
  gap: 14px;
}

.ai-product-card.enabled {
  border-color: rgba(64, 211, 155, 0.42);
  background: rgba(64, 211, 155, 0.08);
}

.ai-product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-product-card footer em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.arcade-hero,
.arcade-progression {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.arcade-hero article,
.arcade-progression article,
.arcade-money-grid article,
.arcade-detail-grid section,
.arcade-game-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.arcade-hero article,
.arcade-progression article {
  min-height: 124px;
  padding: 14px;
}

.arcade-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.arcade-tabs button {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 64px;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.arcade-tabs button strong {
  color: inherit;
}

.arcade-tabs button span {
  font-size: 0.72rem;
  font-weight: 800;
}

.arcade-tabs button.active {
  border-color: rgba(64, 211, 155, 0.52);
  background: rgba(64, 211, 155, 0.13);
  color: var(--ink);
}

.arcade-detail {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.arcade-game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 14px;
  padding: 16px;
}

.arcade-game-card h3 {
  margin: 6px 0 8px;
  font-size: 1.45rem;
}

.arcade-game-card p,
.arcade-detail-grid p,
.arcade-detail-grid li {
  color: var(--muted);
  line-height: 1.45;
}

.arcade-game-card aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.08);
}

.arcade-game-card aside em {
  color: var(--muted);
  font-style: normal;
}

.arcade-money-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.arcade-money-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.arcade-money-grid strong {
  font-size: 1.05rem;
}

.arcade-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.arcade-detail-grid section {
  padding: 14px;
}

.arcade-detail-grid span,
.arcade-hero span,
.arcade-progression span,
.arcade-money-grid span,
.arcade-game-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arcade-detail-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.arcade-meta-header {
  margin-top: 18px;
}

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

.pending-bets-summary,
.history-filters,
.history-table-wrap,
.history-trend-panel {
  margin-top: 12px;
}

.pending-bets-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pending-bets-summary article,
.history-trend-panel {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.pending-bets-summary span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pending-bets-summary strong {
  display: block;
  margin: 5px 0 2px;
  color: #fff;
  font-size: 1.35rem;
}

.pending-bets-summary em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-style: normal;
}

.history-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #bbf7d0;
}

.history-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.history-filters select {
  min-height: 40px;
  color: #fff;
}

.history-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  min-height: 112px;
  padding: 8px 2px 2px;
  overflow-x: auto;
}

.history-bar {
  position: relative;
  flex: 0 0 16px;
  border-radius: 5px 5px 0 0;
  background: rgba(16, 185, 129, 0.7);
}

.history-bar.negative {
  background: rgba(239, 68, 68, 0.76);
}

.history-bar i {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  display: none;
  transform: translateX(-50%);
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(2, 6, 23, 0.96);
  color: #fff;
  font-size: 0.6rem;
  font-style: normal;
  white-space: nowrap;
}

.history-bar:hover i {
  display: block;
}

.history-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.history-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 0.76rem;
}

.history-table th {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
  font-size: 0.66rem;
  font-weight: 950;
}

.history-result-won .history-result-badge {
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
}

.history-result-lost .history-result-badge {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.positive {
  color: #34d399 !important;
}

.negative {
  color: #f87171 !important;
}

.history-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 420px;
  overflow: auto;
}

.history-row {
  padding: 12px;
}

.history-row strong {
  margin: 5px 0;
}

.money-row strong {
  color: var(--accent-2);
}

.support-panel {
  min-height: 0;
}

.support-panel .support-hero,
.support-panel .support-routes {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.support-panel .support-routes {
  margin-top: 10px;
}

.support-hero,
.support-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.support-hero article,
.support-route {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 27, 32, 0.92);
}

.support-route.agent {
  border-color: rgba(103, 197, 255, 0.42);
  background: rgba(103, 197, 255, 0.1);
}

.support-route.house {
  border-color: rgba(64, 211, 155, 0.45);
  background: rgba(64, 211, 155, 0.1);
}

.support-route.warning {
  border-color: rgba(242, 184, 75, 0.48);
  background: rgba(242, 184, 75, 0.1);
}

.support-route strong,
.support-hero strong {
  margin: 8px 0;
}

.support-route p,
.support-hero em {
  color: var(--muted);
  line-height: 1.45;
}

.figure-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.figure-impact span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.82rem;
}

.figure-impact strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.criteria-list,
.guardrail-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.criteria-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 14px;
  padding: 14px;
}

.criteria-row p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.criteria-row aside {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 7px;
}

.criteria-row aside em {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-style: normal;
  font-weight: 900;
}

.criteria-row aside small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.criteria-row footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.criteria-row.passed aside em {
  color: var(--accent);
  border-color: rgba(64, 211, 155, 0.45);
}

.criteria-row.review aside em {
  color: var(--accent-2);
  border-color: rgba(242, 184, 75, 0.45);
}

.criteria-row.blocked aside em {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.45);
}

.guardrail-row {
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.45;
}

.ticket-list,
.line-memory {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ticket-card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 13px;
}

.ticket-list {
  grid-template-columns: minmax(0, 1fr);
}

.ticket-card footer {
  flex-wrap: wrap;
}

.ticket-card p,
.pulse-card p,
.line-card p,
.ai-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.memory-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.memory-row strong {
  margin: 5px 0;
}

.memory-row aside {
  text-align: right;
}

.memory-row aside strong {
  color: var(--accent-2);
}

.ai-card {
  min-height: 150px;
  padding: 14px;
}

.ai-card.high,
.ai-card.critical {
  border-color: rgba(242, 184, 75, 0.5);
}

.ai-card em {
  display: block;
  margin-top: 12px;
  color: var(--accent);
}

.ticket-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.ticket-card[data-ticket-id],
.history-row[data-ticket-id],
tbody tr[data-ticket-id],
.memory-row[data-recent-line-id] {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ticket-card[data-ticket-id]:hover,
.history-row[data-ticket-id]:hover,
tbody tr[data-ticket-id]:hover,
.memory-row[data-recent-line-id]:hover {
  border-color: rgba(19, 215, 105, 0.45);
  background: rgba(19, 215, 105, 0.06);
}

.ticket-detail-panel {
  margin-top: 14px;
}

.ticket-detail-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 27, 33, 0.96), rgba(9, 15, 19, 0.96));
}

.ticket-detail-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.ticket-detail-card header span,
.ticket-detail-card header em,
.ticket-detail-grid span,
.ticket-detail-grid em,
.ticket-selection-row span,
.ticket-selection-row em,
.ticket-selection-row p,
.ticket-selection-row aside em {
  color: var(--muted);
}

.ticket-detail-card header strong {
  display: block;
  margin: 6px 0;
  font-size: 1.05rem;
}

.ticket-detail-card header aside {
  min-width: 145px;
  text-align: right;
}

.ticket-detail-card header aside strong,
.ticket-selection-row aside strong {
  color: var(--accent-2);
}

.ticket-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ticket-detail-grid article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ticket-detail-grid strong {
  font-size: 1rem;
}

.ticket-selection-list {
  display: grid;
  gap: 8px;
}

.ticket-selection-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.ticket-selection-row b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(19, 215, 105, 0.16);
  color: var(--accent-2);
}

.ticket-selection-row strong {
  display: block;
  margin: 4px 0;
}

.ticket-selection-row p {
  margin-top: 8px;
  line-height: 1.45;
}

.ticket-selection-row aside {
  text-align: right;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(64, 211, 155, 0.35);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent);
}

.line-board {
  grid-column: 1 / -1;
}

.empty-card,
.empty-row {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.empty-row {
  min-height: 92px;
}

@media (max-width: 1050px) {
  .app.visible {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  nav button {
    text-align: center;
  }

  .wallet-strip,
  .workspace,
  .betting-grid,
  .history-grid,
  .arcade-hero,
  .arcade-progression,
  .arcade-money-grid,
  .arcade-game-card,
  .arcade-detail-grid,
  .criteria-row,
  .criteria-row footer {
    grid-template-columns: 1fr;
  }

  .criteria-row aside {
    justify-items: start;
  }

  .betslip-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .content,
  .sidebar,
  .login-panel {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .top-actions button {
    width: 100%;
  }

  nav {
    grid-template-columns: 1fr 1fr;
  }

  .wallet-strip strong {
    font-size: 1.45rem;
  }
}

/* PPH Player sportsbook shell */
.pph-app.visible {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 45% 0%, rgba(23, 82, 89, 0.22), transparent 28%),
    linear-gradient(180deg, #080d11 0%, #0d1418 46%, #080c10 100%);
}

.pph-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 210px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.mobile-menu-button,
.mobile-bottom-nav,
.mobile-drawer-backdrop {
  display: none;
}

.legacy-sidebar-header {
  display: none;
}

.pph-logo,
.pph-top-actions button,
.sport-list button,
.league-list button,
.pph-sport-strip button,
.pph-board-tabs button,
.pph-ticket-tabs button,
.figure-actions button,
.pph-slip-tabs button,
.rail-more {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.pph-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0;
  text-align: left;
}

.pph-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.pph-home-button span {
  font-size: 1rem;
  line-height: 1;
}

.pph-home-button:hover,
.pph-home-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.pph-logo strong {
  font-size: 1.85rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.pph-logo span {
  display: grid;
  gap: 2px;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.pph-logo small {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pph-sport-strip em {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #02150d;
  font-size: 0.55rem;
  font-weight: 950;
}

.pph-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pph-top-actions .icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #eaf6f1;
  font-size: 1rem;
}

.pph-top-actions .badge {
  position: relative;
}

.pph-top-actions .badge span {
  position: absolute;
  top: -4px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: #061910;
  font-size: 0.58rem;
  font-weight: 950;
}

.pph-top-actions .mode-header-figure {
  min-width: 134px;
  min-height: 38px;
  border: 0;
  background: transparent;
  font-size: 0.78rem;
}

.pph-top-actions #agentButton {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #18c768, #0c9f4d);
  color: #fff;
}

.sports-service-strip,
.sports-quick-nav {
  position: sticky;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
}

.sports-service-strip {
  top: 68px;
  padding: 9px 16px;
}

.sports-quick-nav {
  top: 118px;
  padding: 8px 16px;
  background: var(--panel-strong);
  scrollbar-width: none;
}

.sports-quick-nav::-webkit-scrollbar {
  display: none;
}

.sports-service-strip button,
.sports-quick-nav button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.sports-service-strip button:hover,
.sports-service-strip button.active,
.sports-quick-nav button:hover,
.sports-quick-nav button.active {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.14);
  color: #bbf7d0;
}

.sports-service-strip em,
.sports-service-strip small,
.sports-quick-nav em,
.sports-quick-nav small {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 950;
}

.sports-service-strip small {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
  animation: livePulse 1.5s ease-in-out infinite;
}

.pph-user {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel-strong) !important;
  color: var(--ink) !important;
}

.pph-layout {
  display: grid;
  grid-template-columns: 290px minmax(560px, 1fr) 306px;
  gap: 12px;
  padding: 12px;
}

.pph-left-rail,
.pph-right-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px;
}

.pph-left-rail {
  position: sticky;
  top: 80px;
  height: calc(100vh - 92px);
  overflow: auto;
  scrollbar-width: thin;
}

.pph-right-rail {
  position: sticky;
  top: 80px;
  height: calc(100vh - 92px);
  overflow: auto;
  scrollbar-width: thin;
}

.rail-card,
.pph-side-card,
.pph-hero-card,
.pph-boost-card,
.pph-sport-strip,
.pph-live-panel,
.pph-upcoming-panel,
.pph-product-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 30, 36, 0.94), rgba(12, 18, 22, 0.94));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.rail-card {
  padding: 12px;
}

.rail-card h2,
.pph-side-card .section-header h2,
.pph-live-panel .section-header h2,
.pph-upcoming-panel .section-header h2 {
  font-size: 0.74rem;
  text-transform: uppercase;
}

.rail-card h2 {
  margin-bottom: 12px;
}

.league-list button {
  grid-template-columns: minmax(0, 1fr);
  min-height: 44px;
  color: var(--muted);
}

.sport-list strong {
  color: var(--accent);
  font-size: 0.72rem;
}

.rail-more {
  min-height: 30px;
  margin-top: 8px;
  padding: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.pph-session-card {
  /* Dev session/status indicator ("<user> / <status>") hidden from the player UI. Kept in the DOM
     because setBusy() writes status into #sessionMeta and sign-in writes #sessionUsername (app.js) —
     removing the markup would null those targets and throw on load. UI-only hide, behaviour intact. */
  display: none;
  min-height: 58px;
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
}

.rail-foot {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  gap: 6px;
  font-size: 0.68rem;
}

.rail-foot span,
.rail-foot strong {
  display: block;
}

.rail-foot span {
  color: var(--muted);
}

.pph-center {
  min-width: 0;
}

.pph-home-board {
  display: grid;
  gap: 10px;
}

.view-section.pph-home-board {
  display: none;
}

.view-section.pph-home-board.active {
  display: grid;
}

.pph-confirmation-board {
  display: none;
  gap: 10px;
}

.pph-confirmation-board.active {
  display: grid;
}

.bets-confirmed-hero,
.confirmed-bets-panel,
.confirmed-summary-panel,
.confirmed-popular-panel,
.confirmation-empty {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 27, 33, 0.96), rgba(9, 15, 19, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.confirmation-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  gap: 8px;
  text-align: center;
}

.bets-confirmed-hero {
  display: grid;
  gap: 22px;
  min-height: 275px;
  padding: 36px 28px 18px;
}

.confirmed-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: left;
}

.confirmed-check {
  width: 58px;
  height: 58px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 2px solid #13d769;
  border-radius: 50%;
  background: rgba(19, 215, 105, 0.08);
}

.confirmed-check::after {
  content: "";
  width: 24px;
  height: 13px;
  border-left: 4px solid #13d769;
  border-bottom: 4px solid #13d769;
  transform: rotate(-45deg) translate(2px, -1px);
}

.confirmed-title-row h2 {
  color: #19e873;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
}

.confirmed-title-row p {
  margin-top: 10px;
  color: #fff;
  font-weight: 700;
}

.confirmation-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.confirmation-kpis article {
  min-height: 82px;
  display: grid;
  align-content: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.confirmation-kpis span,
.confirmed-bet-row span,
.confirmed-bet-row em,
.confirmed-summary-grid span,
.confirmed-popular-events span {
  color: var(--muted);
}

.confirmation-kpis strong {
  margin-top: 6px;
  font-size: 1rem;
}

.confirmation-kpis .stake {
  color: #f5c400;
}

.confirmation-kpis .odds {
  color: #8ec5ff;
}

.confirmation-kpis .win {
  color: #19e873;
}

.confirmation-ticket-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.025));
}

.confirmation-ticket-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.confirmation-ticket-preview-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.confirmation-ticket-preview-head strong {
  color: #f5c400;
  font-size: 0.78rem;
}

.confirmation-ticket-preview-list {
  display: grid;
  gap: 8px;
}

.confirmation-selection-preview {
  display: grid;
  grid-template-columns: 26px 46px minmax(0, 1fr) 72px;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
}

.confirmation-selection-preview.empty {
  display: block;
  color: var(--muted);
  text-align: center;
}

.confirmation-selection-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #109d50;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 900;
}

.confirmation-selection-rot {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 3px 7px;
  border-radius: 5px;
  background: #2459d6;
  color: #fff !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.confirmation-selection-preview strong,
.confirmation-selection-preview em {
  display: block;
  min-width: 0;
}

.confirmation-selection-preview strong {
  color: #fff;
  font-size: 0.9rem;
}

.confirmation-selection-preview em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirmation-selection-preview b {
  color: #8ec5ff;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  justify-self: center;
  width: min(620px, 100%);
}

.confirmation-actions button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.confirmation-actions .primary {
  border: 0;
  background: linear-gradient(180deg, #18c768, #0c9f4d);
}

.confirmed-bets-panel,
.confirmed-summary-panel,
.confirmed-popular-panel {
  padding: 14px;
}

.confirmed-bet-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.confirmed-bet-row {
  display: grid;
  grid-template-columns: 26px 34px minmax(0, 1fr) 88px 92px 92px 120px 34px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.confirmed-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #109d50;
  color: #fff !important;
  font-weight: 900;
}

.confirmation-sport-dot {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.16);
}

.confirmed-selection strong {
  margin-bottom: 3px;
}

.confirmed-selection span,
.confirmed-selection em,
.confirmed-bet-row div > span,
.confirmed-status span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
}

.confirmed-bet-row div:not(.confirmed-selection):not(.confirmed-status) {
  text-align: center;
}

.confirmed-status {
  text-align: right;
}

.confirmed-status strong {
  color: #19e873;
}

.confirmed-bet-row button,
.confirmed-summary-panel .section-header button {
  min-height: 34px;
  background: transparent;
  color: #fff;
}

.confirmed-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  overflow: hidden;
}

.confirmed-summary-grid article {
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.confirmed-summary-grid article:last-child {
  border-right: 0;
}

.confirmed-summary-grid strong {
  font-size: 1.05rem;
}

.confirmed-popular-events {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.confirmed-popular-events article {
  display: grid;
  gap: 10px;
  min-height: 122px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.confirmed-popular-events footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.confirmed-popular-events button {
  min-height: 32px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.pph-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 10px;
}

.pph-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 198px;
  padding: 24px 36px;
  background:
    linear-gradient(90deg, rgba(7, 15, 18, 0.92), rgba(6, 27, 22, 0.66), rgba(15, 31, 44, 0.44)),
    radial-gradient(circle at 70% 24%, rgba(82, 150, 255, 0.28), transparent 26%),
    linear-gradient(145deg, rgba(22, 50, 64, 0.8), rgba(4, 11, 13, 0.96));
}

.pph-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 48%, rgba(32, 213, 112, 0.34) 49%, transparent 54%),
    linear-gradient(135deg, transparent 0 62%, rgba(32, 213, 112, 0.28) 63%, transparent 68%);
  opacity: 0.9;
}

.pph-hero-card > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 450px;
}

.pph-hero-card .eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
}

.pph-hero-card h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.pph-hero-card h1 span {
  color: var(--accent);
}

.pph-hero-card p {
  max-width: 430px;
  margin-top: 10px;
  color: #f6fbf8;
  font-weight: 780;
  line-height: 1.4;
}

.pph-hero-card button {
  position: relative;
  z-index: 2;
  min-width: 142px;
  margin-top: 18px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #1ecb69, #0da04d);
  color: #fff;
}

.hero-player {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 145px;
  height: 175px;
  border-radius: 70px 70px 8px 8px;
  background:
    radial-gradient(circle at 48% 18%, #d5b18e 0 14px, transparent 15px),
    linear-gradient(150deg, #17242c 0 48%, #10161b 49% 100%);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.4));
  transform: skew(-6deg);
}

.hero-player-a {
  right: 205px;
}

.hero-player-b {
  right: 72px;
  height: 150px;
  background:
    radial-gradient(circle at 48% 18%, #d7b99a 0 13px, transparent 14px),
    linear-gradient(150deg, #0c6238 0 48%, #0a4429 49% 100%);
}

.pph-boost-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: 198px;
  background:
    radial-gradient(circle at 86% 52%, rgba(255, 255, 255, 0.13), transparent 24%),
    linear-gradient(140deg, rgba(15, 22, 27, 0.96), rgba(17, 31, 37, 0.92));
}

.pph-boost-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -4px;
  width: 94px;
  height: 142px;
  border-radius: 55px 55px 8px 8px;
  background:
    radial-gradient(circle at 50% 16%, #b48765 0 15px, transparent 16px),
    linear-gradient(145deg, #e6e7e1 0 54%, #bfc3bd 55% 100%);
  opacity: 0.9;
}

.pph-boost-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.pph-boost-card strong {
  margin-top: 16px;
  font-size: 1.32rem;
  line-height: 1.35;
}

.pph-boost-card em,
.pph-boost-card small {
  display: block;
  margin-top: 12px;
  color: #d5dfdc;
  font-style: normal;
}

.boost-odds {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.boost-odds s {
  color: #ff9b81;
  font-weight: 900;
}

.boost-odds b {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #31c979, #189a52);
}

.pph-sport-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  overflow-x: auto;
  scrollbar-width: none;
}

.pph-sport-strip button {
  position: relative;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #e9f4f0;
  font-size: 0.67rem;
}

.pph-sport-strip::-webkit-scrollbar {
  display: none;
}

.pph-sport-strip .sport-tile {
  min-width: 92px;
}

.pph-sport-strip button:first-child .icon,
.pph-sport-strip button:first-child .icon--live {
  color: #ff342f;
}

.pph-sport-strip button.active {
  background: rgba(59, 130, 246, 0.18);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.pph-sport-strip span {
  font-size: 1.15rem;
  font-weight: 950;
}

.pph-sport-strip strong,
.pph-sport-strip .label {
  font-size: 0.7rem;
  text-align: center;
}

.pph-sport-strip em,
.pph-sport-strip .badge--count {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #dbeafe;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.pph-sport-strip .icon {
  font-size: 1.15rem;
}

.pph-sport-strip .label {
  color: #e9f4f0;
  font-weight: 900;
}

.pph-sport-strip .icon--live {
  font-size: 0.92rem;
}

.mobile-more-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(10, 18, 24, 0.96);
}

.mobile-more-options[hidden] {
  display: none;
}

.mobile-more-options button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 58px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.mobile-more-options span {
  color: var(--accent);
  font-weight: 950;
}

.pph-live-panel,
.pph-upcoming-panel,
.pph-product-panel {
  padding: 0;
  overflow: hidden;
}

.pph-live-panel .section-header,
.pph-upcoming-panel .section-header,
.pph-product-panel .section-header {
  padding: 12px 14px;
}

.pph-board-header span {
  color: #ff342f;
}

.pph-board-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pph-board-tabs button {
  position: relative;
  min-height: 34px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.pph-board-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--accent);
}

.pph-board-tabs span {
  color: var(--muted);
  font-size: 0.68rem;
}

.pph-odds-head,
.pph-line-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(82px, 0.55fr)) repeat(2, minmax(110px, 0.7fr)) 62px;
  gap: 8px;
  align-items: center;
}

.pph-odds-head {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.pph-odds-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.pph-line-row {
  min-height: 56px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
}

.pph-line-row.mobile-line-card {
  display: block;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.pph-line-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.pph-line-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pph-line-event strong {
  margin: 0;
  color: #f8fffc;
  font-size: 0.83rem;
}

.pph-line-event span,
.pph-line-event em {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-pill {
  color: #ff3b3b !important;
  font-weight: 950;
}

.board-pill {
  color: #93c5fd !important;
  font-weight: 950;
}

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

.mobile-market-grid.soccer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odds-cell,
.more-cell {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(23, 34, 40, 0.96), rgba(14, 22, 27, 0.96));
  color: #f9fffc;
  font-weight: 860;
}

.odds-cell.mobile-market {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 10px 12px;
  text-align: left;
}

.odds-cell.mobile-market span,
.odds-cell.mobile-market em {
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  line-height: 1.15;
}

.odds-cell.mobile-market strong {
  color: #f8fafc;
  font-size: 0.74rem;
  line-height: 1.15;
}

.odds-cell.mobile-market em {
  color: #93c5fd;
  font-weight: 950;
}

.odds-cell:hover,
.more-cell:hover {
  border-color: rgba(64, 211, 155, 0.36);
  background: rgba(64, 211, 155, 0.14);
}

.odds-cell.added {
  border-color: rgba(64, 211, 155, 0.65);
  background: rgba(64, 211, 155, 0.2);
  color: var(--accent);
}

.more-cell {
  color: #e6f1ed;
}

.mobile-line-card .pph-line-event {
  padding: 10px 12px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.game-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-header-row1 {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.teams-compact {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.team-block {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.team-logo-wrapper {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  overflow: visible;
  width: 36px;
}

.team-logo-circle {
  align-items: center;
  background: var(--team-color, #1e40af);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  display: flex;
  justify-content: center;
  height: 36px;
  width: 36px;
}

.team-logo-text {
  color: var(--team-text-color, #fff);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  max-width: 30px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rot-badge {
  align-items: center;
  background: #1e40af;
  border-radius: 3px;
  color: #fff;
  display: inline-flex;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.63rem;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  letter-spacing: 0.03em;
  min-width: 28px;
  padding: 0 5px;
}

.team-code {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1;
}

.vs-separator {
  color: rgba(255, 255, 255, 0.42);
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
}

.game-status-block {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
}

.league-badge {
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 3px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.league-badge--nfl {
  background: #f59e0b;
  color: #0f172a;
}

.league-badge--nba {
  background: #d97706;
  color: #fff;
}

.league-badge--mlb {
  background: #1e40af;
  color: #fff;
}

.league-badge--nhl {
  background: #0ea5e9;
  color: #fff;
}

.league-badge--soccer {
  background: #10b981;
  color: #fff;
}

.status-badge {
  align-items: center;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 950;
  gap: 4px;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.status-badge--live {
  color: #ef4444;
}

.status-badge--upcoming {
  color: rgba(255, 255, 255, 0.62);
}

.live-dot {
  animation: livePulse 1.5s infinite ease-in-out;
  background: #ef4444;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
  }
}

.game-header-row2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0;
}

.game-meta-line {
  align-items: center;
  color: rgba(255, 255, 255, 0.54);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 6px;
  margin: 0;
}

.dot-sep {
  color: rgba(255, 255, 255, 0.28);
}

.markets-table {
  padding: 8px 10px;
}

.markets-table-headers,
.markets-table-row {
  display: grid;
  grid-template-columns: 58px repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}

.markets-table-headers {
  padding: 0 0 5px;
}

.markets-table-row + .markets-table-row,
.markets-table-headers + .markets-table-row {
  margin-top: 4px;
}

.market-header-cell {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.57rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-cell {
  min-width: 0;
}

.market-cell--team {
  align-items: center;
  display: flex;
  gap: 3px;
  padding: 0 2px 0 0;
}

.team-label-mini {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-rot-teams {
  align-items: center;
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
  min-width: 0;
}

.rot-number {
  align-items: center;
  background: #1e40af;
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  min-width: 25px;
  padding: 0 4px;
}

.rot-team-code,
.rot-separator {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.rot-separator {
  color: rgba(255, 255, 255, 0.45);
}

.rot-mini {
  color: #60a5fa;
  flex: 0 0 auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
}

.rot-mini--slip {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: 1px;
}

.market-cell--bet {
  align-items: center;
  background: linear-gradient(180deg, rgba(23, 34, 40, 0.96), rgba(14, 22, 27, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 6px;
  color: #f9fffc;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 48px;
  padding: 8px 4px;
  text-align: center;
  transition: all 0.15s ease;
}

.market-cell--bet:hover {
  border-color: rgba(64, 211, 155, 0.36);
  background: rgba(64, 211, 155, 0.14);
}

.market-cell--bet.added,
.market-cell--bet.selected,
.market-cell--bet:active {
  border-color: rgba(64, 211, 155, 0.65);
  background: rgba(64, 211, 155, 0.2);
  color: var(--accent);
  position: relative;
}

.market-cell--bet.blocked {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.08);
  opacity: 0.58;
  position: relative;
}

.market-cell--bet.warning {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.08);
  position: relative;
}

.market-state-indicator {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.market-cell--bet.blocked .market-state-indicator {
  color: #ef4444;
}

.market-cell--bet.warning .market-state-indicator {
  color: #f59e0b;
}

.market-cell--disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.market-line {
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1.12;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-odds {
  color: #93c5fd;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1.1;
}

.markets-table--soccer {
  display: grid;
  gap: 7px;
}

.markets-table-headers--3col,
.markets-table-row--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.markets-table-headers--4col,
.markets-table-row--4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.markets-table--soccer .market-line {
  font-size: 0.62rem;
}

.mobile-line-card .more-cell {
  align-items: center;
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  justify-content: center;
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.locked-cell {
  opacity: 0.45;
}

.pph-market-depth {
  display: none;
}

.pph-upcoming-panel .event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.pph-upcoming-panel .event-card {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0;
  background: transparent;
}

.pph-upcoming-panel .event-card p {
  margin: 2px 0 0;
  font-size: 0.72rem;
}

.pph-upcoming-panel .event-card footer {
  justify-content: end;
}

.pph-upcoming-panel .event-card button {
  min-height: 30px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2faf6;
}

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

.pph-product-panel button {
  min-height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4fbf8;
}

.support-back-button {
  min-height: 44px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.support-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.support-close-button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
}

.pph-preview-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.pph-preview-cards span {
  min-height: 80px;
  display: flex;
  align-items: end;
  padding: 8px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(20, 120, 92, 0.1), rgba(0, 0, 0, 0.68)),
    radial-gradient(circle at 50% 20%, rgba(242, 184, 75, 0.6), transparent 34%),
    #162027;
  font-size: 0.7rem;
  font-weight: 900;
}

.pph-preview-cards.ai span {
  background:
    linear-gradient(180deg, rgba(31, 94, 180, 0.12), rgba(0, 0, 0, 0.68)),
    radial-gradient(circle at 50% 24%, rgba(89, 199, 232, 0.7), transparent 34%),
    #111a25;
}

.pph-side-card {
  padding: 14px;
}

.confirm-slip-card {
  min-width: 0;
  overflow-wrap: anywhere;
  display: none !important;
}

.pph-side-card .section-header {
  align-items: start;
  padding: 0;
}

.pph-slip-tabs,
.pph-ticket-tabs,
.figure-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.pph-slip-tabs button,
.pph-ticket-tabs button {
  position: relative;
  min-height: 34px;
  color: #c7d5d1;
  font-size: 0.68rem;
  font-weight: 900;
}

.pph-slip-tabs button.active::after,
.pph-ticket-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.pph-slip-type,
.pph-stake-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.pph-slip-type select,
.pph-stake-field input {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.05);
}

.pph-side-card .betslip-catalog-note {
  display: none;
}

.pph-side-card .selected-lines,
.pph-side-card .ticket-list {
  max-height: 250px;
  overflow: auto;
}

.pph-side-card .empty-row,
.pph-side-card .empty-card {
  min-height: 96px;
  place-items: center;
  text-align: center;
  background: transparent;
  border: 0;
}

.pph-side-card .ticket-card,
.pph-side-card .selected-line {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.pph-side-card .ticket-card--settled {
  border-color: rgba(96, 165, 250, 0.2);
}

.pph-side-card .ticket-card--cashout {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.06);
}

.pph-side-card .selected-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pph-side-card .selected-line .event-identity {
  display: none;
}

.pph-side-card .selected-line button {
  min-width: 34px;
}

.pph-side-card .preview-box {
  min-height: 88px;
  margin-top: 12px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.confirm-slip-card {
  overflow: hidden;
  border-color: rgba(59, 130, 246, 0.28);
  background:
    linear-gradient(180deg, rgba(30, 58, 138, 0.98), rgba(30, 64, 175, 0.96)),
    radial-gradient(circle at 22% 0%, rgba(59, 130, 246, 0.22), transparent 34%);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.38);
}

.confirm-slip-card .section-header strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 0.76rem;
  line-height: 1;
}

.confirm-slip-card .pph-slip-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 12px -6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.confirm-slip-card .pph-slip-tabs button {
  min-height: 42px;
  padding: 0 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.58rem;
  white-space: normal;
}

.confirm-slip-card .pph-slip-tabs button.active {
  color: #fff;
}

.confirm-slip-card .pph-slip-tabs button.active::after {
  background: #10b981;
}

.confirm-slip-card .pph-slip-type,
.confirm-slip-card .betslip-catalog-note {
  display: none;
}

.confirm-slip-card .selected-lines {
  display: grid;
  gap: 0;
  max-height: 336px;
  margin: 8px -1px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  overflow: auto;
}

.confirm-slip-card .selected-lines .empty-row {
  padding: 28px 14px;
  color: rgba(255, 255, 255, 0.72);
}

.confirm-slip-card .confirm-leg {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: 74px;
  padding: 12px 10px 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
    rgba(255, 80, 148, 0.16);
}

.confirm-slip-card .confirm-leg:last-child {
  border-bottom: 0;
}

.confirm-slip-card .confirm-leg::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.confirm-slip-card .confirm-leg > div {
  padding-left: 22px;
}

.confirm-slip-card .confirm-leg strong {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.82rem;
}

.confirm-slip-card .confirm-leg span,
.confirm-slip-card .confirm-leg em {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.35;
}

.confirm-slip-card .confirm-leg aside {
  align-self: start;
  color: #fff;
  font-weight: 900;
}

.confirm-slip-card .confirm-leg button {
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.confirm-options {
  display: grid;
  gap: 10px;
  margin: 12px -1px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.confirm-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.confirm-options-head span {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.confirm-options-head button {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
}

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

.confirm-option-grid button {
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 8px 10px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
}

.confirm-option-grid button.active {
  border-color: #f5c400;
  box-shadow: inset 0 0 0 1px rgba(245, 196, 0, 0.3);
}

.confirm-option-grid span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
}

.confirm-option-grid strong {
  color: #fff;
  font-size: 0.78rem;
}

.risk-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.risk-mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.risk-mode-tabs button.active {
  border-bottom: 2px solid #10b981;
  color: #10b981;
}

.confirm-slip-card .pph-stake-field {
  margin-top: 12px;
  color: #fff;
  text-transform: uppercase;
}

.stake-stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.stake-stepper button,
.quick-stakes button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.stake-stepper button:hover,
.quick-stakes button:hover {
  background: rgba(16, 185, 129, 0.2);
}

.stake-stepper input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.quick-stakes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-stakes button {
  min-height: 34px;
  font-size: 0.72rem;
}

.confirm-slip-card .preview-box {
  min-height: 120px;
  border: 0;
  background: transparent;
  padding: 12px 0 0;
}

.confirm-summary {
  display: grid;
  gap: 8px;
}

.confirm-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.confirm-total span,
.confirm-slip-card .preview-box em,
.confirm-slip-card .preview-box li {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.confirm-total strong {
  color: #fff;
  font-size: 0.96rem;
}

.confirm-slip-card .figure-impact {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.confirm-slip-card .figure-impact span {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
}

.confirm-slip-card .figure-impact strong {
  color: #fff;
}

.confirm-slip-card .betslip-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.confirm-slip-card .quote-button {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.confirm-slip-card .place-bet-button {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: #10b981;
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 14px 26px rgba(16, 185, 129, 0.24);
}

.confirm-slip-card .place-bet-button:hover {
  background: #059669;
}

.confirm-slip-card .place-bet-button span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
}

.confirm-slip-card .betslip-actions .ghost-button {
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.correlation-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px 96px;
  background: rgba(0, 0, 0, 0.58);
}

.correlation-alert-overlay[hidden] {
  display: none;
}

.correlation-alert {
  width: min(100%, 400px);
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.correlation-alert--visible {
  opacity: 1;
  transform: translateY(0);
}

.correlation-alert--block {
  border: 1px solid rgba(239, 68, 68, 0.72);
  background: linear-gradient(180deg, #991b1b 0%, #7f1d1d 100%);
}

.correlation-alert--warning {
  border: 1px solid rgba(245, 158, 11, 0.72);
  background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
}

.alert-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.correlation-alert .alert-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

.correlation-alert h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.correlation-alert p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.alert-adjusted-odds {
  margin: 12px 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.alert-adjusted-odds[hidden] {
  display: none;
}

.alert-adjusted-odds strong {
  margin-left: 4px;
  color: #fbbf24;
  font-size: 1rem;
}

.correlation-alert .alert-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.alert-btn {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.alert-btn[hidden] {
  display: none;
}

.alert-btn--cancel {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.alert-btn--confirm {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.odds-acceptance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto;
  align-items: center;
  gap: 8px;
  margin: 12px -1px 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.odds-acceptance select {
  min-height: 34px;
  padding: 0 8px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.odds-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.odds-acceptance input {
  width: auto;
  min-height: auto;
}

.confirm-slip-card .betslip-message {
  color: rgba(255, 255, 255, 0.82);
}

.post-confirm-only {
  display: none;
}

.pph-right-rail.confirmation-active .post-confirm-only {
  display: block;
}

.pph-right-rail.confirmation-active .standard-rail-card {
  display: none;
}

.pph-right-rail.confirmation-active .confirm-slip-card {
  display: none;
}

.feature-promo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.04)),
    radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.22), transparent 34%);
}

.feature-promo-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.36);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.22);
}

.feature-promo-content {
  min-width: 0;
}

.feature-promo-content h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
}

.feature-promo-content p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.4;
}

.feature-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-promo-btn span {
  transition: transform 0.2s ease;
}

.feature-promo-btn:hover span {
  transform: translateX(3px);
}

.live-feed-header {
  align-items: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 800;
}

.view-all-btn:hover {
  background: rgba(96, 165, 250, 0.24);
}

.balance-summary-card {
  padding: 16px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(15, 23, 42, 0.52)),
    radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.16), transparent 30%);
}

.balance-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-period-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.balance-period-value,
.balance-row-value,
.transaction-amount,
.transaction-running-value {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.balance-period-value {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.balance-breakdown {
  display: grid;
  gap: 8px;
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.balance-row-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
}

.balance-icon {
  min-width: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.balance-row--positive .balance-icon {
  color: #10b981;
}

.balance-row--negative .balance-icon {
  color: #ef4444;
}

.balance-row-value {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.balance-positive {
  color: #10b981;
}

.balance-negative,
.balance-row-value.balance-negative {
  color: #ef4444;
}

.balance-row--net {
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.balance-row--net .balance-row-label {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.balance-row-value--net {
  color: #fbbf24;
  font-size: 0.96rem;
}

.balance-divider {
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.balance-row--current {
  padding: 10px 12px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
}

.balance-row--current .balance-row-label {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.balance-current {
  color: #10b981;
  font-size: 1.15rem;
}

.balance-credit-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
}

.balance-credit-bar {
  height: 6px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.balance-credit-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.35s ease, background 0.2s ease;
}

.balance-credit-bar-fill--warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.balance-credit-bar-fill--danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.confirmation-live-feed,
.all-tx-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.transaction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.66);
}

.transaction-row:hover {
  background: rgba(30, 41, 59, 0.7);
}

.transaction-info {
  min-width: 0;
}

.transaction-type {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.transaction-time {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.transaction-amount {
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.transaction-amount.negative {
  color: #ef4444;
}

.transaction-running-balance {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.transaction-running-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transaction-running-value {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.transaction-running-value.positive {
  color: #10b981;
}

.transaction-running-value.negative {
  color: #ef4444;
}

.transactions-panel .section-header {
  align-items: center;
}

.transactions-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.filter-select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 700;
}

.export-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
}

.all-tx-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.all-tx-summary article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.all-tx-summary span,
.all-tx-summary em {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.all-tx-summary strong {
  display: block;
  margin: 5px 0 2px;
  color: #fff;
  font-size: 1rem;
}

@media (max-width: 560px) {
  .transaction-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .transaction-running-balance {
    grid-column: 2;
  }

  .transactions-filters,
  .all-tx-summary {
    grid-template-columns: 1fr;
  }
}

.bet-slip-sheet,
.bet-slip-backdrop {
  display: none;
}

.sticky-bet-type-tabs button,
.sticky-selection button,
.sticky-stake-modes button,
.sticky-stake-stepper button,
.sticky-quick-stakes button,
.sticky-actions button,
.bet-slip-bar,
.bet-slip-close,
.bet-slip-drag-handle {
  font: inherit;
}

.pph-wide-button,
.figure-actions button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #18c768, #0c9f4d);
  color: #fff;
}

.figure-actions button {
  min-height: 34px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
}

.figure-actions button:first-child {
  background: linear-gradient(180deg, #18c768, #0c9f4d);
}

.figure-card .wallet-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 12px 0 0;
}

.figure-card .wallet-strip article {
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 6px 0;
  border: 0;
  background: transparent;
}

.figure-card .wallet-strip article span {
  color: #eaf6f1;
  font-size: 0.76rem;
}

.figure-card .wallet-strip article strong {
  justify-self: end;
  margin: 0;
  font-size: 0.9rem;
}

.figure-card .wallet-strip article em {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--muted);
  font-size: 0.65rem;
}

.settlement-card .pph-mode-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 12px 0 0;
}

.settlement-card .pph-mode-panel article {
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.settlement-card .pph-mode-panel strong {
  margin-top: 3px;
  font-size: 0.82rem;
}

.settlement-card .pph-mode-panel em {
  margin-top: 3px;
  font-size: 0.68rem;
}

.figure-impact {
  grid-template-columns: 1fr;
}

@media (max-width: 1240px) {
  .pph-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .pph-right-rail {
    grid-column: 1 / -1;
    position: static;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pph-topbar {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .pph-top-actions {
    grid-column: 1 / -1;
    justify-content: end;
  }
}

@media (max-width: 900px) {
  .pph-topbar,
  .pph-layout,
  .pph-hero-row,
  .pph-product-row,
  .pph-right-rail {
    grid-template-columns: 1fr;
  }

  .pph-app.visible {
    padding-bottom: 74px;
  }

  body.bet-slip-visible .pph-app.visible {
    padding-bottom: 146px;
  }

  .pph-topbar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .pph-home-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
  }

  .mode-header-figure {
    display: none;
  }

  .mobile-figure-pill {
    display: grid;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
  }

  .sports-service-strip {
    top: 116px;
    padding: 7px 10px;
  }

  .sports-quick-nav {
    top: 160px;
    padding: 7px 10px;
  }

  .sports-service-strip button,
  .sports-quick-nav button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .pending-bets-summary,
  .history-filters {
    grid-template-columns: 1fr;
  }

  .pph-left-rail,
  .pph-right-rail {
    position: static;
    height: auto;
  }

  .pph-left-rail {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    width: min(86vw, 330px);
    height: 100vh;
    padding: 0 14px 14px;
    overflow-y: auto;
    background: #0f172a;
    box-shadow: 20px 0 70px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .pph-app.mobile-drawer-open .pph-left-rail {
    transform: translateX(0);
  }

  .legacy-sidebar-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -14px 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(10px);
  }

  .legacy-sidebar-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0;
  }

  .legacy-sidebar-close {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .legacy-sidebar-close:hover,
  .legacy-sidebar-close:focus-visible {
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    transform: rotate(90deg);
  }

  .legacy-sidebar-close:active {
    transform: rotate(90deg) scale(0.94);
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: block;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .mobile-drawer-backdrop.mobile-drawer-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-backdrop[hidden] {
    display: none;
  }

  .pph-center {
    order: 1;
  }

  .pph-right-rail {
    display: none;
    order: 2;
  }

  .pph-right-rail.confirmation-active {
    display: grid;
  }

  .pph-left-rail {
    order: 3;
  }

  .pph-hero-row,
  .pph-product-row {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 17, 31, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 54px;
    padding: 4px 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
  }

  .mobile-bottom-nav button span {
    font-size: 1rem;
  }

  .mobile-bottom-nav button.active {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
  }

  .bet-slip-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 74px;
    z-index: 80;
    display: block;
    pointer-events: none;
  }

  .bet-slip-sheet--hidden {
    display: none;
  }

  .bet-slip-bar {
    width: calc(100% - 20px);
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, 0.55);
    border-top: 2px solid #10b981;
    border-radius: 14px 14px 10px 10px;
    background:
      linear-gradient(180deg, rgba(30, 64, 175, 0.98), rgba(30, 58, 138, 0.98)),
      radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.3), transparent 36%);
    box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.42), 0 0 28px rgba(16, 185, 129, 0.13);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(0);
    animation: stickyBarAppear 0.34s ease;
  }

  .bet-slip-bar--pulse {
    animation: stickyBarPulse 0.45s ease;
  }

  .bet-slip-bar-count {
    min-width: 50px;
    min-height: 42px;
    display: grid;
    place-items: center;
    gap: 1px;
    padding: 4px 6px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.28);
  }

  .bet-slip-bar-count strong {
    color: #fbbf24;
    font-size: 1.04rem;
    line-height: 1;
  }

  .bet-slip-bar-count em,
  .bet-slip-bar-main em,
  .bet-slip-bar-totals em {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.55rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .bet-slip-bar-main {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .bet-slip-bar-main strong {
    min-width: 0;
    width: fit-content;
    max-width: 145px;
    padding: 4px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.19);
    color: #fbbf24;
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bet-slip-bar-totals {
    display: grid;
    justify-items: end;
    gap: 3px;
    line-height: 1;
  }

  .bet-slip-bar-totals strong {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    white-space: nowrap;
  }

  .bet-slip-bar-totals:nth-of-type(4) strong {
    color: #20e39a;
  }

  .bet-slip-bar-arrow {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    font-weight: 900;
  }

  .bet-slip-expanded {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -74px;
    z-index: 2;
    height: min(90dvh, calc(100dvh - 28px));
    max-height: min(90dvh, calc(100dvh - 28px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    background:
      radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.16), transparent 30%),
      linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
    box-shadow: 0 -20px 58px rgba(0, 0, 0, 0.62);
    pointer-events: auto;
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .bet-slip-sheet--expanded .bet-slip-expanded {
    transform: translateY(0);
  }

  .bet-slip-sheet--expanded .bet-slip-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
  }

  .bet-slip-drag-handle {
    width: 44px;
    height: 5px;
    flex: 0 0 auto;
    margin: 10px auto 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
  }

  .bet-slip-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .bet-slip-expanded-header h2 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 1rem;
  }

  .bet-slip-expanded-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    font-weight: 750;
  }

  .bet-slip-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 950;
  }

  .sticky-bet-type-tabs {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
    overflow-x: auto;
    padding: 12px 14px 8px;
    scrollbar-width: none;
  }

  .sticky-bet-type-tabs::-webkit-scrollbar {
    display: none;
  }

  .sticky-bet-type-tabs button {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .sticky-bet-type-tabs button.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    color: #fff;
  }

  .sticky-selections {
    display: grid;
    gap: 8px;
    flex: 1 1 150px;
    min-height: 0;
    min-height: min(150px, 26dvh);
    max-height: 230px;
    overflow-y: auto;
    padding: 4px 14px;
  }

  .sticky-selection {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
  }

  .sticky-selection.same-game::before {
    content: "SGP";
    position: absolute;
    top: -7px;
    right: 36px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.52rem;
    font-weight: 950;
  }

  .sticky-selection strong,
  .sticky-selection aside {
    color: #fff;
    font-size: 0.76rem;
    font-weight: 950;
  }

  .sticky-selection em {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.64rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sticky-selection button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
  }

  .sticky-summary {
    flex: 0 0 auto;
    margin: 10px 14px;
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.26);
  }

  .sticky-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sticky-summary-line strong,
  .sticky-summary-line b {
    color: #fff;
    font-size: 0.86rem;
  }

  .sticky-summary-line b {
    color: #fbbf24;
    font-size: 1.24rem;
  }

  .sticky-summary-line span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.64rem;
  }

  .sticky-amount-section {
    flex: 0 0 auto;
    padding: 0 14px 10px;
  }

  .sticky-stake-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
  }

  .sticky-stake-modes button {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .sticky-stake-modes button.active {
    background: #10b981;
    color: #fff;
  }

  .sticky-stake-stepper {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
  }

  .sticky-stake-stepper button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 950;
  }

  .sticky-stake-stepper strong {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
  }

  .sticky-quick-stakes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  .sticky-quick-stakes button {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
  }

  .sticky-payout-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .sticky-payout-line span {
    display: grid;
    gap: 2px;
    padding: 7px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.58rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .sticky-payout-line strong {
    color: #fff;
    font-size: 0.72rem;
  }

  .sticky-payout-line span:last-child strong {
    color: #10b981;
  }

  .sticky-actions {
    display: grid;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 14px calc(14px + env(safe-area-inset-bottom));
  }

  .sticky-quote-button,
  .sticky-place-button {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    color: #fff;
    font-weight: 950;
  }

  .sticky-quote-button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }

  .sticky-place-button {
    border: 0;
    background: linear-gradient(180deg, #10b981, #059669);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
    letter-spacing: 0.04em;
  }

  .sticky-quote-button:disabled,
  .sticky-place-button:disabled {
    opacity: 0.45;
  }

  .bet-slip-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(0, 0, 0, 0.62);
  }

  .bet-slip-backdrop[hidden] {
    display: none;
  }

  @keyframes stickyBarAppear {
    from {
      opacity: 0;
      transform: translateY(80%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes stickyBarPulse {
    0% {
      box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.42);
    }
    50% {
      box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.42), 0 0 30px rgba(16, 185, 129, 0.55);
    }
    100% {
      box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.42);
    }
  }

  .pph-sport-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .pph-sport-strip::-webkit-scrollbar {
    display: none;
  }

  .pph-sport-strip button {
    min-width: 0;
    min-height: 76px;
    padding: 8px 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .pph-sport-strip .sport-tile {
    min-width: 0;
  }

  .pph-sport-strip .badge--count {
    right: 3px;
    font-size: 0.55rem;
  }

  .pph-sport-strip .icon {
    font-size: 0.9rem;
  }

  .pph-sport-strip .label {
    font-size: 0.57rem;
    line-height: 1.05;
  }

  .mobile-more-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pph-odds-head {
    display: none;
  }

  .pph-line-row,
  .pph-line-row.mobile-line-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .pph-line-event {
    grid-column: 1 / -1;
  }

  .mobile-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-market-grid.soccer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .odds-cell.mobile-market {
    min-height: 72px;
  }

  .more-cell {
    min-height: 46px;
  }

  .pph-preview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confirmation-kpis,
  .confirmation-actions,
  .ticket-detail-grid,
  .confirmed-summary-grid,
  .confirmed-popular-events {
    grid-template-columns: 1fr;
  }

  .ticket-detail-card header,
  .ticket-selection-row {
    grid-template-columns: 1fr;
  }

  .ticket-detail-card header {
    display: grid;
  }

  .ticket-detail-card header aside,
  .ticket-selection-row aside {
    min-width: 0;
    text-align: left;
  }

  .confirmed-title-row {
    justify-content: start;
  }

  .confirmed-bet-row {
    grid-template-columns: 24px 28px minmax(0, 1fr) 82px;
    gap: 8px;
    align-items: start;
  }

  .confirmation-selection-preview {
    grid-template-columns: 24px 42px minmax(0, 1fr) 64px;
    gap: 7px;
  }

  .confirmation-ticket-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirmed-selection {
    grid-column: 3;
    grid-row: 1 / span 3;
    min-width: 0;
  }

  .confirmed-odds,
  .confirmed-stake,
  .confirmed-win {
    grid-column: 4;
    text-align: right;
  }

  .confirmed-odds {
    grid-row: 1;
  }

  .confirmed-stake {
    grid-row: 2;
  }

  .confirmed-win {
    grid-row: 3;
  }

  .confirmed-status {
    grid-column: 3 / -1;
    grid-row: 4;
    text-align: left;
  }

  .confirmed-bet-row button {
    display: none;
  }
}

@media (max-width: 560px) {
  .pph-topbar,
  .pph-layout {
    padding: 10px;
  }

  .pph-logo strong {
    font-size: 1.25rem;
  }

  .pph-top-actions #agentButton {
    min-width: 92px;
    padding: 0 10px;
  }

  .pph-user,
  .pph-top-actions .icon-button:not(.badge) {
    display: none;
  }

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

  .mobile-market-grid.soccer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pph-sport-strip button {
    min-height: 70px;
  }

  .pph-sport-strip .badge--count {
    top: 4px;
    right: 2px;
    font-size: 0.5rem;
  }

  .pph-sport-strip .icon {
    font-size: 0.82rem;
  }

  .pph-sport-strip .label {
    font-size: 0.52rem;
  }
}

@media (max-width: 900px) {
  .apex-bet-slip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 74px;
    z-index: 90;
    display: block;
    pointer-events: none;
  }

  .apex-bet-slip--hidden {
    display: none;
  }

  .apex-bet-slip > * {
    pointer-events: auto;
  }

  .apex-bar {
    width: calc(100% - 20px);
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0 10px;
    padding: 10px 14px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-top: 2px solid #10b981;
    border-radius: 16px 16px 10px 10px;
    background:
      radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.28), transparent 34%),
      linear-gradient(135deg, rgba(30, 64, 175, 0.98), rgba(30, 58, 138, 0.98));
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.48), 0 0 34px rgba(16, 185, 129, 0.14);
    color: #fff;
    cursor: pointer;
    animation: apexBarAppear 0.34s ease;
  }

  .apex-bar--pulse {
    animation: apexBarPulse 0.6s ease;
  }

  .apex-bar-avatars,
  .apex-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .apex-avatar-stack {
    display: flex;
    align-items: center;
    min-width: 34px;
  }

  .apex-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border: 2px solid #1e3a8a;
    border-radius: 50%;
    background: var(--avatar-color, #1e40af);
    color: var(--avatar-text, #fff);
    font-size: 0.54rem;
    font-weight: 950;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  }

  .apex-avatar:first-child {
    margin-left: 0;
  }

  .apex-avatar-more {
    background: rgba(15, 23, 42, 0.9);
    color: #fbbf24;
  }

  .apex-bar-count,
  .apex-bar-center,
  .apex-bar-win-block {
    display: grid;
    gap: 2px;
    line-height: 1;
  }

  .apex-bar-number,
  .apex-bar-odds-value,
  .apex-bar-win-block strong {
    font-weight: 950;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  .apex-bar-number {
    color: #fbbf24;
    font-size: 1.16rem;
  }

  .apex-bar-label,
  .apex-bar-win-block em {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.54rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .apex-bar-center {
    justify-items: center;
    min-width: 0;
  }

  .apex-bar-type {
    max-width: 150px;
    padding: 4px 9px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .apex-bar-odds-line {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .apex-bar-odds-arrow {
    color: #10b981;
    font-size: 0.58rem;
  }

  .apex-bar-odds-arrow.down {
    color: #ef4444;
  }

  .apex-bar-odds-value {
    color: #fff;
    font-size: 0.92rem;
  }

  .apex-bar-win-block {
    justify-items: end;
  }

  .apex-bar-win-block strong {
    color: #20e39a;
    font-size: 0.9rem;
  }

  .apex-bar-chevron {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 950;
  }

  .apex-expanded {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -74px;
    z-index: 2;
    height: min(98dvh, calc(100dvh - 8px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background:
      radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.16), transparent 30%),
      linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
    box-shadow: 0 -22px 64px rgba(0, 0, 0, 0.68);
    transform: translateY(110%);
    transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .apex-bet-slip--expanded .apex-expanded {
    transform: translateY(0);
  }

  .apex-bet-slip--expanded .apex-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
  }

  .apex-drag-handle {
    width: 46px;
    height: 5px;
    flex: 0 0 auto;
    min-height: 5px;
    margin: 10px auto 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
  }

  .apex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .apex-title {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
  }

  .apex-header-meta {
    display: flex;
    gap: 5px;
    margin: 0;
    flex-wrap: wrap;
  }

  .apex-meta-pill {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .apex-meta-pill--type,
  .apex-meta-pill--sgp {
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.13);
    color: #10b981;
  }

  .apex-header-actions {
    display: flex;
    gap: 8px;
  }

  .apex-action-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
  }

  .apex-action-btn--close {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.25);
  }

  .apex-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 14px 0;
    padding: 9px 10px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 11px;
    background: rgba(245, 158, 11, 0.11);
  }

  .apex-suggestion[hidden] {
    display: none;
  }

  .apex-suggestion-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fbbf24;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 950;
  }

  .apex-suggestion-text {
    display: grid;
    gap: 2px;
    flex: 1;
  }

  .apex-suggestion-text strong {
    color: #fbbf24;
    font-size: 0.72rem;
  }

  .apex-suggestion-text span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.64rem;
  }

  .apex-suggestion-action {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: #fbbf24;
    color: #0f172a;
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .apex-tabs {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
    overflow-x: auto;
    padding: 11px 14px 8px;
    scrollbar-width: none;
  }

  .apex-tabs::-webkit-scrollbar {
    display: none;
  }

  .apex-tabs button {
    min-height: 39px;
    flex: 0 0 auto;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .apex-tabs button.active {
    border-color: #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.32), rgba(5, 150, 105, 0.24));
    color: #fff;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.18);
  }

  .apex-selections-wrapper {
    flex: 0 0 auto;
    min-height: min(188px, 27dvh);
    max-height: min(230px, 32dvh);
    overflow-y: auto;
    padding: 0 14px 4px;
  }

  .apex-selections {
    position: relative;
    display: grid;
    gap: 8px;
  }

  .apex-selections::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #10b981, rgba(59, 130, 246, 0.25));
  }

  .apex-selection {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.27);
  }

  .apex-selection--sgp {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(245, 158, 11, 0.06));
  }

  .apex-selection-node {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    z-index: 1;
    border-radius: 999px;
    background: #10b981;
    color: #06251b;
    font-size: 0.62rem;
    font-weight: 950;
  }

  .apex-selection .rot-mini {
    color: #60a5fa;
    font-size: 0.6rem;
  }

  .apex-selection-info {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .apex-selection-info strong,
  .apex-selection aside span {
    color: #fff;
    font-size: 0.76rem;
    font-weight: 950;
  }

  .apex-selection-info em,
  .apex-selection-info small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.62rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .apex-selection-info small {
    color: rgba(251, 191, 36, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .apex-selection aside {
    display: grid;
    justify-items: end;
    gap: 2px;
  }

  .apex-selection aside i {
    color: #10b981;
    font-size: 0.55rem;
    font-style: normal;
  }

  .apex-selection button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 950;
  }

  .apex-summary {
    flex: 0 0 auto;
    margin: 7px 14px;
    padding: 10px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 13px;
    background:
      radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.16), transparent 34%),
      rgba(0, 0, 0, 0.28);
  }

  .apex-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .apex-summary-row strong,
  .apex-summary-row b {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
  }

  .apex-summary-row b {
    color: #fbbf24;
    font-size: 1.32rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  .apex-summary-row span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.63rem;
  }

  .apex-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0 14px 8px;
    padding: 4px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.28);
  }

  .apex-mode-toggle button {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .apex-mode-toggle button.active {
    background: #10b981;
    color: #fff;
  }

  .apex-amount-input {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 8px;
    margin: 0 14px 8px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
  }

  .apex-amount-input button {
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
  }

  .apex-amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #fff;
  }

  .apex-amount-display span,
  .apex-amount-display input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 950;
  }

  .apex-amount-display span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
  }

  .apex-amount-display input {
    width: 112px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
    text-align: center;
    outline: none;
  }

  .apex-quick-amounts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 0 14px 8px;
  }

  .apex-quick-amounts button {
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 950;
  }

  .apex-quick-amounts button:last-child {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(251, 191, 36, 0.12);
  }

  .apex-payout-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 14px 8px;
  }

  .apex-payout-card span {
    display: grid;
    gap: 2px;
    padding: 6px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.24);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.58rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .apex-payout-card strong {
    color: #fff;
    font-size: 0.72rem;
  }

  .apex-payout-card span:last-child strong {
    color: #10b981;
  }

  .apex-actions {
    display: grid;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 14px calc(14px + env(safe-area-inset-bottom));
  }

  .apex-btn-quote,
  .apex-btn-place {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    color: #fff;
    font-weight: 950;
  }

  .apex-btn-quote {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }

  .apex-btn-place {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    border: 0;
    background: linear-gradient(180deg, #10b981, #059669);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.26);
    letter-spacing: 0.06em;
  }

  .apex-btn-place em {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.7rem;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
  }
}

.apex-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.apex-quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.apex-quote-card {
  position: relative;
  width: min(420px, 100%);
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #1e3a8a, #0f172a);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.62);
}

.apex-quote-header,
.apex-quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.apex-quote-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.apex-quote-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 950;
}

.apex-quote-body {
  overflow-y: auto;
  padding: 14px 16px;
}

.apex-quote-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.78rem;
}

.apex-quote-status span {
  color: #fbbf24;
  font-weight: 900;
}

.apex-quote-legs {
  display: grid;
  gap: 7px;
}

.apex-quote-leg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
}

.apex-quote-leg span {
  color: #60a5fa;
  font-size: 0.62rem;
  font-weight: 950;
}

.apex-quote-leg strong,
.apex-quote-leg b {
  color: #fff;
  font-size: 0.78rem;
}

.apex-quote-leg em {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apex-quote-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.apex-quote-totals span {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.1);
}

.apex-quote-totals em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.apex-quote-totals strong {
  color: #fff;
  font-size: 0.82rem;
}

.apex-quote-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 0;
}

.apex-quote-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 950;
}

.apex-quote-btn--cancel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.apex-quote-btn--confirm {
  border: 0;
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
}

.apex-success-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10001;
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 54px rgba(16, 185, 129, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.apex-success-toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.apex-success-toast strong {
  font-size: 1.05rem;
}

.apex-success-toast span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
}

@keyframes apexBarAppear {
  from {
    opacity: 0;
    transform: translateY(80%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes apexBarPulse {
  0% {
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.48);
  }
  50% {
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.48), 0 0 34px rgba(16, 185, 129, 0.62);
  }
  100% {
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.48);
  }
}

/* Apex player drawer, time, and coming-soon system */
.header-time-block {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 64px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32) !important;
  color: #fff !important;
}

.header-time {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
}

.header-timezone {
  color: rgba(255, 255, 255, 0.58);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.drawer-backdrop.drawer-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

.apex-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 320;
  display: flex;
  width: min(360px, 88vw);
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.2), transparent 32%),
    linear-gradient(180deg, #0b1b32 0%, #0f172a 38%, #020617 100%);
  box-shadow: 18px 0 54px rgba(0, 0, 0, 0.52);
  transform: translateX(-104%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.apex-drawer.apex-drawer--open {
  transform: translateX(0);
}

.drawer-header {
  flex: 0 0 auto;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(37, 99, 235, 0.08));
}

.drawer-player-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #16c784, #059669);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

.drawer-player-info {
  min-width: 0;
  flex: 1;
}

.drawer-player-info h2,
.drawer-player-info p {
  margin: 0;
}

.drawer-player-info h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.drawer-player-info p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.drawer-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.drawer-player-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
}

.drawer-player-meta .drawer-meta-pill--gold {
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.drawer-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.drawer-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.drawer-quick-stats div {
  display: grid;
  gap: 3px;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.drawer-quick-stats span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-quick-stats strong {
  overflow: hidden;
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-quick-stats strong:first-child,
#drawerAvailableCredit {
  color: #10b981;
}

.drawer-quick-stats .negative,
#drawerWeeklyFigure.negative {
  color: #ef4444;
}

.drawer-search {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.58);
}

.drawer-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
}

.drawer-search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 18px;
  -webkit-overflow-scrolling: touch;
}

.drawer-content::-webkit-scrollbar {
  width: 5px;
}

.drawer-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.drawer-section {
  padding-bottom: 8px;
}

.drawer-section[hidden] {
  display: none;
}

.drawer-section h3 {
  margin: 0;
  padding: 13px 20px 7px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.drawer-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 9px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.drawer-item:hover,
.drawer-item:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

.drawer-item[hidden] {
  display: none;
}

.drawer-item > span:first-child {
  display: inline-grid;
  min-width: 42px;
  min-height: 28px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-item strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.83rem;
  font-weight: 850;
}

.drawer-item small {
  padding: 3px 7px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
}

.drawer-item em {
  color: rgba(255, 255, 255, 0.32);
  font-style: normal;
  font-size: 1.15rem;
}

.drawer-item--active {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.drawer-item--agent {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.drawer-item--coming-soon {
  opacity: 0.9;
}

.drawer-item--toggle {
  cursor: default;
}

.service-status.active {
  border: 1px solid rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.13);
  color: #10b981;
}

.service-status.soon {
  border: 1px dashed rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.11);
  color: #fbbf24;
}

.drawer-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.drawer-toggle input {
  position: absolute;
  opacity: 0;
}

.drawer-toggle i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.drawer-toggle i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.drawer-toggle input:checked + i {
  background: #10b981;
}

.drawer-toggle input:checked + i::before {
  transform: translateX(18px);
}

.drawer-version {
  margin: 4px 20px 0;
  color: rgba(255, 255, 255, 0.36);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  text-align: center;
}

.drawer-section--signout {
  padding: 10px 16px 18px;
}

.drawer-signout-btn {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(239, 68, 68, 0.34);
  border-radius: 11px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.coming-soon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(9px);
}

.coming-soon-card {
  position: relative;
  display: grid;
  width: min(390px, 100%);
  gap: 14px;
  padding: 30px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.18), transparent 30%),
    linear-gradient(180deg, #0f2a4e 0%, #0f172a 100%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
  color: #fff;
  text-align: center;
  animation: comingSoonPop 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.coming-soon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.coming-soon-icon-wrap {
  position: relative;
  display: grid;
  min-height: 76px;
  place-items: center;
}

.coming-soon-icon {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 86px;
  min-height: 64px;
  place-items: center;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  color: #fbbf24;
  font-size: 1.1rem;
  font-weight: 950;
  animation: comingSoonFloat 3s ease-in-out infinite;
}

.coming-soon-pulse {
  position: absolute;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22), transparent 68%);
  animation: comingSoonPulse 2.2s ease-in-out infinite;
}

.coming-soon-card h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 950;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.13);
  color: #fbbf24;
  font-size: 0.67rem;
  font-weight: 950;
  text-transform: uppercase;
}

.coming-soon-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  animation: comingSoonDot 1.4s ease-in-out infinite;
}

.coming-soon-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.coming-soon-eta {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}

.coming-soon-eta span,
.coming-soon-progress span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coming-soon-eta strong,
.coming-soon-progress strong {
  color: #fbbf24;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
}

.coming-soon-actions {
  display: grid;
  gap: 8px;
}

.coming-soon-actions button {
  min-height: 50px;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}

#comingSoonNotify {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#comingSoonNotify.is-subscribed {
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

#comingSoonBack {
  border: 0;
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
}

.coming-soon-progress {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.coming-soon-progress > div {
  display: flex;
  justify-content: space-between;
}

.coming-soon-progress-bar {
  position: relative;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.coming-soon-progress-bar i {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.45s ease;
}

.coming-soon-progress-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  animation: comingSoonShine 1.9s linear infinite;
}

@keyframes comingSoonPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes comingSoonFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes comingSoonPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.16);
  }
}

@keyframes comingSoonDot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes comingSoonShine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 560px) {
  .header-time-block {
    min-width: 54px;
    min-height: 38px;
    padding: 5px 7px;
  }

  .header-time {
    font-size: 0.74rem;
  }

  .header-timezone {
    font-size: 0.48rem;
  }

  .apex-drawer {
    width: min(342px, 90vw);
  }

  .drawer-item {
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    padding-inline: 16px;
  }

  .drawer-item > span:first-child {
    min-width: 38px;
    font-size: 0.58rem;
  }
}

/* My Agent messaging system */
.support-panel > .section-header { display: none; }
.agent-screen-shell { display: grid; gap: 8px; width: 100%; }
.agent-screen-top { display: flex; align-items: center; gap: 12px; }
.agent-back-inline { flex-shrink: 0; }
.agent-avatar-large,
.agent-conversation-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
}
.agent-avatar-large { width: 50px; height: 50px; font-size: 0.95rem; }
.agent-screen-copy { flex: 1; min-width: 0; }
.agent-screen-copy span,
.agent-info-card span,
.agent-stat-grid span,
.agent-route-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.agent-screen-copy strong { display: block; color: #f8fffc; font-size: 1.28rem; line-height: 1.1; }
.agent-screen-copy em,
.agent-info-card p,
.agent-stat-grid em,
.agent-route-grid p,
.agent-audit-note span {
  display: block;
  margin: 4px 0 0;
  color: #9caebd;
  font-style: normal;
  line-height: 1.35;
}
.agent-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}
.agent-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}
.agent-tab-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 2px;
  scrollbar-width: none;
}
.agent-tab-row::-webkit-scrollbar { display: none; }
.agent-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7e4;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}
.agent-tab--active { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.16); color: #34d399; }
.agent-tab b {
  display: inline-grid;
  min-width: 18px;
  min-height: 18px;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
}
.agent-pane-stack { width: 100%; }
.agent-pane { display: none; }
.agent-pane--active { display: grid; gap: 12px; }
.agent-info-card,
.agent-stat-grid article,
.agent-route-grid article,
.agent-audit-note {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.agent-info-card--primary {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.55));
}
.agent-info-card strong,
.agent-stat-grid strong,
.agent-route-grid strong,
.agent-audit-note strong {
  display: block;
  margin-top: 5px;
  color: #f8fffc;
  font-size: 1rem;
}
.agent-stat-grid,
.agent-route-grid,
.agent-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.agent-contact-grid button {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  color: #f8fffc;
  text-align: left;
}
.agent-contact-grid span { display: block; color: #34d399; font-size: 0.68rem; font-weight: 950; text-transform: uppercase; }
.agent-contact-grid strong { display: block; margin-top: 6px; font-size: 0.9rem; }
.agent-messages-pane {
  position: relative;
  min-height: min(620px, calc(100vh - 190px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.58);
}
.agent-conversation-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.18), rgba(15, 23, 42, 0));
}
.agent-conversation-back {
  display: grid;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
  font-size: 1rem;
  font-weight: 950;
}
.agent-conversation-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.agent-conversation-avatar { width: 42px; height: 42px; position: relative; }
.agent-conversation-avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border: 2px solid #0f172a;
  border-radius: 50%;
  background: #22c55e;
}
.agent-conversation-copy { min-width: 0; }
.agent-conversation-header strong {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #fff;
  white-space: nowrap;
}
.agent-conversation-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-conversation-header strong span {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 0.62rem;
}
.agent-conversation-header em {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #9caebd;
  font-size: 0.74rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-conversation-header em i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.agent-oversight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-size: 0.66rem;
  font-weight: 950;
  white-space: nowrap;
}
.agent-oversight-pill span {
  color: #fbbf24;
  font-size: 0.54rem;
}
.agent-oversight-pill.is-active {
  animation: agentOversightPulse 2s ease-in-out infinite;
}
@keyframes agentOversightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.1); }
}
.agent-reader-stack {
  display: flex;
  align-items: center;
}
.agent-reader-stack span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-left: -7px;
  border: 2px solid #0f172a;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 950;
}
.agent-reader-stack__master,
.agent-reader-stack__oversight { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.agent-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.agent-message-info {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-weight: 950;
}
.agent-encryption-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.3));
}
.agent-encryption-banner > span {
  display: grid;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  font-size: 0.86rem;
  font-weight: 950;
}
.agent-encryption-banner strong { display: block; color: #34d399; font-size: 0.74rem; }
.agent-encryption-banner div { min-width: 0; }
.agent-encryption-banner small {
  display: block;
  margin-top: 2px;
  color: #9caebd;
  font-size: 0.68rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}
.agent-master-observing,
.agent-pinned {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fbbf24;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.12), transparent);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  animation: agentOversightBannerSlide 0.35s ease;
}
.agent-master-observing {
  display: grid;
  gap: 3px;
  text-align: left;
}
.agent-master-observing strong {
  color: #fbbf24;
  font-size: 0.74rem;
}
.agent-master-observing span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  line-height: 1.35;
}
.agent-master-observing[hidden] { display: none; }
@keyframes agentOversightBannerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.agent-pinned {
  display: grid;
  gap: 6px;
  color: #f6e6ad;
  background: rgba(0, 0, 0, 0.22);
}
.agent-pinned strong { color: #fbbf24; font-size: 0.68rem; text-transform: uppercase; }
.agent-pinned span {
  padding: 7px 8px;
  border-left: 3px solid #fbbf24;
  border-radius: 0 7px 7px 0;
  background: rgba(251, 191, 36, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: normal;
}
.agent-message-list {
  height: min(430px, calc(100vh - 380px));
  min-height: 260px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.agent-date-separator { display: flex; justify-content: center; color: var(--muted); font-size: 0.65rem; font-weight: 950; text-transform: uppercase; }
.agent-date-separator span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.agent-message { position: relative; max-width: 82%; }
.agent-message--highlight .agent-message-bubble {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.32);
}
.agent-message--starred { position: relative; }
.agent-message--starred::after {
  content: "Star";
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  font-size: 0.54rem;
  font-weight: 950;
  text-transform: uppercase;
}
.agent-message--player { align-self: flex-end; }
.agent-message--agent { align-self: flex-start; }
.agent-message--master,
.agent-message--oversight { align-self: center; max-width: 92%; }
.agent-message-bubble { padding: 10px 12px; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, 0.08); }
.agent-message--player .agent-message-bubble { border-bottom-right-radius: 4px; background: linear-gradient(135deg, #10b981, #059669); }
.agent-message--agent .agent-message-bubble { border-bottom-left-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.07); }
.agent-message--master .agent-message-bubble,
.agent-message--oversight .agent-message-bubble { border: 1px solid rgba(251, 191, 36, 0.32); background: rgba(251, 191, 36, 0.12); text-align: center; }
.agent-message-bubble p { margin: 0; line-height: 1.38; }
.agent-message-category {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agent-message-category--urgent,
.agent-message-category--dispute { color: #fecaca; }
.agent-message footer { display: flex; align-items: center; gap: 6px; margin-top: 3px; padding: 0 5px; color: #7d8f9b; font-size: 0.65rem; }
.agent-message--player footer { justify-content: flex-end; }
.agent-message footer em { color: #cbd5e1; font-style: normal; }
.agent-message footer em.read { color: #60a5fa; }
.agent-message-actions {
  display: flex;
  gap: 5px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, max-height 0.16s ease, margin-top 0.16s ease;
}
.agent-message:hover .agent-message-actions,
.agent-message:focus-within .agent-message-actions {
  max-height: 28px;
  margin-top: 4px;
  opacity: 1;
  pointer-events: auto;
}
.agent-message--player .agent-message-actions { justify-content: flex-end; padding-right: 4px; }
.agent-message--agent .agent-message-actions,
.agent-message--master .agent-message-actions,
.agent-message--oversight .agent-message-actions { justify-content: flex-start; padding-left: 4px; }
.agent-message-actions button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #93c5fd;
  font-size: 0.64rem;
  font-weight: 900;
}
.agent-message-actions button:hover {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(30, 64, 175, 0.34);
}
.agent-attachment { margin-top: 8px; overflow: hidden; border-radius: 10px; }
.agent-attachment--image img,
.agent-attachment--video video { display: block; max-width: 240px; width: 100%; }
.agent-attachment--video figcaption { padding: 4px 8px; color: #cbd5e1; background: rgba(0, 0, 0, 0.35); font-size: 0.66rem; }
.agent-attachment--voice { display: grid; gap: 6px; min-width: 210px; padding: 9px; background: rgba(0, 0, 0, 0.22); }
.agent-voice-row { display: flex; align-items: center; gap: 8px; }
.agent-attachment--voice button { width: 30px; height: 30px; border-radius: 50%; background: #10b981; color: #fff; }
.agent-attachment--voice span { display: flex; align-items: center; flex: 1; gap: 2px; }
.agent-attachment--voice i { width: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.58); }
.agent-transcript-toggle {
  width: max-content !important;
  height: auto !important;
  padding: 4px 8px;
  border-radius: 999px !important;
  background: rgba(96, 165, 250, 0.12) !important;
  color: #93c5fd !important;
  font-size: 0.62rem;
  font-weight: 900;
}
.agent-voice-transcript {
  padding: 7px 9px;
  border-left: 3px solid #60a5fa;
  border-radius: 0 7px 7px 0;
  background: rgba(96, 165, 250, 0.08);
  color: #dbeafe;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}
.agent-attachment--ticket {
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}
.agent-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.agent-ticket-header strong {
  color: #fff;
  font-size: 0.82rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.agent-ticket-header span {
  padding: 2px 7px;
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
  font-size: 0.56rem;
  font-weight: 950;
  text-transform: uppercase;
}
.agent-attachment--ticket > span,
.agent-attachment--ticket > em { color: #cbd5e1; font-size: 0.76rem; font-style: normal; }
.agent-ticket-view {
  min-height: 32px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}
.agent-ticket-view:hover { background: rgba(0, 0, 0, 0.34); }
.agent-ticket-picker { display: grid; gap: 6px; padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(15, 23, 42, 0.95); }
.agent-ticket-picker[hidden] { display: none; }
.agent-ticket-picker strong { color: #fbbf24; font-size: 0.7rem; text-transform: uppercase; }
.agent-ticket-picker button { display: flex; justify-content: space-between; gap: 10px; padding: 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: #fff; }
.agent-ticket-picker em { color: #9caebd; font-style: normal; }
.agent-composer-shell { border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(15, 23, 42, 0.96); }
.agent-smart-replies {
  display: grid;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.16);
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.1), rgba(16, 185, 129, 0.05));
}
.agent-smart-replies[hidden] { display: none; }
.agent-smart-replies div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agent-smart-replies span {
  color: #93c5fd;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.agent-smart-replies em { color: #9caebd; font-size: 0.62rem; font-style: normal; }
.agent-smart-replies section {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.agent-smart-replies section::-webkit-scrollbar { display: none; }
.agent-smart-replies button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.agent-replying { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-left: 3px solid #60a5fa; background: rgba(96, 165, 250, 0.08); }
.agent-replying span { color: #60a5fa; font-size: 0.68rem; font-weight: 900; }
.agent-replying strong { flex: 1; min-width: 0; overflow: hidden; color: #dbeafe; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.agent-replying button { color: #fff; }
.agent-category-row { display: flex; gap: 5px; overflow-x: auto; padding: 8px 10px 0; scrollbar-width: none; }
.agent-category-row::-webkit-scrollbar { display: none; }
.agent-category-row button { flex-shrink: 0; min-height: 28px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; color: #a9b8c5; font-size: 0.68rem; font-weight: 900; }
.agent-category-row button.active { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.14); color: #34d399; }
.agent-attachment-preview { display: flex; gap: 7px; overflow-x: auto; padding: 8px 10px 0; }
.agent-attachment-preview figure {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}
.agent-attachment-preview img,
.agent-attachment-preview video { width: 100%; height: 100%; object-fit: cover; }
.agent-attachment-preview figure.ticket,
.agent-attachment-preview figure.voice { width: 120px; place-items: start; padding: 8px; color: #fff; }
.agent-attachment-preview span { color: #9caebd; font-size: 0.68rem; }
.agent-attachment-preview button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(239, 68, 68, 0.9); color: #fff; }
.agent-composer {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
  align-items: end;
  gap: 8px;
  padding: 9px 10px 11px;
}
.agent-attach-button,
.agent-send-button,
.agent-schedule-button {
  display: grid;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 950;
}
.agent-attach-button { background: rgba(96, 165, 250, 0.12); color: #93c5fd; }
.agent-schedule-button {
  border: 1px solid rgba(251, 191, 36, 0.26);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}
.agent-send-button {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  box-shadow: 0 7px 18px rgba(16, 185, 129, 0.22);
}
.agent-send-button:disabled { background: rgba(255, 255, 255, 0.1); color: #748595; }
.agent-schedule-button svg,
.agent-send-button svg {
  width: 20px;
  height: 20px;
  fill: none;
}
.agent-schedule-button svg circle,
.agent-schedule-button svg path {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
}
.agent-send-button svg path { fill: currentColor; }
.agent-input-wrapper {
  min-width: 0;
  min-height: 42px;
  max-height: 110px;
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}
.agent-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  max-height: 96px;
  padding: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.35;
}
.agent-input-wrapper:focus-within { border-color: rgba(16, 185, 129, 0.42); }
.agent-attach-menu {
  position: absolute;
  left: 8px;
  bottom: 58px;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 168px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.agent-attach-menu[hidden] { display: none; }
.agent-attach-menu button { padding: 9px 10px; border-radius: 8px; color: #fff; text-align: left; }
.agent-attach-menu button:hover { background: rgba(255, 255, 255, 0.07); }
.agent-search-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.98), rgba(15, 23, 42, 0.98));
}
.agent-search-overlay[hidden] { display: none; }
.agent-search-header {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.agent-search-header button {
  min-width: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}
.agent-search-header input {
  flex: 1;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.agent-search-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}
.agent-search-filters::-webkit-scrollbar { display: none; }
.agent-search-filters button {
  flex-shrink: 0;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #b8c7d3;
  font-size: 0.68rem;
  font-weight: 900;
}
.agent-search-filters button.active {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}
.agent-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.agent-search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  width: 100%;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
}
.agent-search-result span { color: #93c5fd; font-size: 0.72rem; font-weight: 900; }
.agent-search-result em { color: #7d8f9b; font-size: 0.66rem; font-style: normal; }
.agent-search-result strong {
  grid-column: 1 / -1;
  color: #e5f0ef;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}
.agent-search-result mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}
.agent-search-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 28px;
  color: #9caebd;
  text-align: center;
}
.agent-search-empty strong { color: #fff; }
.agent-context-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}
.agent-context-menu[hidden] { display: none; }
.agent-context-menu button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  text-align: left;
}
.agent-context-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.agent-context-menu button.danger { color: #fca5a5; }
.agent-schedule-backdrop {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(5px);
}
.agent-schedule-backdrop[hidden] { display: none; }
.agent-schedule-card {
  width: min(100%, 360px);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #1e3a8a, #0f172a);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
.agent-schedule-card h3 { margin: 0; color: #fff; }
.agent-schedule-card p { margin: 0; color: #b8c7d3; font-size: 0.82rem; line-height: 1.4; }
.agent-schedule-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.agent-schedule-presets button,
.agent-schedule-card footer button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}
.agent-schedule-presets button.active {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}
.agent-schedule-card input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.agent-schedule-card footer { display: flex; justify-content: flex-end; gap: 8px; }
.agent-schedule-card footer button:last-child {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}
.agent-bet-reference {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
}
.agent-bet-tooltip {
  position: fixed;
  z-index: 100;
  display: grid;
  gap: 3px;
  min-width: 230px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
}
.agent-bet-tooltip strong { color: #fbbf24; }
.agent-bet-tooltip span,
.agent-bet-tooltip em { color: #cbd5e1; font-size: 0.74rem; font-style: normal; }
.agent-empty-message { display: grid; place-items: center; min-height: 130px; color: #9caebd; text-align: center; }
.agent-empty-message strong { color: #fff; }

.agent-live-chat-pane {
  min-height: min(620px, calc(100vh - 190px));
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.13), rgba(2, 6, 23, 0.64) 45%);
}
.live-chat-intro {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 16px;
  text-align: center;
}
.live-chat-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(37, 99, 235, 0.1));
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}
.live-chat-intro h2 { margin: 0; color: #fff; font-size: 1.25rem; }
.live-chat-intro p,
.live-chat-intro small {
  max-width: 420px;
  margin: 0;
  color: #9caebd;
  line-height: 1.45;
}
.live-chat-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 380px);
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  text-align: left;
}
.live-chat-status-card i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.75);
}
.live-chat-status-card strong { display: block; color: #34d399; font-size: 0.86rem; }
.live-chat-status-card span { display: block; margin-top: 2px; color: #b8c7d3; font-size: 0.74rem; }
.live-chat-topic-grid {
  display: grid;
  width: min(100%, 380px);
  gap: 7px;
}
.live-chat-topic-grid > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}
.live-chat-topic-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-weight: 850;
  text-align: left;
}
.live-chat-topic-grid button.active {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.16);
  color: #dbeafe;
}
.live-chat-topic-grid b {
  display: grid;
  min-width: 52px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  font-size: 0.62rem;
  text-transform: uppercase;
}
.live-chat-start-button {
  width: min(100%, 380px);
  min-height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}
.live-chat-start-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #748595;
}
.live-chat-session {
  display: flex;
  flex-direction: column;
  min-height: inherit;
}
.live-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(15, 23, 42, 0));
}
.live-chat-agent-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  font-weight: 950;
}
.live-chat-header div:nth-child(2) { flex: 1; min-width: 0; }
.live-chat-header strong { display: block; color: #fff; }
.live-chat-header span { display: block; margin-top: 2px; color: #9caebd; font-size: 0.74rem; }
.live-chat-header button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-weight: 900;
}
.live-chat-message-list {
  flex: 1;
  min-height: 310px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.live-chat-message {
  max-width: 84%;
  display: grid;
  gap: 3px;
}
.live-chat-message div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1.38;
}
.live-chat-message footer {
  color: #7d8f9b;
  font-size: 0.65rem;
}
.live-chat-message--player {
  align-self: flex-end;
}
.live-chat-message--player div {
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.live-chat-message--office {
  align-self: flex-start;
}
.live-chat-message--office div {
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.18);
}
.live-chat-composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.96);
}
.live-chat-composer input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.live-chat-composer input:focus { border-color: rgba(96, 165, 250, 0.45); }
.live-chat-composer button {
  min-width: 64px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  font-weight: 950;
}
.live-chat-rating-panel {
  width: min(100%, 380px);
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
}
.live-chat-rating-panel strong { color: #fff; }
.live-chat-rating-panel div { display: flex; justify-content: center; gap: 6px; }
.live-chat-rating-panel button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #64748b;
  font-size: 1.2rem;
}
.live-chat-rating-panel button.selected { color: #fbbf24; transform: scale(1.08); }

@media (max-width: 720px) {
  .agent-stat-grid,
  .agent-route-grid,
  .agent-contact-grid { grid-template-columns: 1fr; }
  .agent-messages-pane {
    border-radius: 12px;
    min-height: min(680px, calc(100vh - 130px));
  }
  .agent-conversation-header {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }
  .agent-reader-stack,
  .agent-oversight-pill {
    display: none;
  }
  .agent-header-actions {
    gap: 4px;
    margin-left: 0;
  }
  .agent-message-info,
  .agent-conversation-back {
    width: 32px;
    height: 32px;
  }
  .agent-conversation-avatar {
    width: 38px;
    height: 38px;
  }
  .agent-conversation-header strong {
    font-size: 0.88rem;
  }
  .agent-conversation-header em {
    font-size: 0.68rem;
  }
  .agent-encryption-banner,
  .agent-master-observing,
  .agent-pinned {
    padding-right: 10px;
    padding-left: 10px;
  }
  .agent-message-list {
    height: min(455px, calc(100vh - 350px));
    min-height: 260px;
  }
  .agent-message { max-width: 92%; }
  .agent-live-pill { display: none; }
  .agent-tab {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.72rem;
  }
  .agent-composer {
    grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
    gap: 6px;
    padding: 8px;
  }
  .agent-attach-button,
  .agent-send-button,
  .agent-schedule-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 374px) {
  .agent-header-actions .agent-message-info:first-child {
    display: none;
  }
  .agent-conversation-header {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
  }
  .agent-tab b:not(.agent-tab-badge--available) {
    display: none;
  }
  .agent-encryption-banner small,
  .agent-master-observing span {
    font-size: 0.64rem;
  }
}

/* Sports shortcuts use progressive disclosure: top markets first, full catalog on demand. */
.pph-sport-strip {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: visible;
}

.pph-sport-strip .sports-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pph-sport-strip .sport-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 84px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pph-sport-strip .sport-tile:hover,
.pph-sport-strip .sport-tile.active {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(96, 165, 250, 0.09);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.pph-sport-strip .sport-tile--live {
  border-color: rgba(239, 68, 68, 0.32);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.11), rgba(220, 38, 38, 0.045));
}

.pph-sport-strip .sport-tile--live .label {
  color: #fb7185;
}

.pph-sport-strip .sport-tile--live .icon {
  animation: livePulse 1.5s infinite;
}

.pph-sport-strip .sport-tile--coming-soon {
  opacity: 0.62;
  border-color: rgba(167, 139, 250, 0.22);
  border-style: dashed;
  background: rgba(167, 139, 250, 0.055);
}

.pph-sport-strip .sport-tile--coming-soon:hover {
  opacity: 0.86;
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(167, 139, 250, 0.1);
}

.pph-sport-strip .badge--count,
.pph-sport-strip .sport-soon-badge {
  position: absolute;
  top: 6px;
  right: 7px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.pph-sport-strip .badge--count {
  color: rgba(255, 255, 255, 0.66);
}

.pph-sport-strip .sport-tile--live .badge--count {
  color: #fb7185;
}

.pph-sport-strip .sport-soon-badge {
  padding: 3px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  letter-spacing: 0.04em;
}

.pph-sport-strip .icon {
  font-size: 1.5rem;
  line-height: 1;
}

.pph-sport-strip .label {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sports-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin: 10px 0;
  padding: 10px 16px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.11), rgba(59, 130, 246, 0.05));
  color: #93c5fd;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sports-expand-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.52);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.17), rgba(59, 130, 246, 0.08));
}

.sports-expand-btn .expand-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
  font-size: 0.68rem;
}

.sports-expand-btn .expand-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.sports-expand-btn[data-expanded="true"] .expand-arrow {
  transform: rotate(180deg);
}

.sports-expand-btn[data-expanded="true"] .expand-count {
  display: none;
}

.sports-grid--more {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 360ms cubic-bezier(0.4, 0, 0.2, 1), opacity 240ms ease, margin-top 240ms ease;
}

.sports-grid--more.is-expanded {
  max-height: 760px;
  margin-top: 8px;
  opacity: 1;
  pointer-events: auto;
}

.sports-grid--more.is-expanded .sport-tile {
  animation: tileSlideIn 320ms ease both;
}

.sports-grid--more.is-expanded .sport-tile:nth-child(1) { animation-delay: 30ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(2) { animation-delay: 55ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(3) { animation-delay: 80ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(4) { animation-delay: 105ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(5) { animation-delay: 130ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(6) { animation-delay: 155ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(7) { animation-delay: 180ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(8) { animation-delay: 205ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(9) { animation-delay: 230ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(10) { animation-delay: 255ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(11) { animation-delay: 280ms; }
.sports-grid--more.is-expanded .sport-tile:nth-child(12) { animation-delay: 305ms; }

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

@media (max-width: 768px) {
  .pph-sport-strip .sports-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .pph-sport-strip {
    padding: 10px;
  }

  .pph-sport-strip .sports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .pph-sport-strip .sport-tile {
    min-height: 74px;
    padding: 10px 5px;
  }

  .pph-sport-strip .icon {
    font-size: 1.25rem;
  }

  .pph-sport-strip .label {
    font-size: 0.64rem;
  }
}

/* Definitive player header: one HOME icon, then MY AGENT, with all services in the strip. */
.pph-topbar.apex-player-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(5, 10, 14, 0.97));
  backdrop-filter: blur(14px);
}

.pph-topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
}

.pph-brand-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pph-topbar.apex-player-header .mobile-menu-button {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 1.1rem;
}

.pph-topbar.apex-player-header .pph-logo {
  min-width: 0;
}

.pph-topbar.apex-player-header .pph-logo strong {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}

.pph-topbar.apex-player-header .pph-logo span {
  font-size: clamp(1.02rem, 3.2vw, 1.35rem);
}

.pph-topbar.apex-player-header .pph-logo small {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.pph-topbar.apex-player-header .pph-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.header-utility-hidden,
.pph-topbar.apex-player-header .mode-header-figure {
  display: none !important;
}

.header-rank-button,
.header-lang-button,
.pph-topbar.apex-player-header .header-time-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.header-rank-button {
  position: relative;
  width: 38px;
  height: 38px;
}

.header-rank-button .rank-diamond {
  font-size: 1rem;
}

.header-rank-button .rank-number {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #0f172a;
  border-radius: 999px;
  background: #3b82f6;
  color: #031022;
  font-size: 0.68rem;
  font-weight: 950;
}

.header-lang-button {
  height: 38px;
  gap: 4px;
  padding: 0 9px;
}

.header-lang-button strong {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.pph-topbar.apex-player-header .header-time-block {
  min-width: 56px;
  height: 42px;
  padding: 3px 8px;
  flex-direction: column;
}

.pph-topbar.apex-player-header .header-time {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.pph-topbar.apex-player-header .header-timezone {
  font-size: 0.56rem;
}

.pph-topbar.apex-player-header .pph-user {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.pph-topbar.apex-player-header .pph-home-button.header-home-btn {
  grid-column: auto;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  gap: 0;
  border: 1.5px solid rgba(96, 165, 250, 0.44);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(59, 130, 246, 0.08));
  color: #93c5fd;
}

.pph-topbar.apex-player-header .pph-home-button.header-home-btn:hover,
.pph-topbar.apex-player-header .pph-home-button.header-home-btn.active {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(59, 130, 246, 0.14));
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.22);
}

.pph-topbar.apex-player-header .header-agent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Verticals strip: top-level product navigation above sports. */
.pph-topbar.apex-player-header .header-row--verticals {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
  border-top: 1px solid rgba(96, 165, 250, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pph-topbar.apex-player-header .verticals-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.pph-topbar.apex-player-header .verticals-strip::-webkit-scrollbar {
  height: 3px;
}

.pph-topbar.apex-player-header .verticals-strip::-webkit-scrollbar-track {
  background: transparent;
}

.pph-topbar.apex-player-header .verticals-strip::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.2);
  border-radius: 2px;
}

.pph-topbar.apex-player-header .verticals-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.4);
}

.pph-topbar.apex-player-header .verticals-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 2;
}

.pph-topbar.apex-player-header .verticals-fade--left {
  left: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), transparent);
}

.pph-topbar.apex-player-header .verticals-fade--right {
  right: 0;
  background: linear-gradient(270deg, rgba(15, 23, 42, 0.95), transparent);
}

.pph-topbar.apex-player-header .vertical-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-width: max-content;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.012em;
  white-space: nowrap;
  transition: all 0.18s ease;
  scroll-snap-align: start;
}

.pph-topbar.apex-player-header .vertical-pill:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.pph-topbar.apex-player-header .vertical-pill:active {
  transform: translateY(0) scale(0.97);
}

.pph-topbar.apex-player-header .vertical-pill--active {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.15));
  color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.3) inset;
}

.pph-topbar.apex-player-header .vertical-pill--active:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(59, 130, 246, 0.2));
}

.pph-topbar.apex-player-header .vertical-pill--soon {
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.06);
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.8;
}

.pph-topbar.apex-player-header .vertical-pill--soon:hover {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.12);
  color: #fff;
  opacity: 1;
}

.pph-topbar.apex-player-header .vertical-icon {
  font-size: 14px;
  line-height: 1;
}

.pph-topbar.apex-player-header .vertical-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.018em;
}

.pph-topbar.apex-player-header .vertical-soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.pph-topbar.apex-player-header .live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ef4444;
  animation: livePulse 1.5s ease-in-out infinite;
}

.pph-topbar.apex-player-header .sports-service-strip,
.pph-topbar.apex-player-header .sports-quick-nav {
  position: relative;
  top: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.pph-topbar.apex-player-header .sports-quick-nav {
  gap: 4px;
  padding: 6px 14px;
  background: rgba(3, 7, 18, 0.58);
  scrollbar-width: none;
}

.pph-topbar.apex-player-header .header-row--quicknav {
  display: flex !important;
  gap: 4px;
  width: 100%;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.pph-topbar.apex-player-header .header-row--quicknav::-webkit-scrollbar {
  display: none;
}

.pph-topbar.apex-player-header .header-row--quicknav .sports-quick-nav {
  width: 100% !important;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.pph-topbar.apex-player-header .header-row--quicknav .sports-quick-nav::-webkit-scrollbar {
  display: none;
}

.pph-topbar.apex-player-header .quicknav-tab {
  flex-shrink: 0;
  white-space: nowrap;
}

.pph-topbar.apex-player-header .sports-quick-nav::-webkit-scrollbar {
  display: none;
}

.pph-topbar.apex-player-header .service-pill,
.pph-topbar.apex-player-header .sports-quick-nav button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.pph-topbar.apex-player-header .service-pill:hover,
.pph-topbar.apex-player-header .service-pill.is-active,
.pph-topbar.apex-player-header .service-pill.active,
.pph-topbar.apex-player-header .sports-quick-nav button:hover,
.pph-topbar.apex-player-header .sports-quick-nav button.active {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #bbf7d0;
}

.pph-topbar.apex-player-header .service-pill--live {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.1);
  color: #ff6b6b;
}

.pph-topbar.apex-player-header .service-pill--special {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.09);
  color: #fbbf24;
}

.pph-topbar.apex-player-header .service-pill--soon {
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(167, 139, 250, 0.07);
  color: rgba(255, 255, 255, 0.72);
}

.pph-topbar.apex-player-header .service-pill em,
.pph-topbar.apex-player-header .service-pill small,
.pph-topbar.apex-player-header .sports-quick-nav em {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 950;
}

.pph-topbar.apex-player-header .service-pill--live em {
  background: rgba(239, 68, 68, 0.18);
  color: #ff8a8a;
}

.pph-topbar.apex-player-header .service-pill--special em {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.pph-topbar.apex-player-header .service-pill small {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
}

.pph-topbar.apex-player-header .services-divider {
  display: inline-block;
  width: 1px;
  min-width: 1px;
  height: 22px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.13);
}

@media (max-width: 768px) {
  .pph-topbar.apex-player-header .header-rank-button,
  .pph-topbar.apex-player-header .header-lang-button,
  .pph-topbar.apex-player-header .pph-user {
    display: none;
  }
}

@media (max-width: 480px) {
  .pph-topbar-main {
    min-height: 62px;
    padding: 8px 10px;
    gap: 8px;
  }

  .pph-brand-zone {
    gap: 9px;
  }

  .pph-topbar.apex-player-header .mobile-menu-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .pph-topbar.apex-player-header .pph-logo strong {
    font-size: 1.38rem;
  }

  .pph-topbar.apex-player-header .pph-logo span {
    font-size: 1.02rem;
  }

  .pph-topbar.apex-player-header .pph-logo small {
    display: none;
  }

  .pph-topbar.apex-player-header .header-time-block {
    display: none;
  }

  .pph-topbar.apex-player-header .pph-home-button.header-home-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .pph-topbar.apex-player-header .header-agent-btn {
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .pph-topbar.apex-player-header .sports-service-strip,
  .pph-topbar.apex-player-header .sports-quick-nav {
    padding: 5px 12px;
  }

  .pph-topbar.apex-player-header .verticals-strip {
    gap: 5px;
    padding: 5px 12px;
  }

  .pph-topbar.apex-player-header .sports-service-strip {
    gap: 4px;
  }

  .pph-topbar.apex-player-header .sports-quick-nav {
    padding: 5px 12px;
  }

  .pph-topbar.apex-player-header .vertical-pill {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .pph-topbar.apex-player-header .vertical-icon {
    font-size: 0.88rem;
  }

  .pph-topbar.apex-player-header .service-pill,
  .pph-topbar.apex-player-header .sports-quick-nav button {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .pph-topbar.apex-player-header .vertical-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.68rem;
  }
}

/* ===== APEX dense odds board (real-feed table layout) — added for the dense-table redesign ===== */
.pph-odds-board.apex-dense { display: block; margin: 0; }
.apex-dense .board-section {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.apex-dense .board-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--line);
}
.apex-dense .board-section-count { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
/* ONE shared grid token for the section header AND every game row: time | teams | 3 markets | more.
   Columns align by construction — the four old un-shared grids are gone. */
/* Sub-phase D — shared LIGHT palette. EXTEND this selector list as each panel is converted to light
   (board -> header -> sidebar -> rail). Re-values the dark :root tokens for these subtrees only; the
   rest of the app shell keeps its dark tokens until its panel is converted. */
.apex-dense,
.pph-topbar,
.sports-service-strip,
.sports-quick-nav,
.pph-left-rail,
.pph-board-tabs {
  --bg: #f2f4f7;
  --panel: #ffffff;
  --panel-strong: #eaeef4;
  --ink: #111827;
  --muted: #475569;               /* secondary text / juice — dark enough to stay legible on white */
  --line: #dfe4ea;
  --accent: #2563eb;
  --accent-2: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-2-soft: rgba(245, 158, 11, 0.18);
  --row-hover: rgba(37, 99, 235, 0.05);
  --logo-ink: #0b1220;
}
.apex-dense { --board-grid: 56px minmax(150px, 1fr) repeat(3, minmax(68px, 1fr)) 48px; background: var(--bg); }
.apex-dense .board-head {
  display: grid;
  grid-template-columns: var(--board-grid);
  gap: 8px; align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}
.apex-dense .board-head .bh {
  color: var(--muted); font-size: 0.62rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.04em; text-align: center;
}
.apex-dense .board-head .bh-time, .apex-dense .board-head .bh-team { text-align: left; }
/* team header stacks Away (top) / Home (bottom) to label the stacked team column, matching its 6px gap */
.apex-dense .board-head .bh-team { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.apex-dense .board-game {
  display: grid;
  grid-template-columns: var(--board-grid);
  gap: 8px; align-items: center;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
}
.apex-dense .board-game:hover { background: var(--row-hover); }
.apex-dense .board-time {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.apex-dense .board-time .bt-time { font-weight: 800; font-size: 0.76rem; color: var(--ink); }
.apex-dense .board-time .bt-date { font-size: 0.6rem; color: var(--muted); }
/* team column and each market column stack away (top) / home (bottom) within one grid cell */
.apex-dense .board-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-content: center; }
.apex-dense .board-market { display: flex; flex-direction: column; gap: 6px; }
/* every stacked row (team label, market cell, empty draw slot) shares this height so away/home/draw
   line up across the team + market columns */
.apex-dense .board-team { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; }
/* soccer Draw row: no logo; indent the label to sit under the team names (logo 26px + 8px gap) */
.apex-dense .board-team--draw { padding-left: 34px; color: var(--muted); font-weight: 700; }
.apex-dense .board-cell-empty { min-height: 42px; }
.apex-dense .board-team-logo {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.56rem; font-weight: 900; color: var(--logo-ink);
  background: var(--team-color, var(--accent));
}
.apex-dense .board-team-name {
  font-weight: 700; font-size: 0.82rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apex-dense .board-rot { color: var(--muted); font-size: 0.6rem; font-weight: 700; }
.apex-dense .board-more {
  align-self: center; min-height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-strong); color: var(--accent-2);
  font-weight: 800; font-size: 0.68rem;
}
.apex-dense .board-more:hover { filter: brightness(1.12); border-color: var(--accent-2); }

/* odds cells: reuse the existing .market-cell--bet button (betslip click path unchanged), tighten for the board */
.apex-dense .market-cell--bet {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 42px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink);
}
.apex-dense .market-cell--bet .market-line { font-size: 0.62rem; color: var(--muted); }
.apex-dense .market-cell--bet .market-odds { font-size: 0.82rem; font-weight: 800; color: var(--ink); }
/* line markets (Total + spread-equivalent) split the cell horizontally: line on the LEFT, price on
   the RIGHT. Moneyline keeps the centered column layout above. */
.apex-dense .market-cell--bet.market-cell--split {
  flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 4px 8px;
}
/* invert the hierarchy: the LINE is first-class (accent), the juice is secondary (muted). Token-driven
   so the palette follows the light theme in Sub-phase D. */
.apex-dense .market-cell--bet.market-cell--split .market-line { color: var(--accent); font-size: 0.8rem; font-weight: 800; }
.apex-dense .market-cell--bet.market-cell--split .market-odds { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.apex-dense .market-cell--bet:hover { border-color: var(--accent); background: var(--accent-soft); }
.apex-dense .market-cell--bet.added { border-color: var(--accent-2); background: var(--accent-2-soft); color: var(--accent-2); }
.apex-dense .market-cell--bet.blocked { opacity: 0.55; border-color: var(--danger); }
.apex-dense .market-cell--disabled { opacity: 0.4; }

/* narrow mobile: drop the header, shrink the SAME shared grid token (card-like density, still inline odds) */
@media (max-width: 720px) {
  .apex-dense { --board-grid: 44px minmax(96px, 1fr) repeat(3, minmax(52px, 1fr)) 40px; }
  .apex-dense .board-head { display: none; }
  .apex-dense .board-team-name { font-size: 0.76rem; }
}

/* ===== APEX betslip desktop surfacing (Option A) — APPLIED =====
   On desktop (>900px) the slip card is `display:none !important` (styles.css:3581) and the bottom sheet is
   mobile-only, so adding legs showed no slip surface. renderBetslip already writes the legs into #selectedLines
   as .selected-line nodes — this rule simply surfaces that card whenever it holds selected legs and we are NOT
   in the confirmation flow. CSS-only; betslip add logic untouched. Confirmation excluded (:not(.confirmation-active)
   → existing rule styles.css:4222 keeps it hidden there). Mobile (<=900px) untouched. Auto-hides at 0 legs. */
@media (min-width: 901px) {
  /* Surface the slip card during building (it was display:none on desktop). */
  .pph-right-rail:not(.confirmation-active) .confirm-slip-card:has(.selected-line) {
    display: block !important;
  }
  /* Overlap fix (Option A): when the rail holds a building slip, size its implicit rows to content so the slip
     card's grid TRACK grows to its content height — instead of staying collapsed (~30px) and overflowing its
     box onto MY FIGURE / SETTLEMENT. The other cards reflow below in the already-scrollable (overflow:auto) rail.
     Replaces the prior `min-height: max-content` band-aid, which grew the BOX not the TRACK (hence the overlap). */
  .pph-right-rail:not(.confirmation-active):has(.confirm-slip-card .selected-line) {
    grid-auto-rows: max-content;
  }
}

/* D-1: hide the duplicate STARTING SOON section — its "View" cards duplicated the dense board. */
.pph-upcoming-panel {
  display: none;
}

/* De-clutter: remove the welcome hero + Boosted Odds (mock) + the TWO redundant top sport navs.
   Sport navigation is kept ONLY in the left sidebar (.pph-left-rail / #legacySidebar — NOT touched). */
.pph-hero-row { display: none; }          /* WELCOME hero + Boosted Odds card  (index.html:275-293) */
.pph-sport-strip { display: none; }       /* big sport-tile strip #sportsNavStrip (index.html:295-302) */
.header-row--services { display: none; }  /* horizontal sport-chip/pill strip   (index.html:151-181) */

/* Remove the Confirm Quote friction — Place Bet fetches the preview itself (app.js:6419). */
#previewBetslipButton, #stickyPreviewButton { display: none; }

/* Phase 2 — explicit bet-type control (Straight | Parlay), non-silent parlay suggestion,
   and same-event block message. Structure only; the full theme pass is Phase 5. */
.bettype-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.bettype-toggle button {
  min-width: 0;
  white-space: normal;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-weight: 600;
  cursor: pointer;
}
.bettype-toggle button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.bettype-suggestion {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border: 1px dashed #2563eb;
  border-radius: 999px;
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
}
.bettype-blocked {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
  line-height: 1.35;
}

/* ===== Light expandable sidebar tree (sport -> league -> Game Lines), fed from real data ===== */
.pph-left-rail { background: var(--panel); color: var(--ink); }
.pph-left-rail .rail-card { background: var(--panel); border-color: var(--line); }
.pph-left-rail h2 { color: var(--muted); }
/* hide the fake TOP LEAGUES card (fake leagues); the sport-card VIEW MORE is re-wired (expand/collapse all) */
.pph-left-rail .rail-card:has(.league-list) { display: none; }
.pph-left-rail .rail-more {
  margin-top: 6px; padding: 8px 10px; width: 100%;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
  text-align: left; cursor: pointer;
}
.pph-left-rail .rail-more:hover { background: var(--accent-soft); }
/* ===== Rebuilt sidebar menu — matches the BookMaker reference exactly ===== */
.pph-left-rail {
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sb-ink: rgb(76, 76, 76);      /* primary row text */
  --sb-icon: #435a86;             /* navy sport-icon blue */
  --sb-link: #2f6ab5;             /* league / market / active blue */
  --sb-green: #3fa64a;            /* live pulse + LIVE icon */
  --sb-open: #f4f6f8;             /* expanded-group background */
}
/* Force the exact BookMaker system stack on EVERY sidebar text node — buttons/inputs don't inherit
   font-family from UA defaults, so declare it explicitly across the whole rail. */
.pph-left-rail,
.pph-left-rail input,
.pph-left-rail button,
.pph-left-rail h2,
.pph-left-rail span,
.pph-left-rail em,
.pph-left-rail strong,
.pph-left-rail small,
.pph-left-rail a {
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* search box */
.rail-search {
  display: flex; align-items: center; gap: 9px; margin: 0 0 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.rail-search-ic { flex: 0 0 auto; width: 16px; height: 16px; color: var(--sb-link); }
.rail-search input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 13px; color: var(--sb-ink);
}
.rail-search input::placeholder { color: #98a2b3; }
.rail-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* the tree card: rows span edge-to-edge with hairline dividers, like the reference */
.rail-card--tree { padding: 0; overflow: hidden; }
.sport-list { display: flex; flex-direction: column; gap: 0; }
.sb-group + .sb-group,
.sb-row--live { border-bottom: 0; }

/* every row: fixed height, single line, icon + label + optional pulse + chevron */
.sb-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 44px; padding: 0 10px 0 14px; border: 0;
  background: transparent; color: var(--sb-ink); text-align: left;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.2;
}
.sb-row--live, .sb-row--sport { border-bottom: 1px solid var(--line); }
.sb-row--league { border-bottom: 1px solid var(--line); }
.sb-tap {
  display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; height: 100%;
  padding: 0; border: 0; background: transparent; color: inherit; font: inherit;
  letter-spacing: inherit; text-align: left; cursor: pointer;
}
.sb-tap--static { cursor: default; }
.sb-ic { flex: 0 0 auto; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--sb-icon); }
.sb-ic svg { width: 100%; height: 100%; display: block; }
.sb-mk-ic { flex: 0 0 auto; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--sb-link); }
.sb-mk-ic svg { width: 100%; height: 100%; display: block; }
.sb-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* consistent right-side column: [live-pulse (only when present)] | count | chevron */
.sb-live { flex: 0 0 auto; color: var(--sb-green); display: inline-flex; align-items: center; }
.sb-count {
  flex: 0 0 auto; min-width: 26px; text-align: right; color: var(--muted);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sb-all { font-weight: 600; }
.sb-ic--all { color: var(--sb-icon); }
.sb-all.active .sb-label { color: var(--sb-link); }
.sb-row.active .sb-count { color: var(--sb-link); }
.sb-chev {
  flex: 0 0 auto; width: 22px; height: 30px; padding: 0; border: 0; border-radius: 5px;
  background: transparent; color: #b3bccb; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sb-chev--static { cursor: default; }
.sb-chev:hover { color: var(--sb-link); }
.sb-chev-ic { width: 15px; height: 15px; transition: transform 0.15s ease; }
.sb-chev-ic.open { transform: rotate(180deg); }

/* LIVE row (green waves icon) */
.sb-row--live .sb-ic { color: var(--sb-green); }

/* expanded group: light-gray background (matches the reference FUTURES panel) */
.sb-group.open { background: var(--sb-open); }

/* leagues + markets render in blue with their own icons */
.sb-row--league { padding-left: 22px; }
.sb-row--league .sb-ic { color: var(--sb-link); }
.sb-row--league .sb-label { color: var(--sb-link); font-weight: 600; }
.sb-row--league .sb-chev { color: var(--sb-link); }
.sb-row--market {
  padding-left: 34px; min-height: 40px; color: var(--sb-link); font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* hover + active */
.sb-row--live:hover, .sb-row--sport:hover:not(.sb-muted),
.sb-row--league:hover, .sb-row--market:not(.sb-muted):hover { background: rgba(47, 106, 181, 0.06); }
.sb-group.open .sb-row--sport:hover { background: rgba(47, 106, 181, 0.06); }
.sb-row.active { background: var(--accent-soft); }
.sb-row.active > .sb-tap > .sb-label, .sb-row--live.active .sb-label { color: var(--sb-link); }

/* grayed catalog rows: visible but muted + non-interactive (auto-flip when the feed emits data) */
.sb-muted { pointer-events: none; }
.sb-muted .sb-ic, .sb-muted .sb-label, .sb-muted .sb-chev, .sb-muted .sb-mk-ic { color: #aab2bf; }
.sb-empty { padding: 14px; color: var(--muted); font-size: 13px; }

/* Bounded Player board windows preserve current prices and a compact DOM. */
.board-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; font-size: 12px; }
.board-pagination[hidden] { display: none; }
.board-pagination > span { flex: 1 1 180px; }
.board-pagination > button { padding: 7px 10px; white-space: nowrap; }
