@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

svg { max-width: 100%; overflow: visible; flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --eko: #2C966F;
  --eko-dark: #1a6b4a;
  --eko-light: #3db885;
  --eko-glow: rgba(44,150,111,.35);
  --eko-glow-sm: rgba(44,150,111,.15);

  /* Dark base — slightly richer than before */
  --bg:      #07070D;
  --bg2:     #0a0a12;
  --bg3:     #0d0d18;
  --surface:  #13131e;
  --surface2: #18182a;
  --surface3: #1e1e30;

  --border:  rgba(255,255,255,.06);
  --border2: rgba(255,255,255,.10);
  --border3: rgba(255,255,255,.04);

  --text:  #f2f2f7;
  --text2: rgba(242,242,247,.70);
  --muted: rgba(242,242,247,.40);
  --muted2: rgba(242,242,247,.25);

  --danger:  #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --info:    #6366f1;

  --radius:    12px;
  --radius-sm:  8px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow:      0 4px 24px rgba(0,0,0,.45);
  --shadow-lg:   0 16px 56px rgba(0,0,0,.6);
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 4px 20px rgba(0,0,0,.35);

  --transition: .2s cubic-bezier(.4,0,.2,1);
  --font:  'Lexend', sans-serif;
  --font2: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Dot-grid subtle background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(44,150,111,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--eko-light); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(44,150,111,.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(44,150,111,.48); }

/* ══════════════════════════════════════
   LAYOUT  — flex row, full-viewport
══════════════════════════════════════ */
.app-layout {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Right-panel wrapper (second flex child) */
.app-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: #0d0d18;
  border-right: 1px solid rgba(44,150,111,.14);
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  position: relative;
}

/* Brand / logo row — same height as app-header (86px) */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 86px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

/* Logo mark — rounded square with gradient glow */
.sidebar-brand-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(44,150,111,.9), rgba(26,107,74,.95));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: rgba(44,150,111,.38) 0 6px 18px, 0 1px 0 rgba(255,255,255,.12) inset;
}
.sidebar-brand-mark img { height: 22px; width: auto; display: block; filter: brightness(0) invert(1); }

.sidebar-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 50%, rgba(255,255,255,.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav container */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Section labels */
.nav-section {
  padding: 0 14px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted2);
}

/* Nav group */
.nav-group { display: flex; flex-direction: column; gap: 2px; }

/* Nav items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -.01em;
  transition: background .15s, color .15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  font-family: var(--font);
}
.nav-item svg { flex-shrink: 0; opacity: .85; }
.nav-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-item:hover  { background: rgba(255,255,255,.04); color: var(--text2); }
.nav-item.active {
  background: rgba(44,150,111,.13);
  color: var(--eko-light);
  font-weight: 500;
}
.nav-item.active svg { opacity: 1; }

/* Active dot on nav-item */
.nav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, var(--eko-light), var(--eko));
  flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 14px 0;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════
   APP HEADER  (86px — matches sidebar brand row)
══════════════════════════════════════ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: rgba(10,10,18,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* Search bar */
.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(44,150,111,.08);
  border: 1px solid var(--border2);
  cursor: text;
  flex: 1;
  max-width: 380px;
  transition: var(--transition);
}
.header-search:focus-within {
  border-color: rgba(44,150,111,.3);
  background: rgba(44,150,111,.1);
  box-shadow: 0 0 0 3px rgba(44,150,111,.08);
}
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font);
}
.header-search input::placeholder { color: var(--muted); }

.header-spacer { flex: 1; }

/* Icon action buttons */
.header-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(44,150,111,.07);
  border: 1px solid var(--border2);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-btn:hover { background: rgba(44,150,111,.13); color: var(--text2); border-color: rgba(44,150,111,.2); }

/* Notification dot */
.notif-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--bg2);
}

