/* global */
:root {
  --bg: #030812;
  --bg-soft: #071221;
  --panel: rgba(9, 18, 32, 0.82);
  --panel-strong: rgba(12, 22, 38, 0.96);
  --border: rgba(129, 159, 213, 0.18);
  --text: #f5f7fb;
  --muted: #b5c0d4;
  --soft: #7f8ca6;
  --blue: #4b8dff;
  --cyan: #22c8da;
  --purple: #8158ff;
  --green: #21dc8b;
  --red: #ff556f;
  --amber: #f5c451;
  --pink: #ff5ca8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(60, 71, 171, 0.16), transparent 32%),
    linear-gradient(220deg, rgba(21, 163, 177, 0.12), transparent 38%),
    linear-gradient(180deg, #020610 0%, #07111f 52%, #030812 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  direction: rtl;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(92, 138, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 138, 255, 0.05) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 72%);
}

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

main {
  overflow: hidden;
}

svg {
  display: block;
  max-width: 100%;
}

::selection {
  color: #ffffff;
  background: rgba(75, 141, 255, 0.45);
}

/* navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(129, 159, 213, 0.16);
  background: rgba(2, 8, 17, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: 1760px;
  min-height: 70px;
  padding: 0 24px;
  margin: 0 auto;
  direction: ltr;
  gap: clamp(16px, 2vw, 28px);
}

.brand,
.nav-links,
.nav-menu,
.nav-actions {
  direction: rtl;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: end;
  width: 40px;
  height: 40px;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(12, 22, 38, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.brand-bar {
  display: block;
  width: 6px;
  margin-left: 3px;
  border-radius: 5px 5px 1px 1px;
}

.brand-bar-red {
  height: 17px;
  background: var(--red);
}

.brand-bar-amber {
  height: 24px;
  background: var(--amber);
}

.brand-bar-green {
  height: 31px;
  background: var(--green);
}

.brand-arrow {
  position: absolute;
  top: 7px;
  left: 21px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--cyan);
  border-right: 3px solid var(--cyan);
  transform: rotate(-45deg);
}

.brand-arrow::before {
  position: absolute;
  top: 4px;
  right: -1px;
  width: 19px;
  height: 3px;
  content: "";
  background: var(--cyan);
  transform: rotate(45deg);
  transform-origin: right center;
}

.brand-name {
  color: #ffffff;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand-name span {
  color: var(--purple);
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: clamp(16px, 2vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  color: #d9e1f2;
  transition: color 0.2s ease;
}

.nav-links .nav-support-link {
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -19px;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links-public {
  position: absolute;
  left: 50%;
  justify-content: center;
  transform: translateX(-50%);
}

.nav-menu {
  position: relative;
  justify-self: end;
}

.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(129, 159, 213, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-menu-toggle::-webkit-details-marker {
  display: none;
}

.nav-menu-toggle span {
  position: absolute;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-menu[open] .nav-menu-toggle,
.nav-menu-toggle:hover {
  border-color: rgba(113, 82, 245, 0.62);
  background: rgba(113, 82, 245, 0.16);
}

.nav-menu[open] .nav-menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-menu[open] .nav-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-menu[open] .nav-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(330px, calc(100vw - 32px));
  max-height: calc(100vh - 94px);
  max-height: calc(100dvh - 94px);
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(133, 111, 246, 0.86) rgba(255, 255, 255, 0.06);
  scroll-padding-block: 12px;
  touch-action: pan-y;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 15, 30, 0.98);
  box-shadow: var(--shadow);
  gap: 4px;
}

.nav-menu-panel:focus-visible {
  outline: 2px solid rgba(133, 111, 246, 0.95);
  outline-offset: 3px;
}

.nav-menu-panel::-webkit-scrollbar {
  width: 10px;
}

.nav-menu-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 15, 30, 0.98);
  border-radius: 999px;
  background: rgba(133, 111, 246, 0.86);
}

.nav-menu-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 140, 255, 0.98);
}

.nav-menu-panel > a,
.nav-menu-panel > .nav-logout-form .nav-button,
.nav-menu-panel > .report-menu > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #d9e1f2;
  font-weight: 700;
  text-align: right;
}

.nav-menu-panel > a:hover,
.nav-menu-panel > a.active,
.nav-menu-panel > .nav-logout-form .nav-button:hover,
.nav-menu-panel > .report-menu > summary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-menu-panel > a.nav-delete-account {
  color: #ff6b7a;
}

.nav-menu-panel > a.nav-delete-account:hover,
.nav-menu-panel > a.nav-delete-account.active {
  color: #ffd5da;
  background: rgba(255, 107, 122, 0.12);
}

.nav-menu-panel .nav-chat-link {
  justify-content: space-between;
  gap: 10px;
}

.nav-menu-report {
  width: 100%;
}

.nav-menu-report .report-box {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.nav-logout-form {
  margin: 0;
}

.nav-logout-form button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-button {
  min-width: 96px;
  padding: 0 22px;
  font-size: 0.92rem;
}

.nav-button-ghost {
  border: 1px solid var(--border);
  background: rgba(8, 16, 30, 0.72);
}

.nav-button-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 12px 30px rgba(75, 141, 255, 0.28);
}

.nav-user {
  color: #d9e1f2;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-user:hover,
.nav-user.active {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-underline-offset: 5px;
}

.nav-admin-badge {
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  color: #d7ffed;
  border: 1px solid rgba(33, 220, 139, 0.38);
  border-radius: 999px;
  background: rgba(10, 64, 44, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.report-menu {
  position: relative;
}

.report-menu summary {
  cursor: pointer;
  list-style: none;
}

.report-menu summary::-webkit-details-marker {
  display: none;
}

.report-menu[open] summary {
  border-color: rgba(75, 141, 255, 0.5);
  background: rgba(75, 141, 255, 0.18);
}

.report-box {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  gap: 10px;
  border: 1px solid rgba(129, 159, 213, 0.22);
  border-radius: 8px;
  background: rgba(7, 15, 28, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.report-box label {
  color: #d9e1f2;
  font-size: 0.86rem;
  font-weight: 800;
}

.report-box textarea {
  width: 100%;
  min-height: 118px;
  padding: 11px 12px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.24);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.74);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.report-box textarea:focus {
  border-color: rgba(75, 141, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.16);
}

.report-limit-help {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.report-box .nav-button {
  width: 100%;
}

.bug-report-page {
  max-width: 980px;
}

.bug-report-hero {
  grid-template-columns: 1fr;
}

.bug-report-panel {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.bug-report-form {
  display: grid;
  gap: 12px;
}

.bug-report-form label {
  color: #d9e1f2;
  font-weight: 800;
}

.bug-report-form textarea {
  width: 100%;
  min-height: 260px;
  padding: 14px 16px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.28);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.74);
  font: inherit;
  line-height: 1.7;
  resize: vertical;
}

.bug-report-form textarea:focus {
  border-color: rgba(75, 141, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.16);
}

.bug-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.nav-button:hover,
.cta-button:hover {
  transform: translateY(-2px);
}

.flash-stack {
  display: grid;
  max-width: 1480px;
  padding: 14px 24px 0;
  margin: 0 auto;
  gap: 10px;
}

.flash-message {
  padding: 12px 16px;
  border: 1px solid rgba(129, 159, 213, 0.18);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.86);
  color: #dfe8f9;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.flash-error {
  border-color: rgba(255, 85, 111, 0.42);
  color: #ffd8df;
  background: rgba(58, 14, 26, 0.72);
}

.flash-success {
  border-color: rgba(33, 220, 139, 0.38);
  color: #d7ffed;
  background: rgba(10, 49, 36, 0.68);
}

/* hero */
.hero-section {
  position: relative;
  padding: clamp(34px, 5vw, 62px) 24px 22px;
  border-bottom: 1px solid rgba(129, 159, 213, 0.12);
}

.train-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  backdrop-filter: none;
}

