/* ==========================================================================
   TradeFind · Live Signals — premium dark-neon surface
   Standalone tokens so this page looks identical whatever the tool themes do.
   ========================================================================== */

:root {
  --tf-bg: #05070f;
  --tf-bg-soft: #080c18;
  --tf-card: rgba(13, 19, 34, 0.72);
  --tf-card-strong: rgba(16, 23, 41, 0.9);
  --tf-border: rgba(125, 149, 210, 0.16);
  --tf-border-hot: rgba(125, 249, 196, 0.36);
  --tf-text: #eaf0ff;
  --tf-dim: #9aa8c9;
  --tf-muted: #68779c;
  --tf-green: #22f59a;
  --tf-green-soft: #17c97c;
  --tf-red: #ff4567;
  --tf-cyan: #38e8ff;
  --tf-violet: #9d6bff;
  --tf-gold: #ffcf5c;
  --tf-radius: 22px;
  --tf-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tf-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --tf-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--tf-font);
  background: var(--tf-bg);
  color: var(--tf-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection {
  background: rgba(34, 245, 154, 0.28);
}

/* ------------------------------- backdrop -------------------------------- */

.tf-aurora {
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 130vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 18% 12%, rgba(34, 245, 154, 0.16), transparent 70%),
    radial-gradient(40% 36% at 82% 8%, rgba(157, 107, 255, 0.18), transparent 70%),
    radial-gradient(50% 40% at 50% 55%, rgba(56, 232, 255, 0.08), transparent 75%);
  filter: blur(30px);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

.tf-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 176, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 176, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

.tf-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes aurora-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}


/* -------------------------------- header --------------------------------- */

.tf-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 70px;
}

.tf-topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 50px -32px #000;
}

.tf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tf-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(34, 245, 154, 0.22), rgba(157, 107, 255, 0.32));
  border: 1px solid rgba(34, 245, 154, 0.38);
  box-shadow: 0 0 26px rgba(34, 245, 154, 0.24), inset 0 0 18px rgba(34, 245, 154, 0.12);
  font-family: var(--tf-mono);
  font-weight: 700;
  font-size: 15px;
  color: #d9fff0;
  letter-spacing: -0.5px;
}

.tf-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  border: 1px solid rgba(34, 245, 154, 0.18);
  animation: mark-pulse 3.6s ease-in-out infinite;
}

@keyframes mark-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.06); }
}

.tf-brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.tf-brand-name span {
  background: linear-gradient(92deg, var(--tf-green), var(--tf-cyan) 55%, var(--tf-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tf-brand-sub {
  margin: 1px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tf-muted);
}

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

.tf-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--tf-dim);
  transition: color 0.18s ease, background 0.18s ease;
}

.tf-nav a:hover {
  color: var(--tf-text);
  background: rgba(255, 255, 255, 0.06);
}

.tf-nav a.is-active {
  color: #062014;
  font-weight: 700;
  background: linear-gradient(120deg, var(--tf-green), #7cf7c8);
  box-shadow: 0 0 24px rgba(34, 245, 154, 0.35);
}

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

.tf-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--tf-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9ffdf;
  background: rgba(34, 245, 154, 0.1);
  border: 1px solid rgba(34, 245, 154, 0.28);
}

.tf-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tf-green);
  box-shadow: 0 0 0 0 rgba(34, 245, 154, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
}

.tf-live[data-state="offline"] {
  color: #ffc4cd;
  background: rgba(255, 69, 103, 0.1);
  border-color: rgba(255, 69, 103, 0.3);
}

.tf-live[data-state="offline"] .dot {
  background: var(--tf-red);
  animation: none;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 245, 154, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 245, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 245, 154, 0); }

/* Bell + notifications */
.tf-bell-wrap {
  position: relative;
}

.tf-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--tf-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tf-text);
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.tf-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 245, 154, 0.35);
  background: rgba(34, 245, 154, 0.08);
}

.tf-icon-btn.has-new {
  animation: bell-ring 2.4s ease-in-out infinite;
  border-color: rgba(255, 207, 92, 0.5);
}

@keyframes bell-ring {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-12deg); }
  90% { transform: rotate(10deg); }
  94% { transform: rotate(-6deg); }
}

.tf-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--tf-red), #ff8a5c);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(255, 69, 103, 0.65);
}

.tf-badge[hidden] {
  display: none;
}

