
:root {
  --black: #080808;
  --white: #ffffff;
  --soft: #f7f7f7;
  --line: #e7e7e7;
  --muted: #5f5f5f;
  --red: #d71920;
  --shadow: 0 10px 28px rgba(0,0,0,.075);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--soft);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.site-container {
  max-width: 1100px !important;
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}
@media (max-width: 560px) {
  .site-container { padding-inline: 16px; }
}

.free-ribbon {
  position: fixed;
  top: 18px;
  left: -54px;
  z-index: 100;
  width: 230px;
  transform: rotate(-42deg);
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}
.sidebar {
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 20px 16px;
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.02em;
  margin-bottom:24px;
}
.brand-mark {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  background:var(--white);
  color:var(--black);
  border-radius:5px;
  font-weight:900;
}
.sidebar-section {
  color:#bdbdbd;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin:20px 10px 8px;
  font-weight:900;
}
.nav {
  display:grid;
  gap:5px;
}
.nav a {
  color:#ededed;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 11px;
  border-radius:6px;
  font-weight:800;
}
.nav a:hover, .nav a.active {
  background:rgba(255,255,255,.11);
}
.nav small {
  color:#bdbdbd;
  border:1px solid rgba(255,255,255,.18);
  padding:1px 6px;
  border-radius:999px;
}
.main {
  min-width: 0;
}
.topbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top:0;
  z-index: 40;
}
.topbar-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-block:14px;
}
.topbar-title strong { display:block; font-size:18px; }
.topbar-title span { color:var(--muted); font-size:14px; }
.search {
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:6px;
  padding:9px 12px;
  min-width:280px;
}
.search input {
  border:0;
  outline:0;
  width:100%;
}
.actions {
  display:flex;
  align-items:center;
  gap:10px;
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  gap:8px;
  padding:9px 14px;
  border:1px solid var(--black);
  border-radius:6px;
  background:#fff;
  color:#111;
  font-weight:900;
  cursor:pointer;
}
.btn-primary { background:var(--black); color:#fff; }
.btn-red { background:var(--red); color:#fff; border-color:var(--red); }
.btn:hover { transform:translateY(-1px); }

.page {
  padding: 30px 0 52px;
}
.page-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}
.kicker {
  color:var(--red);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:900;
}
h1,h2,h3,h4 { margin:0; line-height:1.15; letter-spacing:-.025em; }
h1 { font-size:clamp(32px,4vw,48px); margin-top:8px; }
h2 { font-size:30px; }
h3 { font-size:21px; }
p { margin:0; color:var(--muted); }
.lead { font-size:18px; color:#333; margin-top:10px; max-width:720px; }

.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}
.card-pad { padding:18px; }
.metric {
  display:grid;
  gap:10px;
}
.metric-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.metric-icon {
  width:38px;
  height:38px;
  border-radius:6px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
}
.metric strong { font-size:32px; line-height:1; }
.trend { font-size:13px; color:#0f6938; font-weight:900; }

.table-wrap {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}
table {
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
th, td {
  text-align:left;
  padding:13px 14px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}
th {
  background:#fafafa;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
tbody tr:hover { background:#fcfcfc; }
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fafafa;
  font-size:13px;
  font-weight:900;
}
.badge-dark { background:#111; color:#fff; border-color:#111; }
.badge-red { background:var(--red); color:#fff; border-color:var(--red); }

.chart {
  height:240px;
  display:flex;
  align-items:end;
  gap:10px;
  padding-top:18px;
}
.bar {
  flex:1;
  background:#111;
  border-radius:5px 5px 0 0;
  min-height:30px;
  position:relative;
}
.bar span {
  position:absolute;
  bottom:-26px;
  left:50%;
  transform:translateX(-50%);
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}
.activity {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}
.activity li {
  display:flex;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}
.dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--black);
  margin-top:7px;
  flex:0 0 auto;
}
.form-grid {
  display:grid;
  gap:14px;
}
.field {
  display:grid;
  gap:6px;
}
label {
  font-weight:900;
  font-size:14px;
}
.input,.select,.textarea {
  width:100%;
  border:1px solid #d8d8d8;
  border-radius:6px;
  padding:11px 12px;
  background:#fff;
  color:#111;
}
.textarea { min-height:120px; resize:vertical; }
.profile {
  display:flex;
  gap:16px;
  align-items:center;
}
.avatar {
  width:62px;
  height:62px;
  border-radius:8px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:22px;
}
.footer {
  border-top:1px solid var(--line);
  background:#fff;
  padding:18px 0;
}
.footer-inner {
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  font-size:14px;
}
.footer a { font-weight:900; text-decoration:underline; }

.floating-cta {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:80;
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
  font-weight:900;
}
.floating-cta:hover { background:var(--red); }

.mobile-menu { display:none; }

@media (max-width: 980px) {
  .dashboard-shell { grid-template-columns:1fr; }
  .sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:270px;
    transform:translateX(-105%);
    transition:.2s ease;
    z-index:90;
  }
  .sidebar.open { transform:translateX(0); }
  .mobile-menu { display:inline-flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns:1fr; }
  .search { min-width:0; flex:1; }
  .topbar-inner { flex-wrap:wrap; }
}
@media (max-width: 620px) {
  .page-head { align-items:flex-start; flex-direction:column; }
  .actions { width:100%; flex-wrap:wrap; }
  .btn { width:auto; }
  .floating-cta { left:16px; right:16px; text-align:center; }
  .free-ribbon { top:14px; left:-60px; font-size:12px; }
}
