:root {
  --bg: #04090f;
  --bg-soft: #08111a;
  --panel: rgba(7, 14, 21, 0.94);
  --panel-strong: rgba(9, 16, 24, 0.98);
  --panel-soft: rgba(10, 18, 27, 0.82);
  --text: #f5f8fc;
  --muted: #8e9aaa;
  --muted-strong: #aab7c8;
  --line: rgba(113, 141, 168, 0.16);
  --line-strong: rgba(31, 227, 125, 0.24);
  --green: #1fe37d;
  --green-strong: #0ec565;
  --green-soft: rgba(31, 227, 125, 0.12);
  --blue-soft: rgba(46, 109, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #04090f;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(31, 227, 125, 0.14), transparent 26%),
    radial-gradient(circle at 84% 11%, rgba(45, 115, 255, 0.1), transparent 26%),
    linear-gradient(180deg, #061019 0%, #04090f 52%, #02070c 100%);
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

input,
textarea {
  outline: none;
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.42;
}

.glow-left {
  top: 4rem;
  left: -8rem;
  background: rgba(31, 227, 125, 0.14);
}

.glow-right {
  top: 10rem;
  right: -10rem;
  background: rgba(41, 110, 255, 0.12);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 30px;
}

.page-stack {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(8, 14, 21, 0.96), rgba(4, 10, 15, 0.99)),
    rgba(6, 12, 18, 0.95);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 227, 125, 0.08), transparent 20%, transparent 80%, rgba(31, 227, 125, 0.05)),
    linear-gradient(rgba(43, 60, 79, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 60, 79, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  opacity: 0.35;
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(5, 11, 18, 0.92);
  border: none;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-extended .brand-copy strong {
  font-size: 1.35rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--green);
  background:
    linear-gradient(145deg, rgba(20, 38, 29, 0.94), rgba(8, 18, 14, 0.84)),
    rgba(14, 24, 18, 0.85);
  border: 1px solid rgba(31, 227, 125, 0.18);
  box-shadow: inset 0 0 20px rgba(31, 227, 125, 0.08);
}

.brand-mark.mini {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-copy strong span,
.hero-copy h1 span,
.section-heading h2 span,
.about-copy-block h1 span,
.blog-copy h1 span,
.footer-copy h2 span,
.login-showcase h1 span,
.stage-base strong span,
.app-brand strong span {
  color: var(--green);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.header-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(236, 242, 248, 0.9);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--green);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.console-actions {
  position: relative;
}

.header-insights {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.header-insight-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(8, 16, 22, 0.92);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.header-insight-card span,
.header-insight-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-insight-card strong {
  max-width: 170px;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-email {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(39, 234, 135, 0.1);
  border: 1px solid rgba(39, 234, 135, 0.3);
  white-space: nowrap;
}

.logout-link,
.reset-balance-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  color: #ffb4b4;
  background: rgba(255, 98, 98, 0.1);
  border: 1px solid rgba(255, 98, 98, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.reset-balance-link {
  color: #ffcdcd;
  background: rgba(255, 98, 98, 0.08);
  border-color: rgba(255, 98, 98, 0.2);
}

.profile-link {
  gap: 10px;
  padding-right: 18px;
  padding-left: 12px;
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #04110a;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.btn:hover,
.console-pill:hover,
.icon-button:hover,
.avatar-button:hover,
.chip-row button:hover,
.app-nav a:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #04110a;
  background: linear-gradient(135deg, #27ea87 0%, #10bf5d 100%);
  box-shadow: 0 16px 36px rgba(16, 191, 93, 0.28);
}

.btn-secondary,
.btn-ghost,
.console-pill,
.icon-button,
.chip-row button {
  background: rgba(9, 17, 25, 0.76);
  border: 1px solid rgba(124, 150, 174, 0.18);
  color: var(--text);
}

.btn-secondary:hover,
.btn-ghost:hover,
.chip-row button:hover {
  border-color: rgba(31, 227, 125, 0.28);
  background: rgba(11, 21, 31, 0.96);
}

.btn-compact {
  min-height: 46px;
}

.console-pill {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
}

.console-pill span,
.metric-card span,
.ticker-card span,
.meta-row,
.holding-row.table-labels,
.footer-note span,
.footer-details span,
.hero-point > div span,
.benefit-card div span,
.content-card p,
.price-card p,
.blog-card p,
.category-list small,
.form-copy,
.study-note span,
.floating-card span,
.value-list li,
.story-panel p,
.info-panel p,
.side-copy,
.stat-tile span,
.showcase-list span {
  color: var(--muted-strong);
}

.console-pill span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

.console-pill strong {
  color: var(--green);
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.icon-button,
.avatar-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.notification-button {
  position: relative;
}

.notification-button.has-notifications {
  border-color: rgba(31, 227, 125, 0.48);
  color: var(--green);
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #04110a;
  background: var(--green);
  border: 2px solid #071018;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
}

.notification-count[hidden] {
  display: none;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 48px;
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 16px;
  background: rgba(6, 13, 20, 0.98);
  border: 1px solid rgba(31, 227, 125, 0.22);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(124, 150, 174, 0.14);
}

.notification-panel-head strong {
  font-size: 0.95rem;
}

.notification-panel-head small,
.notification-empty,
.notification-item small,
.notification-item time {
  color: var(--muted);
}

.notification-list {
  display: grid;
  max-height: 340px;
  overflow-y: auto;
}

.notification-empty {
  padding: 22px 16px;
  font-size: 0.86rem;
  font-weight: 700;
}

.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(124, 150, 174, 0.1);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item > span {
  align-self: start;
  min-width: 42px;
  padding: 5px 7px;
  border-radius: 8px;
  color: #04110a;
  background: rgba(31, 227, 125, 0.92);
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
}

.notification-item.is-sell > span {
  color: #ffe2e2;
  background: rgba(255, 98, 98, 0.2);
  border: 1px solid rgba(255, 98, 98, 0.28);
}

.notification-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-item strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item small,
.notification-item time {
  font-size: 0.76rem;
  font-weight: 700;
}

.notification-item.is-unread {
  background: rgba(31, 227, 125, 0.05);
}

.avatar-button {
  border-radius: 50%;
  color: #04110a;
  font-weight: 800;
  background: linear-gradient(135deg, #25e985, #0ebf5d);
  box-shadow: 0 12px 30px rgba(31, 227, 125, 0.22);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(124, 150, 174, 0.18);
  background: rgba(9, 17, 25, 0.92);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(8, 28, 19, 0.52);
  border: 1px solid rgba(31, 227, 125, 0.2);
  box-shadow: inset 0 0 18px rgba(31, 227, 125, 0.06);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(31, 227, 125, 0.5);
}

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

.icon-box,
.round-icon {
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(17, 35, 23, 0.74);
  border: 1px solid rgba(31, 227, 125, 0.16);
  box-shadow: inset 0 0 18px rgba(31, 227, 125, 0.06);
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.icon-box svg {
  width: 18px;
  height: 18px;
}

.round-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 227, 125, 0.18), rgba(31, 227, 125, 0.08));
  box-shadow: 0 0 24px rgba(31, 227, 125, 0.1);
}

.round-icon svg {
  width: 24px;
  height: 24px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.section-heading h2,
.about-copy-block h1,
.blog-copy h1,
.footer-copy h2,
.login-showcase h1,
.hero-copy h1 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.55rem);
}

.section-heading p,
.hero-copy p,
.about-copy-block p,
.blog-copy p,
.footer-copy p,
.login-showcase p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
  margin-top: 0;
  padding: 16px 24px 24px;
}

.hero-copy {
  max-width: 620px;
  padding: 4px 4px 6px 2px;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 4.3vw, 3.85rem);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hero-point {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-point strong,
.benefit-card strong,
.content-card h3,
.price-card h3,
.blog-card h3,
.popular-item strong,
.story-panel h2,
.info-panel h3,
.login-form-card h2,
.showcase-list strong {
  font-weight: 700;
}

.hero-point strong,
.benefit-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  min-height: 420px;
}

.dashboard-frame {
  width: min(100%, 690px);
  perspective: 1600px;
}

.dashboard-shell {
  position: relative;
  width: 100%;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 17, 26, 0.98), rgba(6, 12, 20, 1)),
    #09111a;
  border: 1px solid rgba(127, 152, 177, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: perspective(1600px) rotateY(-6deg) rotateX(5deg) rotateZ(-3deg);
  transform-origin: center;
}

.dashboard-shell::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  box-shadow: inset 0 0 24px rgba(31, 227, 125, 0.06);
  pointer-events: none;
}

.window-close {
  position: absolute;
  top: 10px;
  right: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
}

.dashboard-app {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 14px;
  min-height: 500px;
}

.app-sidebar,
.metric-card,
.chart-card,
.side-card,
.table-card,
.sentiment-card,
.benefit-card,
.content-card,
.ticker-card,
.price-card,
.story-panel,
.info-panel,
.blog-card,
.blog-side-card,
.login-preview,
.login-form-card,
.footer-note {
  border-radius: 20px;
  background: rgba(9, 16, 24, 0.72);
  border: 1px solid rgba(122, 149, 174, 0.14);
  backdrop-filter: blur(10px);
}

.app-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-brand strong {
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}

.app-nav {
  display: grid;
  gap: 10px;
}

.app-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted-strong);
  font-size: 0.83rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-nav a.is-active {
  color: var(--text);
  background: rgba(17, 35, 23, 0.95);
  border-color: rgba(31, 227, 125, 0.16);
}

.app-main {
  display: grid;
  gap: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-quick-actions .metric-card {
  padding: 14px 16px;
}

.metric-card span,
.table-headline span,
.stat-tile span,
.popular-item small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.metric-card small {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.metric-positive strong {
  color: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) 164px;
  gap: 12px;
}

.chart-card {
  grid-row: span 2;
  padding: 16px;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.chart-head strong {
  display: block;
  font-size: 1rem;
}

.chart-head span {
  display: inline-block;
  margin: 4px 8px 0 0;
  font-size: clamp(0.96rem, 1.8vw, 1.08rem);
  font-weight: 800;
}

.chart-head small {
  font-size: 0.74rem;
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(16, 24, 33, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
}

.pill.is-active {
  color: var(--text);
  background: rgba(31, 227, 125, 0.14);
}

.market-chart,
.preview-chart {
  display: block;
  width: 100%;
}

.market-chart {
  height: 300px;
  margin-top: 16px;
}

.chart-grid {
  stroke: rgba(121, 148, 173, 0.12);
  stroke-width: 1;
}

.chart-bars {
  stroke: rgba(31, 227, 125, 0.22);
  stroke-width: 12;
  stroke-linecap: round;
}

.chart-trace,
.preview-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  filter: drop-shadow(0 0 12px rgba(31, 227, 125, 0.32));
}

.side-card,
.table-card,
.sentiment-card,
.blog-side-card {
  padding: 14px;
}

.side-card-head,
.table-headline,
.side-heading,
.meta-row,
.form-meta,
.preview-top,
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side-card-head strong,
.table-headline strong,
.side-heading strong {
  font-size: 0.95rem;
}

.side-card-head a {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.ticker-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ticker-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.76rem;
}

.ticker-list strong {
  color: var(--green);
  font-size: 0.78rem;
}

.holding-table {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.holding-row {
  display: grid;
  grid-template-columns: 1.12fr 0.42fr 0.82fr 0.82fr 0.78fr;
  gap: 8px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.68rem;
}

.holding-row.table-labels {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.holding-row strong {
  color: var(--green);
  font-size: 0.68rem;
}

.sentiment-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sentiment-ring {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 8px auto 4px;
  border-radius: 50%;
  background: conic-gradient(#87de67 0 132deg, #d7a845 132deg 255deg, #dc5e4f 255deg 360deg);
  box-shadow:
    inset 0 0 0 10px rgba(6, 12, 18, 0.55),
    0 0 18px rgba(31, 227, 125, 0.12);
}

.sentiment-ring::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #0b121b;
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.sentiment-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.sentiment-labels strong {
  color: var(--text);
  font-size: 0.98rem;
}

.quick-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: none;
  border: 0;
  box-shadow: none;
}

.quick-benefits::before {
  display: none;
}

.benefit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 10px 16px;
}

.stat-tile {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 82px;
  padding: 16px 18px;
  border-right: 1px solid rgba(122, 149, 174, 0.14);
}

.stat-tile:last-child {
  border-right: 0;
}

.stat-tile strong {
  color: var(--green);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.stat-tile-copy strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.stat-tile-copy strong span {
  color: var(--green);
}

.anchor-panel,
.about-panel,
.blog-panel,
.login-panel-page {
  padding: 22px;
}

.anchor-grid,
.pricing-grid,
.about-story-grid,
.blog-grid,
.footer-details,
.showcase-list {
  display: grid;
  gap: 14px;
}

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

.content-card {
  padding: 18px;
}

.content-card h3,
.price-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

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

.ticker-card {
  padding: 16px;
  cursor: pointer;
}

.ticker-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(235, 241, 247, 0.94);
  font-size: 0.84rem;
  font-weight: 700;
}

.ticker-card strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}

.ticker-card small {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
}

.ticker-card small.positive {
  color: var(--green);
}

.ticker-card small.negative {
  color: #ff6262;
}

.global-market-strip {
  position: relative;
  width: 100%;
  margin: 10px 0 16px;
  padding: 8px 10px 6px;
  overflow: hidden;
  border: 1px solid rgba(122, 149, 174, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(31, 227, 125, 0.08), transparent 38%, rgba(47, 102, 255, 0.08)),
    rgba(6, 12, 18, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.global-market-track {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 0;
  scroll-snap-type: x proximity;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.global-market-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.global-market-track::-webkit-scrollbar-track {
  background: rgba(122, 149, 174, 0.08);
  border-radius: 999px;
}

.global-market-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(210, 218, 226, 0.56);
}

.global-ticker-card {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(122, 149, 174, 0.12);
  border-radius: 14px;
  background: rgba(8, 16, 24, 0.88);
  scroll-snap-align: start;
  cursor: pointer;
}

.global-ticker-card.is-loading {
  grid-template-columns: minmax(0, 1fr);
}

.global-ticker-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 10px;
  color: #dff8eb;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.66rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.global-ticker-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-ticker-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.global-ticker-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-ticker-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-ticker-change {
  align-self: end;
  color: var(--green);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.global-ticker-card.is-negative .global-ticker-change {
  color: #ff6262;
}

.is-live-up,
.is-live-down {
  border-radius: 8px;
  animation: live-flash 1.15s ease;
}

.is-live-up {
  color: var(--green);
}

.is-live-down {
  color: #ff6262;
}

@keyframes live-flash {
  0% {
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 rgba(31, 227, 125, 0);
  }
  25% {
    background: rgba(31, 227, 125, 0.1);
    box-shadow: 0 0 18px rgba(31, 227, 125, 0.12);
  }
  100% {
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 rgba(31, 227, 125, 0);
  }
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 20px;
}

.price-card.featured {
  border-color: rgba(31, 227, 125, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(31, 227, 125, 0.12),
    0 24px 48px rgba(10, 25, 17, 0.18);
}

.price-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31, 227, 125, 0.14);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin: 12px 0 14px;
  color: var(--green);
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.home-plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 12px 0 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #c8f9da;
  background: rgba(31, 227, 125, 0.1);
  border: 1px solid rgba(31, 227, 125, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.plan-price {
  min-height: 38px;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.plan-price.is-paid-price,
.home-plan-label.is-paid-price {
  color: var(--green);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.price-card strong span {
  color: var(--muted);
  font-size: 1rem;
}

.price-card .btn {
  margin-top: 4px;
}

.price-card .check-list,
.price-card .plan-note {
  width: 100%;
}

.price-card .plan-note {
  margin-top: auto;
}

.plan-status {
  min-height: 21px;
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.6;
}

.plan-status.is-error {
  color: #ff8f8f;
}

.plan-status.is-success {
  color: var(--green);
}

.price-card.is-active-plan,
.price-card.featured.is-active-plan {
  border-color: rgba(31, 227, 125, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(31, 227, 125, 0.18),
    0 24px 48px rgba(10, 25, 17, 0.24);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.check-list,
.value-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 20px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li,
.value-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before,
.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(31, 227, 125, 0.42);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 24px;
  align-items: center;
}

.about-copy-block h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
}

.study-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 18, 25, 0.76);
  border: 1px solid rgba(31, 227, 125, 0.16);
}

.study-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.about-stage {
  position: relative;
  min-height: 430px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 227, 125, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(7, 13, 20, 0.96), rgba(4, 10, 15, 0.98));
  border: 1px solid rgba(124, 151, 176, 0.14);
  overflow: hidden;
}

.about-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(40, 65, 52, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 65, 52, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
}

.about-stage-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stage-screen {
  position: absolute;
  inset: 28px 40px 92px 84px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 62% 28%, rgba(31, 227, 125, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(6, 18, 18, 0.94), rgba(3, 11, 12, 0.96));
  border: 1px solid rgba(31, 227, 125, 0.14);
  box-shadow: inset 0 0 36px rgba(31, 227, 125, 0.06);
  overflow: hidden;
}

.screen-brand {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.screen-brand strong {
  font-size: 0.9rem;
  letter-spacing: -0.03em;
}

.stage-chart {
  position: absolute;
  inset: 50px 20px 20px;
  width: auto;
  height: auto;
}

.stage-gridline {
  stroke: rgba(77, 118, 92, 0.18);
  stroke-width: 1;
}

.stage-columns {
  stroke: rgba(31, 227, 125, 0.18);
  stroke-width: 18;
  stroke-linecap: round;
}

.stage-curve-line {
  fill: none;
  stroke: #86ffb3;
  stroke-width: 8;
  filter: drop-shadow(0 0 12px rgba(31, 227, 125, 0.34));
}

.floating-card {
  position: absolute;
  max-width: 170px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 15, 22, 0.88);
  border: 1px solid rgba(31, 227, 125, 0.16);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.28);
}

.floating-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.floating-card span {
  font-size: 0.75rem;
  line-height: 1.5;
}

.floating-left {
  top: 146px;
  left: 18px;
}

.floating-top {
  top: 28px;
  right: 24px;
}

.floating-bottom {
  right: 10px;
  bottom: 118px;
}

.stage-base {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 270px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 20, 16, 0.98), rgba(4, 10, 8, 0.96));
  border: 1px solid rgba(31, 227, 125, 0.22);
  box-shadow:
    0 0 32px rgba(31, 227, 125, 0.18),
    inset 0 0 20px rgba(31, 227, 125, 0.08);
}

.stage-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: 76%;
  height: 30px;
  border-radius: 50%;
  background: rgba(31, 227, 125, 0.22);
  filter: blur(18px);
}

.stage-base strong {
  position: relative;
  z-index: 1;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.about-story-grid {
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.story-panel,
.info-panel {
  padding: 24px;
}

.story-panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.story-accent {
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.info-panel h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
}

.about-story-board {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 14, 21, 0.98), rgba(5, 10, 16, 0.98));
  border: 1px solid rgba(122, 149, 174, 0.16);
}

.about-story-board > article {
  padding: 28px 24px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(122, 149, 174, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.about-story-board > article:last-child {
  border-right: 0;
}

.story-panel-main p:last-child {
  margin-bottom: 0;
}

.board-info .round-icon {
  margin-bottom: 18px;
}

.board-info h3 {
  margin-top: 0;
}

.board-info p {
  margin-bottom: 0;
}

.blog-panel {
  padding-bottom: 24px;
}

.blog-hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr 0.78fr;
  gap: 18px;
  align-items: stretch;
}

.blog-copy {
  padding-top: 6px;
}

.blog-copy h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.1rem);
}

.blog-art {
  padding: 14px;
  border-radius: 22px;
  background: rgba(8, 15, 22, 0.7);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.art-stage {
  position: relative;
  min-height: 220px;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 64% 24%, rgba(31, 227, 125, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 14, 20, 0.96), rgba(4, 10, 15, 0.98));
}

.art-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(48, 76, 91, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 76, 91, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.art-book {
  position: absolute;
  left: 25%;
  right: 18%;
  bottom: 30px;
  height: 86px;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(180deg, rgba(12, 21, 24, 1), rgba(8, 15, 18, 1));
  transform: perspective(900px) rotateX(68deg);
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.42);
}

.art-book::before,
.art-book::after {
  content: "";
  position: absolute;
  top: -44px;
  width: 48%;
  height: 56px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.92), rgba(182, 194, 206, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.art-book::before {
  left: 2%;
  border-radius: 20px 0 10px 20px;
  transform: skewY(8deg);
}

.art-book::after {
  right: 2%;
  border-radius: 0 20px 20px 10px;
  transform: skewY(-8deg);
}

.art-chart {
  position: absolute;
  inset: 28px 68px 42px 84px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(49, 76, 92, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 76, 92, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
}

.art-chart::before {
  content: "";
  position: absolute;
  inset: auto 20px 26px 20px;
  height: 120px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(31, 227, 125, 0), rgba(31, 227, 125, 0.08));
}

.art-chart::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 18px;
  bottom: 38px;
  height: 120px;
  background: linear-gradient(90deg, transparent 0%, transparent 100%);
  clip-path: polygon(0% 88%, 8% 76%, 16% 72%, 24% 66%, 32% 68%, 40% 58%, 48% 56%, 56% 48%, 64% 44%, 72% 34%, 80% 28%, 88% 18%, 100% 0%, 100% 10%, 88% 28%, 80% 36%, 72% 44%, 64% 54%, 56% 60%, 48% 68%, 40% 76%, 32% 80%, 24% 84%, 16% 88%, 8% 92%, 0% 96%);
  background-color: rgba(31, 227, 125, 0.22);
  filter: drop-shadow(0 0 18px rgba(31, 227, 125, 0.28));
}

.art-pen {
  position: absolute;
  top: 22px;
  right: 96px;
  width: 160px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 52, 38, 0.24), #18e17a 42%, #78ffaf 100%);
  transform: rotate(-54deg);
  box-shadow: 0 0 24px rgba(31, 227, 125, 0.28);
}

