:root {
  --bg0: #0b1020;
  --bg1: #121a2f;
  --card: #162038;
  --line: rgba(255,255,255,.08);
  --text: #e8eefc;
  --muted: #93a0bf;
  --accent: #3dd6c6;
  --buy: #3dd68c;
  --sell: #ff6b7a;
  --wait: #f0c75e;
  --none: #8b95b0;
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg0); color: var(--text); font-family: var(--font); }
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(61,214,198,.18), transparent 55%),
    radial-gradient(700px 400px at 90% 0%, rgba(110,120,255,.14), transparent 50%),
    linear-gradient(180deg, #0b1020, #0a0e1a 40%, #0b1020);
}
.top {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.25rem 1.25rem .5rem; max-width: 1100px; margin: 0 auto;
}
.brand { display: flex; gap: .9rem; align-items: center; }
.logo {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #6e78ff); color: #041018; font-weight: 700; font-size: 1.3rem;
}
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.85rem; letter-spacing: .01em; }
.tag, .muted, .disclaimer { color: var(--muted); }
.disclaimer {
  max-width: 1100px; margin: .25rem auto 1rem; padding: 0 1.25rem;
  font-size: .92rem; border-left: 3px solid var(--wait); padding-left: .85rem;
}
.top-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pill {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .35rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.25);
}
.pill.warn { color: var(--wait); border-color: rgba(240,199,94,.35); }
.pill.buy { color: var(--buy); }
.pill.sell { color: var(--sell); }
.pill.wait { color: var(--wait); }
.pill.none { color: var(--none); }
main { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } h1 { font-size: 1.45rem; } }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem;
  cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(61,214,198,.35); box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.price { font-size: 1.55rem; font-weight: 700; margin: .4rem 0; }
.chg.up { color: var(--buy); } .chg.down { color: var(--sell); }
.signal-row { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; }
.panel {
  margin-top: 1.25rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.15rem;
}
.detail-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.tfs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tfs button, button {
  background: rgba(61,214,198,.12); color: var(--text); border: 1px solid rgba(61,214,198,.3);
  border-radius: 10px; padding: .45rem .8rem; cursor: pointer; font: inherit;
}
.tfs button.active { background: var(--accent); color: #041018; font-weight: 700; }
button.ghost { background: transparent; border-color: var(--line); }
.chart { height: 360px; margin: 1rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } .chart { height: 280px; } }
ul.reasons { margin: .3rem 0; padding-left: 1.1rem; color: var(--muted); }
ul.reasons.for li { color: #b7f5d3; } ul.reasons.against li { color: #ffc2c9; }
.mono { background: #0b1222; border-radius: 10px; padding: .75rem; overflow: auto; font-size: .8rem; color: #c9d4f0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid var(--line); }
.form { display: grid; gap: .65rem; max-width: 520px; }
.form label { display: grid; gap: .25rem; color: var(--muted); font-size: .9rem; }
.form input[type=text], .form input[type=password], .form input[type=number] {
  background: #0b1222; border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  padding: .55rem .7rem; font: inherit;
}
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
footer {
  max-width: 1100px; margin: 0 auto 2rem; padding: 0 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .8rem;
}
.gate {
  min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem;
}
/* display:grid nadpisuje natywny [hidden] — bez tego ekran PIN zostaje na panelu */
.gate[hidden],
#app[hidden],
#detail[hidden],
[hidden] {
  display: none !important;
}
.gate-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent), var(--card);
  border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
}
.logo.big { width: 64px; height: 64px; margin: 0 auto .8rem; font-size: 1.6rem; border-radius: 18px; }
.pin-dots { display: flex; justify-content: center; gap: .55rem; margin: 1rem 0 .5rem; min-height: 14px; }
.pin-dots span {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(61,214,198,.55);
  background: transparent; transition: background .15s ease;
}
.pin-dots span.on { background: var(--accent); }
.pad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1rem;
}
.pad button {
  height: 58px; font-size: 1.35rem; font-weight: 700; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.pad button:active { background: rgba(61,214,198,.2); }
.gate-msg { color: var(--sell); min-height: 1.2em; font-size: .9rem; }
.gate-card label {
  display: grid; gap: .3rem; text-align: left; color: var(--muted); font-size: .9rem; margin: .55rem 0;
}
.gate-card input {
  background: #0b1222; border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  padding: .7rem .8rem; font: inherit; font-size: 1.1rem; letter-spacing: .12em;
}
.disclaimer.tiny { font-size: .78rem; margin-top: 1rem; border: 0; padding: 0; }