.train-overlay__image {
  position: absolute;
  top: 37%;
  left: 0;
  width: auto;
  max-width: none;
  height: 70px;
  transform: translateX(120vw) translateY(-50%);
  animation: trainMove 12s linear infinite;
}

@keyframes trainMove {
  from {
    transform: translateX(120vw) translateY(-50%);
  }

  to {
    transform: translateX(-120vw) translateY(-50%);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas: "copy visual";
  grid-template-columns: minmax(320px, 0.92fr) minmax(440px, 1.28fr);
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
  direction: ltr;
  gap: clamp(32px, 5vw, 76px);
}

.hero-copy {
  grid-area: copy;
  direction: rtl;
  text-align: right;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-copy > .section-kicker {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.3;
  white-space: nowrap;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 5vw, 5.35rem);
  line-height: 1.09;
  letter-spacing: 0;
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.32);
}

.hero-copy h1 span {
  display: block;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--purple), var(--blue), #9c73ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-subtitle {
  max-width: 640px;
  margin: 22px 0 30px;
  color: #d4dbea;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta-button {
  min-width: 166px;
  padding: 0 24px;
  color: #ffffff;
  font-size: 0.98rem;
}

.cta-primary {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, #438eff, #6c43d7);
  box-shadow: 0 16px 36px rgba(75, 141, 255, 0.24);
}

.cta-secondary {
  border: 1px solid rgba(119, 151, 212, 0.36);
  background: rgba(4, 12, 24, 0.56);
}

/* real home-market dashboard */
.dashboard-card {
  grid-area: visual;
  min-width: 0;
  padding: 18px;
  direction: ltr;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 27, 48, 0.86), rgba(7, 15, 28, 0.82)),
    rgba(8, 17, 31, 0.88);
  box-shadow: var(--shadow);
}

.market-data-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  gap: 8px 14px;
}

.market-state-badge {
  padding: 4px 8px;
  border: 1px solid rgba(129, 159, 213, 0.18);
  border-radius: 999px;
  font-size: 0.7rem;
}

.market-state-badge.fresh {
  color: var(--green);
  background: rgba(33, 220, 139, 0.09);
}

