:root {
  --bg: #050810;
  --bg-elev: #0a101c;
  --bg-card: rgba(16, 24, 40, 0.72);
  --text: #f4f7ff;
  --muted: #8b97ad;
  --muted-2: #6b7890;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #2f7bff;
  --blue-bright: #4d9fff;
  --cyan: #5ce1ff;
  --green: #3ddc97;
  --red: #ff5c6c;
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --font-fa: "Vazirmatn", "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  overflow-x: clip;
  padding-bottom: 52px;
}

html[lang="fa"] body {
  font-family: var(--font-fa);
}

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

button,
input {
  font: inherit;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(47, 123, 255, 0.22), transparent 60%),
    radial-gradient(700px 420px at 12% 70%, rgba(22, 56, 255, 0.12), transparent 55%),
    radial-gradient(600px 300px at 50% 100%, rgba(92, 225, 255, 0.06), transparent 50%);
}

.topnav,
main,
.tickerbar {
  position: relative;
  z-index: 1;
}

/* ——— Top nav ——— */
.topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.brand-word {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-indent: 0.08em;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  width: 280px;
}

.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
}

.nav-search kbd {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

@media (min-width: 1100px) {
  .nav-search {
    display: inline-flex;
  }
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 32px;
  height: 26px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: #fff;
  color: #050810;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line);
}

.link-login {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 6px;
}

.link-login:hover {
  color: var(--text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(47, 123, 255, 0.35);
}

.btn-primary:hover {
  background: var(--blue-bright);
}

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 48px;
  min-height: calc(100vh - 180px);
  min-width: 0;
}

.hero-copy,
.hero-preview,
.mini-tickers,
.preview-window,
.feature-grid,
.nav-right {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.accent {
  background: linear-gradient(90deg, #7ec8ff 0%, #2f7bff 55%, #5ce1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(47, 123, 255, 0.25);
}

.lead {
  margin: 18px 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 480px);
  margin-top: 28px;
  min-height: 56px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 18, 32, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--muted);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
}

.hero-search input::placeholder {
  color: var(--muted-2);
}

.search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #4d9fff, #1638ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(47, 123, 255, 0.45);
}

.search-go:hover {
  filter: brightness(1.08);
}

.mini-tickers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  width: min(100%, 520px);
}

