/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 16px 0; transition: all .3s;
}
nav.scrolled {
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--mist); padding: 10px 0;
  box-shadow: 0 2px 20px rgba(21,87,240,.06);
}
.nav-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; flex-shrink: 0; }
.logo span { color: var(--blue); }
.logo em   { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 24px; list-style: none; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-4); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-sel { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 50px; background: var(--mist); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .2s; }
.lang-btn:hover { background: var(--sky); color: var(--blue); }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: white; border: 1px solid var(--mist); border-radius: var(--r); box-shadow: var(--sh); min-width: 140px; overflow: hidden; z-index: 300; }
.lang-dropdown.open { display: block; }
.lang-opt { padding: 9px 14px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; }
.lang-opt:hover { background: var(--blue-pale); color: var(--blue); }
.lang-opt.active { color: var(--blue); font-weight: 700; }
.nav-mobile-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hb { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 400; background: white; padding: 24px; flex-direction: column; gap: 28px; }
.mobile-menu.open { display: flex; }
.mm-close { background: none; border: none; font-size: 28px; cursor: pointer; align-self: flex-end; color: var(--ink); }
.mm-links { display: flex; flex-direction: column; gap: 20px; }
.mm-links a { font-size: 22px; font-weight: 700; color: var(--ink); }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 64px 0 28px; }
.footer-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 24px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,.4); transition: all .2s; }
.footer-socials a:hover { background: var(--blue); color: white; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.4); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 28px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.3); }
.footer-badges { display: flex; gap: 8px; }
.footer-badges span { padding: 3px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; font-size: 11px; }

/* ── DASHBOARD LAYOUT ── */
.dash-layout { display: flex; min-height: 100vh; padding-top: var(--nav-h); }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--ink); padding: 24px 0;
  position: fixed; top: var(--nav-h); bottom: 0; left: 0;
  overflow-y: auto; z-index: 50;
  transition: transform .3s;
}
.sidebar-logo { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.sidebar-section { padding: 8px 20px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-top: 12px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.55); transition: all .15s; border-left: 2px solid transparent; text-decoration: none; }
.sidebar a:hover { color: white; background: rgba(255,255,255,.06); }
.sidebar a.active { color: white; background: rgba(21,87,240,.25); border-left-color: #93c5fd; }
.sidebar-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.dash-main { margin-left: var(--sidebar-w); flex: 1; padding: 36px; background: var(--off); min-height: calc(100vh - var(--nav-h)); }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-title { font-family: var(--font-h); font-size: 26px; font-weight: 800; color: var(--ink); }
.dash-sub { font-size: 14px; color: var(--gray-6); margin-top: 2px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border: 1px solid var(--mist); border-radius: var(--r-lg); padding: 20px; }
.stat-card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.stat-card-val { font-family: var(--font-h); font-size: 26px; font-weight: 800; color: var(--ink); }
.stat-card-lbl { font-size: 12px; color: var(--gray-6); margin-top: 3px; }
.stat-card-delta { font-size: 12px; margin-top: 6px; }
.delta-up   { color: var(--green); }
.delta-down { color: var(--red); }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 20px; }
  .nav-links, .nav-right .btn-ghost { display: none; }
  .nav-mobile-btn { display: flex; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-wrap { grid-template-columns: 1fr; }
}
