:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: rgba(25, 25, 30, 0.88);
  --panel-strong: #191a1f;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f6f7fb;
  --muted: #a8abb4;
  --faint: #737883;
  --blue: #42bfff;
  --blue-strong: #17aeea;
  --green: #29d36f;
  --red: #ff6570;
  --gold: #f4b236;
  --orange: #f08a45;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

body.auth-open {
  overflow: hidden;
}

body.download-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 clamp(24px, 8vw, 176px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(4, 5, 7, 0.92);
}

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

.brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  color: rgba(247, 249, 252, 0.82);
  font-size: 15px;
  font-weight: 800;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 30px;
}

.header-download,
.header-login,
.header-register,
.primary-cta,
.video-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 900;
}

.header-register {
  padding: 0 22px;
  background: var(--blue-strong);
  color: #fff;
}

.header-login,
.header-download {
  padding: 0 20px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.header-download {
  color: var(--blue);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 74px 16px auto;
  z-index: 60;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 9, 12, 0.96);
  box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a,
.mobile-menu button {
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f5f7fb;
  text-align: left;
  font-weight: 850;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #050607;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.82) 0%, rgba(5, 6, 7, 0.62) 44%, rgba(5, 6, 7, 0.76) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.28) 0%, rgba(5, 6, 7, 0.72) 74%, #050607 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.76fr);
  align-items: center;
  gap: clamp(36px, 5.4vw, 86px);
  width: min(1580px, calc(100% - 64px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px 0 72px;
}

.hero-copy {
  max-width: 940px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(66, 191, 255, 0.38);
  border-radius: 3px;
  background: rgba(66, 191, 255, 0.12);
  color: var(--blue);
  font-weight: 950;
}

.eyebrow {
  margin-bottom: 28px;
  padding: 10px 16px;
  font-size: 15px;
}

.hero h1 {
  max-width: 940px;
  font-size: clamp(44px, 4.1vw, 68px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline;
}

.hero h1 .blue {
  display: inline-block;
  color: var(--blue);
}

.hero h1 .warm {
  display: block;
  margin-top: 8px;
  color: var(--orange);
}

.hero-lead {
  max-width: 760px;
  margin-top: 28px;
  color: #babec8;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.65;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
}

.primary-cta {
  min-width: 236px;
  padding: 0 30px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 38px rgba(23, 174, 234, 0.26);
}

.video-cta {
  min-width: 150px;
  padding: 0 20px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.primary-action,
.secondary-action {
  min-height: 50px;
  border-radius: 4px;
}

.primary-action {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 34px rgba(23, 174, 234, 0.24);
}

.secondary-action {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 78px;
}

.feature-tile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(25, 26, 31, 0.68);
  backdrop-filter: blur(12px);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(66, 191, 255, 0.4);
  border-radius: 4px;
  color: var(--blue);
  font-size: 22px;
}

.feature-tile strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
}

.feature-tile small {
  color: var(--muted);
  font-size: 15px;
}

.market-panel {
  min-height: 618px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(25, 25, 30, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.market-topline,
.symbol-control,
.quote-line,
.range-card header,
.range-values,
.table-footer {
  display: flex;
  align-items: center;
}

.market-topline {
  justify-content: space-between;
  gap: 18px;
}

.symbol-control {
  gap: 12px;
  min-width: 0;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(41, 211, 111, 0.08);
  flex: 0 0 auto;
}

select,
input {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(12, 13, 16, 0.82);
  color: #fff;
  outline: none;
}

select {
  appearance: none;
  min-width: 220px;
  padding: 0 42px 0 14px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.8) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-weight: 850;
}

input {
  padding: 0 16px;
}

select:focus,
input:focus {
  border-color: rgba(66, 191, 255, 0.72);
}

.symbol-picker {
  position: relative;
  min-width: 280px;
}

.symbol-picker-button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 54px;
  padding: 8px 48px 8px 16px;
  border: 1px solid rgba(66, 191, 255, 0.48);
  border-radius: 5px;
  background: rgba(10, 11, 14, 0.9);
  color: #fff;
  text-align: left;
}

.symbol-picker-button::after {
  position: absolute;
  top: 21px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.symbol-picker-button[aria-expanded="true"]::after {
  top: 25px;
  transform: rotate(225deg);
}

.symbol-picker-button span {
  font-size: 16px;
  font-weight: 950;
}

.symbol-picker-button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.symbol-picker-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: min(420px, 76vw);
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(14, 15, 19, 0.98);
  box-shadow: var(--shadow);
}

.symbol-picker-menu input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
}

.symbol-picker-list {
  display: grid;
  max-height: 310px;
  overflow: auto;
  overscroll-behavior: contain;
}

.symbol-picker-list button {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.symbol-picker-list button:hover,
.symbol-picker-list button.is-active {
  background: rgba(66, 191, 255, 0.14);
}

.symbol-picker-list span {
  font-weight: 950;
}

.symbol-picker-list small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.symbol-empty {
  margin: 0;
  padding: 16px 10px;
  color: var(--muted);
  font-weight: 800;
}

.quote-time {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.quote-line {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.quote-line strong {
  font-size: clamp(50px, 4.3vw, 68px);
  line-height: 1;
  font-weight: 950;
}

.quote-line span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
}

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

#quoteChange.is-down {
  color: var(--red);
}

.quote-status {
  margin-top: 12px;
  color: #e4e6ec;
  font-size: 17px;
  font-weight: 800;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.range-card {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.026);
}

.range-card header {
  justify-content: space-between;
  gap: 12px;
}

.range-card header strong {
  font-size: 16px;
}

.range-card header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.range-track {
  position: relative;
  height: 9px;
  margin-top: 25px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 101, 112, 0.5), rgba(244, 178, 54, 0.42), rgba(41, 211, 111, 0.5));
}

.range-track span {
  position: absolute;
  top: -5px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 99px;
  background: var(--blue);
}

.range-values {
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.range-values span {
  display: grid;
  gap: 5px;
}

.range-values b {
  color: #fff;
  font-size: 17px;
}

#heroChart {
  display: block;
  width: 100%;
  height: 290px;
  margin-top: 28px;
}

.section,
.site-footer {
  width: min(1580px, calc(100% - 64px));
  margin: 0 auto;
}

.section {
  padding: 82px 0 34px;
}

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

.center-heading .eyebrow,
.section-kicker {
  padding: 8px 14px;
  margin-bottom: 22px;
}

.center-heading h2,
.section-heading h2 {
  font-size: clamp(30px, 3.6vw, 58px);
  line-height: 1.15;
  font-weight: 950;
}

.center-heading h2 {
  max-width: 900px;
  margin: 0 auto;
}

.center-heading h2::first-letter,
.section-heading h2::first-letter {
  color: inherit;
}

.center-heading > span {
  display: block;
  width: 220px;
  height: 3px;
  margin: 34px auto;
  background: var(--blue);
}

.center-heading p,
.section-heading p,
.info-grid p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 650;
}

