:root {
  --bg: #0a0f18;
  --bg-soft: #101827;
  --panel: #111b2b;
  --panel-2: #162234;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf6;
  --muted: #95a3b8;
  --accent: #7aa2ff;
  --accent-soft: rgba(122, 162, 255, 0.14);
  --success: #2fb171;
  --warning: #f0b24d;
  --neutral: #74839b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-width: 284px;
  --topbar-height: 84px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* ===============================
THEME: LIGHT MODE BASE
=============================== */

html[data-theme="light"] {
--bg: #e8edf3;
--bg-soft: #dde5ee;
--panel: #ffffff;
--panel-2: #f8fafc;
--border: rgba(15, 23, 42, 0.08);
--border-strong: rgba(15, 23, 42, 0.12);
--text: #111827;
--muted: #475569;
  --accent: #335dff;
  --accent-soft: rgba(51, 93, 255, 0.10);
  --success: #168a52;
  --warning: #b7791f;
  --neutral: #64748b;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font);
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sidebar {
  width: var(--sidebar-width);
  background: rgba(11, 18, 29, 0.92);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  backdrop-filter: blur(12px);
  z-index: 20;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 8px;
}
.sidebar-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.sidebar-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c2f52, #0b1628);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255,255,255,0.05));
  color: var(--text);
  font-weight: 800;
  border: 1px solid var(--border);
}

.brand-copy h1 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: #d8e1ef;
  border: 1px solid transparent;
  transition: 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}

.nav-item.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.05);
}

.nav-item.is-locked:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.05);
}
.nav-item.active {
  background: var(--accent-soft);
  border-color: rgba(122, 162, 255, 0.24);
}

.nav-item.is-locked {
  opacity: 0.9;
}

.nav-item__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: var(--muted);
}

.nav-item__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-lock {
  margin-left: auto;
  font-size: 0.68rem;
  background: rgba(240, 178, 77, 0.16);
  color: #f6c87b;
  border: 1px solid rgba(240, 178, 77, 0.22);
  padding: 4px 8px;
  border-radius: 999px;
}

.sidebar__footer {
  margin-top: auto;
}

.plan-card {
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.plan-card__label {
  display: inline-block;

  font-size: 0.84rem;

  color: #475569;

  font-weight: 600;

  margin-bottom: 10px;
}

.plan-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text);
}

.plan-card p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}
.main-shell {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
}

.topbar {
  min-height: var(--topbar-height);
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 24, 0.82);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__left h2 {
  margin: 0;
  font-size: 1.35rem;
}

.topbar__subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar__center {
  display: flex;
  justify-content: center;
}

.searchbox {
  width: min(100%, 460px);
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.searchbox input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}

.searchbox input::placeholder {
  color: #7c8a9e;
}

.searchbox__icon {
  color: var(--muted);
}

.status-pill,
.plan-badge,
.user-chip {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #d6deec;
  font-size: 0.86rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(47,177,113,0.12);
}

.plan-badge {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #c9dbff;
  background: rgba(122, 162, 255, 0.12);
  border-color: rgba(122, 162, 255, 0.2);
  font-weight: 600;
}

.user-chip {
  min-height: 50px;
  border-radius: 16px;
  padding: 6px 12px 6px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ===============================
USER DROPDOWN TOPBAR
=============================== */
#userMenu {
  position: absolute;
  top: 100%; /* Se abre debajo del chip */
  right: 0;
  background: rgba(17, 27, 43, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 160px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: none;
  flex-direction: column;
  z-index: 999;
}

#userMenu a {
  padding: 8px 16px;
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

#userMenu a:hover {
  background: rgba(122,162,255,0.15);
}

#userPanelDropdown {
  position: relative; /* necesario para que #userMenu se posicione respecto al chip */
}
.user-chip__avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  font-weight: 700;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip small {
  color: var(--muted);
  margin-top: 2px;
}

.sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}

.content {
  padding: 28px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.hero-card,
.metric-card,
.insight-card,
.panel-card,
.table-card,
.locked-state,
.ranking-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-card h3 {
  margin: 8px 0 10px;
  font-size: 1.75rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
}

.hero-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 12px;
  min-width: 320px;
}

.mini-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.mini-stat strong {
  font-size: 1.18rem;
}

