/* Ronin Trading — estilos completos (tema oscuro, acento gold #f5b800) */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --rt-gold:      #fdbf14;
  --rt-gold-2:    #ffb800;
  --rt-gold-dim:  rgba(253, 191, 20, 0.12);
  --rt-gold-glow: rgba(253, 191, 20, 0.35);
  --rt-bg:        #0a0e14;
  --rt-bg-2:      #0b0e14;
  --rt-card:      linear-gradient(145deg, rgba(20, 24, 36, 0.98) 0%, rgba(12, 16, 24, 0.98) 100%);
  --rt-card-solid:#11151f;
  --rt-card-hi:   rgba(22, 27, 42, 0.96);
  --rt-border:    rgba(255, 255, 255, 0.07);
  --rt-border-gold: rgba(253, 191, 20, 0.38);
  --rt-text:      #f8fafc;
  --rt-muted:     #848e9c;
  --rt-green:     #22c55e;
  --rt-red:       #ef4444;
  --rt-purple:    #a78bfa;
  --rt-blue:      #60a5fa;
  --rt-orange:    #f59e0b;
  --rt-radius:    14px;
  --rt-radius-sm: 10px;
  --rt-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --rt-shadow-gold: 0 0 24px rgba(253, 191, 20, 0.12);
}

/* ── Layout integration ──────────────────────────────────────────────────── */
.app-body.inversion-mode { background: var(--rt-bg); }

.app-body.inversion-mode .main-panel {
  background: var(--rt-bg);
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

#view-inversion.view.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.main-panel:has(#view-inversion.active) {
  overflow: hidden !important;
  padding: 0 !important;
}

/* ── Screen shell ────────────────────────────────────────────────────────── */
.rt-screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: var(--rt-bg);
  color: var(--rt-text);
  font-family: inherit;
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.rt-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.rt-brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  white-space: nowrap;
}

.rt-brand-ronin   { color: #fff; }
.rt-brand-trading { color: var(--rt-gold); }

.rt-beta {
  font-size: 0.58rem;
  padding: 2px 5px;
  border: 1px solid var(--rt-gold);
  border-radius: 4px;
  color: var(--rt-gold);
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.rt-topbar-meta {
  flex: 1;
  font-size: 0.78rem;
  color: var(--rt-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rt-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rt-green);
  box-shadow: 0 0 8px var(--rt-green);
  animation: rt-pulse 2s ease-in-out infinite;
}

@keyframes rt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Page head ───────────────────────────────────────────────────────────── */
.rt-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  flex-shrink: 0;
}

.rt-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.rt-page-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--rt-muted);
}

/* ── Scrollable body ─────────────────────────────────────────────────────── */
.rt-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 24px 16px;
  min-height: 0;
}

.rt-body::-webkit-scrollbar { width: 5px; }
.rt-body::-webkit-scrollbar-track { background: transparent; }
.rt-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ── Bottom nav ──────────────────────────────────────────────────────────── */
.rt-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  border-top: 1px solid var(--rt-border);
  background: #080b10;
  padding: 0 8px 8px;
  flex-shrink: 0;
}

.rt-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border: none;
  background: transparent;
  color: var(--rt-muted);
  font-size: 0.62rem;
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
  position: relative;
  transition: color 0.15s;
}