.section-heading {
  max-width: 880px;
}

.section-heading .section-kicker {
  color: var(--gold);
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.product-card {
  min-height: 176px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  background: var(--panel);
}

.product-card:nth-child(2) {
  border-top-color: #a855f7;
}

.product-card:nth-child(3) {
  border-top-color: #f3a21f;
}

.product-card:nth-child(4) {
  border-top-color: #4388ff;
}

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

.product-card h3 {
  font-size: 24px;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 900;
}

.tag {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.product-card dl {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
}

.product-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-card dt,
.product-card dd {
  margin: 0;
}

.product-card dt {
  color: var(--muted);
}

.product-card dd {
  color: #fff;
  font-weight: 850;
}

.market-tabs {
  display: flex;
  justify-content: center;
  margin: 42px 0 34px;
}

.market-tabs span {
  display: inline-flex;
  min-width: 340px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-bottom-color: rgba(66, 191, 255, 0.55);
  background: rgba(255, 255, 255, 0.035);
  font-size: 20px;
  font-weight: 900;
}

.conditions-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(20, 21, 25, 0.88);
  overflow: hidden;
}

.conditions-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.conditions-head h3 {
  font-size: 26px;
}

.conditions-head p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.filters {
  display: grid;
  grid-template-columns: 220px 340px;
  gap: 14px;
}

.filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.filters select,
.filters input {
  width: 100%;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

th,
td {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

td {
  color: #f0f2f7;
  font-size: 16px;
  font-weight: 780;
}

td .muted {
  color: var(--muted);
  font-weight: 650;
}

.status-pill {
  min-height: 28px;
  padding: 0 10px;
  background: rgba(41, 211, 111, 0.12);
  color: #69e99f;
  font-size: 13px;
}

.status-pill.is-paused {
  background: rgba(255, 101, 112, 0.12);
  color: #ff98a0;
}

.condition-list {
  display: none;
}

.condition-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.condition-card h3 {
  font-size: 24px;
}

.condition-card .condition-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.condition-card .metric {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.condition-card .metric b {
  color: #fff;
  font-size: 22px;
}

.condition-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.condition-card footer a {
  color: var(--blue);
  font-weight: 900;
}

.condition-card footer button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.table-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  color: var(--muted);
  font-weight: 800;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.pager button.is-active {
  border-color: var(--blue);
  background: var(--blue);
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.info-grid,
.account-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(66, 191, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 34px;
}

.info-grid article {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.028);
}

.info-grid h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 68px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 750;
}

.ad-section {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #08090b;
}

.ad-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.ad-section::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.9), rgba(5, 6, 7, 0.58)),
    linear-gradient(180deg, rgba(5, 6, 7, 0.15), rgba(5, 6, 7, 0.82));
  content: "";
}

