/* ==========================
   Getting Started Wizard UI
   ========================== */
.wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: var(--space-3);
}

.step-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 10px;
  display: grid;
  gap: 2px;
  min-height: 56px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.step-chip:hover {
  transform: translateY(-1px);
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.07);
}

.step-chip .k {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-chip .v {
  font-weight: 750;
  font-size: 12px;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.wizard-panels > section {
  display: none;
}

.wizard-panels > section:target {
  display: block;
}

.wizard-panels > section.default {
  display: block;
}

@media (max-width: 860px) {
  .wizard-header {
    flex-direction: column;
  }

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

/* =================
   Risk Profile Cards
   ================= */
.risk-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 860px) {
  .risk-options {
    grid-template-columns: 1fr;
  }
}

.risk-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-4);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.risk-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.07);
}

.risk-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.risk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.risk-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.risk-radio:checked + .risk-card {
  border-color: rgba(74, 163, 255, 0.35);
  background: rgba(74, 163, 255, 0.14);
}

.meter {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.meter > span {
  display: block;
  height: 100%;
  width: 58%;
  background: linear-gradient(90deg, rgba(74, 163, 255, 0.95), rgba(255, 176, 32, 0.92), rgba(255, 90, 122, 0.92));
}

/* ===================
   Goal Category Icons
   =================== */
.goal-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (max-width: 860px) {
  .goal-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cat {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.cat:hover {
  transform: translateY(-1px);
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.07);
}

.cat .emoji {
  font-size: 18px;
}

.cat .name {
  font-weight: 800;
  font-size: 13px;
}

/* ======================
   Portfolio Allocation UI
   ====================== */
.allocation {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (max-width: 860px) {
  .allocation {
    grid-template-columns: 1fr;
  }
}

.pie {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(74, 163, 255, 0.95) 0 38%,
    rgba(59, 229, 154, 0.92) 38% 62%,
    rgba(255, 176, 32, 0.92) 62% 83%,
    rgba(255, 90, 122, 0.92) 83% 100%
  );
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.blue {
  background: rgba(74, 163, 255, 0.95);
}
.dot.green {
  background: rgba(59, 229, 154, 0.92);
}
.dot.orange {
  background: rgba(255, 176, 32, 0.92);
}
.dot.red {
  background: rgba(255, 90, 122, 0.92);
}

/* ==========================
   Mutual Funds Mode Selector
   ========================== */
.mf-target {
  display: block;
  height: 0;
  position: relative;
  top: calc(-1 * (var(--topbar-h) + 14px));
}

.mf-panels > section {
  display: none;
}

.mf-panels > .research {
  display: block;
}

#research-mode:target ~ .mf-panels > .research {
  display: block;
}

#goal-based:target ~ .mf-panels > .research,
#invest-requests:target ~ .mf-panels > .research {
  display: none;
}

#goal-based:target ~ .mf-panels > .goal,
#invest-requests:target ~ .mf-panels > .goal {
  display: block;
}

/* =========================
   RA Subscription + Tab View
   ========================= */
.ra-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.ra-toggle input {
  width: 18px;
  height: 18px;
}

.ra-locked {
  opacity: 0.72;
}

.ra-locked .locked-banner {
  margin-top: 12px;
}

#ra-subscribed:checked ~ .ra-panels .locked-only {
  display: none;
}

#ra-subscribed:not(:checked) ~ .ra-panels .subscribed-only {
  display: none;
}

.ra-target {
  display: block;
  height: 0;
  position: relative;
  top: calc(-1 * (var(--topbar-h) + 14px));
}

.ra-tab-panels > section {
  display: none;
}

.ra-tab-panels > .open {
  display: block;
}

#open-calls:target ~ .ra-tab-panels > .open {
  display: block;
}

#closed-calls:target ~ .ra-tab-panels > .open,
#watchlist:target ~ .ra-tab-panels > .open,
#model-portfolio:target ~ .ra-tab-panels > .open,
#perf:target ~ .ra-tab-panels > .open {
  display: none;
}

#closed-calls:target ~ .ra-tab-panels > .closed,
#watchlist:target ~ .ra-tab-panels > .watch,
#model-portfolio:target ~ .ra-tab-panels > .model,
#perf:target ~ .ra-tab-panels > .perf {
  display: block;
}