.market-state-badge.partial,
.market-state-badge.stale,
.market-stale-label {
  color: var(--amber) !important;
  background: rgba(255, 184, 77, 0.1);
}

.market-data-notice {
  padding: 8px 10px;
  margin: 0 0 12px;
  color: #f6d49b;
  border: 1px solid rgba(255, 184, 77, 0.2);
  border-radius: 7px;
  background: rgba(255, 184, 77, 0.07);
  font-size: 0.78rem;
}

.dashboard-header {
  display: grid;
  grid-template-columns: 72px minmax(130px, 1fr) minmax(160px, auto) minmax(190px, 240px);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.stock-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  font-size: 2.1rem;
  font-weight: 900;
}

.stock-identity strong,
.stock-price strong {
  display: block;
  color: #ffffff;
}

.stock-identity strong {
  font-size: 1.7rem;
}

.stock-identity span,
.stock-price small,
.recommendation span,
.recommendation small,
.metric-card span,
.metric-card small {
  color: var(--muted);
}

.stock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.stock-tags span {
  padding: 4px 8px;
  color: #a9c4ff;
  border-radius: 999px;
  background: rgba(75, 141, 255, 0.16);
  font-size: 0.72rem;
}

.stock-price {
  text-align: left;
}

.stock-price strong {
  font-size: 2rem;
}

.stock-price strong span {
  color: #ffffff;
  font-size: 0.75rem;
}

.positive {
  color: var(--green) !important;
}

.recommendation {
  position: relative;
  min-height: 92px;
  padding: 15px 102px 15px 16px;
  border: 1px solid rgba(129, 159, 213, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.58);
}

.recommendation strong {
  display: block;
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1.1;
}

.confidence-ring {
  position: absolute;
  top: 15px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #091424 55%, transparent 57%),
    conic-gradient(
      var(--green) 0 var(--confidence-angle, 0deg),
      rgba(129, 159, 213, 0.2) var(--confidence-angle, 0deg) 360deg
    );
}

.confidence-ring b {
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
}

.confidence-ring span {
  color: #c6d3e8;
  font-size: 0.55rem;
}

.chart-panel {
  padding: 12px;
  border: 1px solid rgba(129, 159, 213, 0.13);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.52);
}

.chart-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  direction: ltr;
}

.chart-tabs span {
  padding: 5px 8px;
  color: #c8d3e8;
  border-radius: 7px;
  font-size: 0.72rem;
}

.chart-tabs .active {
  color: #ffffff;
  background: rgba(75, 141, 255, 0.28);
}

.chart-range {
  color: var(--muted);
  font-size: 0.75rem;
}

.main-chart {
  width: 100%;
  min-height: 230px;
}

.chart-grid line {
  stroke: rgba(129, 159, 213, 0.08);
}

.price-shadow {
  fill: none;
  stroke: rgba(33, 220, 139, 0.18);
  stroke-linecap: round;
  stroke-width: 12;
}

.price-line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.price-line.negative {
  stroke: var(--red);
}

.price-line.muted {
  stroke: var(--blue);
}

.price-shadow.negative {
  stroke: rgba(255, 85, 111, 0.18);
}

.price-shadow.muted {
  stroke: rgba(75, 141, 255, 0.18);
}

.chart-dots circle {
  fill: #ffffff;
  stroke: var(--green);
  stroke-width: 3;
}

.volume-bars rect:nth-child(odd) {
  fill: rgba(33, 220, 139, 0.38);
}

.volume-bars rect:nth-child(even) {
  fill: rgba(255, 85, 111, 0.34);
}

.chart-labels text {
  fill: #d4dcea;
  font-size: 13px;
}

.market-chart-unavailable {
  display: grid;
  min-height: 230px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  place-items: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(129, 159, 213, 0.13);
  border-radius: 8px;
  background: rgba(10, 19, 34, 0.72);
}

.metric-card strong {
  display: block;
  margin: 4px 0 2px;
  color: #ffffff;
  font-size: 1.15rem;
}

.metric-card svg {
  width: 100%;
  height: 34px;
  margin-top: 2px;
}

.spark-green,
.spark-purple,
.spark-blue,
.spark-amber {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spark-green {
  stroke: var(--green);
}

.spark-purple {
  stroke: var(--purple);
}

.spark-blue {
  stroke: var(--blue);
}

.spark-amber {
  stroke: var(--amber);
}

.accent-purple {
  color: #c979ff !important;
}

.accent-blue {
  color: var(--blue) !important;
}

/* features */
.features-section {
  max-width: 1480px;
  padding: 36px 24px 16px;
  margin: 0 auto;
}

.features-section .section-kicker {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
}

#how-it-works {
  scroll-margin-top: 42px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-width: 0;
  min-height: 166px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 23, 40, 0.82), rgba(7, 15, 28, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 1.9rem;
  font-weight: 800;
}

.icon-data,
.icon-model {
  color: #f08dff;
  background: rgba(139, 83, 255, 0.18);
}

.icon-rec {
  color: var(--amber);
  background: rgba(245, 196, 81, 0.14);
}

