/* YourKendra dashboard — matches yourkendra.com design system.
   Light page, white cards, cyan accents, Inter Tight / Instrument Serif italic. */

:root {
  --bg-page: #fdfdff;
  --bg-card: #ffffff;
  --bg-dark: #0b0b18;
  --bg-mid:  #f6f6fb;
  --ink: #0a0a18;
  --ink-muted: #606078;
  --ink-soft: #8a8a9e;
  --k: #00d4e5;
  --k-dim: #00a6b8;
  --k-glow: rgba(0,212,229,0.18);
  --k-glow-hi: rgba(0,212,229,0.4);
  --border-light: rgba(10,10,24,0.07);
  --border-soft: rgba(10,10,24,0.04);
  --border-dark: rgba(255,255,255,0.08);
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 12px rgba(10,10,24,0.04), 0 6px 32px rgba(10,10,24,0.05);
  --shadow-card-hover: 0 4px 24px rgba(10,10,24,0.08), 0 12px 48px rgba(10,10,24,0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "ss03";
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--k-dim); letter-spacing: -0.01em; }

/* === LOGO LOCKUP (matches main site) === */
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--k);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: var(--bg-dark);
  box-shadow: 0 0 24px rgba(0,212,229,0.35), 0 0 56px rgba(0,212,229,0.12);
  position: relative; flex-shrink: 0;
}
.logo-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: var(--k); opacity: 0.2;
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse { 0%,100% { opacity: 0.2; } 50% { opacity: 0.45; } }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-your {
  font-family: 'JetBrains Mono', monospace; font-size: 8px;
  letter-spacing: 4px; color: rgba(0,212,229,0.6); text-transform: uppercase;
}
.logo-kendra.dark {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 26px; color: var(--ink); letter-spacing: -0.01em;
}
.logo-kendra.light {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 26px; color: #fff; text-shadow: 0 0 30px rgba(0,212,229,0.2);
  letter-spacing: -0.01em;
}

/* === APP LAYOUT === */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg-page);
}

.sidebar {
  background: var(--bg-dark);
  color: #fff;
  padding: 24px 16px 20px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
  border-right: 1px solid var(--border-dark);
}

.sidebar .brand { padding: 4px 10px 24px; }

.nav-section {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  padding: 16px 12px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.nav-item.active {
  background: rgba(0,212,229,0.08);
  color: var(--k);
  box-shadow: inset 2px 0 0 var(--k);
}
.nav-item .icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 11px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.nav-item.active .icon { background: var(--k); color: var(--bg-dark); }
.nav-item .role {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}
.nav-item.disabled { opacity: 0.35; pointer-events: none; }

.sidebar .footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.sidebar .footer .email { color: rgba(255,255,255,0.75); font-family: 'JetBrains Mono', monospace; font-size: 11px; word-break: break-all; }
.sidebar .footer .signout { margin-top: 8px; cursor: pointer; color: rgba(255,255,255,0.5); font-family: 'Space Grotesk', sans-serif; font-size: 12px; }
.sidebar .footer .signout:hover { color: #fff; }

/* === MAIN === */
.main { padding: 36px 44px 64px; max-width: 1240px; width: 100%; }

.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.page-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.page-title em { font-size: inherit; }
.page-subtitle {
  color: var(--ink-muted);
  margin: 8px 0 0;
  font-size: 15px;
  max-width: 620px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--k-dim);
  margin-bottom: 12px;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: all 250ms cubic-bezier(0.16,1,0.3,1);
}
.card:hover { box-shadow: var(--shadow-card-hover); border-color: rgba(0,212,229,0.25); transform: translateY(-2px); }
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* === WORKER CARD === */
.worker-card {
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; position: relative;
  text-decoration: none; color: inherit;
}
.worker-card .header { display: flex; align-items: center; gap: 12px; }
.worker-card .avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--k), #7dd3fc);
  color: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px;
  box-shadow: 0 0 16px var(--k-glow);
  flex-shrink: 0;
}
.worker-card .name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em;
}
.worker-card .role {
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.02em;
}
.worker-card .stat {
  font-family: 'Inter Tight', sans-serif;
  font-size: 32px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.035em; line-height: 1;
}
.worker-card .stat em { font-size: inherit; }
.worker-card .stat-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-muted); margin-top: 6px;
  letter-spacing: 0.02em;
}
.worker-card .status-pill {
  position: absolute; top: 18px; right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  font-weight: 600;
}
.worker-card .status-pill.provisioning { background: rgba(245,158,11,0.1); color: var(--gold); }
.worker-card .status-pill.paused { background: rgba(239,68,68,0.1); color: var(--red); }
.worker-card .status-pill.not-hired { background: rgba(10,10,24,0.06); color: var(--ink-muted); }
.worker-card .status-pill.locked { background: rgba(0,212,229,0.08); color: var(--k-dim); border: 1px dashed rgba(0,212,229,0.4); }
.worker-card.locked { background: rgba(10,10,24,0.015); }
.worker-card.locked:hover { border-color: rgba(0,212,229,0.35); background: rgba(0,212,229,0.03); }