.rt-nav-item:hover { color: #cbd5e1; }

.rt-nav-item.active {
  color: var(--rt-gold);
  background: transparent;
}

.rt-nav-bar {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: transparent;
  margin-bottom: 2px;
}

.rt-nav-item.active .rt-nav-bar {
  background: linear-gradient(90deg, transparent, var(--rt-gold), transparent);
  box-shadow: 0 0 12px var(--rt-gold-glow);
}

.rt-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-nav-icon svg {
  width: 20px;
  height: 20px;
}

.rt-nav-item.active .rt-nav-icon {
  filter: drop-shadow(0 0 8px var(--rt-gold-glow));
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.rt-btn {
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--rt-text);
  border-radius: var(--rt-radius-sm);
  padding: 9px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.rt-btn:hover     { background: rgba(255, 255, 255, 0.08); }
.rt-btn-ghost     { background: transparent; }
.rt-btn-sm        { padding: 6px 12px; font-size: 0.78rem; }
.rt-btn-lg        { padding: 14px 28px; font-size: 0.95rem; font-weight: 700; }

.rt-btn-gold {
  background: linear-gradient(180deg, #ffd24d 0%, var(--rt-gold) 55%, #e6a800 100%);
  border-color: #c98a00;
  color: #1a1200;
  font-weight: 700;
  box-shadow: 0 2px 0 #a67400, 0 6px 16px rgba(253, 191, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rt-btn-gold:hover {
  background: linear-gradient(180deg, #ffe580 0%, #ffc933 55%, #f0b000 100%);
  box-shadow: 0 2px 0 #a67400, 0 8px 20px rgba(253, 191, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rt-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--rt-text);
}

.rt-btn-gold-outline {
  background: transparent;
  border: 1px solid var(--rt-border-gold);
  color: var(--rt-gold);
}

.rt-btn-operar {
  flex: 1;
  padding: 14px 24px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.rt-btn-ronin-chat {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rt-text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.rt-btn-fav {
  border: 1px solid var(--rt-border-gold);
  background: rgba(253, 191, 20, 0.08);
  color: var(--rt-gold);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.rt-btn-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.rt-btn-danger:hover { background: rgba(239, 68, 68, 0.1); }

/* ── Link button ─────────────────────────────────────────────────────────── */
.rt-link {
  border: none;
  background: none;
  color: var(--rt-gold);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* ── KPI grid ────────────────────────────────────────────────────────────── */
.rt-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.rt-kpi-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-kpi-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .rt-kpi-row,
  .rt-kpi-row--3,
  .rt-kpi-row--4 { grid-template-columns: repeat(2, 1fr); }
}

.rt-kpi {
  background: var(--rt-card);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 14px 16px;
}

.rt-kpi span {
  display: block;
  font-size: 0.7rem;
  color: var(--rt-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.rt-kpi strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.rt-kpi em {
  display: block;
  font-size: 0.72rem;
  color: var(--rt-muted);
  font-style: normal;
  margin-top: 4px;
}

.rt-kpi-big strong { font-size: 1.6rem; }

/* ── Card ────────────────────────────────────────────────────────────────── */
.rt-card {
  background: var(--rt-card);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.rt-card h2 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rt-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rt-card-head h2 { margin: 0; }

/* ── Week pill ───────────────────────────────────────────────────────────── */
.rt-week-pill-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.rt-week-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  background: var(--rt-gold-dim);
  border: 1px solid var(--rt-gold-glow);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rt-gold);
  letter-spacing: 0.04em;
}

.rt-week-pill strong { font-weight: 700; }

.rt-week-status {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  color: var(--rt-green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.rt-prog-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: var(--rt-muted);
}

.rt-prog-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.rt-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rt-gold) 0%, #ffd24d 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── Ranking cards ───────────────────────────────────────────────────────── */
.rt-ranking-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.rt-rank-card {
  position: relative;
  background: var(--rt-card);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 20px 16px 16px;
  text-align: center;
}

.rt-rank-card.is-me {
  border-color: rgba(245, 184, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 184, 0, 0.18), 0 4px 20px rgba(245, 184, 0, 0.08);
}

.rt-rank-medal {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.rt-player-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 8px;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(245, 184, 0, 0.2);
  color: var(--rt-gold);
}

.rt-player-gold .rt-player-av,
.rt-rank-card.rt-player-gold .rt-player-av { background: rgba(245,184,0,0.2); color: var(--rt-gold); }
.rt-player-blue  .rt-player-av,
.rt-rank-card.rt-player-blue  .rt-player-av { background: rgba(96,165,250,0.2); color: var(--rt-blue); }
.rt-player-purple .rt-player-av,
.rt-rank-card.rt-player-purple .rt-player-av { background: rgba(167,139,250,0.2); color: var(--rt-purple); }
.rt-player-gray .rt-player-av,
.rt-rank-card.rt-player-gray  .rt-player-av { background: rgba(148,163,184,0.15); color: var(--rt-muted); }

.rt-rank-card h3 { margin: 0 0 10px; font-size: 0.9rem; }

.rt-player-val span { display: block; font-size: 0.68rem; color: var(--rt-muted); }
.rt-player-val strong { font-size: 1rem; }

.rt-player-pct { margin-top: 6px; font-weight: 700; font-size: 0.9rem; }

.rt-strategy { margin: 8px 0 0; font-size: 0.72rem; color: var(--rt-muted); line-height: 1.3; }

/* Legacy player card styles (backwards compat) */
.rt-player-card {
  position: relative;
  background: var(--rt-card);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 16px;
  text-align: center;
}

.rt-player-card.is-me {
  border-color: rgba(245, 184, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 184, 0, 0.2);
}

.rt-crown {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1rem;
}

/* ── Sparklines ──────────────────────────────────────────────────────────── */
.rt-spark-cell { width: 36px; }

.rt-sparkline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 20px;
  gap: 2px;
}

.rt-spark {
  display: block;
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: var(--rt-muted);
  opacity: 0.7;
}

.rt-spark.up   { background: var(--rt-green); }
.rt-spark.down { background: var(--rt-red); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.rt-table-wrap { overflow-x: auto; }

.rt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.rt-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rt-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--rt-border);
  white-space: nowrap;
}

.rt-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.rt-table td strong { display: block; font-weight: 600; }
.rt-table td .rt-muted { font-size: 0.74rem; }
.rt-table tbody tr:last-child td { border-bottom: none; }

.rt-cash-row td { color: var(--rt-muted); }

.rt-row-disabled { opacity: 0.45; }

/* ── Asset tags ──────────────────────────────────────────────────────────── */
.rt-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  color: var(--rt-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rt-tag.accion  { background: rgba(245,184,0,0.12); color: var(--rt-gold); }
.rt-tag.cripto  { background: rgba(167,139,250,0.12); color: var(--rt-purple); }
.rt-tag.cash    { background: rgba(34,197,94,0.12); color: var(--rt-green); }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.rt-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.rt-badge.green { background: rgba(34,197,94,0.15); color: var(--rt-green); border: 1px solid rgba(34,197,94,0.3); }
.rt-badge.gray  { background: rgba(148,163,184,0.1); color: var(--rt-muted); border: 1px solid var(--rt-border); }

/* ── Colors ──────────────────────────────────────────────────────────────── */
.up   { color: var(--rt-green) !important; }
.down { color: var(--rt-red)   !important; }

.rt-muted { color: var(--rt-muted); font-size: 0.84rem; }
.rt-note  { margin-top: 12px; font-size: 0.78rem; }

/* ── Ronin comment box ───────────────────────────────────────────────────── */
.rt-ronin-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--rt-radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.rt-ronin-avatar { font-size: 2rem; line-height: 1; flex-shrink: 0; }

.rt-ronin-body { flex: 1; min-width: 0; }

.rt-ronin-body h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--rt-purple);
  font-weight: 600;
}

.rt-ronin-body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.rt-ronin-box--clickable {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.rt-ronin-box--clickable:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}

.rt-ronin-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #c4b5fd;
}

.rt-rank-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.rt-rank-card--clickable:hover {
  border-color: rgba(167, 139, 250, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.rt-ronin-cartera-hero {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(30, 27, 75, 0.35));
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--rt-radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.rt-ronin-cartera-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rt-ronin-cartera-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.rt-ronin-cartera-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rt-ronin-cartera-stats div {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.rt-ronin-cartera-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--rt-muted);
  margin-bottom: 4px;
}

.rt-ronin-cartera-stats strong {
  font-size: 1rem;
}

.rt-ronin-strategy-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.rt-ronin-strategy-banner p,
.rt-ronin-strategy-banner em {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #b7bdcc;
  font-style: normal;
}

.rt-ronin-cartera-note {
  margin: 12px 4px 0;
  font-size: 0.8rem;
}

.rt-op-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.rt-op-buy {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

@media (max-width: 760px) {
  .rt-ronin-cartera-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Ticker row ──────────────────────────────────────────────────────────── */
.rt-ticker-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .rt-ticker-row { grid-template-columns: repeat(2, 1fr); }
}

.rt-ticker {
  background: var(--rt-card);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-sm);
  padding: 10px 12px;
}

.rt-ticker span   { font-size: 0.68rem; color: var(--rt-muted); display: block; }
.rt-ticker strong { font-size: 0.92rem; display: block; margin: 4px 0; font-weight: 700; }
.rt-ticker em     { font-size: 0.76rem; font-style: normal; font-weight: 600; }

.rt-ticker-loading {
  grid-column: 1 / -1;
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
}

/* ── Sub-tabs ────────────────────────────────────────────────────────────── */
.rt-tabs-sub {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rt-border);
}

.rt-tab-sub {
  border: none;
  background: transparent;
  color: var(--rt-muted);
  padding: 9px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.rt-tab-sub:hover  { color: var(--rt-text); }
.rt-tab-sub.active { color: var(--rt-gold); border-bottom-color: var(--rt-gold); }

/* ── Filter tabs ─────────────────────────────────────────────────────────── */
.rt-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rt-filter-tab {
  border: 1px solid var(--rt-border);
  background: transparent;
  color: var(--rt-muted);
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  transition: all 0.15s;
}

.rt-filter-tab:hover  { border-color: rgba(255,255,255,0.2); color: var(--rt-text); }
.rt-filter-tab.active { border-color: var(--rt-gold); color: var(--rt-gold); background: var(--rt-gold-dim); }

/* ── Cartera hero ────────────────────────────────────────────────────────── */
.rt-cartera-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .rt-cartera-hero { grid-template-columns: 1fr; justify-items: center; }
}

.rt-donut-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.rt-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  /* background set inline via conic-gradient */
}

.rt-donut-center {
  position: absolute;
  inset: 18px;
  background: var(--rt-bg);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rt-donut-center span { font-size: 0.6rem; color: var(--rt-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rt-donut-center strong { font-size: 0.92rem; font-weight: 700; line-height: 1.1; }
.rt-donut-center em { font-size: 0.8rem; font-style: normal; }

.rt-cartera-kpis { display: flex; flex-direction: column; gap: 10px; }
.rt-cartera-kpis .rt-kpi { margin: 0; }

/* ── Trade panel ─────────────────────────────────────────────────────────── */
.rt-trade-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rt-border);
}

.rt-trade-panel h3 {
  font-size: 0.82rem;
  color: var(--rt-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.rt-trade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rt-trade-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.rt-trade-mode {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--rt-muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.rt-trade-mode.active {
  color: #221600;
  border-color: #b98900;
  background: linear-gradient(180deg, #ffd24d 0%, #fdbf14 60%, #e0a400 100%);
}

.rt-trade-max {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
}

/* ── Form inputs ─────────────────────────────────────────────────────────── */
.rt-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-sm);
  color: var(--rt-text);
  padding: 10px 12px;
  font-size: 0.86rem;
  font-family: inherit;
  min-width: 120px;
  transition: border-color 0.15s;
}

.rt-input:focus { outline: none; border-color: rgba(245,184,0,0.5); }
.rt-input-full  { width: 100%; box-sizing: border-box; }

.rt-char-count {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--rt-muted);
  margin-top: 4px;
}

/* ── Historial stat cards ────────────────────────────────────────────────── */
.rt-hist-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .rt-hist-stats { grid-template-columns: repeat(2, 1fr); }
}

.rt-hist-stat-card {
  background: var(--rt-card);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.rt-hstat-icon { font-size: 1.6rem; line-height: 1; }
.rt-hstat-val  { font-size: 1.3rem; font-weight: 700; margin-top: 4px; }
.rt-hstat-label { font-size: 0.7rem; color: var(--rt-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Podium ──────────────────────────────────────────────────────────────── */
.rt-podium-card { margin-bottom: 16px; }

.rt-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 0 8px;
}

.rt-podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.rt-podium-place.first .rt-player-av {
  width: 52px;
  height: 52px;
  font-size: 1.15rem;
}

.rt-podium-medal { font-size: 1.5rem; line-height: 1; }
.rt-podium-name  { font-size: 0.8rem; font-weight: 600; }

.rt-winner-label {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: var(--rt-gold-dim);
  border: 1px solid var(--rt-gold-glow);
  border-radius: 999px;
  color: var(--rt-gold);
  font-weight: 600;
}

/* ── Avatar sizes ────────────────────────────────────────────────────────── */
.rt-av-sm {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.85rem !important;
}

.rt-av-sm.gold   { background: rgba(245,184,0,0.2); color: var(--rt-gold); }
.rt-av-sm.blue   { background: rgba(96,165,250,0.2); color: var(--rt-blue); }
.rt-av-sm.purple { background: rgba(167,139,250,0.2); color: var(--rt-purple); }
.rt-av-sm.gray   { background: rgba(148,163,184,0.15); color: var(--rt-muted); }

/* ── Historial list ──────────────────────────────────────────────────────── */
.rt-hist-list { display: flex; flex-direction: column; gap: 8px; }

.rt-hist-item {
  display: grid;
  grid-template-columns: 32px 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--rt-radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rt-border);
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .rt-hist-item { grid-template-columns: 32px 1fr auto; }
  .rt-hist-item-winner,
  .rt-hist-item-val { display: none; }
}

.rt-hist-item-icon  { font-size: 1.2rem; text-align: center; }
.rt-hist-item-info  strong { display: block; font-weight: 600; }
.rt-hist-item-winner strong { font-weight: 600; }
.rt-hist-item-pct  { font-weight: 700; text-align: right; }
.rt-hist-item-val  { color: var(--rt-muted); text-align: right; font-size: 0.8rem; }

/* ── Partida cards ───────────────────────────────────────────────────────── */
.rt-partida-cards { display: flex; flex-direction: column; gap: 12px; }

.rt-partida-card {
  background: var(--rt-card);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 18px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rt-partida-card.active {
  border-color: rgba(245, 184, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(245,184,0,0.15);
}

.rt-partida-card.paused { opacity: 0.7; }

.rt-partida-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rt-partida-card-info h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.rt-partida-card-info p  { margin: 0; font-size: 0.8rem; }

.rt-partida-avatars {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.rt-av-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: var(--rt-text);
  border: 1px solid var(--rt-border);
}

.rt-av-mini.rt-av-gold   { background: rgba(245,184,0,0.2); color: var(--rt-gold); border-color: rgba(245,184,0,0.3); }
.rt-av-mini.rt-av-blue   { background: rgba(96,165,250,0.2); color: var(--rt-blue); border-color: rgba(96,165,250,0.3); }
.rt-av-mini.rt-av-purple { background: rgba(167,139,250,0.2); color: var(--rt-purple); border-color: rgba(167,139,250,0.3); }
.rt-av-mini.rt-av-gray   { background: rgba(148,163,184,0.15); color: var(--rt-muted); }

.rt-partida-prog {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.76rem;
}

.rt-partida-prog .rt-prog-bar { flex: 1; }

.rt-partida-card-bottom {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rt-border);
}

.rt-partida-stat { min-width: 80px; }
.rt-partida-stat span  { display: block; font-size: 0.68rem; color: var(--rt-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.rt-partida-stat strong { font-size: 1rem; font-weight: 700; }

.rt-partida-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Nueva partida form ──────────────────────────────────────────────────── */
.rt-nueva-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 768px) {
  .rt-nueva-grid { grid-template-columns: 1fr; }
}

.rt-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rt-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  min-width: 96px;
  border-radius: var(--rt-radius);
  border: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rt-participant.on {
  border-color: var(--rt-green);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}

.rt-participant.locked { cursor: default; }

.rt-participant-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.07);
  color: var(--rt-text);
}

.rt-participant-av.gold   { background: rgba(245,184,0,0.2); color: var(--rt-gold); }
.rt-participant-av.blue   { background: rgba(96,165,250,0.2); color: var(--rt-blue); }
.rt-participant-av.purple { background: rgba(167,139,250,0.2); color: var(--rt-purple); }

.rt-participant strong { font-size: 0.84rem; }
.rt-participant em     { font-size: 0.68rem; color: var(--rt-muted); }

.rt-budget-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.rt-budget-val { font-size: 1.7rem; font-weight: 700; }

.rt-step {
  width: 38px;
  height: 38px;
  border-radius: var(--rt-radius-sm);
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--rt-text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.rt-step:hover { background: rgba(255,255,255,0.1); }

.rt-budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rt-preset {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--rt-border);
  background: transparent;
  color: var(--rt-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.rt-preset:hover { border-color: rgba(255,255,255,0.2); color: var(--rt-text); }

.rt-preset.on {
  border-color: var(--rt-gold);
  color: var(--rt-gold);
  background: var(--rt-gold-dim);
}

.rt-mercado-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rt-mercado-opt {
  flex: 1;
  min-width: 110px;
  padding: 12px;
  border-radius: var(--rt-radius-sm);
  border: 1px solid var(--rt-border);
  background: transparent;
  color: var(--rt-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  text-align: center;
  transition: all 0.15s;
}

.rt-mercado-opt:hover { border-color: rgba(255,255,255,0.2); }

.rt-mercado-opt.on {
  border-color: var(--rt-green);
  background: rgba(34,197,94,0.08);
  color: var(--rt-green);
}

.rt-rules ul  { margin: 0; padding: 0; list-style: none; }
.rt-rules li  { padding: 6px 0; font-size: 0.84rem; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.04); }
.rt-rules li:last-child { border-bottom: none; }

.rt-nueva-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 24px;
}

/* ── Section label ───────────────────────────────────────────────────────── */
.rt-section-label { display: flex; align-items: center; gap: 8px; }

.rt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.rt-dot.green { background: var(--rt-green); box-shadow: 0 0 6px var(--rt-green); }

/* ── Empty states ────────────────────────────────────────────────────────── */
.rt-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--rt-muted);
}

.rt-empty-icon  { font-size: 3rem; margin-bottom: 12px; }
.rt-empty h3    { margin: 0 0 8px; font-size: 1.1rem; color: var(--rt-text); }
.rt-empty p     { margin: 0 0 20px; font-size: 0.88rem; }

.rt-empty-sm {
  text-align: center;
  padding: 24px 20px;
  color: var(--rt-muted);
}

.rt-empty-sm p { margin: 0 0 12px; }

/* ── Error / loading ─────────────────────────────────────────────────────── */
.rt-error {
  margin: 0 24px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  padding: 10px 14px;
  border-radius: var(--rt-radius-sm);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rt-error-close {
  border: none;
  background: none;
  color: #fca5a5;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.rt-loading--sync {
  opacity: 0.75;
  font-size: 0.8rem;
}

.rt-loading {
  padding: 0 24px 12px;
  color: var(--rt-muted);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rt-spin {
  display: inline-block;
  animation: rt-spin 1s linear infinite;
}

@keyframes rt-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Legacy compatibility ────────────────────────────────────────────────── */
.inversion-screen { display: contents; }

.rt-players-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.rt-player-card h3      { margin: 0 0 10px; font-size: 0.95rem; }
.rt-player-val span     { display: block; font-size: 0.72rem; color: var(--rt-muted); }
.rt-player-val strong   { font-size: 1.1rem; }
.rt-player-card.rt-player-gold  .rt-player-av { background: rgba(245,184,0,0.2); color: var(--rt-gold); }
.rt-player-card.rt-player-blue  .rt-player-av { background: rgba(96,165,250,0.2); color: var(--rt-blue); }
.rt-player-card.rt-player-purple .rt-player-av { background: rgba(167,139,250,0.2); color: var(--rt-purple); }

/* ── Referencia Ronin Trading (pixel-match) ─────────────────────────────── */

.rt-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.rt-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rt-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--rt-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.rt-icon-btn svg { width: 18px; height: 18px; }
.rt-bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rt-gold);
  box-shadow: 0 0 6px var(--rt-gold);
}

.rt-icon-btn--bell.active {
  border-color: var(--rt-gold);
  color: var(--rt-gold);
}

.rt-notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.45);
}

.rt-notif-panel {
  position: fixed;
  top: 56px;
  right: 12px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  z-index: 121;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rt-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 28, 40, 0.98) 0%, rgba(10, 14, 20, 0.98) 100%);
  box-shadow: var(--rt-shadow-card);
  overflow: hidden;
}

