*{ box-sizing: border-box; }

:root{
  --bg: #05070a;
  --panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --text: #e5e7eb;
  --muted: rgba(229,231,235,0.65);
  --gold: #fbbf24;
  --gold2: #f59e0b;
}

html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 900px at 20% 10%, rgba(251,191,36,0.07), transparent 55%),
              radial-gradient(900px 700px at 90% 10%, rgba(139,92,246,0.06), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

a{ color: inherit; text-decoration: none; }

.container{ max-width: 1180px; margin: 0 auto; padding: 24px; }

.nav{
  position: sticky;
  top:0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5,7,10,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.nav-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.brand{ display:flex; gap:12px; align-items:center; min-width: 170px; }
.brand svg, .brand img{ width: 34px; height: 34px; }
.brand .name{ font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.btn:hover{ border-color: rgba(255,255,255,0.18); }

.btn::placeholder{ color: rgba(229,231,235,0.55); }

.btn.primary{
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #0b0b0b;
  font-weight: 900;
}

.hero{
  padding: 72px 0 40px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.h1{ font-size: 56px; line-height: 1.03; font-weight: 950; letter-spacing: -0.02em; margin: 0; }
.h1 span{ color: var(--gold); }
.lead{ color: var(--muted); font-size: 18px; line-height: 1.55; margin-top: 16px; max-width: 52ch; }

.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: 26px;
  padding: 18px;
}

.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.kpi{ font-weight: 900; font-size: 22px; }
.small{ color: var(--muted); font-size: 12px; line-height: 1.4; }

.footer{ border-top:1px solid rgba(255,255,255,0.06); margin-top: 60px; padding: 24px 0; color: rgba(229,231,235,0.55); font-size: 12px; }

[data-toast-host]{ position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9999; display: grid; gap: 10px; }
.toast{ width: min(360px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 16px; background: rgba(15, 23, 42, 0.82); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 14px 60px rgba(0,0,0,0.45); backdrop-filter: blur(10px); }
.toast-msg{ font-size: 13px; font-weight: 800; color: rgba(229,231,235,0.95); line-height: 1.35; }
.toast.hide{ opacity:0; transform: translateY(8px); transition: all 220ms ease; }

/* App shell (sidebar) */
.app-shell{ display:flex; min-height: calc(100vh - 84px); gap: 14px; }
.app-sidebar{ width: 260px; flex: 0 0 260px; background: var(--panel); border:1px solid var(--border); border-radius: 26px; padding: 14px; height: fit-content; position: sticky; top: 92px; }
.app-sidebar-header{ display:flex; align-items:center; gap:10px; padding: 6px 6px 10px; }
.app-logo{ width: 30px; height: 30px; }
.app-title{ font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.app-nav{ display:grid; gap: 8px; margin-top: 6px; }
.app-nav-item{ padding: 12px 12px; border-radius: 16px; border:1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.03); color: rgba(229,231,235,0.88); font-weight: 850; }
.app-nav-item.active{ border-color: rgba(251,191,36,0.25); color: var(--gold); background: rgba(251,191,36,0.06); }
.app-sidebar-footer{ margin-top: 12px; display:grid; gap:10px; }
.app-user{ font-size: 11px; color: rgba(229,231,235,0.65); line-height: 1.4; }
.app-main{ flex: 1; }

.app-topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top: 18px; }
.burger{ display:none; }

.app-overlay{ display:none; }

@media (max-width: 980px){
  .app-shell{ display:block; }
  .burger{ display:inline-flex; }
  .app-sidebar{ position: fixed; top: 0; left: 0; height: 100vh; width: 82vw; max-width: 320px; border-radius: 0 26px 26px 0; transform: translateX(-102%); transition: transform 200ms ease; z-index: 40; }
  .app-sidebar.open{ transform: translateX(0); }
  .app-overlay{ display:block; position: fixed; inset:0; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity 200ms ease; z-index: 30; }
  .app-overlay.show{ opacity:1; pointer-events: auto; }
}

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .h1{ font-size: 44px; }
}

@media (max-width: 640px){
  .container{ padding: 16px; }
  .brand{ min-width: auto; }
}
