:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f7f9ff;
  background: #060912;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

input,
textarea,
select {
  outline: none;
}

::selection {
  color: white;
  background: rgba(139, 124, 255, 0.45);
}
:root {
  --tc-bg: #060912;
  --tc-bg-soft: #0a0f1c;
  --tc-panel: rgba(15, 22, 38, 0.78);
  --tc-panel-strong: rgba(17, 25, 44, 0.94);
  --tc-line: rgba(148, 163, 184, 0.13);
  --tc-line-strong: rgba(148, 163, 184, 0.22);
  --tc-text: #f7f9ff;
  --tc-muted: #7f8ca8;
  --tc-dim: #56627a;
  --tc-violet: #8b7cff;
  --tc-cyan: #53d8ff;
  --tc-mint: #42e7a8;
  --tc-red: #ff6f91;
  --tc-amber: #ffbd69;
  --tc-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

html {
  background: var(--tc-bg);
}

body {
  color: var(--tc-text);
  background:
    radial-gradient(circle at 14% 0%, rgba(101, 85, 255, 0.13), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(61, 210, 255, 0.09), transparent 28%),
    linear-gradient(180deg, #060912 0%, #080c16 45%, #060912 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.tc-app-shell {
  min-height: calc(100vh - 76px);
}

.tc-page {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 32px 30px 58px;
}

.tc-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #8998b8;
}

.tc-muted {
  color: var(--tc-muted);
}

.positive-text {
  color: var(--tc-mint) !important;
}

.negative-text {
  color: var(--tc-red) !important;
}

.tc-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.tc-nav-inner {
  width: min(1580px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.tc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.tc-brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(139, 124, 255, 0.4);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(139, 124, 255, 0.22), rgba(83, 216, 255, 0.07));
  box-shadow: 0 10px 35px rgba(97, 78, 255, 0.18);
}

.tc-brand-mark span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tc-cyan), var(--tc-violet));
}

.tc-brand-mark span:nth-child(1) {
  height: 10px;
}

.tc-brand-mark span:nth-child(2) {
  height: 18px;
}

.tc-brand-mark span:nth-child(3) {
  height: 14px;
}

.tc-brand > div:last-child {
  display: grid;
  gap: 1px;
}

.tc-brand strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.tc-brand > div:last-child > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #65728e;
}

.tc-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.54);
}

.tc-nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #73809b;
  font-size: 12px;
  font-weight: 800;
  transition: 160ms ease;
}

.tc-nav-links a:hover {
  color: #dce5ff;
}

.tc-nav-links a.active {
  color: white;
  background:
    linear-gradient(135deg, rgba(139, 124, 255, 0.22), rgba(83, 216, 255, 0.1));
  box-shadow: inset 0 0 0 1px rgba(139, 124, 255, 0.2);
}

.tc-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.tc-demo-chip,
.tc-user-chip,
.tc-connection,
.tc-live-pill,
.tc-section-note {
  display: flex;
  align-items: center;
}

.tc-demo-chip {
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(66, 231, 168, 0.2);
  border-radius: 999px;
  color: #9cf0cc;
  background: rgba(66, 231, 168, 0.06);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tc-user-chip {
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  color: #9da9c1;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 700;
}

.tc-user-chip > div {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #6658d9, #3888b9);
  font-size: 10px;
  font-weight: 900;
}

.tc-nav-signout,
.tc-icon-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #8895ae;
  background: rgba(255, 255, 255, 0.025);
  transition: 160ms ease;
}

.tc-nav-signout {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.tc-nav-signout:hover,
.tc-icon-button:hover {
  color: white;
  border-color: rgba(139, 124, 255, 0.34);
  background: rgba(139, 124, 255, 0.08);
}

.tc-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 28px 2px 12px;
}

.tc-hero-copy {
  max-width: 780px;
}

.tc-hero h1 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.tc-hero p {
  max-width: 700px;
  margin: 0;
  color: #75839e;
  font-size: 14px;
  line-height: 1.7;
}

.tc-hero-spark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 124, 255, 0.24);
  border-radius: 12px;
  color: #c4bbff;
  background: rgba(139, 124, 255, 0.08);
}