.rt-notif-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rt-border);
}

.rt-notif-head h3 {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.rt-notif-close {
  border: none;
  background: transparent;
  color: var(--rt-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.rt-notif-list {
  overflow-y: auto;
  padding: 8px;
}

.rt-notif-empty {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  color: var(--rt-muted);
  font-size: 0.85rem;
}

.rt-notif-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--rt-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--rt-text);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-family: inherit;
}

.rt-notif-item.unread {
  border-color: rgba(253, 191, 20, 0.35);
  background: rgba(253, 191, 20, 0.06);
}

.rt-notif-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.rt-notif-item-top strong {
  font-size: 0.82rem;
}

.rt-notif-item-top em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--rt-muted);
  flex-shrink: 0;
}

.rt-notif-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rt-gold);
  margin-bottom: 4px;
}

.rt-notif-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--rt-text);
}

.rt-notif-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--rt-muted);
}

.rt-week-picker {
  border: 1px solid var(--rt-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--rt-text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  cursor: default;
  font-family: inherit;
}

.rt-hero-card {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(253, 191, 20, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(24, 28, 40, 0.98) 0%, rgba(10, 14, 20, 0.98) 100%);
  border: 1px solid var(--rt-border-gold);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--rt-shadow-gold), var(--rt-shadow-card);
}