.icon-alert {
  color: #f5a7dd;
  background: rgba(255, 92, 168, 0.13);
}

.icon-watch {
  color: var(--pink);
  background: rgba(255, 92, 168, 0.14);
}

.feature-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* market strip */
.market-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(126px, 1fr));
  max-width: 1480px;
  padding: 14px;
  margin: 0 auto 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 17, 31, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  gap: 12px;
}

.market-strip-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2px 2px 8px;
  color: var(--muted);
  gap: 8px 18px;
}

.market-strip-header strong,
.market-strip-header span {
  display: block;
}

.market-strip-header strong {
  color: #ffffff;
  font-size: 1rem;
}

.market-strip-header span,
.market-strip-header time {
  font-size: 0.76rem;
}

.market-card {
  min-width: 0;
  min-height: 104px;
  padding: 13px 14px;
  border: 1px solid rgba(129, 159, 213, 0.12);
  border-radius: 8px;
  background: rgba(6, 14, 27, 0.62);
}

.market-card span,
.market-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.market-card strong {
  display: block;
  margin: 5px 0 2px;
  color: #ffffff;
  font-size: 1.15rem;
}

.market-card strong .market-unit {
  display: inline;
  font-size: 0.68rem;
}

.market-card svg {
  width: 100%;
  height: 28px;
  margin-top: 4px;
}

.market-spark {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.market-spark.positive {
  stroke: var(--green);
}

.market-spark.negative {
  stroke: var(--red);
}

.market-card.unavailable {
  border-style: dashed;
}

.market-card-unavailable {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.market-as-of {
  margin-top: 4px;
  font-size: 0.68rem !important;
}

/* placeholder pages */
.placeholder-main {
  display: grid;
  min-height: calc(100vh - 140px);
  padding: 70px 24px;
  place-items: center;
}

.placeholder-card {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 23, 40, 0.92), rgba(7, 15, 28, 0.88));
  box-shadow: var(--shadow);
  text-align: center;
}

.placeholder-card h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  letter-spacing: 0;
}

.placeholder-card p:not(.section-kicker) {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.auth-form {
  display: grid;
  width: min(420px, 100%);
  margin: 0 auto;
  text-align: right;
  gap: 10px;
}

.auth-form label {
  color: #d9e1f2;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.24);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.72);
  font: inherit;
  direction: rtl;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input[type="email"] {
  direction: ltr;
  text-align: left;
}

.auth-form input:focus {
  border-color: rgba(75, 141, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.16);
}

.human-check {
  width: 100%;
  min-height: 65px;
  margin-top: 8px;
  overflow: hidden;
  direction: ltr;
}

.human-check-help {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.human-check-error {
  padding: 10px 12px;
  margin: 8px 0 0 !important;
  color: #ffd5da !important;
  border: 1px solid rgba(255, 107, 122, 0.42);
  border-radius: 8px;
  background: rgba(97, 24, 35, 0.42);
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  text-align: center;
}

.auth-submit {
  width: 100%;
  margin-top: 12px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.auth-switch {
  margin: 18px 0 0 !important;
  color: var(--muted);
  font-size: 0.96rem !important;
}

.auth-switch a {
  color: #8ab4ff;
  font-weight: 800;
}

/* app pages */
.app-main {
  width: min(1480px, 100%);
  padding: 34px 24px 42px;
  margin: 0 auto;
  overflow: visible;
}

.page-hero,
.stock-detail-header,
.content-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 23, 40, 0.86), rgba(7, 15, 28, 0.82)),
    rgba(8, 17, 31, 0.88);
  box-shadow: var(--shadow);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
  gap: 24px;
}

.stocks-live-status {
  display: flex;
  grid-column: 1 / -1;
  min-height: 32px;
  align-items: center;
  justify-self: end;
  direction: ltr;
}

.stocks-predicting,
.stocks-last-update {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(129, 159, 213, 0.18);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.58);
  color: var(--muted);
  font-size: 0.82rem;
  gap: 8px;
}

.stocks-predicting[hidden],
.stocks-last-update[hidden] {
  display: none;
}

.stocks-predicting strong,
.stocks-last-update time {
  color: #ffffff;
  font-weight: 800;
}

.prediction-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(33, 220, 139, 0.25);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: prediction-spin 0.75s linear infinite;
}

@keyframes prediction-spin {
  to {
    transform: rotate(360deg);
  }
}

.compact-hero h1,
.stock-title-block h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.compact-hero p:not(.section-kicker),
.stock-title-block p:not(.section-kicker) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.stock-search-form {
  display: grid;
  gap: 9px;
}

.stock-search-form label {
  color: #d9e1f2;
  font-size: 0.9rem;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.stock-search-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.24);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.72);
  font: inherit;
  direction: ltr;
  text-transform: uppercase;
}

.stock-search-form input:focus {
  border-color: rgba(75, 141, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.16);
}

.symbol-request-panel {
  background:
    linear-gradient(135deg, rgba(75, 141, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(13, 23, 40, 0.86), rgba(7, 15, 28, 0.82));
}

.symbol-request-panel .panel-heading {
  margin-bottom: 0;
}

.symbol-request-form {
  max-width: 640px;
  margin-top: 18px;
}

.requested-symbols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  gap: 8px;
}