.tf-bell-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, 86vw);
  max-height: 440px;
  overflow: auto;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--tf-border-hot);
  background: rgba(9, 14, 27, 0.97);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px -30px #000;
  transform-origin: top right;
  animation: panel-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.tf-bell-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.tf-panel-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tf-dim);
}

.tf-note {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--tf-border);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
}

.tf-note .bar {
  width: 3px;
  border-radius: 3px;
  background: var(--tf-cyan);
  flex: none;
}

.tf-note[data-level="success"] .bar { background: var(--tf-green); }
.tf-note[data-level="warning"] .bar { background: var(--tf-gold); }
.tf-note[data-level="danger"] .bar { background: var(--tf-red); }

.tf-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #dfe7fb;
}

.tf-note time {
  display: block;
  margin-top: 4px;
  font-family: var(--tf-mono);
  font-size: 10px;
  color: var(--tf-muted);
}

/* --------------------------------- hero ---------------------------------- */

.tf-hero {
  position: relative;
  padding: 58px 6px 30px;
  text-align: center;
}

.tf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(157, 107, 255, 0.32);
  background: rgba(157, 107, 255, 0.1);
  font-family: var(--tf-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d9ccff;
}

.tf-hero h1 {
  margin: 18px auto 12px;
  max-width: 820px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.tf-hero h1 em {
  font-style: normal;
  background: linear-gradient(94deg, var(--tf-green), var(--tf-cyan) 50%, var(--tf-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(34, 245, 154, 0.25);
}

.tf-hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--tf-dim);
}

/* Stats strip */
.tf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 8px;
}

.tf-stat {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--tf-border);
  background: linear-gradient(170deg, rgba(20, 28, 48, 0.8), rgba(9, 13, 25, 0.72));
  backdrop-filter: blur(14px);
}

.tf-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 245, 154, 0.6), transparent);
  opacity: 0.7;
}

.tf-stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tf-muted);
}

.tf-stat-value {
  display: block;
  margin-top: 8px;
  font-family: var(--tf-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tf-stat-value.pos { color: var(--tf-green); text-shadow: 0 0 26px rgba(34, 245, 154, 0.4); }
.tf-stat-value.neg { color: var(--tf-red); text-shadow: 0 0 26px rgba(255, 69, 103, 0.35); }
.tf-stat-value.neutral { color: var(--tf-cyan); }

.tf-stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--tf-muted);
}


/* ------------------------------- sections -------------------------------- */

.tf-section {
  margin-top: 46px;
}

.tf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.tf-section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.tf-section-head h2 .count {
  margin-left: 8px;
  font-family: var(--tf-mono);
  font-size: 12px;
  color: var(--tf-green);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 245, 154, 0.1);
  border: 1px solid rgba(34, 245, 154, 0.24);
  vertical-align: middle;
}

.tf-section-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--tf-muted);
}

.tf-stamp {
  font-family: var(--tf-mono);
  font-size: 11px;
  color: var(--tf-muted);
  letter-spacing: 0.06em;
}

.tf-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tf-pills {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border-radius: 12px;
  border: 1px solid var(--tf-border);
  background: rgba(255, 255, 255, 0.03);
}

.tf-pill {
  border: 0;
  padding: 7px 13px;
  border-radius: 9px;
  background: transparent;
  color: var(--tf-dim);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tf-pill:hover { color: var(--tf-text); }

.tf-pill.is-active {
  color: #04120b;
  font-weight: 700;
  background: linear-gradient(120deg, var(--tf-green), #8bfbd0);
}

.tf-search {
  position: relative;
}

.tf-search input {
  width: 210px;
  padding: 9px 12px 9px 32px;
  border-radius: 11px;
  border: 1px solid var(--tf-border);
  background: rgba(8, 12, 24, 0.7);
  color: var(--tf-text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tf-search input:focus {

/* ------------------------------ signal cards ----------------------------- */

.tf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.tf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--tf-radius);
  border: 1px solid var(--tf-border);
  background:
    linear-gradient(168deg, rgba(21, 29, 50, 0.86), rgba(8, 12, 23, 0.9)),
    radial-gradient(120% 80% at 0% 0%, rgba(34, 245, 154, 0.08), transparent 60%);
  backdrop-filter: blur(16px);
  box-shadow: var(--tf-shadow);
  overflow: hidden;
  animation: card-in 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 245, 154, 0.55), transparent 42%, transparent 62%, rgba(157, 107, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.tf-card[data-position="short"]::before {
  background: linear-gradient(140deg, rgba(255, 69, 103, 0.55), transparent 42%, transparent 62%, rgba(157, 107, 255, 0.5));
}

.tf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 245, 154, 0.32);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1), 0 0 40px -18px rgba(34, 245, 154, 0.4);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.tf-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tf-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #04120b;
  background: linear-gradient(140deg, var(--tf-green), var(--tf-cyan));
  box-shadow: 0 0 22px rgba(34, 245, 154, 0.28);
}

.tf-card-title {
  flex: 1;
  min-width: 0;
}

.tf-card-title h3 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.tf-card-title h3 small {
  font-family: var(--tf-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--tf-muted);
  letter-spacing: 0.06em;
}

.tf-card-title p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--tf-muted);
  font-family: var(--tf-mono);
  letter-spacing: 0.04em;
}

