:root {
  --blue: #0066cc;
  --blue-focus: #0071e3;
  --blue-dark: #2997ff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --dark: #272729;
  --black: #000000;
  --hairline: #e0e0e0;
  --gain: #d92d20;
  --loss: #16845b;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 400 17px/1.47 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button, input, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
button:active, .button:active, .nav-button:active { transform: scale(.95); }
:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; color: white; background: var(--blue); border-radius: 999px; }
.skip-link:focus { top: 8px; }

.global-nav { height: 44px; color: white; background: var(--black); }
.nav-inner, .sub-nav-inner, .footer-inner, .legal { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.nav-inner { height: 44px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: white; font-size: 13px; font-weight: 600; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; }
.global-nav a, .nav-account { color: #f5f5f7; font-size: 12px; letter-spacing: -.01em; }
.global-nav a:hover { color: white; }
.nav-account { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.nav-account form { display: flex; }
.nav-user { color: #a1a1a6; }
.nav-button { display: inline-block; border: 0; border-radius: 8px; padding: 6px 12px; color: white !important; background: #1d1d1f; cursor: pointer; font-size: 12px; }

.sub-nav { height: 52px; position: sticky; top: 0; z-index: 30; background: rgb(245 245 247 / 82%); border-bottom: 1px solid rgb(0 0 0 / 8%); backdrop-filter: saturate(180%) blur(18px); }
.sub-nav-inner { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.product-name { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sub-nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.sub-nav-links > a:not(.button) { color: #333336; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid var(--blue); border-radius: 9999px; color: white; background: var(--blue); cursor: pointer; font-weight: 400; letter-spacing: -.015em; transition: transform .12s ease, background .12s ease; }
.button:hover { background: var(--blue-focus); }
.button:disabled { border-color: #d2d2d7; color: #86868b; background: #e8e8ed; cursor: not-allowed; }
.button-small { min-height: 30px; padding: 5px 13px; font-size: 13px; }
.button-large { min-height: 52px; padding: 13px 28px; font-size: 18px; font-weight: 300; }
.button-block { width: 100%; }
.button-secondary { color: var(--blue); background: transparent; }
.button-secondary:hover { color: white; }
.button-link { color: var(--blue); font-size: 17px; }
.button-link span { font-size: 23px; vertical-align: -1px; }

.tile-light { background: var(--canvas); }
.tile-parchment { background: var(--parchment); }
.tile-dark { color: white; background: var(--dark); }
.content-wide { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.content-narrow { width: min(calc(100% - 48px), 980px); margin-inline: auto; }
.centered { text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.tile-dark .eyebrow, .light .eyebrow { color: var(--blue-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.03; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.2; }

.landing-hero { min-height: 730px; padding: 86px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; overflow: hidden; }
.hero-copy h1 { margin-bottom: 24px; font-size: clamp(54px, 6.5vw, 82px); }
.hero-lead { max-width: 560px; color: #424245; font-size: 24px; font-weight: 300; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.market-object { position: relative; min-width: 580px; padding: 28px 30px 22px; overflow: hidden; border: 1px solid var(--hairline); border-radius: 18px; background: var(--pearl); box-shadow: rgba(0, 0, 0, .22) 3px 5px 30px; transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); }
.object-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue); }
.market-object > strong { display: inline-block; margin-top: 12px; font-size: 38px; letter-spacing: -.035em; }
.object-return { margin-left: 12px; color: var(--gain); font-size: 15px; }
.market-object svg { display: block; width: calc(100% + 60px); height: 230px; margin: 12px -30px 0; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-area { fill: #eaf4ff; stroke: none; }
.object-footer { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12px; line-height: 1.4; }
.object-footer b { color: var(--ink); font-size: 16px; font-weight: 600; }

.landing-stats { padding: 100px max(24px, calc((100vw - var(--max)) / 2)) 110px; }
.section-heading { margin-bottom: 52px; text-align: center; }
.section-heading h2 { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #4a4a4d; }
.feature-grid article { min-height: 260px; padding: 32px 36px 20px 0; border-right: 1px solid #4a4a4d; }
.feature-grid article + article { padding-left: 36px; }
.feature-grid article:last-child { border-right: 0; }
.feature-number { color: #86868b; font-size: 12px; }
.feature-grid h3 { margin: 65px 0 12px; }
.feature-grid p { color: #c7c7cc; }
.landing-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 80px max(24px, calc((100vw - var(--max)) / 2)); }
.proof-metric { padding: 30px; text-align: center; border-right: 1px solid var(--hairline); }
.proof-metric:nth-child(3) { border: 0; }
.proof-metric strong { display: block; font-size: 48px; font-weight: 600; letter-spacing: -.04em; }
.proof-metric span { color: var(--muted); font-size: 14px; }
.proof-cta { grid-column: 1 / -1; margin-top: 70px; text-align: center; }
.proof-cta h2 { max-width: 760px; margin: 0 auto 30px; }

.page-hero { padding: 80px 0; }
.page-hero.compact-tile, .compact-tile { padding-block: 64px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p:last-child { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 19px; }
.page-hero .content-wide > p:last-child { margin-left: 0; }
.tile-dark.page-hero p:last-child { color: #ccc; }

.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.dashboard-heading h1 { margin: 0; font-size: clamp(44px, 7vw, 72px); }
.dashboard-heading p:last-child { margin: 8px 0 0; color: #aaa; }
.return-badge { display: flex; flex-direction: column; align-items: flex-end; font-size: 30px; font-weight: 600; }
.return-badge small { margin-top: 5px; color: #aaa; font-size: 12px; font-weight: 400; }
.return-badge.positive { color: #ff6b64; }
.return-badge.negative { color: #54c79a; }
.asset-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 52px; padding-top: 26px; border-top: 1px solid #4a4a4d; }
.asset-strip span { display: block; margin-bottom: 6px; color: #aaa; font-size: 13px; }
.asset-strip strong { font-size: 20px; }
.asset-strip small { color: #aaa; font-size: 13px; }
.status-text { color: var(--blue-dark); }
.dashboard-content, .list-content { padding-block: 72px 100px; }
.market-hero { padding-bottom: 32px; }
.market-list-content { padding-top: 24px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-title-row.lower { margin-top: 75px; }
.section-title-row h2 { margin: 0; }
.chart-card { height: 350px; margin-bottom: 75px; padding: 24px 28px 18px; border: 1px solid var(--hairline); border-radius: 18px; }
#portfolio-chart { width: 100%; height: 270px; overflow: visible; }
.chart-grid { fill: none; stroke: #eeeef0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.portfolio-line { fill: none; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-point { fill: white; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }
.empty-chart { height: 100%; display: grid; place-items: center; position: relative; color: var(--faint); }
.empty-chart i { position: absolute; left: 0; right: 0; bottom: 60px; border-top: 1px solid var(--hairline); }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--hairline); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 14px; }
th { padding: 13px 18px; color: var(--muted); background: var(--pearl); font-size: 12px; font-weight: 600; text-align: left; }
td { padding: 16px 18px; border-top: 1px solid #ededed; font-variant-numeric: tabular-nums; }
td strong { display: block; font-weight: 600; }
td small { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
.gain { color: var(--gain) !important; }
.loss { color: var(--loss) !important; }
.empty-cell { padding: 70px !important; color: var(--muted); text-align: center; }
.empty-state { padding: 70px 30px; border: 1px solid var(--hairline); border-radius: 18px; text-align: center; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 540px; margin: 0 auto 24px; color: var(--muted); }
.empty-icon { margin-bottom: 16px; color: var(--blue); font-size: 50px; }
.activity-list { border-top: 1px solid var(--hairline); }
.activity-list > div { display: grid; grid-template-columns: 50px 1fr 1fr auto; align-items: center; gap: 20px; padding: 17px 4px; border-bottom: 1px solid var(--hairline); }
.activity-list > div > span:not(.side-chip), .activity-list time { color: var(--muted); font-size: 14px; }
.side-chip { display: inline-flex; justify-content: center; width: fit-content; min-width: 34px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.side-chip.buy { color: #b42318; background: #fff0ee; }
.side-chip.sell { color: #067647; background: #ecfdf3; }

.trade-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 60px; align-items: start; padding-block: 72px 110px; }
.trade-panel { max-width: 720px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.panel-header h2 { margin: 0; }
.market-pill { padding: 7px 12px; border-radius: 999px; color: var(--muted); background: var(--parchment); font-size: 12px; white-space: nowrap; }
.market-pill.success { color: var(--blue); background: #edf6ff; }
.market-pill.closed, .market-pill.waiting { color: #b42318; background: #fff0ee; font-weight: 600; }
.trade-availability { display: flex; gap: 14px; margin: -12px 0 30px; padding: 18px 20px; border: 1px solid; border-radius: 14px; }
.trade-availability .availability-mark { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; font-weight: 700; }
.trade-availability strong { display: block; margin-bottom: 5px; font-size: 16px; }
.trade-availability p { margin: 0; font-size: 13px; line-height: 1.55; }
.trade-availability p + p { margin-top: 5px; }
.trade-availability b { font-weight: 600; }
.trade-availability.is-open { color: #075985; border-color: #b9dcf7; background: #f0f8ff; }
.trade-availability.is-open .availability-mark { background: var(--blue); }
.trade-availability.is-open .availability-mark::before { width: 8px; height: 4px; border-bottom: 2px solid white; border-left: 2px solid white; content: ""; transform: rotate(-45deg) translate(1px, -1px); }
.trade-availability.is-unavailable { color: #8f1d14; border-color: #f1b7b2; border-left-width: 5px; background: #fff4f2; box-shadow: 0 8px 24px rgb(180 35 24 / 8%); }
.trade-availability.is-unavailable .availability-mark { color: white; background: #b42318; }
.trade-availability .availability-reason { font-size: 15px; font-weight: 600; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 30px; padding: 4px; border-radius: 999px; background: var(--parchment); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 9px; border-radius: 999px; text-align: center; cursor: pointer; }
.segmented input:checked + span { color: white; background: var(--blue); }
.field { margin-bottom: 24px; }
.field > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select, .filter-bar select { width: 100%; height: 48px; padding: 11px 16px; border: 1px solid #b9b9bd; border-radius: 11px; color: var(--ink); background: white; outline: none; }
.field input:focus, .field select:focus, .filter-bar select:focus { border-color: var(--blue-focus); box-shadow: 0 0 0 1px var(--blue-focus); }
.field > small { display: block; margin-top: 7px; color: var(--faint); font-size: 12px; }
.field-error { display: block; margin-top: 6px; color: #b42318; font-size: 13px; }
.quantity-input { position: relative; }
.quantity-input input { padding-right: 50px; }
.quantity-input span { position: absolute; right: 16px; top: 12px; color: var(--muted); }
.quote-preview { min-height: 28px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.quote-preview strong { color: var(--ink); }
.quote-preview .quote-change { margin-left: 10px; }
.order-summary { margin: 32px 0; padding: 19px 21px; border-radius: 18px; background: var(--parchment); }
.order-summary > div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 14px; }
.order-summary strong { color: var(--ink); font-weight: 400; }
.order-summary .summary-total { margin-top: 12px; padding-top: 16px; border-top: 1px solid #d7d7da; color: var(--ink); font-size: 17px; }
.order-summary .summary-total strong { font-weight: 600; }
.trade-warning { margin: 13px 0 0; color: var(--faint); font-size: 12px; text-align: center; }
.account-panel { position: sticky; top: 84px; padding: 30px; border: 1px solid var(--hairline); border-radius: 18px; }
.account-panel h2 { margin-bottom: 0; font-size: 34px; }
.account-panel > span { color: var(--muted); font-size: 13px; }
.account-panel > div { display: flex; justify-content: space-between; margin-top: 22px; font-size: 14px; }
.account-panel hr { margin: 25px 0; border: 0; border-top: 1px solid var(--hairline); }
.account-panel p { color: var(--muted); font-size: 14px; }
.account-panel a { font-size: 14px; }

.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) 180px auto auto; gap: 12px; margin-bottom: 24px; }
.search-field { position: relative; }
.search-field span { position: absolute; top: 8px; left: 15px; color: var(--muted); font-size: 23px; }
.search-field input { width: 100%; height: 44px; padding: 10px 16px 10px 45px; border: 1px solid rgb(0 0 0 / 8%); border-radius: 999px; background: white; }
.filter-bar select { height: 44px; padding: 8px 13px; border-color: var(--hairline); border-radius: 999px; font-size: 14px; }
.market-table td:nth-child(n+2) { text-align: right; }
.market-table th:nth-child(n+2) { text-align: right; }
.market-table { overflow: visible; }
.market-table table { border-collapse: separate; border-spacing: 0; }
.market-table thead { position: sticky; top: 0; z-index: 25; box-shadow: 0 8px 20px rgb(0 0 0 / 18%); }
.market-table th { padding-block: 10px; color: white; background: #353538; border-bottom: 1px solid #1d1d1f; font-size: 13px; }
.market-table th:first-child { border-top-left-radius: 16px; }
.market-table th:last-child { border-top-right-radius: 16px; }
.market-table td { padding-block: 10px; }
.market-table tbody tr:nth-child(even) { background: #f5f5f7; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 30px; font-size: 14px; }
.pagination a, .pagination span { min-width: 72px; padding: 8px 14px; border-radius: 999px; text-align: center; }
.pagination a { border: 1px solid var(--blue); }
.pagination > span:not(.page-current) { color: #aaa; border: 1px solid var(--hairline); }
.pagination .page-current { min-width: auto; color: var(--muted); }

.ranking-content { padding-block: 80px 110px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin-bottom: 56px; }
.podium-item { flex: 1; min-width: 0; min-height: 260px; padding: 28px 16px; border: 1px solid var(--hairline); border-radius: 18px; text-align: center; }
.podium-item.place-1 { order: 2; min-height: 300px; padding-top: 42px; }
.podium-item.place-2 { order: 1; }
.podium-item.place-3 { order: 3; }
.rank-medal { display: block; margin-bottom: 14px; color: var(--blue); font-size: 13px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; color: white; background: var(--ink); font-size: 24px; font-weight: 600; }
.avatar.small { width: 38px; height: 38px; margin: 0; font-size: 15px; }
.podium-item > strong, .podium-item > small, .podium-item > b, .podium-item > em { display: block; }
.podium-item > small { color: var(--faint); font-size: 12px; }
.podium-item > b { margin-top: 26px; font-size: 18px; }
.podium-item > em { margin-top: 4px; font-size: 14px; font-style: normal; }
.ranking-list { border-top: 1px solid var(--hairline); }
.ranking-row { display: grid; grid-template-columns: 44px 46px 1fr 180px 130px; gap: 12px; align-items: center; padding: 17px 14px; border-bottom: 1px solid var(--hairline); }
.ranking-row.is-me { background: #f3f8fe; }
.rank-number { color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.rank-user strong, .rank-asset strong, .rank-return strong { display: block; }
.rank-user small, .rank-asset small, .rank-return small { display: block; color: var(--faint); font-size: 12px; }
.rank-user i { margin-left: 7px; padding: 2px 7px; border-radius: 999px; color: var(--blue); background: white; font-size: 10px; font-style: normal; }
.rank-asset, .rank-return { text-align: right; }

.rules-section, .fees-section { padding: 95px 0; }
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.rules-grid article { min-height: 240px; padding: 28px 34px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.rules-grid article > span { color: var(--blue); font-size: 12px; }
.rules-grid h3 { margin: 55px 0 10px; }
.rules-grid p { color: var(--muted); font-size: 15px; }
.fee-table { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #4a4a4d; border-bottom: 1px solid #4a4a4d; }
.fee-table > div { padding: 36px 28px; border-right: 1px solid #4a4a4d; text-align: center; }
.fee-table > div:last-child { border: 0; }
.fee-table span { color: #aaa; font-size: 14px; }
.fee-table strong { display: block; margin: 25px 0 10px; font-size: 38px; }
.fee-table p { margin: 0; color: #ccc; font-size: 13px; }
.rules-note { margin: 22px 0 0; color: #aaa; font-size: 12px; text-align: center; }

.auth-shell { min-height: 700px; padding: 90px max(24px, calc((100vw - 1020px) / 2)); display: grid; grid-template-columns: 1fr 440px; gap: 100px; align-items: center; }
.auth-intro h1 { margin-bottom: 22px; font-size: 58px; }
.auth-intro > p:last-child { max-width: 430px; color: var(--muted); }
.form-card { padding: 38px; border-radius: 18px; background: white; }
.form-card.bordered { border: 1px solid var(--hairline); }
.form-card h2 { margin-bottom: 8px; }
.form-subtitle { margin-bottom: 30px; color: var(--muted); font-size: 14px; }
.form-foot { margin: 22px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.flash-stack { position: fixed; z-index: 80; top: 110px; left: 50%; width: min(calc(100% - 32px), 560px); transform: translateX(-50%); }
.flash { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; padding: 13px 16px; border: 1px solid var(--hairline); border-radius: 11px; color: var(--ink); background: rgb(255 255 255 / 94%); backdrop-filter: blur(18px); font-size: 14px; }
.flash-success { border-color: #9bdec5; }
.flash-error { border-color: #f3b4ae; }
.flash button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }

.footer { padding: 64px 0 22px; color: #333; background: var(--parchment); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.footer-brand { font-size: 20px; font-weight: 600; }
.footer p { max-width: 420px; margin: 12px 0; color: var(--muted); font-size: 12px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-links strong, .footer-links a { display: block; }
.footer-links strong { margin-bottom: 10px; font-size: 13px; }
.footer-links a { margin: 7px 0; color: #424245; font-size: 12px; }
.legal { margin-top: 45px; padding-top: 18px; border-top: 1px solid #d2d2d7; color: var(--faint); font-size: 11px; }
.error-page { min-height: 620px; padding: 120px 24px; text-align: center; }
.error-page > strong { color: var(--blue); font-size: 16px; }
.error-page h1 { margin: 12px 0; }
.error-page p { margin-bottom: 28px; color: var(--muted); }

@media (max-width: 960px) {
  .nav-links { gap: 16px; }
  .landing-hero { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .market-object { min-width: 0; width: min(100%, 680px); margin: auto; transform: none; }
  .trade-layout { grid-template-columns: 1fr; }
  .trade-panel { max-width: none; }
  .account-panel { position: static; }
  .auth-shell { grid-template-columns: 1fr; gap: 50px; }
  .auth-intro { text-align: center; }
  .auth-intro > p:last-child { margin-inline: auto; }
  .form-card { width: min(100%, 520px); margin: auto; }
  .market-table { max-height: calc(100vh - 80px); overflow: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-inner, .sub-nav-inner, .footer-inner, .legal { width: min(calc(100% - 28px), var(--max)); }
  .nav-inner { justify-content: space-between; }
  .brand span, .nav-user { display: none; }
  .nav-links { flex: none; }
  .nav-links a:nth-child(n+3) { display: none; }
  .nav-account > a:first-child { display: none; }
  .sub-nav-links > a:not(.button) { display: none; }
  .content-wide, .content-narrow { width: min(calc(100% - 30px), var(--max)); }
  .landing-hero { min-height: auto; padding: 68px 18px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-lead { font-size: 20px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .market-object { padding-inline: 20px; text-align: left; }
  .market-object > strong { font-size: 28px; }
  .market-object svg { width: calc(100% + 40px); height: 170px; margin-inline: -20px; }
  .object-footer { gap: 10px; }
  .object-footer b { font-size: 13px; }
  .landing-stats { padding: 70px 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article + article { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid #4a4a4d; }
  .feature-grid h3 { margin-top: 32px; }
  .landing-proof { grid-template-columns: 1fr; padding: 50px 20px; }
  .proof-metric { border-right: 0; border-bottom: 1px solid var(--hairline) !important; }
  .proof-cta { margin-top: 50px; }
  .page-hero, .page-hero.compact-tile, .compact-tile { padding-block: 52px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .return-badge { align-items: flex-start; }
  .asset-strip { grid-template-columns: 1fr 1fr; }
  .dashboard-content, .list-content, .ranking-content { padding-block: 52px 75px; }
  .market-hero { padding-bottom: 28px; }
  .market-list-content { padding-top: 20px; }
  .section-title-row { align-items: flex-start; }
  .chart-card { height: 280px; padding-inline: 14px; }
  #portfolio-chart { height: 210px; }
  .activity-list > div { grid-template-columns: 42px 1fr; gap: 8px 12px; }
  .activity-list time { text-align: right; }
  .trade-layout { gap: 35px; padding-block: 52px 75px; }
  .panel-header { flex-direction: column; }
  .filter-bar { grid-template-columns: minmax(0, 1fr) auto auto; }
  .filter-bar .search-field { grid-column: 1 / -1; }
  .podium { align-items: stretch; gap: 7px; }
  .podium-item, .podium-item.place-1 { min-height: 0; padding: 20px 6px; }
  .avatar { width: 48px; height: 48px; }
  .podium-item > b { margin-top: 17px; font-size: 13px; }
  .podium-item > strong { font-size: 14px; }
  .ranking-row { grid-template-columns: 30px 38px 1fr 100px; padding-inline: 4px; }
  .rank-return { display: none; }
  .rank-asset strong { font-size: 13px; }
  .rules-grid, .fee-table { grid-template-columns: 1fr; }
  .fee-table > div { border-right: 0; border-bottom: 1px solid #4a4a4d; }
  .auth-shell { min-height: 0; padding: 60px 18px; }
  .auth-intro h1 { font-size: 44px; }
  .form-card { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