.rt-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.rt-hero-rent { text-align: right; }
.rt-hero-rent-label {
  display: block;
  font-size: 0.62rem;
  color: var(--rt-gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.rt-hero-rent strong { font-size: 1.1rem; }
.rt-hero-center { text-align: center; margin: 8px 0 14px; }
.rt-hero-label {
  display: block;
  font-size: 0.68rem;
  color: var(--rt-gold);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.rt-hero-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.rt-hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--rt-muted);
  margin-top: 8px;
}

.rt-hero-foot {
  font-size: 0.82rem;
  color: var(--rt-muted);
}

.rt-rank-card {
  border-width: 1.5px;
  box-shadow: var(--rt-shadow-card);
}

.rt-rank-gold  { border-color: rgba(253, 191, 20, 0.5); box-shadow: 0 0 20px rgba(253, 191, 20, 0.08); }
.rt-rank-blue  { border-color: rgba(96, 165, 250, 0.45); }
.rt-rank-purple { border-color: rgba(167, 139, 250, 0.45); }

.rt-rank-pos {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--rt-border);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-rank-crown { position: absolute; top: 8px; right: 10px; font-size: 1rem; }
.rt-online { font-size: 0.68rem; color: var(--rt-green); display: block; margin: -6px 0 8px; }
.rt-ia-badge {
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.2);
  color: var(--rt-purple);
  vertical-align: middle;
}