.requested-symbols strong {
  padding: 5px 10px;
  color: #dce8ff;
  border: 1px solid rgba(75, 141, 255, 0.28);
  border-radius: 999px;
  background: rgba(75, 141, 255, 0.12);
  direction: ltr;
}

.content-panel {
  padding: clamp(18px, 3vw, 26px);
  margin-top: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.panel-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: 0;
}

.watchlist-grid,
.stock-list-grid,
.indicator-grid,
.feature-summary-grid,
.fib-table {
  display: grid;
  gap: 12px;
}

.watchlist-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.watchlist-card,
.symbol-card,
.indicator-card,
.quick-stat-card,
.feature-summary-grid div,
.fib-table div {
  min-width: 0;
  border: 1px solid rgba(129, 159, 213, 0.13);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.watchlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
  gap: 14px;
}

.watchlist-card strong,
.symbol-card strong,
.quick-stat-card strong,
.indicator-card strong,
.feature-summary-grid strong,
.fib-table strong {
  color: #ffffff;
}

.watchlist-card span,
.quick-stat-card span,
.indicator-card span,
.feature-summary-grid span,
.fib-table span,
.muted-copy {
  color: var(--muted);
}

.watchlist-card > div:first-child strong {
  display: block;
  font-size: 1.45rem;
}

.watchlist-price strong {
  display: block;
  font-size: 1.35rem;
}

.watchlist-price small,
.quick-stat-card small,
.indicator-card small {
  color: var(--soft);
}

.datetime-value {
  direction: ltr;
  unicode-bidi: plaintext;
}

.watchlist-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watchlist-actions form {
  margin: 0;
}

.icon-text-button {
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.24);
  border-radius: 8px;
  background: rgba(8, 16, 30, 0.72);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.danger-button {
  color: #ffd8df;
  border-color: rgba(255, 85, 111, 0.42);
  background: rgba(58, 14, 26, 0.56);
}

.account-card {
  width: min(760px, 100%);
}

.account-card > p:not(.section-kicker) {
  margin-bottom: 22px;
}

.account-api-card {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(33, 91, 138, 0.22);
  border-radius: 16px;
  background: rgba(235, 246, 255, 0.58);
}

.account-api-card form {
  display: inline-block;
  margin: 0.35rem 0.35rem 0 0;
}

.api-key-reveal {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0.9rem;
  border-radius: 12px;
  background: #fff7d6;
  overflow-wrap: anywhere;
}

.account-danger-card {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 85, 111, 0.42);
  border-radius: 8px;
  background: rgba(58, 14, 26, 0.34);
  text-align: right;
}

.account-danger-card h2 {
  margin: 0 0 10px;
  color: #fff0f3;
}

.account-danger-card p {
  margin: 0 0 12px !important;
  color: #e9cbd2 !important;
  font-size: 0.96rem !important;
  line-height: 1.75 !important;
}

.account-danger-card .account-delete-warning {
  color: #ffbcc8 !important;
  font-weight: 900;
}

.account-delete-form {
  width: 100%;
  margin-top: 20px;
}

.account-delete-button {
  margin-top: 10px;
}

.empty-state {
  padding: 34px 18px;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.empty-state p {
  max-width: 620px;
  margin: 10px auto 20px;
  color: var(--muted);
  line-height: 1.8;
}

.compact-empty {
  padding: 24px 12px;
}

.stock-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.symbol-card {
  display: grid;
  min-height: 150px;
  padding: 18px;
  align-content: space-between;
  justify-items: center;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.symbol-card:hover {
  border-color: rgba(75, 141, 255, 0.56);
  background: rgba(10, 24, 45, 0.76);
  transform: translateY(-2px);
}

.symbol-card span,
.stock-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(75, 141, 255, 0.42), rgba(129, 88, 255, 0.26));
  font-size: 1.45rem;
  font-weight: 900;
}

.symbol-card strong {
  font-size: 1.6rem;
}

.symbol-card small {
  color: var(--muted);
}

.symbol-card .symbol-meta-score {
  color: #dce6f7;
  font-size: 0.86rem;
  font-weight: 800;
  direction: ltr;
  justify-self: center;
}

.symbol-card.symbol-card-buy .symbol-meta-score {
  color: #71f2b8;
}

/* admin */
.admin-hero {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(129, 159, 213, 0.16);
  border-radius: 8px;
}

.responsive-table:focus {
  outline: 2px solid rgba(75, 141, 255, 0.62);
  outline-offset: 2px;
}

.support-request-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(5, 12, 24, 0.42);
}

.support-request-table th,
.support-request-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(129, 159, 213, 0.13);
  text-align: right;
  vertical-align: top;
}

.support-request-table th {
  color: #dce7f9;
  background: rgba(75, 141, 255, 0.1);
  font-size: 0.84rem;
  white-space: nowrap;
}

.support-request-table tbody tr:last-child td {
  border-bottom: 0;
}