.mini-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.mini-card:hover {
  border-color: rgba(47, 123, 255, 0.4);
  transform: translateY(-2px);
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mini-top strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.mini-price {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.spark {
  width: 56px;
  height: 20px;
}

.spark path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.up {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.down {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
}

.coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.coin.sm {
  width: 18px;
  height: 18px;
  font-size: 0.62rem;
}

.coin-btc {
  background: linear-gradient(145deg, #f7931a, #c46b00);
  color: #fff;
}

.coin-eth {
  background: linear-gradient(145deg, #627eea, #3b4ea0);
  color: #fff;
}

.coin-sol {
  background: linear-gradient(145deg, #14f195, #9945ff);
  color: #0b1020;
}

.coin-bnb {
  background: linear-gradient(145deg, #f3ba2f, #c99400);
  color: #1a1200;
}

.coin-xrp {
  background: linear-gradient(145deg, #23292f, #000);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.coin-doge {
  background: linear-gradient(145deg, #c2a633, #8a7420);
  color: #fff;
}

.coin-nvda {
  background: linear-gradient(145deg, #76b900, #3d6b00);
  color: #fff;
}

.profile-chip {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #2f7bff, #1638ff);
  border-color: rgba(47, 123, 255, 0.5);
  color: #fff;
}

.avatar-letter {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: rgba(47, 123, 255, 0.45);
  background: rgba(47, 123, 255, 0.1);
}

.btn-ghost.danger {
  color: var(--red);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head .section-kicker {
  margin-bottom: 8px;
  text-align: left;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.markets,
.news,
.learn {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 72px;
}

.markets-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 16, 28, 0.7);
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.markets-table th,
.markets-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.markets-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.markets-table tbody tr:hover {
  background: rgba(47, 123, 255, 0.06);
}

.mkt-sym {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mkt-sym strong {
  display: block;
  font-size: 0.92rem;
}

.mkt-sym small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.mkt-link {
  color: var(--blue-bright);
  font-weight: 600;
}

.mkt-link:hover {
  color: var(--cyan);
}

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

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

.news-card,
.learn-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 40, 0.55);
}

.news-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.news-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-card a {
  color: var(--blue-bright);
  font-weight: 600;
  font-size: 0.88rem;
}

.learn-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.learn-card:hover {
  border-color: rgba(47, 123, 255, 0.45);
  transform: translateY(-2px);
}

.learn-card strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.learn-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ft-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ft-item strong {
  color: var(--text);
}

.ft-chg.up,
.ft-item .up {
  color: var(--green);
}

.ft-chg.down,
.ft-item .down {
  color: var(--red);
}

/* Profile page */
.profile-page {
  padding-bottom: 48px;
}

.profile-main {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(145deg, #4d9fff, #1638ff);
  box-shadow: 0 12px 32px rgba(47, 123, 255, 0.35);
  flex-shrink: 0;
}

.profile-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.profile-hero .lead {
  margin-top: 8px;
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.75);
}

.profile-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-card input,
.profile-card select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}

.profile-card input:focus,
.profile-card select:focus {
  border-color: rgba(47, 123, 255, 0.55);
}

.profile-card .check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.profile-card .check input {
  width: 16px;
  height: 16px;
  min-height: 0;
}

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

.profile-status {
  margin: 0;
  color: var(--green, #3ddc97);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}

.profile-status.is-on {
  animation: statusIn 180ms ease-out;
}

@keyframes statusIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.symbol-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.symbol-fieldset legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 2px;
}

.symbol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.symbol-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.symbol-chip:hover {
  border-color: rgba(47, 123, 255, 0.45);
  color: var(--text);
}

.symbol-chip.is-active {
  background: rgba(47, 123, 255, 0.2);
  border-color: rgba(47, 123, 255, 0.55);
  color: var(--text);
}

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.profile-meta article {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.profile-meta h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.profile-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ——— Product preview ——— */
.hero-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
  perspective: 1400px;
}

.preview-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgba(47, 123, 255, 0.35), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.preview-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr 150px;
  width: min(100%, 560px);
  height: 420px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(18, 28, 48, 0.95), rgba(8, 12, 22, 0.92));
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(47, 123, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
  animation: floatPreview 5s ease-in-out infinite;
}

.pv-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.pv-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(145deg, #4d9fff, #1638ff);
  margin-bottom: 8px;
  box-shadow: 0 0 12px rgba(47, 123, 255, 0.5);
}

.pv-ico {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.pv-ico.is-on {
  background: rgba(47, 123, 255, 0.45);
  box-shadow: 0 0 10px rgba(47, 123, 255, 0.4);
}

.pv-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
}

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

.pv-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.pv-price {
  color: var(--muted);
  font-weight: 500;
}

.pv-tfs {
  display: flex;
  gap: 4px;
}

.pv-tfs span {
  font-size: 0.65rem;
  color: var(--muted-2);
  padding: 2px 6px;
  border-radius: 6px;
}

.pv-tfs .on {
  color: var(--text);
  background: rgba(47, 123, 255, 0.25);
}

.pv-chart {
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.pv-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pv-grid path {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1;
  fill: none;
}

.candles line {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}

.candles rect.up {
  fill: var(--green);
}

.candles rect.down {
  fill: var(--red);
}

.pv-line {
  fill: none;
  stroke: #4d9fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(47, 123, 255, 0.8));
}

.pv-bottom {
  margin-top: 10px;
}

.pv-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.68rem;
  color: var(--muted-2);
}

.pv-tabs .on {
  color: var(--text);
  font-weight: 600;
}

.pv-panels {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.gauge-ring {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    conic-gradient(#2f7bff 0 72%, rgba(255, 255, 255, 0.08) 72% 100%);
  box-shadow: 0 0 16px rgba(47, 123, 255, 0.35);
}

.gauge-ring strong,
.gauge-ring small {
  grid-area: 1 / 1;
}

.gauge-ring {
  position: relative;
}

.gauge-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: #0a101c;
}

.gauge-ring strong {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  line-height: 1;
}

.gauge-ring small {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: 0.52rem;
  color: var(--muted);
}

.pv-gauge > span {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
}

.pv-insights {
  margin: 0;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.pv-side {
  border-left: 1px solid var(--line);
  padding: 12px 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.65rem;
}

.pv-side-title,
.pv-movers-title {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.pv-movers-title {
  margin-top: 14px;
}

.pv-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  color: var(--muted);
}

.pv-row b {
  color: var(--text);
  font-weight: 500;
}

.pv-row i {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
}

.mover {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  color: var(--muted);
}

.mover .bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.mover .bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7bff, #5ce1ff);
}

.mover i {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
}

@keyframes floatPreview {
  0%,
  100% {
    transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg) translateY(0);
  }
  50% {
    transform: rotateY(-10deg) rotateX(3deg) rotateZ(0.5deg) translateY(-8px);
  }
}

/* ——— Features ——— */
.features {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

#markets-body tr[data-symbol] {
  cursor: pointer;
}

.section-kicker {
  margin: 0 0 28px;
  text-align: center;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  padding: 8px 8px 0;
}

.feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--blue-bright);
  border: 1px solid rgba(47, 123, 255, 0.35);
  background: rgba(47, 123, 255, 0.1);
  box-shadow: 0 0 24px rgba(47, 123, 255, 0.15);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 28ch;
}

/* ——— Footer ticker ——— */
.tickerbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
}

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.ticker-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 220, 151, 0.8);
}

.ticker-status em {
  font-style: normal;
  color: var(--green);
  font-weight: 500;
}

.ticker-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-move {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 28s linear infinite;
  color: var(--muted);
}

.ticker-move b {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.ticker-move i {
  font-style: normal;
  margin-left: 6px;
  font-weight: 700;
}

.ticker-link {
  color: var(--blue-bright);
  font-weight: 600;
  white-space: nowrap;
}

.ticker-link:hover {
  color: var(--cyan);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .topnav {
    grid-template-columns: auto 1fr;
    gap: 12px;
    width: min(1240px, calc(100% - 32px));
  }

  .nav-links {
    display: none;
  }

  .nav-search {
    display: none !important;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    width: min(1240px, calc(100% - 32px));
    padding: 20px 0 40px;
  }

  .hero-preview {
    order: -1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    perspective: none;
  }

  .preview-window {
    width: 100%;
    max-width: 560px;
    height: min(52vw, 380px);
    min-height: 280px;
    margin: 0 auto;
    transform: none;
    animation: none;
  }

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

  .features,
  .markets,
  .news,
  .learn {
    width: min(1240px, calc(100% - 32px));
  }

  .news-grid,
  .learn-grid,
  .profile-meta {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 56px;
  }

  .topnav {
    width: calc(100% - 24px);
    gap: 8px;
    padding: 14px 0;
  }

  .brand-word {
    letter-spacing: 0.2em;
    font-size: 0.92rem;
  }

  .nav-right {
    gap: 6px;
  }

  .theme-btn {
    display: none;
  }

  .link-login {
    display: none;
  }

  .btn-primary {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    border-radius: 9px;
  }

  .lang-switch {
    transform: scale(0.95);
    transform-origin: center right;
  }

  .hero {
    width: calc(100% - 24px);
    gap: 22px;
    padding: 12px 0 32px;
  }

  .hero-copy {
    min-width: 0;
  }

  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    max-width: none;
  }

  .lead {
    font-size: 0.95rem;
    max-width: none;
  }

  .hero-search {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 5px 5px 5px 14px;
  }

  .search-go {
    width: 42px;
    height: 42px;
  }

  .mini-tickers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
    margin-top: 20px;
  }

  .mini-card {
    min-width: 0;
    padding: 10px;
  }

  .mini-price {
    font-size: 0.84rem;
  }

  .spark {
    width: 48px;
  }

  .hero-preview {
    margin: 0 -4px;
  }

  .preview-glow {
    inset: 8% 0;
  }

  .preview-window {
    grid-template-columns: 32px minmax(0, 1fr);
    width: 100%;
    height: 260px;
    min-height: 240px;
    border-radius: 14px;
    transform: none !important;
    animation: none !important;
  }

  .pv-side {
    display: none;
  }

  .pv-rail {
    gap: 10px;
    padding: 12px 0;
  }

  .pv-main {
    min-width: 0;
    padding: 10px;
  }

  .pv-chart-head {
    gap: 6px;
  }

  .pv-pair {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
  }

  .pv-tfs {
    display: none;
  }

  .pv-bottom {
    margin-top: 8px;
  }

  .pv-insights {
    font-size: 0.58rem;
  }

  .features,
  .markets,
  .news,
  .learn {
    width: calc(100% - 24px);
    padding: 8px 0 56px;
  }

  .profile-main {
    width: calc(100% - 24px);
  }

  .profile-hero {
    align-items: flex-start;
  }

  .profile-meta {
    grid-template-columns: 1fr;
  }

  .markets-table th:nth-child(4),
  .markets-table td:nth-child(4),
  .markets-table th:nth-child(5),
  .markets-table td:nth-child(5),
  .markets-table th:nth-child(6),
  .markets-table td:nth-child(6) {
    display: none;
  }

  .section-kicker {
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    margin-bottom: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }

  .feature-ico {
    grid-row: span 2;
    margin-bottom: 0;
    width: 44px;
    height: 44px;
  }

  .feature h3 {
    margin: 0;
    font-size: 0.98rem;
  }

  .feature p {
    max-width: none;
    font-size: 0.86rem;
  }

  .tickerbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 48px;
    padding: 0 12px;
  }

  .ticker-status {
    font-size: 0.7rem;
  }

  .ticker-status em,
  .ticker-link {
    display: none;
  }

  .ticker-track {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .brand-word {
    display: none;
  }

  .btn-primary {
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .preview-window {
    height: 220px;
    min-height: 220px;
    grid-template-columns: 1fr;
  }

  .pv-rail {
    display: none;
  }

  .mini-price {
    font-size: 0.78rem;
  }

  .up,
  .down {
    font-size: 0.68rem;
  }
}

html[dir="rtl"] .brand-word {
  letter-spacing: 0.18em;
  text-indent: 0;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-kicker {
  letter-spacing: 0.12em;
}

html[dir="rtl"] .hero-search {
  padding: 6px 18px 6px 6px;
}

html[dir="rtl"] .ticker-move {
  animation-direction: reverse;
}

html[dir="rtl"] .lang-switch {
  transform-origin: center left;
}

html[dir="rtl"] .feature {
  grid-template-columns: auto 1fr;
}

@media (prefers-reduced-motion: reduce) {
  .preview-window,
  .ticker-move {
    animation: none !important;
  }
}
