/* ── Race Page — Global Reset ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  color: #1e293b;
  /* overflow: hidden; */
  /* height: 100vh; */
}

/* ── HEADER ─────────────────────────────────────────── */
/* .race-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  height: 58px;
}

.race-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  padding: 0 1.25rem;
}

.rh-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.rh-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: auto;
}

.rh-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.rh-nav a:hover { color: #1e293b; background: rgba(0,0,0,0.05); }
.rh-nav a.active { color: #247DC6; } */

.rh-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid #F4F4F4;
    border-radius: 50px;
    padding: 0.25rem;
    width: 100%;
    max-width: max-content;
    margin: 0 auto 2rem;
}

.rh-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  /* letter-spacing: 0.05em; */
  color: #BABABA;
  background: transparent;
  border: none;
  padding: 0.3rem 0.7rem;
 border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

/* .rh-tab svg { width: 13px; height: 13px; } */
.rh-tab:hover { color: #475569; background: rgba(0,0,0,0.05); }
.rh-tab.active { color: #fff; background: #247DC6; }

.rh-join {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: #247DC6;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.rh-join:hover { background: #1a6bb5; }

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.race-layout {
  display: grid;
  grid-template-columns: 185px 270px 1fr 330px;
  border-top: 1px solid #F4F4F4;
  height: calc(100vh - 97px);
  /* margin-top: 58px; */
  overflow: hidden;
}

/* ── LEFT PANEL ──────────────────────────────────────── */
.panel-left {
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Type tabs: Cities | Provinces | Counties */
.pl-type-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.plt-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: transparent;
  border: none;
  padding: 0 0;
  cursor: pointer;
  transition: color 0.2s;
  text-transform: uppercase;
}

.plt-btn + .plt-btn { margin-left: 0.5rem; padding-left: 0.5rem; border-left: 1px solid #e2e8f0; }
.plt-btn:hover { color: #475569; }
.plt-btn.active { color: #1e293b; }

/* Region filter pills */
.pl-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.plr-btn {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.plr-btn:hover { color: #1e293b; border-color: rgba(0,0,0,0.2); }
.plr-btn.active { color: #247DC6; border-color: #247DC6; background: #fff; }

/* Status filter */
.pl-status-filter {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #fafafa;
}

.psf-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.psf-btn:hover { color: #1e293b; background: rgba(0,0,0,0.05); }
.psf-btn.active { color: #247DC6; background: rgba(36,125,198,0.1); }

/* Search */
.pl-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid #EBEBEB;
}

.pl-search svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.pl-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.78rem;
  color: #1e293b;
  font-family: inherit;
}

.pl-search input::placeholder { color: #94a3b8; }

/* City List */
.city-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.3rem 0;
  list-style: none;
}

.city-list::-webkit-scrollbar { width: 4px; }
.city-list::-webkit-scrollbar-track { background: transparent; }
.city-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.city-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 2px solid transparent;
}

.city-item:hover { background: rgba(0,0,0,0.03); }
.city-item.active { background: rgba(36,125,198,0.07); border-left-color: #247DC6; }

.ci-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.ci-rank {
  font-size: 0.65rem;
  font-weight: 700;
  color: #cbd5e1;
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}

.ci-badge {
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.1rem 0.28rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1.4;
}

.ci-badge-free { background: #dcfce7; color: #16a34a; }
.ci-badge-mon  { background: #fff7ed; color: #ea580c; }

.ci-code {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  width: 18px;
  flex-shrink: 0;
}

.ci-info {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ci-country {
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.ci-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #247DC6;
}

.ci-bar {
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.07);
  border-radius: 50px;
  margin: 5px 0;
  overflow: hidden;
}

.ci-bar-fill {
  height: 100%;
  background: #247DC6;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.ci-bar-fill.monitored { background: #F64949; }

/* Left Footer */
.pl-footer {
  border-top: 1px solid rgba(0,0,0,0.07);
  background: #fafafa;
  padding: 0.55rem 0.75rem;
}

.plf-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.plf-bal-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #94a3b8;
  text-transform: uppercase;
}

.plf-bal-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #247DC6;
}

.plf-actions {
  display: flex;
  gap: 0.4rem;flex-wrap: wrap;
}

.plf-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.plf-btn svg { width: 11px; height: 11px; }

.plf-assets { background: #1e293b; color: #fff; }
.plf-assets:hover { background: #0f172a; }

.plf-summit { background: rgba(36,125,198,0.1); color: #247DC6; border: 1px solid rgba(36,125,198,0.2); }
.plf-summit:hover { background: rgba(36,125,198,0.18); }

/* ── GLOBE CENTER ─────────────────────────────────────── */
.globe-wrap {
  display: flex;
  flex-direction: column;
  /* background: radial-gradient(ellipse at center, #eef5ff 0%, #e2ecf8 100%); */
  background: linear-gradient(to bottom, #fff, #e2ecf8  );
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.globe-canvas-area {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.globe-title-overlay {
  position: absolute;
  top: 1.1rem;
  left: 1.4rem;
  z-index: 5;
  pointer-events: none;
  display: none;
}

.gh-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.1rem;
  line-height: 1.2;
}

.gh-sub {
  font-size: 0.68rem;
  color: #64748b;
  margin: 0;
}

.gh-sub a { color: #247DC6; text-decoration: none; }
.gh-sub a:hover { text-decoration: underline; }

#raceGlobe {
  display: block;
  cursor: grab;
  position: absolute;
  top: 0; left: 0;
}

#raceGlobe:active { cursor: grabbing; }

/* Globe Legend */
.globe-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  pointer-events: none;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.gl-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: #475569;
  font-weight: 500;
}

.gl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Globe Hint */
.globe-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: right;
  pointer-events: none;
  line-height: 1.7;
  z-index: 5;
}

.globe-hint.hidden { opacity: 0; }

/* Globe Tooltip — anchored at city dot position */
.globe-tooltip {
  position: absolute;
  display: none;
  background: rgba(15,23,42,0.88);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.35rem 0.65rem 0.4rem;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

/* Small arrow pointing down toward the dot */
.globe-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(15,23,42,0.88);
}

.gt-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.22rem;
}

.gt-meta {
  font-size: 0.63rem;
  font-weight: 500;
  color: #22c55e;
  letter-spacing: 0.03em;
}

/* ── Digital World Identity Modal ───────────────────── */
.dwm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.dwm-overlay.open { display: flex; }

.dwm-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  animation: dwmIn 0.22s ease;
}
@keyframes dwmIn {
  from { opacity:0; transform:scale(0.95) translateY(12px); }
  to   { opacity:1; transform:scale(1)    translateY(0);    }
}

.dwm-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.dwm-close:hover { background: #f1f5f9; color: #1e293b; }

.dwm-header { text-align: center; margin-bottom: 1.1rem; }
.dwm-title  { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.dwm-subtitle { font-size: 0.75rem; color: #64748b; margin-top: 0.2rem; }

.dwm-tabs {
  display: flex;
  gap: 0.25rem;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
}
.dwm-tab {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.dwm-tab.active { background: #1a7a6e; color: #fff; font-weight: 600; }
.dwm-tab:hover:not(.active) { color: #1e293b; background: rgba(0,0,0,0.05); }

/* Pane shared */
.dwm-pane { animation: dwmFade 0.18s ease; }
@keyframes dwmFade { from { opacity:0; } to { opacity:1; } }

.dwm-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.3rem;
  margin-top: 0.9rem;
}
.dwm-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border 0.15s;
}
.dwm-input:focus { border-color: #1a7a6e; background: #fff; }

.dwm-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  appearance: auto;
}

.dwm-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dwm-receive {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.6rem;
  text-align: center;
}
.dwm-receive strong { color: #1a7a6e; }

.dwm-action-btn {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #1a7a6e, #0d6b5e);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.dwm-action-btn:hover { opacity: 0.9; }

.dwm-footnote {
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.7rem;
}

.dwm-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.55;
}
.dwm-link { color: #1a7a6e; text-decoration: underline; }

/* LOGIN pane */
.dwm-qr-blank {
  height: 140px;
}

.dwm-scan-bar {
  text-align: center;
  font-size: 0.72rem;
  color: #475569;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  margin-bottom: 0.9rem;
}

.dwm-login-info {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.dwm-login-steps {
  font-size: 0.75rem;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.6rem;
}
.dwm-download-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a7a6e;
  text-decoration: underline;
}

/* CONVERT swap */
.dwm-swap-row {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0.2rem;
}
.dwm-swap-icon {
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
}

/* BET pane */
.dwm-bet-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.8rem;
}
.dwm-bet-globe { font-size: 1.4rem; }
.dwm-bet-notice-title { font-size: 0.8rem; font-weight: 700; color: #166534; }
.dwm-bet-notice-sub   { font-size: 0.7rem; color: #4ade80; margin-top:0.1rem; }

.dwm-yn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.dwm-yn-card {
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
  border: 1.5px solid;
}
.dwm-yn-yes { background: #f0fdf4; border-color: #86efac; }
.dwm-yn-no  { background: #fff5f5; border-color: #fca5a5; }
.dwm-yn-pct {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.dwm-yn-yes .dwm-yn-pct { color: #16a34a; }
.dwm-yn-no  .dwm-yn-pct { color: #dc2626; }
.dwm-yn-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.dwm-yn-yes .dwm-yn-lbl { color: #16a34a; }
.dwm-yn-no  .dwm-yn-lbl { color: #dc2626; }
.dwm-yn-cents { font-size: 0.65rem; color: #94a3b8; }

/* ── Life Summit External Link Popup ───────────────── */
.els-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(3px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.els-overlay.open { display: flex; }

.els-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  animation: dwmIn 0.2s ease;
}

.els-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.els-sub   { font-size: 0.8rem; color: #64748b; margin-bottom: 1rem; }

.els-url-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  color: #1e293b;
  word-break: break-all;
  margin-bottom: 1.4rem;
}

.els-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.els-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}
.els-cancel { background: #f1f5f9; color: #475569; }
.els-cancel:hover { background: #e2e8f0; }
.els-open   { background: #0f172a; color: #fff; }
.els-open:hover { opacity: 0.88; }

/* AI Judge Section */
.globe-ai-section {
  border-top: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  flex-shrink: 0;
}

.gais-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.75rem;
}

.gais-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.gais-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #247DC6, #1a6bb5);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.gais-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gais-sub {
  font-size: 0.62rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gais-btn {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
  background: transparent;
  border: 1.5px solid #1e293b;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}

.gais-btn:hover { background: #1e293b; color: #fff; }

.gais-prompt {
  font-size: 0.65rem;
  color: #64748b;
  padding: 0.1rem 1rem 0.6rem;
  line-height: 1.5;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 0.5rem;
}

/* Footer Links */
.globe-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.45rem 1rem;
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.globe-footer-links a {
  font-size: 0.65rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.globe-footer-links a:hover { color: #247DC6; }

/* ── RIGHT PANEL ──────────────────────────────────────── */
.panel-right {
  background: #ffffff;
  border-left: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-right::-webkit-scrollbar { width: 3px; }
.panel-right::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

/* State header */
.pr-state-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.prsh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
  transition: background 0.3s;
}

.prsh-dot.free { background: #22c55e; }
.prsh-dot.monitored { background: #ef4444; }

#prStateLabel {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

/* City block */
.pr-city-block {
  padding: 0.7rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.prcb-top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.prcb-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.prcb-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.prcb-meta {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Service tabs */
.pr-service-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.prs-tab {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
}

.prs-tab:hover { color: #475569; }
.prs-tab.active { color: #247DC6; border-bottom-color: #247DC6; }

/* Token block */
.pr-token-block {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.ptb-header {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #247DC6;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.ptb-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.2rem;
}

.ptb-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ptb-change {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 0.12rem;
}

.ptb-change.up   { color: #16a34a; }
.ptb-change.down { color: #dc2626; }

.ptb-trade-link {
  font-size: 0.68rem;
  font-weight: 600;
  color: #247DC6;
  text-decoration: none;
  margin-top: 0.25rem;
}

.ptb-trade-link:hover { text-decoration: underline; }

.ptb-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  margin: 0.45rem 0;
}

.ptb-bar {
  flex: 1;
  border-radius: 1px 1px 0 0;
  min-height: 3px;
}

.ptb-up   { background: #22c55e; }
.ptb-down { background: #fca5a5; }

.ptb-desc {
  font-size: 0.64rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Life Summit */
.pr-life-summit {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.prls-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #7c3aed;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.prls-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.prls-text {
  font-size: 0.65rem;
  color: #64748b;
  margin: 0 0 0.3rem;
  line-height: 1.5;
}

.prls-link {
  font-size: 0.65rem;
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
}

.prls-link:hover { text-decoration: underline; }

/* Section headers */
.pr-section-header {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 0.5rem 1rem 0.2rem;
  flex-shrink: 0;
}

/* Service rows */
.pr-services-list {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 0.2rem;
  flex-shrink: 0;
}

.pr-svc-row {
  display: grid;
  grid-template-columns: 18px 1fr 50px auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 1rem;
}

.psvc-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.42rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.psvc-name {
  font-size: 0.7rem;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psvc-track {
  height: 3px;
  background: rgba(0,0,0,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.psvc-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.psvc-fill-pioneer     { background: #22c55e; }
.psvc-fill-active      { background: #3b82f6; }
.psvc-fill-emerging    { background: #f59e0b; }
.psvc-fill-nascent     { background: #fbbf24; }
.psvc-fill-centralized { background: #ef4444; }
.psvc-fill-na          { background: #e2e8f0; }

.psvc-badge {
  font-size: 0.56rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-align: center;
}

.psvc-pioneer     { background: #dcfce7; color: #16a34a; }
.psvc-active      { background: #dbeafe; color: #1d4ed8; }
.psvc-emerging    { background: #fff7ed; color: #ea580c; }
.psvc-nascent     { background: #fef3c7; color: #d97706; }
.psvc-centralized { background: #fee2e2; color: #dc2626; }
.psvc-na          { color: #94a3b8; background: transparent; }

/* ── Center View System ─────────────────────────────────── */
.ctr-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ctr-view.ctr-scroll { overflow-y: auto; }
.ctr-view.ctr-scroll::-webkit-scrollbar { width: 4px; }
.ctr-view.ctr-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* ── RACE VIEW ────────────────────────────────────────────── */
.rv-header {
  padding: 1rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
  background: #fff;
}

.rv-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.15rem;
}

.rv-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

.rv-stats-row {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
  background: #fafafa;
}

.rv-stat {
  flex: 1;
  padding: 0.7rem 0;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.07);
}

.rv-stat:last-child { border-right: none; }

.rv-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.rv-stat-lbl {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.rv-table-wrap {
  flex: 1;
  overflow-y: auto;
}

.rv-table-wrap::-webkit-scrollbar { width: 4px; }
.rv-table-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.rv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.rv-table thead th {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #f8fafc;
  position: sticky;
  top: 0;
}

.rv-th-rank { width: 36px; }
.rv-th-r    { text-align: right !important; }

.rv-row {
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rv-row:hover { background: rgba(36,125,198,0.04); }
.rv-row.active { background: rgba(36,125,198,0.08); }

.rv-row td { padding: 0.45rem 0.75rem; vertical-align: middle; }

.rv-rank { font-size: 0.65rem; font-weight: 700; color: #cbd5e1; text-align: right; }

.rv-city { display: flex; align-items: center; gap: 0.5rem; }

.rv-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.rv-city-name  { font-size: 0.78rem; font-weight: 600; color: #1e293b; }
.rv-city-country { font-size: 0.62rem; color: #94a3b8; }
.rv-region { font-size: 0.68rem; color: #64748b; }

.rv-type {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.rv-type-free     { background: #dcfce7; color: #16a34a; }
.rv-type-monitored { background: #fff7ed; color: #ea580c; }

.rv-score { font-size: 0.8rem; font-weight: 700; color: #1e293b; text-align: right; }

.rv-change { font-size: 0.72rem; font-weight: 600; text-align: right; }
.rv-change.up   { color: #16a34a; }
.rv-change.down { color: #dc2626; }

.rv-tier {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.rv-tier-pioneer  { background: #dcfce7; color: #16a34a; }
.rv-tier-active   { background: #dbeafe; color: #1d4ed8; }
.rv-tier-emerging { background: #fff7ed; color: #ea580c; }
.rv-tier-nascent  { background: #fef3c7; color: #d97706; }

/* ── MARKETS VIEW ─────────────────────────────────────────── */
.mv-header {
  padding: 1rem 1.5rem 0.7rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
  background: #fff;
}

.mv-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.15rem;
}

.mv-sub { font-size: 0.68rem; color: #94a3b8; }

.mv-global-stats {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
  background: #fafafa;
}

.mv-gstat {
  flex: 1;
  padding: 0.65rem 0;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.07);
}

.mv-gstat:last-child { border-right: none; }

.mv-gstat-val {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.mv-gstat-lbl {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.mv-markets-list {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mv-market-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 0.75rem;
}

.mv-market-top {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.mv-hot {
  font-size: 0.58rem;
  font-weight: 800;
  background: #fff7ed;
  color: #ea580c;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.mv-question {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.mv-market-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.mv-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.mv-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.mv-pct { font-size: 0.72rem; font-weight: 700; color: #16a34a; width: 30px; text-align: right; }

.mv-market-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.62rem;
  color: #94a3b8;
}

.mv-trade-btn {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  color: #247DC6;
  background: rgba(36,125,198,0.08);
  border: 1px solid rgba(36,125,198,0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.mv-trade-btn:hover { background: rgba(36,125,198,0.15); }

/* ── Right Panel Tab Content ──────────────────────────────── */
.pr-tab-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── TRADE TAB ────────────────────────────────────────────── */
.pfs-wrapper {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.pfs-label-text {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.pfs-gradient-bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(to right, #ef4444 0%, #f59e0b 40%, #22c55e 100%);
  position: relative;
  margin-bottom: 0.4rem;
}

.pfs-marker {
  position: absolute;
  top: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1e293b;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: left 0.6s ease;
}

.pfs-ends {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.pfs-end-l { font-size: 0.65rem; font-weight: 800; color: #ef4444; letter-spacing: 0.04em; }
.pfs-end-r { font-size: 0.65rem; font-weight: 800; color: #22c55e; letter-spacing: 0.04em; }

.pfs-desc {
  display: flex;
  justify-content: space-between;
}

.pfs-desc span { font-size: 0.58rem; color: #94a3b8; }

/* Open Markets (in trade tab) */
.pr-open-markets {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pm-item {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pm-item:last-child { border-bottom: none; }

.pm-top {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.pm-hot {
  font-size: 0.56rem;
  font-weight: 800;
  background: #fff7ed;
  color: #ea580c;
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.pm-question {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.pm-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.pm-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(0,0,0,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.pm-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.pm-pct { font-size: 0.68rem; font-weight: 700; color: #16a34a; width: 28px; text-align: right; }
.pm-meta { font-size: 0.6rem; color: #94a3b8; }

/* Trading Ticket */
.pr-trading-ticket {
  padding: 0.7rem 1rem;
}

.pt-question {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.6rem;
}

.pt-bets {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.pt-bet {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.pt-bet:hover { opacity: 0.85; }

.pt-freedom { background: #22c55e; color: #fff; }
.pt-central { background: #ef4444; color: #fff; }

.pt-odds {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
}

.pt-odds-free { color: #22c55e; }
.pt-odds-cent { color: #ef4444; }

/* ── INTEL TAB ────────────────────────────────────────────── */
.pr-intel-score {
  padding: 0.25rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pi-score-row {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
}

.pi-score-name { color: #64748b; font-weight: 500; }

.pi-score-bar {
  height: 5px;
  background: rgba(0,0,0,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.pi-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #247DC6, #38bdf8);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.pi-score-val { font-size: 0.7rem; font-weight: 700; color: #1e293b; text-align: right; }

/* Trend chart */
.pr-intel-trend {
  padding: 0.4rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pit-bars {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  height: 70px;
}

.pit-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pit-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.pit-bar {
  width: 100%;
  background: linear-gradient(180deg, #247DC6, #38bdf8);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}

.pit-label {
  font-size: 0.52rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.3;
}

.pit-val {
  font-size: 0.6rem;
  font-weight: 700;
  color: #475569;
}

/* Network Activity */
.pr-intel-activity {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 0.25rem;
}

.pia-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 1rem;
}

.pia-label { font-size: 0.7rem; color: #64748b; font-weight: 500; }
.pia-val   { font-size: 0.72rem; font-weight: 700; color: #1e293b; }

/* Risk Assessment */
.pr-intel-risk {
  padding-bottom: 0.5rem;
}

.pir-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pir-row:last-child { border-bottom: none; }

.pir-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pir-dot.pir-low  { background: #22c55e; }
.pir-dot.pir-med  { background: #f59e0b; }
.pir-dot.pir-high { background: #ef4444; }

.pir-info { flex: 1; min-width: 0; }

.pir-name { font-size: 0.7rem; font-weight: 600; color: #1e293b; }
.pir-sub  { font-size: 0.6rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pir-badge {
  font-size: 0.56rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pir-badge-low  { background: #dcfce7; color: #16a34a; }
.pir-badge-med  { background: #fef3c7; color: #d97706; }
.pir-badge-high { background: #fee2e2; color: #dc2626; }

/* ── SERVICES PANEL (col 2) ────────────────────────────── */
.panel-services {
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ps-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.ps-tab {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
}

.ps-tab:hover { color: #475569; }
.ps-tab.active { color: #247DC6; border-bottom-color: #247DC6; }

.ps-tab-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ps-tab-content::-webkit-scrollbar { width: 3px; }
.ps-tab-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

/* ── TRADE PANEL (col 4) ───────────────────────────────── */
.panel-trade {
  background: #ffffff;
  border-left: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-trade::-webkit-scrollbar { width: 3px; }
.panel-trade::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.pt-trade-header {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #247DC6;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #fafafa;
  flex-shrink: 0;
}

/* ── BETTING UI (inside Trading Ticket) ────────────────── */
.pr-trading-ticket {
  padding: 0.6rem 1rem 1rem;
}

.ptt-question {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.6rem;
}

.ptt-bet-types {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.ptt-bet-btn {
  flex: 1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.42rem;
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.08);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  background: #f1f5f9;
  color: #64748b;
}

.ptt-bet-btn:not(.active):hover { background: #e2e8f0; color: #1e293b; }
.ptt-bet-btn.ptt-freedom.active { background: #22c55e; color: #fff; border-color: #22c55e; }
.ptt-bet-btn.ptt-central.active { background: #ef4444; color: #fff; border-color: #ef4444; }

.ptt-odds-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.ptt-odds-card {
  flex: 1;
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.ptt-yes { background: #dcfce7; border: 1.5px solid #22c55e; }
.ptt-no  { background: #fee2e2; border: 1.5px solid #ef4444; }

.ptt-odds-pct {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.ptt-yes .ptt-odds-pct { color: #16a34a; }
.ptt-no  .ptt-odds-pct { color: #dc2626; }

.ptt-odds-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-bottom: 0.1rem;
}

.ptt-yes .ptt-odds-label { color: #16a34a; }
.ptt-no  .ptt-odds-label { color: #dc2626; }

.ptt-odds-cents {
  font-size: 0.58rem;
  font-weight: 600;
}

.ptt-yes .ptt-odds-cents { color: #4ade80; }
.ptt-no  .ptt-odds-cents { color: #f87171; }

.ptt-amount-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
}

.ptt-slider {
  width: 100%;
  margin-bottom: 0.5rem;
  accent-color: #247DC6;
  cursor: pointer;
  display: block;
}

.ptt-quick-btns {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.ptt-quick {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.28rem 0.15rem;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.ptt-quick:hover { background: #e2e8f0; color: #1e293b; }
.ptt-quick.active { background: #247DC6; color: #fff; border-color: #247DC6; }

.ptt-calc-grid {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 0.35rem 0;
  margin-bottom: 0.65rem;
}

.ptt-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.26rem 0.7rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ptt-calc-row:last-child { border-bottom: none; }

.ptt-calc-label { font-size: 0.65rem; color: #64748b; font-weight: 500; }

.ptt-calc-val { font-size: 0.68rem; font-weight: 700; color: #1e293b; }
.ptt-profit { color: #16a34a !important; }
.ptt-native { color: #247DC6 !important; }

.ptt-place-btn {
  display: block;
  width: 100%;
  padding: 0.58rem;
  background: #247DC6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 0.4rem;
  transition: background 0.2s;
  text-align: center;
}

.ptt-place-btn:hover { background: #1a6bb5; }

.ptt-order-link {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: #247DC6;
  text-decoration: none;
  padding: 0.2rem;
}

.ptt-order-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS  — no panels hidden, only stack
   ═══════════════════════════════════════════════════════ */

/* ── Large tablet (≤ 1280px): shrink columns ─────── */
@media (max-width: 1280px) {
  .race-layout {
    grid-template-columns: 170px 220px 1fr 260px;
  }
}

/* ── Tablet (≤ 1024px): 2×2 grid ─────────────────── */
@media (max-width: 1024px) {
  .race-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
    overflow: visible;
  }

  /* Row 1: left + services */
  .panel-left     { grid-column: 1; grid-row: 1; border-right: 1px solid rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.08); max-height: 45vh; overflow: hidden; }
  .panel-services { grid-column: 2; grid-row: 1; border-bottom: 1px solid rgba(0,0,0,0.08); max-height: 45vh; overflow-y: auto; }

  /* Row 2: globe + trade */
  .globe-wrap   { grid-column: 1; grid-row: 2; min-height: 55vh; }
  .panel-trade  { grid-column: 2; grid-row: 2; border-left: 1px solid rgba(0,0,0,0.08); max-height: 55vh; overflow-y: auto; }

  .city-list { max-height: 28vh; }
}

/* ── Small tablet (≤ 768px): single column stack ─── */
@media (max-width: 768px) {
  .race-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    overflow: visible;
  }

  .panel-left     { grid-column: 1; grid-row: auto; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); max-height: 44vh; overflow: hidden; }
  .panel-services { grid-column: 1; grid-row: auto; border-left: none;  border-bottom: 1px solid rgba(0,0,0,0.08); max-height: none; overflow: visible; }
  .globe-wrap     { grid-column: 1; grid-row: auto; min-height: 50vh; }
  .panel-trade    { grid-column: 1; grid-row: auto; border-left: none;  border-top: 1px solid rgba(0,0,0,0.08); max-height: none; overflow: visible; }

  .city-list { max-height: 22vh; }
  .rh-tabs   { margin-bottom: 1rem; }

  /* Race table scroll */
  .rv-table-wrap { overflow-x: auto; }
  .rv-table      { min-width: 480px; }

  /* Stats grid 2 cols */
  .rv-stats-row    { grid-template-columns: repeat(2, 1fr); }
  .mv-global-stats { grid-template-columns: repeat(2, 1fr); }

  /* Modals → bottom sheet */
  .dwm-overlay,
  .els-overlay { align-items: flex-end; }
  .dwm-modal {
    max-width: 100%; width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh; margin: 0;
    padding: 1.5rem 1.25rem 2rem;
  }
  .els-modal {
    max-width: 100%; width: 100%;
    border-radius: 16px 16px 0 0;
    margin: 0; padding: 1.5rem 1.25rem 2rem;
  }

  .gais-bar { flex-wrap: wrap; gap: 0.5rem; }
}

/* ── Mobile (≤ 600px) ────────────────────────────── */
@media (max-width: 600px) {
  .panel-left { max-height: 40vh; }
  .city-list  { max-height: 18vh; }
  .globe-wrap { min-height: 44vh; }

  /* Region tabs */
  .pl-region-tabs { gap: 0.2rem; padding: 0.4rem; }
  .plr-btn        { font-size: 0.62rem; padding: 0.14rem 0.38rem; }

  /* Search */
  .pl-search       { padding: 0.5rem 0.75rem; }
  .pl-search input { font-size: 0.72rem; }

  /* City items compact */
  .city-item  { padding: 0.35rem 0.6rem; gap: 0.35rem; }
  .ci-name    { font-size: 0.72rem; }
  .ci-country { font-size: 0.6rem; }
  .ci-flag    { width: 18px; height: 18px; }
  .ci-score   { font-size: 0.7rem; }

  /* Footer */
  .pl-footer     { padding: 0.45rem 0.6rem; }
  .plf-bal-label { font-size: 0.58rem; }
  .plf-bal-val   { font-size: 0.72rem; }
  .plf-btn       { font-size: 0.62rem; padding: 0.35rem 0.4rem; }

  /* Globe */
  .globe-legend { padding: 0.3rem 0.5rem; gap: 0.18rem; }
  .gl-item      { font-size: 0.55rem; }
  .globe-hint   { font-size: 0.55rem; }

  /* Tabs */
  .rh-tab { font-size: 0.65rem; padding: 0.25rem 0.55rem; }

  /* AI Judge */
  .gais-title  { font-size: 0.68rem; }
  .gais-sub    { font-size: 0.56rem; }
  .gais-btn    { font-size: 0.65rem; padding: 0.25rem 0.65rem; }
  .gais-prompt { font-size: 0.6rem; }

  /* Footer links */
  .globe-footer-links   { flex-wrap: wrap; gap: 0.6rem; padding: 0.4rem; }
  .globe-footer-links a { font-size: 0.6rem; }

  /* Modals */
  .dwm-tab      { font-size: 0.65rem; padding: 0.28rem 0.3rem; }
  .dwm-qr-blank { height: 100px; }
  .dwm-yn-pct   { font-size: 1.2rem; }

  /* Quick bet buttons */
  .ptt-quick-btns { gap: 0.25rem; }
  .ptt-quick      { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
  .ptt-place-btn  { font-size: 0.75rem; }
}

/* ── Small mobile (≤ 400px) ──────────────────────── */
@media (max-width: 400px) {
  .panel-left { max-height: 36vh; }
  .city-list  { max-height: 14vh; }
  .globe-wrap { min-height: 38vh; }

  .ci-name { font-size: 0.68rem; }
  .ci-flag { width: 16px; height: 16px; }

  .dwm-modal { padding: 1.2rem 1rem 2rem; }
  .dwm-title { font-size: 0.95rem; }
  .dwm-tabs  { gap: 0.1rem; }
  .dwm-tab   { font-size: 0.6rem; padding: 0.22rem 0.18rem; }

  .els-modal   { padding: 1.2rem 1rem 2rem; }
  .els-title   { font-size: 0.95rem; }
  .els-actions { gap: 0.5rem; }
  .els-btn     { padding: 0.45rem 0.9rem; font-size: 0.75rem; }

  .ptt-place-btn { font-size: 0.7rem; padding: 0.5rem; }
}