.support-request-text {
  min-width: 260px;
  max-width: 560px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-resolution-note {
  min-width: 180px;
  max-width: 380px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-resolution-form {
  display: grid;
  min-width: 230px;
  gap: 8px;
}

.support-resolution-form label {
  color: #d9e1f2;
  font-size: 0.8rem;
  font-weight: 800;
}

.support-resolution-form textarea {
  width: 100%;
  min-height: 82px;
  padding: 9px 10px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.24);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.74);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.support-resolution-form textarea:focus {
  border-color: rgba(75, 141, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.16);
}

.support-resolution-form .fixed-button {
  justify-self: start;
}

.support-user-email {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.support-request-count,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.support-request-count,
.status-open {
  color: #ffe7aa;
  border: 1px solid rgba(245, 196, 81, 0.34);
  background: rgba(245, 196, 81, 0.1);
}

.status-fixed,
.fixed-button {
  color: #d7ffed;
  border-color: rgba(33, 220, 139, 0.38);
  background: rgba(10, 64, 44, 0.68);
}

.support-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: var(--muted);
  gap: 18px;
}

.admin-summary-grid div {
  display: grid;
  min-height: 104px;
  padding: 14px;
  align-content: center;
  border: 1px solid rgba(129, 159, 213, 0.16);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.58);
  text-align: center;
  gap: 4px;
}

.admin-summary-grid strong {
  color: #ffffff;
  font-size: 1.8rem;
}

.admin-summary-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.request-group-list,
.admin-user-list {
  display: grid;
  gap: 10px;
}

.request-group-card,
.admin-user-row,
.admin-symbol-row {
  border: 1px solid rgba(129, 159, 213, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.58);
}

.request-group-card summary {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(110px, 1fr) auto;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  gap: 14px;
}

.request-group-card summary::-webkit-details-marker {
  display: none;
}

.request-symbol {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  direction: ltr;
}

.request-expand-label {
  color: #8ab4ff;
  font-weight: 800;
}

.requester-list {
  display: grid;
  padding: 0 16px;
  border-top: 1px solid rgba(129, 159, 213, 0.12);
}

.requester-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(129, 159, 213, 0.1);
  gap: 16px;
}

.requester-row span,
.admin-user-row span {
  color: var(--muted);
}

.request-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px 16px;
  gap: 10px;
}

.request-action-row form {
  margin: 0;
}

.admin-panel-heading {
  align-items: end;
}

.admin-inline-form,
.admin-email-form {
  width: min(100%, 520px);
}

.admin-email-form {
  display: grid;
  gap: 9px;
}

.admin-email-form label {
  color: #d9e1f2;
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-email-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.24);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.72);
  font: inherit;
  direction: ltr;
}

.admin-email-form input:focus {
  border-color: rgba(75, 141, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.16);
}

.admin-symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.admin-symbol-row {
  display: flex;
  min-width: 0;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-symbol-row strong {
  color: #ffffff;
  font-size: 1.08rem;
  direction: ltr;
}

.admin-symbol-row .icon-text-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.78rem;
}

.admin-user-row {
  display: flex;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-user-row > div:first-child {
  display: grid;
  gap: 4px;
}

.admin-user-row strong {
  color: #ffffff;
  font-size: 1rem;
}

.admin-user-actions form {
  margin: 0;
}

.protected-admin-label {
  display: inline-flex;
  padding: 6px 10px;
  color: #d7ffed !important;
  border: 1px solid rgba(33, 220, 139, 0.3);
  border-radius: 999px;
  background: rgba(10, 64, 44, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
}

.ltr-value {
  direction: ltr;
  unicode-bidi: plaintext;
}

.stock-detail-header {
  padding: clamp(18px, 3vw, 28px);
}

.stock-detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.stock-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stock-detail-actions form {
  margin: 0;
}

.notification-settings-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.notification-settings-card {
  padding: clamp(20px, 4vw, 34px);
}

.notification-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.notification-settings-heading h1,
.notification-settings-heading p {
  margin-top: 0;
}

.notification-preview-notice {
  padding: 13px 15px;
  margin-bottom: 22px;
  color: #dce8ff;
  border: 1px solid rgba(75, 141, 255, 0.34);
  border-radius: 8px;
  background: rgba(75, 141, 255, 0.1);
  font-weight: 700;
}

.notification-settings-form {
  display: grid;
  gap: 22px;
}

.notification-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.notification-field {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #eef4ff;
  font-weight: 800;
}

.notification-field input,
.notification-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.28);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.76);
  font: inherit;
}

.notification-field input[readonly] {
  color: #b9c8e2;
  background: rgba(12, 23, 42, 0.72);
}

.notification-field input:focus,
.notification-field select:focus {
  border-color: rgba(75, 141, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.14);
}

.notification-field small,
.notification-form-help {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

.notification-channel-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 16px;
  color: #eef4ff;
  border: 1px solid rgba(129, 159, 213, 0.28);
  border-radius: 8px;
}

.notification-channel-options legend {
  padding: 0 8px;
  font-weight: 800;
}

.notification-channel-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.notification-channel-options input {
  accent-color: var(--blue);
}