.eyebrow {
  display: inline-block;
  color: #8fb3ff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cards-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

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

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

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

.metric-card,
.insight-card,
.ranking-card {
  padding: 20px;
}
html[data-theme="light"] .ranking-card:not(.ranking-highlight-card) {
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.metric-card__label,
.insight-card__tag,
.ranking-card span {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.metric-card strong,
.ranking-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.metric-card p,
.insight-card p,
.ranking-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.insight-card h4 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 16px;
}

.section-header h3 {
  margin: 6px 0 0;
  font-size: 1.28rem;
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}

.panel-card {
  padding: 22px;
}

.panel-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-card__header h3 {
  margin: 4px 0 0;
  font-size: 1.14rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-link,
.primary-btn,
.table-btn {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 14px;
  transition: 0.2s ease;
}

.quick-link,
.table-btn {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.quick-link:hover,
.table-btn:hover {
  background: rgba(255,255,255,0.07);
}

.quick-link.locked {
  color: #f1c06c;
  border-color: rgba(240, 178, 77, 0.2);
}

.primary-btn {
  background: linear-gradient(135deg, #7aa2ff, #5e87e6);
  color: white;
  font-weight: 700;
}

.editorial-text,
.muted-text {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(255,255,255,0.03);
}

th,
td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-weight: 700;
}

tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid transparent;
}

.badge.success {
  background: rgba(47,177,113,0.14);
  color: #80d3a8;
  border-color: rgba(47,177,113,0.2);
}

.badge.warning {
  background: rgba(240,178,77,0.14);
  color: #f1c06c;
  border-color: rgba(240,178,77,0.2);
}

.badge.neutral {
  background: rgba(116,131,155,0.14);
  color: #b2bfd0;
  border-color: rgba(116,131,155,0.2);
}

.locked-state {
  padding: 40px 28px;
  text-align: center;
}

.locked-state__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #f1c06c;
  border: 1px solid rgba(240,178,77,0.22);
  background: rgba(240,178,77,0.12);
  margin-bottom: 14px;
}

.locked-state h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.locked-state p {
  max-width: 720px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.7;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px; /* 👈 AÑADE ESTA LÍNEA */
}

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

.snapshot-item {
 background: var(--bg-soft);
border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.snapshot-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.snapshot-item strong {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 8px;
}

.snapshot-help {
  display: block;
  color: rgba(232, 237, 246, 0.62);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: auto;
}

.account-plan {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .cards-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-split,
  .cards-grid--2,
  .hero-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar__center {
    justify-content: stretch;
  }

  .searchbox {
    width: 100%;
  }

  .snapshot-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-shell {
    margin-left: 0;
    width: 100%;
  }

  .sidebar-toggle {
    display: inline-grid;
    place-items: center;
  }

  .content {
    padding: 18px;
  }

  .cards-grid--4,
  .cards-grid--3,
  .cards-grid--2,
  .hero-card__meta,
  .snapshot-grid,
  .snapshot-grid--3 {
    grid-template-columns: 1fr;
  }

  .topbar__right {
    flex-wrap: wrap;
  }

  th,
  td {
    padding: 14px 12px;
    font-size: 0.88rem;
  }
}

#marketsFamilySelect {
  color: #ffffff !important;
  background: rgba(37, 56, 94, 0.7) !important;
  border: 1px solid rgba(90, 130, 220, 0.35) !important;
}

#marketsFamilySelect option {
  color: #111111 !important;
  background: #ffffff !important;
}

#marketsFamilySelect optgroup {
  color: #111111 !important;
  background: #ffffff !important;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.cot-modal {
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
 background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  padding: 24px;
}

.cot-modal__header,
.cot-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cot-modal__header {
  margin-bottom: 18px;
}

.cot-modal__body {
  margin-bottom: 18px;
}

.cot-modal__footer {
  justify-content: flex-end;
}

#cotAnalyzeBtn {
  min-width: 140px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(96, 147, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 0 28px rgba(64, 113, 255, 0.18);
}

#cotModalTableBody td:first-child {
  width: 38%;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}

#cotModalTableBody td:last-child {
  color: #ffffff;
  font-weight: 500;
}

.cot-modal__header-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cot-modal__header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cot-asof {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.cot-table-wrap {
  overflow-x: auto;
}

.cot-structured-table {
  width: 100%;
  border-collapse: collapse;
}

.cot-structured-table thead th {
  text-align: center;
  font-weight: 700;
}

.cot-structured-table thead tr:first-child th {
  background: rgba(255,255,255,0.04);
}

.cot-structured-table thead tr:nth-child(2) th {
  background: rgba(255,255,255,0.025);
}

.cot-structured-table td,
.cot-structured-table th {
  padding: 16px 14px;
 border-bottom: 1px solid var(--border-strong);
border-right: 1px solid var(--border-strong);
}

.cot-structured-table td:last-child,
.cot-structured-table th:last-child {
  border-right: none;
}

.cot-structured-table tbody td {
  text-align: center;
}

.cot-structured-table tbody td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--text);
}

.cot-structured-table .cot-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

.cot-structured-table .cot-soft {
  color: rgba(255,255,255,0.72);
}

@media (max-width: 860px) {
  .cot-modal__header,
  .cot-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cot-modal__header-side {
    align-items: stretch;
  }
}

.cot-tip-box {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.cot-tip-box p {
  margin: 0;
}

.cot-tip-box p + p {
  margin-top: 10px;
}

#cotTipText {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

#cotNetText {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cot-net-positive {
  color: #7ee0a1;
}

.cot-net-negative {
  color: #ff9a9a;
}

.cot-net-neutral {
  color: #d7deea;
}

.analyze-overlay[hidden] {
  display: none !important;
}

.analyze-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.analyze-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(10px);
}

.analyze-overlay__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analyze-orb {
  position: relative;
  width: 190px;
  height: 190px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.analyze-orb:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.analyze-orb:active {
  transform: scale(0.98);
}

.analyze-orb__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #67e8f9,
    #7aa2ff,
    #8b5cf6,
    #ec4899,
    #67e8f9
  );
  box-shadow:
    0 0 24px rgba(103, 232, 249, 0.18),
    0 0 40px rgba(122, 162, 255, 0.18),
    0 0 70px rgba(139, 92, 246, 0.14);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%);
  mask: radial-gradient(circle, transparent 56%, #000 58%);
}

.analyze-orb__core {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(30, 41, 59, 0.96), rgba(7, 12, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.42);
}

.analyze-orb__text {
  color: #edf3ff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analyze-orb.is-loading {
  pointer-events: none;
}

.analyze-orb.is-loading .analyze-orb__rings {
  animation: analyzeSpin 1.05s linear infinite;
}

.analyze-orb.is-loading .analyze-orb__core {
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.05),
    0 0 30px rgba(103, 232, 249, 0.16),
    0 0 60px rgba(122, 162, 255, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.42);
}

@keyframes analyzeSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.js-market-row {
  cursor: pointer;
}

.js-market-row td:first-child {
  position: relative;
  font-weight: 700;
  color: var(--text);
}

.js-market-row td:first-child::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 1px;
  background: rgba(122, 162, 255, 0.35);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.22s ease, background 0.22s ease;
}

.js-market-row:hover td:first-child::after {
  transform: scaleX(1);
  background: rgba(122, 162, 255, 0.9);
}

.js-market-row:hover td:first-child {
  color: var(--accent);
}

/* ===============================
FULL REPORT MODAL
=============================== */

.report-actions {
  margin-top: 18px;
}

.report-modal {
  max-width: 900px;
}

.report-modal__reader {
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px 4px;
  line-height: 1.6;
  font-size: 15px;
  white-space: pre-line;
  user-select: none;
}