.rt-xp-wrap { margin: 8px 0 10px; font-size: 0.68rem; color: var(--rt-muted); }
.rt-xp-wrap em { font-style: normal; display: block; margin-top: 3px; }
.rt-xp-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0;
}

.rt-xp-fill { height: 100%; border-radius: 999px; }
.rt-xp-gold   { background: linear-gradient(90deg, #22c55e, #4ade80); }
.rt-xp-blue   { background: linear-gradient(90deg, var(--rt-blue), #93c5fd); }
.rt-xp-purple { background: linear-gradient(90deg, var(--rt-purple), #c4b5fd); }

.rt-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.rt-tag-pill {
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rt-border);
  color: #cbd5e1;
}

.rt-strategy-box {
  margin-top: 8px;
  text-align: left;
  font-size: 0.72rem;
  color: var(--rt-muted);
}

.rt-strategy-box summary { cursor: pointer; color: var(--rt-purple); }
.rt-card--portfolio { box-shadow: var(--rt-shadow-card); }
.rt-table-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--rt-muted);
}

.rt-tabs-line {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rt-border);
  margin-bottom: 16px;
  overflow-x: auto;
}

.rt-tab-line {
  border: none;
  background: transparent;
  color: var(--rt-muted);
  padding: 10px 16px;
  font-size: 0.78rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.rt-tab-line.active {
  color: var(--rt-gold);
  border-bottom-color: var(--rt-gold);
}

.rt-tabs-line--upper .rt-tab-line {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rt-asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rt-asset-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rt-mini-spark { width: 48px; height: 24px; display: block; }
.rt-coin-ic, .rt-bot-ic { vertical-align: middle; display: inline-block; }

.rt-cartera-summary {
  background: var(--rt-card-solid);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--rt-shadow-card);
}

.rt-cartera-summary-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}

.rt-cartera-big {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 700;
  margin: 6px 0;
}

.rt-cartera-side { display: flex; gap: 24px; }
.rt-cartera-side span { display: block; font-size: 0.72rem; color: var(--rt-muted); margin-bottom: 4px; }
.rt-cartera-side strong { font-size: 1.1rem; }
.rt-cartera-side em { font-size: 0.78rem; display: block; margin-top: 2px; }
.rt-eye { border: none; background: none; cursor: pointer; opacity: 0.7; }

.rt-weight-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 4px;
  overflow: hidden;
}

.rt-weight-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rt-gold), #ffd24d);
  border-radius: 999px;
}