.market-dashboard .market-card,
.market-dashboard .market-panel {
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.market-dashboard .market-card {
  display: grid;
  gap: 1rem;
  min-height: 120px;
}

.market-dashboard .market-card-top {
  display: grid;
  gap: 0.6rem;
}

.market-dashboard .market-card-bottom {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.market-dashboard .market-mini {
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.6rem;
}

.market-dashboard .market-chart {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem;
}

.market-dashboard .market-list {
  display: grid;
  gap: 0.85rem;
}

.market-dashboard .stock-row,
.market-dashboard .range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.market-dashboard .stock-left,
.market-dashboard .range-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.market-dashboard .stock-meta {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.market-dashboard .stock-right,
.market-dashboard .range-right {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  flex: 0 0 auto;
  min-width: 140px;
}

.market-dashboard .breadth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 575.98px) {
  .market-dashboard .breadth {
    grid-template-columns: 1fr;
  }
}

.market-dashboard .breadth-block {
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.75rem;
}

.market-dashboard .breadth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.market-dashboard .breadth-body {
  display: grid;
  gap: 0.6rem;
}

.market-dashboard .breadth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 575.98px) {
  .market-dashboard .breadth-stats {
    grid-template-columns: 1fr;
  }
}

.market-dashboard .breadth-stat {
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.6rem;
}

.market-dashboard .range-panel {
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.market-dashboard .range-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.md-target {
  display: block;
  height: 0;
  position: relative;
  top: calc(-1 * (var(--topbar-h) + 14px));
}

.md-panels > section {
  display: none;
}

.md-panels > section:first-child {
  display: block;
}

#shockers-gainers:target ~ .shockers-panels > .gainers {
  display: block;
}

#shockers-gainers:target ~ .shockers-panels > .losers {
  display: none;
}

#shockers-losers:target ~ .shockers-panels > .gainers {
  display: none;
}

#shockers-losers:target ~ .shockers-panels > .losers {
  display: block;
}

#active-nse:target ~ .active-panels > .nse {
  display: block;
}

#active-nse:target ~ .active-panels > .bse {
  display: none;
}

#active-bse:target ~ .active-panels > .nse {
  display: none;
}

#active-bse:target ~ .active-panels > .bse {
  display: block;
}

.market-dashboard .sk {
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.10) 35%,
    rgba(0, 0, 0, 0.06) 70%
  );
  background-size: 220% 100%;
  animation: sk-shimmer 1.25s ease-in-out infinite;
}

.market-dashboard .sk-line {
  height: 10px;
  border-radius: 999px;
}

.market-dashboard .sk-pill {
  height: 22px;
  border-radius: 999px;
}

.market-dashboard .sk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.market-dashboard .sk-chart {
  height: 280px;
  border-radius: 16px;
}

.market-dashboard .sk-bar {
  height: 10px;
  border-radius: 999px;
}

.market-dashboard .sk-w-18 {
  width: 18%;
}
.market-dashboard .sk-w-20 {
  width: 20%;
}
.market-dashboard .sk-w-22 {
  width: 22%;
}
.market-dashboard .sk-w-24 {
  width: 24%;
}
.market-dashboard .sk-w-26 {
  width: 26%;
}
.market-dashboard .sk-w-28 {
  width: 28%;
}
.market-dashboard .sk-w-30 {
  width: 30%;
}
.market-dashboard .sk-w-32 {
  width: 32%;
}
.market-dashboard .sk-w-35 {
  width: 35%;
}
.market-dashboard .sk-w-36 {
  width: 36%;
}
.market-dashboard .sk-w-38 {
  width: 38%;
}
.market-dashboard .sk-w-40 {
  width: 40%;
}
.market-dashboard .sk-w-42 {
  width: 42%;
}
.market-dashboard .sk-w-45 {
  width: 45%;
}
.market-dashboard .sk-w-46 {
  width: 46%;
}
.market-dashboard .sk-w-48 {
  width: 48%;
}
.market-dashboard .sk-w-50 {
  width: 50%;
}
.market-dashboard .sk-w-52 {
  width: 52%;
}
.market-dashboard .sk-w-54 {
  width: 54%;
}
.market-dashboard .sk-w-55 {
  width: 55%;
}
.market-dashboard .sk-w-56 {
  width: 56%;
}
.market-dashboard .sk-w-58 {
  width: 58%;
}
.market-dashboard .sk-w-60 {
  width: 60%;
}
.market-dashboard .sk-w-62 {
  width: 62%;
}
.market-dashboard .sk-w-64 {
  width: 64%;
}
.market-dashboard .sk-w-65 {
  width: 65%;
}
.market-dashboard .sk-w-66 {
  width: 66%;
}
.market-dashboard .sk-w-68 {
  width: 68%;
}
.market-dashboard .sk-w-70 {
  width: 70%;
}
.market-dashboard .sk-w-72 {
  width: 72%;
}
.market-dashboard .sk-w-74 {
  width: 74%;
}
.market-dashboard .sk-w-75 {
  width: 75%;
}
.market-dashboard .sk-w-76 {
  width: 76%;
}
.market-dashboard .sk-w-78 {
  width: 78%;
}
.market-dashboard .sk-w-80 {
  width: 80%;
}
.market-dashboard .sk-w-100 {
  width: 100%;
}

