:root{
  --bg:#0b1220;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --card: rgba(15,23,42,.62);
  --stroke: rgba(255,255,255,.10);
  --primary:#3b82f6;
  --primary-grad: linear-gradient(135deg,#2563eb,#7c3aed);
  --green:#46d39a;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
}
.wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* ---------- CARDS / BRAND ---------- */
.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.logo-line{ display:flex; align-items:center; gap:14px; margin-bottom:10px;}
.logo{ width:48px; height:48px; border-radius:10px; background:#111826; display:flex; align-items:center; justify-content:center; font-size:18px; }
.brand-top{ font-weight:700; font-size:22px; }
.brand-bottom{ font-size:18px; color:#cbd5e1; }
h1{ margin:8px 0 12px; }
label{ display:block; margin:10px 0 6px; color:#cbd5e1; }

input{
  width:100%; padding:12px 14px; border-radius:12px;
  border:1px solid var(--stroke); background:rgba(2,6,23,.5); color:var(--text);
  outline:none;
}

/* ---------- BUTTONS ---------- */
button{
  width:100%; padding:12px 14px; border-radius:12px; background:transparent; color:var(--text);
  border:1px solid var(--stroke); margin-top:12px; cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
}
button.primary{ background:var(--primary-grad); border:0; color:white; font-weight:600; }
button.primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 30px rgba(59,130,246,.35); }
button.small{ width:auto; padding:10px 12px; border-radius:10px; margin:0; }
.muted{ color:var(--muted); font-size:14px; }
.center{ text-align:center; }

/* ---------- HEADER (sticky) ---------- */
.header-sticky{
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
  background: rgba(11,18,32,.78);
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 8px;
}
.topbar{ display:flex; justify-content:space-between; align-items:center; margin-top:6px; }
.title-wrap { display:flex; flex-direction:column; gap:2px; }
.title{ font-size:26px; font-weight:800; letter-spacing:.5px; margin:0; }
.note{ font-size:12px; color:var(--muted); opacity:.95; }
.timer{ padding:10px 12px; border:1px solid var(--stroke); border-radius:12px; background:rgba(2,6,23,.6); }

/* ---------- TABS ---------- */
.tabs{ display:flex; gap:12px; margin:16px 0; }
.tab{
  padding:10px 14px; border-radius:12px; border:1px solid var(--stroke);
  background:rgba(2,6,23,.6); cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.tab:hover{ transform: translateY(-1px); }
.tab.active{ background:rgba(59,130,246,.15); border-color:rgba(59,130,246,.45); }

.tabpane{ display:none; }
.tabpane.active{ display:block; }

/* ---------- CONTROLS ---------- */
.controls{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin:10px 0 16px; }
.slider{ display:flex; align-items:center; gap:10px; }
.slider input[type=range]{ width:220px; }
.pill{ border:1px solid var(--stroke); padding:6px 10px; border-radius:10px; background:rgba(2,6,23,.6); }

/* ---------- SIGNALS LIST ---------- */
#signalsList{ display:flex; flex-direction:column; gap:12px; }
.sig{
  background:var(--card); border:1px solid var(--stroke);
  border-radius:16px; padding:14px 16px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sig:hover{ transform: translateY(-2px); box-shadow: 0 14px 44px rgba(0,0,0,.35); }
.row1{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.sym{ font-size:18px; font-weight:700; }
.exs{ color:#cbd5e1; display:flex; gap:12px; flex-wrap:wrap; }
.price{ font-weight:700; }

/* spread badge */
.badge{
  color:#10b981; font-weight:800; font-variant-numeric: tabular-nums;
  background: rgba(16,185,129,.12);
  padding:6px 10px; border-radius:10px;
}

/* время обновления */
.sig .age{
  margin-top:8px;
  font-size:12px;
  color: var(--muted);
}

/* ---------- PLANS ---------- */
.plans{ display:flex; gap:12px; margin-top:12px; flex-wrap:wrap; }
.plan{ flex:1; min-width:220px; background:var(--card); border:1px solid var(--stroke); border-radius:16px; padding:16px; }
.p-title{ color:#cbd5e1; }
.p-price{ font-size:20px; font-weight:800; margin:10px 0; }

.blocked{ margin-top:16px; border:1px dashed var(--stroke); border-radius:16px; padding:16px; background:rgba(2,6,23,.5); }

/* ---------- FEES TABLE ---------- */
#feesTable table{ border-collapse: collapse; width:100%; }
#feesTable th, #feesTable td{
  padding:10px 12px;
  border-bottom:1px solid var(--stroke);
  text-align:left;
}
#feesTable thead th{ color:#cbd5e1; font-weight:700; }

/* ---------- TOOLTIP ---------- */
.tooltip{ position:relative; cursor:help; }
.tooltip::after{
  content: attr(data-tip);
  position:absolute; left:0; top:100%; margin-top:8px;
  background:#0f172a; border:1px solid var(--stroke); padding:8px 10px;
  border-radius:10px; color:#cbd5e1; font-size:12px; white-space:nowrap;
  opacity:0; transform: translateY(6px); pointer-events:none;
  transition: opacity .12s ease, transform .12s ease;
}
.tooltip:hover::after{ opacity:1; transform: translateY(0); }

/* ---------- TOAST ---------- */
.toast{
  position:fixed; right:16px; bottom:16px; background:#111827; color:#e5e7eb;
  border:1px solid var(--stroke); padding:12px 14px; border-radius:12px;
  display:none; z-index: 20;
}
.toast.show{ display:block; animation: toast-in .18s ease; }
@keyframes toast-in{ from{opacity:0; transform: translateY(6px)} to{opacity:1; transform:none} }

/* ---------- SKELETON LOADER ---------- */
.skel{
  height:88px; border-radius:16px; border:1px solid var(--stroke);
  background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.08),rgba(255,255,255,.05));
  background-size:200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer{ 0%{background-position:-200% 0} 100%{background-position:200% 0} }

.logo img{
  width:70%;
  height:70%;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
