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

:root {
  --red: #C8001A;
  --red2: #E8001F;
  --red-dim: rgba(200,0,26,0.09);
  --red-dim2: rgba(200,0,26,0.05);
  --white: #fff;
  --bg: #F6F5F5;
  --text: #0E0E0E;
  --muted: #6B6B6B;
  --border: rgba(200,0,26,0.12);
  --border-gray: #E6E2E2;
  --radius: 8px;
  --nav-h: 64px;
  --sidebar-w: 260px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SIDEBAR LAYOUT ── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border-gray);
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border-gray);
  display: flex; align-items: center; justify-content: space-between;
}
.logo-text { font-size: 1.05rem; font-weight: 800; color: var(--text); text-decoration: none; }
.logo-text span { color: var(--red); }

.sidebar-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
  display: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-close:hover { background: var(--red-dim); color: var(--red); }

.sidebar-section { padding: 18px 14px 8px; }
.sidebar-section-label {
  font-size: 0.67rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 0 8px; margin-bottom: 6px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 0.84rem; font-weight: 500; color: var(--muted);
  text-decoration: none; cursor: pointer;
  border: none; background: none; width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--bg); color: var(--text); }
.sidebar-link.active { background: var(--red-dim); color: var(--red); font-weight: 600; }
.sidebar-link svg { flex-shrink: 0; }
.sidebar-link .coming { font-size: 0.6rem; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 2px 5px; margin-left: auto; }

.sidebar-bottom {
  margin-top: auto; padding: 14px;
  border-top: 1px solid var(--border-gray);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 8px;
  transition: background 0.15s;
}
.sidebar-user:hover { background: var(--bg); }
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red-dim); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}
.sidebar-user-name { font-size: 0.82rem; font-weight: 700; }
.sidebar-user-sub { font-size: 0.7rem; color: var(--muted); }

/* ── MAIN CONTENT ── */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
}

.topbar {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-gray);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.burger-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px; color: var(--muted);
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center;
}
.burger-btn:hover { background: var(--red-dim); color: var(--red); }
.topbar-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* ── OVERLAY ── */
#sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(2px);
}
#sidebar-overlay.show { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; border: 1.5px solid var(--red);
  border-radius: var(--radius); background: transparent; color: var(--red);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--red-dim); }
.btn.solid { background: var(--red); color: #fff; }
.btn.solid:hover { background: var(--red2); border-color: var(--red2); }
.btn.lg { padding: 13px 28px; font-size: 0.93rem; }
.btn.sm { padding: 7px 15px; font-size: 0.79rem; }
.btn.ghost-gray { border-color: var(--border-gray); color: var(--muted); }
.btn.ghost-gray:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }
.btn.back { border-color: var(--border-gray); color: var(--muted); font-size: 0.8rem; }
.btn.back:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; padding: 10px 22px;
  border-radius: 50px; font-size: 0.81rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 800;
  white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif;
}
#toast.show { opacity: 1; }

/* ── PROGRESS BAR ── */
#pbar { position: fixed; top:0; left:0; height:2px; background: var(--red); width:0%; transition: width 0.3s; z-index: 999; }

/* ── DOT GRID ── */
#dot-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── FOOTER ── */
footer {
  background: #0C0C0C; color: #fff;
  padding: 52px 40px 28px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { font-size: 1rem; font-weight: 800; margin-bottom: 9px; }
.footer-logo span { color: #E8001F; }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.7; }
.footer-col h5 { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 13px; }
.footer-col a { display: block; font-size: 0.79rem; color: rgba(255,255,255,0.33); text-decoration: none; margin-bottom: 8px; cursor: pointer; transition: color 0.14s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.7rem; color: rgba(255,255,255,0.2); flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .main-wrap { margin-left: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