.tc-hero-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.tc-auto-trading-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 253px;
  padding: 10px 12px;
  border: 1px solid rgba(128, 141, 163, 0.32);
  border-radius: 13px;
  background: rgba(13, 19, 32, 0.88);
  color: #e9effd;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tc-auto-trading-toggle.is-on {
  border-color: rgba(66, 231, 168, 0.52);
  background: rgba(17, 64, 54, 0.40);
}
.tc-auto-trading-toggle.is-off {
  border-color: rgba(255, 111, 145, 0.56);
  background: rgba(89, 30, 42, 0.40);
}
.tc-auto-trading-toggle > svg {
  flex: 0 0 auto;
  color: #aeb8cc;
}
.tc-auto-trading-toggle.is-on > svg { color: #42e7a8; }
.tc-auto-trading-toggle.is-off > svg { color: #ff7998; }
.tc-auto-trading-toggle:focus-visible {
  outline: 2px solid #b3a8ff;
  outline-offset: 3px;
}
.tc-auto-trading-toggle:disabled { cursor: not-allowed; opacity: 0.65; }
.tc-auto-trading-label {
  display: grid;
  gap: 3px;
  flex: 1;
}
.tc-auto-trading-label strong { font-size: 12px; letter-spacing: 0.04em; }
.tc-auto-trading-label small {
  font-size: 9px;
  color: #a8b4c9;
  white-space: nowrap;
}
.tc-auto-trading-track {
  position: relative;
  display: block;
  width: 36px;
  height: 21px;
  flex: 0 0 36px;
  border-radius: 99px;
  background: rgba(163, 172, 193, 0.38);
  box-shadow: inset 0 0 0 1px rgba(240,244,255,0.08);
}
.tc-auto-trading-toggle.is-on .tc-auto-trading-track { background: #25bd8b; }
.tc-auto-trading-toggle.is-off .tc-auto-trading-track { background: #db5d77; }
.tc-auto-trading-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 99px;
  background: #f8fbff;
  transition: transform 0.2s;
}
.tc-auto-trading-toggle.is-on .tc-auto-trading-knob { transform: translateX(15px); }

.tc-connection {
  gap: 10px;
  min-width: 205px;
  padding: 10px 13px;
  border: 1px solid var(--tc-line);
  border-radius: 13px;
  background: rgba(13, 19, 32, 0.8);
}

.tc-connection.good {
  border-color: rgba(66, 231, 168, 0.16);
}

.tc-connection.bad {
  border-color: rgba(255, 111, 145, 0.22);
}

.tc-connection > svg {
  color: var(--tc-mint);
}

.tc-connection.bad > svg {
  color: var(--tc-red);
}

.tc-connection > div {
  display: grid;
  gap: 2px;
}

.tc-connection strong {
  font-size: 11px;
}

.tc-connection span {
  color: var(--tc-muted);
  font-size: 9px;
}

.tc-icon-button {
  width: 43px;
  height: 43px;
  border-radius: 13px;
}

.tc-spin {
  animation: tc-spin 800ms linear infinite;
}

@keyframes tc-spin {
  to {
    transform: rotate(360deg);
  }
}

.tc-alert,
.tc-success-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
}

.tc-alert {
  color: #ffc4cf;
  border: 1px solid rgba(255, 111, 145, 0.2);
  background: rgba(255, 111, 145, 0.06);
}

.tc-success-alert {
  color: #a7f3d0;
  border: 1px solid rgba(66, 231, 168, 0.2);
  background: rgba(66, 231, 168, 0.06);
}

.tc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tc-stat {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--tc-line);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(16, 24, 42, 0.88), rgba(10, 15, 27, 0.8));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

.tc-stat::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: rgba(139, 124, 255, 0.08);
  filter: blur(2px);
}

.tc-stat.profit::after {
  background: rgba(66, 231, 168, 0.08);
}

.tc-stat.loss::after {
  background: rgba(255, 111, 145, 0.08);
}

.tc-stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #b7b0ff;
  background: rgba(139, 124, 255, 0.1);
}

.tc-stat > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tc-stat span {
  color: #697791;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-stat strong {
  margin-top: 2px;
  font-size: clamp(21px, 2.2vw, 31px);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.tc-stat small {
  color: #536078;
  font-size: 9px;
}

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

.tc-strategy-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--tc-line);
  border-radius: 19px;
  background:
    linear-gradient(150deg, rgba(16, 23, 40, 0.95), rgba(9, 14, 25, 0.92));
  box-shadow: var(--tc-shadow);
}

.tc-strategy-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -160px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.tc-strategy-card.fusion::after {
  background: radial-gradient(circle, rgba(126, 104, 255, 0.16), transparent 68%);
}