/* User avatar with gradient ring */
.user-avatar-wrap { position: relative; flex-shrink: 0; }
.user-avatar-ring {
  width: 40px; height: 40px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--eko-light), var(--eko), var(--eko-dark), var(--eko), var(--eko-light));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.user-avatar-ring:hover { box-shadow: 0 0 12px rgba(44,150,111,.4); }
.user-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1e30, #141428);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--bg2);
  overflow: hidden;
  letter-spacing: .01em;
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.main-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.main-body {
  padding: 32px 40px 64px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Legacy fallback (pages without .main-body) */
.main-content > *:not(.app-header) { position: relative; z-index: 1; }

/* Page header — icon mark + title pattern (from competitor) */
.page-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.page-header-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(44,150,111,.9), rgba(26,107,74,.95));
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(44,150,111,.35), 0 1px 0 rgba(255,255,255,.2) inset;
}

.page-header-text { flex: 1; }
.page-title,
.page-header-text h1 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
}
.page-subtitle,
.page-header-text p {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 300;
  margin-top: 4px;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  letter-spacing: -.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #44cc8a, var(--eko-light), var(--eko));
  color: #fff;
  box-shadow: 0 4px 16px rgba(44,150,111,.32);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .5s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(44,150,111,.44); }
.btn-primary:hover::after { left: 160%; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--surface3); border-color: rgba(255,255,255,.14); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.3); }

.btn-sm  { padding: 6px 14px; font-size: .78rem; }
.btn-lg  { padding: 13px 28px; font-size: .92rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn svg  { width: 16px; height: 16px; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.card:hover {
  border-color: rgba(44,150,111,.18);
  box-shadow: 0 0 0 1px rgba(44,150,111,.07), 0 8px 32px rgba(0,0,0,.5);
  transform: translateY(-1px);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Project card (inspired by competitor template card) ── */
.project-card {
  background: rgba(44,150,111,.05);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: rgba(44,150,111,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(44,150,111,.1);
  transform: translateY(-2px);
}

/* 4:5 thumbnail — same ratio competitor uses */
.project-card-thumb {
  position: relative;
  padding-top: 125%;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}
.project-card-thumb > * {
  position: absolute;
  inset: 0;
}
.project-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-card-thumb .empty-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .75rem;
  gap: 8px;
}
.project-card-thumb .empty-thumb svg { opacity: .25; }

/* Slide count badge on thumb */
.thumb-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
}

/* Card info section */
.project-card-info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.project-card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.2;
  flex: 1;
}
/* Tag pill — colored mini badge */
.tag-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.tag-pill.green  { background: rgba(44,150,111,.14); border: 1px solid rgba(44,150,111,.3); color: var(--eko-light); }
.tag-pill.purple { background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.3); color: #a5b4fc; }
.tag-pill.orange { background: rgba(251,146,60,.14); border: 1px solid rgba(251,146,60,.3); color: #fdba74; }

.project-card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  line-height: 1.5;
  letter-spacing: -.01em;
}
.project-card-spacer { flex: 1; min-height: 12px; }

/* Action buttons — appear on hover */
.project-card-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-card-actions { opacity: 1; }

/* New project card */
.new-project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 2px dashed rgba(44,150,111,.2);
  background: rgba(44,150,111,.02);
  cursor: pointer;
  gap: 12px;
  color: var(--muted);
  transition: var(--transition);
  border-radius: var(--radius-lg);
  font-size: .88rem;
  font-weight: 500;
}
.new-project-card:hover {
  border-color: rgba(44,150,111,.4);
  color: var(--eko-light);
  background: rgba(44,150,111,.05);
  box-shadow: 0 0 32px rgba(44,150,111,.06);
}
.new-project-card svg { width: 36px; height: 36px; display: block; }