.report-modal__reader::selection {
  background: transparent;
}

.report-modal__reader::-moz-selection {
  background: transparent;
}

.report-modal__reader::-webkit-scrollbar {
  width: 8px;
}

.report-modal__reader::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
}

.report-modal__reader::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.report-modal__reader::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}
.history-asset-link {
  display: inline-block;
  font-weight: 700;
 color: var(--text);
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
}

.history-asset-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: -30px;
  bottom: 0;
  height: 1px;
  background: rgba(122, 162, 255, 0.35);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.22s ease, background 0.22s ease;
}

#historyAssetsTableBody tr:hover .history-asset-link,
#historyPairsTableBody tr:hover .pair-link {
  color: var(--accent);
}

#historyAssetsTableBody tr:hover .history-asset-link::after,
#historyPairsTableBody tr:hover .pair-link::after {
  transform: scaleX(1);
  background: rgba(122, 162, 255, 0.9);
}

/* IRS GAP COLORS */
.irs-gap-low {
  color: #9ca3af !important;
  font-weight: 700;
}

.irs-gap-medium {
  color: #fbbf24 !important;
  font-weight: 700;
}

.irs-gap-strong {
  color: #22c55e !important;
  font-weight: 700;
}
.pair-link {
  display: inline-block;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
}

.pair-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: -30px;
  bottom: 0;
  height: 1px;
  background: rgba(122, 162, 255, 0.35);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.22s ease, background 0.22s ease;
}

.js-pair-row {
  cursor: pointer;
}

.js-pair-row:hover .pair-link {
  color: var(--accent);
}

.js-pair-row:hover .pair-link::after {
  transform: scaleX(1);
  background: rgba(122, 162, 255, 0.9);
}

#pairsFamilySelect option,
#pairsPairSelect option {
  color: #111111 !important;
  background: #ffffff !important;
}

#pairsFamilySelect optgroup,
#pairsPairSelect optgroup {
  color: #111111 !important;
  background: #ffffff !important;
}
#historyTableBody tr {
  cursor: pointer;
}
#snapshotExtraCard[hidden] {
  display: none !important;
}
/* ===============================
RANKINGS PLAYBOOK
=============================== */

.rankings-playbook {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.playbook-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(17, 27, 43, 0.72),
    rgba(12, 20, 33, 0.82)
  );
  overflow: hidden;
  transition: all 0.25s ease;
}

/* 🔥 ESTADO ABIERTO (VERSIÓN FINAL) */
.playbook-item.is-open {
  border-color: rgba(122, 162, 255, 0.55);

  background: linear-gradient(
    180deg,
    rgba(52, 78, 128, 0.95),
    rgba(22, 36, 64, 0.98)
  );

  box-shadow:
    0 0 0 1px rgba(122, 162, 255, 0.12) inset,
    0 14px 36px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(122, 162, 255, 0.16);
}

/* HEADER DEL ACORDEÓN */
.playbook-trigger {
  width: 100%;
  min-height: 84px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.playbook-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* 🔥 HEADER ACTIVO */
.playbook-item.is-open .playbook-trigger {
  background: rgba(122, 162, 255, 0.1);
}

/* TEXTO */
.playbook-kicker {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fb3ff;
  margin-bottom: 8px;
}

.playbook-title {
  margin: 0;
  font-size: 1.08rem;
  color: #f2f6ff;
}

.playbook-item.is-open .playbook-title {
  color: #ffffff;
}

/* ICONO */
.playbook-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 162, 255, 0.1);
  border: 1px solid rgba(122, 162, 255, 0.16);
  color: #dbe7ff;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.playbook-item.is-open .playbook-icon {
  background: rgba(122, 162, 255, 0.22);
  border-color: rgba(122, 162, 255, 0.4);
  color: #ffffff;
}

/* CUERPO */
.playbook-body {
  padding: 0 20px 20px 20px;
}

/* 🔥 CUERPO ACTIVO (SEPARACIÓN VISUAL CLARA) */
.playbook-item.is-open .playbook-body {
  background: rgba(122, 162, 255, 0.04);
  border-radius: 14px;
  padding-top: 16px;
}

.playbook-body[hidden] {
  display: none !important;
}

/* ===============================
HIGHLIGHTS (DORADO PREMIUM)
=============================== */

.ranking-highlight-card {
  position: relative;

  background:
    radial-gradient(circle at 18% 12%, rgba(255, 215, 120, 0.34), transparent 34%),
    linear-gradient(
      135deg,
      #fff7df 0%,
      #f4e6bf 38%,
      #d8c18a 100%
    );

  border: 1px solid rgba(166, 124, 30, 0.48);

  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(255,255,255,0.32) inset;

  transition: all 0.25s ease;
  cursor: pointer;
}

.ranking-highlight-card:hover {
  transform: translateY(-2px);

  border-color: rgba(166, 124, 30, 0.72);

  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.14),
    0 0 28px rgba(212, 175, 55, 0.20);
}

.ranking-highlight-card span {
  color: #8a6410;
}

.ranking-highlight-card strong {
  color: #111827;
}

.ranking-highlight-card p {
  color: #3a4657;
}

.ranking-highlight-card p strong {
  color: #8a6410 !important;
}
/* ===============================
DROPDOWN FIX
=============================== */

#rankingsCategorySelect {
  color: #ffffff !important;
  background: rgba(37, 56, 94, 0.7) !important;
  border: 1px solid rgba(90, 130, 220, 0.35) !important;
}

#rankingsCategorySelect option,
#rankingsCategorySelect optgroup {
  color: #111111 !important;
  background: #ffffff !important;
}

/* ===============================
RESPONSIVE
=============================== */

@media (max-width: 860px) {
  .playbook-trigger {
    min-height: 74px;
    padding: 16px 16px;
  }

  .playbook-body {
    padding: 0 16px 16px 16px;
  }

  .playbook-title {
    font-size: 1rem;
  }
}
.ranking-asset-name {
  transition: color 0.2s ease;
}