.tc-strategy-card.lottery::after {
  background: radial-gradient(circle, rgba(83, 216, 255, 0.13), transparent 68%);
}

.tc-strategy-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.tc-strategy-head h2,
.tc-section-head h2,
.tc-panel h2,
.tc-lock-card h2 {
  margin: 5px 0 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.tc-live-pill {
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(66, 231, 168, 0.18);
  border-radius: 999px;
  color: #9ff1cd;
  background: rgba(66, 231, 168, 0.055);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tc-live-pill > span,
.tc-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tc-mint);
  box-shadow: 0 0 0 4px rgba(66, 231, 168, 0.08);
}

.tc-strategy-main {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0 14px;
}

.tc-ring-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-ring {
  --ring-value: 0deg;
  width: 102px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from 220deg,
      var(--tc-violet) 0deg,
      var(--tc-cyan) var(--ring-value),
      rgba(255, 255, 255, 0.055) var(--ring-value),
      rgba(255, 255, 255, 0.055) 360deg
    );
  box-shadow: 0 0 35px rgba(98, 85, 230, 0.1);
}

.tc-ring::before {
  content: "";
  position: absolute;
}

.tc-ring > div {
  width: 79px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #0b111e;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.11);
}

.tc-ring strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}

.tc-ring span {
  margin-top: 2px;
  color: #61708c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.tc-ring small {
  margin-top: 2px;
  color: #46546d;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tc-ring.total {
  background:
    conic-gradient(
      from 220deg,
      var(--tc-mint) 0deg,
      var(--tc-cyan) var(--ring-value),
      rgba(255, 255, 255, 0.055) var(--ring-value),
      rgba(255, 255, 255, 0.055) 360deg
    );
  box-shadow: 0 0 35px rgba(66, 231, 168, 0.08);
}

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

.tc-strategy-numbers > div {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.tc-strategy-numbers span {
  color: #64718a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.tc-strategy-numbers strong {
  font-size: 17px;
}

.tc-strategy-foot,
.tc-panel-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64718b;
  font-size: 10px;
  line-height: 1.5;
}

.tc-strategy-foot {
  padding-top: 13px;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
}

.tc-section,
.tc-panel {
  border: 1px solid var(--tc-line);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(15, 22, 38, 0.82), rgba(9, 14, 25, 0.79));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.15);
}

.tc-section {
  padding: 20px;
  margin-bottom: 14px;
}

.tc-panel {
  padding: 20px;
}

.tc-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tc-section-head.compact {
  margin-bottom: 14px;
}

.tc-section-note {
  gap: 6px;
  color: #60708d;
  font-size: 9px;
  font-weight: 800;
}

.tc-risk-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 9px;
  color: #a3aec2;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 800;
}

.tc-sort-button:hover {
  color: white;
  border-color: rgba(139, 124, 255, 0.3);
  background: rgba(139, 124, 255, 0.06);
}

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

.tc-position {
  position: relative;
  padding: 15px 44px 15px 15px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 15px;
  background: rgba(7, 12, 22, 0.65);
}

.tc-position-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 111, 145, 0.18);
  border-radius: 8px;
  color: #ff9db3;
  background: rgba(255, 111, 145, 0.055);
  transition: 150ms ease;
}

.tc-position-close:hover {
  color: white;
  border-color: rgba(255, 111, 145, 0.36);
  background: rgba(255, 111, 145, 0.12);
}

.tc-position-close:disabled {
  opacity: 0.4;
}

.tc-position-top,
.tc-position-market,
.tc-position-meta {
  display: flex;
  align-items: center;
}

.tc-position-top {
  justify-content: space-between;
  gap: 10px;
}

.tc-position-market {
  gap: 10px;
  min-width: 0;
}

.tc-market-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(83, 216, 255, 0.15);
  border-radius: 10px;
  color: #a8eaff;
  background: rgba(83, 216, 255, 0.055);
  font-size: 9px;
  font-weight: 900;
}

.tc-position-market > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tc-position-market strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-position-market span {
  color: #5d6a82;
  font-size: 9px;
}

.tc-side {
  min-width: 43px;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.tc-side.positive {
  color: #8ef1c4;
  background: rgba(66, 231, 168, 0.08);
}

.tc-side.negative {
  color: #ff9db3;
  background: rgba(255, 111, 145, 0.075);
}

.tc-side.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 5px 7px;
  width: fit-content;
}

.tc-position-profit {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  margin: 15px 0 12px;
}

