:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --bg-2: #050709;
  --bg-3: #11161d;
  --bg-grad-1: rgba(255, 145, 0, 0.12);
  --bg-grad-2: rgba(0, 212, 255, 0.08);
  --panel: #11161d;
  --panel-2: #161c25;
  --panel-3: #1c222d;
  --line: rgba(255, 145, 0, 0.18);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #e6edf3;
  --text-bright: #ffffff;
  --muted: #8b97a8;
  --dim: #5a6776;
  --accent: #ff9100;
  --accent-2: #ffb547;
  --accent-3: #ff6b00;
  --cyan: #00d4ff;
  --magenta: #ff2e93;
  --positive: #00ff88;
  --negative: #ff3355;
  --warning: #ffb800;
  --shadow-glow: 0 0 24px rgba(255, 145, 0, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius: 0;
  --radius-sm: 0;
  font-family: "JetBrains Mono", "Fira Code", -apple-system, BlinkMacSystemFont, Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #0a0e14;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(255, 145, 0, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 30% at 0% 50%, rgba(0, 212, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #0a0e14 0%, #050709 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

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

a { color: inherit; text-decoration: none; }
button, input, select, textarea { border: 0; background: transparent; color: inherit; }
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: 1px;
}

::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

.app-page {
  align-items: center;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(255, 145, 0, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 30% at 0% 50%, rgba(0, 212, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #0a0e14 0%, #050709 100%);
  background-attachment: fixed;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 18px;
}

.mobile-shell {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  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: var(--line);
  border-radius: 0;
}

.app-topbar {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.app-title-block h1,
.app-title-block h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  color: var(--text-bright);
}

.app-title-block h1::before,
.app-title-block h2::before {
  content: "// ";
  color: var(--accent);
}

.app-title-block p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 7px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-chip,
.mini-chip,
.quote-tab,
.timeframe-button {
  align-items: center;
  border-radius: 0;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 28px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.status-chip {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
}

.status-chip::before {
  content: "● ";
  animation: pulse 1.4s ease-in-out infinite;
}

.mini-chip {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.app-panel {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 14px;
  padding: 16px;
  position: relative;
}

.app-panel::before {
  content: attr(data-num);
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
}

.app-panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.app-panel-title h3 {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}

.app-panel-title h3::before {
  content: "› ";
  color: var(--accent);
}

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

.stat-box {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  min-height: 74px;
  padding: 12px;
}

.stat-label {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.stat-value {
  color: var(--text-bright);
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.02em;
}

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

.pair-row {
  align-items: center;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-left: 3px solid var(--accent);
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
  font-family: inherit;
}

.pair-row:hover {
  background: var(--panel-2);
  border-left-color: var(--cyan);
}

.asset-icon {
  align-items: center;
  border-radius: 0;
  color: #000;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.asset-BTC { background: linear-gradient(135deg, #ff9100, #ff6b00); }
.asset-ETH { background: linear-gradient(135deg, #627eea, #4ca8ff); }
.asset-SOL { background: linear-gradient(135deg, #00d4ff, #0099cc); }
.asset-BNB { background: linear-gradient(135deg, #ffb547, #ff9100); }
.asset-XRP { background: linear-gradient(135deg, #8b97a8, #5a6776); }
.asset-DOGE { background: linear-gradient(135deg, #ffb547, #ff9100); }
.asset-TRX { background: linear-gradient(135deg, #ff3355, #cc0033); }
.asset-LTC { background: linear-gradient(135deg, #8b97a8, #5a6776); }
.asset-ADA { background: linear-gradient(135deg, #00d4ff, #0099cc); }
.asset-AVAX { background: linear-gradient(135deg, #ff3355, #cc0033); }
.asset-DOT { background: linear-gradient(135deg, #ff2e93, #cc0066); }
.asset-LINK { background: linear-gradient(135deg, #4ca8ff, #0066cc); }
.asset-MATIC { background: linear-gradient(135deg, #00d4ff, #0099cc); }
.asset-ATOM { background: linear-gradient(135deg, #8b97a8, #5a6776); }
.asset-UNI { background: linear-gradient(135deg, #ff2e93, #cc0066); }
.asset-AAVE { background: linear-gradient(135deg, #ff2e93, #cc0066); }

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

.pair-symbol {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.pair-meta {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
}

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

.pair-price {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.change {
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}

.change.positive {
  background: rgba(0, 255, 136, 0.15);
  color: var(--positive);
}

.change.negative {
  background: rgba(255, 51, 85, 0.15);
  color: var(--negative);
}

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

.disclaimer-strip {
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 0;
  color: var(--warning);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 10px 12px;
  letter-spacing: 0.04em;
}

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

.search-field input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text-bright);
  min-height: 40px;
  padding: 0 12px 0 38px;
  width: 100%;
  font-family: "JetBrains Mono", monospace;
}

.search-field input:focus {
  background: var(--bg);
  border-color: var(--accent);
  outline: none;
}

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

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

.quote-tab,
.timeframe-button {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0 12px;
}

.quote-tab.is-active,
.timeframe-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.favorite-button,
.icon-button {
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.favorite-button.is-active,
.icon-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.empty-state {
  align-items: center;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: 0;
  color: var(--muted);
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 12px;
  min-height: 180px;
  padding: 24px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}

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

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

.pair-price-large {
  font-size: 26px;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

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

.pair-select label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.pair-select select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-bright);
  width: 100%;
  min-height: 40px;
  border-radius: 0;
  padding: 0 12px;
}

.pair-select select:focus {
  border-color: var(--accent);
  outline: none;
}

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

.candle-chart {
  background: #000;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  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: 4px;
}

.book-head,
.book-row,
.trade-row {
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr;
  font-family: "JetBrains Mono", monospace;
}

.book-head {
  color: var(--muted);
  font-weight: 700;
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.book-row.ask {
  background: rgba(255, 51, 85, 0.10);
  color: var(--negative);
}

.book-row.bid {
  background: rgba(0, 255, 136, 0.10);
  color: var(--positive);
}

.trade-row {
  background: var(--bg-2);
}

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

.trade-action {
  border-radius: 0;
  color: #fff;
  font-weight: 800;
  min-height: 46px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trade-action.buy {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: var(--positive);
}

.trade-action.sell {
  background: rgba(255, 51, 85, 0.12);
  border: 1px solid rgba(255, 51, 85, 0.35);
  color: var(--negative);
}

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

.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(135deg, var(--accent), var(--accent-3));
  border: 1px solid var(--accent);
  border-radius: 0;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  display: inline-flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

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

.profile-identity h2 {
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

.profile-identity p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 5px 0 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.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: 0;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  justify-content: center;
  min-height: 22px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.profile-badges span {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0 8px;
}

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

.profile-summary {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  min-width: 0;
  padding: 10px;
}

.profile-summary span {
  color: var(--dim);
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.profile-summary strong {
  color: var(--text-bright);
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-family: "JetBrains Mono", monospace;
}

.profile-summary.green {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
}

.profile-summary.orange {
  background: rgba(255, 145, 0, 0.08);
  border-color: rgba(255, 145, 0, 0.3);
}

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

.profile-quick-action {
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  color: var(--text);
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 124px;
  padding: 11px;
  text-align: left;
  transition: all 0.15s;
}

.profile-quick-action:hover {
  background: var(--panel-2);
  border-color: var(--accent);
}

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

.profile-quick-action strong,
.profile-menu-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.profile-quick-action em {
  background: rgba(255, 145, 0, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0 8px;
}

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

.profile-menu-row {
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px;
  text-align: left;
  transition: all 0.15s;
}

.profile-menu-row:hover {
  background: var(--panel-2);
}

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

.profile-menu-status {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  max-width: 112px;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
}

.profile-section {
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 7px;
  padding-top: 13px;
}

.profile-section h3 {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

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

.bottom-nav {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  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: 0;
  color: var(--dim);
  display: grid;
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-item.is-active {
  background: var(--accent);
  color: #000;
}

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

.modal-backdrop {
  align-items: center;
  background: rgba(5, 7, 9, 0.92);
  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: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  max-width: 360px;
  padding: 22px;
  width: 100%;
}

.modal h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

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

.modal .button {
  width: 100%;
}

@media (max-width: 1050px) {
  .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;
  }
}
.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border: 1px solid var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  width: 36px;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.brand-mark img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.logo-title {
  color: var(--text-bright);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-subtitle {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
