/* TrendMonitor — shared design system */
:root {
  --bg: #0b1120;          /* page */
  --bg-2: #111a2e;        /* panels */
  --bg-3: #1a2440;        /* cards, inputs */
  --line: #233052;
  --text: #e6ecf7;
  --muted: #8ea0bd;
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, .12);
  --amber: #eab308;
  --red: #f87171;
  --blue: #5865f2;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(34,197,94,.06), transparent 60%),
    radial-gradient(900px 400px at 10% -20%, rgba(88,101,242,.07), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; gap: 1.1rem;
  padding: .9rem 1.4rem;
  background: rgba(11,17,32,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }
.brand .logo { font-size: 1.25rem; }
.nav a.item { color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav a.item:hover { color: var(--text); text-decoration: none; }
.nav .spacer { flex: 1; }
.badge {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .18rem .7rem; font-size: .72rem; font-weight: 600;
  color: var(--muted); background: var(--bg-3);
}
.badge.pro { color: var(--green); border-color: rgba(34,197,94,.55); background: var(--green-dim); }
.badge.discord { color: #c7cbff; border-color: var(--blue); }

/* ---------- layout ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 1.6rem 1.4rem 3rem; }
h1 { font-size: 1.35rem; margin: 0; }
h2.section {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 2rem 0 .8rem;
}

/* ---------- cards & stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin: 1.4rem 0; }
.stat {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.stat b { display: block; font-size: 1.7rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .8rem; }

.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin-bottom: 1.2rem;
}
.panel > h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }

/* ---------- table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: .65rem .95rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
th { color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .07em; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.015); }
.margin-good { color: var(--green); font-weight: 600; }
.pending { color: var(--muted); font-style: italic; }

/* ---------- forms ---------- */
label { display: block; font-size: .82rem; color: var(--muted); margin: .9rem 0 .35rem; }
input {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); padding: .6rem .8rem; font-size: .92rem;
}
input:focus { outline: 2px solid rgba(34,197,94,.4); border-color: var(--green); }
button {
  background: var(--green); color: #04110a; border: 0; border-radius: 8px;
  padding: .6rem 1.2rem; font-weight: 700; cursor: pointer; font-size: .9rem;
}
button:hover { filter: brightness(1.08); }
button.ghost { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); }
.hint { font-size: .8rem; color: var(--muted); margin-top: .4rem; line-height: 1.5; }
.msg { margin-left: .8rem; font-size: .85rem; color: var(--green); font-weight: 600; }

/* ---------- kw rows ---------- */
.kw {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .8rem; margin-top: .45rem; font-size: .88rem;
}
.kw a { color: var(--red); cursor: pointer; }

/* ---------- login ---------- */
.center { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.login-box {
  width: 380px; text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: 16px; padding: 2.4rem 2rem;
}
.login-box h1 { font-size: 1.5rem; }
.sub { color: var(--muted); font-size: .92rem; margin: .4rem 0 1.6rem; }
.btn {
  display: block; border-radius: 10px; padding: .8rem; font-weight: 700;
  text-decoration: none; margin-bottom: .9rem; font-size: .95rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.green { background: var(--green); color: #04110a; }
.btn.ghost { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); }
ul.steps { text-align: left; color: var(--muted); font-size: .85rem; line-height: 1.7; margin: 1.2rem 0 0; padding-left: 1.2rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line); margin-top: 3rem;
  padding: 1.4rem; text-align: center; color: var(--muted); font-size: .8rem;
}
.footer a { color: var(--muted); margin: 0 .5rem; }