.tc-position-profit > div {
  display: grid;
  gap: 4px;
}

.tc-position-profit span {
  color: #596781;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.tc-position-profit strong {
  font-size: 13px;
}

.tc-position-profit > div:first-child strong {
  font-size: 18px;
}

.tc-profit-bar {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.tc-profit-peak,
.tc-profit-current {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.tc-profit-peak {
  opacity: 0.24;
  background: var(--tc-cyan);
}

.tc-profit-current {
  background: linear-gradient(90deg, var(--tc-violet), var(--tc-mint));
  box-shadow: 0 0 10px rgba(66, 231, 168, 0.18);
}

.tc-position-meta {
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 11px;
  color: #56647c;
  font-size: 8px;
}

.tc-position-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tc-two-column {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 14px;
  margin-bottom: 14px;
}

.tc-event-list,
.tc-market-list {
  display: grid;
  gap: 7px;
}

.tc-event {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.075);
}

.tc-event:last-child,
.tc-market-row:last-child {
  border-bottom: 0;
}

.tc-event-time {
  display: grid;
  gap: 2px;
}

.tc-event-time strong {
  font-size: 11px;
}

.tc-event-time span {
  color: var(--tc-cyan);
  font-size: 8px;
}

.tc-event-time.past span {
  color: #5f6d85;
}

.tc-event-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tc-event-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-event-copy span {
  color: #61708a;
  font-size: 9px;
}

.tc-event-badge {
  padding: 5px 7px;
  border-radius: 7px;
  color: #c4bdff;
  background: rgba(139, 124, 255, 0.07);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tc-market-row {
  display: grid;
  grid-template-columns: 1fr 68px 58px 58px;
  gap: 8px;
  align-items: center;
  min-height: 47px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.075);
}

.tc-market-row > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tc-market-row > div:first-child strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-market-row > div:first-child span {
  color: #56647c;
  font-size: 8px;
}

.tc-market-direction {
  padding: 5px 6px;
  border-radius: 7px;
  text-align: center;
  font-size: 8px;
  font-weight: 900;
}

.tc-market-direction.positive {
  color: #85efbe;
  background: rgba(66, 231, 168, 0.065);
}

.tc-market-direction.negative {
  color: #ff9cb3;
  background: rgba(255, 111, 145, 0.065);
}

.tc-market-direction.neutral {
  color: #8894aa;
  background: rgba(148, 163, 184, 0.06);
}

.tc-market-score,
.tc-quality {
  display: grid;
  gap: 2px;
  text-align: right;
}

.tc-market-score span,
.tc-quality span {
  color: #526078;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.tc-market-score strong,
.tc-quality strong {
  font-size: 10px;
}

.tc-panel-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.tc-history-table {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 14px;
  background: rgba(6, 10, 19, 0.42);
}

.tc-history-head,
.tc-history-row {
  display: grid;
  grid-template-columns:
    90px
    minmax(115px, 1.2fr)
    62px
    72px
    90px
    90px
    80px
    88px
    minmax(150px, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
}

.tc-history-head {
  color: #526079;
  background: rgba(255, 255, 255, 0.018);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-history-row {
  min-height: 49px;
  border-top: 1px solid rgba(148, 163, 184, 0.065);
  color: #9aa6bc;
  font-size: 9px;
}

.tc-history-row > strong {
  color: #e8ecf7;
  font-size: 9px;
}

.tc-result {
  width: fit-content;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 900;
}

.tc-result.win {
  color: #8befc0;
  background: rgba(66, 231, 168, 0.07);
}

.tc-result.loss {
  color: #ff9db3;
  background: rgba(255, 111, 145, 0.07);
}

.tc-result.flat {
  color: #a7b0c1;
  background: rgba(148, 163, 184, 0.06);
}

.tc-reason {
  overflow: hidden;
  color: #62708a;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.tc-empty,
.tc-inline-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: #66748d;
}

.tc-empty {
  min-height: 170px;
  gap: 6px;
}

.tc-empty strong {
  color: #aab4c8;
  font-size: 12px;
}

.tc-empty span,
.tc-inline-empty {
  font-size: 9px;
}

.tc-inline-empty {
  min-height: 120px;
}

.tc-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 9px 2px 0;
  color: #46536b;
  font-size: 8px;
}

.tc-footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tc-loading {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  place-content: center;
  gap: 8px;
  color: #8290aa;
  background:
    radial-gradient(circle at 50% 38%, rgba(112, 91, 255, 0.08), transparent 28%);
}

.tc-loading strong {
  margin-top: 8px;
  color: white;
  font-size: 13px;
  letter-spacing: 0.17em;
}

.tc-loading span {
  font-size: 9px;
}

.tc-loader-orb {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(139, 124, 255, 0.16);
  border-top-color: var(--tc-cyan);
  border-radius: 50%;
  animation: tc-spin 850ms linear infinite;
  box-shadow: 0 0 32px rgba(83, 216, 255, 0.11);
}

/* Account */
.tc-account-page {
  max-width: 1180px;
}

.tc-account-hero {
  align-items: center;
}

.tc-account-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  margin-bottom: 14px;
}

.tc-connection-card,
.tc-lock-card,
.tc-credential-panel {
  min-height: 100%;
}

.tc-account-status {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.tc-status-orb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tc-status-orb.good {
  background: var(--tc-mint);
  box-shadow: 0 0 0 5px rgba(66, 231, 168, 0.07);
}

.tc-status-orb.bad {
  background: var(--tc-red);
  box-shadow: 0 0 0 5px rgba(255, 111, 145, 0.07);
}

.tc-account-status > div:last-child {
  display: grid;
  gap: 3px;
}

.tc-account-status strong {
  font-size: 12px;
}

.tc-account-status span {
  color: #66748d;
  font-size: 9px;
}

.tc-account-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}

.tc-account-metrics > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 12px;
  background: rgba(8, 13, 23, 0.6);
}

.tc-account-metrics span {
  color: #58667f;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.tc-account-metrics strong {
  font-size: 13px;
}

.tc-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(139, 124, 255, 0.26);
  border-radius: 11px;
  color: white;
  background:
    linear-gradient(135deg, rgba(105, 88, 219, 0.94), rgba(59, 123, 182, 0.92));
  box-shadow: 0 13px 32px rgba(74, 74, 180, 0.18);
  font-size: 10px;
  font-weight: 900;
}

