
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d1b2a; --card: #1a2e4a; --border: #2a3a4a;
  --green: #2d6eb5; --green-light: #dbeeff; --text: #f0f4f8; --muted: #8ba4be;
  --nav-bg: #1a2e4a;
}
html { overflow-x: clip; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
nav { background: var(--nav-bg); border-bottom: 1px solid var(--border); height: 73px; position: sticky; top: 0; z-index: 100; width: 100%; overflow: hidden; }
.nav-logo { margin-right: 1.5rem; height: 49px; width: auto; flex-shrink: 0; }
nav a { padding: 0 1rem; height: 73px; display: flex; align-items: center; font-size: 0.875rem; color: var(--muted); border-bottom: 2px solid transparent; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; text-decoration: none; }
nav a:hover, nav a.active { color: var(--text); border-bottom-color: var(--green); }
.nav-scroll { display: flex; align-items: center; gap: 0; padding: 0 2rem; height: 73px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-arrow {
  position: absolute; top: 0; height: 73px; width: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 300; color: var(--text);
  z-index: 102; cursor: pointer; border: none; background: none;
  transition: opacity .2s; opacity: 0; pointer-events: none;
  line-height: 1;
}
.nav-arrow.visible { opacity: 1; pointer-events: auto; }
.nav-arrow-left  { left: 0;  background: linear-gradient(to right, var(--nav-bg) 55%, transparent); padding-left: 6px; }
.nav-arrow-right { right: 0; background: linear-gradient(to left,  var(--nav-bg) 55%, transparent); padding-right: 6px; }
@media (max-width: 900px) {
  .nav-scroll { padding: 0 .75rem; }
  .nav-logo { margin-right: .75rem; }
}
.page { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; }
.tag { display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: 20px; background: rgba(45,110,181,0.15); color: var(--green); font-weight: 600; margin-bottom: 1rem; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #2560a0; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--card); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } h1 { font-size: 1.8rem; } }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.badge-green { background: rgba(45,110,181,0.15); color: var(--green); }
.badge-yellow { background: rgba(234,179,8,0.15); color: #ca8a04; }
.badge-gray { background: rgba(144,149,168,0.15); color: var(--muted); }
.badge-red { background: rgba(239,68,68,0.15); color: #ef4444; }
.metric { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; }
.metric-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.metric-value { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.metric-sub { font-size: 0.75rem; color: var(--green); margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
.section-gap { margin-top: 2.5rem; }
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 4rem; }

.nav-login-btn { margin-left: auto; padding: 8px 18px; height: auto; border-bottom: none !important; background: var(--green); color: #fff !important; border-radius: 8px; font-weight: 600; font-size: .875rem; }
.nav-login-btn:hover { background: #2560a0; border-bottom: none !important; }

/* ── Theme toggle button ── */
#ns-theme-btn { background: rgba(255,255,255,0.7); border: 1px solid #c5d5ea; color: #0d1b2a; border-radius: 20px; padding: 7px 16px; font-size: .875rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
#ns-theme-btn:hover { border-color: var(--green); color: var(--text); }

/* ── Light mode ── */
[data-theme="light"] {
  --bg: #eef4fb; --card: #ffffff; --border: #c5d5ea;
  --green: #1d5da6; --green-light: #dbeeff; --text: #0d1b2a; --muted: #4a6880;
}
[data-theme="light"] nav a { color: #8ba4be; }
[data-theme="light"] nav a:hover, [data-theme="light"] nav a.active { color: #f0f4f8; border-bottom-color: var(--green); }
[data-theme="light"] .nav-login-btn { background: var(--green); color: #fff !important; }
[data-theme="light"] #ns-uw { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
[data-theme="light"] #ns-theme-btn { background: rgba(26,46,74,0.7); border-color: #2a3a4a; color: #f0f4f8; box-shadow: 0 2px 10px rgba(0,0,0,.2); }

nav::-webkit-scrollbar { display: none; }
