:root {
  color-scheme: light;
  --bg: #eaf4ff;
  --bg-2: #d6e9ff;
  --bg-grad-1: rgba(173, 216, 255, 0.65);
  --bg-grad-2: rgba(196, 224, 255, 0.55);
  --panel: rgba(255, 255, 255, 0.55);
  --panel-2: rgba(255, 255, 255, 0.7);
  --panel-3: rgba(255, 255, 255, 0.82);
  --line: rgba(10, 60, 120, 0.12);
  --line-soft: rgba(10, 60, 120, 0.08);
  --text: #0b2545;
  --muted: #5a7898;
  --dim: #8aa4c0;
  --accent: #0a84ff;
  --accent-2: #4ca8ff;
  --accent-3: #0066cc;
  --positive: #34c759;
  --negative: #ff3b30;
  --warning: #ff9f0a;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(10, 60, 120, 0.12);
  --shadow: 0 12px 40px rgba(10, 60, 120, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, var(--bg-grad-1), transparent 50%),
    radial-gradient(circle at 85% 90%, var(--bg-grad-2), transparent 50%),
    linear-gradient(180deg, #eaf4ff 0%, #d6e9ff 100%);
  background-attachment: fixed;
  color: var(--text);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

button,
input,
select,
textarea {
  border: 0;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.logo-mark,
.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #0a84ff, #4ca8ff);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.brand-mark img {
  display: block;
  height: 38px;
  width: 38px;
}

.logo-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.logo-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.logo-subtitle {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.icon {
  display: inline-block;
  height: 18px;
  width: 18px;
}

.site-page {
  background: transparent;
}

.site-header {
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(10, 60, 120, 0.04);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 40;
}

.site-header-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 74px;
  padding: 0 22px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  padding: 9px 11px;
}

.site-nav a:hover {
  background: rgba(10, 132, 255, 0.08);
  color: var(--accent);
}

.nav-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  color: var(--text);
  display: none;
  height: 42px;
  justify-content: center;
  width: 42px;
  backdrop-filter: blur(20px);
}

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

.button,
.ghost-button,
.text-button,
.mini-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 660;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
}

