@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #05050f;
  --panel: #0c0c20;
  --panel-2: #10102a;
  --line: rgba(124, 58, 237, 0.28);
  --line-soft: rgba(255, 255, 255, 0.07);
  --purple: #6322f5;
  --purple-light: #8b5cf6;
  --violet: #a855f7;
  --text: #ffffff;
  --muted: #a3a4bd;
  --green: #16a34a;
  --red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, Arial, sans-serif;
  background:
    radial-gradient(800px 460px at 85% -5%, rgba(99, 34, 245, 0.25), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text); line-height: 1.55; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); }

/* ---------- navigation ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  height: 84px; padding: 0 max(24px, calc((100% - 1240px) / 2));
  background: rgba(5, 5, 15, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.logo { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.01em; color: #fff; }
nav ul { list-style: none; display: flex; gap: 8px; align-items: center; }
nav a {
  display: block; padding: 10px 20px; border-radius: 12px; color: #fff;
  text-decoration: none; font-weight: 500; transition: background 0.2s;
}
nav a:hover { background: rgba(99, 34, 245, 0.22); }
nav li:last-child a { background: var(--purple); box-shadow: 0 8px 26px rgba(99, 34, 245, 0.35); }
nav li:last-child a:hover { background: #7239ff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 15px 32px; background: var(--purple); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(99, 34, 245, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(99, 34, 245, 0.55); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: none; }

/* ---------- titles ---------- */
.section-sub { color: var(--muted); }

