/* WeatmoodSell — Dark Green Design System */
:root {
  --bg: #070b09;
  --bg2: #0c1310;
  --bg3: #101a15;
  --surface: #121c17;
  --surface2: #17231d;
  --surface3: #1c2b23;
  --elevated: #1a2820;
  --ink: #e8f5ee;
  --ink2: #9fb5a8;
  --ink3: #6b8577;
  --ink4: #4a6357;
  --line: #1e2e26;
  --line2: #2a3f34;
  --line3: #355044;
  --green: #22c55e;
  --green-d: #16a34a;
  --green-l: #4ade80;
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-glow: rgba(34, 197, 94, 0.28);
  --mint: #34d399;
  --teal: #14b8a6;
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --blue: #38bdf8;
  --purple: #a78bfa;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 28px 64px -18px rgba(0, 0, 0, 0.7), 0 10px 24px -10px rgba(0, 0, 0, 0.45);
  --shadow-green: 0 10px 40px -10px rgba(34, 197, 94, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", "Inter", sans-serif;
  --nav-h: 68px;
  --sb-w: 260px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(34, 197, 94, 0.05) 0%, transparent 45%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
}

a {
  color: var(--green-l);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--mint);
}

::selection {
  background: rgba(34, 197, 94, 0.28);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ===== Typography helpers ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-l);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.h2 .accent {
  color: var(--green-l);
  background: linear-gradient(135deg, var(--green-l), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 17px;
  color: var(--ink2);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.65;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: var(--sans);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
  color: #041208 !important;
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 4px 18px -4px rgba(34, 197, 94, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(34, 197, 94, 0.55);
  color: #041208 !important;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line2);
}

.btn-ghost:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-l) !important;
  transform: translateY(-1px);
}

.btn-soft {
  background: var(--green-soft);
  color: var(--green-l) !important;
  border-color: rgba(34, 197, 94, 0.2);
}

.btn-soft:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}

.btn-warn {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.35);
}

.btn-warn:hover {
  background: rgba(251, 191, 36, 0.24);
  border-color: rgba(251, 191, 36, 0.55);
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red) !important;
  border-color: rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 15.5px;
  border-radius: 14px;
}

/* ===== Public Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: rgba(7, 11, 9, 0.72);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 9, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #163528, #0d1a13);
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: grid;
  place-items: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), 0 6px 18px -6px rgba(34, 197, 94, 0.4);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.brand-mark .wm-glyph {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--green-l);
  letter-spacing: -0.04em;
}

.brand span.wm-accent {
  color: var(--green-l);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--ink2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9px;
  transition: all 0.18s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.cur {
  color: var(--green-l);
  background: var(--green-soft);
}

.nav-links .nav-cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--green), var(--green-d));
  color: #041208 !important;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 16px -4px rgba(34, 197, 94, 0.45);
}

.nav-links .nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  background: linear-gradient(135deg, var(--green-l), var(--green));
  color: #041208 !important;
}

/* Второй вариант "кнопки" в nav — для вторичных CTA типа "Кабинет ключа".
   Делит внешний вид кнопки с .nav-cta, но с приглушённой зелёной обводкой,
   чтобы рядом с primary "Войти" не сливалось. */
.nav-links .nav-cta.cta-soft {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-l) !important;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: none;
}
.nav-links .nav-cta.cta-soft:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
  filter: none;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

/* ===== Layout sections ===== */
.section {
  padding: 110px 36px;
  max-width: 1180px;
  margin: 0 auto;
}

.page-header {
  padding: 140px 36px 36px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.page-header h1 .accent {
  color: var(--green-l);
  background: linear-gradient(135deg, var(--green-l), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .sub {
  font-size: 17px;
  color: var(--ink2);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.card:hover {
  border-color: var(--line2);
}

.card h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

/* ===== Tags / badges ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.tag.green {
  background: var(--green-soft);
  color: var(--green-l);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.tag.muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink3);
  border: 1px solid var(--line2);
}

.tag.red {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.tag.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.tag.blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ===== Code blocks ===== */
.code-card,
.code-block {
  background: #0a100d;
  border: 1px solid #1a2b22;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.code-card::before,
.code-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 197, 94, 0.08), transparent 60%);
  pointer-events: none;
}

.cc-top,
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1a2b22;
  position: relative;
  background: rgba(16, 26, 21, 0.6);
}

.cc-d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cc-d.r {
  background: #f87171;
}

.cc-d.y {
  background: #fbbf24;
}

.cc-d.g {
  background: #34d399;
}

.cc-file,
.code-lang {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink3);
}

.code-copy {
  margin-left: auto;
  background: var(--surface2);
  border: 1px solid var(--line2);
  color: var(--ink2);
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  transition: all 0.2s;
}

.code-copy:hover {
  border-color: var(--green);
  color: var(--green-l);
}