.art-pen::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 18px solid #78ffaf;
}

.blog-toolbar {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 24px;
  border-radius: 28px;
  background: rgba(6, 15, 26, 0.95);
  border: 1px solid rgba(31, 227, 125, 0.22);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.search-field:hover,
.search-field:focus-within {
  transform: translateY(-1px);
  border-color: rgba(31, 227, 125, 0.3);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.22);
}

.search-field svg {
  width: 24px;
  height: 24px;
  color: rgba(31, 227, 125, 0.95);
  flex: 0 0 auto;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 18px 0;
}

.search-field input::placeholder,
.subscribe-form input::placeholder,
.login-form-card input::placeholder {
  color: rgba(213, 228, 241, 0.56);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row button {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.chip-row button.is-active {
  color: var(--text);
  background: rgba(31, 227, 125, 0.14);
  border-color: rgba(31, 227, 125, 0.24);
}

.blog-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 18px;
}

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

.blog-card {
  padding: 14px;
}

.blog-thumb,
.mini-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 16, 22, 1), rgba(4, 10, 15, 1));
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.blog-thumb {
  height: 170px;
  margin-bottom: 14px;
  border-radius: 18px;
}

.mini-thumb {
  display: block;
  width: 64px;
  height: 48px;
  border-radius: 12px;
}

.blog-thumb::before,
.mini-thumb::before {
  content: "";
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 44%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(2, 8, 13, 0), rgba(2, 8, 13, 0.76));
}

.thumb-chart {
  background:
    radial-gradient(circle at 18% 24%, rgba(31, 227, 125, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(8, 21, 29, 0.96), rgba(4, 10, 16, 1));
}

.thumb-chart::after,
.thumb-swing::after {
  content: "";
  position: absolute;
  inset: 18px 18px 22px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(110, 150, 180, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 150, 180, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
}

.thumb-chess {
  background:
    radial-gradient(circle at 60% 20%, rgba(52, 139, 255, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(10, 20, 26, 0.96), rgba(5, 12, 18, 1));
}

.thumb-chess::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translateX(-50%);
  border-radius: 18px 18px 8px 8px;
  border: 1px solid rgba(31, 227, 125, 0.18);
  background: linear-gradient(180deg, rgba(24, 57, 40, 0.6), rgba(7, 18, 12, 0.1));
  box-shadow:
    0 26px 0 -10px rgba(18, 46, 31, 0.65),
    -90px 24px 0 -26px rgba(18, 46, 31, 0.5),
    90px 24px 0 -26px rgba(18, 46, 31, 0.5);
}

.thumb-analysis {
  background:
    radial-gradient(circle at 30% 25%, rgba(31, 227, 125, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(8, 20, 25, 0.98), rgba(4, 10, 16, 1));
}

.thumb-analysis::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 30px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 7px solid rgba(124, 176, 214, 0.18);
  box-shadow: inset 0 0 0 1px rgba(31, 227, 125, 0.14);
}

.thumb-brain {
  background:
    radial-gradient(circle at 30% 25%, rgba(39, 110, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(8, 20, 28, 0.98), rgba(4, 10, 16, 1));
}

.thumb-brain::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 34px;
  width: 120px;
  height: 110px;
  border-radius: 58% 42% 42% 58% / 56% 54% 46% 44%;
  border: 1px solid rgba(31, 227, 125, 0.18);
  background: radial-gradient(circle at 38% 30%, rgba(31, 227, 125, 0.18), transparent 34%);
  box-shadow:
    14px -4px 0 -12px rgba(31, 227, 125, 0.5),
    42px 14px 0 -12px rgba(31, 227, 125, 0.35);
}

.thumb-news {
  background:
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(8, 18, 25, 0.98), rgba(4, 10, 16, 1));
}

.thumb-news::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 32px;
  width: 146px;
  height: 92px;
  border-radius: 16px;
  border: 1px solid rgba(124, 150, 173, 0.16);
  background: linear-gradient(180deg, rgba(20, 32, 42, 0.95), rgba(6, 12, 18, 0.8));
  box-shadow: inset 0 14px 0 rgba(255, 255, 255, 0.03);
}

.thumb-swing {
  background:
    radial-gradient(circle at 18% 20%, rgba(31, 227, 125, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(6, 18, 24, 0.98), rgba(4, 10, 16, 1));
}

.blog-tag {
  display: inline-flex;
  padding: 7px 11px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(31, 227, 125, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.blog-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.35;
}

.meta-row {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.popular-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.popular-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.popular-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.blog-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.category-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.category-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  color: var(--muted-strong);
  border-bottom: 1px solid rgba(122, 149, 174, 0.12);
}

.subscribe-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.subscribe-form input,
.login-form-card input {
  min-height: 52px;
  padding: 0 15px;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(122, 149, 174, 0.16);
  background: rgba(8, 15, 22, 0.9);
}

.login-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.login-status.is-error {
  color: #ff6b6b;
}

.login-status.is-success {
  color: #7bf0a6;
}

.subscribe-form input:focus,
.login-form-card input:focus,
.search-field:focus-within {
  border-color: rgba(31, 227, 125, 0.24);
  box-shadow: 0 0 0 1px rgba(31, 227, 125, 0.12);
}

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

.short-strip .stat-tile strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.short-strip .stat-tile span {
  font-size: 0.84rem;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  padding: 24px 26px;
  align-items: center;
}

.footer-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.footer-details {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-details article {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(9, 16, 24, 0.72);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.footer-details strong {
  display: block;
  margin-bottom: 8px;
}

.login-panel-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.login-showcase {
  padding: 6px 6px 0 2px;
}

.login-showcase h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.1rem);
}

.showcase-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.showcase-list div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(9, 16, 24, 0.72);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.showcase-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.login-preview {
  margin-top: 22px;
  padding: 20px;
}

.preview-top article,
.preview-footer div {
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 15, 22, 0.9);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.preview-top span,
.preview-footer span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-top strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.preview-chart {
  height: 190px;
  margin: 18px 0 16px;
}

.preview-footer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text);
}

.login-form-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px;
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(8, 15, 22, 0.92);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.auth-mode-toggle button {
  min-height: 42px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-mode-toggle button.is-active {
  color: #04110a;
  background: linear-gradient(135deg, #27ea87 0%, #10bf5d 100%);
  box-shadow: 0 10px 26px rgba(16, 191, 93, 0.2);
}

.login-form-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.form-copy {
  margin: 0 0 4px;
}

.login-form-card label {
  color: rgba(244, 248, 252, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  min-height: auto;
  accent-color: var(--green);
}

.form-meta a,
.signup-copy a {
  color: var(--green);
  font-weight: 700;
}

.form-submit {
  width: 100%;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.divider span {
  flex: 1;
  height: 1px;
  background: rgba(122, 149, 174, 0.14);
}

.social-buttons {
  display: grid;
  gap: 10px;
}

.signup-copy {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
}

.footer-note strong {
  color: var(--green);
}

@media (max-width: 1280px) {
  .home-hero,
  .about-hero,
  .login-panel-page {
    grid-template-columns: 1fr;
  }

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

  .popular-card {
    grid-column: 1 / -1;
  }

  .hero-copy,
  .about-copy-block,
  .blog-copy {
    max-width: none;
  }

  .hero-visual {
    justify-content: center;
    min-height: auto;
  }

  .dashboard-shell {
    transform: none;
  }

  .login-form-card {
    order: -1;
  }
}

@media (max-width: 1120px) {
  .quick-benefits,
  .four-up,
  .footer-details,
  .showcase-list,
  .blog-grid,
  .about-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-story-grid .story-panel {
    grid-column: 1 / -1;
  }

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

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

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

  .blog-content,
  .footer-contact,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .page-home .hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .trade-history-page-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .site-header {
    top: 10px;
  }

  .header-insights {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-group {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(5, 11, 18, 0.98);
    border: 1px solid rgba(122, 149, 174, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  }

  .header-group.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-links a::after {
    right: auto;
    width: 36px;
    bottom: -2px;
  }

  .auth-actions {
    width: 100%;
  }

  .auth-actions .btn {
    flex: 1;
  }

  .console-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .console-actions .console-pill {
    grid-column: 1 / -1;
  }

  .trade-history-tools {
    grid-template-columns: 1fr;
  }

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

  .metric-row,
  .dashboard-grid,
  .blog-hero,
  .blog-toolbar {
    grid-template-columns: 1fr;
  }

  .chart-card {
    grid-row: auto;
  }

  .blog-sidebar,
  .quick-benefits,
  .blog-grid,
  .showcase-list {
    grid-template-columns: 1fr;
  }

  .preview-top,
  .preview-footer,
  .form-meta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: calc(100% - 16px);
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .site-header {
    gap: 14px;
    padding: 14px;
  }

  .brand-copy strong {
    font-size: 1.36rem;
  }

  .home-hero,
  .anchor-panel,
  .about-panel,
  .blog-panel,
  .login-panel-page {
    padding: 18px;
  }

  .hero-copy h1,
  .section-heading h2,
  .about-copy-block h1,
  .blog-copy h1,
  .footer-copy h2,
  .login-showcase h1 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
    line-height: 1.05;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(1.9rem, 11vw, 2.75rem);
  }

  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .market-chart {
    height: 230px;
  }

  .quick-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .benefit-card {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }

  .benefit-card .icon-box {
    width: 32px;
    height: 32px;
  }

  .benefit-card strong {
    font-size: 0.95rem !important;
  }

  .benefit-card div span {
    font-size: 0.85rem;
  }

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

  .ticker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .pricing-grid,
  .short-strip,
  .footer-details,
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-stage {
    min-height: auto;
  }

  .about-story-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .about-story-board > article {
    border-right: 0;
    border-bottom: 1px solid rgba(122, 149, 174, 0.12);
  }

  .about-story-board > article:last-child {
    border-bottom: 0;
  }

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

  .stat-tile {
    border-right: 0;
    border-bottom: 1px solid rgba(122, 149, 174, 0.14);
  }

  .stat-tile:last-child {
    border-bottom: 0;
  }

  .holding-row {
    grid-template-columns: 1.15fr 0.45fr 0.85fr 0.85fr 0.8fr;
    font-size: 0.66rem;
  }

  .about-stage {
    min-height: auto;
    padding: 308px 18px 18px;
  }

  .stage-screen {
    inset: 18px 18px auto 18px;
    height: 250px;
  }

  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    margin-top: 12px;
  }

  .stage-base {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
  }

  .art-stage {
    min-height: 200px;
  }

  .blog-thumb {
    height: 150px;
  }
}

@media (min-width: 1281px) {
  .page-login .site-shell {
    width: min(1300px, calc(100vw - 24px));
  }

  .page-login .login-panel-page {
    grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.82fr);
    gap: 16px;
    padding: 18px;
  }

  .page-login .login-showcase {
    padding: 2px 2px 0 0;
  }

  .page-login .login-showcase h1 {
    font-size: clamp(2.24rem, 4vw, 3.5rem);
  }

  .page-login .login-showcase p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .page-login .showcase-list {
    margin-top: 18px;
    gap: 12px;
  }

  .page-login .showcase-list div,
  .page-login .login-preview {
    padding: 16px;
  }

  .page-login .preview-chart {
    height: 158px;
    margin: 14px 0 12px;
  }

  .page-login .login-form-card {
    gap: 12px;
    padding: 22px;
  }

  .page-login .login-form-card h2 {
    font-size: 1.72rem;
  }
}

.negative {
  color: #ff6262;
}

.centered-heading {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.centered-heading h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.centered-heading p {
  margin: 14px 0 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.heading-accent {
  display: block;
  width: 72px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.feature-page,
.pricing-page,
.market-page {
  padding: 22px;
}

.page-markets .site-shell {
  width: min(1440px, calc(100% - 18px));
}

.page-markets .market-page {
  background: linear-gradient(180deg, rgba(8, 14, 21, 0.99), rgba(4, 10, 15, 1));
}

.page-markets .market-page::before {
  display: none;
}

.feature-page-grid,
.pricing-spotlight-grid,
.why-paid-grid {
  display: grid;
  gap: 18px;
}

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

.feature-page-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 26px 20px 22px;
  text-align: center;
  border-radius: 22px;
  background: rgba(9, 16, 24, 0.72);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.feature-page-card h3,
.why-paid-grid strong {
  margin: 0;
  font-size: 1.18rem;
}

.feature-page-card p,
.why-paid-grid span {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.feature-accent {
  display: block;
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.study-banner {
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  text-align: center;
  border-radius: 18px;
  background: rgba(9, 24, 16, 0.62);
  border: 1px solid rgba(31, 227, 125, 0.22);
}

.study-banner strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.study-banner span {
  color: var(--muted-strong);
  line-height: 1.75;
}

.pricing-spotlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-page {
  position: relative;
}

.page-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(9, 16, 24, 0.9);
  border: 1px solid rgba(122, 149, 174, 0.18);
  font-size: 1.45rem;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.page-close-btn:hover,
.page-close-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 227, 125, 0.34);
  background: rgba(12, 24, 18, 0.96);
}

.pricing-page .price-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 21, 31, 0.96), rgba(5, 12, 18, 0.98)),
    rgba(9, 16, 24, 0.86);
}

.pricing-page .price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(31, 227, 125, 0.12), transparent 34%, rgba(245, 158, 11, 0.07));
  opacity: 0.58;
}

.pricing-page .price-card > * {
  position: relative;
  z-index: 1;
}

.plan-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  margin: 2px 0 14px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(122, 149, 174, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 149, 174, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 22% 28%, rgba(31, 227, 125, 0.28), transparent 22%),
    linear-gradient(135deg, rgba(8, 18, 26, 0.98), rgba(12, 24, 34, 0.96));
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
  border: 1px solid rgba(122, 149, 174, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-visual span {
  position: absolute;
  bottom: 20px;
  width: 18%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(31, 227, 125, 0.95), rgba(16, 191, 93, 0.56));
  box-shadow: 0 14px 34px rgba(31, 227, 125, 0.14);
}

.plan-visual span:nth-child(1) {
  left: 14%;
  height: 46px;
}

.plan-visual span:nth-child(2) {
  left: 41%;
  height: 72px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(37, 99, 235, 0.58));
}

