*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111113;
  --sidebar-w: 220px;
  --red: #e53535;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

/* ── Background ────────────────────────────────────────────── */
.bg-canvas { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-canvas::before { content: ''; position: absolute; inset: 0; background: var(--bg); }

.orb { position: absolute; border-radius: 50%; opacity: 0; animation: orb-fade 1.2s ease forwards; }
.orb-red-left {
  width: 700px; height: 700px; bottom: -80px; left: -60px; filter: blur(55px);
  background: radial-gradient(circle, rgba(229,53,53,0.38) 0%, rgba(180,20,20,0.18) 40%, transparent 70%);
  animation: orb-fade 1.4s 0.2s ease forwards, float-red-left 22s ease-in-out 1.4s infinite;
}
.orb-red-right {
  width: 600px; height: 600px; bottom: 5%; right: -120px; filter: blur(55px);
  background: radial-gradient(circle, rgba(229,53,53,0.28) 0%, rgba(160,20,20,0.12) 40%, transparent 70%);
  animation: orb-fade 1.6s 0.4s ease forwards, float-red-right 26s ease-in-out 1.6s infinite;
}
.orb-white-2 {
  width: 1100px; height: 1100px; top: -200px; right: -480px; filter: blur(45px);
  background: radial-gradient(circle,
    rgba(255,255,255,0.21) 0%, rgba(255,255,255,0.14) 30%,
    rgba(255,255,255,0.16) 44%, rgba(255,255,255,0.05) 58%, transparent 70%);
  animation: orb-fade 1.8s 0.3s ease forwards, float-white2 20s ease-in-out 1.8s infinite;
}
.orb-white-3 {
  width: 520px; height: 520px; top: 38%; left: 18%; filter: blur(60px);
  background: radial-gradient(circle,
    rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.08) 35%, transparent 65%);
  animation: orb-fade 2s 0.5s ease forwards, float-white3 24s ease-in-out 2s infinite;
}

@keyframes orb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-red-left {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(35px,-28px) scale(1.06); }
  70%      { transform: translate(18px,36px) scale(0.95); }
}
@keyframes float-red-right {
  0%,100% { transform: translate(0,0) scale(1); }
  35%      { transform: translate(-28px,36px) scale(1.05); }
  70%      { transform: translate(8px,-18px) scale(0.96); }
}
@keyframes float-white2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-18px,-22px) scale(1.04); }
}
@keyframes float-white3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(22px,18px) scale(1.05); }
  80%      { transform: translate(-14px,-12px) scale(0.97); }
}

.bg-noise {
  position: fixed; inset: 0; z-index: 1; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ────────────────────────────────────────────────── */
.layout { position: relative; z-index: 2; display: flex; height: 100vh; }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: relative;
  display: flex; flex-direction: column; padding: 32px 20px;
  background: rgba(10,10,12,0.50);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sidebar::after {
  content: ''; position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(229,53,53,0.90) 0%, rgba(229,53,53,0.60) 20%,
    rgba(255,255,255,0.40) 55%, rgba(255,255,255,0.12) 80%,
    rgba(255,255,255,0.03) 100%
  );
}

.logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; line-height: 1; user-select: none; margin-bottom: 36px;
  background: none; border: none; padding: 0; cursor: pointer;
  text-align: left; text-decoration: none;
  opacity: 0; animation: fade-in 0.6s 0.1s ease forwards;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.75; }
.logo span { color: var(--red); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.40);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  opacity: 0; animation: fade-in 0.5s ease forwards;
}
.nav-item:nth-child(1) { animation-delay: 0.25s; }
.nav-item:nth-child(2) { animation-delay: 0.35s; }
.nav-item:nth-child(3) { animation-delay: 0.45s; }
.nav-item:nth-child(4) { animation-delay: 0.55s; }
.nav-item:hover  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.80); }
.nav-item.active { background: rgba(255,255,255,0.07); color: #fff; }

.nav-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; flex-shrink: 0; opacity: 0.6;
}
.nav-item.active .nav-dot { background: var(--red); opacity: 1; }

.sidebar-disclaimer {
  margin-top: auto; padding-top: 24px;
  font-size: 10.5px; line-height: 1.6; color: rgba(255,255,255,0.20);
}

/* ── Main ──────────────────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 52px 56px 40px; }

/* ── Stub page content ─────────────────────────────────────── */
.stub-main { justify-content: center; }

.stub-content {
  opacity: 0; animation: fade-up 0.6s 0.2s ease forwards;
}

.stub-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
.stub-label::before {
  content: ''; display: block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--red);
}

.stub-title {
  font-size: 42px; font-weight: 800; letter-spacing: -1.5px;
  color: #fff; margin-bottom: 16px;
}
.stub-title span { color: var(--red); }

.stub-body {
  font-size: 15px; color: rgba(255,255,255,0.40); line-height: 1.7;
  max-width: 400px; margin-bottom: 28px;
}

.back-link {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 0.2s ease;
}
.back-link:hover { color: #fff; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up  {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Back button ───────────────────────────────────────────── */
.page-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.30);
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; margin-bottom: 10px; transition: color 0.15s;
  text-decoration: none;
}
.page-back-btn:hover { color: rgba(255,255,255,0.65); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 99px; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; overflow-y: auto; }
  .layout { flex-direction: column; height: auto; min-height: 100vh; padding-top: 56px; }
  .sidebar { width: 100%; flex-direction: row; align-items: center; padding: 16px 20px; position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
  .logo { margin-bottom: 0; }
  .nav { display: none; }
  .sidebar-disclaimer { display: none; }
  .sidebar-user { display: none; }
  .sidebar-login { display: none; }
  .hamburger { display: flex; }
  .sidebar::after {
    top: auto; bottom: 0; right: 0; width: 100%; height: 1px;
    background: linear-gradient(
      to right,
      rgba(229,53,53,0.90) 0%, rgba(229,53,53,0.60) 20%,
      rgba(255,255,255,0.40) 55%, rgba(255,255,255,0.12) 80%,
      rgba(255,255,255,0.03) 100%
    );
  }
  .main { padding: 32px 16px 40px; overflow: visible; max-width: 100vw; }
  .stub-title { font-size: 30px; }
}

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none; margin-left: auto; flex-shrink: 0;
  width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.ham-line {
  display: block; width: 18px; height: 2px; background: var(--red);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open .ham-top { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-mid { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-bot { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav panel ──────────────────────────────────────── */
.mobile-nav {
  overflow: hidden; max-height: 0;
  background: rgba(10,10,12,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { max-height: 300px; }
@media (min-width: 701px) { .mobile-nav { display: none; } }
@media (max-width: 700px) {
  .mobile-nav { position: fixed; top: 56px; left: 0; right: 0; z-index: 49; }
}
.mobile-nav-item {
  display: block; padding: 14px 24px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.15s ease, background 0.15s ease;
}
.mobile-nav-item:last-child { border-bottom: none; }
.mobile-nav-item:hover, .mobile-nav-item.active { color: #fff; background: rgba(255,255,255,0.04); }

/* ── Mobile disclaimer footer ──────────────────────────────── */
.mobile-footer-disc { display: none; }
@media (max-width: 700px) {
  .mobile-footer-disc {
    display: block; position: fixed; bottom: 0; left: 0; right: 0;
    padding: 8px 20px; z-index: 30;
    background: rgba(10,10,12,0.92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 10px; line-height: 1.5; color: rgba(255,255,255,0.16);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
}