.ranking-asset-name.is-bullish {
  color: #4fd1a5;
}

.ranking-asset-name.is-bearish {
  color: #f87171;
}
/* ===============================
RANKING CARD LINK
=============================== */

.ranking-card {
  cursor: pointer;
}

.ranking-link {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #7aa2ff;
  opacity: 0.78;
  transition: all 0.2s ease;
}

.ranking-card:hover .ranking-link {
  opacity: 1;
  color: #a8c1ff;
  transform: translateX(2px);
}
/* === Insight Cards Gold Accent === */
.insight-card {
  border: 1px solid rgba(212, 175, 55, 0.25);
}
/* === DASHBOARD INSIGHT CARDS INTERACTIVE === */
.insight-card {
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Hover elegante */
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Línea dorada superior */
.insight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #d4af37, #f5e6b3, #d4af37);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insight-card:hover::before {
  opacity: 1;
}

/* Glow suave dorado */
.insight-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

/* Texto del asset más fuerte en hover */
.insight-card:hover h4 {
  color: #f5e6b3;
}

/* Micro animación al hacer click */
.insight-card:active {
  transform: scale(0.98);
}
/* =========================
   SELECT FIX - USER SETTINGS (PRO)
========================= */

#userSettingsLangSelect {
  background: linear-gradient(180deg, rgba(17,27,43,.96), rgba(14,22,35,.94));
  color: #e8edf6;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 40px 10px 14px; /* espacio para flecha */
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;

  /* 🔥 Flecha custom */
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%237aa2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
#userSettingsThemeSelect {
  background: linear-gradient(180deg, rgba(17,27,43,.96), rgba(14,22,35,.94));
  color: #e8edf6;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 40px 10px 14px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%237aa2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

#userSettingsThemeSelect option {
  background: #111b2b;
  color: #e8edf6;
}
/* Opciones */
#userSettingsLangSelect option {
  background: #111b2b;
  color: #e8edf6;
}
.nav-item__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  display: block;
}
.opportunity-tone-clean {
  color: #2fb171 !important;
}

.opportunity-tone-mature {
  color: #f0b24d !important;
}

.opportunity-tone-fragility {
  color: #ff9a4d !important;
}

.opportunity-tone-transition {
  color: #ff6b6b !important;
}

.opportunity-tone-neutral {
  color: #a7b4c8 !important;
}
/* =========================
   Rankings - Setup Layer
========================= */

#rankingsSetupTabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#rankingsSetupTabs .plan-badge {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
}

#rankingsSetupTabs .plan-badge:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

#rankingsSetupTabs .plan-badge.is-active {
  border-color: rgba(51, 93, 255, 0.55);
  background: linear-gradient(
    135deg,
    rgba(51, 93, 255, 0.16),
    rgba(51, 93, 255, 0.08)
  );
  color: #1e3a8a;
  box-shadow:
    0 0 0 1px rgba(51, 93, 255, 0.16) inset,
    0 6px 16px rgba(51, 93, 255, 0.12);
  transform: translateY(-1px);
}

.ranking-setup-card {
  position: relative;
  background: var(--bg-soft);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;

}

.ranking-setup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.ranking-setup-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  opacity: 0.95;
}

.ranking-setup-card--empty {
  cursor: default;
}

.ranking-setup-card--empty:hover {
  transform: none;
  box-shadow: none;
}

.ranking-setup-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ranking-setup-family {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ranking-setup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ranking-setup-asset {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.ranking-setup-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ranking-setup-score-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ranking-setup-score {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ranking-setup-summary {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.ranking-setup-link {
  display: inline-flex;
  margin-top: auto;
}

/* Tone system */
.ranking-setup-tone-clean::before {
  background: #2fb171;
}

.ranking-setup-tone-mature::before {
  background: #f0b24d;
}

.ranking-setup-tone-fragility::before {
  background: #ff9a4d;
}

.ranking-setup-tone-transition::before {
  background: #ff6b6b;
}

.ranking-setup-tone-neutral::before {
  background: #9aa7b8;
}

.ranking-setup-badge.ranking-setup-tone-clean {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.34);
}

.ranking-setup-badge.ranking-setup-tone-mature {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.38);
}

.ranking-setup-badge.ranking-setup-tone-fragility {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.38);
}

.ranking-setup-badge.ranking-setup-tone-transition {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.36);
}

.ranking-setup-badge.ranking-setup-tone-neutral {
  color: #475569;
  background: rgba(100, 116, 139, 0.16);
  border-color: rgba(100, 116, 139, 0.34);
}

.ranking-setup-score.ranking-setup-tone-clean {
  color: #2fb171;
}

.ranking-setup-score.ranking-setup-tone-mature {
  color: #f0b24d;
}

.ranking-setup-score.ranking-setup-tone-fragility {
  color: #ff9a4d;
}

.ranking-setup-score.ranking-setup-tone-transition {
  color: #ff6b6b;
}

.ranking-setup-score.ranking-setup-tone-neutral {
  color: #a7b4c8;
}
/* ===============================
OPPORTUNITY LINK BUTTON (FIX PRO)
=============================== */
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;

  color: #7aa2ff;
  font-size: 0.9rem;
  font-weight: 500;

  cursor: pointer;
  text-decoration: none;
}

.link-button:hover {
  color: #a8c1ff;
  transform: translateX(2px);
}

.link-button:focus,
.link-button:active {
  outline: none;
  background: transparent;
  box-shadow: none;
}
/* ===============================
APP LOADING FIX (NO PANEL FLASH)
=============================== */
.app-loading .app-shell {
  opacity: 0;
  visibility: hidden;
}

.app-ready .app-shell {
  opacity: 1;
  visibility: visible;
}
/* ===============================
PLAN CURRENT (PRO HIGHLIGHT)
=============================== */

.plan-card-current {
  position: relative;
  border: 1px solid rgba(255, 215, 100, 0.9); /* dorado fuerte */
  box-shadow:
    0 0 0 1px rgba(255, 215, 100, 0.18) inset,
    0 12px 32px rgba(11, 18, 32, 0.35),
    0 0 45px rgba(255, 215, 100, 0.25);
  transform: translateY(-2px);
}