.plan-visual span:nth-child(3) {
  left: 68%;
  height: 96px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.92), rgba(31, 227, 125, 0.54));
}

.plan-visual i {
  position: absolute;
  left: 11%;
  right: 10%;
  top: 34px;
  height: 46px;
  border-top: 3px solid rgba(31, 227, 125, 0.9);
  border-right: 3px solid rgba(56, 189, 248, 0.62);
  border-radius: 999px 12px 0 0;
  transform: skewY(-10deg);
}

.plan-visual-predictions::before,
.plan-visual-gainers::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(31, 227, 125, 0.36);
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 227, 125, 0.9) 0 4px, transparent 5px),
    conic-gradient(from 220deg, rgba(31, 227, 125, 0.2), rgba(56, 189, 248, 0.4), rgba(245, 158, 11, 0.28), rgba(31, 227, 125, 0.2));
}

.plan-visual-gainers {
  background:
    linear-gradient(rgba(122, 149, 174, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 149, 174, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(8, 18, 26, 0.98), rgba(13, 24, 22, 0.96));
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
}

.pricing-page .btn-primary,
.premium-access-actions a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pricing-page .btn-primary::after,
.premium-access-actions a::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 44%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: unlock-sheen 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes unlock-sheen {
  0%,
  58% {
    left: -65%;
  }
  100% {
    left: 125%;
  }
}

.plan-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.6;
  background: rgba(8, 16, 22, 0.9);
  border: 1px solid rgba(31, 227, 125, 0.14);
}

.why-paid-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(9, 16, 24, 0.64);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.why-paid-panel h2 {
  margin: 0 0 20px;
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  text-align: center;
}

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

.why-paid-grid article {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 12px 8px;
  text-align: center;
}

.market-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.market-header h1 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.market-header p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.market-header-tools {
  display: grid;
  grid-template-columns: minmax(420px, 1.5fr) auto;
  gap: 14px;
  align-items: center;
}

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

.market-header-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 16px;
  background: rgba(31, 227, 125, 0.14);
  border: 1px solid rgba(31, 227, 125, 0.22);
  color: var(--text);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.portfolio-view-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-header-tools button:hover {
  transform: translateY(-2px);
  background: rgba(31, 227, 125, 0.18);
  border-color: rgba(31, 227, 125, 0.34);
}

.market-quick-actions .metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "icon eyebrow"
    "icon title"
    "icon action";
  column-gap: 12px;
  align-content: center;
  min-height: 78px;
  padding: 13px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 227, 125, 0.11), rgba(56, 189, 248, 0.04) 48%, rgba(12, 18, 26, 0.98));
  border: 1px solid rgba(31, 227, 125, 0.18);
  color: #fff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.market-quick-actions .metric-card:hover,
.market-quick-actions .metric-card:focus-visible {
  transform: none;
  border-color: rgba(31, 227, 125, 0.42);
  box-shadow: 0 18px 42px rgba(31, 227, 125, 0.1);
}

.market-quick-actions .metric-card.is-locked-feature {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(31, 227, 125, 0.08) 44%, rgba(12, 18, 26, 0.98));
}

.market-quick-actions .metric-card.is-locked-feature::after {
  display: none;
  content: none;
}

.market-quick-actions .metric-card.is-paid-feature {
  border-color: rgba(31, 227, 125, 0.34);
  box-shadow: 0 18px 42px rgba(31, 227, 125, 0.11);
}

.market-quick-actions .metric-card.is-free-feature {
  border-color: rgba(31, 227, 125, 0.24);
  background:
    linear-gradient(135deg, rgba(31, 227, 125, 0.13), rgba(255, 98, 98, 0.06) 48%, rgba(12, 18, 26, 0.98));
}

.market-quick-actions .metric-card > span:not(.metric-icon) {
  grid-area: eyebrow;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.market-quick-actions .metric-card strong {
  grid-area: title;
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 8px 0 0;
}

.market-quick-actions .metric-card small {
  grid-area: action;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.market-quick-actions .metric-card small.positive {
  color: var(--green);
}

.market-quick-actions .metric-card small.negative {
  color: #ff6262;
}

.metric-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #caffdf;
  background: rgba(31, 227, 125, 0.12);
  border: 1px solid rgba(31, 227, 125, 0.24);
}

.metric-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-icon.loss {
  color: #ffd1d1;
  background: rgba(255, 98, 98, 0.1);
  border-color: rgba(255, 98, 98, 0.22);
}

.metric-icon.portfolio {
  color: #d6e5ff;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.22);
}

.metric-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 227, 125, 0.11);
  color: var(--green);
  font-weight: 700;
}

.market-modal.leaderboard-modal {
  max-width: 900px;
  width: min(100%, 900px);
}

.leaderboard-modal-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.leaderboard-modal-list > div {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 227, 125, 0.08), rgba(45, 115, 255, 0.06));
  border: 1px solid rgba(31, 227, 125, 0.18);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.leaderboard-modal-list > div:hover {
  background: linear-gradient(135deg, rgba(31, 227, 125, 0.14), rgba(45, 115, 255, 0.1));
  border-color: rgba(31, 227, 125, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(31, 227, 125, 0.12);
}

.leaderboard-item,
.prediction-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(80px, auto) minmax(100px, auto);
  align-items: center;
  gap: 12px;
}

.leaderboard-name,
.prediction-item > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
}

.prediction-item > span b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-item > span::before {
  content: attr(data-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(31, 227, 125, 0.14);
  border: 1px solid rgba(31, 227, 125, 0.24);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1fe37d;
  flex: 0 0 auto;
}

.leaderboard-rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--green);
  background: rgba(31, 227, 125, 0.12);
  border: 1px solid rgba(31, 227, 125, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
}

.stock-logo.mini {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.leaderboard-name b {
  color: var(--text);
  font-size: 0.95rem;
}

.leaderboard-item strong,
.prediction-item strong {
  min-width: 0;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-item small,
.prediction-item small {
  min-width: 0;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .market-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.market-search {
  min-width: 320px;
}

.market-chip-row {
  justify-content: flex-end;
}

.market-tabs {
  margin: 14px 0 12px;
}

.market-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 318px);
  gap: 14px;
  align-items: start;
}

.market-nav-panel,
.market-table-board,
.market-side-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 16, 24, 0.98), rgba(6, 12, 18, 0.98));
  border: 1px solid rgba(122, 149, 174, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.market-nav-panel {
  display: grid;
  gap: 18px;
  padding: 16px 0;
  overflow: hidden;
}

.watch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 10px;
  border-bottom: 1px solid rgba(122, 149, 174, 0.12);
}

.watch-header strong,
.sector-links strong {
  font-size: 0.95rem;
}