.tc-primary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tc-inline-warning {
  margin: -3px 0 13px;
  padding: 10px;
  border-radius: 9px;
  color: #ffb9c8;
  background: rgba(255, 111, 145, 0.055);
  font-size: 9px;
}

.tc-lock-card {
  display: flex;
  flex-direction: column;
}

.tc-lock-visual {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.tc-lock-orb {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 231, 168, 0.17);
  border-radius: 18px;
  color: #8eefc2;
  background:
    linear-gradient(145deg, rgba(66, 231, 168, 0.08), rgba(83, 216, 255, 0.035));
}

.tc-lock-card p {
  margin: 12px 0 18px;
  color: #71809a;
  font-size: 10px;
  line-height: 1.7;
}

.tc-lock-list {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.tc-lock-list span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8290a8;
  font-size: 9px;
}

.tc-lock-list svg {
  color: var(--tc-mint);
}

.tc-credential-panel {
  margin-bottom: 14px;
}

.tc-credential-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.tc-credential-form label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.tc-credential-form label > span {
  color: #687791;
  font-size: 9px;
  font-weight: 800;
}

.tc-credential-form input {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  color: white;
  background: rgba(6, 10, 18, 0.7);
}

.tc-credential-form input:focus {
  border-color: rgba(139, 124, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.06);
}

/* Login */
.tc-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 88, 219, 0.18), transparent 34%),
    radial-gradient(circle at 73% 78%, rgba(83, 216, 255, 0.08), transparent 29%),
    #060912;
}

.tc-login-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(38px, 6vw, 82px);
  border-right: 1px solid rgba(148, 163, 184, 0.09);
}

.tc-login-art::before,
.tc-login-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.tc-login-art::before {
  width: 430px;
  height: 430px;
  top: -120px;
  left: -110px;
  border: 1px solid rgba(139, 124, 255, 0.17);
  box-shadow:
    inset 0 0 80px rgba(139, 124, 255, 0.04),
    0 0 100px rgba(139, 124, 255, 0.04);
}

.tc-login-art::after {
  width: 230px;
  height: 230px;
  top: 40px;
  left: 90px;
  border: 1px solid rgba(83, 216, 255, 0.1);
}