.button {
  background: linear-gradient(180deg, #0a84ff 0%, #0066cc 100%);
  color: #ffffff;
  padding: 0 16px;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button:hover {
  background: linear-gradient(180deg, #4ca8ff 0%, #0a84ff 100%);
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.4);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 0 15px;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.85);
}

.text-button {
  background: transparent;
  color: var(--accent);
  min-height: 36px;
  padding: 0 8px;
}

.text-button:hover {
  color: var(--accent-3);
}

.button.is-disabled {
  background: rgba(10, 60, 120, 0.08);
  color: var(--dim);
  cursor: not-allowed;
  box-shadow: none;
}

.hero {
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(234, 244, 255, 0.95) 0%, rgba(234, 244, 255, 0.7) 45%, rgba(234, 244, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(234, 244, 255, 0.05), rgba(234, 244, 255, 0.85));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-visual {
  inset: 0;
  opacity: 0.96;
  position: absolute;
}

.hero-market-wall {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  left: 36%;
  min-width: 960px;
  position: absolute;
  top: 14%;
  transform: rotate(-3deg);
}

.hero-tile {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(10, 60, 120, 0.1);
  min-height: 124px;
  overflow: hidden;
  padding: 16px;
}

.hero-tile strong,
.hero-tile span {
  display: block;
  color: var(--text);
}

.hero-tile strong {
  font-size: 18px;
  margin-bottom: 7px;
}

.hero-tile span {
  color: var(--muted);
  font-size: 13px;
}

.tile-line {
  background: linear-gradient(90deg, var(--accent), rgba(76, 168, 255, 0.3));
  border-radius: 2px;
  height: 3px;
  margin-top: 18px;
  width: 78%;
}

.hero-candle-field {
  bottom: 10%;
  display: flex;
  gap: 10px;
  height: 220px;
  opacity: 0.74;
  position: absolute;
  right: 8%;
}

.hero-candle {
  align-self: center;
  background: var(--positive);
  border-radius: 2px;
  position: relative;
  width: 12px;
}

.hero-candle::before {
  background: currentColor;
  content: "";
  height: 48px;
  left: 5px;
  opacity: 0.72;
  position: absolute;
  top: -18px;
  width: 2px;
}

.hero-candle.is-red {
  background: var(--negative);
  color: var(--negative);
}

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

.hero-content {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 0;
  padding: 8px 22px 80px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: start;
  max-width: 720px;
}

.eyebrow {
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 66px;
  line-height: 0.96;
  margin: 0;
  max-width: 680px;
  color: var(--text);
}

.hero h2 {
  color: #1a3a5c;
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0 0;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note,
.inline-note,
.status-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-note {
  border-left: 3px solid var(--accent);
  margin-top: 24px;
  max-width: 660px;
  padding-left: 14px;
}

.status-note {
  display: none;
  margin-top: 10px;
}

.status-note.is-visible {
  display: block;
}

.section {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding: 86px 22px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 680px;
}

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

.feature-card,
.preview-card,
.legal-card,
.contact-panel,
.market-table-wrap,
.info-panel,
.policy-block {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.feature-card {
  min-height: 170px;
  padding: 18px;
}

.feature-icon {
  align-items: center;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 10px;
  color: var(--accent);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  margin-bottom: 18px;
  width: 38px;
}

.feature-card h3,
.preview-card h3,
.legal-card h3,
.policy-block h2 {
  font-size: 17px;
  margin: 0 0 9px;
}

.feature-card p,
.preview-card p,
.legal-card p,
.policy-block p,
.policy-block li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

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

.preview-card {
  display: grid;
  gap: 14px;
  min-height: 286px;
  padding: 14px;
}

.screen-shot {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  display: grid;
  min-height: 168px;
  overflow: hidden;
  padding: 12px;
  position: relative;
  box-shadow: 0 8px 24px rgba(10, 60, 120, 0.08);
}

.screen-shot.app-shot {
  aspect-ratio: 390 / 844;
  display: block;
  min-height: 0;
  padding: 0;
}

.screen-shot.app-shot img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.screen-shot::after {
  background: linear-gradient(180deg, transparent, rgba(10, 60, 120, 0.08));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.screen-shot.app-shot::after {
  display: none;
}

.mini-screen-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mini-screen-line,
.mini-screen-pill,
.mini-screen-bar,
.mini-screen-candle {
  border-radius: 999px;
}

.mini-screen-line {
  background: rgba(10, 60, 120, 0.6);
  height: 8px;
  width: 68px;
}

.mini-screen-pill {
  background: rgba(10, 132, 255, 0.25);
  height: 16px;
  width: 44px;
}

.mini-screen-stack {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.mini-screen-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px 1fr 52px;
}

.mini-dot {
  background: var(--accent);
  border-radius: 50%;
  height: 22px;
  width: 22px;
}

.mini-screen-bar {
  background: rgba(10, 60, 120, 0.1);
  height: 8px;
}

.mini-screen-value {
  background: rgba(52, 199, 89, 0.35);
  border-radius: 999px;
  height: 8px;
}

.mini-chart {
  align-items: end;
  display: flex;
  gap: 5px;
  height: 92px;
  margin-top: 18px;
}

.mini-screen-candle {
  background: var(--positive);
  flex: 1;
  min-width: 5px;
}

.mini-screen-candle:nth-child(2n) {
  background: var(--negative);
}

.market-table-wrap {
  overflow-x: auto;
}

.market-live-badge {
  align-items: center;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 999px;
  color: var(--accent-3);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}

.market-live-badge.is-offline {
  background: rgba(10, 60, 120, 0.06);
  border-color: var(--line-soft);
  color: var(--muted);
}

.market-table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.market-table th,
.market-table td {
  border-bottom: 1px solid rgba(10, 60, 120, 0.06);
  padding: 16px 18px;
  text-align: left;
}

.market-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.market-table td {
  color: var(--text);
  font-size: 14px;
}

.market-table tbody tr {
  cursor: pointer;
}

.market-table tbody tr:hover {
  background: rgba(10, 132, 255, 0.06);
}

.market-table tbody tr td:last-child {
  color: var(--accent-3);
  font-weight: 700;
}

.site-pair-modal-backdrop {
  align-items: center;
  background: rgba(10, 60, 120, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  z-index: 90;
}

.site-pair-modal-backdrop.is-open {
  display: flex;
}

.site-pair-modal {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 60, 120, 0.2);
  max-height: calc(100vh - 48px);
  max-width: 1060px;
  overflow-y: auto;
  width: 100%;
}

.site-pair-modal-header {
  align-items: start;
  border-bottom: 1px solid rgba(10, 60, 120, 0.06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.site-pair-modal-header h2 {
  font-size: 30px;
  line-height: 1;
  margin: 0;
}

.site-pair-modal-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.site-pair-summary {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.site-pair-price {
  display: grid;
  gap: 8px;
}

.site-pair-price strong {
  font-size: 34px;
  line-height: 1;
}

.site-timeframes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-pair-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.site-market-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 16px;
}

.site-market-panel h3 {
  font-size: 17px;
  margin: 0 0 14px;
}

.site-candle-chart {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  height: 320px;
  overflow: hidden;
  width: 100%;
}

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

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

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

.site-side-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.site-side-title span {
  color: var(--muted);
  font-size: 12px;
}

.site-preview-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-preview-note {
  background: rgba(255, 159, 10, 0.1);
  border: 1px solid rgba(255, 159, 10, 0.25);
  border-radius: 10px;
  color: #b86b00;
  display: none;
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 12px;
}

.site-preview-note.is-visible {
  display: block;
}

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

.negative {
  color: var(--negative);
}

.about-grid,
.legal-grid,
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 0.8fr;
}

.info-panel,
.legal-card,
.contact-panel {
  padding: 22px;
}

.info-panel p,
.legal-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.statement-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.statement {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  color: #1a3a5c;
  font-size: 14px;
  padding: 12px 13px;
}

.legal-list,
.contact-list {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field textarea,
.search-field input,
.pair-select select {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  color: var(--text);
  min-height: 44px;
  padding: 0 12px;
  backdrop-filter: blur(10px);
}

.field input:focus,
.field textarea:focus,
.search-field input:focus,
.pair-select select:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent);
}

.field textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
}

.form-status {
  color: var(--positive);
  display: none;
  font-size: 14px;
}

.form-status.is-visible {
  display: block;
}

.site-footer {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding: 36px 22px;
}

.footer-inner {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: var(--max);
}

.footer-copy,
.footer-notice {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-page-main {
  margin: 0 auto;
  max-width: 980px;
  padding: 58px 22px 84px;
}

.logo-lab-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 58px 22px 84px;
}

.logo-lab-hero {
  max-width: 760px;
  padding: 20px 0 34px;
}

.logo-lab-hero h1 {
  font-size: 48px;
  line-height: 1.02;
  margin: 0;
}

.logo-lab-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 16px 0 0;
}

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

.logo-option-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  display: grid;
  gap: 18px;
  min-height: 300px;
  padding: 18px;
}

.logo-display {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  min-height: 172px;
  padding: 18px;
}

.logo-option-mark {
  flex: 0 0 auto;
  height: 104px;
  width: 104px;
}

.logo-meta h2 {
  font-size: 19px;
  margin: 0 0 8px;
}

.logo-meta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.legal-page-main h1 {
  font-size: 42px;
  margin: 0 0 14px;
}

.legal-page-main > p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 28px;
}

.policy-stack {
  display: grid;
  gap: 18px;
}

.policy-block {
  padding: 24px;
  scroll-margin-top: 96px;
}

.policy-block ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.app-page {
  align-items: center;
  background:
    radial-gradient(circle at 15% 5%, var(--bg-grad-1), transparent 31%),
    radial-gradient(circle at 86% 90%, var(--bg-grad-2), transparent 28%),
    linear-gradient(180deg, #eaf4ff 0%, #d6e9ff 100%);
  background-attachment: fixed;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 18px;
}

.mobile-shell {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(10, 60, 120, 0.18);
  display: grid;
  grid-template-rows: 1fr 78px;
  height: min(910px, calc(100vh - 36px));
  max-height: 910px;
  max-width: 430px;
  min-height: 620px;
  overflow: hidden;
  position: relative;
  width: min(430px, calc(100vw - 36px));
}

.app-root {
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.app-screen {
  height: 100%;
  overflow-y: auto;
  padding: 24px 18px 22px;
  scrollbar-width: thin;
}

.app-screen::-webkit-scrollbar {
  width: 6px;
}

.app-screen::-webkit-scrollbar-thumb {
  background: rgba(10, 132, 255, 0.3);
  border-radius: 999px;
}

.app-topbar {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.app-title-block h1,
.app-title-block h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

.app-title-block p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 7px 0 0;
}

.status-chip,
.mini-chip,
.quote-tab,
.timeframe-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  min-height: 30px;
  white-space: nowrap;
}

.status-chip {
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
  color: var(--accent-3);
  padding: 0 10px;
}

.mini-chip {
  background: rgba(10, 60, 120, 0.06);
  border: 1px solid rgba(10, 60, 120, 0.08);
  color: var(--muted);
  padding: 0 9px;
}

.app-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  margin-bottom: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(10, 60, 120, 0.05);
}

.app-panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.app-panel-title h3 {
  font-size: 16px;
  margin: 0;
}

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

.stat-box {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  min-height: 74px;
  padding: 12px;
}

.stat-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.stat-value {
  color: var(--text);
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.pair-list {
  display: grid;
  gap: 8px;
}

.pair-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 70px;
  padding: 10px;
  text-align: left;
  width: 100%;
  transition: all 0.2s ease;
}

.pair-row:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(10, 132, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 60, 120, 0.08);
}