.tf-side {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 10px;
  font-family: var(--tf-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex: none;
}

.tf-side[data-side="long"] {
  color: #062014;
  background: linear-gradient(120deg, var(--tf-green), #96ffd9);
  box-shadow: 0 0 22px rgba(34, 245, 154, 0.35);
}

.tf-side[data-side="short"] {
  color: #2a020a;
  background: linear-gradient(120deg, var(--tf-red), #ff9d8a);
  box-shadow: 0 0 22px rgba(255, 69, 103, 0.32);
}

.tf-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd6ef;
  white-space: pre-wrap;
  word-break: break-word;
}

  border-color: rgba(34, 245, 154, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 245, 154, 0.1);
}

.tf-search::before {
  content: "⌕";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tf-muted);
  font-size: 14px;
}


.tf-ladder {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(4, 8, 17, 0.55);
  border: 1px solid rgba(125, 149, 210, 0.1);
}

.tf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tf-row-label {
  width: 84px;
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tf-muted);
}

.tf-chip {
  font-family: var(--tf-mono);
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: #e6edff;
}

.tf-chip.entry {
  border-color: rgba(56, 232, 255, 0.28);
  background: rgba(56, 232, 255, 0.08);
  color: #bff6ff;
}

.tf-chip.stop {
  border-color: rgba(255, 69, 103, 0.32);
  background: rgba(255, 69, 103, 0.1);
  color: #ffc3ce;
}

.tf-chip.target {
  border-color: rgba(34, 245, 154, 0.3);
  background: rgba(34, 245, 154, 0.09);
  color: #bdffe4;
}

.tf-chip b {
  font-weight: 600;
  opacity: 0.65;
  margin-left: 5px;
  font-size: 10.5px;
}

.tf-rr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--tf-muted);
  font-family: var(--tf-mono);
}

.tf-rr-meter {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 69, 103, 0.22);
  overflow: hidden;
}

.tf-rr-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tf-green), var(--tf-cyan));
  box-shadow: 0 0 14px rgba(34, 245, 154, 0.55);
}

.tf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--tf-muted);
  font-family: var(--tf-mono);
  flex-wrap: wrap;
}

.tf-tag {
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(157, 107, 255, 0.12);
  border: 1px solid rgba(157, 107, 255, 0.28);
  color: #d9ccff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tf-fresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tf-fresh .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tf-green);
  animation: live-pulse 1.8s ease-out infinite;
}

/* -------------------------------- history -------------------------------- */

.tf-history {
  border-radius: var(--tf-radius);
  border: 1px solid var(--tf-border);
  background: linear-gradient(170deg, rgba(17, 24, 42, 0.78), rgba(7, 11, 21, 0.84));
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: var(--tf-shadow);
}

.tf-history-head,
.tf-history-row {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.4fr 0.8fr 0.7fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 13px 18px;
}

.tf-history-head {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tf-muted);
  border-bottom: 1px solid var(--tf-border);
  background: rgba(255, 255, 255, 0.02);
}

.tf-history-row {
  border-bottom: 1px solid rgba(125, 149, 210, 0.07);
  font-size: 13px;
  animation: row-in 0.35s ease both;
  transition: background 0.18s ease;
}

.tf-history-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tf-history-row:last-child {
  border-bottom: 0;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

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

.tf-coin .tf-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
}

.tf-coin strong {
  display: block;
  font-size: 13.5px;
}

.tf-coin small {
  display: block;
  font-family: var(--tf-mono);
  font-size: 10.5px;
  color: var(--tf-muted);
}