.notification-enabled-option {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: #eef4ff;
  font-weight: 800;
}

.notification-enabled-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.notification-save-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.back-link,
.login-hint {
  color: #a9c4ff;
  font-weight: 800;
}

.login-hint {
  margin: 0;
}

.stock-title-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(180px, 230px));
  align-items: stretch;
  gap: 14px;
}

.stock-title-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.stock-avatar {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  font-size: 2rem;
}

.quick-stat-card {
  display: grid;
  min-height: 118px;
  padding: 15px;
  align-content: center;
  gap: 6px;
}

.quick-stat-card strong {
  font-size: 1.45rem;
  word-break: break-word;
}

.negative {
  color: var(--red) !important;
}

.muted {
  color: var(--muted) !important;
}

.technical-value {
  color: #ffffff !important;
}

.strategy-status {
  color: var(--red) !important;
}

.strategy-status.fibonacci-golden-zone-breakout {
  color: var(--green) !important;
}

.strategy-status.fibonacci-in-golden-zone {
  color: #63e5a9 !important;
}

.strategy-status.fibonacci-golden-breakout-zone {
  color: #91edbf !important;
}

.strategy-status.fibonacci-soft-zone {
  color: #baf4d5 !important;
}

.strategy-status.fibonacci-soft-zone-breakout {
  color: #d8f9e9 !important;
}

.strategy-status.fibonacci-soft-breakout-zone {
  color: #ffffff !important;
}

.strategy-status.fibonacci-not-detected {
  color: var(--red) !important;
}

.inline-notice {
  margin: 18px 0 0;
  padding: 12px 16px;
  color: #fff2c7;
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: 8px;
  background: rgba(82, 58, 15, 0.42);
  font-weight: 700;
}

.model-results-panel {
  overflow: visible;
}

.symbol-card.symbol-card-buy {
  border-color: rgba(33, 220, 139, 0.62);
  background: rgba(10, 61, 43, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(33, 220, 139, 0.08);
}

.symbol-card.symbol-card-buy:hover {
  border-color: rgba(33, 220, 139, 0.9);
  background: rgba(12, 76, 52, 0.76);
}

.symbol-card.symbol-card-buy span {
  border-color: rgba(33, 220, 139, 0.42);
  background: linear-gradient(
    145deg,
    rgba(33, 220, 139, 0.52),
    rgba(19, 126, 87, 0.38)
  );
}

.symbol-card.symbol-card-buy strong {
  color: #71f2b8;
}

.prediction-service-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.model-results-heading {
  align-items: end;
}

.model-result-control {
  display: grid;
  min-width: min(100%, 360px);
  gap: 7px;
}

.model-result-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.model-result-control select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #ffffff;
  border: 1px solid rgba(129, 159, 213, 0.24);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 12, 24, 0.78);
  font: inherit;
  font-weight: 800;
  direction: ltr;
}

.model-result-control select:focus {
  border-color: rgba(75, 141, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.16);
}

.model-result-card {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(129, 159, 213, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.58);
  direction: ltr;
}

.model-result-copy small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.model-result-card[hidden] {
  display: none;
}

.model-probability-ring {
  --score-color: #6685b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #091424 55%, transparent 57%),
    conic-gradient(var(--score-color) 0 var(--strength), rgba(129, 159, 213, 0.2) var(--strength) 100%);
}

.model-probability-ring.is-buy {
  --score-color: var(--green);
}

.model-probability-ring.is-buy b {
  color: #71f2b8;
}

.model-probability-ring b {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
}

.model-probability-ring span {
  color: #c6d3e8;
  font-size: 0.62rem;
  font-weight: 800;
}

.model-result-copy {
  min-width: 0;
}

.model-result-copy p {
  margin: 0 0 6px;
  color: #8ab4ff;
  font-weight: 900;
}

.model-result-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: 0;
}

.model-result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.model-result-stats div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0 14px;
  border-left: 1px solid rgba(129, 159, 213, 0.14);
}

.model-result-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.model-result-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.model-result-stats strong {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  word-break: break-word;
}

.model-result-stats strong span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.model-price-grid,
.base-score-grid {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

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

.base-score-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.model-price-grid div,
.base-score-grid div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(129, 159, 213, 0.13);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.48);
}

.model-price-grid span,
.base-score-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.model-price-grid strong,
.base-score-grid strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
}

.chart-content-panel {
  overflow: hidden;
}

.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  direction: ltr;
}

.range-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  padding: 0 10px;
  color: #c8d3e8;
  border: 1px solid rgba(129, 159, 213, 0.18);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
}

.range-tabs a.active,
.range-tabs a:hover {
  color: #ffffff;
  border-color: rgba(75, 141, 255, 0.46);
  background: rgba(75, 141, 255, 0.24);
}

.plotly-chart {
  min-height: 540px;
  direction: ltr;
}

.indicator-section-panel {
  overflow: visible;
}

.indicator-sections {
  display: grid;
  gap: 22px;
}

.indicator-group {
  display: grid;
  gap: 12px;
}