/* Glow suave institucional */
.plan-card-current::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 215, 100, 0.18) 0%,
    rgba(255, 215, 100, 0.06) 35%,
    rgba(255, 215, 100, 0.00) 100%
  );
}

/* Hover elegante para TODAS las tarjetas */
#plansCardsGrid .panel-card {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

#plansCardsGrid .panel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 14, 26, 0.22);
}
.panel-card .primary-btn {
  margin-top: 18px;
}
.primary-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #0b1220;
  background: linear-gradient(135deg, #9db8ff 0%, #7ea2ff 100%);

  border: none;
  cursor: pointer;

  transition: all 0.25s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(126, 162, 255, 0.35),
    0 0 12px rgba(126, 162, 255, 0.25);

  background: linear-gradient(135deg, #aec6ff 0%, #8fb0ff 100%);
}

.primary-btn:active {
  transform: translateY(0px);
  box-shadow: none;
}
/* PREMIUM BUTTON */
.primary-btn--premium {
  background: linear-gradient(
    135deg,
    #ffd76a 0%,
    #f5c542 100%
  );
  color: #1a1a1a;
}

.primary-btn--premium:hover {
  box-shadow:
    0 8px 22px rgba(255, 215, 106, 0.35),
    0 0 18px rgba(255, 215, 106, 0.25);

  background: linear-gradient(
    135deg,
    #ffe08a 0%,
    #f7cc5a 100%
  );
}
/* ===============================
PLAN CARDS BUTTON ALIGNMENT
=============================== */

#plansCardsGrid .panel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#plansCardsGrid .panel-card ul {
  flex-grow: 1;
}

#plansCardsGrid .panel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#plansCardsGrid .panel-card ul {
  flex-grow: 1;
}

/* 🔥 Separación + alineación PRO */
#plansCardsGrid .panel-card .primary-btn {
  margin-top: auto;
  margin-top: 24px;
}
.primary-btn--premium {
  background: linear-gradient(135deg, #ffd76a 0%, #f5c542 100%);
  color: #1a1a1a;
  font-weight: 700;
}
.primary-btn--premium:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(255, 215, 106, 0.45),
    0 0 20px rgba(255, 215, 106, 0.35);
}
.primary-btn {
  opacity: 0.92;
}
/* ===============================
PLAN PRICING BLOCK
=============================== */

#planFreeBadge,
#planRegularBadge,
#planPremiumBadge {
  font-size: 1rem;
  line-height: 1.45;

  color: #111827;

  margin-top: 4px;

  font-weight: 600;
}

.plan-price-block {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.035),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.plan-price-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-price-base {
  color: rgba(17, 24, 39, 0.38);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.plan-price-discount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;

  font-size: 0.76rem;
  font-weight: 700;

  color: #2563eb;

  background: rgba(59, 130, 246, 0.10);

  border: 1px solid rgba(59, 130, 246, 0.22);

  letter-spacing: 0.01em;
}

.plan-price-mainline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-price-current {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #111827;
  letter-spacing: -0.04em;
}

.plan-price-period {
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
}

.plan-recommended-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 13px;
  margin-top: 6px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 800;
  color: #161616;
  background: linear-gradient(135deg, #ffd86f 0%, #f3c542 100%);
  box-shadow:
    0 8px 20px rgba(255, 215, 106, 0.2),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

#planFreePriceBlock {
  min-height: 74px;
  padding: 14px 16px;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.028),
    rgba(255,255,255,0.015)
  );
}

#planFreePriceBlock .plan-price-mainline {
  justify-content: flex-start;
}

#planFreePriceBlock .plan-price-current {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

#planRegularPriceBlock {
  border-color: rgba(122, 162, 255, 0.14);
  background: linear-gradient(
    180deg,
    rgba(122, 162, 255, 0.06),
    rgba(255,255,255,0.02)
  );
}

#planPremiumPriceBlock {
  border-color: rgba(255, 215, 106, 0.32);
  background: linear-gradient(
    180deg,
    rgba(255, 215, 106, 0.12),
    rgba(255,255,255,0.025)
  );
  box-shadow:
    0 0 0 1px rgba(255, 215, 106, 0.05) inset,
    0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Tarjetas del grid de planes - DARK DEFAULT */
#plansCardsGrid .panel-card {
  position: relative;

  background: linear-gradient(
    180deg,
    rgba(17, 27, 43, 0.96),
    rgba(14, 22, 35, 0.94)
  );

  border: 1px solid var(--border);

  border-radius: 22px;

  box-shadow: var(--shadow);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
/* Línea superior dorada: apagada por defecto */
#plansCardsGrid .panel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #ffd86f 0%, #f3c542 50%, #ffd86f 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* La línea SOLO aparece al hover de la tarjeta recomendada */
#plansCardsGrid .panel-card.plan-card--recommended:hover::before {
  opacity: 0.95;
}

/* La tarjeta recomendada sí mantiene borde/glow */
.plan-card--recommended {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 215, 120, 0.24), transparent 34%),
    linear-gradient(
      135deg,
      #fff7df 0%,
      #f4e6bf 38%,
      #d8c18a 100%
    ) !important;

  border-color: rgba(255, 215, 106, 0.46) !important;

  box-shadow:
    0 0 0 1px rgba(255, 215, 106, 0.08) inset,
    0 16px 36px rgba(15, 23, 42, 0.10),
    0 0 28px rgba(255, 215, 106, 0.10);
}
@media (max-width: 860px) {
  #planFreeBadge,
  #planRegularBadge,
  #planPremiumBadge {
    font-size: 0.94rem;
  }

  .plan-price-block {
    min-height: auto;
    padding: 14px 15px;
  }

  .plan-price-current {
    font-size: 2.05rem;
  }

  #planFreePriceBlock .plan-price-current {
    font-size: 1.55rem;
  }

  .plan-price-period {
    font-size: 0.95rem;
  }
}
.dashboard-link-bridge {
  margin-top: 12px;
  color: #7aa2ff;
  cursor: pointer;
  font-size: 14px;
}