.tc-login-art h1 {
  position: relative;
  max-width: 620px;
  margin: 13px 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.tc-login-art p {
  position: relative;
  max-width: 540px;
  margin: 0;
  color: #75839e;
  font-size: 13px;
  line-height: 1.75;
}

.tc-login-signal {
  position: absolute;
  top: 80px;
  right: 70px;
  width: min(380px, 42%);
  aspect-ratio: 1.45;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(18, 27, 48, 0.82), rgba(8, 13, 24, 0.78));
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.25);
  transform: rotate(-5deg);
}

.tc-login-signal::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      transparent 0 18%,
      rgba(83, 216, 255, 0.09) 18% 19%,
      transparent 19% 38%,
      rgba(139, 124, 255, 0.13) 38% 39%,
      transparent 39% 58%,
      rgba(66, 231, 168, 0.12) 58% 59%,
      transparent 59%
    );
}

.tc-login-form-wrap {
  display: grid;
  place-items: center;
  padding: 34px;
}

.tc-login-card {
  width: min(390px, 100%);
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  background: rgba(13, 19, 33, 0.76);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.tc-login-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
}

.tc-login-logo .tc-brand-mark {
  width: 38px;
  height: 38px;
}

.tc-login-logo > div:last-child {
  display: grid;
  gap: 1px;
}

.tc-login-logo strong {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.tc-login-logo span {
  color: #65728c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.tc-login-card h2 {
  margin: 0 0 5px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.tc-login-card > p {
  margin: 0 0 22px;
  color: #687691;
  font-size: 10px;
}

.tc-login-card label {
  margin: 13px 0;
}

.tc-login-card label > span {
  color: #74829d;
  font-size: 9px;
  font-weight: 800;
}

.tc-login-card input {
  min-height: 45px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 11px;
  color: white;
  background: rgba(5, 9, 17, 0.7);
}

.tc-login-card .tc-primary-action {
  width: 100%;
  margin-top: 9px;
}

.tc-login-security {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: #526078;
  font-size: 8px;
}

@media (max-width: 1120px) {
  .tc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tc-two-column {
    grid-template-columns: 1fr;
  }

  .tc-history-head,
  .tc-history-row {
    grid-template-columns:
      82px
      minmax(100px, 1fr)
      58px
      65px
      82px
      82px
      70px
      80px
      minmax(130px, 1fr);
  }

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

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

@media (max-width: 820px) {
  .tc-nav-inner {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .tc-nav-links {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 13px;
    transform: translateX(-50%);
    min-width: 270px;
    justify-content: center;
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(9, 14, 25, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
  }

  .tc-nav-links a {
    flex: 1;
    justify-content: center;
  }

  .tc-user-chip > span,
  .tc-demo-chip {
    display: none;
  }

  .tc-page {
    padding: 24px 16px 90px;
  }

  .tc-hero {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 20px;
  }

  .tc-hero-status {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .tc-auto-trading-toggle { width: 100%; }

  .tc-connection {
    flex: 1;
  }

  .tc-strategy-grid {
    grid-template-columns: 1fr;
  }

  .tc-history-table {
    overflow-x: auto;
  }

  .tc-history-head,
  .tc-history-row {
    min-width: 950px;
  }

  .tc-login {
    grid-template-columns: 1fr;
  }

  .tc-login-art {
    min-height: 280px;
    padding: 34px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  }

  .tc-login-art h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .tc-login-signal {
    top: 35px;
    right: 22px;
    opacity: 0.46;
  }

  .tc-login-form-wrap {
    padding: 24px 16px 48px;
  }
}

@media (max-width: 620px) {
  .tc-brand > div:last-child > span {
    display: none;
  }

  .tc-user-chip {
    padding-right: 4px;
  }

  .tc-stats,
  .tc-position-grid {
    grid-template-columns: 1fr;
  }

  .tc-stat {
    min-height: 104px;
  }

  .tc-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tc-section-head.compact {
    flex-direction: row;
    align-items: flex-start;
  }

  .tc-risk-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .tc-strategy-main {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tc-ring-pair {
    justify-content: center;
  }

  .tc-ring {
    width: 92px;
  }

  .tc-ring > div {
    width: 70px;
  }

  .tc-ring strong {
    font-size: 20px;
  }

  .tc-position-profit {
    grid-template-columns: 1.25fr 1fr 1fr;
  }

  .tc-event {
    grid-template-columns: 62px 1fr;
  }

  .tc-event-badge {
    display: none;
  }

  .tc-market-row {
    grid-template-columns: 1fr 56px 48px;
  }

  .tc-quality {
    display: none;
  }

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

  .tc-credential-form {
    grid-template-columns: 1fr;
  }

  .tc-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}