.rt-chevron { color: var(--rt-muted); font-size: 1.1rem; }
.rt-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.rt-chart-card { text-align: center; }
.rt-chart-pct { font-size: 1.4rem; display: block; margin: 8px 0; }
.rt-line-chart .rt-mini-spark { width: 100%; height: 48px; }
.rt-donut-wrap--lg { width: 140px; height: 140px; margin: 0 auto; }
.rt-donut-wrap--lg .rt-donut { width: 140px; height: 140px; }
.rt-operar-row { display: flex; gap: 10px; margin-bottom: 16px; }
.rt-btn-icon { width: 48px; padding: 0; }

.rt-ticker {
  box-shadow: var(--rt-shadow-card);
  position: relative;
  overflow: hidden;
}

.rt-ticker-spark { margin: 6px 0; opacity: 0.9; }
.rt-ticker-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--rt-muted);
  margin: -4px 0 14px;
}

.rt-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  color: var(--rt-text);
  font-weight: 600;
}

.rt-star { color: var(--rt-muted); font-size: 1rem; }

.rt-hist-stat-card {
  box-shadow: var(--rt-shadow-card);
  position: relative;
  overflow: hidden;
}

.rt-hist-stat-card em {
  font-size: 0.68rem;
  color: var(--rt-muted);
  font-style: normal;
  margin-top: 2px;
}