@keyframes sk-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.market-dashboard .md-card {
  overflow: hidden;
}

.market-dashboard .md-top {
  display: grid;
  gap: 0.3rem;
}

.market-dashboard .md-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-dashboard .md-value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.market-dashboard .md-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.market-dashboard .md-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

.market-dashboard .md-price {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.market-dashboard .md-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
}

.market-dashboard .md-delta.pos {
  border-color: rgba(59, 229, 154, 0.35);
  background: rgba(59, 229, 154, 0.12);
  color: rgba(18, 145, 86, 1);
}

.market-dashboard .md-delta.neg {
  border-color: rgba(255, 90, 122, 0.35);
  background: rgba(255, 90, 122, 0.10);
  color: rgba(185, 43, 71, 1);
}

.market-dashboard .md-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--bs-body-color);
}

.market-dashboard .md-mini-k {
  font-size: 0.75rem;
  color: var(--muted);
}

.market-dashboard .md-mini-v {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.market-dashboard .md-symbol {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--bs-primary-rgb), 0.10);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
  color: var(--bs-primary-text-emphasis);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.market-dashboard .md-name {
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-dashboard .md-row {
  position: relative;
}

.market-dashboard .md-range-line {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.market-dashboard .md-range-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 1), rgba(var(--bs-info-rgb), 1));
}

.market-dashboard .md-range-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(var(--bs-primary-rgb), 1);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

.market-dashboard .md-spark {
  width: 100%;
  height: 44px;
  margin-top: 0.75rem;
}