/* ══════════════════════════════════════
   INPUT / FORM
══════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: .88rem;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--muted); font-weight: 300; }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(44,150,111,.5);
  background: rgba(44,150,111,.05);
  box-shadow: 0 0 0 3px rgba(44,150,111,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }

/* ══════════════════════════════════════
   CHIPS
══════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 500;
  background: rgba(255,255,255,.05);
  color: var(--text2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -.01em;
}
.chip.active, .chip:hover {
  background: rgba(44,150,111,.14);
  color: var(--eko-light);
  border-color: rgba(44,150,111,.35);
}

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(14px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: linear-gradient(145deg, var(--surface), #121222);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 560px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(24px) scale(.98);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.06) inset;
  position: relative;
}
.modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44,150,111,.3), transparent);
  border-radius: inherit;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: .84rem; font-weight: 300; margin-bottom: 28px; line-height: 1.6; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--surface2), #121224);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 36px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.05) inset;
  min-width: 280px;
  max-width: 360px;
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
  font-size: .84rem;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info    { border-left: 3px solid var(--info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(48px) scale(.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ══════════════════════════════════════
   LOADING / SPINNER
══════════════════════════════════════ */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border2);
  border-top-color: var(--eko);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: absolute; inset: 0;
  background: rgba(7,7,13,.87);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  border-radius: var(--radius-lg);
  z-index: 10;
  backdrop-filter: blur(4px);
}
.loading-text { color: var(--muted); font-size: .83rem; font-weight: 300; }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}
.empty-state svg { width: 60px; height: 60px; margin: 0 auto 18px; opacity: .22; }
.empty-state h3  { color: var(--text2); font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.empty-state p   { font-size: .84rem; font-weight: 300; max-width: 360px; margin: 0 auto 22px; line-height: 1.65; }

/* ══════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════ */
.progress-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--eko), #5fe0a8);
  border-radius: 2px;
  transition: width .4s ease;
  box-shadow: 0 0 8px rgba(44,150,111,.5);
}

/* ══════════════════════════════════════
   TABS
══════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: .84rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  letter-spacing: -.01em;
}
.tab-btn:hover { color: var(--text2); }
.tab-btn.active {
  color: var(--eko-light);
  border-bottom-color: var(--eko);
  font-weight: 500;
}

/* ══════════════════════════════════════
   STAT CARDS
══════════════════════════════════════ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.stat-card { text-align: center; padding: 24px 16px; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #5fe0a8, var(--eko-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: -.01em;
}

/* ══════════════════════════════════════
   WELCOME BANNER
══════════════════════════════════════ */
.welcome-banner {
  background: linear-gradient(135deg, rgba(44,150,111,.1), rgba(44,150,111,.03));
  border: 1px solid rgba(44,150,111,.18);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute; top: -60%; right: -8%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(44,150,111,.13) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.welcome-banner::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44,150,111,.35), transparent);
}
.welcome-banner h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.welcome-banner p {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 300;
  max-width: 480px;
  line-height: 1.65;
}
.welcome-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Setup banner */
.setup-banner {
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.28);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  color: var(--text2);
}
.setup-banner a { color: var(--warning); font-weight: 500; }

/* Quick prompt chips */
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* Compact sidebar at medium widths */
@media (max-width: 1100px) and (min-width: 769px) {
  .sidebar { width: 220px; }
  .sidebar-nav { padding: 16px 10px 10px; }
  .main-body { padding: 28px 28px 64px; }
}

/* Full mobile — sidebar slides off-screen */
@media (max-width: 768px) {
  .app-layout { overflow: visible; }
  .sidebar {
    position: fixed;
    left: -290px;
    width: 264px;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    z-index: 100;
    box-shadow: none;
  }
  .sidebar.open {
    left: 0;
    box-shadow: 8px 0 40px rgba(0,0,0,.6);
  }
  .app-main { width: 100%; }
  .main-body { padding: 24px 16px 64px; }
  .app-header { padding: 0 16px; }
  .header-search { max-width: 220px; }
  .mobile-toggle {
    display: flex;
    position: fixed;
    top: 24px; left: 16px;
    z-index: 99;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    color: var(--text);
  }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) {
  .mobile-toggle { display: none; }
}
