:root {
  --bg: #05080d;
  --card: #0e1520;
  --card2: #131c2a;
  --line: rgba(255,255,255,.08);
  --text: #f2f5f8;
  --muted: #93a0b4;
  --green: #00d68f;
  --green2: #00b377;
  --red: #ff5b6e;
  --blue: #3aa0ff;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(0,214,143,.18), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(58,160,255,.12), transparent 50%),
    var(--bg);
}
.app { max-width: 440px; margin: 0 auto; padding: 14px 14px 96px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.brand { display: flex; gap: 10px; align-items: center; }
.logo {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green), #1ee0ff);
  color: #042016; font-weight: 900; font-size: 13px;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(0,214,143,.3);
}
.brand h1 { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.brand p { font-size: 11px; color: var(--muted); margin-top: 1px; }
.pill {
  font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.pill.on { color: var(--green); background: rgba(0,214,143,.1); border-color: rgba(0,214,143,.35); }

.hero {
  background: linear-gradient(165deg, rgba(0,214,143,.14), transparent 60%), var(--card);
  border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  margin-bottom: 12px;
}
.hero h2 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; font-weight: 800; }
.hero .sub { color: var(--muted); font-size: 14px; line-height: 1.45; }
.actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.btn {
  border: 0; border-radius: 14px; padding: 13px 16px;
  font-weight: 750; font-size: 14px; cursor: pointer;
  background: var(--green); color: #042016;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.dark { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px;
}
.stat .k { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.stat .v { font-size: 16px; font-weight: 800; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
.card h3 { font-size: 15px; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.sig-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.long { color: var(--green); font-weight: 800; }
.short { color: var(--red); font-weight: 800; }
.levels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.levels > div { background: var(--card2); border-radius: 12px; padding: 10px 8px; }
.levels .k { font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.levels .v { font-size: 13px; font-weight: 750; }
.tags { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.clickable { cursor: pointer; }
.clickable:active { opacity: .92; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 12px; }
.price-row .big { font-size: 34px; font-weight: 900; }
.list { list-style: none; margin: 0 0 14px; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.list li b { color: var(--text); font-weight: 650; }
.list li:before { content: "✓ "; color: var(--green); font-weight: 800; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 440px; margin: 0 auto;
  display: flex; justify-content: space-around;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,8,13,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.tab { background: none; border: 0; color: var(--muted); font-size: 10px; cursor: pointer; min-width: 56px; }
.tab.on { color: var(--green); }
.tab i { display: block; font-size: 16px; font-style: normal; margin-bottom: 2px; }

.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: #172033; border: 1px solid var(--line); color: var(--text);
  padding: 11px 14px; border-radius: 12px; font-size: 13px;
  opacity: 0; transition: .25s; z-index: 50; max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; }
.input, .textarea {
  width: 100%; background: #0a1018; border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 14px;
  margin: 8px 0 10px;
}
.textarea { min-height: 90px; resize: vertical; }
.legal {
  font-size: 11px; color: var(--muted); line-height: 1.45;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; margin-top: 10px;
}
.banner {
  background: linear-gradient(90deg, rgba(58,160,255,.15), rgba(0,214,143,.1));
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  margin-bottom: 10px; font-size: 13px;
}
.banner a { color: var(--green); font-weight: 700; text-decoration: none; }
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: grid; place-items: end center; z-index: 40; padding: 12px;
}
.modal {
  width: 100%; max-width: 440px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px 20px 12px 12px;
  padding: 16px; max-height: 80vh; overflow: auto;
}
.modal h3 { margin-bottom: 8px; }
.chat-box {
  max-height: 240px; overflow: auto; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.bubble {
  padding: 10px 12px; border-radius: 14px; font-size: 13px; max-width: 90%;
  line-height: 1.4;
}
.bubble.me { align-self: flex-end; background: rgba(0,214,143,.18); }
.bubble.sup { align-self: flex-start; background: var(--card2); }
.section-title { font-size: 18px; font-weight: 800; margin: 4px 0 12px; }

.row-between { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.field-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; margin:8px 0; }
.field-grid label { font-size:11px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.field-grid .input { margin:0; padding:10px; }
.tiny { font-size:11px; margin-top:8px; }
.pairs { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; }
.pair {
  font-size:12px; padding:7px 10px; border-radius:999px;
  border:1px solid var(--line); color:var(--muted); cursor:pointer;
  background:transparent;
}
.pair.on { color:var(--green); border-color:rgba(0,214,143,.4); background:rgba(0,214,143,.1); }
.live { font-size:12px; color:var(--green); font-weight:700; margin-top:6px; }
.check-row {
  display:flex; gap:10px; align-items:flex-start; margin:12px 0;
  font-size:13px; color:var(--muted);
}
.legal-box { max-height:50vh; overflow:auto; font-size:12px; line-height:1.5; color:var(--muted); }
.chart-svg { width:100%; height:180px; background:#0a1018; border-radius:12px; margin:8px 0; }
.admin-thread {
  border:1px solid var(--line); border-radius:12px; padding:10px; margin-bottom:8px;
}
.admin-thread textarea { width:100%; margin-top:6px; }


.bybit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.bybit-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  vertical-align: middle;
}
button.btn.disabled,
button.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}


.banner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bybit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
}
.bybit-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}
.icon-x {
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.chart-wrap {
  margin: 8px 0 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
}
.chart-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 160px;
  object-fit: cover;
}
.chart-link {
  display: block;
  text-align: center;
  font-size: 12px;
  padding: 6px;
  color: #8ab4ff;
  text-decoration: none;
}
.admin-thread .row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
