:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #11161c;
  --muted: #7d8792;
  --subtle: #a5adb6;
  --line: #e8ebef;
  --line-strong: #dfe4e9;
  --cyan: #43c7df;
  --cyan-dark: #168bad;
  --blue: #286ba1;
  --purple: #7161c8;
  --green: #26a878;
  --red: #c93e4e;
  --amber: #b88320;
  --nav: #ffffff;
  --shadow: 0 12px 32px rgba(25, 36, 48, .055);
  --shadow-hover: 0 18px 42px rgba(25, 36, 48, .09);
  --shadow-lg: 0 28px 70px rgba(25, 36, 48, .13);
  --radius: 18px;
}

:root.dark {
  --bg: #10151a;
  --surface: #171d23;
  --surface-2: #1c232a;
  --ink: #f4f7f9;
  --muted: #a2acb6;
  --subtle: #77828d;
  --line: #29323b;
  --line-strong: #37424c;
  --nav: #171d23;
  --shadow: 0 16px 36px rgba(0,0,0,.18);
  --shadow-hover: 0 20px 48px rgba(0,0,0,.24);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

body::before {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #dff8fc, #4bc9e1, #dff8fc);
}

.app-page { min-height: 100vh; }

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  background: color-mix(in srgb, var(--nav) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1390px, calc(100% - 42px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 185px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ee4050, #c9182e);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 9px 22px rgba(201, 24, 46, .19);
}
.brand-copy strong {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
}
.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .22em;
}
.top-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.top-nav-link,
.more-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}
.top-nav-link:hover,
.top-nav-link.active,
.more-menu summary:hover,
.more-menu[open] summary {
  color: var(--ink);
  background: var(--surface-2);
  box-shadow: 0 6px 17px rgba(30, 40, 50, .055);
}
.more-menu { position: relative; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-panel {
  position: absolute;
  top: 46px;
  right: 0;
  width: 210px;
  padding: 7px;
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.more-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 9px;
}
.more-panel a:hover,
.more-panel a.active { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button,
.mobile-menu {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.icon-button:hover,
.mobile-menu:hover { border-color: var(--line-strong); color: var(--ink); }
.notification-button .bell-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  right: 8px;
  top: 7px;
  border-radius: 50%;
  background: #df3f4f;
  box-shadow: 0 0 0 3px var(--surface);
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 7px;
  margin-left: 2px;
}
.profile-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf1f4;
  color: #1f2a34;
  font-size: 10px;
  font-weight: 850;
}
.profile-text strong { display: block; font-size: 9px; }
.profile-text small { display: block; margin-top: 2px; color: var(--subtle); font-size: 7px; }
.mobile-menu { display: none; padding: 8px; }
.mobile-menu span { width: 15px; height: 1.5px; display: block; background: currentColor; border-radius: 4px; }

/* Tiny CSS icons — no icon dependency required */
.nav-icon,
.metric-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}
.nav-icon { width: 13px; height: 13px; }
.icon-grid::before { content: ""; position: absolute; inset: 1px; background: currentColor; border-radius: 2px; box-shadow: 5px 0 currentColor, 0 5px currentColor, 5px 5px currentColor; transform: scale(.52); transform-origin: top left; }
.icon-spark::before { content: "✦"; position: absolute; inset: -3px 0 0; font-size: 13px; }
.icon-users::before { content: "♙"; position: absolute; inset: -3px 0 0; font-size: 13px; }
.icon-briefcase::before { content: "▤"; position: absolute; inset: -2px 0 0; font-size: 13px; }
.icon-check::before { content: "✓"; position: absolute; inset: -3px 0 0; font-size: 14px; font-weight: 800; }
.icon-wallet::before { content: "◉"; position: absolute; inset: -2px 0 0; font-size: 13px; }
.icon-more::before { content: "•••"; position: absolute; inset: -4px 0 0; font-size: 10px; letter-spacing: 1px; }
.icon-check-circle::before { content: "✓"; position: absolute; inset: -2px 0 0; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; text-align: center; font-size: 8px; line-height: 10px; }
.icon-mail::before { content: "✉"; font-size: 13px; }
.icon-bell::before { content: "♧"; font-size: 14px; }
.icon-activity::before { content: "⌁"; font-size: 17px; }
.icon-card::before { content: "▭"; font-size: 14px; }
.icon-key::before { content: "⌕"; font-size: 15px; }
.icon-webhook::before { content: "↗"; font-size: 15px; }
.icon-plug::before { content: "♧"; font-size: 14px; }

/* Workspace */
.workspace-shell { width: min(1390px, calc(100% - 42px)); margin: 0 auto; padding-bottom: 48px; }
.workspace-bar { height: 62px; display: flex; justify-content: space-between; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.breadcrumb span { color: var(--muted); }
.breadcrumb b { color: var(--subtle); }
.workspace-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.workspace-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(38,168,120,.08); }
.workspace-status span { padding-left: 9px; border-left: 1px solid var(--line); }
.workspace-content { padding-top: 4px; }