.tf-history .mono {
  font-family: var(--tf-mono);
  font-size: 12px;
  color: var(--tf-dim);
}

.tf-result {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--tf-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tf-result[data-result="win"] {
  color: #04120b;
  background: linear-gradient(120deg, var(--tf-green), #9cffdb);
  box-shadow: 0 0 18px rgba(34, 245, 154, 0.35);
}

.tf-result[data-result="loss"] {
  color: #2a020a;
  background: linear-gradient(120deg, var(--tf-red), #ff9d8a);
}

.tf-result[data-result="breakeven"] {
  color: #1b1305;
  background: linear-gradient(120deg, var(--tf-gold), #ffe7a8);
}

.tf-pnl {
  font-family: var(--tf-mono);
  font-weight: 700;
  font-size: 13px;
}

.tf-pnl.pos { color: var(--tf-green); }
.tf-pnl.neg { color: var(--tf-red); }
.tf-pnl.flat { color: var(--tf-gold); }

.tf-more {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-top: 1px solid var(--tf-border);
}

.tf-btn-ghost {
  padding: 9px 18px;
  border-radius: 11px;
  border: 1px solid var(--tf-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tf-text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.tf-btn-ghost:hover {
  border-color: rgba(34, 245, 154, 0.35);
  background: rgba(34, 245, 154, 0.08);
}


/* ------------------------- empty / skeleton / toast ----------------------- */

.tf-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 54px 24px;
  border-radius: var(--tf-radius);
  border: 1px dashed rgba(125, 149, 210, 0.24);
  background: rgba(10, 15, 28, 0.5);
}

.tf-empty .glyph {
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 18px rgba(34, 245, 154, 0.4));
}

.tf-empty h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.tf-empty p {
  margin: 0 auto;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--tf-muted);
}

.tf-skel {
  height: 260px;
  border-radius: var(--tf-radius);
  border: 1px solid var(--tf-border);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.02) 70%),
    rgba(13, 19, 34, 0.6);
  background-size: 300% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  from { background-position: 150% 0; }
  to { background-position: -150% 0; }
}

.tf-toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, calc(100vw - 40px));
}

.tf-toast {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 245, 154, 0.34);
  background: rgba(8, 16, 24, 0.96);
  box-shadow: 0 24px 60px -24px #000, 0 0 30px -14px rgba(34, 245, 154, 0.5);
  backdrop-filter: blur(16px);
  animation: toast-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.tf-toast[data-level="danger"] { border-color: rgba(255, 69, 103, 0.4); }
.tf-toast[data-level="warning"] { border-color: rgba(255, 207, 92, 0.4); }

.tf-toast.is-out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(26px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(30px); }
}

.tf-toast .glyph {
  flex: none;
  font-size: 16px;
  line-height: 1.3;
}

.tf-toast strong {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.tf-toast p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tf-dim);
}

/* -------------------------------- footer --------------------------------- */

.tf-footer {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--tf-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--tf-muted);
  line-height: 1.6;
}

.tf-footer strong {
  color: var(--tf-dim);
}

.tf-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tf-footer nav a {
  color: var(--tf-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.tf-footer nav a:hover {
  color: var(--tf-green);
  border-color: rgba(34, 245, 154, 0.5);
}

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 1080px) {
  .tf-nav a:not(.is-active) { padding: 8px 9px; font-size: 12.5px; }
  .tf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tf-shell { padding: 12px 14px 54px; }
  .tf-topbar { flex-wrap: wrap; top: 8px; }
  .tf-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .tf-brand-sub { display: none; }
  .tf-hero { padding-top: 40px; }
  .tf-hero h1 { font-size: 30px; }
  .tf-search input { width: 100%; }
  .tf-search { flex: 1; }
  .tf-card { padding: 16px; }
  .tf-history-head { display: none; }
  .tf-history-row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 14px 16px;
  }
  .tf-history-row .tf-result { justify-self: end; }
  .tf-history-row .hide-sm { display: none; }
  .tf-toasts { left: 14px; right: 14px; bottom: 14px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(8, 12, 22, 0.8); }
::-webkit-scrollbar-thumb {
  background: rgba(125, 149, 210, 0.26);
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 22, 0.9);
}
::-webkit-scrollbar-thumb:hover { background: rgba(34, 245, 154, 0.4); }

}