/* === BUTTONS (matches site) === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--k); color: var(--k-dim); }
.btn.primary {
  background: var(--k);
  color: var(--bg-dark);
  border-color: transparent;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px var(--k-glow);
  padding: 11px 24px;
}
.btn.primary:hover { box-shadow: 0 0 28px var(--k-glow-hi); transform: translateY(-1px); color: var(--bg-dark); }
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn.small.primary { padding: 7px 16px; font-size: 11px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn.dark {
  background: var(--bg-dark); color: #fff; border-color: transparent;
}
.btn.dark:hover { background: #1a1a2e; color: #fff; }

/* === FEED === */
.feed { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.feed-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.feed-item:hover { border-color: rgba(0,212,229,0.2); box-shadow: 0 2px 12px rgba(10,10,24,0.04); }
.feed-item .who {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--k), #7dd3fc);
  color: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 12px;
  flex-shrink: 0;
}
.feed-item .body { flex: 1; min-width: 0; }
.feed-item .title { font-size: 14px; font-weight: 500; font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.005em; }
.feed-item .meta { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.feed-item .time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-muted); flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* === EMPTY === */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-mid);
}
.empty h3 {
  margin: 0 0 6px; color: var(--ink);
  font-family: 'Inter Tight', sans-serif; font-weight: 600;
  font-size: 20px; letter-spacing: -0.02em;
}
.empty h3 em { font-size: inherit; }
.empty p { margin: 0; font-size: 14px; }

/* === BANNERS === */
.banner {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 22px;
}
.banner.warn { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #92610a; }
.banner.info { background: rgba(0,212,229,0.06); border: 1px solid rgba(0,212,229,0.2); color: var(--k-dim); }
.banner .banner-cta { margin-left: auto; }

/* === MOBILE === */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto;
    flex-direction: row; flex-wrap: wrap;
    padding: 14px 18px;
    gap: 4px;
  }
  .sidebar .brand { flex: 1 1 100%; padding: 4px 0 10px; }
  .nav-section { flex: 1 1 100%; padding: 6px 0 2px; }
  .nav-item { flex: 1; justify-content: center; }
  .nav-item .role { display: none; }
  .sidebar .footer { flex: 1 1 100%; margin-top: 8px; }
  .main { padding: 24px 20px; }
}

/* === UTIL === */
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.muted { color: var(--ink-muted); }
.mono {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.01em;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,212,229,0.08);
  border: 1px solid rgba(0,212,229,0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--k-dim);
  letter-spacing: 0.02em;
}

/* === KPI TILES === */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.kpi .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.kpi .value {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600; font-size: 30px;
  letter-spacing: -0.035em;
  margin-top: 6px; line-height: 1;
  color: var(--ink);
}
.kpi .value em { font-size: inherit; }
.kpi .delta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); margin-top: 4px; }