.rt-hstat-purple::before,
.rt-hstat-green::before,
.rt-hstat-blue::before,
.rt-hstat-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.rt-hstat-purple::before { background: radial-gradient(circle at 30% 20%, var(--rt-purple), transparent 70%); }
.rt-hstat-green::before  { background: radial-gradient(circle at 30% 20%, var(--rt-green), transparent 70%); }
.rt-hstat-blue::before   { background: radial-gradient(circle at 30% 20%, var(--rt-blue), transparent 70%); }
.rt-hstat-gold::before   { background: radial-gradient(circle at 30% 20%, var(--rt-gold), transparent 70%); }

.rt-status-pill {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.rt-status-pill.green  { background: rgba(34, 197, 94, 0.15); color: var(--rt-green); }
.rt-status-pill.gray   { background: rgba(148, 163, 184, 0.12); color: var(--rt-muted); }
.rt-status-pill.orange { background: rgba(245, 158, 11, 0.15); color: var(--rt-orange); }

.rt-dot.orange { background: var(--rt-orange); box-shadow: 0 0 6px var(--rt-orange); }
.rt-dot.purple { background: var(--rt-purple); box-shadow: 0 0 6px var(--rt-purple); }
.rt-dot.blue   { background: var(--rt-blue); box-shadow: 0 0 6px var(--rt-blue); }

.rt-hist-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--rt-muted);
}

