/* TerraM Landing Theme styles
   Scoped by body.terram-landing to avoid colliding with admin pages etc.
*/
body.terram-landing {
  --bg:#0b1020; --panel:#0f1733; --panel2:#0c1430;
  --text:#e9eefc; --muted:#a9b6e6; --border:rgba(255,255,255,.10);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px; --pad:18px; --max:1120px;
  --accent:#7aa2ff; --good:#4ade80; --warn:#fbbf24; --bad:#fb7185;

  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(122,162,255,.18), transparent 60%),
              radial-gradient(900px 600px at 100% 20%, rgba(74,222,128,.12), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.45;
}

body.terram-landing a { color: inherit; text-decoration: none; }
body.terram-landing code { background:rgba(255,255,255,.05); padding:2px 6px; border-radius:8px; border:1px solid rgba(255,255,255,.10); }

.terram-wrap { max-width: var(--max); margin: 0 auto; padding: 24px 16px 64px; }

.terram-topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.65);
  border-bottom: 1px solid var(--border);
}
.terram-topbar .terram-wrap {
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
}
.terram-brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.terram-logo {
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, rgba(122,162,255,.95), rgba(74,222,128,.85));
  box-shadow: var(--shadow);
}
.terram-nav { display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
.terram-nav a { padding:8px 10px; border:1px solid transparent; border-radius:999px; color: var(--muted); }
.terram-nav a:hover { border-color: var(--border); color: var(--text); }

.terram-hero { display:grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
@media (max-width: 980px) { .terram-hero { grid-template-columns: 1fr; } .terram-nav { justify-content:flex-start; } }

.terram-card {
  background: linear-gradient(180deg, rgba(15,23,51,.9), rgba(12,20,48,.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
}

.terram-headline { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.terram-h1 { margin:0; font-size:28px; line-height:1.1; font-weight: 900; }
.terram-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.terram-pillrow { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.terram-pill { padding:7px 10px; border:1px solid var(--border); border-radius:999px; color: var(--muted); font-size: 12px; background: rgba(255,255,255,.03); }
.terram-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; border:1px solid var(--border); background: rgba(255,255,255,.03); font-size:12px; color: var(--muted); }
.terram-dot { width:8px; height:8px; border-radius:99px; background: var(--good); box-shadow: 0 0 0 4px rgba(74,222,128,.12); }

.terram-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 700px) { .terram-grid { grid-template-columns: 1fr; } }
.terram-stat { padding:12px; border-radius:14px; background: rgba(255,255,255,.03); border:1px solid var(--border); }
.terram-k { color: var(--muted); font-size: 12px; }
.terram-v { font-size: 18px; margin-top: 6px; font-weight: 900; }
.terram-delta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.terram-delta.good { color: rgba(74,222,128,.9); }
.terram-delta.warn { color: rgba(251,191,36,.95); }
.terram-delta.bad { color: rgba(251,113,133,.95); }

.terram-divider { height: 1px; background: var(--border); margin: 14px 0; }

.terram-btnrow { display:flex; gap:10px; flex-wrap:wrap; }
.terram-btn {
  cursor:pointer;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
}
.terram-btn:hover { filter: brightness(1.08); }
.terram-btn.small { padding: 8px 10px; border-radius: 999px; font-size: 12px; }
.terram-btn.primary { border-color: rgba(122,162,255,.5); background: rgba(122,162,255,.18); }
.terram-btn.active { border-color: rgba(122,162,255,.75); background: rgba(122,162,255,.22); }

.terram-row { display:flex; gap:10px; }
.terram-row > * { flex: 1; }
.terram-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
.terram-mini { color: var(--muted); font-size: 12px; }
.terram-price { font-size: 34px; font-weight: 950; letter-spacing: .2px; margin: 2px 0 0; }

.terram-chartwrap { height: 320px; margin-top: 10px; }
.terram-err {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(251,113,133,.35);
  background: rgba(251,113,133,.10);
  color: rgba(251,200,210,.95);
  font-size: 13px;
  display: none;
}

.terram-section { margin-top: 22px; }
.terram-h2 { margin: 0 0 10px; font-size: 18px; font-weight: 900; }
.terram-footer { color: var(--muted); font-size: 12px; margin-top: 20px; text-align: center; }
