/* ============================================================
   nmb-v2.css — No More Boo Design System v2
   Import on every page. Replaces nmb-theme.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --bg:          #050505;
  --panel:       #111111;
  --panel-soft:  #171717;
  --border:      #252525;
  --border-soft: #1e1e1e;
  --text:        #f5f5f5;
  --muted:       #aaaaaa;
  --soft:        #7a7a7a;
  --red:         #e13a31;
  --red-dim:     rgba(225,58,49,.12);
  --red-dark:    #4d1c1a;
  --yellow:      #b58b19;
  --yellow-dark: #463712;
  --orange:      #b96a1b;
  --orange-dark: #4a2b14;
  --green:       #2e8d66;
  --blue:        #2b708a;
  --purple:      #5032ad;
  --radius:      14px;
  --radius-sm:   10px;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-title:  'Oswald', sans-serif;
  --font-mono:   ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ── Backward-compat aliases (old nmb-theme.css names) ── */
  --pink:     #e13a31;
  --cyan:     #00D4FF;
  --dark:     #050505;
  --surface:  #171717;
  --surface2: #111111;
  --border2:  #1e1e1e;
  --text2:    #aaaaaa;
  --muted2:   #7a7a7a;
  --font-ui:  'Inter', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ── PAGE WRAPPER ── */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 22px 40px;
}

/* ── NAV ── */
.site-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
}

.brand {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.brand span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  color: #f1f1f1;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 2px;
  background: var(--red);
  border-radius: 999px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { border-color: #4a4a4a; background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: #888; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(225,58,49,.22); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 8px; }
.btn-danger { background: var(--red-dark); color: #ffdede; border-color: rgba(225,58,49,.3); }

/* ── PANELS / CARDS ── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.panel-title { font-size: 1.06rem; font-weight: 800; }
.panel-link { color: #dadada; font-size: .94rem; transition: color .15s; }
.panel-link:hover { color: #fff; }
.panel-body { padding: 20px; }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.stat-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  background: var(--red-dim);
  border: 1px solid rgba(225,58,49,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.7rem;
  flex-shrink: 0;
}
.stat-number { font-size: 3rem; font-weight: 800; line-height: .92; margin-bottom: 4px; }
.stat-title  { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.stat-meta   { color: var(--soft); font-size: .92rem; }

/* ── BADGES ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-red    { background: var(--red-dark);    color: #ffdede; }
.badge-yellow { background: var(--yellow-dark); color: #f3d25e; }
.badge-orange { background: var(--orange-dark); color: #ffb870; }
.badge-green  { background: rgba(46,141,102,.2); color: #4ecca3; border: 1px solid rgba(46,141,102,.3); }
.badge-blue   { background: rgba(43,112,138,.2); color: #7ec8e3; border: 1px solid rgba(43,112,138,.3); }

/* ── COMPANY ICON ── */
.company-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.28rem;
  flex-shrink: 0;
}

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
label .req { color: var(--red); }
label .opt { color: var(--soft); font-weight: 400; font-size: .8rem; }

input[type=text],
input[type=url],
input[type=email],
select,
textarea {
  width: 100%;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
input[type=text]:focus,
input[type=url]:focus,
input[type=email]:focus,
select:focus,
textarea:focus { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: var(--soft); }
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select option { background: var(--panel); }

/* ── STAR RATINGS ── */
.stars { display: flex; gap: 4px; }
.star  { font-size: 1.4rem; cursor: pointer; color: var(--soft); transition: color .15s, transform .15s; line-height: 1; user-select: none; }
.star:hover, .star.active, .star.hover { color: var(--red); transform: scale(1.1); }

/* ── TOGGLE ── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.toggle-label { font-size: .95rem; color: var(--text); font-weight: 500; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--border); border-radius: 24px; cursor: pointer; transition: .3s; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: var(--soft); border-radius: 50%; transition: .3s; }
input:checked + .slider { background: rgba(225,58,49,.4); }
input:checked + .slider::before { transform: translateX(20px); background: var(--red); }

/* ── HOW IT WORKS ── */
.how-card {
  background: var(--panel-soft);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 20px;
}
.how-step  { color: var(--red); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 10px; }
.how-title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.how-copy  { color: var(--muted); line-height: 1.58; font-size: .95rem; }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: 8px; font-size: .9rem; margin-bottom: 16px; display: none; }
.alert.visible { display: block; }
.alert-error { background: rgba(225,58,49,.1); border: 1px solid rgba(225,58,49,.3); color: #ffa0a0; }
.alert-success { background: rgba(46,141,102,.1); border: 1px solid rgba(46,141,102,.3); color: #4ecca3; }

/* ── FOOTER ── */
.site-footer {
  margin-top: 24px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links, .footer-social {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a { color: #888; font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-social a { color: #555; font-size: 1.4rem; transition: color .15s; }
.footer-social a:hover { color: #fff; }

/* ── LOADING / EMPTY ── */
.loading-note { padding: 34px 20px; color: var(--soft); font-size: .94rem; text-align: center; }
.empty-state  { padding: 48px 20px; color: var(--soft); text-align: center; font-size: .95rem; line-height: 1.7; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 32px;
}
.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-dim);
  border: 1px solid rgba(225,58,49,.22);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: .95;
  margin-bottom: 14px;
}
.page-title .red { color: var(--red); }
.page-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 640px; }

/* ── TWO-COL LAYOUT ── */
.two-col { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; }
.two-col-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ── SECTION HEADING ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-title { font-size: 1.1rem; font-weight: 800; }
.section-link  { color: var(--muted); font-size: .9rem; transition: color .15s; }
.section-link:hover { color: #fff; }

/* ── GRID HELPERS ── */
.stats-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ── SCROLLING WINDOW ── */
.scroll-window { height: 430px; overflow: hidden; position: relative; }
.scroll-window.short { height: 328px; }
.scroll-track { display: flex; flex-direction: column; animation: scrollUp 28s linear infinite; }
.scroll-window.short .scroll-track { animation-duration: 20s; }
.scroll-window:hover .scroll-track { animation-play-state: paused; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-nav { flex-wrap: wrap; padding: 16px 0; min-height: auto; gap: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 18px; }
  .stats-grid-3 { grid-template-columns: 1fr; }
  .two-col-equal { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 0 14px 28px; }
  .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 12px; font-size: .88rem; }
  .btn { min-height: 44px; padding: 0 16px; font-size: .9rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