.market-dashboard .md-spark-line {
  fill: none;
  stroke: rgba(var(--bs-primary-rgb), 0.85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-dashboard .md-chart {
  width: 100%;
  height: 280px;
}

.market-dashboard .md-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.market-dashboard .md-chart-area {
  fill: rgba(var(--bs-primary-rgb), 0.10);
  stroke: none;
}

.market-dashboard .md-chart-line {
  fill: none;
  stroke: rgba(var(--bs-primary-rgb), 0.85);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stock-search {
  position: relative;
}

.stock-search-box {
  position: relative;
  width: min(520px, 100%);
}

.stock-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1060;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-medium);
  background: var(--bs-body-bg);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.stock-search-dropdown.open {
  display: block;
}

.stock-search-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stock-search-item:hover,
.stock-search-item:focus {
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.stock-search-main {
  min-width: 0;
}

.stock-search-symbol {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.stock-search-name {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.stock-search-type {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.stock-search-empty {
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.market-dashboard .wl-search {
  position: relative;
}

.market-dashboard .wl-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1060;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-medium);
  background: var(--bs-body-bg);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.market-dashboard .wl-dropdown.open {
  display: block;
}

.market-dashboard .wl-suggestion {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.market-dashboard .wl-suggestion + .wl-suggestion {
  border-top: 1px solid var(--border);
}

.market-dashboard .wl-suggestion:hover,
.market-dashboard .wl-suggestion:focus {
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.market-dashboard .wl-suggestion-main {
  min-width: 0;
}

.market-dashboard .wl-suggestion-symbol {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.market-dashboard .wl-suggestion-name {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.market-dashboard .wl-suggestion-type {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.market-dashboard .wl-msg {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.25rem;
}

.market-dashboard .wl-msg.error {
  color: rgba(185, 43, 71, 1);
}

.market-dashboard .wl-empty {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.market-dashboard .wl-empty-title {
  font-weight: 900;
}

.market-dashboard .wl-empty-sub {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.market-dashboard .wl-list {
  display: grid;
  gap: 0.85rem;
}

.market-dashboard .wl-row {
  position: relative;
  cursor: grab;
}

.market-dashboard .wl-row:active {
  cursor: grabbing;
}

.market-dashboard .wl-row.is-dragging {
  opacity: 0.6;
}

.market-dashboard .wl-row.is-drop-target {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: var(--shadow-soft);
}

.market-dashboard .wl-remove {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  flex: 0 0 auto;
}

.market-dashboard .wl-remove:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: var(--border-2);
}

.market-dashboard .wl-remove i {
  font-size: 18px;
}

.watchlist-page .wl2-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.25rem 0.75rem;
}

.watchlist-page .wl2-title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.watchlist-page .wl2-subtitle {
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}

.watchlist-page .wl2-panels {
  padding: 1rem 1.25rem 1.25rem;
}

@media (max-width: 768px) {
  .watchlist-page .wl2-panel {
    display: none;
  }

  .watchlist-page .wl2-panel-stocks {
    display: block;
  }

  .watchlist-page #wl2-funds:target ~ .wl2-panels .wl2-panel-stocks {
    display: none;
  }

  .watchlist-page #wl2-funds:target ~ .wl2-panels .wl2-panel-funds {
    display: block;
  }

  .watchlist-page #wl2-stocks:target ~ .wl2-panels .wl2-panel-stocks {
    display: block;
  }

  .watchlist-page #wl2-stocks:target ~ .wl2-panels .wl2-panel-funds {
    display: none;
  }
}

@media (min-width: 769px) {
  .watchlist-page .wl2-tabs {
    display: none;
  }

  .watchlist-page .wl2-target {
    display: none;
  }

  .watchlist-page .wl2-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .watchlist-page .wl2-panel {
    display: block;
  }
}

.watchlist-page .wl2-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.watchlist-page .wl2-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.watchlist-page .wl2-panel-sub {
  margin: 0.25rem 0 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
}

.watchlist-page .wl2-search {
  position: relative;
  margin-top: 0.75rem;
}

.watchlist-page .wl2-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1060;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  background: var(--bs-body-bg);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
}

.watchlist-page .wl2-dropdown.open {
  display: block;
}

.watchlist-page .wl2-suggestion {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.watchlist-page .wl2-suggestion + .wl2-suggestion {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.watchlist-page .wl2-suggestion:hover,
.watchlist-page .wl2-suggestion:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.04);
}

.watchlist-page .wl2-suggestion-main {
  min-width: 0;
}

.watchlist-page .wl2-suggestion-symbol {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.watchlist-page .wl2-suggestion-name {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.watchlist-page .wl2-suggestion-type {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.watchlist-page .wl2-empty {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.watchlist-page .wl2-empty-title {
  font-weight: 900;
}

.watchlist-page .wl2-empty-sub {
  margin-top: 0.35rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.875rem;
}

.watchlist-page .wl2-msg {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  min-height: 1.25rem;
}

.watchlist-page .wl2-msg.error {
  color: rgba(185, 43, 71, 1);
}

.watchlist-page .wl2-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.watchlist-page .wl2-row {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 0.9rem;
  padding: 0.85rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.watchlist-page .wl2-left {
  min-width: 0;
}

.watchlist-page .wl2-name {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlist-page .wl2-sub {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlist-page .wl2-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.watchlist-page .wl2-price {
  font-weight: 900;
  white-space: nowrap;
}

.watchlist-page .wl2-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.watchlist-page .wl2-delta.pos {
  border-color: rgba(59, 229, 154, 0.35);
  background: rgba(59, 229, 154, 0.12);
  color: rgba(18, 145, 86, 1);
}

.watchlist-page .wl2-delta.neg {
  border-color: rgba(255, 90, 122, 0.35);
  background: rgba(255, 90, 122, 0.10);
  color: rgba(185, 43, 71, 1);
}

.watchlist-page .wl2-remove {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.watchlist-page .wl2-remove i {
  font-size: 18px;
}

.performance-report-page .perf-header {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.performance-report-page .perf-title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.performance-report-page .perf-subtitle {
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}

.performance-report-page .perf-panel {
  padding: 1rem;
}

.performance-report-page .perf-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.performance-report-page .perf-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.performance-report-page .perf-panel-sub {
  margin: 0.25rem 0 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
}

.performance-report-page .perf-chart {
  margin-top: 0.75rem;
  min-height: 260px;
}

.performance-report-page .perf-chart-tall {
  min-height: 240px;
}

.performance-report-page .perf-kpi {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
}

.performance-report-page .perf-kpi-label {
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

.performance-report-page .perf-kpi-value {
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.performance-report-page .perf-kpi-sub {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.55);
}

.performance-report-page .perf-msg {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
}

.performance-report-page .perf-msg.error {
  color: rgba(185, 43, 71, 1);
}

.performance-report-page .perf-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.performance-report-page .perf-pill.pos {
  border-color: rgba(59, 229, 154, 0.35);
  background: rgba(59, 229, 154, 0.12);
  color: rgba(18, 145, 86, 1);
}

.performance-report-page .perf-pill.neg {
  border-color: rgba(255, 90, 122, 0.35);
  background: rgba(255, 90, 122, 0.10);
  color: rgba(185, 43, 71, 1);
}

.stock-details-modal .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
}

.stock-details-modal .stock-price {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stock-details-modal .stock-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.stock-details-modal .stock-change.pos {
  border-color: rgba(59, 229, 154, 0.35);
  background: rgba(59, 229, 154, 0.12);
  color: rgba(18, 145, 86, 1);
}

.stock-details-modal .stock-change.neg {
  border-color: rgba(255, 90, 122, 0.35);
  background: rgba(255, 90, 122, 0.10);
  color: rgba(185, 43, 71, 1);
}

.stock-modal-loading .sk + .sk {
  margin-top: 0.75rem;
}

.stock-details-modal .metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.stock-details-modal .range-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.stock-details-modal .range-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 1), rgba(var(--bs-info-rgb), 1));
}

.stock-details-modal .stock-chart {
  min-height: 260px;
}

.stock-details-modal .stock-chart-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stock-details-modal .stock-news-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stock-details-modal .rating-row {
  display: grid;
  grid-template-columns: 92px 1fr 34px;
  gap: 0.75rem;
  align-items: center;
}

.stock-details-modal .rating-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.stock-details-modal .rating-bar {
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.stock-details-modal .rating-fill {
  display: block;
  height: 100%;
  width: 0;
}

.stock-details-modal .rating-fill.pos {
  background: rgba(18, 145, 86, 0.9);
}

.stock-details-modal .rating-fill.neg {
  background: rgba(185, 43, 71, 0.9);
}

.stock-details-modal .rating-fill.muted {
  background: rgba(0, 0, 0, 0.35);
}

.stock-details-modal .rating-value {
  font-weight: 900;
  text-align: right;
}

.stock-details-modal .pos {
  color: rgba(18, 145, 86, 1);
}

.stock-details-modal .neg {
  color: rgba(185, 43, 71, 1);
}

.stock-details-modal .table td,
.stock-details-modal .table th {
  white-space: nowrap;
}

.stock-details-modal .stock-md-chart {
  height: 260px;
}

.stock-details-modal .stock-md-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.education-page .edu-hero {
  align-items: start;
}

.education-page .edu-filters {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: min(520px, 100%);
}

.education-page .edu-filters > * {
  flex: 1 1 0;
  min-width: 160px;
}

@media (max-width: 767.98px) {
  .education-page .edu-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .education-page .edu-filters > * {
    min-width: 0;
  }
}

.education-page .edu-video-card {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.education-page .edu-video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--border-2);
}

.education-page .edu-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.06);
}

.education-page .edu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  transform: scale(1);
}

.education-page .edu-video-card:hover .edu-thumb img {
  transform: scale(1.03);
}

.education-page .edu-duration {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
}

.education-page .edu-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 180ms ease;
}

.education-page .edu-video-card:hover .edu-play {
  opacity: 1;
}

.education-page .edu-play i {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
}

.education-page .edu-feature {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.education-page .edu-feature .edu-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 240px;
}

.education-page .edu-feature-body {
  padding: 1.25rem;
}

@media (max-width: 767.98px) {
  .education-page .edu-feature {
    grid-template-columns: 1fr;
  }

  .education-page .edu-feature .edu-thumb {
    aspect-ratio: 16/9;
    min-height: 0;
  }
}

.education-page .edu-progress {
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.education-page .edu-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.95), rgba(var(--bs-success-rgb), 0.92));
}

.edu-video-modal .modal-content {
  background: var(--bs-body-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
}

.edu-video-modal .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}