.rt-podium-place.first {
  transform: scale(1.05);
  padding: 12px 16px;
  border: 1px solid var(--rt-border-gold);
  border-radius: 12px;
  box-shadow: var(--rt-shadow-gold);
}

.rt-podium-rank {
  font-size: 0.68rem;
  color: var(--rt-gold);
  font-weight: 700;
}

.rt-partidas-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.rt-pstat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--rt-card-solid);
  border: 1px solid var(--rt-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--rt-shadow-card);
}

.rt-pstat span:first-child { font-size: 1.1rem; }
.rt-pstat strong { display: block; font-size: 1.1rem; }
.rt-pstat em { display: block; font-size: 0.72rem; color: var(--rt-text); }
.rt-pstat small { display: block; font-size: 0.65rem; color: var(--rt-muted); margin-top: 2px; }

.rt-partida-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  box-shadow: var(--rt-shadow-card);
}

.rt-partida-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  align-self: start;
}

.rt-thumb-green  { background: linear-gradient(135deg, #10b981, #064e3b); }
.rt-thumb-purple { background: linear-gradient(135deg, #7c3aed, #1e1b4b); }
.rt-thumb-blue   { background: linear-gradient(135deg, #3b82f6, #1e3a5f); }

.rt-av-invite {
  border-style: dashed !important;
  color: var(--rt-muted) !important;
  background: transparent !important;
}

.rt-ronin-box {
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--rt-shadow-card);
  align-items: center;
}

.rt-ronin-body h4 { color: var(--rt-text); }
.rt-wave { color: var(--rt-gold); }

.rt-nueva-wrap { position: relative; }
.rt-nueva-hero {
  position: absolute;
  top: 0;
  right: 12px;
  opacity: 0.95;
  pointer-events: none;
}

.rt-form-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rt-text) !important;
  text-transform: none !important;
  font-size: 0.9rem !important;
}

.rt-form-ic { font-size: 1rem; }
.rt-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--rt-green);
  color: #fff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-check.empty {
  background: transparent;
  border: 1px solid var(--rt-border);
}

.rt-week-pill-tot {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--rt-muted);
  margin-left: 2px;
}
.rt-participant-invite {
  border-style: dashed !important;
  cursor: default;
  opacity: 0.55;
}

.rt-participant-invite[disabled] {
  pointer-events: none;
}

.rt-participants-summary {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--rt-radius-sm);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  font-size: 0.84rem;
  line-height: 1.45;
}

.rt-participants-summary strong { color: var(--rt-text); }

.rt-summary-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 184, 0, 0.15);
  color: var(--rt-gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.rt-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px dashed var(--rt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--rt-muted);
}

.rt-budget-caption {
  display: block;
  text-align: center;
  font-size: 0.76rem;
  color: var(--rt-muted);
  margin-bottom: 12px;
}

.rt-nueva-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rt-duration-box,
.rt-mercado-opt {
  background: rgba(0, 0, 0, 0.3);
}

.rt-btn-crear {
  min-width: 220px;
  letter-spacing: 0.04em;
}

.rt-nueva-foot {
  text-align: center;
  font-size: 0.72rem;
  color: var(--rt-muted);
  margin: 8px 0 20px;
}

.rt-card {
  background: var(--rt-card-solid);
  box-shadow: var(--rt-shadow-card);
}

@media (max-width: 900px) {
  .rt-cartera-summary-main,
  .rt-charts-row,
  .rt-partidas-stats,
  .rt-nueva-row { grid-template-columns: 1fr; }
  .rt-hero-value { font-size: 1.7rem; }
}