.indicator-group h3 {
  margin: 0;
  color: #d9e1f2;
  font-size: 1rem;
  letter-spacing: 0;
}

.indicator-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.indicator-card {
  min-height: 96px;
  padding: 14px;
}

.indicator-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.22rem;
}

.fib-table {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.fib-table div,
.feature-summary-grid div {
  padding: 13px;
}

.feature-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.feature-summary-grid strong,
.fib-table strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
  word-break: break-word;
}

/* footer */
.site-footer {
  padding: 8px 24px 24px;
  color: #aeb9cc;
  text-align: center;
}

.site-footer p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* responsive */
@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: auto 1fr;
    padding: 14px 18px;
    gap: 14px;
  }

  .brand {
    justify-self: start;
  }

  .nav-actions {
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
    gap: 16px 28px;
  }

  .hero-grid {
    grid-template-areas:
      "copy"
      "visual";
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-copy h1,
  .hero-subtitle {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

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

@media (max-width: 860px) {
  .train-overlay {
    display: none;
  }

  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 14px;
  }

  .brand {
    justify-self: start;
  }

  .nav-menu,
  .nav-actions {
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    position: static;
    transform: none;
    width: 100%;
    order: 3;
    justify-content: center;
    gap: 18px 28px;
  }

  .nav-actions-public {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .nav-links a::after {
    bottom: -8px;
  }

  .dashboard-header {
    grid-template-columns: 64px 1fr;
  }

  .stock-price,
  .recommendation {
    grid-column: 1 / -1;
  }

  .recommendation {
    min-height: 86px;
  }

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

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

  .page-hero,
  .stock-title-grid,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .stock-detail-topline,
  .panel-heading,
  .admin-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .range-tabs {
    width: 100%;
  }

  .model-result-control,
  .model-result-card {
    width: 100%;
  }

  .model-result-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .model-result-stats {
    grid-column: 1 / -1;
  }

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

}

@media (max-width: 700px) {
  .support-request-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .support-request-table,
  .support-request-table tbody,
  .support-request-table tr,
  .support-request-table td {
    display: block;
    width: 100%;
  }

  .support-request-table tr {
    padding: 8px 0;
    border-bottom: 1px solid rgba(129, 159, 213, 0.2);
  }

  .support-request-table tr:last-child {
    border-bottom: 0;
  }

  .support-request-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.32fr) minmax(0, 1fr);
    border-bottom: 0;
    gap: 12px;
  }

  .support-request-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.8rem;
    font-weight: 800;
  }

  .support-request-text {
    min-width: 0;
    max-width: none;
  }

  .support-resolution-note,
  .support-resolution-form {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-section,
  .features-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 13vw, 3.3rem);
  }

  .hero-actions,
  .placeholder-actions,
  .nav-actions {
    width: 100%;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-user,
  .nav-admin-badge,
  .nav-logout-form {
    flex: 1 0 100%;
    width: 100%;
    text-align: center;
  }

  .nav-logout-form .nav-button {
    width: 100%;
  }

  .report-menu,
  .report-menu summary {
    width: 100%;
  }

  .report-box {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .model-result-card {
    grid-template-columns: 1fr;
  }

  .model-probability-ring {
    justify-self: start;
  }

  .model-result-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .model-price-grid,
  .base-score-grid {
    grid-template-columns: 1fr;
  }

  .model-result-stats div,
  .model-result-stats div:first-child {
    padding: 0;
    border-left: 0;
  }

  .cta-button,
  .nav-button {
    flex: 1 1 100%;
    min-width: 0;
  }

  .dashboard-card {
    padding: 12px;
  }

  .chart-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .feature-grid,
  .market-strip {
    grid-template-columns: 1fr;
  }

  .market-strip {
    margin-right: 16px;
    margin-left: 16px;
  }

  .app-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .search-row,
  .watchlist-actions {
    grid-template-columns: 1fr;
  }

  .search-row,
  .watchlist-actions,
  .stock-detail-topline,
  .admin-user-row,
  .requester-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .request-group-card summary {
    grid-template-columns: 1fr;
  }

  .admin-inline-form,
  .admin-email-form {
    width: 100%;
  }

  .range-tabs a {
    flex: 1 1 62px;
  }

  .stock-title-block {
    align-items: flex-start;
    flex-direction: column;
  }
}

.market-overview-shell {
  max-width: 1260px;
  margin: 0 auto;
}

.market-news-panel {
  margin-top: 0;
}

.market-news-title {
  max-width: min(100%, 1040px);
  margin: 0 auto 18px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.market-news-feed {
  display: grid;
  max-width: min(100%, 1040px);
  margin: 0 auto;
  gap: 12px;
}

.market-news-item {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(129, 159, 213, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.market-news-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--soft);
  font-size: 0.84rem;
}

.market-news-publisher {
  color: var(--cyan);
  font-weight: 800;
}

.market-news-item h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.35;
}

.market-news-item h3 a {
  color: #ffffff;
}

.market-news-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 580px) {
  .market-news-feed {
    max-width: 100%;
  }

  .market-news-item {
    padding: 15px;
  }
}