.ad-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.ad-content h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.12;
}

.ad-content p:not(.section-kicker) {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 700;
}

.ad-content > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: min(900px, calc(100svh - 56px));
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(18, 19, 24, 0.98);
  box-shadow: var(--shadow);
}

.auth-modal[data-mode="register"] .auth-dialog {
  width: min(920px, 100%);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.auth-head {
  max-width: 680px;
}

.auth-head h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.auth-head p:not(.section-kicker) {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-form input,
.auth-form select {
  width: 100%;
}

.auth-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.auth-form legend {
  padding: 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.auth-form .wide,
.phone-row {
  grid-column: 1 / -1;
}

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

.document-upload {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.024);
}

.document-upload strong {
  font-size: 16px;
}

.document-upload small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-upload div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.document-upload label {
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(66, 191, 255, 0.35);
  border-radius: 5px;
  color: var(--blue);
}

.document-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-message {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 850;
}

.auth-message[data-tone="success"] {
  color: #70e6a1;
}

.auth-message[data-tone="error"] {
  color: #ff98a0;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 28px;
}

.download-modal[hidden] {
  display: none !important;
}

.download-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.download-dialog {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(66, 191, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(15, 16, 20, 0.98);
  box-shadow: var(--shadow);
}

.download-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-right: 46px;
}

.download-brand img {
  width: 52px;
  height: 40px;
  object-fit: contain;
}

.download-brand span {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 1px;
}

.download-head h2 {
  margin-top: 20px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.download-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 750;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.download-option {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(66, 191, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 9, 14, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.download-option:hover {
  border-color: rgba(66, 191, 255, 0.56);
  background: rgba(66, 191, 255, 0.08);
}

.download-os-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(66, 191, 255, 0.34);
  border-radius: 14px;
  color: #fff;
  background: rgba(66, 191, 255, 0.1);
}

.download-os-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.download-option[data-download-platform="ios"] .download-os-icon svg {
  fill: currentColor;
  stroke: none;
}

.download-option strong,
.download-option small,
.download-option em {
  display: block;
}

.download-option strong {
  color: #fff;
  font-size: 23px;
  font-weight: 950;
}

.download-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.download-option em {
  min-width: 64px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.download-option.is-ready em {
  background: rgba(66, 191, 255, 0.18);
  color: var(--blue);
}

.download-message {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 850;
}

.download-message[data-tone="pending"] {
  color: var(--gold);
}

.auth-switch {
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 950;
}

.site-footer .brand img {
  width: 40px;
  height: 32px;
}

.site-footer .brand span {
  font-size: 17px;
}

.is-loading {
  opacity: 0.74;
}

@media (max-width: 1180px) {
  .site-header {
    padding-inline: 38px;
  }

  .desktop-nav,
  .header-login,
  .header-register,
  .header-download {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    width: min(100% - 76px, 980px);
    padding-top: 150px;
  }

  .market-panel {
    min-height: auto;
  }

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

  .conditions-head,
  .account-section {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 84px;
    padding-inline: 22px;
  }

  .brand {
    gap: 11px;
  }

  .brand img {
    width: 58px;
    height: 44px;
  }

  .brand span {
    max-width: 210px;
    overflow: hidden;
    font-size: 20px;
    letter-spacing: 1px;
    text-overflow: ellipsis;
  }

  .menu-button {
    width: 48px;
    height: 48px;
  }

  .mobile-menu {
    inset-top: 84px;
  }

  .hero-inner,
  .section,
  .site-footer {
    width: min(100% - 30px, 560px);
  }

  .hero-inner {
    display: block;
    min-height: auto;
    padding: 132px 0 38px;
  }

  .eyebrow {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(36px, 9.8vw, 48px);
    line-height: 1.13;
  }

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

  .hero h1 .warm {
    display: block;
    margin-top: 12px;
  }

  .hero-lead {
    margin-top: 28px;
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.44fr);
    margin-top: 38px;
  }

  .primary-cta {
    width: 100%;
    min-width: 0;
    min-height: 58px;
  }

  .video-cta {
    min-width: 0;
    padding: 0;
    border-radius: 3px;
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 58px;
  }

  .feature-tile {
    min-height: 104px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .feature-tile strong {
    font-size: 16px;
  }

  .feature-tile small {
    font-size: 13px;
  }

  .market-panel {
    margin-top: 54px;
    padding: 22px;
  }

  .market-topline,
  .quote-line,
  .range-grid,
  .product-grid,
  .filters,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .symbol-control,
  .symbol-picker {
    width: 100%;
  }

  .symbol-picker-menu {
    width: 100%;
  }

  .quote-line strong {
    font-size: 56px;
  }

  .range-grid {
    display: grid;
  }

  #heroChart {
    height: 240px;
  }

  .section {
    padding-top: 72px;
  }

  .center-heading {
    text-align: center;
  }

  .center-heading h2,
  .section-heading h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .center-heading p,
  .section-heading p,
  .info-grid p {
    font-size: 18px;
  }

  .product-grid {
    display: grid;
    gap: 22px;
  }

  .product-card {
    min-height: 190px;
  }

  .market-tabs span {
    width: 100%;
    min-width: 0;
  }

  .conditions-head {
    padding: 24px;
  }

  .table-scroll {
    display: none;
  }

  .condition-list {
    display: grid;
    gap: 18px;
    padding: 22px;
  }

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

  .pager button {
    min-width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .account-section {
    padding: 30px;
  }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ad-section {
    min-height: 420px;
    padding: 30px;
  }

  .ad-content > div {
    display: grid;
  }

  .auth-modal {
    align-items: end;
    padding: 14px;
  }

  .download-modal {
    align-items: end;
    padding: 14px;
  }

  .auth-dialog {
    max-height: calc(100svh - 28px);
    padding: 24px;
  }

  .download-dialog {
    max-height: calc(100svh - 28px);
    overflow: auto;
    padding: 24px;
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .auth-form fieldset {
    grid-template-columns: 1fr;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand img {
    width: 48px;
    height: 38px;
  }

  .brand span {
    max-width: 175px;
    font-size: 17px;
  }

  .hero-inner,
  .section,
  .site-footer {
    width: min(100% - 28px, 420px);
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

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

  .quote-line strong {
    font-size: 48px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .auth-dialog {
    padding: 20px;
  }

  .download-dialog {
    padding: 20px;
  }

  .download-option {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 106px;
    padding: 16px;
  }

  .download-option em {
    grid-column: 2;
    width: fit-content;
  }

  .download-os-icon {
    width: 54px;
    height: 54px;
  }

  .download-option strong {
    font-size: 20px;
  }

  .document-upload div {
    grid-template-columns: 1fr;
  }

  .condition-card .condition-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