/* Dashboard frame: the reference is a clean, centered workspace rather than a sidebar admin template. */
.dashboard-frame { padding: 0; }
.dashboard-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.dashboard-intro::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -175px;
  top: -215px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: -30px 30px 0 -29px var(--line);
}
.section-kicker { color: #9aa2aa; font-size: 7px; font-weight: 850; letter-spacing: .18em; }
.dashboard-intro h1 { margin: 8px 0 7px; font-size: 29px; line-height: 1.05; letter-spacing: -.05em; }
.dashboard-intro p { margin: 0; color: var(--muted); font-size: 9px; }
.welcome-actions { position: relative; z-index: 1; display: flex; gap: 8px; }
.primary-button,
.soft-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 750;
  border: 1px solid transparent;
}
.primary-button { color: #fff; background: #12181e; box-shadow: 0 8px 18px rgba(18,24,30,.13); }
.primary-button:hover { transform: translateY(-1px); }
.soft-button { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.soft-button:hover { background: var(--surface-2); }
.danger-button { min-height: 30px; padding: 6px 9px; color: #bf3d4c; background: #fff3f4; border-color: #efd6da; }

/* KPI row */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 13px; }
.metric-card {
  position: relative;
  min-height: 151px;
  overflow: hidden;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.metric-card:hover,
.dashboard-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.metric-top { display: flex; align-items: center; gap: 8px; }
.metric-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #53616d;
  background: #f0f3f5;
  font-size: 11px;
}
.metric-label { color: #69747e; font-size: 8px; font-weight: 650; }
.dots { margin-left: auto; padding: 0; border: 0; background: transparent; color: #a3aab1; font-size: 10px; letter-spacing: 1px; }
.metric-value { display: block; margin-top: 13px; font-size: 26px; line-height: 1; letter-spacing: -.05em; font-weight: 750; }
.metric-currency { font-size: 22px; }
.metric-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 9px; }
.trend { padding: 4px 6px; border-radius: 6px; font-size: 7px; font-weight: 800; }
.trend.positive { color: #1f906a; background: #eaf8f2; }
.trend.negative { color: #bd4655; background: #fff0f2; }
.metric-period { color: #8c959e; font-size: 7px; white-space: nowrap; }
.sparkline { position: absolute; right: 14px; bottom: 14px; height: 35px; display: flex; align-items: flex-end; gap: 3px; opacity: .82; }
.sparkline i { display: block; width: 3px; border-radius: 4px 4px 0 0; background: #52cbe2; }
.sparkline i:nth-child(1){height:9px}.sparkline i:nth-child(2){height:16px}.sparkline i:nth-child(3){height:12px}.sparkline i:nth-child(4){height:23px}.sparkline i:nth-child(5){height:15px}.sparkline i:nth-child(6){height:29px}.sparkline i:nth-child(7){height:21px}.sparkline i:nth-child(8){height:31px}
.sparkline.blue i { background: #368cc2; }
.sparkline.purple i { background: #7865cc; }
.sparkline.dark i { background: #244d74; }

/* Main analytics */
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .95fr) minmax(200px, .78fr); gap: 13px; margin-top: 13px; }
.dashboard-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-heading h2 { margin: 6px 0 0; font-size: 14px; letter-spacing: -.025em; }
.card-link { color: #89929c; font-size: 8px; }
.card-link:hover { color: var(--ink); }
.legend { display: flex; align-items: center; gap: 11px; color: #89929c; font-size: 7px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.legend-cyan { background: #48c9e0; }
.legend-blue { background: #28537c; }
.chart-card { padding: 15px 17px 13px; }
.chart-shell { display: flex; height: 205px; margin-top: 10px; }
.chart-y { width: 34px; display: flex; flex-direction: column; justify-content: space-between; padding: 11px 0 20px; color: #a0a8b0; font-size: 7px; }
.line-chart-wrap { flex: 1; min-width: 0; position: relative; padding-bottom: 20px; }
.line-chart-svg { width: 100%; height: calc(100% - 18px); display: block; overflow: visible; }
.chart-grid-lines line { stroke: #edf0f2; stroke-width: 1; stroke-dasharray: 2 4; }
.chart-area { fill: url(#revenueFill); }
.chart-line { fill: none; stroke: #43bfd9; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-point { fill: #fff; stroke: #43bfd9; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-x { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; color: #9ca4ad; font-size: 7px; }
.growth-card { padding: 15px 17px; }
.growth-visual { position: relative; height: 173px; margin-top: 9px; padding-left: 0; }
.growth-visual svg { width: 100%; height: 100%; display: block; }
.growth-grid line { stroke: #edf0f2; stroke-width: 1; stroke-dasharray: 2 4; }
.growth-labels { position: absolute; left: 0; top: 7px; bottom: 2px; display: flex; flex-direction: column; justify-content: space-between; color: #9ca4ad; font-size: 7px; }
.mini-stats { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); color: #8c959f; font-size: 7px; }
.mini-stats b { color: var(--ink); font-size: 9px; }
.donut-card { padding: 15px 17px; }
.donut-wrap { display: grid; place-items: center; padding: 13px 0 8px; }
.donut { width: 142px; height: 142px; display: grid; place-items: center; border-radius: 50%; }
.donut-hole { width: 82px; height: 82px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.donut-hole strong { font-size: 19px; letter-spacing: -.04em; }
.donut-hole span { margin-top: 2px; color: #8c959e; font-size: 7px; }
.donut-legend { display: grid; gap: 7px; padding-top: 8px; border-top: 1px solid var(--line); }
.donut-legend span { display: flex; align-items: center; gap: 6px; color: #7f8993; font-size: 7px; }
.donut-legend i { width: 6px; height: 6px; border-radius: 50%; }
.donut-legend b { margin-left: auto; color: var(--ink); font-size: 8px; }

/* Lower dashboard cards */
.bottom-grid { display: grid; grid-template-columns: .92fr 1.05fr 1.28fr; gap: 13px; margin-top: 13px; }
.workflow-card,
.command-card,
.recent-card,
.activity-card { padding: 15px 17px; }
.workflow-list { margin-top: 10px; }
.workflow { position: relative; padding: 9px 0 11px; border-bottom: 1px solid var(--line); }
.workflow:last-child { border-bottom: 0; }
.workflow > div:first-child { display: flex; justify-content: space-between; gap: 8px; padding-right: 30px; }
.workflow strong { font-size: 8px; }
.workflow span { color: #969ea7; font-size: 7px; }
.workflow > b { position: absolute; right: 0; top: 9px; color: #7e8791; font-size: 8px; }
.workflow-bar { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #edf0f2; }
.workflow-bar i { display: block; height: 100%; border-radius: inherit; background: #3bb9d5; }
.command-card p { margin: 10px 0; color: #89929c; font-size: 8px; line-height: 1.6; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 999px; color: #1f956d; background: #eaf8f2; font-size: 7px; font-weight: 850; }
.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: #22a06f; }
.command-box { padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.command-box textarea { width: 100%; min-height: 57px; padding: 2px; border: 0; outline: 0; resize: none; color: var(--ink); background: transparent; font-size: 8px; }
.command-box > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #9aa2aa; font-size: 7px; }
.command-box .primary-button { min-height: 29px; padding: 7px 9px; font-size: 7px; }
.ai-result { margin-top: 8px; padding: 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 8px; line-height: 1.65; white-space: pre-wrap; }
.hidden { display: none !important; }
.recent-table { margin-top: 9px; }
.recent-head,
.recent-row { display: grid; grid-template-columns: 1.4fr .8fr .7fr; gap: 8px; align-items: center; }
.recent-head { padding: 7px 0; color: #a0a7af; border-bottom: 1px solid var(--line); font-size: 7px; text-transform: uppercase; letter-spacing: .06em; }
.recent-row { min-height: 39px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 7px; }
.recent-row:last-child { border-bottom: 0; }
.recent-row strong { overflow: hidden; color: var(--ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.recent-row span:not(.status-pill) { color: #89929c; }
.status-pill { display: inline-flex; width: max-content; align-items: center; justify-content: center; padding: 4px 7px; border-radius: 999px; background: #f1f3f5; color: #69737d; font-size: 7px; font-weight: 800; text-transform: capitalize; }
.status-pill.approved,.status-pill.active,.status-pill.paid { background: #eaf8f2; color: #218c68; }
.status-pill.pending,.status-pill.planning { background: #fff7e5; color: #a26b12; }
.status-pill.rejected,.status-pill.cancelled,.status-pill.failed,.status-pill.overdue { background: #fff0f2; color: #c04453; }
.status-pill.in_progress { background: #eef6ff; color: #3978ad; }
.activity-card { margin-top: 13px; }
.activity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 9px; }
.activity-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.activity-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #45c6df; box-shadow: 0 0 0 4px rgba(69,198,223,.08); }
.activity-item > div { min-width: 0; flex: 1; }
.activity-item strong { display: block; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.activity-item small { display: block; margin-top: 3px; color: #929ba4; font-size: 7px; }
.activity-item code { color: #89929c; font-size: 7px; }
.empty-inline { padding: 18px 0; color: #9aa2aa; text-align: center; font-size: 8px; }

/* Module pages share the same organized visual language */
.module-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.module-heading h1 { margin: 7px 0 4px; font-size: 27px; letter-spacing: -.045em; }
.module-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.module-actions { display: flex; gap: 8px; }
.form-panel { display: none; margin-bottom: 13px; padding: 17px; }
.form-panel.open { display: block; }
.entity-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.entity-form label { color: #65707b; font-size: 8px; font-weight: 750; }
.entity-form input,
.entity-form select,
.entity-form textarea,
.inline-form input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 9px;
}
.entity-form input:focus,
.entity-form select:focus,
.entity-form textarea:focus,
.inline-form input:focus { border-color: #8ed5e4; box-shadow: 0 0 0 3px rgba(67,199,223,.09); }
.entity-form textarea { min-height: 80px; resize: vertical; }
.entity-form .wide { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.table-card { overflow: hidden; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 8px; }
th { padding: 12px 14px; color: #929aa4; background: var(--surface-2); border-bottom: 1px solid var(--line); text-align: left; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 13px 14px; color: #5e6873; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
td strong, td b { color: var(--ink); }
.module-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.agent-card,.integration-card { display: flex; gap: 12px; padding: 16px; }
.agent-avatar,.integration-logo { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--cyan-dark); background: #edf6f8; font-size: 12px; font-weight: 850; }
.agent-main { min-width: 0; flex: 1; }
.agent-top { display: flex; justify-content: space-between; gap: 10px; }
.agent-top h3 { margin: 0; font-size: 11px; }
.agent-top span:not(.status-pill) { display: block; margin-top: 4px; color: #9098a1; font-size: 7px; }
.agent-main p,.integration-card p { color: #89919b; font-size: 8px; line-height: 1.6; }
.agent-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.agent-footer small { color: #9aa1aa; font-size: 7px; }
.billing-grid { display: grid; grid-template-columns: 1.3fr repeat(2,1fr); gap: 13px; }
.plan-feature { padding: 18px; color: #fff; background: linear-gradient(145deg,#11171d,#29333d); }
.plan-feature .section-kicker,.plan-feature p { color: #aeb7c1; }
.plan-feature h2 { margin: 8px 0; font-size: 21px; }
.big-price { margin: 14px 0; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.big-price small { color: #a2aab4; font-size: 8px; }
.plan-card { padding: 18px; }
.plan-card h2 { margin: 7px 0; font-size: 18px; }
.plan-card ul { padding-left: 17px; color: #78818b; font-size: 8px; line-height: 2; }
.inline-form { display: flex; gap: 8px; margin: 12px 0 18px; }
.inline-form input { max-width: 300px; }
.empty { padding: 45px; color: #949ca6; text-align: center; font-size: 9px; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #fff, #f4f5f7 58%, #e9ecef); }
.login-card { width: min(420px, 100%); padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.login-card .brand-lockup { justify-content: center; margin: 0 auto 24px; }
.login-copy { margin-bottom: 20px; text-align: center; }
.login-copy h1 { margin: 0 0 7px; font-size: 28px; letter-spacing: -.05em; }
.login-copy p { color: var(--muted); font-size: 9px; line-height: 1.7; }
.login-card form { display: grid; gap: 12px; }
.login-card label { color: #5f6973; font-size: 8px; font-weight: 750; }
.login-card input { width: 100%; margin-top: 6px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; font-size: 9px; }
.login-foot { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); color: #9aa1aa; text-align: center; font-size: 7px; }
.alert { padding: 9px; border-radius: 9px; color: #bf3d4c; background: #fff0f2; font-size: 8px; }

/* Dark mode */
:root.dark .site-header { background: rgba(23,29,35,.94); }
:root.dark .icon-button,
:root.dark .soft-button,
:root.dark .more-panel,
:root.dark .login-card { background: var(--surface); color: var(--ink); }
:root.dark .metric-icon { background: #202830; color: #d7e0e7; }
:root.dark .chart-grid-lines line,
:root.dark .growth-grid line { stroke: #2b343d; }
:root.dark .chart-point { fill: var(--surface); }
:root.dark .workflow-bar { background: #29323b; }
:root.dark .command-box { background: #1d252c; }
:root.dark .form-panel input,
:root.dark .form-panel select,
:root.dark .form-panel textarea,
:root.dark .inline-form input,
:root.dark .login-card input { background: #202830; color: var(--ink); border-color: var(--line-strong); }
:root.dark th { background: #1c232a; }
:root.dark td { color: #b6bec7; }
:root.dark .plan-feature { background: linear-gradient(145deg,#0d1217,#202a33); }

/* Responsive */
@media (max-width: 1160px) {
  .header-inner,.workspace-shell { width: min(100% - 28px, 1100px); }
  .brand-lockup { flex-basis: 155px; }
  .top-nav-link { padding-inline: 8px; }
  .top-nav-link { font-size: 9px; }
  .analytics-grid { grid-template-columns: 1.45fr .9fr; }
  .donut-card { grid-column: span 2; }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .recent-card { grid-column: span 2; }
}
@media (max-width: 920px) {
  .site-header { height: 70px; }
  .top-nav { display: none; }
  .header-inner { gap: 10px; }
  .brand-lockup { flex: 1; }
  .mobile-menu { display: grid; }
  .menu-open .top-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
  }
  .menu-open .top-nav-link { display: flex; }
  .menu-open .more-menu { display: block; }
  .workspace-bar { height: 56px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .analytics-grid { grid-template-columns: 1fr; }
  .donut-card { grid-column: auto; }
  .bottom-grid { grid-template-columns: 1fr; }
  .recent-card { grid-column: auto; }
  .module-card-grid { grid-template-columns: repeat(2,1fr); }
  .billing-grid { grid-template-columns: 1fr 1fr; }
  .plan-feature { grid-column: span 2; }
}
@media (max-width: 650px) {
  .header-inner,.workspace-shell { width: min(100% - 20px, 620px); }
  .brand-copy { display: none; }
  .profile-text { display: none; }
  .workspace-status { display: none; }
  .dashboard-intro { display: block; padding: 21px; }
  .dashboard-intro h1 { font-size: 25px; }
  .welcome-actions { margin-top: 16px; flex-wrap: wrap; }
  .welcome-actions a { flex: 1; }
  .metric-card { min-height: 142px; }
  .metric-value { font-size: 23px; }
  .metric-currency { font-size: 19px; }
  .chart-card,.growth-card,.donut-card,.workflow-card,.command-card,.recent-card,.activity-card { padding: 14px; }
  .legend { display: none; }
  .activity-list { grid-template-columns: 1fr; }
  .module-heading { display: block; }
  .module-actions { margin-top: 13px; }
  .entity-form { grid-template-columns: 1fr; }
  .entity-form .wide { grid-column: auto; }
  .module-card-grid { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; }
  .plan-feature { grid-column: auto; }
  .inline-form { display: block; }
  .inline-form input { max-width: none; margin-bottom: 8px; }
  .inline-form .primary-button { width: 100%; }
}
@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .profile-avatar { width: 34px; height: 34px; }
  .workspace-content { padding-top: 0; }
  .dashboard-intro h1 { font-size: 23px; }
  .chart-shell { height: 185px; }
  .recent-head,.recent-row { grid-template-columns: 1.35fr .75fr; }
  .recent-head span:nth-child(2),.recent-row > span:nth-child(2) { display: none; }
}

/* ========================================================================== 
   SHEBE BUSINESS OS — PREMIUM SYSTEM V3
   The dashboard uses a calm, spacious enterprise interface inspired by the
   supplied reference: white workspace, compact top navigation, layered cards,
   clear hierarchy and no oversized admin sidebar.
   ========================================================================== */
:root {
  --bg: #f4f6f8;
  --surface: #fff;
  --surface-2: #f8fafb;
  --ink: #10161d;
  --muted: #687481;
  --subtle: #98a2ad;
  --line: #e4e8ec;
  --line-strong: #d4dbe1;
  --cyan: #46c6df;
  --blue: #2e77ad;
  --purple: #7665ca;
  --green: #28a875;
  --red: #c74655;
  --amber: #b67a1e;
  --shadow: 0 8px 28px rgba(19, 31, 43, .055);
  --shadow-hover: 0 14px 38px rgba(19, 31, 43, .095);
  --shadow-lg: 0 24px 70px rgba(19, 31, 43, .16);
  --radius: 18px;
}

body { font-size: 14px; background: var(--bg); }
.site-header { height: 76px; }
.header-inner,.workspace-shell { width: min(1260px, calc(100% - 48px)); }
.brand-lockup { flex-basis: 190px; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 19px; }
.brand-copy strong { font-size: 13px; letter-spacing: .17em; }
.brand-copy small { font-size: 8px; }
.top-nav { gap: 3px; }
.top-nav-link,.more-menu summary { min-height: 40px; padding: 9px 12px; font-size: 12px; font-weight: 650; }
.nav-icon { width: 15px; height: 15px; }
.header-actions { gap: 9px; }
.icon-button,.mobile-menu { width: 39px; height: 39px; border-radius: 11px; }
.profile { position: relative; gap: 9px; padding: 4px 6px 4px 9px; margin-left: 1px; border-radius: 12px; cursor: pointer; }
.profile:hover { background: var(--surface-2); }
.profile-avatar { width: 39px; height: 39px; border-radius: 12px; background: #eef2f5; font-size: 11px; }
.profile-text strong { font-size: 11px; }
.profile-text small { font-size: 8px; }
.profile-chevron { color: var(--subtle); font-size: 15px; margin-left: 2px; }
.profile-menu { position: relative; }
.profile-menu summary { list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-panel { position: absolute; z-index: 80; top: 50px; right: 0; width: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.profile-panel-head { display:flex; align-items:center; gap:10px; padding: 10px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.profile-panel-head .large { width: 42px; height: 42px; flex: 0 0 auto; }
.profile-panel-head strong { display:block; color:var(--ink); font-size:12px; }
.profile-panel-head small { display:block; margin-top:4px; color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; max-width:175px; }
.profile-panel > a { display:flex; align-items:center; min-height:40px; padding: 0 11px; border-radius:10px; color:var(--muted); font-size:11px; font-weight:600; }
.profile-panel > a:hover { color:var(--ink); background:var(--surface-2); }
.profile-panel .logout-link { color:var(--red); margin-top:3px; border-top:1px solid var(--line); border-radius:0 0 10px 10px; }
.workspace-bar { height: 64px; }
.breadcrumb { font-size: 13px; }
.workspace-status { font-size: 10px; }
.dashboard-intro { padding: 29px 31px 27px; border-radius: 20px; }
.section-kicker { font-size: 9px; letter-spacing: .16em; }
.dashboard-intro h1 { font-size: 34px; }
.dashboard-intro p { font-size: 12px; }
.primary-button,.soft-button,.danger-button { min-height: 40px; padding: 10px 15px; border-radius: 11px; font-size: 11px; }
.metric-grid { gap: 15px; margin-top: 15px; }
.metric-card { min-height: 174px; padding: 17px 18px; border-radius: 17px; }
.metric-icon { width: 33px; height: 33px; border-radius: 10px; font-size: 13px; }
.metric-label { font-size: 10px; }
.metric-value { margin-top: 17px; font-size: 31px; }
.metric-currency { font-size: 25px; }
.trend { font-size: 9px; padding: 5px 7px; }
.metric-period { font-size: 9px; }
.sparkline { right: 17px; bottom: 17px; height: 42px; gap: 4px; }
.sparkline i { width: 4px; }
.analytics-grid { gap: 15px; margin-top: 15px; }
.dashboard-card { border-radius: 17px; }
.chart-card,.growth-card,.donut-card,.workflow-card,.command-card,.recent-card,.activity-card { padding: 18px 19px; }
.card-heading h2 { font-size: 17px; }
.legend { font-size: 9px; }
.chart-shell { height: 235px; }
.chart-y,.chart-x,.growth-labels { font-size: 9px; }
.mini-stats { font-size: 9px; }
.mini-stats b { font-size: 11px; }
.donut { width: 154px; height: 154px; }
.donut-hole { width: 90px; height: 90px; }
.donut-hole strong { font-size: 22px; }
.donut-hole span,.donut-legend span { font-size: 9px; }
.workflow strong,.recent-row strong { font-size: 10px; }
.workflow span,.workflow > b,.recent-row,.recent-head,.activity-item small,.activity-item code { font-size: 9px; }
.command-card p { font-size: 10px; }
.command-box textarea { font-size: 10px; }
.command-box > div { font-size: 9px; }
.command-box .primary-button { font-size: 9px; }
.status-pill { font-size: 9px; }
.activity-item strong { font-size: 10px; }
.module-heading h1 { font-size: 31px; }
.module-heading p { font-size: 12px; }
.entity-form label { font-size: 10px; }
.entity-form input,.entity-form select,.entity-form textarea,.inline-form input { padding: 11px 12px; font-size: 12px; }
.table-wrap table { font-size: 11px; }
th { font-size: 9px; } td { font-size: 11px; }

/* Auth — full product experience, not a bare login form. */
.auth-page { min-height:100vh; margin:0; color:var(--ink); background:#f3f6f8; font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
.auth-shell { min-height:100vh; display:grid; grid-template-columns:minmax(420px, .9fr) minmax(500px, 1.1fr); }
.auth-visual { position:relative; overflow:hidden; display:flex; flex-direction:column; padding:48px 58px; color:#fff; background:radial-gradient(circle at 82% 14%, rgba(72,200,224,.32), transparent 29%),linear-gradient(145deg,#101820 0%,#16232c 54%,#0b1117 100%); }
.auth-visual::before,.auth-visual::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.09); border-radius:50%; pointer-events:none; }
.auth-visual::before { width:560px; height:560px; right:-300px; top:-250px; }
.auth-visual::after { width:370px; height:370px; left:-260px; bottom:-230px; }
.auth-brand { position:relative; z-index:1; display:flex; align-items:center; gap:12px; width:max-content; color:#fff; }
.auth-brand strong { display:block; font-size:14px; letter-spacing:.18em; }
.auth-brand small { display:block; margin-top:3px; color:#98aab6; font-size:8px; font-weight:800; letter-spacing:.2em; }
.auth-visual-copy { position:relative; z-index:1; max-width:570px; margin:auto 0; }
.eyebrow { display:inline-flex; color:#8997a2; font-size:10px; font-weight:800; letter-spacing:.18em; }
.auth-visual .eyebrow { color:#69d3e6; }
.auth-visual-copy h1 { margin:18px 0 18px; font-size:clamp(42px,5vw,68px); line-height:.98; letter-spacing:-.065em; }
.auth-visual-copy h1 em { color:#65d0e3; font-style:normal; }
.auth-visual-copy p { max-width:510px; margin:0; color:#aab7c0; font-size:14px; line-height:1.8; }
.visual-stats { display:flex; gap:34px; margin-top:42px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); }
.visual-stats b { display:block; font-size:18px; }
.visual-stats small { display:block; margin-top:5px; color:#8796a1; font-size:9px; text-transform:uppercase; letter-spacing:.12em; }
.auth-visual-footer { position:relative; z-index:1; color:#6f808c; font-size:9px; }
.auth-panel { display:grid; place-items:center; padding:48px; background:rgba(255,255,255,.96); }
.auth-panel-inner { width:min(440px,100%); }
.auth-panel h2 { margin:12px 0 8px; font-size:34px; line-height:1.06; letter-spacing:-.055em; }
.auth-subtitle { margin:0 0 25px; color:var(--muted); font-size:12px; line-height:1.7; }
.auth-form { display:grid; gap:17px; }
.auth-form label { display:block; color:#4d5964; font-size:11px; font-weight:700; }
.auth-form input { width:100%; margin-top:8px; min-height:47px; padding:12px 14px; border:1px solid #d9e0e5; border-radius:12px; outline:0; color:var(--ink); background:#fff; font-size:13px; transition:border .18s,box-shadow .18s; }
.auth-form input:focus { border-color:#6ccfe0; box-shadow:0 0 0 4px rgba(70,198,223,.11); }
.password-field { position:relative; }
.password-field input { padding-right:68px; }
.password-field button { position:absolute; right:8px; bottom:7px; min-height:33px; padding:0 9px; border:0; border-radius:8px; color:#687481; background:#f3f5f7; font-size:10px; font-weight:700; }
.auth-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:-4px; }
.auth-row > a { color:#287fa0; font-size:11px; font-weight:700; }
.check-row { display:flex!important; align-items:center; gap:7px; margin:0!important; color:#788490!important; font-size:10px!important; font-weight:500!important; }
.check-row input { width:15px!important; min-height:15px!important; margin:0!important; }
.auth-primary { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:50px; padding:13px 18px; border:0; border-radius:12px; color:#fff; background:#111920; box-shadow:0 10px 24px rgba(17,25,32,.15); font-size:12px; font-weight:800; cursor:pointer; transition:transform .18s,box-shadow .18s; }
.auth-primary:hover { transform:translateY(-1px); box-shadow:0 14px 28px rgba(17,25,32,.2); }
.auth-primary span { font-size:16px; }
.auth-secondary { display:flex; align-items:center; justify-content:center; width:100%; min-height:47px; margin-top:11px; border:1px solid #dbe1e6; border-radius:12px; color:#27333d; background:#fff; font-size:11px; font-weight:750; }
.auth-secondary:hover { background:#f8fafb; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:22px 0 10px; color:#a0a9b1; font-size:10px; }
.auth-divider::before,.auth-divider::after { content:""; height:1px; flex:1; background:#e7eaed; }
.auth-security { display:flex; justify-content:center; gap:6px; margin:22px 0 0; color:#98a2ab; font-size:9px; }
.auth-security span { color:#39ad8a; }
.alert { border:1px solid transparent; border-radius:11px; padding:11px 13px; margin:0 0 17px; font-size:11px; line-height:1.5; }
.alert.error { color:#ad3d4d; background:#fff1f3; border-color:#f2d4d9; }
.alert.success { color:#1f8566; background:#ecf9f3; border-color:#d0eddf; }
.mobile-auth-brand { display:none; }
.single-auth { grid-template-columns:1fr; background:radial-gradient(circle at 50% 0,#fff 0,#f3f6f8 68%); }
.auth-panel-centered { min-height:100vh; }
.auth-panel-centered .auth-panel-inner { width:min(480px,100%); padding:35px 38px; border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:var(--shadow-lg); }
.auth-brand.dark-brand { color:var(--ink); margin-bottom:30px; }
.auth-brand.dark-brand .brand-mark { box-shadow:none; }
.link-button { text-decoration:none; }
.account-page { padding-bottom:20px; }
.account-alert { margin-bottom:15px; }
.account-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.account-card { padding:22px; }
.account-card-head { display:flex; align-items:center; gap:14px; padding-bottom:19px; margin-bottom:19px; border-bottom:1px solid var(--line); }
.account-card-head.simple { align-items:flex-start; }
.account-card-head h2 { margin:5px 0 4px; font-size:18px; }
.account-card-head p { margin:0; color:var(--muted); font-size:11px; }
.account-avatar { width:50px; height:50px; flex:0 0 auto; display:grid; place-items:center; border-radius:15px; color:#fff; background:linear-gradient(145deg,#2a8db6,#164e74); font-weight:800; }
.security-icon { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border-radius:13px; color:#1f8a68; background:#eaf8f2; font-size:20px; }
.account-form { grid-template-columns:1fr 1fr; }
.account-form.single-column { grid-template-columns:1fr; }
.account-form .wide { grid-column:1/-1; }
.field-note { color:#a0a8b0; font-weight:500; }
.account-access { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:15px; }
.account-access h2 { margin:6px 0 4px; font-size:17px; }
.account-access p { margin:0; color:var(--muted); font-size:11px; }
.account-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* Responsive navigation and auth */
@media (max-width: 1040px) {
  .top-nav-link,.more-menu summary { padding-inline:9px; font-size:11px; }
  .profile-text { display:none; }
  .profile-chevron { display:none; }
  .analytics-grid { grid-template-columns:1.4fr 1fr; }
  .donut-card { grid-column:span 2; }
  .account-grid { grid-template-columns:1fr; }
}
@media (max-width: 820px) {
  .site-header { height:70px; }
  .header-inner,.workspace-shell { width:min(100% - 28px,760px); }
  .top-nav { display:none; }
  .mobile-menu { display:grid; }
  .menu-open .top-nav { position:absolute; left:14px; right:14px; top:64px; display:grid; grid-template-columns:repeat(2,1fr); padding:10px; background:var(--surface); border:1px solid var(--line); border-radius:15px; box-shadow:var(--shadow-lg); }
  .menu-open .top-nav-link,.menu-open .more-menu summary { min-height:43px; display:flex; }
  .menu-open .more-menu { grid-column:1/-1; }
  .menu-open .more-panel { position:static; width:100%; margin-top:5px; box-shadow:none; border:0; background:var(--surface-2); }
  .dashboard-intro { display:block; }
  .welcome-actions { margin-top:18px; }
  .analytics-grid { grid-template-columns:1fr; }
  .donut-card { grid-column:auto; }
  .bottom-grid { grid-template-columns:1fr; }
  .recent-card { grid-column:auto; }
  .auth-shell { grid-template-columns:1fr; }
  .auth-visual { display:none; }
  .auth-panel { min-height:100vh; padding:24px; }
  .mobile-auth-brand { display:flex; align-items:center; gap:10px; margin-bottom:38px; }
  .mobile-auth-brand strong { letter-spacing:.16em; font-size:13px; }
  .auth-panel-centered .auth-panel-inner { padding:28px; }
}
@media (max-width: 560px) {
  .header-inner,.workspace-shell { width:calc(100% - 20px); }
  .brand-copy { display:none; }
  .profile-menu { display:none; }
  .workspace-bar { height:54px; }
  .workspace-status { display:none; }
  .dashboard-intro { padding:22px; }
  .dashboard-intro h1 { font-size:28px; }
  .dashboard-intro p { font-size:11px; line-height:1.6; }
  .welcome-actions { display:grid; grid-template-columns:1fr; }
  .metric-grid { grid-template-columns:1fr; }
  .metric-card { min-height:160px; }
  .auth-panel { padding:16px; }
  .auth-panel h2 { font-size:29px; }
  .auth-panel-centered .auth-panel-inner { padding:24px 19px; border-radius:18px; }
  .account-access { display:block; }
  .account-actions { margin-top:15px; }
  .account-form { grid-template-columns:1fr; }
  .account-form .wide { grid-column:auto; }
}
/* SHEBE BUSINESS OS — Premium product UI system V4 */
:root{
  --bg:#f3f5f8;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --surface-3:#eef2f6;
  --ink:#111827;
  --ink-2:#263242;
  --muted:#64748b;
  --subtle:#94a3b8;
  --line:#e2e8f0;
  --line-strong:#cfd8e3;
  --accent:#e11d3f;
  --accent-dark:#b91531;
  --cyan:#18b8d4;
  --cyan-soft:#e8f9fc;
  --blue:#2563eb;
  --purple:#7257d8;
  --green:#159b70;
  --red:#d7354b;
  --amber:#b7791f;
  --shadow:0 1px 2px rgba(15,23,42,.03),0 10px 30px rgba(15,23,42,.055);
  --shadow-hover:0 2px 4px rgba(15,23,42,.04),0 18px 44px rgba(15,23,42,.10);
  --shadow-lg:0 25px 70px rgba(15,23,42,.16);
}
:root.dark{
  --bg:#0b1016; --surface:#111821; --surface-2:#151e28; --surface-3:#1a2530;
  --ink:#f8fafc; --ink-2:#dbe4ed; --muted:#9aa9b8; --subtle:#6f8090;
  --line:#253241; --line-strong:#344456; --cyan-soft:#102a31;
  --shadow:0 12px 30px rgba(0,0,0,.22); --shadow-hover:0 20px 48px rgba(0,0,0,.30); --shadow-lg:0 28px 80px rgba(0,0,0,.45);
}
html{font-size:16px}
body{font-family:"Plus Jakarta Sans","Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:14px;letter-spacing:-.012em}
body::before{height:2px;background:linear-gradient(90deg,var(--accent),#ff5570,var(--cyan),var(--accent));opacity:.95}
.site-header{height:82px;background:rgba(255,255,255,.90);border-bottom:1px solid rgba(226,232,240,.9);box-shadow:0 5px 24px rgba(15,23,42,.035);backdrop-filter:blur(22px)}
:root.dark .site-header{background:rgba(17,24,33,.92)}
.header-inner,.workspace-shell{width:min(1420px,calc(100% - 64px))}
.header-inner{gap:28px}
.brand-lockup{flex:0 0 205px;gap:13px}
.brand-mark{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#f02d4b,#c80e2b);font-size:21px;box-shadow:0 10px 24px rgba(225,29,63,.22)}
.brand-copy strong{font-size:14px;letter-spacing:.21em;font-weight:850}.brand-copy small{font-size:8px;letter-spacing:.26em;color:#8997a6}
.top-nav{gap:5px}.top-nav-link,.more-menu summary{min-height:44px;padding:10px 14px;border-radius:12px;font-size:13px;font-weight:700;color:#68778a;transition:.18s ease}
.top-nav-link:hover,.top-nav-link.active,.more-menu summary:hover,.more-menu[open] summary{color:var(--ink);background:var(--surface-2);box-shadow:0 5px 16px rgba(15,23,42,.055)}
.top-nav-link.active{box-shadow:inset 0 0 0 1px var(--line),0 5px 16px rgba(15,23,42,.04)}
.nav-icon{width:16px;height:16px}.icon-grid::before{transform:scale(.62)}
.header-actions{gap:10px}.icon-button,.mobile-menu{width:42px;height:42px;border-radius:13px;background:var(--surface);border-color:var(--line);color:#657589}
.icon-button:hover,.mobile-menu:hover{color:var(--ink);border-color:var(--line-strong);box-shadow:var(--shadow)}
.profile{gap:10px;padding:5px 8px 5px 10px;border-radius:14px}.profile-avatar{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#f0f3f7,#e5ebf1);color:#1f2937;font-size:12px}.profile-text strong{font-size:12px;font-weight:800}.profile-text small{font-size:9px;color:#8b98a7}.profile-chevron{font-size:14px}
.more-panel{top:52px;width:245px;padding:9px;border-radius:17px}.more-panel a{min-height:41px;padding:0 12px;border-radius:10px;font-size:11px;font-weight:650}.more-panel a:hover,.more-panel a.active{background:var(--surface-2)}
.profile-panel{top:55px;width:290px;padding:10px;border-radius:18px}.profile-panel > a{min-height:43px;font-size:11px}.profile-panel-head{padding:12px;margin-bottom:7px}.profile-panel-head strong{font-size:13px}.profile-panel-head small{font-size:10px}
.workspace-bar{height:72px}.breadcrumb{font-size:14px;gap:9px}.breadcrumb span{color:#7c8b9c}.workspace-status{font-size:11px;gap:9px}.workspace-status i{width:7px;height:7px}.workspace-status span{padding-left:12px}
.workspace-content{padding-top:7px}.dashboard-frame{padding-bottom:10px}
.dashboard-intro{min-height:190px;padding:35px 42px 33px;border:1px solid #dfe6ed;border-radius:24px;box-shadow:var(--shadow);background:linear-gradient(135deg,#fff 0%,#fff 65%,#f8fbfd 100%)}
:root.dark .dashboard-intro{background:linear-gradient(135deg,#111821,#131d27)}
.dashboard-intro::after{width:410px;height:410px;right:-230px;top:-300px;border:1px solid #e6edf3;box-shadow:-40px 40px 0 -39px #e6edf3}
.dashboard-intro::before{content:"";position:absolute;right:120px;bottom:-90px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(24,184,212,.09),transparent 68%)}
.section-kicker{font-size:10px;letter-spacing:.19em;color:#8a99a9;font-weight:850}.dashboard-intro h1{margin:11px 0 8px;font-size:40px;line-height:1.05;letter-spacing:-.055em;font-weight:850}.dashboard-intro p{font-size:13px;line-height:1.65;color:#6c7b8c}
.welcome-actions{gap:10px}.primary-button,.soft-button,.danger-button{min-height:46px;padding:11px 17px;border-radius:13px;font-size:12px;font-weight:800}.primary-button{background:#111820;box-shadow:0 10px 22px rgba(17,24,32,.16)}.primary-button:hover{background:#202b36;transform:translateY(-1px);box-shadow:0 14px 26px rgba(17,24,32,.20)}.soft-button{background:#fff;border-color:#d6dfe8}.soft-button:hover{background:#f8fafc}
.metric-grid{gap:17px;margin-top:17px}.metric-card{min-height:184px;padding:20px 21px;border-radius:20px;border-color:#e0e7ee;box-shadow:var(--shadow);transition:.2s ease}.metric-card:hover,.dashboard-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}
.metric-top{gap:10px}.metric-icon{width:38px;height:38px;border-radius:12px;background:#f0f4f7;color:#4f6071;font-size:14px}.metric-label{font-size:11px;font-weight:750;color:#627287}.metric-value{margin-top:20px;font-size:36px;font-weight:820;letter-spacing:-.06em}.metric-currency{font-size:29px}.metric-bottom{margin-top:13px}.trend{padding:6px 8px;border-radius:8px;font-size:9px}.metric-period{font-size:9px}.sparkline{right:20px;bottom:19px;height:50px;gap:5px}.sparkline i{width:5px;border-radius:5px 5px 1px 1px}
.analytics-grid{gap:17px;margin-top:17px}.dashboard-card{border-radius:20px;border-color:#e0e7ee;box-shadow:var(--shadow)}.chart-card,.growth-card,.donut-card,.workflow-card,.command-card,.recent-card,.activity-card{padding:22px 22px}.card-heading h2{font-size:20px;font-weight:800;letter-spacing:-.035em}.card-link{font-size:10px;font-weight:750;color:#7d8b9b}.legend{font-size:10px}.chart-shell{height:260px;margin-top:16px}.chart-y,.chart-x,.growth-labels{font-size:9px;color:#8c9aaa}.chart-grid-lines line,.growth-grid line{stroke:#e8edf2}.chart-line{stroke:#1db7d2;stroke-width:3.5}.chart-point{stroke:#1db7d2}.growth-card{padding-bottom:20px}.growth-visual{height:190px;margin-top:15px}.mini-stats{padding-top:12px;font-size:10px}.mini-stats b{font-size:12px}.donut-wrap{padding:20px 0 14px}.donut{width:176px;height:176px}.donut-hole{width:108px;height:108px}.donut-hole strong{font-size:26px}.donut-hole span,.donut-legend span{font-size:10px}.donut-legend{gap:9px;padding-top:12px}.donut-legend b{font-size:10px}
.bottom-grid{gap:17px;margin-top:17px}.workflow-card,.command-card,.recent-card,.activity-card{padding:22px}.workflow-list{margin-top:14px}.workflow{padding:12px 0 14px}.workflow strong,.recent-row strong{font-size:11px}.workflow span,.workflow>b,.recent-row,.recent-head,.activity-item small,.activity-item code{font-size:10px}.workflow-bar{height:7px;margin-top:10px;background:#e9eef3}.workflow-bar i{background:linear-gradient(90deg,var(--cyan),#6f65d9)}
.command-card p{font-size:11px;line-height:1.7}.command-box{padding:11px;border-radius:14px}.command-box textarea{min-height:72px;font-size:11px}.command-box>div{font-size:9px}.command-box .primary-button{min-height:36px;font-size:9px}.live-badge{padding:6px 9px;font-size:8px}
.recent-head,.recent-row{grid-template-columns:1.4fr .8fr .65fr;gap:12px}.recent-head{font-weight:750}.status-pill{font-size:9px;padding:5px 8px}.activity-list{gap:0}.activity-item{padding:14px 0;border-bottom:1px solid var(--line)}.activity-item:last-child{border-bottom:0}.activity-item strong{font-size:11px}
/* More deliberate auth/product typography */
.auth-page{font-family:"Plus Jakarta Sans","Inter",ui-sans-serif,system-ui,sans-serif;background:#f2f5f8}.auth-panel{background:rgba(255,255,255,.98)}.auth-panel h2{font-size:38px;font-weight:850}.auth-subtitle{font-size:13px}.auth-form{gap:18px}.auth-form label{font-size:11px}.auth-form input{min-height:52px;border-radius:13px;font-size:13px}.auth-primary{min-height:53px;border-radius:13px;font-size:12px}.auth-secondary{min-height:50px;border-radius:13px}
/* Make every content table/form feel like one product */
.module-heading h1{font-size:34px;font-weight:850;letter-spacing:-.05em}.module-heading p{font-size:13px;color:var(--muted)}.entity-form label{font-size:11px;font-weight:750;color:#556579}.entity-form input,.entity-form select,.entity-form textarea,.inline-form input{min-height:46px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:12px}.table-wrap{border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:auto}.table-wrap table{font-size:12px}.table-wrap th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8290a0;background:#f7f9fb}.table-wrap td{font-size:12px;color:var(--ink-2)}
:root.dark .table-wrap th{background:#151e28}.auth-page :is(input,select,textarea){background:#fff}
@media (max-width:1200px){.header-inner,.workspace-shell{width:min(100% - 40px,1120px)}.brand-lockup{flex-basis:170px}.top-nav-link,.more-menu summary{padding-inline:10px}.top-nav-link{font-size:11px}.profile-text{display:none}.analytics-grid{grid-template-columns:1.45fr 1fr}.donut-card{grid-column:span 2}}
@media (max-width:900px){.site-header{height:72px}.header-inner,.workspace-shell{width:calc(100% - 28px)}.top-nav{display:none}.mobile-menu{display:grid}.menu-open .top-nav{position:absolute;left:14px;right:14px;top:62px;display:grid;grid-template-columns:repeat(2,1fr);padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg)}.menu-open .top-nav-link,.menu-open .more-menu summary{display:flex;min-height:46px}.menu-open .more-menu{grid-column:1/-1}.menu-open .more-panel{position:static;width:100%;margin-top:5px;box-shadow:none}.dashboard-intro{padding:30px}.dashboard-intro h1{font-size:34px}.analytics-grid,.bottom-grid{grid-template-columns:1fr}.donut-card,.recent-card{grid-column:auto}.auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{min-height:100vh;padding:28px}}
@media (max-width:600px){.header-inner,.workspace-shell{width:calc(100% - 20px)}.brand-copy{display:none}.profile-menu{display:none}.workspace-bar{height:56px}.workspace-status{display:none}.dashboard-intro{padding:25px 22px;min-height:0}.dashboard-intro h1{font-size:29px}.dashboard-intro p{font-size:11px}.welcome-actions{display:grid;grid-template-columns:1fr; margin-top:17px}.metric-grid{grid-template-columns:1fr}.metric-card{min-height:165px}.metric-value{font-size:32px}.chart-card,.growth-card,.donut-card,.workflow-card,.command-card,.recent-card,.activity-card{padding:18px}.card-heading h2{font-size:18px}.chart-shell{height:215px}.auth-panel{padding:16px}.auth-panel h2{font-size:31px}.auth-panel-centered .auth-panel-inner{padding:25px 20px}}
/* V4 navigation icons */
.nav-svg{width:16px;height:16px;display:block;flex:0 0 auto}.more-menu .nav-svg{width:17px;height:17px}


/* ==========================================================================
   SHEBE PREMIUM MOTION SYSTEM — V5
   Purpose: distinctive product-grade visual language, motion and data emphasis.
   ========================================================================== */
:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --ink: #0b1118;
  --muted: #667384;
  --subtle: #95a0ad;
  --line: #e1e7ec;
  --line-strong: #cfd8e0;
  --brand: #ef233c;
  --brand-deep: #c90f2a;
  --cyan: #18bfdc;
  --cyan-deep: #087f9e;
  --blue: #3569ff;
  --purple: #7759e8;
  --green: #10a978;
  --amber: #e5a32a;
  --shadow: 0 14px 34px rgba(18, 31, 44, .065);
  --shadow-hover: 0 24px 58px rgba(18, 31, 44, .13);
  --shadow-lg: 0 30px 80px rgba(18, 31, 44, .18);
  --radius: 20px;
}
:root.dark {
  --bg: #0b1016;
  --surface: #121922;
  --surface-2: #17212b;
  --ink: #f6f8fb;
  --muted: #9ca9b7;
  --subtle: #6f7c89;
  --line: #26323e;
  --line-strong: #354352;
  --shadow: 0 16px 40px rgba(0,0,0,.24);
  --shadow-hover: 0 26px 65px rgba(0,0,0,.36);
  --shadow-lg: 0 35px 90px rgba(0,0,0,.5);
}
html { font-size: 16px; }
body {
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(24,191,220,.07), transparent 27rem),
    radial-gradient(circle at 91% 18%, rgba(119,89,232,.06), transparent 30rem),
    var(--bg);
  letter-spacing: -.012em;
}
body::before { height: 2px; background: linear-gradient(90deg, var(--brand), var(--cyan), var(--purple), var(--brand)); background-size: 220% 100%; animation: shebeGradient 7s linear infinite; }
@keyframes shebeGradient { to { background-position: 220% 0; } }

.app-page { position: relative; overflow: clip; }
.app-page::before {
  content: ""; position: fixed; inset: 78px 0 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(18,31,44,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(18,31,44,.025) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
}
:root.dark .app-page::before { opacity: .2; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); }

.site-header { height: 84px; background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(214,222,229,.9); box-shadow: 0 6px 28px rgba(18,31,44,.035); }
:root.dark .site-header { background: rgba(18,25,34,.86); }
.header-inner { width: min(1440px, calc(100% - 56px)); gap: 24px; }
.brand-lockup { flex-basis: 210px; gap: 13px; }
.brand-mark { width: 46px; height: 46px; padding: 7px; border-radius: 15px; background: #fff; box-shadow: 0 10px 26px rgba(239,35,60,.18); border: 1px solid rgba(239,35,60,.12); overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display:block; object-fit:contain; }
.brand-copy strong { font-size: 14px; letter-spacing: .19em; }
.brand-copy small { font-size: 8px; color: #8895a4; letter-spacing: .25em; }
.top-nav { gap: 5px; }
.top-nav-link, .more-menu summary { min-height: 46px; padding: 10px 15px; border-radius: 13px; font-size: 13px; font-weight: 750; color: #637083; transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease; }
.top-nav-link:hover, .more-menu summary:hover, .more-menu[open] summary { color: var(--ink); background: var(--surface); box-shadow: 0 10px 26px rgba(18,31,44,.08); transform: translateY(-1px); }
.top-nav-link.active { color: var(--ink); background: linear-gradient(180deg, #fff, #f6f8fa); box-shadow: inset 0 0 0 1px var(--line), 0 10px 28px rgba(18,31,44,.08); }
.nav-svg { width: 17px; height: 17px; stroke-width: 1.9; }
.header-actions { gap: 8px; }
.icon-button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); box-shadow: 0 7px 20px rgba(18,31,44,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(18,31,44,.1); }
.profile { gap: 10px; padding: 5px 8px 5px 9px; border-radius: 14px; }
.profile-avatar { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #f3f6f8, #e5ebef); color: #1a2430; font-size: 12px; font-weight: 850; }
.profile-text strong { font-size: 12px; font-weight: 800; }
.profile-text small { font-size: 9px; }
.profile-chevron { font-size: 17px; }

.workspace-shell { width: min(1440px, calc(100% - 56px)); padding-bottom: 64px; position: relative; z-index: 1; }
.workspace-bar { height: 72px; }
.breadcrumb { font-size: 15px; color: #758395; }
.breadcrumb b { margin: 0 9px; color: #b1bac4; }
.breadcrumb strong { color: var(--ink); font-weight: 800; }
.workspace-status { font-size: 11px; }
.workspace-status i { width: 8px; height: 8px; background: #16a777; box-shadow: 0 0 0 5px rgba(22,167,119,.09); }
.workspace-content { padding-top: 8px; }

.hero-panel {
  position: relative; overflow: hidden; min-height: 190px; padding: 38px 42px; border: 1px solid rgba(210,219,227,.9); border-radius: 26px;
  background: linear-gradient(115deg, #fff 0%, #fff 58%, #f6fbfd 100%); box-shadow: var(--shadow); isolation: isolate;
}
.hero-panel::before { content:""; position:absolute; width:280px; height:280px; right:-85px; top:-135px; border: 42px solid rgba(24,191,220,.09); border-radius:50%; box-shadow: 0 0 0 1px rgba(119,89,232,.04); }
.hero-panel::after { content:""; position:absolute; width:190px; height:190px; right:85px; bottom:-150px; border: 32px solid rgba(119,89,232,.055); border-radius:50%; }
.hero-panel > * { position: relative; z-index: 2; }
.hero-panel .section-kicker { color: #8b97a5; font-size: 10px; letter-spacing: .19em; }
.hero-panel h1 { font-size: clamp(32px, 3vw, 48px); line-height: 1.03; letter-spacing: -.055em; margin: 13px 0 10px; }
.hero-panel p { max-width: 720px; font-size: 14px; line-height: 1.7; color: #6c7b8c; }
.hero-actions { gap: 10px; }
.soft-button, .primary-button { min-height: 48px; padding: 12px 17px; border-radius: 13px; font-size: 12px; font-weight: 800; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.soft-button { background: rgba(255,255,255,.9); border: 1px solid var(--line-strong); box-shadow: 0 8px 20px rgba(18,31,44,.045); }
.primary-button { background: linear-gradient(135deg, #12181e, #05090d); box-shadow: 0 12px 28px rgba(5,9,13,.2); }
.primary-button:hover, .soft-button:hover { transform: translateY(-2px); }

.metrics-grid { gap: 16px; margin-top: 16px; }
.metric-card, .dashboard-card { border: 1px solid rgba(216,224,231,.95); box-shadow: var(--shadow); background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(252,253,254,.99)); }
:root.dark .metric-card, :root.dark .dashboard-card, :root.dark .hero-panel { background: linear-gradient(180deg, rgba(18,25,34,.98), rgba(16,23,31,.98)); border-color: rgba(52,66,81,.9); }
.metric-card { position: relative; overflow: hidden; min-height: 184px; padding: 20px 21px; border-radius: 21px; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease; animation: cardIn .72s both cubic-bezier(.2,.8,.2,1); }
.metric-card::before { content:""; position:absolute; inset:0 0 auto; height:3px; background: linear-gradient(90deg, var(--cyan), var(--purple)); transform: scaleX(.25); transform-origin:left; transition: transform .35s ease; }
.metric-card:nth-child(2)::before { background: linear-gradient(90deg, #3569ff, #18bfdc); }
.metric-card:nth-child(3)::before { background: linear-gradient(90deg, #7759e8, #b16cff); }
.metric-card:nth-child(4)::before { background: linear-gradient(90deg, #1b577f, #18bfdc); }
.metric-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #cbd6df; }
.metric-card:hover::before { transform: scaleX(1); }
.metric-icon { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg,#f2f6f8,#e7edf1); box-shadow: inset 0 0 0 1px rgba(18,31,44,.03); }
.metric-label { font-size: 11px; font-weight: 750; color: #617084; }
.metric-value { font-size: clamp(29px, 2.5vw, 38px); letter-spacing: -.055em; font-weight: 850; }
.metric-currency { font-size: clamp(27px, 2.3vw, 35px); }
.trend { padding: 6px 9px; border-radius: 8px; font-size: 9px; font-weight: 800; }
.trend.positive { color: #078967; background: #e7f8f2; }
.trend.negative { color: #c54a4a; background: #fff0f0; }
.metric-period { font-size: 9px; color: #8793a1; }
.sparkline { right: 19px; bottom: 18px; height: 48px; gap: 5px; }
.sparkline i { width: 5px; background: linear-gradient(to top, #23b7d6, #8be4f1); animation: sparkPulse 1.9s ease-in-out infinite alternate; transform-origin: bottom; }
.sparkline i:nth-child(2){animation-delay:.12s}.sparkline i:nth-child(3){animation-delay:.24s}.sparkline i:nth-child(4){animation-delay:.36s}.sparkline i:nth-child(5){animation-delay:.48s}.sparkline i:nth-child(6){animation-delay:.60s}.sparkline i:nth-child(7){animation-delay:.72s}.sparkline i:nth-child(8){animation-delay:.84s}
@keyframes sparkPulse { from { transform: scaleY(.7); opacity:.62; } to { transform: scaleY(1.08); opacity:1; } }

.analytics-grid { gap: 16px; margin-top: 16px; grid-template-columns: minmax(0,1.62fr) minmax(270px,.9fr) minmax(250px,.82fr); }
.dashboard-card { border-radius: 21px; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease; animation: cardIn .72s both cubic-bezier(.2,.8,.2,1); }
.dashboard-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-heading h2 { font-size: 19px; letter-spacing: -.04em; font-weight: 820; }
.section-kicker { font-size: 9px; color: #8794a3; letter-spacing: .2em; }
.chart-card, .growth-card, .donut-card, .workflow-card, .command-card, .recent-card, .activity-card { padding: 21px 22px; }
.chart-shell { height: 265px; margin-top: 14px; }
.chart-line { stroke: url(#revenueStroke); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: drawChart 1.8s .25s ease forwards; }
.chart-area { opacity: 0; animation: areaIn 1.3s .55s ease forwards; }
.chart-point { opacity: 0; animation: pointIn .35s .9s ease forwards; }
.chart-point:nth-of-type(2){animation-delay:1s}.chart-point:nth-of-type(3){animation-delay:1.08s}.chart-point:nth-of-type(4){animation-delay:1.16s}.chart-point:nth-of-type(5){animation-delay:1.24s}.chart-point:nth-of-type(6){animation-delay:1.32s}.chart-point:nth-of-type(7){animation-delay:1.40s}.chart-point:nth-of-type(8){animation-delay:1.48s}
@keyframes drawChart { to { stroke-dashoffset: 0; } }
@keyframes areaIn { to { opacity: 1; } }
@keyframes pointIn { from { opacity:0; transform:scale(.5); transform-origin:center; } to { opacity:1; transform:scale(1); } }
.growth-visual svg polyline { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawChart 1.5s .4s ease forwards; }
.donut { animation: donutIn .9s ease both; box-shadow: 0 16px 30px rgba(24,191,220,.12); }
@keyframes donutIn { from { transform: scale(.78) rotate(-30deg); opacity:.2; } to { transform: scale(1) rotate(0); opacity:1; } }

.bottom-grid { gap: 16px; margin-top: 16px; }
.workflow-bar { height: 8px; background: #edf1f4; box-shadow: inset 0 1px 2px rgba(18,31,44,.05); }
.workflow-bar i { background: linear-gradient(90deg, #18bfdc, #3569ff, #7759e8); background-size: 180% 100%; animation: workflowFlow 3s linear infinite; }
@keyframes workflowFlow { to { background-position: 180% 0; } }
.command-box { border-radius: 15px; border: 1px solid #d9e1e7; background: linear-gradient(145deg,#fbfcfd,#f3f7f9); box-shadow: inset 0 1px 0 #fff, 0 10px 25px rgba(18,31,44,.035); }
.command-box:focus-within { border-color: rgba(24,191,220,.55); box-shadow: 0 0 0 4px rgba(24,191,220,.08); }
.live-badge { border: 1px solid #ccefe4; background:#effbf7; color:#078967; border-radius:99px; padding:6px 9px; font-size:9px; font-weight:800; }
.live-badge i { width:6px;height:6px; display:inline-block; margin-right:5px; border-radius:50%; background:#10a978; box-shadow:0 0 0 4px rgba(16,169,120,.12); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 50% { box-shadow:0 0 0 8px rgba(16,169,120,0); } }
.status-pill { font-weight:800; border-radius:8px; padding:5px 8px; }
.activity-dot { background: var(--cyan); box-shadow:0 0 0 5px rgba(24,191,220,.08); animation: dotPulse 2s infinite; }
@keyframes dotPulse { 50% { box-shadow:0 0 0 8px rgba(24,191,220,0); } }

@keyframes cardIn { from { opacity:0; transform: translateY(14px) scale(.985); } to { opacity:1; transform: translateY(0) scale(1); } }
.metric-card:nth-child(1), .analytics-grid > :nth-child(1), .bottom-grid > :nth-child(1) { animation-delay:.03s; }
.metric-card:nth-child(2), .analytics-grid > :nth-child(2), .bottom-grid > :nth-child(2) { animation-delay:.11s; }
.metric-card:nth-child(3), .analytics-grid > :nth-child(3), .bottom-grid > :nth-child(3) { animation-delay:.19s; }
.metric-card:nth-child(4) { animation-delay:.27s; }
.activity-card { animation-delay:.28s; }

/* Data-driven KPI sparklines: bar heights come from database values rendered by PHP. */
.spark-bars { display:flex; align-items:flex-end; justify-content:flex-end; gap:5px; height:100%; }
.spark-bars i { flex:0 0 5px; height:var(--bar-height,5%); min-height:3px; max-height:100%; border-radius:6px 6px 1px 1px; background:linear-gradient(180deg,#ef3340,#14b8d4); transform-origin:bottom; animation:sparkGrow .8s cubic-bezier(.2,.75,.25,1) both; }
.sparkline.blue .spark-bars i { background:linear-gradient(180deg,#14b8d4,#3b82f6); }
.sparkline.purple .spark-bars i { background:linear-gradient(180deg,#6366f1,#8b5cf6); }
.sparkline.dark .spark-bars i { background:linear-gradient(180deg,#111827,#475569); }
@keyframes sparkGrow { from { transform:scaleY(.15); opacity:.35; } to { transform:scaleY(1); opacity:1; } }

/* Stronger chart grid and controls */
.chart-grid-lines line, .growth-grid line { stroke: rgba(118,133,148,.16); stroke-dasharray: 2 6; }
.chart-x, .chart-y, .growth-labels { color: #8c98a6; }
.legend { gap: 14px; }
.legend span { font-size: 10px; font-weight: 650; }
.card-link { font-size: 10px; font-weight: 800; color: #3f6dff; }
.card-link:hover { color: var(--brand); }

/* Premium menu surfaces */
.more-panel, .profile-panel { border: 1px solid rgba(210,219,227,.95); background: rgba(255,255,255,.96); box-shadow: 0 28px 70px rgba(18,31,44,.16); backdrop-filter: blur(18px); }
.more-panel a { min-height: 43px; border-radius: 10px; font-size: 11px; font-weight: 650; }
.more-panel a:hover { background: #f4f7f9; color: var(--ink); }

@media (max-width: 1100px) {
  .header-inner, .workspace-shell { width: min(100% - 32px, 960px); }
  .brand-lockup { flex-basis: 170px; }
  .top-nav-link, .more-menu summary { padding-inline: 10px; font-size: 11px; }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .performance-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-header { height: 72px; }
  .header-inner, .workspace-shell { width: min(100% - 22px, 680px); }
  .brand-lockup { flex: 1 1 auto; }
  .top-nav { display:none; }
  .header-actions .icon-button { display:none; }
  .workspace-bar { height:auto; padding:18px 0 10px; gap:12px; align-items:flex-start; flex-direction:column; }
  .workspace-status { align-self:flex-start; }
  .hero-panel { padding:28px 24px; min-height:0; }
  .hero-panel h1 { font-size:34px; }
  .metrics-grid { grid-template-columns:1fr 1fr; }
  .analytics-grid { grid-template-columns:1fr; }
  .performance-card { grid-column:auto; }
  .bottom-grid { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .header-inner, .workspace-shell { width: calc(100% - 18px); }
  .brand-mark { width:42px;height:42px;border-radius:13px; }
  .brand-copy strong { font-size:12px; }
  .brand-copy small { font-size:7px; }
  .metrics-grid { grid-template-columns:1fr; }
  .metric-card { min-height:170px; }
  .hero-panel h1 { font-size:30px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
}