.dashboard-link-bridge:hover {
  text-decoration: underline;
}
.snapshot-reading {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  font-weight: 500; 
  opacity: 0.92;    
}

.snapshot-reading strong {
  font-weight: 600;
  color: var(--text);
}
.snapshot-risk {
  color: #f0b24d;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.cot-evolution-block h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cot-evolution-block .cot-structured-table {
  font-size: 12px;
}

.cot-evolution-block .cot-structured-table th,
.cot-evolution-block .cot-structured-table td {
  padding: 8px 10px;
  line-height: 1.25;
  white-space: nowrap;
}

.cot-evolution-block .cot-structured-table th {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.cot-evolution-block .cot-structured-table td {
  vertical-align: middle;
}
.cot-evo-value {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.cot-evo-delta {
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.8;
}

.cot-evo-delta--positive {
  color: #4fd18b; /* verde suave */
}

.cot-evo-delta--negative {
  color: #ff7a7a; /* rojo suave */
}

.cot-evo-delta--neutral {
  color: #888;
}
.cot-evolution-block td {
  text-align: center;
}
.cot-evolution-block .cot-group-nc {
  background: rgba(255, 255, 255, 0.01);
}

.cot-evolution-block .cot-group-c {
  background: rgba(255, 255, 255, 0.015);
}

.cot-evolution-block .cot-group-nc-start {
  border-left: 2px solid var(--border-strong);
}

.cot-evolution-block .cot-group-nc-end {
  border-right: 2px solid var(--border-strong);
}

.cot-evolution-block .cot-group-c-start {
  border-left: 2px solid var(--border-strong);
}

.cot-evolution-block .cot-group-c-end {
  border-right: 2px solid var(--border-strong);
}

/* TOP del bloque NC */
.cot-evolution-block thead .cot-group-nc {
  border-top: 2px solid var(--border-strong);
}

/* TOP del bloque C */
.cot-evolution-block thead .cot-group-c {
  border-top: 2px solid var(--border-strong);
}

/* BOTTOM del bloque NC */
.cot-evolution-block tbody tr:last-child .cot-group-nc {
  border-bottom: 2px solid var(--border-strong);
}

/* BOTTOM del bloque C */
.cot-evolution-block tbody tr:last-child .cot-group-c {
  border-bottom: 2px solid var(--border-strong);
}
.report-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: 320px;
}

#reportChartCard {
  display: none;
}

#reportChartCanvas {
  width: 100% !important;
  height: 100% !important;
}
body.app-loading .content {
  opacity: 0;
}

body.app-loading .topbar,
body.app-loading .sidebar {
  opacity: 0;
}
html.app-loading .app-shell,
body.app-loading .app-shell {
  opacity: 0;
  pointer-events: none;
}
/* SUPPORT FLOATING WIDGET */
.support-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}

.support-float-btn {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #d4af37, #7a5c12);
  color: #0b0f17;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-float-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 22px 60px rgba(212, 175, 55, 0.22);
}

.support-box {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 20px;
  background: rgba(13, 18, 30, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.support-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.support-box-header h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  letter-spacing: 0.02em;
}

#supportCloseBtn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

#supportMessageInput {
  min-height: 120px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.62);
  color: #e5e7eb;
  padding: 12px 14px;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

#supportMessageInput::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

#supportMessageInput:focus {
  border-color: rgba(212, 175, 55, 0.52);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.support-feedback {
  font-size: 12px;
  max-width: 210px;
}

@media (max-width: 640px) {
  .support-widget {
    right: 16px;
    bottom: 16px;
  }

  .support-box {
    bottom: 64px;
  }
}
#adminBlogEditor .ql-editor {
  min-height: 600px;
  font-size: 15px;
  line-height: 1.6;
}

#adminBlogEditor .ql-container {
  height: 100%;
}

/* Imagen base */
#adminBlogEditor .ql-editor img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

/* CENTRO */
#adminBlogEditor .ql-editor img.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* IZQUIERDA */
#adminBlogEditor .ql-editor img.img-left {
  float: left;
  margin-right: 20px;
}

/* DERECHA */
#adminBlogEditor .ql-editor img.img-right {
  float: right;
  margin-left: 20px;
}

/* Tamaños rápidos */
#adminBlogEditor .ql-editor img.img-small {
  width: 250px;
}

#adminBlogEditor .ql-editor img.img-medium {
  width: 500px;
}

#adminBlogEditor .ql-editor img.img-large {
  width: 800px;
}
#adminBlogEditor .ql-editor img.img-selected {
  outline: 2px solid #7aa2ff;
  outline-offset: 4px;
}
.sori-html-block {
  margin: 24px 0;
  width: 100%;
}

.sori-html-block table {
  width: 100%;
  border-collapse: collapse;
}

.sori-html-block th,
.sori-html-block td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  text-align: left;
}

.sori-html-block th {
  background: rgba(122,162,255,0.12);
}
.blog-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-btn:hover {
  background: rgba(122,162,255,0.12);
  border-color: rgba(122,162,255,0.5);
  color: #ffffff;
}
/* === BLOG EDITOR BUTTONS === */

.blog-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-btn:hover {
  background: rgba(122,162,255,0.12);
  border-color: rgba(122,162,255,0.5);
  color: #ffffff;
}

