/* Options watchlist overview — scoped to the stock-card grid page. */
body.options-overview {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(59, 130, 246, 0.065), transparent 34rem),
    var(--bg-secondary, #0a0e17);
  font-family: "DM Sans", system-ui, sans-serif;
}

body.options-overview > .container.my-5 {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
  margin-top: 1.5rem !important;
}

body.options-overview .page-header {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  background: linear-gradient(112deg, rgba(20, 31, 49, 0.98), rgba(17, 29, 49, 0.94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.17), inset 0 1px rgba(255, 255, 255, 0.035);
}

body.options-overview .page-header::after {
  content: "";
  position: absolute;
  top: -130px;
  right: 8%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(0, 232, 157, 0.1);
  filter: blur(54px);
  pointer-events: none;
}

body.options-overview .page-header > .d-flex { position: relative; z-index: 1; }

body.options-overview .page-header h1 {
  color: #eff6ff;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.options-overview .page-header p {
  color: #91a2b7 !important;
  font-size: 0.82rem;
}

body.options-overview .options-icons {
  gap: 0.8rem;
  padding-right: 0.4rem;
}

body.options-overview .options-icon {
  position: relative;
  z-index: 1;
  font-size: 1.9rem;
  filter: drop-shadow(0 4px 10px currentColor);
  opacity: 0.82;
}

#ticker-search-wrapper {
  margin-top: 1.4rem;
  margin-bottom: 1rem !important;
}

#ticker-search-wrapper > .position-relative {
  width: min(100%, 370px);
  max-width: none !important;
}

body.options-overview #ticker-search {
  min-height: 44px;
  padding-left: 2.55rem !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 10px;
  color: #e4edf7 !important;
  background: rgba(21, 32, 51, 0.94) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  font-size: 0.82rem;
}

body.options-overview #ticker-search::placeholder { color: #74859b; }

body.options-overview #ticker-search:focus {
  border-color: rgba(0, 232, 157, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(0, 232, 157, 0.1);
}

#stock-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 0.15rem;
}

#stock-grid > [class*="col-"] { display: flex; min-width: 0; }

#stock-grid .indicator-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 138px;
  height: calc(100% - 1rem);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(110, 139, 173, 0.2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(21, 31, 49, 0.98), rgba(17, 27, 43, 0.98));
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13), inset 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#stock-grid .indicator-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(0, 232, 157, 0.62), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

#stock-grid .indicator-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 232, 157, 0.38);
  background: linear-gradient(145deg, rgba(24, 38, 57, 0.99), rgba(18, 31, 47, 0.99));
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.23), 0 0 22px rgba(0, 232, 157, 0.055);
}

#stock-grid .indicator-card:hover::before { opacity: 1; }

#stock-grid .indicator-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.8rem;
}

#stock-grid .indicator-card .card-body > .d-flex:first-child {
  min-height: 75px;
  align-items: center !important;
  gap: 0.6rem;
  margin-bottom: 0 !important;
}

#stock-grid .stock-symbol {
  min-width: 0;
  gap: 0.55rem;
  color: #edf4fb;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

#stock-grid .stock-symbol .stock-logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-right: 0 !important;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: #f8fafc;
  object-fit: contain;
}

#stock-grid .best-indicator-badge {
  display: flex;
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 64px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
}

#stock-grid .indicator-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  padding: 0.25rem 0;
  text-align: right;
}

#stock-grid .indicator-name {
  max-width: 140px;
  color: #a0b0c3;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

#stock-grid .indicator-return {
  gap: 0.25rem;
  color: #f0f6fd;
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

#stock-grid .score-badge {
  padding: 0.27rem 0.46rem;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 7px;
  color: #eafff7;
  background: rgba(16, 185, 129, 0.84);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
  font: 750 0.92rem/1.1 ui-monospace, "Cascadia Code", monospace;
  font-variant-numeric: tabular-nums;
}

#stock-grid .score-badge.score-mid {
  border-color: rgba(251, 191, 36, 0.23);
  color: #fff5d6;
  background: rgba(180, 117, 17, 0.56);
}

#stock-grid .score-badge.score-bad {
  border-color: rgba(251, 113, 133, 0.24);
  color: #ffe7eb;
  background: rgba(190, 54, 77, 0.58);
}

#stock-grid .indicator-label {
  color: #75869c;
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

#stock-grid .card-skew { margin-top: 0.15rem; }

#stock-grid .card-skew .badge-pill {
  padding: 0.23rem 0.45rem;
  font-size: 0.58rem;
  letter-spacing: 0.015em;
}

#stock-grid .card-skew .skew-neutral {
  border-color: rgba(148, 163, 184, 0.18);
  color: #a4b2c3;
  background: rgba(148, 163, 184, 0.08);
}

#stock-grid .card-skew .skew-bullish {
  border-color: rgba(52, 211, 153, 0.2);
  color: #64ddb6;
  background: rgba(52, 211, 153, 0.08);
}

#stock-grid .card-skew .skew-bearish-mild {
  border-color: rgba(251, 191, 36, 0.2);
  color: #f4c867;
  background: rgba(251, 191, 36, 0.075);
}

#stock-grid .card-skew .skew-bearish-high {
  border-color: rgba(251, 113, 133, 0.22);
  color: #fb91a2;
  background: rgba(251, 113, 133, 0.08);
}

#stock-grid .indicator-card .card-body > .d-flex:last-child {
  min-height: 28px;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.11);
}

#stock-grid .indicator-card .card-body > .d-flex:last-child small {
  color: #8999ad !important;
  font-size: 0.72rem;
}

#stock-grid .indicator-card .bi-arrow-right {
  display: inline-block;
  color: #77889e !important;
  font-size: 0.84rem;
  transition: transform 180ms ease, color 180ms ease;
}

#stock-grid .indicator-card:hover .bi-arrow-right {
  transform: translateX(3px);
  color: #43d9b0 !important;
}

@media (max-width: 575px) {
  body.options-overview > .container.my-5 { width: calc(100% - 1.1rem); margin-top: 0.9rem !important; }
  body.options-overview .page-header { padding: 1.1rem; }
  body.options-overview .options-icons { gap: 0.45rem; }
  body.options-overview .options-icon { font-size: 1.5rem; }
  #stock-grid { --bs-gutter-x: 0.7rem; }
  #stock-grid .indicator-card { min-height: 128px; }
  #stock-grid .indicator-card .card-body { padding: 0.8rem 0.75rem 0.7rem; }
  #stock-grid .stock-symbol { gap: 0.4rem; font-size: 0.96rem; }
  #stock-grid .stock-symbol .stock-logo { flex-basis: 28px; width: 28px; height: 28px; }
  #stock-grid .best-indicator-badge { min-width: 88px; }
  #stock-grid .indicator-name { max-width: 105px; font-size: 0.56rem; }
  #stock-grid .score-badge { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  #stock-grid .indicator-card,
  #stock-grid .indicator-card::before,
  #stock-grid .indicator-card .bi-arrow-right { transition: none; }
  #stock-grid .indicator-card:hover { transform: none; }
}