.asset-icon {
  align-items: center;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.asset-BTC { background: linear-gradient(135deg, #f7931a, #ff9f1a); }
.asset-ETH { background: linear-gradient(135deg, #627eea, #8aa3ff); }
.asset-SOL { background: linear-gradient(135deg, #14f195, #00d4a8); }
.asset-BNB { background: linear-gradient(135deg, #f0b90b, #ffd95a); }
.asset-XRP { background: linear-gradient(135deg, #23292f, #4a5560); }
.asset-DOGE { background: linear-gradient(135deg, #c2a633, #e6c248); }
.asset-TRX { background: linear-gradient(135deg, #ff060a, #ff4d4f); }
.asset-LTC { background: linear-gradient(135deg, #b3b3b3, #d4d4d4); }
.asset-ADA { background: linear-gradient(135deg, #0033ad, #346cf7); }
.asset-AVAX { background: linear-gradient(135deg, #e84142, #ff6b6b); }
.asset-DOT { background: linear-gradient(135deg, #e6007a, #ff4d9b); }
.asset-LINK { background: linear-gradient(135deg, #2a5ada, #4d83ff); }
.asset-MATIC { background: linear-gradient(135deg, #8247e5, #a371f7); }
.asset-ATOM { background: linear-gradient(135deg, #2e3148, #5a6079); }
.asset-UNI { background: linear-gradient(135deg, #ff007a, #ff4d9b); }
.asset-AAVE { background: linear-gradient(135deg, #b6509e, #d97ec7); }

.pair-main {
  min-width: 0;
}

.pair-symbol {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.pair-meta {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.pair-side {
  align-items: end;
  display: grid;
  gap: 5px;
  justify-items: end;
}

.pair-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.change {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  white-space: nowrap;
}

.change.positive {
  background: rgba(52, 199, 89, 0.15);
  color: #1a7f37;
}

.change.negative {
  background: rgba(255, 59, 48, 0.15);
  color: #c1211a;
}

.sparkline {
  height: 28px;
  width: 72px;
}

.disclaimer-strip {
  background: rgba(255, 159, 10, 0.08);
  border: 1px solid rgba(255, 159, 10, 0.22);
  border-radius: 10px;
  color: #b86b00;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 10px 12px;
}

.search-field {
  margin-bottom: 12px;
  position: relative;
}

.search-field input {
  padding-left: 38px;
  width: 100%;
}

.search-field .icon {
  color: var(--dim);
  left: 12px;
  position: absolute;
  top: 13px;
}

.quote-tabs,
.timeframe-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quote-tab,
.timeframe-button {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--muted);
  padding: 0 12px;
}

.quote-tab.is-active,
.timeframe-button.is-active {
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.4);
  color: var(--accent-3);
}

.favorite-button,
.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  color: var(--muted);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
  backdrop-filter: blur(10px);
}

.favorite-button.is-active,
.icon-button.is-active {
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.4);
  color: var(--accent-3);
}

.empty-state {
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(10, 132, 255, 0.2);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 12px;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.pair-hero {
  display: grid;
  gap: 12px;
}

.pair-price-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pair-price-large {
  font-size: 28px;
  font-weight: 800;
}

.pair-select {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.pair-select label {
  color: var(--muted);
  font-size: 12px;
}

.pair-select select {
  width: 100%;
}

.chart-card {
  padding-bottom: 10px;
}

.candle-chart {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  height: 238px;
  overflow: hidden;
  width: 100%;
}

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

.market-depth {
  display: grid;
  gap: 14px;
}

.book-table,
.trades-table {
  display: grid;
  gap: 5px;
}

.book-head,
.book-row,
.trade-row {
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr;
}

.book-head {
  color: var(--dim);
  font-weight: 700;
  padding: 0 8px;
  text-transform: uppercase;
}

.book-row,
.trade-row {
  border-radius: 5px;
  padding: 6px 8px;
}

.book-row.ask {
  background: rgba(255, 59, 48, 0.08);
  color: #c1211a;
}

.book-row.bid {
  background: rgba(52, 199, 89, 0.08);
  color: #1a7f37;
}

.trade-row {
  background: rgba(255, 255, 255, 0.5);
}

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

.trade-action {
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  min-height: 46px;
}

.trade-action.buy {
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.35);
  color: #1a7f37;
}

.trade-action.sell {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #c1211a;
}

.trade-action[data-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.profile-card {
  display: grid;
  gap: 12px;
}

.profile-hero {
  align-items: center;
  display: grid;
  gap: 13px;
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-avatar {
  align-items: center;
  background: linear-gradient(145deg, rgba(10, 132, 255, 0.15), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 14px;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.profile-avatar .brand-mark {
  border-color: transparent;
  height: 42px;
  width: 42px;
}

.profile-avatar .brand-mark img {
  height: 42px;
  width: 42px;
}

.profile-identity {
  min-width: 0;
}

.profile-identity h2 {
  font-size: 21px;
  line-height: 1.1;
  margin: 0;
}

.profile-identity p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 5px 0 0;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.profile-badges span,
.profile-quick-action em,
.profile-menu-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  justify-content: center;
  min-height: 23px;
  white-space: nowrap;
}

.profile-badges span {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 0 8px;
}

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

.profile-summary {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  min-width: 0;
  padding: 10px;
}

.profile-summary span {
  color: var(--dim);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.profile-summary strong {
  color: var(--text);
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.profile-summary.orange {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.3);
}

.profile-summary.green {
  background: rgba(52, 199, 89, 0.1);
  border-color: rgba(52, 199, 89, 0.25);
}

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

.profile-quick-action {
  align-items: start;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  color: var(--text);
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 128px;
  padding: 11px;
  text-align: left;
  transition: all 0.2s ease;
}

.profile-quick-action:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 60, 120, 0.08);
}

.profile-quick-icon,
.profile-menu-icon {
  align-items: center;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 10px;
  color: var(--accent-3);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.profile-quick-action strong,
.profile-menu-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.profile-quick-action small,
.profile-menu-row small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}

.profile-quick-action em {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.22);
  color: var(--accent-3);
  padding: 0 8px;
}

.profile-menu {
  display: grid;
  gap: 8px;
}

.profile-menu-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 10px;
  text-align: left;
  transition: all 0.2s ease;
}

.profile-menu-row:hover {
  background: rgba(255, 255, 255, 0.75);
}

.profile-menu-text {
  min-width: 0;
}

.profile-menu-status {
  background: rgba(10, 60, 120, 0.08);
  border: 1px solid rgba(10, 60, 120, 0.1);
  color: var(--muted);
  max-width: 112px;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
}

.profile-legal-card {
  margin-bottom: 0;
}

.profile-section {
  border-top: 1px solid rgba(10, 60, 120, 0.08);
  display: grid;
  gap: 7px;
  padding-top: 13px;
}

.profile-section h3 {
  font-size: 14px;
  margin: 0;
}

.profile-section p,
.profile-section div {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

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

.bottom-nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 78px;
  padding: 8px 8px 10px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border-radius: 10px;
  color: var(--dim);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  padding: 6px 2px;
}

.nav-item.is-active {
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-3);
}

.nav-item .icon {
  height: 19px;
  width: 19px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(10, 60, 120, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 80;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 60, 120, 0.2);
  max-width: 360px;
  padding: 22px;
  width: 100%;
}

.modal h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.modal p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.modal .button {
  width: 100%;
}

@media (max-width: 1050px) {
  .feature-grid,
  .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero h1 {
    font-size: 54px;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    min-height: 66px;
  }

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

  .site-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    display: none;
    gap: 0;
    left: 0;
    padding: 8px 22px 18px;
    position: absolute;
    right: 0;
    top: 66px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-actions .ghost-button {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 0;
  }

  .hero-content {
    padding: 14px 18px 70px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero-market-wall {
    left: 12%;
    opacity: 0.46;
    top: 48%;
  }

  .hero-candle-field {
    opacity: 0.42;
    right: -16%;
  }

  .section {
    padding: 64px 18px;
  }

  .section-heading {
    align-items: start;
    display: grid;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .feature-grid,
  .preview-grid,
  .logo-options-grid,
  .site-pair-grid,
  .site-side-grid,
  .about-grid,
  .legal-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-pair-modal-backdrop {
    align-items: flex-start;
    padding: 12px;
  }

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

@media (max-width: 520px) {
  .app-page {
    padding: 0;
  }

  .mobile-shell {
    border: 0;
    border-radius: 0;
    height: 100vh;
    max-height: none;
    max-width: none;
    min-height: 100vh;
    width: 100vw;
  }

  .app-screen {
    padding: 20px 14px 20px;
  }

  .site-header-inner {
    padding: 0 14px;
  }


  .site-actions .button {
    padding: 0 11px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-ctas {
    display: grid;
  }

  .hero-ctas .button,
  .hero-ctas .ghost-button {
    width: 100%;
  }

  .feature-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions,
  .trade-actions,
  .stats-grid,
  .site-stats-grid,
  .site-preview-actions {
    grid-template-columns: 1fr;
  }

  .pair-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }
}