/* versión pequeña (para botones de imagen) */
.blog-btn.small {
  padding: 4px 8px;
  font-size: 12px;
  opacity: 0.85;
}
/* ===============================
MOBILE TOPBAR FIX
Solo afecta móvil
=============================== */
@media (max-width: 860px) {
  .topbar {
    min-height: auto;
    padding: 14px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    position: sticky;
    top: 0;
  }

  .topbar__left {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
  }

  .topbar__left h2 {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .topbar__subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .topbar__right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 10px;
    align-items: center;
  }

  .status-pill {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.76rem;
    justify-content: center;
  }

  .plan-badge {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
    justify-content: center;
  }

  .user-chip {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    padding: 6px 10px 6px 6px;
  }

  .user-chip > div:not(.user-chip__avatar):not(#userMenu) {
    min-width: 0;
    flex: 1;
  }

  .user-chip strong,
  .user-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #userMenu {
    width: 100%;
    min-width: 100%;
  }
}
/* ===============================
MOBILE TOPBAR COMPACT v2
=============================== */
@media (max-width: 860px) {
  .topbar {
    gap: 10px;
  }

  .topbar__right {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }

  .status-pill {
    min-height: 36px;
    font-size: 0.72rem;
    padding: 0 10px;
  }

  .plan-badge {
    min-height: 36px;
    font-size: 0.72rem;
    padding: 0 11px;
  }

  .user-chip {
    grid-column: auto;
    width: auto;
    min-height: 36px;
    padding: 4px 6px;
    border-radius: 12px;
    gap: 6px;
  }

  .user-chip__avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.85rem;
  }

  .user-chip > div:not(.user-chip__avatar):not(#userMenu) {
    display: none;
  }

  #userMenuBtn {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
  }

  #userMenu {
    min-width: 190px;
    width: 190px;
    right: 0;
  }
}
/* ===============================
MOBILE TABLE SCROLL FIX
=============================== */
@media (max-width: 860px) {
  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-card table {
    min-width: 720px;
  }

  #panel-markets .table-card {
    position: relative;
  }

  #panel-markets .table-card::after {
    content: "→";
    position: absolute;
    right: 12px;
    top: 14px;
    color: rgba(122, 162, 255, 0.85);
    font-weight: 800;
    pointer-events: none;
  }
}
/* ===============================
MOBILE PAIRS EXPLORER COMPACT
=============================== */
@media (max-width: 860px) {
  #panel-pairs .quick-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }

  #pairsFamilySelect,
  #pairsPairSelect {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.76rem;
    padding: 0 10px;
  }

  #openPairAnalyzeBtn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
  }
}
/* ===============================
MOBILE RANKINGS CATEGORY GRID
=============================== */
@media (max-width: 860px) {
  .ranking-filter-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .ranking-filter-tabs .filter-chip {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    min-height: 42px;
    padding: 10px 12px;
    line-height: 1.2;
    font-size: 0.78rem;
  }

  .ranking-filter-tabs .filter-chip:last-child:nth-child(odd) {
    grid-column: 1;
  }
}
/* ===============================
MOBILE RANKINGS SETUP TABS FIX REAL
=============================== */
@media (max-width: 860px) {
  #rankingsSetupTabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  #rankingsSetupTabs .plan-badge {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 10px !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 999px !important;
    font-size: 0.76rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  #rankingsSetupTabs .plan-badge:last-child:nth-child(odd) {
    grid-column: 1 / 2 !important;
  }
}
/* ===============================
LIGHT MODE - SELECTS FIX
=============================== */

html[data-theme="light"] #pairsFamilySelect,
html[data-theme="light"] #pairsPairSelect,
html[data-theme="light"] #marketsFamilySelect,
html[data-theme="light"] #rankingsCategorySelect {
  background: #eef3fb !important;
  color: #111827 !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] #pairsFamilySelect option,
html[data-theme="light"] #pairsPairSelect option,
html[data-theme="light"] #marketsFamilySelect option,
html[data-theme="light"] #rankingsCategorySelect option {
  background: #ffffff !important;
  color: #111827 !important;
}
/* ===============================
LIGHT MODE - PLAN CARDS FINAL
=============================== */

html[data-theme="light"] #plansCardsGrid .panel-card:not(.plan-card--recommended) {
  background: linear-gradient(
    180deg,
    #d7e7ff 0%,
    #c8dcf7 100%
  ) !important;

  border: 2px solid rgba(51, 93, 255, 0.22) !important;

  box-shadow:
    0 14px 34px rgba(51, 93, 255, 0.13),
    0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] #plansCardsGrid .panel-card:not(.plan-card--recommended) .plan-price-block {
  background: rgba(255, 255, 255, 0.34) !important;
  border: 1px solid rgba(51, 93, 255, 0.18) !important;
}

html[data-theme="light"] #plansCardsGrid .panel-card.plan-card--recommended {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 215, 120, 0.24), transparent 34%),
    linear-gradient(
      135deg,
      #fff7df 0%,
      #f4e6bf 38%,
      #d8c18a 100%
    ) !important;
}
/* ===============================
LIGHT MODE - USER SETTINGS SELECTS
=============================== */

html[data-theme="light"] #userSettingsLangSelect,
html[data-theme="light"] #userSettingsThemeSelect {
  background: #eef4ff !important;
  color: #111827 !important;
  border: 1px solid rgba(51, 93, 255, 0.22) !important;
  box-shadow: 0 2px 8px rgba(51, 93, 255, 0.08);
}

html[data-theme="light"] #userSettingsLangSelect option,
html[data-theme="light"] #userSettingsThemeSelect option {
  background: #ffffff !important;
  color: #111827 !important;
}
/* ===============================
LIGHT MODE - TOPBAR DARK, CLEAN
=============================== */

html[data-theme="light"] .topbar {
  background: #111827 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* Mantener visible el título del panel */
html[data-theme="light"] #pageTitle {
  color: #eaf1ff !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Subtítulo debajo del título */
html[data-theme="light"] #topbarSubtitle {
  color: #8fa3bf !important;
  opacity: 1 !important;
}
/* ===============================
LIGHT MODE - SIDEBAR SAME AS DARK
=============================== */