/* ---------- pricing ---------- */
.pricing { max-width: 1100px; margin: 0 auto; text-align: center; padding: 80px 24px; }
.pricing h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 8px;
  display: inline-block; padding-left: 16px; border-left: 4px solid var(--purple-light);
}
.plans { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 48px; }
.plan {
  width: 340px; padding: 40px 34px; border-radius: 22px; text-align: left;
  background: var(--panel); border: 1px solid var(--line-soft);
}
.plan h3 { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet); font-weight: 700; }
.plan.featured {
  border-color: var(--line);
  background: linear-gradient(160deg, rgba(99, 34, 245, 0.3), var(--panel) 75%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.price { font-size: 2.6rem; font-weight: 800; margin: 16px 0 22px; line-height: 1.1; }
.price span { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin-bottom: 30px; }
.plan li {
  padding: 10px 0 10px 28px; position: relative; color: #d6d7ea;
  font-size: 0.97rem; border-bottom: 1px solid var(--line-soft);
}
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }
.note { margin-top: 30px; color: var(--muted); font-size: 0.88rem; }

/* ---------- signals ---------- */
.signals { max-width: 820px; margin: 0 auto; padding: 70px 24px; }
.signals h1 {
  font-size: 2.6rem; font-weight: 800; margin-bottom: 28px;
  padding-left: 16px; border-left: 4px solid var(--purple-light);
}
.notify-box { margin-bottom: 28px; }
.signal-card {
  border: 1px solid var(--line-soft); border-left: 4px solid var(--muted);
  border-radius: 16px; padding: 20px 26px; margin-bottom: 14px; background: var(--panel);
  animation: cardIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.signal-card:nth-child(2) { animation-delay: 0.07s; }
.signal-card:nth-child(3) { animation-delay: 0.14s; }
.signal-card:nth-child(n+4) { animation-delay: 0.2s; }
@keyframes cardIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.signal-card.buy { border-left-color: var(--green); }
.signal-card.sell { border-left-color: var(--red); }
.signal-top { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; font-size: 1.35rem; }
.tag { padding: 3px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; color: #fff; background: var(--purple); }
.signal-card.buy .tag { background: var(--green); }
.signal-card.sell .tag { background: var(--red); }
.status { margin-left: auto; color: var(--violet); font-size: 0.95rem; }
.signal-card p { color: #d6d7ea; }
.signal-card small { color: var(--muted); }

/* ---------- login, signup, payment ---------- */
.auth {
  max-width: 440px; margin: 80px auto; text-align: center; padding: 44px 36px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.auth h1 { font-size: 2rem; font-weight: 800; margin-bottom: 18px; }
.auth p { color: var(--muted); font-size: 0.93rem; }
.auth input, .form-row input, .form-row select {
  display: block; width: 100%; padding: 14px 16px; margin: 12px 0;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-soft);
  border-radius: 12px; font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth input:focus, .form-row input:focus, .form-row select:focus {
  outline: none; border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.auth input::placeholder, .form-row input::placeholder { color: #5d5f7c; }
.auth .btn, .form-row .btn { width: 100%; margin-top: 10px; }
.error { color: #ff7b7b; margin: 10px 0; font-size: 0.9rem; }

/* ---------- admin ---------- */
.admin { max-width: 920px; margin: 0 auto; padding: 56px 24px; }
.admin h2 {
  font-size: 1.7rem; font-weight: 800; margin: 40px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--purple-light);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; align-items: center; }
.form-row input, .form-row select { margin: 0; }
.form-row .btn { margin: 0; }
.admin-row { display: flex; gap: 10px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
.admin-row span { flex: 1; color: #d6d7ea; }
.admin-row button {
  padding: 8px 16px; cursor: pointer; background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 10px; font-family: inherit;
}
.admin-row button:hover { background: rgba(99, 34, 245, 0.25); }

/* ---------- footer ---------- */
footer {
  color: var(--muted); padding: 30px 24px; font-size: 0.82rem; text-align: center;
  border-top: 1px solid var(--line-soft); background: #04040c;
}
footer strong { color: #d8d9ea; }

/* ---------- scroll reveal ---------- */
.plan, .step, .stat {
  transition: opacity 0.8s ease var(--d, 0s), translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
.reveal { opacity: 0; translate: 0 32px; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- mobile ---------- */
/* ---------- results ---------- */
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.res-filter { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.res-filter button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: .2s; }
.res-filter button:hover { color: #fff; }
.res-filter button.on { background: linear-gradient(110deg, #6820f4, #8b20f8); color: #fff; }

.res-grid { display: grid; grid-template-columns: .95fr 1.4fr; gap: 18px; margin-top: 26px; }
.res-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #131530, #0d1022); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.res-card:before { content: ""; position: absolute; top: -90px; right: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(118,44,255,.22), transparent 70%); pointer-events: none; }
.res-main { display: flex; align-items: center; gap: 26px; }

.rate-box { flex: none; min-width: 130px; padding-right: 26px; border-right: 1px solid var(--line); }
.rate-num { font-size: 48px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; color: var(--green); margin-top: 4px; }
.res-card:before { display: none; }

@media (max-width: 560px) {
  .rate-box { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; text-align: center; }
}
.res-legend { flex: 1; min-width: 0; }
.leg { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: #d9d7e8; }
.leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; }
.leg b { font-size: 17px; color: #fff; }
.split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.07); margin-top: 14px; }
.split span { display: block; height: 100%; width: 0; transition: width 1.1s ease; }

.res-label { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.res-big { font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1.15; margin: 4px 0 10px; }
.res-big.up { color: var(--green); }
.res-big.down { color: #ff5a6e; }
.curve-box { height: 130px; }
.curve-box svg { width: 100%; height: 100%; display: block; }
.curve-empty { height: 130px; display: grid; place-items: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 12px; }

.res-list { margin-top: 18px; display: grid; gap: 10px; }
.res-row { display: grid; grid-template-columns: 46px 1fr auto 110px; align-items: center; gap: 16px; background: linear-gradient(110deg, #111326, #0d1020); border: 1px solid var(--line); border-left: 3px solid #555a78; border-radius: 14px; padding: 14px 20px; transition: .2s ease; }
.res-row:hover { transform: translateX(3px); border-color: rgba(168,85,247,.45); }
.res-row.win { border-left-color: var(--green); }
.res-row.loss { border-left-color: #ff5a6e; }
.res-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; font-weight: 900; background: rgba(255,255,255,.07); }
.res-row.win .res-ico { background: rgba(18,201,129,.14); color: var(--green); }
.res-row.loss .res-ico { background: rgba(255,90,110,.14); color: #ff5a6e; }
.res-pair { font-weight: 800; font-size: 16px; }
.res-pair small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.res-badge { padding: 4px 13px; border-radius: 20px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff; background: #555a78; }
.res-row.win .res-badge { background: #0b9d5e; }
.res-row.loss .res-badge { background: #d6334a; }
.res-pips { text-align: right; font-weight: 800; font-size: 17px; color: var(--muted); }
.res-row.win .res-pips { color: var(--green); }
.res-row.loss .res-pips { color: #ff5a6e; }
.res-empty { text-align: center; color: var(--muted); padding: 30px; border: 1px dashed var(--line); border-radius: 16px; }
.results-note { color: var(--muted); font-size: 12px; margin-top: 16px; }

@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .res-main { flex-direction: column; align-items: stretch; }
  .ring { margin: 0 auto; }
  .res-row { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 12px 14px; }
  .res-badge { display: none; }
  .res-ico { width: 40px; height: 40px; }
}

@media (max-width: 800px) {
  nav { flex-direction: column; height: auto; gap: 10px; padding: 14px 18px; }
  nav ul { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}