.cc-body,
.code-body {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: #b8cfc2;
  overflow-x: auto;
  position: relative;
}

.cc-body .kw,
.code-body .kw {
  color: #4ade80;
}

.cc-body .str,
.code-body .str {
  color: #86efac;
}

.cc-body .fn,
.code-body .fn {
  color: #5eead4;
}

.cc-body .cm,
.code-body .cm {
  color: #5c7266;
  font-style: italic;
}

.cc-body .num,
.code-body .num {
  color: #fcd34d;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.25s;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--line2);
  box-shadow: var(--shadow);
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink3);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat-value.green {
  color: var(--green-l);
}

.stat-value.amber {
  color: var(--warn);
}

.stat-value.red {
  color: var(--red);
}

.stat-value.blue {
  color: var(--blue);
}

.stat-sub {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 4px;
}

/* ===== Tables ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 12px 16px;
  color: var(--ink3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-family: var(--mono);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(34, 197, 94, 0.03);
}

code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green-l);
  background: var(--green-soft);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* ===== Forms ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--ink);
  transition: all 0.2s;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink4);
}

/* ===== Footer ===== */
footer {
  padding: 70px 36px 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(12, 19, 16, 0.6));
}

.foot {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot p {
  font-size: 14px;
  color: var(--ink3);
  max-width: 280px;
  line-height: 1.6;
  margin-top: 12px;
}

.foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink3);
  margin-bottom: 16px;
}

.foot ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.foot ul a {
  font-size: 14px;
  color: var(--ink2);
}

.foot ul a:hover {
  color: var(--green-l);
}

.foot-bottom {
  max-width: 1180px;
  margin: 46px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink3);
}

/* ===== App shell (dashboard / admin) ===== */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sb-w);
  height: 100vh;
  background: #090f0c;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 2px;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.sb-brand-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #163528, #0d1a13);
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(34, 197, 94, 0.4);
}

.sb-brand-tile .wm-glyph {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--green-l);
}

.sb-brand-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sb-brand-text .accent {
  color: var(--green-l);
}

.sb-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-nav-section {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 12px 6px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: var(--ink2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s;
  font-weight: 500;
  font-size: 13.5px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  text-decoration: none;
}

.sb-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.sb-item.active {
  background: var(--green-soft);
  color: var(--green-l);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.sb-item.active .sb-ic {
  color: var(--green-l);
}

.sb-ic {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ink3);
}

.sb-item:hover .sb-ic {
  color: var(--ink2);
}

.sb-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink3);
  border: 1px solid var(--line2);
}

.sb-badge.live {
  background: var(--green-soft);
  color: var(--green-l);
  border-color: rgba(34, 197, 94, 0.25);
}

.sb-foot {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.18s;
}

.sb-user:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sb-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line2);
  flex-shrink: 0;
  background: var(--surface2);
  display: grid;
  place-items: center;
  color: var(--green-l);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--display);
}

.sb-user-info {
  flex: 1;
  min-width: 0;
}

.sb-user-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-user-email {
  color: var(--ink3);
  font-size: 11px;
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-logout {
  color: var(--red);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 12px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.sb-logout:hover {
  background: var(--red-soft);
}

.main {
  margin-left: var(--sb-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 9, 0.75);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.topbar-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: linear-gradient(135deg, #122018, #0d1611);
  color: var(--green-l);
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.06), var(--shadow-sm);
}

.balance-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.balance-pill .bp-plus {
  font-size: 14px;
  color: var(--mint);
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
}

.content {
  padding: 28px 32px;
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.panel {
  display: none;
  animation: fadeUp 0.3s ease;
}

.panel.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-menu {
  display: none;
  background: none;
  border: 1px solid var(--line2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

/* ===== Status dots ===== */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: ping 2.4s infinite;
  flex-shrink: 0;
}

.dot.warn {
  background: var(--warn);
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
}

.dot.down {
  background: var(--red);
  animation: none;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
  }
}

/* ===== Toast ===== */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s;
  pointer-events: none;
  border: 1px solid transparent;
}

#toast.show {
  opacity: 1;
  transform: none;
}

#toast.ok {
  background: #0f2418;
  color: var(--green-l);
  border-color: rgba(34, 197, 94, 0.35);
}

#toast.err {
  background: #2a1212;
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.35);
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink3);
}

.empty p {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink2);
}

.empty small {
  font-family: var(--mono);
  font-size: 12px;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 6px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--line3);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(9, 15, 12, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 12px;
  }

  .nav-links .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .menu-btn {
    display: block;
  }

  .section,
  .page-header,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: none;
  }

  .main {
    margin-left: 0;
  }

  .content {
    padding: 18px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .mobile-menu {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .foot {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes wm-spin {
  to { transform: rotate(360deg); }
}
