@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
  --bg: #0a0f1d;
  --bg-2: #101a2f;
  --text: #e7ecf8;
  --muted: #b7c0d8;
  --accent: #00e5ff;
  --accent-2: #7c4dff;
  --accent-3: #00ff9d;
  --glass: rgba(16, 26, 47, 0.65);
  --border: rgba(124, 77, 255, 0.35);
}

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

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.6) rgba(10, 15, 29, 0.6);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(10, 15, 29, 0.6);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.9), rgba(124, 77, 255, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(10, 15, 29, 0.6);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.95), rgba(0, 229, 255, 0.95));
}

body {
  font-family: "Space Grotesk", "Trebuchet MS", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, #14213d 0%, var(--bg) 45%),
    radial-gradient(900px 500px at 80% 20%, #0d1a30 0%, var(--bg) 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.landing-body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  display: block;
  padding: 0;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.logo-mark {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 22px;
}

.logo-mark span,
.logo-hero span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 96px 8vw 60px;
}

.hero-center {
  max-width: 980px;
  text-align: center;
  display: grid;
  gap: 22px;
}

.patrimony-live {
  width: min(460px, 92vw);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(10, 20, 38, 0.78);
  display: grid;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

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

.patrimony-live strong {
  font-size: clamp(22px, 4vw, 34px);
  color: #9bffe0;
  line-height: 1.1;
}

.patrimony-live small {
  color: #8ddfff;
  font-size: 12px;
}

.logo-hero {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.welcome-card {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.welcome-card p {
  color: var(--text);
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.55;
}

.bscscan-btn {
  font-size: 14px;
  padding: 9px 16px;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
}

.wallets {
  position: relative;
  z-index: 1;
  padding: 20px 8vw 80px;
  text-align: center;
}

.wallets h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 24px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.wallet {
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.wallet-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: #0b0f1a;
}

.wallet-icon.metamask {
  background: linear-gradient(135deg, #ff9800, #ff6d00);
}

.wallet-icon.google {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.wallet-icon.coinshub {
  background: linear-gradient(135deg, #00e5ff, #7c4dff);
}

.wallet-icon.binance {
  background: linear-gradient(135deg, #f3ba2f, #f0b90b);
}

.landing-logo {
  font-size: 24px;
  letter-spacing: 1.2px;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

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

.auth {
  width: min(520px, 92vw);
}

.auth-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.auth-card h1 {
  font-size: 28px;
}

.auth-card h2 {
  font-size: 20px;
}

.auth-card p {
  color: var(--muted);
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input {
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.hint {
  font-size: 13px;
  color: var(--accent-3);
  background: rgba(0, 255, 157, 0.1);
  padding: 8px 10px;
  border-radius: 12px;
}

.btn {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #061018;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.35);
}

.close-pos-btn {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 700;
}

.close-pos-btn-pos {
  background: rgba(33, 208, 122, 0.18);
  border-color: rgba(33, 208, 122, 0.65);
  color: #d6ffe9;
}

.close-pos-btn-neg {
  background: rgba(255, 90, 90, 0.18);
  border-color: rgba(255, 90, 90, 0.65);
  color: #ffe2e2;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.auth-msg {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.auth-msg.ok {
  color: #0b0f1a;
  background: rgba(0, 255, 157, 0.7);
}

.auth-msg.error {
  color: #0b0f1a;
  background: rgba(255, 99, 71, 0.7);
}

.landing-card {
  width: min(760px, 94vw);
}

.auth-sep {
  border: 0;
  border-top: 1px solid rgba(124, 77, 255, 0.35);
  margin: 4px 0;
}

.about-card {
  width: min(860px, 95vw);
}

.about-body {
  min-height: 100vh;
  overflow-x: hidden;
  display: block;
  padding: 0;
}

.about-page {
  width: min(1100px, 94vw);
  margin: 110px auto 60px;
  display: grid;
  gap: 18px;
}

.about-hero {
  gap: 12px;
}

.about-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.about-hero p {
  color: var(--muted);
  font-size: 16px;
}

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

.about-panel {
  align-content: start;
}

.about-nav-highlight {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.1);
  color: #b9f8ff;
  font-weight: 700;
  font-size: 13px;
  cursor: help;
}

.about-compare {
  gap: 10px;
}

.about-warning {
  border-color: rgba(255, 159, 26, 0.55);
  background: linear-gradient(180deg, rgba(42, 23, 8, 0.72), rgba(18, 12, 8, 0.8));
  gap: 10px;
}

.about-warning h3 {
  color: #ffba63;
}

.about-warning p {
  color: #ffd9ad;
}

.about-warning blockquote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(255, 186, 99, 0.7);
  background: rgba(255, 159, 26, 0.1);
  color: #ffe9cb;
  border-radius: 8px;
}

.about-section {
  display: grid;
  gap: 10px;
}

.about-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.about-metric {
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 5px;
}

.about-metric span {
  font-size: 12px;
  color: var(--muted);
}

.about-metric strong {
  font-size: 15px;
  color: var(--text);
}

.about-live-note {
  margin-top: 10px;
  color: #9fc3df;
  font-size: 12px;
}

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

form {
  display: grid;
  gap: 12px;
}

.dash-body {
  background: radial-gradient(1200px 600px at 20% 10%, #0e1b33 0%, #0a0f1d 45%),
    radial-gradient(900px 500px at 80% 20%, #0b1a2f 0%, #0a0f1d 50%),
    linear-gradient(180deg, #101a2f, #0a0f1d);
}

.dash {
  width: min(1200px, 94vw);
  margin: 30px auto 60px;
  display: grid;
  gap: 24px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.dash-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.mode-btn {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 26, 47, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--muted);
  font-size: 13px;
}



.chip-live {
  border-color: rgba(0, 255, 157, 0.5);
  color: #00ff9d;
}

.chip-paper {
  border-color: rgba(255, 183, 77, 0.55);
  color: #ffcf7b;
}

.status-list {
  display: grid;
  gap: 6px;
}
.muted {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.card h3 {
  font-size: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.metric {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.metric-sub {
  color: var(--muted);
  font-size: 13px;
}

.chart-card {
  min-height: 240px;
}

.dash-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.info-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.info-title {
  display: grid;
  gap: 6px;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-card {
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.info-card h3 {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.info-card .metric {
  font-size: 22px;
}

.info-card-wallet {
  gap: 8px;
}

.wallet-list {
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px dashed rgba(183, 192, 216, 0.2);
  padding-bottom: 4px;
}

.wallet-row strong {
  color: #e9f1ff;
  font-weight: 600;
  max-width: 58%;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wallet-sep {
  height: 1px;
  background: rgba(0, 229, 255, 0.2);
  margin: 4px 0;
}

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

.charts-panel .chart-card {
  min-height: 220px;
}

.chart-wide {
  grid-column: 1 / -1;
  min-height: 260px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.trade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: auto;
}

.trade-table th,
.trade-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(124, 77, 255, 0.25);
  text-align: left;
  white-space: nowrap;
}

.trade-table th {
  color: var(--muted);
  font-weight: 600;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table th,
.dash-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(124, 77, 255, 0.25);
  text-align: left;
}

.dash-table th {
  color: var(--muted);
  font-weight: 600;
}

.dash-table td.pos {
  color: #00ff9d;
  font-weight: 600;
}

.dash-table td.neg {
  color: #ff6347;
  font-weight: 600;
}

.pnl-cell {
  display: grid;
  gap: 2px;
}

.pnl-cell span {
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .info-panel {
    position: static;
  }

  .charts-panel {
    grid-template-columns: 1fr;
  }
}

.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.terminal-window {
  position: fixed;
  top: 120px;
  left: 120px;
  width: 720px;
  height: 320px;
  background: #0b0f1a;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  z-index: 60;
  resize: both;
  min-width: 320px;
  min-height: 220px;
}

.terminal-window-full {
  top: 80px;
  left: 80px;
  width: 860px;
  height: 420px;
  border-color: rgba(124, 77, 255, 0.45);
}

.manual-window {
  top: 90px;
  left: 140px;
  width: 1020px;
  height: 560px;
  border-color: rgba(0, 255, 157, 0.45);
}

.manual-body {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 12px;
  background: #081122;
  overflow: auto;
}

.manual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: stretch;
}

.manual-chart-col {
  min-width: 0;
}

.manual-side-col {
  border: 1px solid rgba(103, 129, 172, 0.35);
  border-radius: 10px;
  background: rgba(9, 17, 34, 0.75);
  padding: 10px;
}

.manual-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.manual-controls label {
  display: grid;
  gap: 6px;
  color: #bcd0ef;
  font-size: 12px;
}

.manual-controls input,
.manual-controls select {
  width: 100%;
  background: #0f1b33;
  color: #e8f1ff;
  border: 1px solid rgba(96, 144, 218, 0.45);
  border-radius: 8px;
  padding: 8px;
}

.manual-hint {
  color: #9bb0d2;
  font-size: 12px;
  border: 1px dashed rgba(103, 129, 172, 0.35);
  border-radius: 8px;
  padding: 8px;
}

.manual-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 150, 180, 0.4);
  color: #e2ebff;
  background: rgba(13, 22, 39, 0.7);
  font-size: 12px;
}

.manual-badge.buy {
  border-color: rgba(0, 229, 143, 0.7);
  color: #00e58f;
}

.manual-badge.sell {
  border-color: rgba(255, 95, 122, 0.7);
  color: #ff7f95;
}

.manual-badge.risk {
  border-color: rgba(255, 183, 77, 0.7);
  color: #ffcf7b;
}

#manualCandleCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid rgba(103, 129, 172, 0.35);
  border-radius: 10px;
  background: #071225;
}

.manual-status {
  color: #b8c8e7;
  font-size: 13px;
}

@media (max-width: 980px) {
  .manual-layout {
    grid-template-columns: 1fr;
  }
}

.terminal-window.show {
  display: grid;
  grid-template-rows: auto 1fr;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(16, 26, 47, 0.9);
  color: var(--text);
  font-weight: 600;
  cursor: move;
}

.terminal-title span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.terminal-actions {
  display: flex;
  gap: 8px;
}

.terminal-body {
  padding: 16px;
  font-family: "Space Grotesk", "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  color: #e7ecf8;
  background: #0b0f1a;
  white-space: pre-wrap;
  overflow: auto;
  height: 100%;
}

.terminal-body-full {
  font-size: 12px;
  color: #d9e2f3;
}

.log-raw {
  font-family: "Space Grotesk", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #d9e2f3;
  white-space: pre-wrap;
}

.terminal-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.terminal-body::-webkit-scrollbar-track {
  background: rgba(12, 20, 36, 0.9);
  border-radius: 999px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.9), rgba(94, 234, 212, 0.9));
  border-radius: 999px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 229, 255, 1), rgba(255, 183, 77, 0.9));
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(12, 20, 36, 0.7);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.9), rgba(0, 229, 255, 0.9));
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(209, 107, 255, 0.95), rgba(0, 229, 255, 0.95));
}

.tx-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(9, 17, 34, 0.85);
  color: #7fd0ff;
  cursor: pointer;
}

.tx-icon-btn:hover {
  border-color: rgba(0, 255, 157, 0.75);
  color: #9effc8;
}

.tx-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}

.tx-modal.show {
  display: flex;
}

.tx-modal-content {
  width: min(640px, 96vw);
  background: #0b1325;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.tx-modal-title {
  font-size: 14px;
  color: #bcd0ef;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tx-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #ffffff;
  background: rgba(9, 17, 34, 0.8);
  border: 1px dashed rgba(124, 77, 255, 0.5);
  border-radius: 10px;
  padding: 10px;
  word-break: break-all;
}

.tx-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}

.terminal-close {
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: transparent;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tick-line {
  display: grid;
  gap: 6px;
}

.tick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.tick-label {
  color: #7c4dff;
  font-weight: 600;
}

.tick-rsi {
  color: #ffd166;
}

.tick-atr {
  color: #00e5ff;
}

.tick-adx {
  color: #ff6b6b;
}

.tick-bbp {
  color: #a78bfa;
}

.tick-value {
  color: #00e5ff;
}

.tick-aux {
  color: #00ff9d;
}

.tick-score {
  color: #ffb74d;
}

.tick-dim {
  color: #b7c0d8;
}

.tick-info {
  color: #ffffff !important;
}

.tick-warn {
  color: #ffb74d;
}

.tick-error {
  color: #ff6b6b;
}

.tick-trade {
  color: #00e5ff;
}

.tick-signal {
  color: #d16bff;
}

.tick-security {
  color: #ff8c00;
}

.tick-think {
  color: #33ff9a !important;
  font-weight: 600;
  background: transparent;
  border-left: none;
  padding: 0;
  border-radius: 0;
  display: inline;
}

.log-line {
  display: grid;
  gap: 2px;
  padding: 2px 0;
}

.log-grid {
  display: grid;
  grid-template-columns: 180px 80px 80px 1fr;
  gap: 8px;
  align-items: center;
}

.log-time {
  color: #8ea2c6;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.log-level {
  font-weight: 700;
  font-size: 12px;
}

.log-info .log-level {
  color: #4aa3ff;
}

.log-warn .log-level {
  color: #ffb74d;
}

.log-error .log-level {
  color: #ff6b6b;
}

.log-trade .log-level {
  color: #00e5ff;
}

.log-signal .log-level {
  color: #d16bff;
}

.log-security .log-level {
  color: #ff8c00;
}

.log-tag {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.log-tag-think {
  color: #33ff9a;
}

.log-tag-generic {
  color: transparent;
}

.log-text-main {
  color: #ffffff;
  line-height: 1.25;
}

.log-think-text {
  color: #ffffff;
  padding-left: 260px;
  line-height: 1.25;
}

@media (max-width: 720px) {
  .log-think-text {
    padding-left: 0;
  }
}


.log-meta {
  color: #7fd0ff;
  font-size: 12px;
}

.log-meta-pre {
  margin: 4px 0 0;
  padding: 8px 10px;
  background: rgba(9, 14, 26, 0.65);
  border: 1px solid rgba(74, 163, 255, 0.2);
  border-radius: 10px;
  color: #7fd0ff;
  font-size: 12px;
  white-space: pre-wrap;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
}

@media (max-width: 720px) {
  .log-grid {
    grid-template-columns: 1fr;
  }
  .log-tag-generic {
    display: none;
  }
}

.client-wrap {
  max-width: 1100px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(1200px 260px at 15% -20%, rgba(20, 184, 166, 0.2), transparent 55%),
    radial-gradient(800px 220px at 90% -25%, rgba(255, 136, 0, 0.16), transparent 58%),
    rgba(6, 10, 22, 0.7);
  backdrop-filter: blur(10px);
}

.client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.client-topbar .brand {
  font-size: 24px;
  font-weight: 700;
}

.bitex-brand {
  letter-spacing: 0.3px;
}

.bitex-word {
  font-weight: 800;
  font-size: 30px;
  background: linear-gradient(90deg, #22d3ee, #14b8a6 45%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(20, 184, 166, 0.22);
}

.investor-word {
  font-weight: 700;
  color: #ff9f1a;
  text-shadow: 0 0 18px rgba(255, 159, 26, 0.3);
}

.client-menu {
  display: flex;
  gap: 10px;
}

.menu-toggle {
  display: none;
  min-width: 46px;
  padding: 8px 10px;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
  border-color: rgba(0, 255, 157, 0.75);
  box-shadow: 0 10px 22px rgba(0, 194, 255, 0.25);
}

.btn-mini {
  border: 1px solid rgba(36, 197, 255, 0.45);
  background: linear-gradient(180deg, rgba(33, 150, 243, 0.2), rgba(5, 14, 35, 0.75));
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 194, 255, 0.22);
}

.btn-mini.danger {
  border-color: rgba(255, 84, 84, 0.62);
  background: linear-gradient(180deg, rgba(244, 67, 54, 0.25), rgba(35, 7, 11, 0.8));
}

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

.client-card {
  border: 1px solid rgba(120, 170, 255, 0.25);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(12, 21, 49, 0.82), rgba(8, 12, 28, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.client-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.client-card.full {
  grid-column: 1 / -1;
}

.refresh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refresh-fx {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.loader-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(9, 22, 38, 0.8), rgba(9, 27, 54, 0.7));
  border: 1px solid rgba(123, 212, 255, 0.25);
}

.loader-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00e5ff, #00ffa3, #88ff66);
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.4);
  transition: width 1s linear;
}

.ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(145, 192, 255, 0.25);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
  font-size: 26px;
  color: #d8f7ff;
}

.ring-center small {
  font-size: 14px;
  color: #7de3ff;
}

.client-fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

.value-anim {
  display: inline-block;
  transform-origin: center;
  transition: color 0.25s ease;
}

.value-anim.is-up {
  color: #7dffbd;
}

.value-anim.is-down {
  color: #ff9b9b;
}

.is-up {
  color: #7dffbd;
}

.flip-animate {
  animation: valueFlip 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes valueFlip {
  0% { transform: perspective(300px) rotateX(0deg) scale(1); filter: brightness(1); }
  35% { transform: perspective(300px) rotateX(50deg) scale(1.06); filter: brightness(1.2); }
  70% { transform: perspective(300px) rotateX(-14deg) scale(0.99); filter: brightness(1.06); }
  100% { transform: perspective(300px) rotateX(0deg) scale(1); filter: brightness(1); }
}

.deposit-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(1, 4, 12, 0.7);
  backdrop-filter: blur(3px);
}

.deposit-modal[aria-hidden="false"] {
  display: flex;
}

.deposit-box {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(123, 212, 255, 0.28);
  background: linear-gradient(180deg, rgba(11, 17, 34, 0.98), rgba(8, 12, 26, 0.98));
  padding: 14px;
}

.deposit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.deposit-head h3 {
  margin: 0;
}

.deposit-label {
  display: block;
  margin-top: 10px;
  color: #d8e7ff;
  font-size: 13px;
}

.deposit-label input {
  width: 100%;
  margin-top: 6px;
  background: rgba(2, 9, 22, 0.85);
  color: #fff;
  border: 1px solid rgba(126, 170, 255, 0.35);
  border-radius: 8px;
  padding: 10px;
}

.deposit-estimate {
  margin-top: 12px;
  font-weight: 700;
  color: #95ffd0;
}

.deposit-warn {
  margin-top: 6px;
  color: #ff8f8f;
  font-size: 12px;
}

.deposit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.deposits-content {
  width: min(1080px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}

@media (max-width: 900px) {
  .client-wrap {
    overflow-x: hidden;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .refresh-fx {
    grid-template-columns: 1fr;
  }
  .ring-wrap {
    margin: 0 auto;
  }
  .client-topbar {
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .client-topbar .brand {
    flex: 1;
    min-width: 0;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .client-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(123, 212, 255, 0.22);
    background: rgba(5, 12, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .client-topbar.menu-open .client-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .client-menu .btn-mini {
    width: 100%;
    flex: 1 1 auto;
  }
  .client-card {
    padding: 12px;
    min-width: 0;
  }
  .table-wrap {
    width: 100%;
  }
  .trade-table {
    min-width: 640px;
  }
}

@media (max-width: 600px) {
  .client-wrap {
    width: calc(100vw - 12px);
    padding: 10px;
    border-radius: 12px;
  }
  .client-topbar .brand {
    font-size: 18px;
  }
  .bitex-word {
    font-size: 22px;
  }
  .investor-word {
    font-size: 18px;
  }
  .btn-mini {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
  }
  .wallet-row {
    gap: 10px;
    align-items: flex-start;
  }
  .wallet-row strong {
    font-size: 13px;
    max-width: 55%;
  }
  .refresh-head h3 {
    font-size: 15px;
  }
  .refresh-head strong {
    font-size: 14px;
  }
  .ring-wrap,
  .ring {
    width: 96px;
    height: 96px;
  }
  .ring-center {
    font-size: 20px;
  }
  .loader-track {
    height: 8px;
  }
  .trade-table {
    min-width: 560px;
    font-size: 12px;
  }
  .deposit-box {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
    padding: 10px;
    border-radius: 12px;
  }
  .deposit-actions {
    flex-wrap: wrap;
  }
  .deposit-actions .btn-mini {
    flex: 1 1 160px;
  }
}
