/* ==========================================================================
   NoWay 2026 design system
   Dark, glass, ember accent. Loaded after Bootstrap 4 (grid and scripts are
   still used), it restyles every Bootstrap part the pages use, so the admin
   area gets the same look without changes.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk-latin.woff2") format("woff2"); }

:root {
  --bg: #07070b;
  --bg-2: #0c0d13;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f5;
  --muted: #98a0b0;
  --faint: #6c7383;
  --accent: #ff3b47;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 59, 71, .14);
  --ok: #34e3a4;
  --info: #5eb0ff;
  --warn: #ffc85a;
  --bad: #ff5d6c;
  --ember: linear-gradient(135deg, #ff2f45 0%, #ff6a3a 55%, #ffb347 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
  overflow-x: hidden;
}

/* the background of every page: soft colour clouds and a fine grid, fixed behind the content */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(255, 59, 71, .20), transparent 60%),
    radial-gradient(800px 560px at 100% 8%, rgba(255, 138, 61, .10), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(94, 176, 255, .08), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.12; font-weight: 600; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { color: var(--muted); }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
code { color: var(--accent-2); background: var(--surface-2); padding: .15em .5em; border-radius: 8px; font-size: .9em; }
small, .small { color: var(--faint); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
hr { border-color: var(--line); }

/* ---------- layout helpers ---------- */
.container { max-width: 1180px; padding-left: 20px; padding-right: 20px; }
.nw-main { padding-top: calc(var(--nav-h, 72px) + 44px); min-height: 70vh; }
.nw-main.is-home { padding-top: 0; }
.section { padding: 0; display: block; }
.nw-section { padding: 88px 0; position: relative; }
.nw-section.tight { padding: 48px 0; }
.nw-eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .74rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2);
  padding: .55em 1em; border: 1px solid rgba(255, 138, 61, .3); border-radius: 999px; background: rgba(255, 138, 61, .08);
}
.nw-head { max-width: 720px; margin: 0 0 40px; }
.nw-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.nw-head h2 { margin-top: 18px; }
.nw-head p { font-size: 1.05rem; margin: 0; }
.text-gradient { background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Navigation: a bar over the full width, big touch targets, a panel on phones and tablets
   ========================================================================== */
:root { --nav-h: 72px; }
.nw-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; width: 100%;
  background: rgba(10, 11, 16, .62);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, .9);
  transition: background .3s, border-color .3s;
}
.nw-nav.scrolled { background: rgba(8, 9, 13, .92); border-bottom-color: rgba(255, 255, 255, .16); }
.nw-nav-in { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 clamp(14px, 2.6vw, 44px); }
.nw-nav .bar { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); }
.nw-brand { display: flex; align-items: center; gap: 12px; flex: none; font: 700 1.25rem/1 var(--display); letter-spacing: -.01em; color: var(--text); }
.nw-brand:hover { color: var(--text); text-decoration: none; }
.nw-brand .nw-logo { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 10px rgba(224, 30, 39, .5)); }
.nw-collapse { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: 18px; }
.nw-links { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.nw-links a { display: block; padding: 12px 16px; border-radius: 12px; font-size: 1rem; font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none; }
.nw-links a:hover, .nw-links a.active { color: var(--text); background: var(--surface-2); }
.nw-links a.active { box-shadow: inset 0 -2px 0 var(--ember-1, #ff3b47); }
.nw-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.nw-user { display: inline-flex; align-items: center; gap: 10px; max-width: 240px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .92rem; font-weight: 600; color: var(--text); }
.nw-user img, .nw-user .ph { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; }
.nw-user .ph { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--muted); }
.nw-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-tools .btn { padding: .8em 1.25em; font-size: .9rem; }
.nw-burger { display: none; margin-left: auto; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 1.25rem; cursor: pointer; }
.nw-burger:focus-visible, .nw-links a:focus-visible { outline: 2px solid var(--ember-1, #ff3b47); outline-offset: 2px; }

@media (max-width: 1199px) {
  .nw-burger { display: block; }
  .nw-nav .bar { flex-wrap: wrap; min-height: 64px; gap: 10px; }
  .nw-collapse {
    display: none; flex: 0 0 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 14px;
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 0 20px;
  }
  .nw-collapse.open { display: flex; }
  .nw-links { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
  .nw-links a { padding: 15px 16px; font-size: 1.08rem; min-height: 52px; display: flex; align-items: center; }
  .nw-links a.active { box-shadow: inset 3px 0 0 var(--ember-1, #ff3b47); }
  .nw-tools { flex-direction: column; align-items: stretch; padding-top: 14px; border-top: 1px solid var(--line-2); }
  .nw-tools .btn { width: 100%; min-height: 52px; font-size: 1rem; }
  .nw-user { max-width: none; padding: 10px 14px 10px 10px; border-radius: 14px; }
}
@media (max-width: 575px) {
  :root { --nav-h: 64px; }
  .nw-brand { font-size: 1.12rem; }
  .nw-brand .nw-logo { width: 34px; height: 34px; }
}
/* ==========================================================================
   Buttons (own and Bootstrap's)
   ========================================================================== */
.btn, .nw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .92rem/1 var(--font); padding: .85em 1.35em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s, color .2s; text-decoration: none; white-space: nowrap;
}
.btn:hover, .nw-btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active, .nw-btn:active { transform: translateY(0); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1rem; }
.btn-sm { padding: .55em 1em; font-size: .8rem; }
.btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.nw-btn.primary, .btn-primary, .btn-outline-success, .btn-success {
  color: #fff; background: var(--ember); border-color: transparent;
  box-shadow: 0 14px 34px -14px rgba(255, 59, 71, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.nw-btn.primary:hover, .btn-primary:hover, .btn-outline-success:hover, .btn-success:hover { color: #fff; box-shadow: 0 18px 44px -14px rgba(255, 59, 71, 1), inset 0 1px 0 rgba(255, 255, 255, .3); background: var(--ember); }
.nw-btn.ghost, .btn-outline-light, .btn-light, .btn-secondary, .btn-outline-secondary {
  color: var(--text); background: var(--surface-2); border-color: var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nw-btn.ghost:hover, .btn-outline-light:hover, .btn-light:hover, .btn-secondary:hover, .btn-outline-secondary:hover { color: #fff; background: var(--surface-3); border-color: rgba(255, 255, 255, .28); }
.btn-outline-danger, .btn-danger { color: var(--bad); background: rgba(255, 93, 108, .08); border-color: rgba(255, 93, 108, .35); }
.btn-outline-danger:hover, .btn-danger:hover { color: #fff; background: var(--bad); border-color: var(--bad); }
.btn-outline-warning, .btn-warning { color: var(--warn); background: rgba(255, 200, 90, .08); border-color: rgba(255, 200, 90, .35); }
.btn-outline-warning:hover, .btn-warning:hover { color: #1a1305; background: var(--warn); border-color: var(--warn); }
.btn-outline-info, .btn-info { color: var(--info); background: rgba(94, 176, 255, .08); border-color: rgba(94, 176, 255, .35); }
.btn-outline-info:hover, .btn-info:hover { color: #031221; background: var(--info); }
.btn-link { color: var(--accent-2); }

/* ==========================================================================
   Cards, glass panels, bento
   ========================================================================== */
.nw-card, .one-server, .card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: var(--text); text-align: left;
}
.nw-card.pad-lg { padding: 34px; }
.nw-card.glow::before, .nw-spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 138, 61, .16), transparent 55%);
}
.nw-card.glow:hover::before, .nw-spot:hover::before { opacity: 1; }
.one-server > h2 { font-size: 1.15rem; padding: 0; border: 0; margin: 0 0 8px; }
.one-server > p { border: 0; padding: 0; }
.nw-card > *:last-child { margin-bottom: 0; }
.nw-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; margin-bottom: 18px;
  background: var(--ember); box-shadow: 0 10px 26px -10px rgba(255, 59, 71, .8);
}
.nw-icon.cool { background: linear-gradient(135deg, #3b82ff, #34e3d0); box-shadow: 0 10px 26px -10px rgba(59, 130, 255, .8); }
.nw-icon.green { background: linear-gradient(135deg, #1fd18a, #a3e635); box-shadow: 0 10px 26px -10px rgba(31, 209, 138, .7); }
.nw-icon.violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 10px 26px -10px rgba(139, 92, 246, .8); }
.nw-icon.gold { background: linear-gradient(135deg, #ffb347, #ff6a3a); }
.nw-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.nw-card p { margin: 0; font-size: .96rem; }

.nw-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.nw-bento > * { grid-column: span 4; }
.nw-bento > .span-6 { grid-column: span 6; }
.nw-bento > .span-8 { grid-column: span 8; }
.nw-bento > .span-12 { grid-column: span 12; }
@media (max-width: 991px) { .nw-bento > *, .nw-bento > .span-8 { grid-column: span 6; } .nw-bento > .span-12 { grid-column: span 12; } }
@media (max-width: 640px) { .nw-bento > *, .nw-bento > .span-6, .nw-bento > .span-8 { grid-column: span 12; } }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.nw-hero { position: relative; min-height: min(100vh, 880px); display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; isolation: isolate; }
.nw-hero .video { position: absolute; inset: 0; z-index: -3; }
.nw-hero .video video { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(1.2) contrast(1.05); }
.nw-hero::before { /* darkening and colour over the video */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 600px at 15% 20%, rgba(255, 59, 71, .30), transparent 60%),
    radial-gradient(900px 600px at 90% 70%, rgba(255, 138, 61, .16), transparent 60%),
    linear-gradient(180deg, rgba(7, 7, 11, .55) 0%, rgba(7, 7, 11, .75) 55%, var(--bg) 100%);
}
.nw-hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.nw-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 991px) { .nw-hero-grid { grid-template-columns: 1fr; gap: 40px; } .nw-hero { padding-top: 120px; min-height: 0; } }
.nw-hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); line-height: .95; letter-spacing: -.045em; margin: 22px 0 18px; }
.nw-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #c5cad6; max-width: 560px; margin: 0 0 30px; }
.nw-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nw-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 227, 164, .6); animation: pulse 2s infinite; }
.nw-pulse.off { background: var(--bad); box-shadow: none; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 227, 164, .55); } 70% { box-shadow: 0 0 0 10px rgba(52, 227, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 227, 164, 0); } }
.nw-connect {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); font: 500 .85rem var(--font); color: var(--muted);
}
.nw-connect code { background: none; padding: 0; color: var(--text); font-size: .9rem; }
.nw-connect button { border: 0; border-radius: 999px; padding: .6em 1em; font: 600 .78rem var(--font); background: var(--surface-3); color: var(--text); cursor: pointer; transition: background .2s; }
.nw-connect button:hover { background: var(--accent); }

/* the live card in the hero */
.nw-live { padding: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nw-live .top { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nw-live h3 { margin: 12px 0 4px; font-size: 1.25rem; }
.nw-live .desc { font-size: .92rem; margin: 0 0 18px; }
.nw-ring-row { display: flex; align-items: center; gap: 22px; margin: 18px 0 20px; }
.nw-ring { --p: 0; position: relative; width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--accent) 0, var(--accent-2) calc(var(--p) * 2.4%), rgba(255, 255, 255, .08) calc(var(--p) * 2.4%), rgba(255, 255, 255, .08) 240deg, transparent 240deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  filter: drop-shadow(0 0 18px rgba(255, 90, 60, .35));
}
.nw-ring-wrap { position: relative; width: 112px; height: 112px; flex: none; }
.nw-ring-wrap .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 700 1.9rem/1 var(--display); letter-spacing: -.03em; }
.nw-ring-wrap .num small { display: block; font: 500 .68rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.nw-facts { display: grid; gap: 10px; font-size: .9rem; color: var(--muted); }
.nw-facts div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.nw-facts div:last-child { border: 0; padding-bottom: 0; }
.nw-facts b { color: var(--text); font-weight: 600; }
.nw-live .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nw-live .actions .btn { flex: 1; }

/* wipe countdown */
.nw-wipe { margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.nw-wipe .label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.nw-wipe .label strong { color: var(--text); letter-spacing: 0; text-transform: none; font-size: .82rem; }
.nw-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nw-clock div { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.nw-clock b { display: block; font: 700 1.5rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nw-clock span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.nw-wipe .note { margin: 10px 0 0; font-size: .82rem; }

/* the strip under the hero */
.nw-marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nw-marquee .track { display: flex; width: max-content; gap: 44px; padding: 18px 0; animation: marquee 38s linear infinite; }
.nw-marquee span { font: 600 .95rem var(--display); letter-spacing: .04em; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.nw-marquee span::after { content: "✦"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stat numbers ---------- */
.nw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.nw-stat { padding: 28px 24px; text-align: left; }
.nw-stat b { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-stat span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- goals ---------- */
.nw-goal h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.nw-goal h3 img { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); padding: 4px; }
.nw-bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 16px 0 10px; }
.nw-bar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ember); box-shadow: 0 0 22px rgba(255, 90, 60, .6); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.nw-bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-100%); animation: shine 3.2s infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.nw-bar.done > i { background: linear-gradient(90deg, #1fd18a, #a3e635); box-shadow: 0 0 22px rgba(52, 227, 164, .5); }
.nw-bar.over > i { background: linear-gradient(90deg, #ff5d6c, #b3263a); }
.nw-goal .meta { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.nw-goal .meta b { color: var(--text); }
.nw-goal .pct { font: 700 1.6rem var(--display); letter-spacing: -.03em; }
.nw-tag { display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.nw-tag.ok { color: var(--ok); border-color: rgba(52, 227, 164, .35); background: rgba(52, 227, 164, .08); }
.nw-tag.bad { color: var(--bad); border-color: rgba(255, 93, 108, .35); background: rgba(255, 93, 108, .08); }
.nw-tag.warn { color: var(--warn); border-color: rgba(255, 200, 90, .35); background: rgba(255, 200, 90, .08); }

/* ---------- mods ---------- */
.nw-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nw-mod { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s, background .25s; }
.nw-mod:hover { border-color: rgba(255, 138, 61, .45); transform: translateY(-3px); background: var(--surface-2); }
.nw-mod b { display: flex; align-items: center; gap: 8px; font-size: .96rem; }
.nw-mod b em { font: 600 .68rem var(--font); font-style: normal; padding: .25em .6em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.nw-mod p { margin: 6px 0 0; font-size: .84rem; line-height: 1.5; }

/* ---------- discord / community ---------- */
.nw-faces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.nw-faces img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); margin-left: -8px; transition: transform .25s; }
.nw-faces img:hover { transform: translateY(-4px) scale(1.1); z-index: 2; }

/* ---------- contact ---------- */
.nw-cta-panel {
  position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 32px; border: 1px solid var(--line-2);
  background: radial-gradient(700px 300px at 50% 0%, rgba(255, 59, 71, .30), transparent 70%), radial-gradient(500px 260px at 90% 100%, rgba(255, 138, 61, .18), transparent 70%), rgba(255, 255, 255, .03);
}
.nw-cta-panel h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.nw-cta-panel p { max-width: 520px; margin: 0 auto 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.nw-footer { margin-top: 80px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); padding: 56px 0 36px; }
.nw-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 767px) { .nw-footer .cols { grid-template-columns: 1fr 1fr; } }
.nw-footer h6 { font: 600 .74rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.nw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nw-footer li a { color: var(--muted); font-size: .92rem; }
.nw-footer li a:hover { color: var(--text); }
.nw-footer .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.nw-page-head { padding: 28px 0 36px; }
.nw-page-head h1 { margin: 18px 0 10px; }
.nw-page-head p { font-size: 1.05rem; max-width: 640px; margin: 0; }
.container > section.section.text-center, .container > section.section { text-align: left; padding: 0 0 56px; }
.container > section.section > h1 { color: var(--text); margin-bottom: .3em; }
.section > h1 { color: var(--text); }
.text-center { text-align: center !important; }

/* tables: soft rows in a rounded frame */
.table { width: 100%; margin: 0 0 1.5rem; color: var(--text); border-collapse: separate; border-spacing: 0; background: transparent; }
.table-dark, .table-dark > th, .table-dark > td { background: transparent; color: var(--text); }
.table th { font: 600 .72rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border: 0; border-bottom: 1px solid var(--line-2); padding: 14px 16px; background: transparent; vertical-align: bottom; }
.table td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; vertical-align: middle; background: transparent; }
.table tr:last-child td { border-bottom: 0; }
.table-striped tbody tr:nth-of-type(odd), .table-dark.table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 255, 255, .02); }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--surface-2); }
.table-sm th, .table-sm td { padding: 10px 14px; }
.table td a { font-weight: 500; }
.table td a:hover { color: var(--accent-2); }
.table-dark.table-sm, .table-dark.table-striped, table.table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-responsive { border-radius: var(--radius); }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* podium */
.nw-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 28px; }
@media (max-width: 640px) { .nw-podium { grid-template-columns: 1fr; } }
.nw-podium .nw-card { padding: 22px; text-align: center; }
.nw-podium .place { font-size: 2rem; margin-bottom: 8px; }
.nw-podium .nm { display: block; font: 600 1.1rem var(--display); margin-bottom: 4px; }
.nw-podium .lv { font: 700 2.2rem/1 var(--display); letter-spacing: -.04em; background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-podium .first { padding-top: 34px; padding-bottom: 34px; border-color: rgba(255, 138, 61, .45); box-shadow: 0 30px 70px -28px rgba(255, 90, 60, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
@media (min-width: 641px) { .nw-podium .first { order: 2; } .nw-podium .second { order: 1; } .nw-podium .third { order: 3; } }
.nw-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; font: 700 .85rem var(--display); background: var(--surface-2); color: var(--muted); }
.nw-rank.r1 { background: linear-gradient(135deg, #ffd45e, #ff9a3c); color: #1a1100; }
.nw-rank.r2 { background: linear-gradient(135deg, #e6ebf2, #9aa5b8); color: #0e1218; }
.nw-rank.r3 { background: linear-gradient(135deg, #f0b27a, #b6672a); color: #1c0d02; }
.nw-star { color: var(--warn); font-weight: 600; }

.nw-group-title { display: flex; align-items: center; gap: 14px; margin: 56px 0 18px; font-size: 1.5rem; }
.nw-group-title img { width: 40px; height: 40px; }
.nw-skill-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.nw-skill-cards .nw-card { padding: 20px; }
.nw-skill-cards h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 12px; }
.nw-skill-cards h4 img { width: 28px; height: 28px; }
.nw-skill-cards .table { border: 0; margin: 0; }
.nw-skill-cards .table td { padding: 9px 4px; }

/* profile */
.nw-profile-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.nw-avatar { width: 92px; height: 92px; border-radius: 28px; background: var(--ember); display: grid; place-items: center; font: 700 2.4rem var(--display); color: #fff; box-shadow: 0 22px 50px -20px rgba(255, 59, 71, .9); flex: none; }
.nw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.nw-kpi { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.nw-kpi b { display: block; font: 700 1.6rem var(--display); letter-spacing: -.03em; }
.nw-kpi span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.nw-skill-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.nw-skill-row:last-child { border: 0; }
.nw-skill-row img { width: 30px; height: 30px; }
.nw-skill-row .grow { flex: 1; }
.nw-skill-row .lvl { font: 700 1.05rem var(--display); }
.nw-minibar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 6px; }
.nw-minibar i { display: block; height: 100%; border-radius: inherit; background: var(--ember); }
.badge { display: inline-flex; align-items: center; gap: .4em; padding: .45em .85em; border-radius: 999px; font: 600 .76rem var(--font); background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); margin: 3px; }
.badge-warning { color: var(--warn); background: rgba(255, 200, 90, .1); border-color: rgba(255, 200, 90, .35); }
.badge-success { color: var(--ok); background: rgba(52, 227, 164, .1); border-color: rgba(52, 227, 164, .35); }
.badge-danger { color: var(--bad); background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .35); }
.badge-secondary { background: var(--surface-2); color: var(--text); }
.members { font-size: 2.4rem; border: 0; padding-bottom: 0; }

/* forms */
.form-control, .custom-select, select.form-control, input[type=text], input[type=number], input[type=email], input[type=password], input[type=search], textarea {
  background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; padding: .8em 1.05em; height: auto; font: 400 .95rem var(--font); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus, textarea:focus, input:focus, select:focus { background: rgba(255, 255, 255, .07); color: var(--text); border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(255, 138, 61, .15); outline: 0; }
.form-control::placeholder { color: var(--faint); }
select.form-control option { background: #14151c; color: var(--text); }
label { color: var(--muted); font-size: .85rem; font-weight: 500; margin-bottom: .45rem; }
.form-check-input { accent-color: var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* alerts */
.alert { border-radius: 16px; border: 1px solid var(--line-2); padding: 14px 18px; background: var(--surface-2); color: var(--text); }
.alert-success { border-color: rgba(52, 227, 164, .4); background: rgba(52, 227, 164, .08); color: #b5f5df; }
.alert-danger { border-color: rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .08); color: #ffc2c9; }
.alert-warning { border-color: rgba(255, 200, 90, .4); background: rgba(255, 200, 90, .08); color: #ffe7b0; }
.alert-info { border-color: rgba(94, 176, 255, .4); background: rgba(94, 176, 255, .08); color: #c4e0ff; }
.alert ul { margin: 0; }

/* progress (bootstrap) */
.progress { height: 10px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; margin: 14px 0; }
.progress-bar { background: var(--ember); color: #fff; font-size: .7rem; font-weight: 700; box-shadow: 0 0 18px rgba(255, 90, 60, .5); }
.progress-bar.bg-success { background: linear-gradient(90deg, #1fd18a, #a3e635) !important; }
.progress-bar.bg-danger { background: linear-gradient(90deg, #ff5d6c, #b3263a) !important; }
.progress-bar.bg-warning { background: var(--ember) !important; }

/* modal */
.modal-content { background: linear-gradient(180deg, #181a23, #10111a); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 40px 100px -30px #000; color: var(--text); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-backdrop.show { opacity: .7; }
.close { color: var(--text); text-shadow: none; opacity: .6; }
.close:hover { color: #fff; opacity: 1; }

/* tooltips and misc */
.tooltip-inner { background: #1b1d27; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; font-size: .8rem; }
.bs-tooltip-top .arrow::before { border-top-color: #1b1d27; }
.list-unstyled { padding: 0; list-style: none; }
.rounded-circle { border-radius: 50% !important; }
.mt-2 { margin-top: .5rem !important; } .mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: .5rem !important; } .mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; }
.mr-1 { margin-right: .25rem !important; } .mr-2 { margin-right: .5rem !important; } .mr-3 { margin-right: 1rem !important; }

/* admin menu (the line of links above the admin pages) */
.container > section > p.text-center > a, .admin-nav a { color: var(--muted); }
.container > section > h1 + p.text-center { margin: 0 0 22px; }
.container > section > h1 + p.text-center a { display: inline-block; padding: 6px 12px; border-radius: 999px; margin: 2px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.container > section > h1 + p.text-center a:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }

/* ---------- live map page ---------- */
#livemap { background: #0a0d12 !important; border: 1px solid var(--line-2) !important; border-radius: 28px; box-shadow: 0 40px 90px -40px #000, 0 0 0 6px rgba(255, 255, 255, .02); }
.legend-group h5 { color: var(--muted) !important; border-bottom: 1px solid var(--line) !important; font-family: var(--font); letter-spacing: .12em !important; font-size: .75rem !important; }
.legend-row { border-radius: 10px !important; padding: 5px 8px !important; }
.legend-row:hover { background: var(--surface-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Finishing touches
   ========================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.nw-live::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgba(255, 138, 61, .0) 66%, rgba(255, 138, 61, .95) 84%, rgba(255, 59, 71, .9) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }

.nw-hero .aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.nw-hero .aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.nw-hero .aurora i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: 5%; background: #ff2f45; }
.nw-hero .aurora i:nth-child(2) { width: 460px; height: 460px; right: -120px; bottom: 0; background: #ff7a2e; animation-delay: -6s; opacity: .35; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, -40px, 0) scale(1.18); } }

.nw-card.glow { transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.nw-card.glow:hover { transform: translateY(-4px); border-color: rgba(255, 138, 61, .35); box-shadow: 0 34px 70px -30px rgba(255, 90, 60, .35), var(--shadow); }

.nw-head h2, .nw-page-head h1 { background: linear-gradient(180deg, #fff 30%, #aab0bd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-hero h1 .text-gradient { filter: drop-shadow(0 8px 40px rgba(255, 59, 71, .35)); }

.nw-nav:has(.nw-collapse.open) { background: rgba(8, 9, 13, .97); }

[hidden] { display: none !important; }