.watch-header button {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(10, 19, 28, 0.9);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.watch-links,
.sector-links {
  display: grid;
  gap: 4px;
  padding: 0 16px;
}

.sector-links {
  padding-top: 16px;
  border-top: 1px solid rgba(122, 149, 174, 0.12);
}

.watch-links a,
.sector-links a {
  display: flex;
  align-items: center;
  min-height: auto;
  padding: 7px 0 7px 14px;
  border-radius: 0;
  border: 0;
  color: var(--muted-strong);
  font-size: 0.84rem;
  background: transparent;
  box-shadow: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.watch-links a.is-active,
.watch-links a:hover,
.sector-links a:hover {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.watch-links a.is-active {
  color: var(--green);
  padding-left: 14px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.market-center-panel {
  overflow-x: auto;
}

.market-table-board {
  min-width: 940px;
  padding: 0 10px 12px;
}

.market-table-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.22fr) 0.58fr 0.52fr 0.58fr 0.56fr 0.74fr 0.5fr minmax(170px, 0.96fr);
  gap: 8px;
  align-items: center;
  padding: 12px 4px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(122, 149, 174, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.market-table-row:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.market-table-head {
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stock-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.stock-cell strong {
  display: block;
  font-size: 0.88rem;
}

.stock-cell small {
  color: var(--muted);
  font-size: 0.68rem;
}

.stock-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.stock-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(122, 149, 174, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.stock-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.stock-logo img[src^="data:image/svg+xml"] {
  padding: 0;
}

.stock-badge.amber { background: #d7a647; }
.stock-badge.blue { background: #2682ff; }
.stock-badge.red { background: #ec4f4f; }
.stock-badge.sky { background: #4ea7ff; }
.stock-badge.orange { background: #f08e2f; }
.stock-badge.indigo { background: #5f6eff; }
.stock-badge.violet { background: #6c54ff; }
.stock-badge.pink { background: #ff4e7f; }
.stock-badge.slate { background: #65758a; }
.stock-badge.navy { background: #2e67d2; }

.action-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
}

.trade-btn,
.sell-btn,
.view-btn,
.page-select,
.pagination-row button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.trade-btn {
  color: #04110a;
  background: linear-gradient(135deg, #27ea87 0%, #10bf5d 100%);
}

.sell-btn {
  color: #ffcdcd;
  background: rgba(255, 98, 98, 0.1);
  border-color: rgba(255, 98, 98, 0.22);
}

.view-btn,
.page-select,
.pagination-row button {
  color: var(--text);
  background: rgba(10, 18, 27, 0.9);
}

.mini-spark {
  width: 100%;
  height: 26px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.7);
  border: 1px solid rgba(122, 149, 174, 0.1);
}

.mini-spark path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.negative-spark path {
  stroke: #ff6262;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 6px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.market-table-board.is-option-chain {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.market-table-board.is-option-chain .table-footer {
  display: none;
}

.option-chain-shell {
  display: grid;
  gap: 0;
  color: var(--muted-strong);
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.option-chain-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(122, 149, 174, 0.14);
  background:
    linear-gradient(135deg, rgba(31, 227, 125, 0.08), transparent 34%),
    rgba(7, 14, 21, 0.96);
}

.option-chain-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-chain-title span:not(.metric-icon) {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.option-chain-title strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 1rem;
}

.option-chain-title small {
  display: block;
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 0.76rem;
}

.option-market-strip,
.option-expiry-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-market-strip button,
.option-expiry-strip button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--muted-strong);
  background: rgba(9, 18, 27, 0.88);
  border: 1px solid rgba(122, 149, 174, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
}

.option-market-strip button {
  display: grid;
  gap: 1px;
  min-width: 108px;
  text-align: left;
}

.option-market-strip button strong {
  color: var(--text);
  font-size: 0.8rem;
}

.option-market-strip button.is-active,
.option-expiry-strip button.is-active {
  color: #dffff0;
  background: rgba(31, 227, 125, 0.16);
  border-color: rgba(31, 227, 125, 0.38);
}

.option-chain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  overflow-x: auto;
  min-width: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.option-chain-header,
.option-subhead,
.option-leg,
.option-strike {
  border-bottom: 1px solid rgba(122, 149, 174, 0.11);
}

.option-chain-header {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.option-chain-header.calls {
  color: #bfffd6;
  background: rgba(31, 227, 125, 0.1);
}

.option-chain-header.puts {
  color: #ffd1d1;
  background: rgba(255, 98, 98, 0.1);
}

.option-chain-header.strike,
.option-subhead.strike,
.option-strike {
  border-left: 1px solid rgba(122, 149, 174, 0.11);
  border-right: 1px solid rgba(122, 149, 174, 0.11);
}

.option-subhead,
.option-leg {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  gap: 10px;
  font-size: 0.72rem;
}

.option-subhead {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(4, 10, 15, 0.92);
}

.option-subhead.puts,
.option-leg.puts {
  text-align: right;
}

.option-subhead.strike {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.option-leg {
  min-height: 48px;
  color: #9fb0c3;
}

.option-leg.is-atm-row,
.option-strike.is-atm-row {
  background: rgba(45, 115, 255, 0.12);
}

.option-strike {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--text);
  background: rgba(8, 15, 22, 0.72);
}

.option-strike strong {
  font-size: 0.9rem;
}

.option-strike small {
  margin-top: -7px;
  padding: 2px 6px;
  border-radius: 7px;
  color: #04110a;
  background: var(--green);
  font-size: 0.58rem;
  font-weight: 900;
}

.option-ltp {
  display: grid;
  gap: 3px;
  color: var(--green);
  font-weight: 900;
}

.option-ltp.negative {
  color: #ff7777;
}

.option-ltp small {
  display: flex;
  gap: 5px;
}

.option-leg.puts .option-ltp small {
  justify-content: flex-end;
}

.option-side-btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 900;
  border: 1px solid transparent;
}

.option-side-btn.buy {
  color: #03130a;
  background: var(--green);
}

.option-side-btn.sell {
  color: #ffd1d1;
  background: rgba(255, 98, 98, 0.12);
  border-color: rgba(255, 98, 98, 0.28);
}

.option-chain-foot {
  margin: 0;
  padding: 12px 18px 16px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination-row button.is-active {
  color: var(--text);
  background: rgba(31, 227, 125, 0.14);
  border-color: rgba(31, 227, 125, 0.24);
}

.market-side-stack {
  display: grid;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.market-side-card {
  padding: 12px;
}

.premium-access-card.is-fully-unlocked {
  border-color: rgba(31, 227, 125, 0.28);
  box-shadow: 0 18px 40px rgba(31, 227, 125, 0.08);
}

.indices-list,
.mini-leaderboard,
.news-mini-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  max-height: 280px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

.indices-list div,
.mini-leaderboard div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto) minmax(56px, auto);
  gap: 10px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
    scroll-snap-align: start;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
}

.indices-list strong,
.mini-leaderboard strong {
  min-width: 0;
  justify-self: end;
  overflow: hidden;
  font-size: 0.8rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.indices-list small,
.mini-leaderboard small {
  min-width: 0;
  justify-self: end;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-list-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.index-list-name b {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-list-name .stock-logo.mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.market-news-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.market-news-movers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-news-movers button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 8px;
  border-radius: 10px;
  background: rgba(31, 227, 125, 0.08);
  border: 1px solid rgba(31, 227, 125, 0.14);
}

.market-news-movers span,
.market-news-movers strong {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-news-item {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(8, 15, 22, 0.82);
  border: 1px solid rgba(122, 149, 174, 0.12);
  transition: background 0.18s ease, transform 0.18s ease;
}

.market-news-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.market-news-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-news-item span,
.market-news-empty {
  color: var(--muted);
  font-size: 0.7rem;
}

.market-news-empty {
  padding: 12px;
  border-radius: 10px;
  background: rgba(8, 15, 22, 0.82);
  border: 1px solid rgba(122, 149, 174, 0.12);
}

.home-news-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.home-news-card {
  padding: 18px;
}

.home-news-card .side-card-head small {
  color: var(--muted);
}

.home-news-movers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.home-news-movers button {
  text-align: left;
  cursor: pointer;
}

.home-news-list {
  margin-top: 14px;
}

.reviews-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.review-summary-card,
.review-form-card,
.review-card {
  border-radius: 20px;
  background: rgba(9, 16, 24, 0.76);
  border: 1px solid rgba(122, 149, 174, 0.14);
  backdrop-filter: blur(10px);
}

.review-summary-card,
.review-form-card {
  padding: 20px;
}

.review-summary-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(31, 227, 125, 0.14), transparent 38%),
    rgba(9, 16, 24, 0.84);
}

.review-summary-kicker,
.review-form label span,
.review-meta,
.review-status {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.review-summary-card > strong {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.review-summary-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.review-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-summary-stats div,
.review-rating-badge,
.review-card blockquote {
  border-radius: 16px;
  background: rgba(8, 15, 22, 0.84);
  border: 1px solid rgba(122, 149, 174, 0.12);
}

.review-summary-stats div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.review-summary-stats strong {
  font-size: 1rem;
}

.review-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.review-form label {
  display: grid;
  gap: 8px;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  border-radius: 14px;
  background: rgba(8, 15, 22, 0.9);
  border: 1px solid rgba(122, 149, 174, 0.16);
}

.review-form textarea {
  min-height: 118px;
  resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: rgba(31, 227, 125, 0.34);
  box-shadow: 0 0 0 3px rgba(31, 227, 125, 0.08);
}

.review-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-status {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.6;
}

.review-status.is-error {
  color: #ff9c9c;
}

.review-status.is-success {
  color: var(--green);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.review-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card-head strong {
  font-size: 0.96rem;
}

.review-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  padding: 0 12px;
  color: #dcffe9;
  font-size: 0.82rem;
  font-weight: 800;
}

.review-card h3 {
  margin: 0;
  font-size: 1rem;
}

.review-card blockquote {
  margin: 0;
  padding: 14px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  letter-spacing: 0;
}

.review-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  justify-items: center;
}

.review-card-empty p {
  margin: 0;
  color: var(--muted-strong);
}

.review-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.review-pagination button,
.review-pagination-ellipsis {
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.review-pagination button {
  color: var(--muted-strong);
  background: rgba(8, 15, 22, 0.86);
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.review-pagination button.is-active {
  color: #04110a;
  background: linear-gradient(135deg, #27ea87 0%, #10bf5d 100%);
  border-color: rgba(31, 227, 125, 0.3);
}

.review-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.review-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.mini-paywall-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 227, 125, 0.1), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(31, 227, 125, 0.18);
}

.mini-paywall-card strong {
  font-size: 0.96rem;
}

.mini-paywall-card small {
  color: var(--muted-strong);
  line-height: 1.6;
}

.premium-empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 28px 18px;
  text-align: center;
}

.premium-access-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.premium-access-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 15, 22, 0.84);
  border: 1px solid rgba(122, 149, 174, 0.12);
}

.premium-access-list span {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.premium-access-list strong {
  font-size: 0.8rem;
}

.premium-access-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.premium-access-actions a {
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.premium-access-actions a.is-disabled {
  pointer-events: none;
  color: #06120b;
  background: linear-gradient(135deg, #b9ffd3, #1fe37d);
  border-color: rgba(31, 227, 125, 0.42);
  opacity: 1;
}

.dual-toggle {
  margin-bottom: 14px;
}

.side-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.heatmap-grid .mini-paywall-card {
  grid-column: 1 / -1;
}

.heatmap-grid span {
  display: block;
  padding: 14px 10px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(122, 149, 174, 0.14);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.6;
}

.heat-positive {
  color: #a5f5c5;
  background: rgba(31, 227, 125, 0.12);
}

.heat-negative {
  color: #ff8f8f;
  background: rgba(255, 98, 98, 0.12);
}

.news-mini-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-news-thumb {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.news-mini-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.news-mini-list small {
  color: var(--muted);
  font-size: 0.74rem;
}

.news-page {
  padding: 30px 28px;
}

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.news-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 320px;
  gap: 18px;
}

.featured-brief,
.news-rail-card,
.news-card-pro {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 16, 24, 0.95), rgba(6, 12, 18, 0.95));
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.featured-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 18px;
  padding: 18px;
}

.featured-thumb {
  height: 100%;
  min-height: 280px;
  margin-bottom: 0;
  background:
    radial-gradient(circle at 70% 24%, rgba(31, 227, 125, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(10, 18, 25, 1), rgba(5, 10, 16, 1));
}

.featured-copy {
  display: grid;
  align-content: center;
}

.featured-copy h1 {
  margin: 8px 0 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.featured-copy p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.insight-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.insight-card {
  align-content: start;
}

.featured-thumb::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(56, 79, 98, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 79, 98, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
}

.featured-thumb::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  height: 120px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(31, 227, 125, 0.18), rgba(5, 12, 18, 0)),
    linear-gradient(180deg, rgba(16, 28, 36, 0.98), rgba(8, 16, 22, 0.94));
  border: 1px solid rgba(122, 149, 174, 0.16);
  box-shadow:
    0 -110px 0 -62px rgba(12, 22, 30, 0.94),
    0 -184px 0 -120px rgba(10, 18, 24, 0.92);
}

.news-rail {
  display: grid;
  gap: 18px;
}

.news-rail-card {
  padding: 20px;
}

.pulse-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.pulse-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(122, 149, 174, 0.12);
}

.pulse-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pulse-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pulse-list small {
  color: var(--muted);
  font-size: 0.76rem;
}

.news-chip-row {
  margin: 20px 0 18px;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card-pro {
  padding: 16px;
}

.news-card-pro .blog-thumb {
  height: 170px;
}

.news-card-pro h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.4;
}

.news-card-pro p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

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

  .header-insights {
    display: none;
  }

  .about-story-board {
    grid-template-columns: 1fr 1fr;
  }

  .about-story-board .story-panel-main {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgba(122, 149, 174, 0.12);
  }

  .market-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .market-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .pricing-spotlight-grid,
  .market-side-stack {
    grid-template-columns: 1fr;
  }

  .insight-hub-grid {
    grid-template-columns: 1fr;
  }

  .news-feature-layout,
  .news-card-grid {
    grid-template-columns: 1fr;
  }

  .market-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-header-tools {
    grid-template-columns: 1fr;
  }

  .market-search {
    min-width: 0;
  }

  .market-shell {
    grid-template-columns: 1fr;
  }

  .option-chain-hero {
    grid-template-columns: 1fr;
  }

  .option-market-strip,
  .option-expiry-strip {
    flex-wrap: wrap;
  }

  .market-side-stack {
    position: static;
  }

  .portfolio-modal-grid,
  .chart-modal-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .feature-page,
  .pricing-page,
  .market-page,
  .news-page {
    padding: 18px;
  }

  .pricing-page {
    padding-top: 58px;
  }

  .feature-page-grid,
  .why-paid-grid {
    grid-template-columns: 1fr;
  }

  .about-story-board {
    grid-template-columns: 1fr;
  }

  .about-story-board > article,
  .about-story-board .story-panel-main {
    border-right: 0;
    border-bottom: 1px solid rgba(122, 149, 174, 0.12);
  }

  .about-story-board > article:last-child {
    border-bottom: 0;
  }

  .market-side-stack {
    grid-template-columns: 1fr;
  }

  .news-head,
  .featured-brief {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .centered-heading h1 {
    font-size: 2.42rem;
    line-height: 1.12;
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
    overflow-wrap: anywhere;
  }

  .centered-heading p,
  .study-banner span,
  .price-card p {
    overflow-wrap: anywhere;
  }

  .pricing-page .price-card {
    padding: 18px;
  }

  .price-card strong {
    font-size: 1.72rem;
  }

  .table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .page-close-btn {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .plan-visual {
    min-height: 124px;
  }

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

  .market-quick-actions .metric-card {
    min-height: 84px;
    width: 100%;
    min-width: 0;
    padding: 12px;
  }

  .market-quick-actions .metric-card strong {
    font-size: 1rem;
  }

  .market-quick-actions .metric-card small {
    font-size: 0.78rem;
  }

  .market-quick-actions .metric-card strong,
  .market-quick-actions .metric-card small {
    overflow-wrap: anywhere;
  }

  .portfolio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portfolio-metrics span {
    font-size: 0.68rem;
  }

  .portfolio-metrics strong {
    font-size: 0.92rem;
  }

  .indices-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .indices-list div {
    min-width: 0;
  }

  .page-markets .site-shell {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .page-markets .market-page,
  .page-markets .market-header,
  .page-markets .market-header > div,
  .page-markets .market-quick-actions,
  .page-markets .market-shell,
  .page-markets .market-center-panel {
    min-width: 0;
    max-width: 100%;
  }

  .market-header p {
    width: min(100%, 310px);
    overflow-wrap: anywhere;
  }

  .market-header-tools {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .market-search {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    gap: 10px;
    padding: 0 14px;
    border-radius: 18px;
  }

  .market-search svg {
    width: 20px;
    height: 20px;
  }

  .market-search input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .market-chip-row {
    width: 100%;
    justify-content: stretch;
  }

  .market-chip-row .portfolio-view-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .market-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .market-tabs button {
    min-width: 0;
    width: 100%;
    padding: 10px 8px;
    white-space: normal;
    line-height: 1.2;
  }

  .market-table-board.is-option-chain,
  .option-chain-grid,
  .option-chain-shell,
  .option-chain-hero,
  .option-market-strip,
  .option-expiry-strip,
  .option-market-strip button,
  .option-expiry-strip button {
    min-width: 0;
  }

  .option-chain-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .option-market-strip,
  .option-expiry-strip {
    flex-wrap: wrap;
    gap: 8px;
  }

  .option-chain-grid {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .market-side-card {
    min-width: 0;
  }

  .indices-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .page-markets .market-table-row:nth-child(n+5) {
    display: none;
  }

  .page-markets .market-table-row > span {
    font-size: 0.82rem;
  }

  .portfolio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portfolio-metrics div {
    padding: 10px;
  }

  .indices-list div {
    padding: 10px;
  }

  .indices-list span,
  .indices-list strong,
  .indices-list small {
    font-size: 0.78rem;
  }

  .market-side-card .side-card-head {
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 6px;
  }

  .market-side-card .side-card-head strong,
  .market-side-card .side-card-head small,
  .market-side-card .side-card-head button,
  .market-side-card .side-card-head a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .indices-list div {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 5px;
  }

  .indices-list span,
  .indices-list strong,
  .indices-list small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .indices-list strong,
  .indices-list small {
    justify-self: start;
    text-align: left;
  }

  .indices-list small {
    grid-column: auto;
  }

  .mini-leaderboard div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .leaderboard-item,
  .prediction-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .leaderboard-name,
  .prediction-item > span {
    min-width: 0;
    width: 100%;
  }

  .mini-leaderboard span,
  .mini-leaderboard strong,
  .mini-leaderboard small,
  .leaderboard-item strong,
  .leaderboard-item small,
  .portfolio-metrics strong,
  .muted-line {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .market-center-panel {
    overflow-x: visible;
  }

  .market-table-board {
    min-width: 0;
    padding: 10px;
  }

  .market-table-head {
    display: none;
  }

  .market-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid rgba(122, 149, 174, 0.14);
    border-radius: 8px;
    background: rgba(9, 16, 24, 0.78);
  }

  .market-table-row:last-child {
    margin-bottom: 0;
  }

  .market-table-row .stock-cell,
  .market-table-row .action-cell {
    grid-column: 1 / -1;
  }

  .market-table-row > span {
    display: grid;
    gap: 3px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
  }

  .market-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .market-table-row .mini-spark {
    display: none;
  }

  .market-table-row .action-cell {
    flex-wrap: wrap;
  }

  .market-table-row .trade-btn,
  .market-table-row .sell-btn,
  .market-table-row .view-btn {
    flex: 1 1 88px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(calc(100% - 16px), 374px);
    margin-right: auto;
    margin-left: 8px;
  }

  .pricing-page .centered-heading,
  .pricing-page .study-banner,
  .pricing-page .pricing-spotlight-grid,
  .pricing-page .why-paid-panel {
    max-width: 340px;
    margin-right: auto;
    margin-left: 0;
  }

  .pricing-page .centered-heading h1 {
    max-width: 280px;
  }

  .pricing-page .page-close-btn {
    right: auto;
    left: min(calc(100% - 50px), 340px);
  }

  .market-tabs {
    grid-template-columns: 1fr;
  }

  .page-markets .site-shell {
    width: calc(100vw - 24px);
    margin-right: 12px;
    margin-left: 12px;
  }
}

.market-table-body {
  display: block;
}

.market-empty-state {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 26px;
  color: var(--muted-strong);
  text-align: center;
  font-size: 0.92rem;
}

.stock-badge.green { background: #12b981; }

.action-cell {
  align-items: center;
  flex-wrap: nowrap;
}

.trade-btn,
.sell-btn,
.view-btn {
  white-space: nowrap;
}

.index-action-note {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(10, 18, 27, 0.58);
  border: 1px solid rgba(122, 149, 174, 0.12);
  font-size: 0.74rem;
  font-weight: 800;
}

.sell-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: #ffb4b4;
  background: rgba(255, 98, 98, 0.11);
  border: 1px solid rgba(255, 98, 98, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-locked {
  color: var(--muted);
  font-weight: 800;
}

.mini-spark.price-hidden-spark path {
  stroke: rgba(122, 149, 174, 0.24);
}

.side-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.side-card-actions button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--green);
  background: rgba(31, 227, 125, 0.08);
  border: 1px solid rgba(31, 227, 125, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
}

.side-card-actions button[data-reset-portfolio] {
  color: #ffb4b4;
  background: rgba(255, 98, 98, 0.09);
  border-color: rgba(255, 98, 98, 0.2);
}

.side-card-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.side-card-head button,
.side-link {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.portfolio-card {
  border-color: rgba(31, 227, 125, 0.22);
}

#portfolio-updated {
  display: block;
  margin-top: 6px;
}

.portfolio-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.portfolio-metrics div,
.trade-quote-row,
.trade-estimate,
.holding-mini-row {
  border-radius: 14px;
  background: rgba(8, 15, 22, 0.86);
  border: 1px solid rgba(122, 149, 174, 0.12);
}

.portfolio-metrics div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.portfolio-metrics span,
.holding-mini-row span,
.trade-quote-row span,
.trade-estimate span,
.modal-kicker,
.muted-line {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.portfolio-metrics strong {
  font-size: 0.94rem;
}

.portfolio-holdings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.holding-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.holding-mini-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.holding-mini-row strong,
.holding-mini-row span {
  display: block;
}

.holding-mini-row strong {
  font-size: 0.8rem;
}

.holding-mini-row button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  color: #ffb4b4;
  background: rgba(255, 98, 98, 0.1);
  border: 1px solid rgba(255, 98, 98, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
}

.heatmap-grid button {
  display: block;
  min-height: 58px;
  padding: 12px 10px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(122, 149, 174, 0.14);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.6;
}

.market-news-icon {
  position: relative;
  background:
    linear-gradient(rgba(31, 227, 125, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 227, 125, 0.16) 1px, transparent 1px),
    rgba(8, 18, 25, 0.98);
  background-size: 12px 12px;
}

.market-news-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 12px;
  height: 18px;
  border-radius: 999px 999px 4px 4px;
  border-top: 3px solid var(--green);
  transform: skewX(-18deg);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
}

.modal-layer[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.market-modal {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 16, 24, 0.99), rgba(4, 10, 15, 1));
  border: 1px solid rgba(122, 149, 174, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.chart-modal {
  width: min(1480px, calc(100vw - 40px));
  padding: 22px;
  max-height: calc(100dvh - 44px);
  height: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.portfolio-modal {
  width: min(1520px, calc(100vw - 36px));
  padding: 22px;
}

.trade-modal {
  width: min(460px, 100%);
}

.modal-head,
.chart-summary-row,
.modal-toolbar,
.trade-quote-row,
.trade-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-head {
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 3px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 4;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(10, 18, 27, 0.9);
  border: 1px solid rgba(122, 149, 174, 0.16);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #ffffff;
  border-color: rgba(31, 227, 125, 0.34);
  background: rgba(14, 28, 20, 0.98);
}

.chart-summary-row {
  padding: 12px 0 16px;
}

.chart-summary-row strong {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.chart-summary-row small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.modal-toolbar {
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.chart-type-toggle,
.range-toggle,
.trade-side-toggle {
  margin: 0;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: clamp(420px, 48dvh, 560px);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(122, 149, 174, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 149, 174, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #08111a, #061019 78%, #040b11);
  background-size: 56px 56px, 56px 56px, auto;
  border: 1px solid rgba(76, 106, 130, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015), 0 24px 70px rgba(0, 0, 0, 0.24);
}

#stock-chart-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(6, 13, 19, 0.96);
  border: 1px solid rgba(31, 227, 125, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span,
.chart-tooltip small {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.chart-tooltip span,
.chart-tooltip small {
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.55;
}

.modal-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.6;
}

.modal-status.is-error {
  color: #ff8f8f;
}

.modal-status.is-success {
  color: var(--green);
}

.chart-modal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) 320px;
  gap: 18px;
  align-items: start;
  height: auto;
  min-height: 0;
}

.chart-stage-panel,
.chart-side-card,
.portfolio-sheet,
.portfolio-hero-grid article {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 15, 22, 0.98), rgba(5, 11, 17, 0.98));
  border: 1px solid rgba(122, 149, 174, 0.14);
}

.chart-stage-panel {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(31, 227, 125, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(8, 15, 22, 0.99), rgba(5, 11, 17, 0.99));
  min-height: 0;
  overflow: visible;
}

.chart-summary-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-bottom: 16px;
}

.chart-price-stack,
.chart-reading-grid div,
.chart-mini-metrics div,
.portfolio-summary-grid article,
.portfolio-trade-row,
.portfolio-holding-row,
.trade-contract-note {
  border-radius: 8px;
  background: rgba(8, 15, 22, 0.82);
  border: 1px solid rgba(122, 149, 174, 0.12);
}

.chart-price-stack {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  border-color: rgba(31, 227, 125, 0.16);
}

.chart-price-stack strong {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.chart-price-stack #chart-change {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(31, 227, 125, 0.12);
}

.chart-price-stack #chart-change.negative {
  color: #ff9c9c;
  background: rgba(255, 98, 98, 0.1);
}

.chart-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chart-reading-grid div,
.chart-mini-metrics div,
.portfolio-summary-grid article {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
}

.chart-reading-grid strong,
.chart-mini-metrics strong,
.portfolio-summary-grid strong {
  font-size: 0.94rem;
}

.chart-side-panel,
.portfolio-rail {
  display: grid;
  gap: 16px;
}

.chart-side-panel {
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.chart-side-card,
.portfolio-sheet {
  padding: 18px;
}

.chart-settings-card {
  border-color: rgba(31, 227, 125, 0.18);
}

.chart-side-card strong {
  display: block;
  margin-top: 4px;
}

.chart-side-card small,
.chart-side-copy {
  color: var(--muted-strong);
  line-height: 1.7;
}

.chart-side-copy {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.chart-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.chart-quick-actions .trade-btn,
.chart-quick-actions .sell-btn {
  width: 100%;
  min-height: 44px;
}

.chart-quick-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.chart-mini-metrics {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.portfolio-hero-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.portfolio-hero-grid strong {
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  letter-spacing: -0.04em;
}

.portfolio-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 360px;
  gap: 18px;
  align-items: start;
}

.portfolio-table-head,
.portfolio-holding-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) 0.62fr 0.68fr 0.68fr 0.72fr 0.86fr minmax(128px, 0.78fr);
  gap: 12px;
  align-items: center;
}

.portfolio-table-head {
  padding: 14px 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(122, 149, 174, 0.12);
}

.portfolio-holdings-table,
.portfolio-trade-log,
.portfolio-summary-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.trade-search-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.trade-search-field span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trade-search-field input,
.trade-history-search input {
  width: 100%;
  min-width: 0;
  color: var(--text);
}

.trade-search-field input {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(8, 15, 22, 0.92);
  border: 1px solid rgba(122, 149, 174, 0.16);
}

.trade-history-modal {
  width: min(860px, calc(100vw - 36px));
}

.trade-history-search {
  min-height: 56px;
  margin: 16px 0 4px;
}

.trade-history-list {
  max-height: min(64dvh, 620px);
  overflow-y: auto;
  padding-right: 4px;
}

.trade-history-page {
  display: grid;
  gap: 18px;
}

.trade-history-tools {
  grid-template-columns: minmax(420px, 1fr) auto;
}

.trade-history-tools .portfolio-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 20px;
  color: var(--text);
  background: rgba(31, 227, 125, 0.12);
  border: 1px solid rgba(31, 227, 125, 0.22);
  font-weight: 800;
  white-space: nowrap;
}

.trade-history-tools .portfolio-view-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trade-history-page-sheet {
  min-height: 420px;
}

.trade-history-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-holding-row {
  padding: 12px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.portfolio-holding-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.portfolio-instrument {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portfolio-instrument strong,
.portfolio-trade-row strong {
  font-size: 0.86rem;
}

.portfolio-instrument span,
.portfolio-holding-row small,
.portfolio-trade-row small {
  color: var(--muted);
  font-size: 0.74rem;
}

.portfolio-holding-row .action-cell {
  justify-content: flex-end;
}

.portfolio-holding-row .action-cell button {
  min-height: 32px;
}

.portfolio-action-cell {
  display: flex;
  gap: 8px;
}

.portfolio-action-cell .trade-btn,
.portfolio-action-cell .sell-btn {
  flex: 1 1 56px;
  min-width: 56px;
  padding: 0 12px;
}

.portfolio-trade-row {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.portfolio-trade-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.trade-badge.buy {
  color: #04110a;
  background: linear-gradient(135deg, #27ea87 0%, #10bf5d 100%);
}

.trade-badge.sell {
  color: #ffb4b4;
  background: rgba(255, 98, 98, 0.12);
  border: 1px solid rgba(255, 98, 98, 0.2);
}

.trade-contract-note {
  margin: 10px 0 0;
  padding: 12px 14px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.65;
}

.trade-quote-row,
.trade-estimate {
  padding: 13px 14px;
  margin-bottom: 12px;
}

.trade-side-toggle {
  margin-bottom: 12px;
}

.trade-input-label {
  display: grid;
  gap: 8px;
  color: rgba(244, 248, 252, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
}

.trade-input-label input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(8, 15, 22, 0.92);
  border: 1px solid rgba(122, 149, 174, 0.16);
}

.trade-estimate {
  margin-top: 12px;
}

.trade-confirm-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border-radius: 13px;
  color: #04110a;
  background: linear-gradient(135deg, #27ea87 0%, #10bf5d 100%);
  font-size: 0.92rem;
  font-weight: 800;
}

.trade-confirm-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.market-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border-radius: 14px;
  color: #c8f9da;
  background: rgba(8, 28, 18, 0.96);
  border: 1px solid rgba(31, 227, 125, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  font-weight: 700;
}

.market-toast.is-error {
  color: #ffd1d1;
  background: rgba(42, 12, 16, 0.96);
  border-color: rgba(255, 98, 98, 0.24);
}

@media (max-width: 720px) {
  .action-cell {
    gap: 6px;
  }

  .trade-btn,
  .sell-btn,
  .view-btn {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .modal-layer {
    padding: 10px;
  }

  .market-modal {
    padding: 16px;
    border-radius: 18px;
  }

  .chart-modal,
  .portfolio-modal {
    width: 100%;
  }

  .chart-modal-shell,
  .portfolio-modal-grid,
  .chart-summary-hero {
    grid-template-columns: 1fr;
  }

  .modal-toolbar,
  .chart-summary-row {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-summary-row small {
    margin-left: 0;
  }

  .chart-canvas-wrap {
    height: 320px;
  }

  .holding-mini-row {
    grid-template-columns: 1fr;
  }

  .chart-reading-grid,
  .portfolio-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-table-head {
    display: none;
  }

  .portfolio-holding-row {
    grid-template-columns: 1fr;
  }

  .portfolio-holding-row .action-cell {
    justify-content: flex-start;
  }

  .portfolio-action-cell {
    width: 100%;
  }

  .portfolio-holdings-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portfolio-holdings-table > .market-empty-state {
    grid-column: 1 / -1;
  }

  .portfolio-holding-row.is-mobile-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .portfolio-holding-row.is-mobile-card .portfolio-instrument {
    gap: 4px;
  }

  .portfolio-holding-row.is-mobile-card .portfolio-instrument strong {
    font-size: 0.82rem;
  }

  .portfolio-holding-row.is-mobile-card .portfolio-instrument span {
    font-size: 0.64rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .portfolio-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .portfolio-mobile-metrics div {
    display: grid;
    gap: 4px;
    padding: 8px 9px;
    border-radius: 12px;
    background: rgba(10, 18, 27, 0.8);
    border: 1px solid rgba(122, 149, 174, 0.12);
  }

  .portfolio-mobile-metrics div.is-span-2 {
    grid-column: 1 / -1;
  }

  .portfolio-mobile-metrics small {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .portfolio-mobile-metrics strong {
    font-size: 0.74rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .portfolio-holding-row.is-mobile-card .portfolio-action-cell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .portfolio-holding-row.is-mobile-card .portfolio-action-cell .trade-btn,
  .portfolio-holding-row.is-mobile-card .portfolio-action-cell .sell-btn {
    min-width: 0;
    min-height: 34px;
  }

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

@media (max-width: 1200px) and (min-width: 981px) {
  .page-markets .market-shell {
    grid-template-columns: 1fr;
  }

  .page-markets .market-side-stack {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
}

/* Markets responsive hardening */
.page-markets .site-shell {
  width: min(1560px, calc(100vw - 28px));
}

.market-page,
.market-header,
.market-quick-actions,
.market-shell,
.market-center-panel,
.market-side-stack {
  min-width: 0;
}

.market-shell {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 18px;
}

.market-center-panel {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.market-table-board {
  width: max(100%, 900px);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  min-width: 900px;
}

.market-table-row {
  grid-template-columns:
    minmax(188px, 1.3fr)
    minmax(78px, 0.55fr)
    minmax(72px, 0.5fr)
    minmax(78px, 0.54fr)
    minmax(76px, 0.52fr)
    minmax(96px, 0.72fr)
    minmax(84px, 0.48fr)
    minmax(156px, 0.9fr);
}

.portfolio-card .side-card-head {
  align-items: flex-start;
  flex-direction: column;
}

.portfolio-card .side-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.portfolio-card .side-card-actions button {
  width: 100%;
  min-width: 0;
}

.portfolio-metrics {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.portfolio-metrics div,
.portfolio-metrics strong,
.holding-mini-row,
.holding-mini-row > div,
.holding-mini-row strong,
.holding-mini-row span {
  min-width: 0;
}

.holding-mini-row {
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
}

.holding-mini-row > div:last-child {
  text-align: right;
}

.holding-mini-row strong,
.holding-mini-row span {
  overflow-wrap: anywhere;
}

.portfolio-holding-row > span,
.portfolio-instrument,
.portfolio-instrument strong,
.portfolio-instrument span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1480px) and (min-width: 1201px) {
  .page-markets .market-shell {
    grid-template-columns: 1fr;
  }

  .page-markets .market-side-stack {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .page-markets .portfolio-card {
    grid-column: 1 / -1;
  }

  .page-markets .portfolio-card .side-card-head {
    align-items: center;
    flex-direction: row;
  }

  .page-markets .portfolio-card .side-card-actions {
    width: auto;
    min-width: 260px;
  }

  .page-markets .portfolio-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-markets .portfolio-holdings {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 980px) {
  .page-markets .site-shell {
    width: min(100%, calc(100vw - 20px));
  }

  .market-shell,
  .market-side-stack,
  .portfolio-modal-grid,
  .chart-modal-shell {
    grid-template-columns: 1fr;
  }

  .market-side-stack {
    position: static;
  }

  .market-table-board {
    width: max(100%, 880px);
    min-width: 880px;
  }
}

@media (max-width: 720px) {
  .page-markets.is-mobile-searching .market-quick-actions,
  .page-markets.is-mobile-searching .market-tabs,
  .page-markets.is-mobile-searching .market-side-stack {
    display: none;
  }

  .page-markets.is-mobile-focused-tab .market-quick-actions,
  .page-markets .market-page.is-mobile-focused-tab .market-quick-actions {
    display: none;
  }

  .page-markets.is-mobile-focused-tab .market-search,
  .page-markets .market-page.is-mobile-focused-tab .market-search {
    display: none;
  }

  .page-markets.is-mobile-focused-tab .market-header-tools,
  .page-markets .market-page.is-mobile-focused-tab .market-header-tools {
    grid-template-columns: 1fr;
  }

  .page-markets.is-mobile-focused-tab .market-side-stack,
  .page-markets .market-page.is-mobile-focused-tab .market-side-stack {
    display: none;
  }

  .page-markets .site-shell {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin-right: 10px;
    margin-left: 10px;
  }

  .page-markets .market-page {
    padding: 14px;
  }

  .market-center-panel {
    overflow-x: visible;
  }

  .market-table-board {
    width: 100%;
    min-width: 0;
    padding: 10px;
  }

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

  .portfolio-card .side-card-head,
  .page-markets .portfolio-card .side-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .portfolio-card .side-card-actions,
  .page-markets .portfolio-card .side-card-actions {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .page-markets .portfolio-holdings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .holding-mini-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 9px;
  }

  .holding-mini-row > div:last-child {
    text-align: left;
  }

  .market-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .market-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .portfolio-metrics,
  .page-markets .portfolio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .portfolio-metrics div {
    padding: 10px;
  }

  .portfolio-metrics span {
    font-size: 0.72rem;
  }

  .portfolio-metrics strong {
    font-size: 0.92rem;
  }

  .holding-mini-row {
    grid-template-columns: 1fr;
  }

  .holding-mini-row > div:last-child {
    text-align: left;
  }
}

/* Mobile overflow hardening */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin-right: 8px;
    margin-left: 8px;
    overflow: hidden;
  }

  .site-header,
  .page-stack,
  .panel,
  .global-market-strip,
  .home-hero,
  .hero-copy,
  .hero-points,
  .market-page,
  .market-header,
  .market-header-tools,
  .market-shell,
  .market-side-stack {
    min-width: 0;
    max-width: 100%;
  }

  .page-home .home-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .page-home .hero-copy {
    width: 100%;
  }

  .page-home .hero-visual {
    display: none;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    line-height: 1.05;
  }

  .page-home .hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .page-home .hero-point {
    gap: 8px;
    min-width: 0;
  }

  .page-home .hero-point .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .page-home .hero-point .icon-box svg {
    width: 15px;
    height: 15px;
  }

  .page-home .hero-point strong {
    margin-bottom: 4px;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .page-home .hero-point > div span {
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .global-market-strip {
    margin: 8px 0 14px;
    padding: 8px;
  }

  .global-ticker-card {
    grid-template-columns: 30px minmax(0, 1fr);
    min-width: 154px;
    padding: 9px 10px;
  }

  .global-ticker-icon {
    width: 30px;
    height: 30px;
  }

  .global-ticker-change {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .home-news-movers,
  .market-news-movers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .market-news-movers button,
  .home-news-movers button {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .market-news-item strong {
    font-size: 0.74rem;
  }

  .market-news-item span,
  .market-news-empty {
    font-size: 0.65rem;
  }

  .home-news-card {
    padding: 14px;
  }

  .home-news-grid {
    gap: 14px;
  }

  .site-shell,
  .page-markets .site-shell {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin-right: 8px;
    margin-left: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 1.12rem;
  }

  .brand-copy small {
    display: none;
  }
}

/* Mobile compact polish */
@media (max-width: 720px) {
  .site-shell,
  .page-markets .site-shell {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 18px;
  }

  .page-stack {
    gap: 14px;
    margin-top: 6px;
  }

  .panel {
    padding: 16px;
    border-radius: 22px;
  }

  .site-header {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-copy strong,
  .brand-extended .brand-copy strong {
    font-size: 1.16rem;
  }

  .brand-copy small {
    font-size: 0.64rem;
    display: block;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .menu-toggle span {
    width: 16px;
  }

  .header-group {
    top: calc(100% + 8px);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(4, 10, 15, 0.985);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 6px 0;
  }

  .header-actions .btn,
  .auth-actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .global-market-strip {
    margin: 6px 0 12px;
    padding: 6px;
    border-radius: 16px;
  }

  .global-market-track {
    gap: 6px;
    padding: 0;
  }

  .global-ticker-card {
    min-width: calc((100% - 18px) / 4);
    padding: 7px 6px;
    gap: 4px;
    grid-template-columns: 22px minmax(0, 1fr);
    border-radius: 11px;
  }

  .global-ticker-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .global-ticker-copy {
    gap: 1px;
  }

  .global-ticker-copy small {
    font-size: 0.42rem;
    letter-spacing: 0.03em;
  }

  .global-ticker-copy strong {
    font-size: 0.72rem;
  }

  .global-ticker-change {
    font-size: 0.54rem;
    line-height: 1.1;
  }

  .page-home .home-hero {
    padding: 16px;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(1.55rem, 8.2vw, 2.05rem);
    letter-spacing: -0.05em;
  }

  .page-home .hero-copy p {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .page-home .hero-points {
    gap: 8px;
  }

  .page-home .hero-point strong {
    font-size: 0.72rem;
  }

  .page-home .hero-point > div span {
    font-size: 0.62rem;
    line-height: 1.3;
  }

  .page-home .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .page-home .hero-actions .btn {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .quick-benefits {
    gap: 10px;
  }

  .benefit-card {
    padding: 12px;
    gap: 8px;
  }

  .benefit-card strong {
    font-size: 0.84rem !important;
  }

  .benefit-card div span {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .page-markets .market-page {
    padding: 12px;
  }

  .market-header h1 {
    margin-bottom: 6px;
    font-size: clamp(1.65rem, 8.4vw, 2.05rem);
  }

  .market-header p {
    width: auto;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .market-search {
    min-height: 48px;
    gap: 8px;
    padding: 0 12px;
    border-radius: 16px;
  }

  .market-search svg {
    width: 18px;
    height: 18px;
  }

  .market-search input {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .market-chip-row .portfolio-view-btn {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .market-quick-actions {
    gap: 8px;
  }

  .market-quick-actions .metric-card {
    min-height: 70px;
    padding: 10px;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 9px;
    border-radius: 18px;
  }

  .metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .metric-icon svg {
    width: 16px;
    height: 16px;
  }

  .market-quick-actions .metric-card > span:not(.metric-icon) {
    font-size: 0.64rem;
  }

  .market-quick-actions .metric-card strong {
    margin-top: 4px;
    font-size: 0.9rem;
  }

  .market-quick-actions .metric-card small {
    font-size: 0.7rem;
  }

  .market-tabs {
    gap: 8px;
  }

  .market-tabs button {
    min-height: 40px;
    padding: 8px 7px;
    border-radius: 999px;
    font-size: 0.8rem;
  }

  .market-table-board {
    padding: 8px;
    border-radius: 18px;
  }

  .market-table-row {
    gap: 10px;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 16px;
  }

  .stock-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .stock-cell {
    gap: 8px;
  }

  .stock-cell strong {
    font-size: 0.82rem;
  }

  .stock-cell small {
    font-size: 0.6rem;
    line-height: 1.35;
  }

  .market-table-row > span {
    font-size: 0.78rem;
  }

  .market-table-row > span::before {
    font-size: 0.58rem;
  }

  .trade-btn,
  .sell-btn,
  .view-btn,
  .page-select,
  .pagination-row button {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.72rem;
  }

  .page-markets .market-side-stack {
    gap: 10px;
  }

  .market-side-card {
    padding: 10px;
    border-radius: 18px;
  }

  .market-side-card .side-card-head strong {
    font-size: 0.9rem;
  }

  .market-side-card .side-card-head small,
  .market-side-card .side-card-head button,
  .market-side-card .side-card-head a {
    font-size: 0.72rem;
  }

  .indices-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    grid-template-columns: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
  }

  .indices-list div {
    min-width: 92px;
    padding: 8px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .index-list-name {
    gap: 6px;
  }

  .index-list-name .stock-logo.mini {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .index-list-name b,
  .indices-list strong,
  .indices-list small {
    font-size: 0.68rem;
  }

  .market-table-board.is-option-chain {
    padding: 0;
  }

  .option-chain-shell {
    overflow-x: visible;
  }

  .option-chain-hero {
    gap: 8px;
    padding: 12px;
  }

  .option-chain-title {
    gap: 8px;
  }

  .option-chain-title span:not(.metric-icon) {
    font-size: 0.62rem;
  }

  .option-chain-title strong {
    font-size: 0.88rem;
  }

  .option-chain-title small {
    font-size: 0.66rem;
  }

  .option-market-strip,
  .option-expiry-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .option-market-strip button,
  .option-expiry-strip button {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .option-market-strip button {
    min-width: 92px;
  }

  .option-market-strip button strong {
    font-size: 0.72rem;
  }

  .option-chain-grid {
    min-width: 760px;
    grid-template-columns: minmax(280px, 1fr) 104px minmax(280px, 1fr);
  }

  .option-chain-header {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.62rem;
  }

  .option-subhead,
  .option-leg {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    min-height: 40px;
    padding: 0 8px;
    gap: 4px;
  }

  .option-subhead {
    font-size: 0.56rem;
  }

  .option-leg {
    font-size: 0.66rem;
  }

  .option-ltp {
    gap: 2px;
    font-size: 0.8rem;
  }

  .option-side-btn {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 0.58rem;
  }

  .option-strike {
    min-height: 40px;
    padding: 0 6px;
  }

  .option-strike strong {
    font-size: 0.78rem;
  }

  .option-strike small {
    margin-top: -4px;
    padding: 1px 4px;
    font-size: 0.5rem;
  }

  .option-chain-foot {
    padding: 10px 12px 14px;
    font-size: 0.64rem;
  }

  .page-features .feature-page {
    padding: 14px;
  }

  .page-features .centered-heading {
    margin-bottom: 14px;
  }

  .page-features .centered-heading h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.15rem);
  }

  .page-features .centered-heading p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .page-features .feature-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-features .feature-page-card {
    gap: 10px;
    padding: 16px 12px 14px;
    border-radius: 18px;
  }

  .page-features .round-icon {
    width: 42px;
    height: 42px;
  }

  .page-features .round-icon svg {
    width: 18px;
    height: 18px;
  }

  .page-features .feature-page-card h3 {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .page-features .feature-page-card p {
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .page-features .feature-accent {
    width: 40px;
  }

  .page-features .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px 8px;
  }

  .page-features .stat-tile {
    min-height: 62px;
    padding: 10px 12px;
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(122, 149, 174, 0.14);
  }

  .page-features .stat-tile:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .page-features .stat-tile strong {
    font-size: 1.2rem;
  }

  .page-features .stat-tile span {
    font-size: 0.68rem;
  }
}

@media (max-width: 520px) {
  .global-ticker-card {
    min-width: calc((100% - 18px) / 4);
  }

  .page-home .hero-copy h1 {
    font-size: clamp(1.45rem, 8vw, 1.95rem);
  }

  .page-features .feature-page-grid {
    gap: 10px;
  }

  .page-features .feature-page-card {
    padding: 14px 10px 12px;
  }
}

/* Ultra-compact phone refinements */
@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-shell,
  .page-markets .site-shell {
    width: calc(100% - 10px);
    max-width: calc(100% - 10px);
    margin-right: auto;
    margin-left: auto;
  }

  .panel,
  .page-home .home-hero,
  .page-markets .market-page,
  .page-features .feature-page,
  .page-features .stats-strip {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .page-home .hero-copy,
  .page-home .hero-points,
  .page-home .hero-point,
  .page-home .hero-point > div,
  .page-home .hero-actions,
  .page-home .quick-benefits,
  .page-home .benefit-card,
  .page-home .benefit-card > div,
  .page-features .centered-heading,
  .page-features .feature-page-grid,
  .page-features .feature-page-card,
  .page-markets .market-header,
  .page-markets .market-header-tools,
  .page-markets .market-quick-actions,
  .page-markets .market-tabs {
    min-width: 0;
    max-width: 100%;
  }

  .site-header {
    padding: 8px 10px;
    gap: 8px;
  }

  .brand-copy strong,
  .brand-extended .brand-copy strong {
    font-size: 1.04rem;
  }

  .brand-copy small {
    font-size: 0.56rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .header-group {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .global-market-strip {
    margin: 4px 0 10px;
    padding: 5px;
    border-radius: 14px;
  }

  .global-market-track {
    gap: 5px;
  }

  .global-ticker-card {
    width: 82px;
    min-width: 82px;
    padding: 6px 5px;
    gap: 4px;
    grid-template-columns: 18px minmax(0, 1fr);
    border-radius: 10px;
  }

  .global-ticker-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  .global-ticker-copy small {
    font-size: 0.38rem;
  }

  .global-ticker-copy strong {
    font-size: 0.62rem;
    letter-spacing: -0.03em;
  }

  .global-ticker-change {
    font-size: 0.48rem;
  }

  .page-home .home-hero {
    padding: 14px;
    gap: 12px;
  }

  .page-home .hero-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(1.34rem, 7vw, 1.78rem);
    line-height: 1.01;
  }

  .page-home .hero-copy p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.52;
  }

  .page-home .hero-points {
    gap: 6px;
  }

  .page-home .hero-point {
    gap: 6px;
  }

  .page-home .hero-point .icon-box {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .page-home .hero-point .icon-box svg {
    width: 13px;
    height: 13px;
  }

  .page-home .hero-point strong {
    margin-bottom: 3px;
    font-size: 0.64rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .page-home .hero-point > div span {
    font-size: 0.56rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .page-home .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .page-home .hero-actions .btn {
    min-height: 36px;
    font-size: 0.8rem;
  }

  .quick-benefits {
    gap: 8px;
  }

  .benefit-card {
    padding: 10px;
  }

  .benefit-card strong {
    font-size: 0.78rem !important;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .benefit-card div span {
    font-size: 0.67rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .page-markets .market-page {
    padding: 10px;
  }

  .market-header h1 {
    margin-bottom: 4px;
    font-size: clamp(1.42rem, 7.2vw, 1.78rem);
  }

  .market-header p {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .market-search {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 14px;
  }

  .market-search input {
    font-size: 0.84rem;
  }

  .market-chip-row .portfolio-view-btn {
    min-height: 38px;
    font-size: 0.76rem;
  }

  .market-quick-actions {
    gap: 6px;
  }

  .market-quick-actions .metric-card {
    min-height: 62px;
    padding: 8px;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 7px;
    border-radius: 16px;
  }

  .metric-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .metric-icon svg {
    width: 14px;
    height: 14px;
  }

  .market-quick-actions .metric-card > span:not(.metric-icon) {
    font-size: 0.56rem;
  }

  .market-quick-actions .metric-card strong {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.12;
  }

  .market-quick-actions .metric-card small {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .market-tabs {
    gap: 6px;
  }

  .market-tabs button {
    min-height: 36px;
    padding: 7px 6px;
    font-size: 0.74rem;
    line-height: 1.12;
  }

  .market-table-board {
    padding: 6px;
    border-radius: 16px;
  }

  .market-table-row {
    gap: 8px;
    margin-bottom: 6px;
    padding: 10px;
    border-radius: 14px;
  }

  .stock-logo {
    width: 26px;
    height: 26px;
  }

  .stock-cell strong {
    font-size: 0.76rem;
  }

  .stock-cell small {
    font-size: 0.56rem;
    line-height: 1.28;
  }

  .market-table-row > span {
    font-size: 0.72rem;
  }

  .trade-btn,
  .sell-btn,
  .view-btn,
  .page-select,
  .pagination-row button {
    min-height: 26px;
    font-size: 0.68rem;
  }

  .indices-list {
    grid-auto-columns: minmax(82px, 1fr);
    gap: 6px;
  }

  .indices-list div {
    min-width: 82px;
    padding: 7px;
  }

  .index-list-name .stock-logo.mini {
    width: 22px;
    height: 22px;
  }

  .index-list-name b,
  .indices-list strong,
  .indices-list small {
    font-size: 0.64rem;
  }

  .option-chain-shell {
    overflow-x: auto;
  }

  .option-chain-hero {
    gap: 6px;
    padding: 10px;
  }

  .option-chain-title strong {
    font-size: 0.82rem;
  }

  .option-chain-title small {
    font-size: 0.62rem;
  }

  .option-market-strip button,
  .option-expiry-strip button {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 0.6rem;
  }

  .option-market-strip button {
    min-width: 86px;
  }

  .option-market-strip button strong {
    font-size: 0.68rem;
  }

  .option-chain-grid {
    min-width: 680px;
    grid-template-columns: minmax(250px, 1fr) 86px minmax(250px, 1fr);
  }

  .option-chain-header {
    min-height: 32px;
    padding: 5px 6px;
    font-size: 0.56rem;
  }

  .option-subhead,
  .option-leg {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    min-height: 36px;
    padding: 0 6px;
    gap: 3px;
  }

  .option-subhead {
    font-size: 0.52rem;
  }

  .option-leg {
    font-size: 0.6rem;
  }

  .option-ltp {
    gap: 2px;
    font-size: 0.7rem;
  }

  .option-side-btn {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    font-size: 0.52rem;
  }

  .option-strike {
    min-height: 36px;
    padding: 0 4px;
  }

  .option-strike strong {
    font-size: 0.72rem;
  }

  .option-chain-foot {
    padding: 8px 10px 12px;
    font-size: 0.6rem;
  }

  .page-features .feature-page {
    padding: 12px;
  }

  .page-features .centered-heading {
    margin-bottom: 12px;
  }

  .page-features .centered-heading h1 {
    font-size: clamp(1.44rem, 7.2vw, 1.76rem);
    line-height: 1.03;
    overflow-wrap: anywhere;
  }

  .page-features .centered-heading p {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .page-features .feature-page-grid {
    gap: 8px;
  }

  .page-features .feature-page-card {
    gap: 8px;
    padding: 12px 9px 10px;
    border-radius: 16px;
  }

  .page-features .round-icon {
    width: 36px;
    height: 36px;
  }

  .page-features .round-icon svg {
    width: 16px;
    height: 16px;
  }

  .page-features .feature-page-card h3 {
    font-size: 0.8rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .page-features .feature-page-card p {
    font-size: 0.64rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  .page-features .stats-strip {
    padding: 4px 6px;
  }

  .page-features .stat-tile {
    min-height: 56px;
    padding: 8px 10px;
  }

  .page-features .stat-tile strong {
    font-size: 1rem;
  }

  .page-features .stat-tile span {
    font-size: 0.62rem;
  }
}

@media (max-width: 520px) {
  .site-shell,
  .page-markets .site-shell {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
  }

  .global-ticker-card {
    width: 78px;
    min-width: 78px;
    padding: 6px 4px;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(1.28rem, 6.9vw, 1.66rem);
  }

  .page-home .hero-copy p {
    font-size: 0.72rem;
  }

  .page-home .hero-point strong {
    font-size: 0.6rem;
  }

  .page-home .hero-point > div span {
    font-size: 0.54rem;
  }

  .page-markets .market-page,
  .page-features .feature-page {
    padding: 9px;
  }

  .market-header h1,
  .page-features .centered-heading h1 {
    font-size: clamp(1.34rem, 6.9vw, 1.64rem);
  }

  .page-features .feature-page-grid {
    gap: 7px;
  }

  .page-features .feature-page-card {
    padding: 11px 8px 10px;
  }
}

/* Mobile width normalization */
@media (max-width: 720px) {
  .site-shell,
  .page-markets .site-shell {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 0 2px 16px;
  }

  .page-stack {
    gap: 16px;
  }

  .panel,
  .page-home .home-hero,
  .page-markets .market-page,
  .page-features .feature-page,
  .page-features .stats-strip,
  .page-pricing .pricing-page {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 22px;
  }

  .site-header {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 20px;
  }

  .brand-copy strong,
  .brand-extended .brand-copy strong {
    font-size: 1.1rem;
  }

  .brand-copy small {
    font-size: 0.6rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .header-group {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    padding: 14px;
  }

  .header-group .header-actions,
  .header-group .auth-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  .header-group .profile-link,
  .header-group .btn,
  .header-group .console-pill {
    width: 100%;
    min-width: 0;
  }

  .header-group .console-actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .header-group .console-actions .console-pill {
    grid-column: auto;
  }

  .profile-name {
    max-width: none;
  }

  .logout-link,
  .reset-balance-link {
    min-height: 42px;
    padding: 0 14px;
  }

  .global-market-strip {
    margin: 5px 0 12px;
    padding: 6px;
    border-radius: 16px;
  }

  .global-market-track {
    gap: 6px;
  }

  .global-ticker-card {
    flex: 0 0 calc((100% - 18px) / 4);
    width: calc((100% - 18px) / 4);
    min-width: calc((100% - 18px) / 4);
    padding: 7px 6px;
    gap: 4px;
    grid-template-columns: 20px minmax(0, 1fr);
    border-radius: 12px;
  }

  .global-ticker-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .global-ticker-copy small {
    font-size: 0.4rem;
  }

  .global-ticker-copy strong {
    font-size: 0.66rem;
  }

  .global-ticker-change {
    font-size: 0.5rem;
  }

  .page-home .home-hero {
    padding: 16px;
    gap: 14px;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(1.48rem, 7.3vw, 1.92rem);
    line-height: 1.02;
  }

  .page-home .hero-copy p {
    font-size: 0.79rem;
    line-height: 1.58;
  }

  .page-home .hero-points {
    gap: 8px;
  }

  .page-home .hero-point strong {
    font-size: 0.68rem;
  }

  .page-home .hero-point > div span {
    font-size: 0.6rem;
    line-height: 1.3;
  }

  .page-home .hero-actions .btn {
    min-height: 40px;
    font-size: 0.84rem;
  }

  .page-home .quick-benefits,
  .page-home .anchor-grid,
  .page-home .home-news-grid,
  .page-home .pricing-grid {
    gap: 10px;
  }

  .page-home .benefit-card,
  .page-home .content-card,
  .page-home .home-news-card,
  .page-home .ticker-card,
  .page-home .price-card {
    padding: 12px;
    border-radius: 18px;
  }

  .page-home .content-card h3,
  .page-home .home-news-card .side-card-head strong,
  .page-home .price-card h3 {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .page-home .content-card p,
  .page-home .home-news-card p,
  .page-home .price-card p,
  .page-home .check-list li,
  .page-home .plan-note {
    font-size: 0.7rem;
    line-height: 1.44;
  }

  .page-home .ticker-card {
    min-height: 96px;
    justify-content: space-between;
  }

  .page-home .ticker-card span,
  .page-home .ticker-card small {
    font-size: 0.64rem;
  }

  .page-home .ticker-card strong {
    font-size: 0.98rem;
  }

  .quick-benefits {
    gap: 10px;
  }

  .benefit-card {
    padding: 12px;
    gap: 9px;
  }

  .benefit-card strong {
    font-size: 0.84rem !important;
  }

  .benefit-card div span {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .page-markets .market-page {
    padding: 14px;
  }

  .market-header h1 {
    font-size: clamp(1.5rem, 7.2vw, 1.95rem);
  }

  .market-header p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .market-search {
    min-height: 44px;
  }

  .market-search input {
    font-size: 0.88rem;
  }

  .market-quick-actions .metric-card {
    min-height: 68px;
    padding: 10px;
  }

  .market-quick-actions .metric-card strong {
    font-size: 0.86rem;
  }

  .market-quick-actions .metric-card small {
    font-size: 0.66rem;
  }

  .market-tabs {
    gap: 8px;
  }

  .market-tabs button {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 0.78rem;
  }

  .market-table-board {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 18px;
  }

  .market-table-row {
    padding: 11px;
  }

  .stock-cell strong {
    font-size: 0.8rem;
  }

  .stock-cell small {
    font-size: 0.6rem;
  }

  .market-table-row > span {
    font-size: 0.75rem;
  }

  .trade-btn,
  .sell-btn,
  .view-btn,
  .page-select,
  .pagination-row button {
    min-height: 28px;
    font-size: 0.7rem;
  }

  .indices-list {
    grid-auto-columns: minmax(96px, 1fr);
    gap: 8px;
  }

  .indices-list div {
    min-width: 96px;
    padding: 8px;
  }

  .index-list-name b,
  .indices-list strong,
  .indices-list small {
    font-size: 0.68rem;
  }

  .page-features .feature-page {
    padding: 16px;
  }

  .page-features .centered-heading {
    margin-bottom: 14px;
  }

  .page-features .centered-heading h1 {
    font-size: clamp(1.56rem, 7.4vw, 1.94rem);
    line-height: 1.04;
  }

  .page-features .centered-heading p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .page-features .feature-page-grid {
    gap: 10px;
  }

  .page-features .feature-page-card {
    gap: 9px;
    padding: 14px 12px 12px;
  }

  .page-features .feature-page-card h3 {
    font-size: 0.88rem;
  }

  .page-features .feature-page-card p {
    font-size: 0.7rem;
    line-height: 1.46;
  }

  .page-features .stats-strip {
    padding: 6px 8px;
  }

  .page-features .stat-tile {
    min-height: 62px;
    padding: 10px 12px;
  }

  .page-features .stat-tile strong {
    font-size: 1.12rem;
  }

  .page-features .stat-tile span {
    font-size: 0.68rem;
  }

  .page-pricing .pricing-page {
    padding-top: 58px;
    overflow: hidden;
  }

  .page-pricing .centered-heading,
  .page-pricing .study-banner,
  .page-pricing .pricing-spotlight-grid,
  .page-pricing .why-paid-panel {
    max-width: none;
    width: 100%;
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
  }

  .page-pricing .pricing-page > *,
  .page-pricing .pricing-spotlight-grid > *,
  .page-pricing .why-paid-panel > * {
    min-width: 0;
    max-width: 100%;
  }

  .page-pricing .centered-heading {
    padding-right: 52px;
  }

  .page-pricing .centered-heading h1 {
    display: block;
    max-width: none;
    font-size: clamp(1.44rem, 6.8vw, 1.82rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
  }

  .page-pricing .centered-heading p,
  .page-pricing .study-banner span {
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .page-pricing .study-banner {
    padding: 14px 16px;
    overflow: hidden;
  }

  .page-pricing .page-close-btn {
    top: 14px;
    right: 14px;
    left: auto;
  }

  .page-pricing .pricing-spotlight-grid {
    gap: 12px;
    overflow: hidden;
  }

  .page-pricing .price-card {
    padding: 16px 14px 14px;
    border-radius: 20px;
    overflow: hidden;
  }

  .page-pricing .price-card h3 {
    font-size: 1rem;
  }

  .page-pricing .price-card p,
  .page-pricing .plan-status,
  .page-pricing .plan-note,
  .page-pricing .check-list li {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .page-pricing .plan-price {
    font-size: 1.8rem;
  }

  .page-pricing .plan-visual,
  .page-pricing .check-list,
  .page-pricing .plan-note {
    max-width: 100%;
  }

  .page-pricing .why-paid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #chart-modal {
    padding: 4px;
    align-items: stretch;
  }

  #chart-modal .chart-modal {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
    padding: 7px;
    border-radius: 16px;
  }

  #chart-modal .chart-modal-shell {
    gap: 10px;
  }

  #chart-modal .chart-stage-panel,
  #chart-modal .chart-side-card {
    border-radius: 14px;
  }

  #chart-modal .chart-stage-panel {
    padding: 10px;
  }

  #chart-modal .chart-side-card {
    padding: 11px;
  }

  #chart-modal .chart-side-panel {
    gap: 10px;
  }

  #chart-modal .modal-head {
    margin-bottom: 10px;
  }

  #chart-modal .modal-head h2 {
    font-size: 0.98rem;
  }

  #chart-modal .chart-summary-hero {
    gap: 10px;
    margin-bottom: 10px;
  }

  #chart-modal .chart-price-stack {
    padding: 11px;
  }

  #chart-modal .chart-price-stack strong {
    font-size: clamp(1.5rem, 7vw, 1.86rem);
  }

  #chart-modal .chart-reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #chart-modal .chart-reading-grid div {
    padding: 10px;
  }

  #chart-modal .modal-toolbar {
    gap: 10px;
    margin-bottom: 10px;
  }

  #chart-modal .range-toggle,
  #chart-modal .chart-type-toggle {
    width: 100%;
  }

  #chart-modal .range-toggle button,
  #chart-modal .chart-type-toggle button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  #chart-modal .chart-mini-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 0;
  }

  #chart-modal .chart-mini-metrics div {
    padding: 9px 7px;
  }

  #chart-modal .chart-mini-metrics span {
    font-size: 0.54rem;
    line-height: 1.2;
  }

  #chart-modal .chart-mini-metrics strong {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  #chart-modal .chart-canvas-wrap {
    height: min(39dvh, 308px);
    border-radius: 14px;
  }

  #portfolio-modal {
    padding: 4px;
    align-items: stretch;
  }

  #portfolio-modal .portfolio-modal {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
    padding: 10px;
    border-radius: 18px;
  }

  #portfolio-modal .modal-head {
    margin-bottom: 12px;
  }

  #portfolio-modal .portfolio-modal-grid {
    gap: 12px;
  }

  #portfolio-modal .portfolio-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  #portfolio-modal .portfolio-hero-grid article,
  #portfolio-modal .portfolio-sheet {
    padding: 12px;
    border-radius: 16px;
  }

  #portfolio-modal .portfolio-hero-grid strong {
    font-size: 1rem;
  }

  #portfolio-modal .portfolio-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .site-shell,
  .page-markets .site-shell {
    width: 100%;
    max-width: 100%;
    padding-right: 1px;
    padding-left: 1px;
  }

  .global-market-track {
    gap: 5px;
  }

  .global-ticker-card {
    flex-basis: calc((100% - 15px) / 4);
    width: calc((100% - 15px) / 4);
    min-width: calc((100% - 15px) / 4);
    padding: 7px 5px;
  }

  .page-home .hero-copy h1,
  .market-header h1,
  .page-features .centered-heading h1,
  .page-pricing .centered-heading h1 {
    font-size: clamp(1.44rem, 7vw, 1.78rem);
  }

  .page-pricing .why-paid-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-holdings-table {
    gap: 8px;
  }

  .portfolio-holding-row.is-mobile-card {
    gap: 8px;
    padding: 10px;
  }

  .portfolio-mobile-metrics {
    gap: 7px;
  }

  .portfolio-mobile-metrics div {
    padding: 7px 8px;
  }

  #chart-modal {
    padding: 2px;
  }

  #chart-modal .chart-modal {
    width: calc(100vw - 4px);
    max-width: calc(100vw - 4px);
    padding: 6px;
    border-radius: 14px;
  }

  #chart-modal .chart-stage-panel,
  #chart-modal .chart-side-card {
    padding: 9px;
  }

  #chart-modal .modal-head h2 {
    font-size: 0.92rem;
  }

  #chart-modal .chart-price-stack {
    padding: 10px;
  }

  #chart-modal .chart-price-stack strong {
    font-size: clamp(1.34rem, 6.6vw, 1.62rem);
  }

  #chart-modal .chart-reading-grid {
    gap: 7px;
  }

  #chart-modal .chart-reading-grid div {
    padding: 9px;
  }

  #chart-modal .range-toggle button,
  #chart-modal .chart-type-toggle button {
    min-height: 34px;
    font-size: 0.68rem;
  }

  #chart-modal .chart-canvas-wrap {
    height: min(34dvh, 254px);
  }

  #portfolio-modal {
    padding: 2px;
  }

  #portfolio-modal .portfolio-modal {
    width: calc(100vw - 4px);
    max-width: calc(100vw - 4px);
    padding: 8px;
  }

  #portfolio-modal .portfolio-hero-grid article,
  #portfolio-modal .portfolio-sheet {
    padding: 10px;
  }

  #portfolio-modal .portfolio-hero-grid strong {
    font-size: 0.94rem;
  }

  #chart-modal .chart-mini-metrics span {
    font-size: 0.56rem;
  }

  #chart-modal .chart-mini-metrics strong {
    font-size: 0.68rem;
  }
}

@media (max-width: 980px) {
  .reviews-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header,
  .panel,
  .global-market-strip,
  .benefit-card,
  .content-card,
  .home-news-card,
  .ticker-card,
  .price-card,
  .market-side-card,
  .feature-page-card,
  .review-summary-card,
  .review-form-card,
  .review-card,
  .stat-tile {
    border-color: rgba(122, 149, 174, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  }

  .reviews-shell,
  .review-list {
    grid-template-columns: 1fr;
  }

  .review-summary-card,
  .review-form-card,
  .review-card {
    padding: 14px;
    border-radius: 18px;
  }

  .review-summary-card > strong {
    font-size: clamp(1.68rem, 8vw, 2.08rem);
  }

  .review-summary-stats {
    gap: 10px;
  }

  .review-form {
    gap: 12px;
  }

  .review-form input,
  .review-form select,
  .review-form textarea {
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 12px;
  }

  .review-form textarea {
    min-height: 104px;
  }

  .review-form-actions .btn {
    width: 100%;
  }

  .review-list {
    margin-top: 14px;
    gap: 12px;
  }

  .review-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .indices-list {
    border-radius: 16px;
  }

  .indices-list div {
    border: 1px solid rgba(122, 149, 174, 0.14);
    background: rgba(8, 15, 22, 0.78);
  }
}

@media (max-width: 520px) {
  .page-home .reviews-panel {
    padding: 10px;
  }

  .page-home .reviews-panel .section-heading {
    gap: 6px;
  }

  .page-home .reviews-panel .eyebrow {
    padding: 5px 9px;
    font-size: 0.48rem;
  }

  .page-home .reviews-panel .section-heading h2 {
    font-size: clamp(1.02rem, 5.5vw, 1.22rem);
    line-height: 1.08;
  }

  .page-home .reviews-panel .section-heading p {
    font-size: 0.62rem;
    line-height: 1.38;
  }

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

  .page-home .review-summary-card,
  .page-home .review-form-card,
  .page-home .review-card {
    padding: 12px;
    border-radius: 16px;
  }

  .page-home .review-summary-kicker,
  .page-home .review-form label span,
  .page-home .review-meta,
  .page-home .review-status,
  .page-home .review-form-card .side-card-head small {
    font-size: 0.6rem;
  }

  .page-home .review-summary-card {
    gap: 10px;
  }

  .page-home .review-summary-card > strong {
    font-size: clamp(1.42rem, 7vw, 1.72rem);
  }

  .page-home .review-summary-card p {
    font-size: 0.66rem;
    line-height: 1.46;
  }

  .page-home .review-summary-stats {
    gap: 8px;
  }

  .page-home .review-summary-stats div {
    gap: 3px;
    padding: 10px;
    border-radius: 14px;
  }

  .page-home .review-summary-stats strong {
    font-size: 0.82rem;
  }

  .page-home .review-form-card .side-card-head strong,
  .page-home .review-card-head strong,
  .page-home .review-card strong {
    font-size: 0.82rem;
  }

  .page-home .review-form {
    gap: 10px;
    margin-top: 10px;
  }

  .page-home .review-form label {
    gap: 6px;
  }

  .page-home .review-form input,
  .page-home .review-form select,
  .page-home .review-form textarea {
    min-height: 40px;
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 0.74rem;
  }

  .page-home .review-form textarea {
    min-height: 92px;
  }

  .page-home .review-form-actions {
    gap: 8px;
  }

  .page-home .review-form-actions .btn {
    min-height: 40px;
    font-size: 0.78rem;
  }

  .page-home .review-rating-badge,
  .page-home .review-card blockquote {
    border-radius: 14px;
  }

  .page-home .review-card blockquote {
    padding: 10px;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .review-card blockquote {
    padding: 12px;
  }

  .review-rating-badge {
    min-width: 68px;
    min-height: 32px;
    font-size: 0.76rem;
  }
}

/* Mobile uniform sizing refinements */
@media (max-width: 720px) {
  .page-home .panel,
  .page-about .panel,
  .page-features .panel,
  .page-pricing .panel {
    padding: 14px;
    border-radius: 20px;
  }

  .page-home .page-stack,
  .page-about .page-stack,
  .page-features .page-stack,
  .page-pricing .page-stack {
    gap: 12px;
  }

  .page-home .section-heading,
  .page-features .centered-heading,
  .page-pricing .centered-heading,
  .page-about .footer-copy {
    margin-bottom: 10px;
  }

  .page-home .eyebrow {
    gap: 7px;
    padding: 7px 11px;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }

  .page-home .eyebrow-dot {
    width: 6px;
    height: 6px;
  }

  .page-home .section-heading h2,
  .page-features .centered-heading h1,
  .page-pricing .centered-heading h1,
  .page-about .about-copy-block h1,
  .page-about .footer-copy h2 {
    font-size: clamp(1.28rem, 6.4vw, 1.56rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .page-home .section-heading p,
  .page-features .centered-heading p,
  .page-pricing .centered-heading p,
  .page-pricing .study-banner span,
  .page-about .about-copy-block p,
  .page-about .footer-copy p {
    font-size: 0.72rem;
    line-height: 1.44;
  }

  .page-home .stats-strip,
  .page-about .stats-strip,
  .page-features .stats-strip {
    padding: 4px 6px;
  }

  .page-home .stat-tile,
  .page-about .stat-tile,
  .page-features .stat-tile {
    min-height: 54px;
    padding: 8px 10px;
    gap: 4px;
  }

  .page-home .stat-tile strong,
  .page-about .stat-tile strong,
  .page-features .stat-tile strong {
    font-size: 0.96rem;
  }

  .page-home .stat-tile span,
  .page-about .stat-tile span,
  .page-features .stat-tile span {
    font-size: 0.6rem;
    line-height: 1.24;
  }

  .page-home .stat-tile-copy strong,
  .page-about .stat-tile:last-child strong,
  .page-features .stat-tile:last-child strong {
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .page-about .about-panel {
    padding: 14px;
  }

  .page-about .about-hero {
    gap: 12px;
  }

  .page-about .study-note {
    margin-top: 14px;
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .page-about .study-note strong {
    font-size: 0.82rem;
  }

  .page-about .study-note span,
  .page-about .story-panel p,
  .page-about .info-panel p,
  .page-about .value-list li,
  .page-about .footer-details span {
    font-size: 0.7rem;
    line-height: 1.44;
  }

  .page-about .about-stage {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .page-about .about-stage-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-about .about-story-board {
    margin-top: 12px;
    gap: 8px;
    border-radius: 18px;
  }

  .page-about .about-story-board > article {
    padding: 14px 12px;
  }

  .page-about .story-panel h2,
  .page-about .info-panel h3 {
    font-size: 0.94rem;
  }

  .page-about .footer-contact {
    gap: 12px;
    padding: 14px;
  }

  .page-about .footer-details {
    gap: 8px;
  }

  .page-about .footer-details article {
    padding: 12px;
    border-radius: 14px;
  }

  .page-about .footer-details strong {
    font-size: 0.82rem;
    margin-bottom: 4px;
  }

  .page-pricing .pricing-page {
    padding: 52px 14px 14px;
  }

  .page-pricing .centered-heading {
    margin-bottom: 10px;
    padding-right: 42px;
  }

  .page-pricing .study-banner {
    padding: 12px 13px;
  }

  .page-pricing .pricing-spotlight-grid,
  .page-pricing .why-paid-grid {
    gap: 10px;
  }

  .page-pricing .price-card {
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  .page-pricing .price-card h3,
  .page-pricing .why-paid-panel h2 {
    font-size: 0.92rem;
  }

  .page-pricing .price-card p,
  .page-pricing .plan-status,
  .page-pricing .plan-note,
  .page-pricing .check-list li,
  .page-pricing .why-paid-grid article span {
    font-size: 0.7rem;
    line-height: 1.42;
  }

  .page-pricing .plan-price {
    font-size: 1.48rem;
  }

  .page-pricing .check-list {
    margin: 14px 0 16px;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .page-home .panel,
  .page-about .panel,
  .page-features .panel,
  .page-pricing .panel {
    padding: 12px;
    border-radius: 18px;
  }

  .page-home .section-heading h2,
  .page-features .centered-heading h1,
  .page-pricing .centered-heading h1,
  .page-about .about-copy-block h1,
  .page-about .footer-copy h2 {
    font-size: clamp(1.18rem, 6vw, 1.42rem);
  }

  .page-home .eyebrow {
    padding: 6px 10px;
    font-size: 0.52rem;
  }

  .page-home .benefit-card,
  .page-home .content-card,
  .page-home .home-news-card,
  .page-home .ticker-card,
  .page-home .price-card {
    padding: 11px;
    border-radius: 16px;
  }

  .page-home .content-card h3,
  .page-home .home-news-card .side-card-head strong,
  .page-home .price-card h3 {
    font-size: 0.82rem;
  }

  .page-home .content-card p,
  .page-home .home-news-card p,
  .page-home .price-card p,
  .page-home .check-list li,
  .page-home .plan-note {
    font-size: 0.68rem;
  }

  .page-home .section-heading p,
  .page-features .centered-heading p,
  .page-pricing .centered-heading p,
  .page-pricing .study-banner span,
  .page-about .about-copy-block p,
  .page-about .footer-copy p {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .page-home .stat-tile strong,
  .page-about .stat-tile strong,
  .page-features .stat-tile strong {
    font-size: 0.9rem;
  }

  .page-home .stat-tile span,
  .page-about .stat-tile span,
  .page-features .stat-tile span {
    font-size: 0.56rem;
  }

  .page-home .stat-tile-copy strong,
  .page-about .stat-tile:last-child strong,
  .page-features .stat-tile:last-child strong {
    font-size: 0.78rem;
  }

  .page-about .about-stage {
    aspect-ratio: 16 / 11;
  }

  .page-pricing .pricing-page {
    padding: 48px 12px 12px;
  }

  .page-pricing .price-card h3,
  .page-pricing .why-paid-panel h2,
  .page-about .story-panel h2,
  .page-about .info-panel h3 {
    font-size: 0.86rem;
  }
}

@media (max-width: 720px) {
  body.is-signed-in .header-console .brand-copy small {
    display: none;
  }

  body.is-signed-in .header-console .header-group {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .nav-links {
    display: none;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    margin-left: auto;
    min-width: 0;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .user-email {
    display: inline-flex !important;
    align-items: center;
    max-width: 76px;
    min-height: 34px;
    padding: 6px 10px;
    overflow: hidden;
    border-radius: 10px;
    font-size: 0.68rem;
    text-overflow: ellipsis;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .console-pill {
    width: auto;
    min-height: 34px;
    padding: 6px 9px;
    gap: 2px;
    border-radius: 10px;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .console-pill span {
    font-size: 0.42rem;
    line-height: 1.1;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .console-pill strong {
    font-size: 0.74rem;
    line-height: 1.1;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .icon-button,
  body.is-signed-in .header-console .header-group:not(.is-open) .notification-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .notification-panel {
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 20px));
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .avatar-button,
  body.is-signed-in .header-console .header-group:not(.is-open) [data-logout-button],
  body.is-signed-in .header-console .header-group:not(.is-open) [data-header-reset-portfolio] {
    display: none;
  }

  body.is-signed-in .header-console .header-group.is-open {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(4, 10, 15, 0.985);
    border: 1px solid rgba(122, 149, 174, 0.16);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    z-index: 80;
  }

  body.is-signed-in .header-console .header-group.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  body.is-signed-in .header-console .header-group.is-open .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  body.is-signed-in .header-console .header-group.is-open .console-pill {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.is-signed-in .header-console .header-group.is-open .avatar-button,
  body.is-signed-in .header-console .header-group.is-open [data-logout-button],
  body.is-signed-in .header-console .header-group.is-open [data-header-reset-portfolio] {
    display: inline-grid;
  }

  body.is-signed-in .header-console .header-group.is-open [data-logout-button],
  body.is-signed-in .header-console .header-group.is-open [data-header-reset-portfolio] {
    display: inline-flex;
  }

  body.is-signed-in .page-markets .market-table-board.is-option-chain {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
  }

  body.is-signed-in .page-markets .option-chain-shell {
    width: max-content;
    min-width: 860px;
    overflow: visible;
  }

  body.is-signed-in .page-markets .option-chain-hero {
    grid-template-columns: minmax(280px, 1fr) auto auto;
    min-width: 860px;
    gap: 12px;
    padding: 14px 16px;
  }

  body.is-signed-in .page-markets .option-market-strip,
  body.is-signed-in .page-markets .option-expiry-strip {
    flex-wrap: nowrap;
    overflow: visible;
    gap: 8px;
    padding-bottom: 0;
  }

  body.is-signed-in .page-markets .option-chain-grid {
    min-width: 860px;
    grid-template-columns: minmax(330px, 1fr) 120px minmax(330px, 1fr);
  }

  body.is-signed-in .page-markets .option-chain-header {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.66rem;
  }

  body.is-signed-in .page-markets .option-subhead,
  body.is-signed-in .page-markets .option-leg {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    min-height: 44px;
    padding: 0 10px;
    gap: 5px;
  }

  body.is-signed-in .page-markets .option-subhead {
    font-size: 0.58rem;
  }

  body.is-signed-in .page-markets .option-leg {
    font-size: 0.68rem;
  }

  body.is-signed-in .page-markets .option-ltp {
    font-size: 0.82rem;
  }

  body.is-signed-in .page-markets .option-side-btn {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 0.56rem;
  }

  body.is-signed-in .page-markets .option-strike {
    min-height: 44px;
    padding: 0 6px;
  }

  body.is-signed-in .page-markets .option-strike strong {
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  body.is-signed-in .header-console .header-group:not(.is-open) .user-email {
    max-width: 64px;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .console-pill {
    padding: 5px 8px;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .console-pill span {
    font-size: 0.38rem;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .console-pill strong {
    font-size: 0.68rem;
  }

  body.is-signed-in .header-console .header-group:not(.is-open) .icon-button,
  body.is-signed-in .header-console .header-group:not(.is-open) .notification-button {
    width: 32px;
    height: 32px;
  }

  body.is-signed-in .page-markets .option-chain-shell {
    min-width: 760px;
  }

  body.is-signed-in .page-markets .option-chain-hero {
    min-width: 760px;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 10px;
    padding: 12px 14px;
  }

  body.is-signed-in .page-markets .option-chain-grid {
    min-width: 760px;
    grid-template-columns: minmax(290px, 1fr) 100px minmax(290px, 1fr);
  }

  body.is-signed-in .page-markets .option-chain-header {
    font-size: 0.6rem;
  }

  body.is-signed-in .page-markets .option-chain-grid,
  body.is-signed-in .page-markets .option-chain-hero {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  body.is-signed-in .page-markets .option-subhead,
  body.is-signed-in .page-markets .option-leg {
    grid-template-columns: repeat(5, minmax(50px, 1fr));
    padding: 0 8px;
    gap: 4px;
  }

  body.is-signed-in .page-markets .option-leg {
    font-size: 0.64rem;
  }
}

body.is-signed-in .auth-actions .user-email {
  display: none;
}

.reviews-shell.is-review-locked {
  grid-template-columns: minmax(0, 1fr);
}

.reviews-shell.is-review-locked .review-summary-card {
  max-width: 520px;
}

.page-about .about-stage {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(6, 12, 18, 0.18), rgba(4, 10, 15, 0.34)),
    url("about-trading-photo.jpg") center / cover no-repeat;
}

.page-about .about-stage::before {
  z-index: 1;
}

.page-about .about-stage-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-header + .global-market-strip {
  margin-top: 6px;
  padding-top: 5px;
  padding-bottom: 5px;
}

@media (max-width: 720px) {
  body.is-signed-in .site-header .brand-copy small {
    display: none;
  }

  body.is-signed-in .site-header .header-group {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .nav-links {
    display: none;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    margin-left: auto;
    min-width: 0;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .user-email {
    display: inline-flex !important;
    align-items: center;
    max-width: 76px;
    min-height: 34px;
    padding: 6px 10px;
    overflow: hidden;
    border-radius: 10px;
    font-size: 0.68rem;
    text-overflow: ellipsis;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .console-pill {
    width: auto;
    min-height: 34px;
    padding: 6px 9px;
    gap: 2px;
    border-radius: 10px;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .console-pill span {
    font-size: 0.42rem;
    line-height: 1.1;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .console-pill strong {
    font-size: 0.74rem;
    line-height: 1.1;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .icon-button,
  body.is-signed-in .site-header .header-group:not(.is-open) .notification-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .notification-panel {
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 20px));
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .auth-actions .profile-link,
  body.is-signed-in .site-header .header-group:not(.is-open) .auth-actions [data-logout-button],
  body.is-signed-in .site-header .header-group:not(.is-open) .auth-actions [data-header-reset-portfolio],
  body.is-signed-in .site-header .header-group:not(.is-open) .avatar-button {
    display: none;
  }

  body.is-signed-in .site-header .header-group.is-open {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(4, 10, 15, 0.985);
    border: 1px solid rgba(122, 149, 174, 0.16);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    z-index: 80;
  }

  body.is-signed-in .site-header .header-group.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  body.is-signed-in .site-header .header-group.is-open .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  body.is-signed-in .site-header .header-group.is-open .console-pill {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.is-signed-in .site-header .header-group.is-open .auth-actions .user-email,
  body.is-signed-in .site-header .header-group.is-open .auth-actions [data-mobile-auth-summary] {
    display: none !important;
  }

  body.is-signed-in .site-header .header-group.is-open .avatar-button,
  body.is-signed-in .site-header .header-group.is-open [data-logout-button],
  body.is-signed-in .site-header .header-group.is-open [data-header-reset-portfolio],
  body.is-signed-in .site-header .header-group.is-open .auth-actions .profile-link {
    display: inline-flex;
  }

  .page-about .about-stage {
    min-height: clamp(220px, 58vw, 320px);
    aspect-ratio: auto;
  }

  .site-header + .global-market-strip {
    margin-top: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

@media (max-width: 520px) {
  body.is-signed-in .site-header .header-group:not(.is-open) .user-email {
    max-width: 64px;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .console-pill {
    padding: 5px 8px;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .console-pill span {
    font-size: 0.38rem;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .console-pill strong {
    font-size: 0.68rem;
  }

  body.is-signed-in .site-header .header-group:not(.is-open) .icon-button,
  body.is-signed-in .site-header .header-group:not(.is-open) .notification-button {
    width: 32px;
    height: 32px;
  }

  .page-about .about-stage {
    min-height: 200px;
  }

  .site-header + .global-market-strip {
    padding-top: 3px;
    padding-bottom: 3px;
  }
}

.global-market-strip {
  margin: 6px 0 10px;
  padding: 6px 8px 4px;
}

.site-header + .global-market-strip {
  margin-top: 4px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.global-market-track {
  align-items: stretch;
  gap: 8px;
  padding: 0;
}

.global-ticker-card {
  min-width: 176px;
  padding: 9px 10px;
  border-radius: 13px;
}

.page-markets .indices-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  max-height: none;
  overflow: visible;
  padding: 2px 0 4px;
}

.page-markets .indices-list::-webkit-scrollbar {
  display: none;
}

.page-markets .indices-list div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 149, 174, 0.14);
  background: rgba(8, 15, 22, 0.78);
}

.page-markets .index-list-name b,
.page-markets .indices-list strong,
.page-markets .indices-list small {
  font-size: 0.74rem;
}

@media (max-width: 1480px) and (min-width: 981px) {
  .site-shell,
  .page-markets .site-shell {
    width: min(1380px, calc(100vw - 22px));
  }

  .page-home .home-hero,
  .page-pricing .pricing-page,
  .page-markets .market-page {
    padding: 16px 18px 18px;
  }

  .page-home .home-hero {
    grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1fr);
    gap: 14px;
  }

  .page-home .hero-copy {
    max-width: 560px;
    padding: 2px 0 4px;
  }

  .page-home .hero-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(2.28rem, 3.7vw, 3.22rem);
  }

  .page-home .hero-copy p {
    max-width: 55ch;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .page-home .hero-points {
    gap: 12px;
    margin-top: 18px;
  }

  .page-home .hero-point {
    gap: 10px;
  }

  .page-home .hero-point strong {
    font-size: 0.94rem;
  }

  .page-home .hero-point > div span {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .page-home .hero-actions {
    gap: 12px;
    margin-top: 18px;
  }

  .page-home .hero-visual {
    min-height: 0;
  }

  .page-home .dashboard-frame {
    width: min(100%, 610px);
  }

  .page-home .dashboard-shell {
    padding: 14px;
    border-radius: 26px;
  }

  .page-home .dashboard-app {
    grid-template-columns: 144px minmax(0, 1fr);
    min-height: 456px;
  }

  .page-pricing .centered-heading {
    max-width: 920px;
    margin-bottom: 16px;
  }

  .page-pricing .centered-heading h1 {
    font-size: clamp(2rem, 3.3vw, 2.9rem);
  }

  .page-pricing .centered-heading p {
    margin-top: 10px;
  }

  .page-pricing .study-banner {
    max-width: 760px;
    margin-bottom: 16px;
    padding: 12px 16px;
  }

  .page-pricing .pricing-spotlight-grid {
    max-width: 100%;
    gap: 14px;
  }

  .page-pricing .price-card {
    padding: 18px 18px 16px;
  }

  .page-pricing .plan-visual {
    min-height: 108px;
    margin-bottom: 12px;
  }

  .page-pricing .why-paid-panel {
    margin-top: 18px;
  }

  .page-markets .market-page {
    padding: 16px 18px 18px;
  }

  .page-markets .market-header {
    align-items: start;
    gap: 14px;
  }

  .page-markets .market-header p {
    max-width: 40rem;
    margin: 0;
  }

  .page-markets .market-header-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  .page-markets .market-search {
    min-height: 54px;
  }

  .page-markets .market-quick-actions {
    gap: 12px;
  }

  .page-markets .market-quick-actions .metric-card {
    min-height: 102px;
    padding: 12px;
  }

  .page-markets .market-tabs {
    margin: 12px 0 10px;
  }

  .page-markets .market-shell {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .global-market-strip {
    margin: 5px 0 12px;
    padding: 6px;
    border-radius: 16px;
  }

  .site-header + .global-market-strip {
    margin-top: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .global-market-track {
    gap: 6px;
  }

  .global-ticker-card {
    flex: 0 0 calc((100% - 18px) / 4);
    width: calc((100% - 18px) / 4);
    min-width: calc((100% - 18px) / 4);
    padding: 7px 6px;
    gap: 4px;
    grid-template-columns: 20px minmax(0, 1fr);
    border-radius: 12px;
  }

  .global-ticker-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .global-ticker-copy small {
    font-size: 0.4rem;
  }

  .global-ticker-copy strong {
    font-size: 0.66rem;
  }

  .global-ticker-change {
    font-size: 0.5rem;
  }

  .page-markets .indices-list {
    gap: 8px;
    padding-bottom: 3px;
  }

  .page-markets .indices-list div {
    min-width: 0;
    padding: 8px;
    border-radius: 14px;
  }

  .page-markets .index-list-name .stock-logo.mini {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .page-markets .index-list-name b,
  .page-markets .indices-list strong,
  .page-markets .indices-list small {
    font-size: 0.68rem;
  }
}

@media (max-width: 520px) {
  .global-market-strip {
    margin: 4px 0 10px;
    padding: 5px;
    border-radius: 14px;
  }

  .global-market-track {
    gap: 5px;
  }

  .global-ticker-card {
    width: 82px;
    min-width: 82px;
    padding: 6px 5px;
    gap: 4px;
    grid-template-columns: 18px minmax(0, 1fr);
    border-radius: 10px;
  }

  .global-ticker-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  .global-ticker-copy small {
    font-size: 0.38rem;
  }

  .global-ticker-copy strong {
    font-size: 0.62rem;
    letter-spacing: -0.03em;
  }

  .global-ticker-change {
    font-size: 0.48rem;
  }

  .page-markets .indices-list {
    gap: 6px;
  }

  .page-markets .indices-list div {
    min-width: 0;
    padding: 7px;
  }

  .page-markets .index-list-name .stock-logo.mini {
    width: 22px;
    height: 22px;
  }

  .page-markets .index-list-name b,
  .page-markets .indices-list strong,
  .page-markets .indices-list small {
    font-size: 0.64rem;
  }
}

.side-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
}

.market-news-movers button {
  align-content: start;
  color: var(--text);
  text-align: left;
}

.market-news-movers span {
  color: var(--muted-strong);
  font-weight: 700;
}

.market-news-movers strong {
  font-size: 0.76rem;
}

.global-market-track[data-auto-scroll="true"] {
  scroll-snap-type: none;
}

.page-markets .indices-list[data-auto-scroll="true"] {
  scroll-snap-type: none;
}

.home-news-grid.is-single-card {
  grid-template-columns: minmax(0, 1fr);
}

.page-markets .portfolio-card .side-card-head {
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.page-markets .portfolio-card .side-card-actions {
  display: flex;
  grid-template-columns: none;
  width: auto;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.page-markets .portfolio-card .side-card-actions button {
  width: auto;
  min-width: 108px;
  padding-inline: 14px;
}

.trade-input-label input:focus {
  border-color: rgba(31, 227, 125, 0.34);
  box-shadow: 0 0 0 3px rgba(31, 227, 125, 0.08);
}

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

.review-rating-badge {
  justify-content: flex-start;
  gap: 4px;
  min-width: 118px;
  padding: 8px 12px;
  line-height: 1.1;
  flex-wrap: wrap;
}

.review-rating-stars {
  color: #f6c85f;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
}

.review-rating-value {
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.review-meta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(31, 227, 125, 0.08);
  border: 1px solid rgba(31, 227, 125, 0.18);
  font-size: 0.62rem;
  font-weight: 800;
}

.window-close {
  display: none;
}

@media (max-width: 1480px) and (min-width: 981px) {
  .page-pricing .pricing-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 16px 16px;
  }

  .page-pricing .centered-heading {
    max-width: 760px;
    margin-bottom: 12px;
  }

  .page-pricing .centered-heading h1 {
    font-size: clamp(1.82rem, 2.7vw, 2.48rem);
  }

  .page-pricing .centered-heading p {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .page-pricing .study-banner {
    max-width: 680px;
    margin-bottom: 14px;
    padding: 10px 14px;
  }

  .page-pricing .study-banner strong {
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  .page-pricing .study-banner span {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .page-pricing .pricing-spotlight-grid {
    max-width: 940px;
    gap: 12px;
  }

  .page-pricing .price-card {
    padding: 16px 16px 14px;
  }

  .page-pricing .price-card h3 {
    font-size: 1.1rem;
  }

  .page-pricing .price-card p,
  .page-pricing .plan-status,
  .page-pricing .plan-note,
  .page-pricing .check-list li {
    font-size: 0.75rem;
    line-height: 1.46;
  }

  .page-pricing .plan-visual {
    min-height: 94px;
    margin: 0 0 10px;
  }

  .page-pricing .plan-price {
    font-size: 1.72rem;
  }

  .page-pricing .btn-primary {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.9rem;
  }

  .page-login .site-shell {
    width: min(1300px, calc(100vw - 24px));
  }

  .page-login .login-panel-page {
    grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.82fr);
    gap: 16px;
    padding: 18px;
  }

  .page-login .login-showcase {
    padding: 2px 2px 0 0;
  }

  .page-login .login-showcase h1 {
    font-size: clamp(2.24rem, 4vw, 3.5rem);
  }

  .page-login .login-showcase p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .page-login .showcase-list {
    margin-top: 18px;
    gap: 12px;
  }

  .page-login .showcase-list div,
  .page-login .login-preview {
    padding: 16px;
  }

  .page-login .preview-chart {
    height: 158px;
    margin: 14px 0 12px;
  }

  .page-login .login-form-card {
    gap: 12px;
    padding: 22px;
  }

  .page-login .login-form-card h2 {
    font-size: 1.72rem;
  }
}

@media (max-width: 720px) {
  .page-stack {
    gap: 14px;
  }

  .page-stack > .panel {
    padding: 16px;
    border-radius: 20px;
    border-color: rgba(0, 0, 0, 0.82);
    background:
      linear-gradient(180deg, rgba(8, 14, 21, 0.98), rgba(4, 10, 15, 1)),
      rgba(6, 12, 18, 0.96);
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.34),
      inset 0 0 0 1px rgba(255, 255, 255, 0.02),
      0 0 0 1px rgba(0, 0, 0, 0.2);
  }

  .page-markets .portfolio-card .side-card-head {
    align-items: flex-start;
  }

  .page-markets .portfolio-card .side-card-actions {
    width: auto;
  }

  .page-markets .portfolio-card .side-card-actions button {
    min-width: 96px;
  }

  .page-home .global-market-strip,
  .page-home .global-ticker-card,
  .page-login .login-preview,
  .page-login .showcase-list div,
  .page-login .login-form-card,
  .page-login .footer-note {
    border-color: rgba(0, 0, 0, 0.82);
    background:
      linear-gradient(180deg, rgba(8, 14, 21, 0.96), rgba(5, 11, 18, 0.98)),
      rgba(7, 13, 20, 0.94);
  }

  .page-home #markets {
    display: none;
  }

  .page-home .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-home .hero-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .page-home .global-market-strip {
    margin: 8px 0 12px;
    padding: 8px 6px 6px;
  }

  .page-home .global-market-track {
    gap: 8px;
  }

  .page-home .global-ticker-card {
    width: 118px;
    min-width: 118px;
    padding: 10px 8px;
    gap: 6px;
    grid-template-columns: 22px minmax(0, 1fr);
    border-radius: 14px;
  }

  .page-home .global-ticker-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .page-home .global-ticker-copy small {
    font-size: 0.48rem;
  }

  .page-home .global-ticker-copy strong {
    font-size: 0.76rem;
  }

  .page-home .global-ticker-change {
    font-size: 0.6rem;
  }

  .review-pagination {
    gap: 6px;
    margin-top: 14px;
  }

  .review-pagination button,
  .review-pagination-ellipsis {
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.74rem;
  }
}

/* Footer Styles */
.site-footer {
  background-color: rgba(10, 20, 30, 0.8);
  border-top: 1px solid rgba(76, 175, 80, 0.2);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-content p {
  margin: 0;
  font-weight: 500;
}

.footer-content p:hover {
  color: rgba(255, 255, 255, 0.9);
}