html[data-theme="light"] .sidebar {
  background: #0f1724 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="light"] .sidebar__brand,
html[data-theme="light"] .sidebar-logo,
html[data-theme="light"] .sidebar-logo-box,
html[data-theme="light"] .brand-mark,
html[data-theme="light"] .brand-copy,
html[data-theme="light"] .brand-copy h1,
html[data-theme="light"] .brand-copy p {
  opacity: 1 !important;
  filter: none !important;
}

html[data-theme="light"] .brand-copy h1 {
  color: #f8fafc !important;
}

html[data-theme="light"] .brand-copy p {
  color: #64748b !important;
}

html[data-theme="light"] .sidebar__nav .nav-item {
  color: #dbeafe !important;
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="light"] .sidebar__nav .nav-item.active {
  background: rgba(122, 162, 255, 0.14) !important;
  border-color: rgba(122, 162, 255, 0.45) !important;
  color: #ffffff !important;
}

html[data-theme="light"] #navPairsLockText,
html[data-theme="light"] #navRankingsLockText {
  background: rgba(240, 178, 77, 0.14) !important;
  border: 1px solid rgba(240, 178, 77, 0.38) !important;
  color: #f3c978 !important;
  opacity: 1 !important;
}
/* ===============================
LIGHT MODE - MOBILE TOPBAR ICONS FIX
=============================== */

@media (max-width: 860px) {
  html[data-theme="light"] .sidebar-toggle {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  html[data-theme="light"] .sidebar-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
  }

  html[data-theme="light"] .user-chip__avatar {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10) !important;
  }

  html[data-theme="light"] #userMenuBtn {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  html[data-theme="light"] #userMenuBtn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
  }
}
/* ===============================
LIGHT MODE - DESKTOP TOPBAR USER CHIP FIX
=============================== */

html[data-theme="light"] .topbar .user-chip__avatar {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="light"] .topbar #userDisplayName {
  color: #ffffff !important;
  opacity: 1 !important;
}

html[data-theme="light"] .topbar #userDisplayPlan {
  color: #8fa3bf !important;
  opacity: 1 !important;
}

html[data-theme="light"] .topbar #userMenuBtn {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="light"] .topbar #userMenuBtn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  opacity: 1 !important;
}
/* ===============================
DARK MODE - PLAN PRICE TEXT FIX
=============================== */

html:not([data-theme="light"]) #plansCardsGrid .plan-card:not(.plan-card--recommended) .plan-price-current,
html:not([data-theme="light"]) #plansCardsGrid .plan-card:not(.plan-card--recommended) #planFreeBadge,
html:not([data-theme="light"]) #plansCardsGrid .plan-card:not(.plan-card--recommended) #planRegularBadge {
  color: #f8fafc !important;
  opacity: 1 !important;
}

html:not([data-theme="light"]) #plansCardsGrid .plan-card:not(.plan-card--recommended) .plan-price-base {
  color: rgba(226, 232, 240, 0.55) !important;
}

html:not([data-theme="light"]) #plansCardsGrid .plan-card:not(.plan-card--recommended) .plan-price-period {
  color: #cbd5e1 !important;
}

/* Premium dorado en dark con texto legible */
html:not([data-theme="light"]) #plansCardsGrid .plan-card--recommended,
html:not([data-theme="light"]) #plansCardsGrid .plan-card--recommended p,
html:not([data-theme="light"]) #plansCardsGrid .plan-card--recommended li,
html:not([data-theme="light"]) #plansCardsGrid .plan-card--recommended span {
  color: #1f2937 !important;
}

html:not([data-theme="light"]) #plansCardsGrid .plan-card--recommended strong,
html:not([data-theme="light"]) #plansCardsGrid .plan-card--recommended .plan-price-current,
html:not([data-theme="light"]) #plansCardsGrid .plan-card--recommended #planPremiumBadge {
  color: #111827 !important;
  opacity: 1 !important;
}
/* ===============================
DARK MODE - REGULAR/FREE PRICE DETAILS FIX
=============================== */

html:not([data-theme="light"]) #planFreePriceBlock .plan-price-current,
html:not([data-theme="light"]) #planRegularPriceBlock .plan-price-current {
  color: #f8fafc !important;
  opacity: 1 !important;
}

html:not([data-theme="light"]) #planRegularPriceBlock .plan-price-base {
  color: rgba(226, 232, 240, 0.62) !important;
  opacity: 1 !important;
}

html:not([data-theme="light"]) #planRegularPriceBlock .plan-price-discount {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(147, 197, 253, 0.36) !important;
}

html:not([data-theme="light"]) #planFreePriceBlock {
  border-color: rgba(255, 255, 255, 0.10) !important;
}
/* ===============================
TRIAL WELCOME MODAL - COMPACT PRO
=============================== */

#trialWelcomeModalBackdrop .cot-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: 82vh;
  padding: 24px 26px;
}

#trialWelcomeModalBackdrop .cot-modal__header {
  margin-bottom: 10px;
}

#trialWelcomeModalBackdrop .cot-modal__body {
  margin-bottom: 14px;
}

#trialWelcomeModalBackdrop .report-modal__reader {
  max-height: none;
  overflow: visible;
  padding: 0;
  line-height: 1.5;
  white-space: normal;
  user-select: auto;
}

#trialWelcomeModalBackdrop .report-modal__reader p {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.5;
}

#trialWelcomeModalBackdrop #trialModalFeatures {
  margin: 8px 0 14px !important;
  padding-left: 20px !important;
  line-height: 1.45 !important;
}

#trialWelcomeModalBackdrop #trialModalFeatures li {
  margin-bottom: 8px;
  color: var(--text);
}

#trialWelcomeModalBackdrop label {
  margin-top: 10px !important;
  font-size: 0.9rem !important;
}

#trialWelcomeModalBackdrop input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f5c542;
  flex: 0 0 18px;
}

#trialWelcomeModalBackdrop .cot-modal__footer {
  margin-top: 10px;
}

#trialWelcomeModalBackdrop #trialModalAcceptBtn {
  width: auto;
  min-width: 220px;
}

@media (max-width: 640px) {
  #trialWelcomeModalBackdrop .cot-modal {
    width: calc(100vw - 24px);
    max-height: 86vh;
    padding: 20px;
  }

  #trialWelcomeModalBackdrop #trialModalAcceptBtn {
    width: 100%;
  }
}