/* ================================================================
   CARECONNECT v2 — Glassmorphism Design System (Apple iOS 18)
   Palette: Coral #FF6B47 · Orange #FF9A3C · Amber #FFB347
   ================================================================ */

:root {
  --coral:     #FF6B47;
  --coral-d:   #E85A36;
  --orange:    #FF9A3C;
  --amber:     #FFB347;
  --amber-l:   #FFD580;
  --green:     #34C759;
  --blue:      #007AFF;
  --purple:    #AF52DE;
  --rose:      #FF375F;
  --teal:      #5AC8FA;

  --bg:        #FFF3ED;
  --surface:   rgba(255,255,255,0.72);
  --surface-h: rgba(255,255,255,0.88);
  --border:    rgba(255,255,255,0.75);
  --border-l:  rgba(255,200,170,0.35);

  --t:         #1C1C1E;
  --t-sec:     #636366;
  --t-thi:     #8E8E93;
  --t-xlight:  #AEAEB2;

  --shadow-s:  0 2px 12px rgba(255,107,71,0.12);
  --shadow-m:  0 8px 32px rgba(255,107,71,0.16);
  --shadow-l:  0 20px 60px rgba(255,107,71,0.20);
  --shadow-xl: 0 32px 80px rgba(255,107,71,0.24);

  --radius-s:  10px;
  --radius-m:  16px;
  --radius-l:  24px;
  --radius-xl: 32px;

  --sidebar-w: 260px;
  --topbar-h:  70px;
  --spring:    cubic-bezier(0.34,1.56,0.64,1);
  --ease:      cubic-bezier(0.25,0.46,0.45,0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', 'Poppins', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t);
  overflow: hidden;
  height: 100vh;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,107,71,0.28); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,107,71,0.48); }

/* ── BACKGROUND MESH ───────────────────────────────────── */
.app-bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #FFF0E6 0%, #FFF8F0 40%, #FFF3E8 70%, #FFF9F4 100%);
}
.app-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 15% 20%, rgba(255,154,60,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 600px 600px at 80% 10%, rgba(255,107,71,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 500px 400px at 90% 80%, rgba(255,179,71,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 400px 400px at 5% 85%, rgba(255,107,71,0.10) 0%, transparent 50%);
}

/* Floating orbs */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(60px); opacity: 0.45; pointer-events: none; z-index: 0;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb1 { width:420px;height:420px;background:radial-gradient(#FF9A3C,#FF6B47);top:-100px;left:-80px;animation-delay:0s; }
.orb2 { width:320px;height:320px;background:radial-gradient(#FFB347,#FF9A3C);top:40%;right:-100px;animation-delay:-6s; }
.orb3 { width:280px;height:280px;background:radial-gradient(#FF6B47,#E85A36);bottom:-60px;left:30%;animation-delay:-12s; }
.orb4 { width:200px;height:200px;background:radial-gradient(#FFD580,#FFB347);bottom:10%;right:15%;animation-delay:-4s; }

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(30px,20px) scale(1.05); }
  100% { transform: translate(-20px,30px) scale(0.95); }
}

/* ── APP LAYOUT ────────────────────────────────────────── */
#app { position: relative; z-index: 1; height: 100vh; }

.app-layout {
  display: flex; height: 100vh; overflow: hidden;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-right: 1px solid rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 4px 0 30px rgba(255,107,71,0.08);
  position: relative;
  z-index: 10;
}

.sidebar-header {
  padding: 22px 18px 14px;
  border-bottom: 1px solid var(--border-l);
}

.sidebar-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.s-logo-box {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(255,107,71,0.40);
}
.s-logo-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 17px; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.60);
  border-radius: var(--radius-m);
  border: 1px solid var(--border-l);
}
.u-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.u-name { font-weight: 600; font-size: 12.5px; color: var(--t); }
.u-role { font-size: 10.5px; color: var(--t-thi); margin-top: 1px; }
.u-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-left: auto; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(52,199,89,0.30);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 2px rgba(52,199,89,0.30); }
  50%      { box-shadow: 0 0 0 5px rgba(52,199,89,0.15); }
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px; }
.nav-sec-label {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--t-xlight); margin: 10px 8px 5px;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-s);
  cursor: pointer; transition: all 0.22s var(--ease);
  position: relative; margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,107,71,0.08); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(255,107,71,0.15), rgba(255,154,60,0.10));
  box-shadow: inset 0 0 0 1px rgba(255,107,71,0.18);
}
.nav-item.active .nav-label { color: var(--coral); font-weight: 600; }
.nav-item.active .nav-icon { color: var(--coral); }
.nav-icon { width: 22px; text-align: center; color: var(--t-thi); font-size: 14px; flex-shrink: 0; }
.nav-label { font-size: 13px; color: var(--t-sec); flex: 1; white-space: nowrap; }
.nav-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--coral); color: #fff;
  font-size: 10px; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
}
.nav-badge.blue { background: var(--blue); }

.sidebar-footer {
  padding: 8px 10px 14px;
  border-top: 1px solid var(--border-l);
}

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

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid var(--border-l);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  box-shadow: 0 2px 20px rgba(255,107,71,0.06);
  position: relative; z-index: 5;
}
.topbar-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 19px; letter-spacing: -0.5px; color: var(--t);
}
.topbar-sub { font-size: 11px; color: var(--t-thi); margin-top: 2px; }
.topbar-left {}
.topbar-right { display: flex; align-items: center; gap: 10px; }

.sync-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(52,199,89,0.10); border: 1px solid rgba(52,199,89,0.25);
  font-size: 11px; font-weight: 500; color: #1d8034;
}
.sync-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.80); border: 1px solid var(--border-l);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; color: var(--t-sec);
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-s);
  position: relative;
}
.icon-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-m); background: #fff; }
.notif-pip {
  position: absolute; top: 4px; right: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral); border: 2px solid #fff;
}

/* ── PAGE CONTENT ───────────────────────────────────────── */
.page-content {
  flex: 1; overflow-y: auto; padding: 24px 26px;
  position: relative;
}
.page-enter { animation: pageEnter 0.32s var(--ease) both; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── GLASS CARD ─────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
  transition: transform 0.22s var(--spring), box-shadow 0.22s var(--ease);
}
.glass-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }

.glass-card-inner { padding: 20px 22px; }

/* Shine reflection on top */
.glass-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, transparent 50%);
  border-radius: inherit; pointer-events: none;
}

/* ── STAT CARDS ─────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  border-radius: var(--radius-l);
  padding: 18px 18px 14px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--spring), box-shadow 0.22s var(--ease);
}
.stat-card:hover { transform: translateY(-3px) scale(1.01); }
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, transparent 100%);
  border-radius: inherit; pointer-events: none;
}
.stat-card.coral  { background: linear-gradient(135deg, #FF6B47, #FF8A65); box-shadow: 0 8px 28px rgba(255,107,71,0.35); }
.stat-card.orange { background: linear-gradient(135deg, #FF9A3C, #FFB347); box-shadow: 0 8px 28px rgba(255,154,60,0.35); }
.stat-card.green  { background: linear-gradient(135deg, #34C759, #30D158); box-shadow: 0 8px 28px rgba(52,199,89,0.35); }
.stat-card.blue   { background: linear-gradient(135deg, #007AFF, #5AC8FA); box-shadow: 0 8px 28px rgba(0,122,255,0.35); }
.stat-card.purple { background: linear-gradient(135deg, #AF52DE, #BF5AF2); box-shadow: 0 8px 28px rgba(175,82,222,0.35); }
.stat-card.amber  { background: linear-gradient(135deg, #FFB347, #FFD580); box-shadow: 0 8px 28px rgba(255,179,71,0.35); }
.stat-card.rose   { background: linear-gradient(135deg, #FF375F, #FF6B8A); box-shadow: 0 8px 28px rgba(255,55,95,0.35); }

.stat-icon { font-size: 26px; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.stat-value { font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -1px; color: #fff; line-height: 1; }
.stat-label { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,0.80); margin-top: 4px; }
.stat-sub   { font-size: 10.5px; color: rgba(255,255,255,0.65); margin-top: 3px; }

/* ── SECTION HEADER ────────────────────────────────────── */
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: -0.3px; color: var(--t);
}
.section-sub { font-size: 11.5px; color: var(--t-thi); margin-top: 2px; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 99px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s var(--spring); border: none; outline: none;
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0 0 50% 0;
  background: rgba(255,255,255,0.22);
  border-radius: inherit;
}
.btn:active { transform: scale(0.97); }

.btn-coral  { background: linear-gradient(135deg, var(--coral), var(--orange)); color: #fff; box-shadow: 0 4px 18px rgba(255,107,71,0.40); }
.btn-coral:hover { box-shadow: 0 8px 28px rgba(255,107,71,0.50); transform: translateY(-1px); }
.btn-outline { background: rgba(255,255,255,0.75); border: 1px solid var(--border-l); color: var(--t-sec); box-shadow: var(--shadow-s); }
.btn-outline:hover { background: #fff; box-shadow: var(--shadow-m); }
.btn-green  { background: linear-gradient(135deg, var(--green), #30D158); color: #fff; box-shadow: 0 4px 18px rgba(52,199,89,0.35); }
.btn-blue   { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; box-shadow: 0 4px 18px rgba(0,122,255,0.35); }
.btn-sm     { padding: 6px 13px; font-size: 11.5px; }
.btn-xs     { padding: 4px 10px; font-size: 11px; }
.btn-icon   { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }

/* ── BADGES & TAGS ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600;
}
.badge-coral  { background: rgba(255,107,71,0.12); color: var(--coral-d); }
.badge-orange { background: rgba(255,154,60,0.12); color: #B36000; }
.badge-green  { background: rgba(52,199,89,0.12);  color: #1a8035; }
.badge-blue   { background: rgba(0,122,255,0.12);  color: #0048A8; }
.badge-purple { background: rgba(175,82,222,0.12); color: #7B2FA3; }
.badge-red    { background: rgba(255,55,95,0.12);  color: #C20029; }
.badge-gray   { background: rgba(142,142,147,0.12);color: #4A4A4E; }

/* ── PRIORITY DOTS ──────────────────────────────────────── */
.prio-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}
.prio-urgent  { background: var(--rose); box-shadow: 0 0 6px rgba(255,55,95,0.60); }
.prio-high    { background: var(--coral); }
.prio-medium  { background: var(--amber); }
.prio-low     { background: var(--green); }

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-wrap { position: relative; }
.progress-bar {
  height: 6px; border-radius: 99px;
  background: rgba(0,0,0,0.06); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.8s var(--ease);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute; inset: 0 0 50% 0;
  background: rgba(255,255,255,0.40);
  border-radius: inherit;
}
.progress-fill.coral  { background: linear-gradient(90deg, var(--coral), var(--orange)); }
.progress-fill.green  { background: linear-gradient(90deg, var(--green), #30D158); }
.progress-fill.blue   { background: linear-gradient(90deg, var(--blue), var(--teal)); }
.progress-fill.orange { background: linear-gradient(90deg, var(--orange), var(--amber)); }
.progress-fill.purple { background: linear-gradient(90deg, var(--purple), #BF5AF2); }

/* ── AVATAR ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.avatar-md { width: 42px; height: 42px; font-size: 15px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 72px; height: 72px; font-size: 26px; }

/* ── TABS ───────────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: 4px;
  background: rgba(0,0,0,0.04); padding: 4px;
  border-radius: 12px; width: fit-content;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 7px 16px; border-radius: 9px;
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: all 0.2s var(--ease); border: none;
  color: var(--t-sec); background: transparent;
}
.tab-btn.active {
  background: #fff; color: var(--coral); font-weight: 600;
  box-shadow: 0 2px 10px rgba(255,107,71,0.15);
}

/* ── INPUT / FORM ───────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--t-sec); margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,200,170,0.40);
  border-radius: var(--radius-s); font-size: 13px; color: var(--t);
  transition: all 0.2s; outline: none;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,71,0.12);
  background: #fff;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; cursor: pointer; }

/* ── TOGGLE SWITCH ──────────────────────────────────────── */
.toggle {
  position: relative; width: 42px; height: 24px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 99px;
  background: rgba(0,0,0,0.12); cursor: pointer;
  transition: 0.3s; overflow: hidden;
}
.toggle-slider::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.20);
  transition: 0.3s var(--spring);
}
.toggle input:checked + .toggle-slider { background: linear-gradient(135deg, var(--coral), var(--orange)); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── HERO CARD ──────────────────────────────────────────── */
.hero-card {
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--orange) 55%, var(--amber) 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xl); margin-bottom: 22px;
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 100%);
  pointer-events: none;
}
.hero-card::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.hero-greeting {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: #fff;
}
.hero-sub { font-size: 13px; color: rgba(255,255,255,0.80); margin-top: 4px; }
.hero-stats { display: flex; gap: 18px; margin-top: 20px; }
.hero-stat { text-align: center; }
.hero-stat-val { font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 26px; color: #fff; letter-spacing: -1px; }
.hero-stat-lbl { font-size: 10.5px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.hero-divider { width: 1px; background: rgba(255,255,255,0.25); align-self: stretch; }

/* ── ALERT ITEMS ────────────────────────────────────────── */
.alert-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-m);
  margin-bottom: 10px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-l);
  transition: all 0.2s var(--ease);
}
.alert-item:hover { transform: translateX(3px); box-shadow: var(--shadow-s); }
.alert-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.alert-icon.red    { background: rgba(255,55,95,0.12);  }
.alert-icon.orange { background: rgba(255,154,60,0.12); }
.alert-icon.blue   { background: rgba(0,122,255,0.12);  }
.alert-icon.green  { background: rgba(52,199,89,0.12);  }
.alert-title { font-size: 13px; font-weight: 600; color: var(--t); }
.alert-desc  { font-size: 11.5px; color: var(--t-sec); margin-top: 2px; }
.alert-time  { font-size: 10.5px; color: var(--t-xlight); margin-left: auto; white-space: nowrap; flex-shrink: 0; padding-top: 2px; }

/* ── STAFF CARDS ────────────────────────────────────────── */
.staff-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.staff-card {
  background: var(--surface); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 16px; cursor: pointer;
  transition: all 0.22s var(--spring);
  box-shadow: var(--shadow-s); position: relative; overflow: hidden;
}
.staff-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.40) 0%, transparent 100%);
}
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.staff-card.selected { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(255,107,71,0.25), var(--shadow-m); }

.staff-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.staff-name { font-size: 13px; font-weight: 600; color: var(--t); }
.staff-role { font-size: 10.5px; color: var(--t-thi); }
.staff-shift { font-size: 10.5px; color: var(--t-xlight); }
.staff-load-wrap { margin-top: 8px; }
.staff-load-label { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--t-thi); margin-bottom: 4px; }

/* ── TASK CARDS (KANBAN) ────────────────────────────────── */
.kanban-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.kanban-col {
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius-l);
  padding: 14px;
  min-height: 300px;
}
.kanban-col-hd {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.kanban-col-title { font-size: 13px; font-weight: 700; color: var(--t); }
.kanban-count {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.07); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: var(--t-sec);
}
.task-card {
  background: var(--surface); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 13px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow-s);
  transition: all 0.22s var(--spring);
  cursor: grab;
}
.task-card:hover { transform: scale(1.02); box-shadow: var(--shadow-m); }
.task-hd { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.task-name { font-size: 12.5px; font-weight: 600; color: var(--t); flex: 1; }
.task-resident { font-size: 11px; color: var(--t-sec); margin-bottom: 5px; }
.task-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.task-assign { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--t-thi); }
.task-time { font-size: 10.5px; color: var(--t-xlight); }
.task-sign-btn {
  padding: 3px 8px; border-radius: 99px;
  background: rgba(52,199,89,0.10); color: #1a8035;
  font-size: 10px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.2s;
}
.task-sign-btn:hover { background: rgba(52,199,89,0.20); }
.task-sign-btn.signed { background: rgba(52,199,89,0.90); color: #fff; }

/* ── KPI RINGS ──────────────────────────────────────────── */
.kpi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.kpi-card {
  background: var(--surface); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 20px; text-align: center;
  box-shadow: var(--shadow-s);
  transition: transform 0.22s var(--spring);
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.50) 0%, transparent);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.kpi-ring-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 10px; }
.kpi-svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.kpi-bg-circle { fill: none; stroke: rgba(0,0,0,0.06); stroke-width: 7; }
.kpi-fill-circle { fill: none; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.kpi-center-val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 16px;
}
.kpi-name { font-size: 12px; font-weight: 600; color: var(--t); margin-bottom: 3px; }
.kpi-sub  { font-size: 10.5px; color: var(--t-thi); }

/* ── VOICE RECORDER ─────────────────────────────────────── */
.recorder-area {
  text-align: center; padding: 24px;
}
.mic-btn {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  border: none; cursor: pointer; font-size: 36px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 24px rgba(255,107,71,0.45);
  transition: all 0.2s var(--spring);
  position: relative; overflow: hidden;
}
.mic-btn::before {
  content: ''; position: absolute; inset: 0 0 50% 0;
  background: rgba(255,255,255,0.22); border-radius: inherit;
}
.mic-btn:hover { transform: scale(1.06); box-shadow: 0 10px 36px rgba(255,107,71,0.55); }
.mic-btn.recording {
  animation: mic-pulse 1.2s ease-in-out infinite;
  background: linear-gradient(135deg, #FF375F, #FF6B6B);
}
@keyframes mic-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(255,55,95,0.45), 0 0 0 0 rgba(255,55,95,0.30); }
  50%      { box-shadow: 0 6px 24px rgba(255,55,95,0.55), 0 0 0 16px rgba(255,55,95,0); }
}
.waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 36px; margin: 10px 0; }
.wave-bar {
  width: 4px; border-radius: 99px;
  background: linear-gradient(180deg, var(--coral), var(--orange));
  height: 8px; transition: height 0.1s ease;
}
.recording .wave-bar { animation: wave-anim 0.8s ease-in-out infinite; }
@keyframes wave-anim {
  0%,100% { height: 6px; }
  50%      { height: 28px; }
}
.wave-bar:nth-child(1) { animation-delay: 0.00s; }
.wave-bar:nth-child(2) { animation-delay: 0.10s; }
.wave-bar:nth-child(3) { animation-delay: 0.20s; }
.wave-bar:nth-child(4) { animation-delay: 0.05s; }
.wave-bar:nth-child(5) { animation-delay: 0.15s; }
.wave-bar:nth-child(6) { animation-delay: 0.25s; }
.wave-bar:nth-child(7) { animation-delay: 0.08s; }
.wave-bar:nth-child(8) { animation-delay: 0.18s; }
.wave-bar:nth-child(9) { animation-delay: 0.28s; }
.wave-bar:nth-child(10){ animation-delay: 0.03s; }
.wave-bar:nth-child(11){ animation-delay: 0.13s; }
.wave-bar:nth-child(12){ animation-delay: 0.23s; }

/* ── CALENDAR ───────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-header { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-head-cell { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--t-thi); padding: 5px 0; }
.cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; color: var(--t-sec); position: relative; flex-direction: column;
}
.cal-cell:hover { background: rgba(255,107,71,0.10); }
.cal-cell.today {
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(255,107,71,0.40);
}
.cal-cell.has-event::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--coral);
}
.cal-cell.today::after { background: rgba(255,255,255,0.80); }
.cal-cell.other-month { opacity: 0.35; }

/* ── NOTIF PANEL ────────────────────────────────────────── */
.notif-panel {
  position: fixed; top: 0; right: -380px; width: 360px; height: 100vh;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-left: 1px solid var(--border-l);
  box-shadow: -8px 0 40px rgba(255,107,71,0.12);
  z-index: 100; transition: right 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.notif-panel.open { right: 0; }
.notif-hd { padding: 22px 20px 14px; border-bottom: 1px solid var(--border-l); display: flex; align-items: center; justify-content: space-between; }
.notif-title { font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 17px; }
.notif-list { flex: 1; overflow-y: auto; padding: 12px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 12px; border-radius: var(--radius-m);
  margin-bottom: 8px; background: rgba(255,255,255,0.70);
  border: 1px solid var(--border-l); cursor: pointer;
  transition: all 0.18s;
}
.notif-item:hover { background: #fff; box-shadow: var(--shadow-s); }
.notif-item.unread { border-left: 3px solid var(--coral); }
.notif-ico { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.notif-body-title { font-size: 12.5px; font-weight: 600; color: var(--t); }
.notif-body-txt   { font-size: 11px; color: var(--t-sec); margin-top: 2px; }
.notif-body-time  { font-size: 10px; color: var(--t-xlight); margin-top: 3px; }

/* ── TOAST ──────────────────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; min-width: 260px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-m);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: toast-in 0.35s var(--spring) both;
  font-size: 12.5px; color: var(--t);
}
.toast.out { animation: toast-out 0.3s var(--ease) both; }
@keyframes toast-in  { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { from { transform: none; opacity: 1; } to { transform: translateX(60px); opacity: 0; } }
.toast-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.toast.success .toast-icon { background: rgba(52,199,89,0.15); }
.toast.info    .toast-icon { background: rgba(0,122,255,0.12); }
.toast.warning .toast-icon { background: rgba(255,179,71,0.15); }
.toast.danger  .toast-icon { background: rgba(255,55,95,0.12); }
.toast-title { font-weight: 700; font-size: 12px; }
.toast-body  { font-size: 11.5px; color: var(--t-sec); margin-top: 1px; }

/* ── FAB ────────────────────────────────────────────────── */
.fab {
  position: fixed; bottom: 28px; right: 90px;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: #fff; font-size: 22px; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,107,71,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--spring); z-index: 50;
}
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 10px 36px rgba(255,107,71,0.55); }

/* ── INTEGRATION CARD ───────────────────────────────────── */
.integration-card {
  background: var(--surface); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  transition: all 0.22s var(--spring); box-shadow: var(--shadow-s);
}
.integration-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.int-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.int-name { font-size: 13px; font-weight: 700; color: var(--t); }
.int-desc { font-size: 11px; color: var(--t-thi); margin-top: 2px; }
.int-status { margin-left: auto; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.status-ok   { background: var(--green); box-shadow: 0 0 0 3px rgba(52,199,89,0.20); }
.status-warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,179,71,0.20); }
.status-off  { background: var(--t-xlight); }

/* ── RESIDENT CARD ──────────────────────────────────────── */
.resident-card {
  background: var(--surface); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-l);
  overflow: hidden; transition: all 0.22s var(--spring); box-shadow: var(--shadow-s);
  cursor: pointer;
}
.resident-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.resident-card-top {
  padding: 18px; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border-l);
}
.resident-card-body { padding: 14px 18px; }
.resident-name { font-size: 15px; font-weight: 700; color: var(--t); }
.resident-age  { font-size: 12px; color: var(--t-sec); margin-top: 2px; }
.resident-room { font-size: 11px; color: var(--t-thi); }

/* ── PLAN DE SOINS ──────────────────────────────────────── */
.plan-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.plan-id-card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-s); }
.plan-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--t-thi); margin: 14px 0 7px; }
.timeline-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-m);
  margin-bottom: 8px; background: rgba(255,255,255,0.65);
  border: 1px solid var(--border-l); transition: all 0.2s;
}
.tl-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.tl-done    { background: var(--green); box-shadow: 0 0 0 3px rgba(52,199,89,0.20); }
.tl-pending { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,179,71,0.20); }
.tl-upcoming{ background: rgba(0,0,0,0.15); }
.tl-late    { background: var(--rose);  box-shadow: 0 0 0 3px rgba(255,55,95,0.20); }
.tl-time  { font-size: 11.5px; font-weight: 700; color: var(--t-sec); white-space: nowrap; }
.tl-act   { font-size: 13px; font-weight: 600; color: var(--t); flex: 1; }
.tl-who   { font-size: 11px; color: var(--t-thi); margin-top: 2px; }

/* ── CHART BARS (CSS) ────────────────────────────────────── */
.chart-bar-wrap { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.chart-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bar-fill {
  width: 100%; border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--coral), var(--orange));
  box-shadow: 0 3px 10px rgba(255,107,71,0.25);
  transition: height 0.8s var(--ease);
  position: relative;
}
.chart-bar-fill::before {
  content: ''; position: absolute; inset: 0 0 60% 0;
  background: rgba(255,255,255,0.22); border-radius: inherit;
}
.chart-bar-lbl { font-size: 10px; color: var(--t-thi); }
.chart-bar-val { font-size: 10.5px; font-weight: 700; color: var(--t-sec); }

/* ── LOGIN ──────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFF0E6 0%, #FFF8F0 50%, #FFE8D6 100%);
  overflow: hidden; position: relative;
}
.login-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.50;
  animation: drift 18s ease-in-out infinite alternate;
}
.login-orb1 { width:500px;height:500px;background:radial-gradient(#FF9A3C,#FF6B47 60%);top:-150px;left:-120px; }
.login-orb2 { width:350px;height:350px;background:radial-gradient(#FFB347,#FF9A3C 60%);bottom:-100px;right:-80px;animation-delay:-8s; }
.login-orb3 { width:250px;height:250px;background:radial-gradient(#FF6B47,#E85A36 60%);top:50%;left:55%;animation-delay:-4s; }
.login-card {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius-xl);
  padding: 36px 34px;
  width: 420px; max-width: calc(100vw - 32px);
  box-shadow: 0 32px 80px rgba(255,107,71,0.22), 0 2px 8px rgba(255,255,255,0.90) inset;
  position: relative; z-index: 1;
}
.login-logo-wrap { text-align: center; margin-bottom: 24px; }
.login-logo-icon {
  width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 12px;
  box-shadow: 0 8px 28px rgba(255,107,71,0.45);
}
.login-app-name {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.login-app-sub { font-size: 12.5px; color: var(--t-thi); margin-top: 3px; }

.role-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 20px;
}
.role-btn {
  padding: 11px 10px; border-radius: var(--radius-m);
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,200,170,0.35);
  cursor: pointer; text-align: center;
  transition: all 0.20s var(--spring); display: flex; flex-direction: column;
  align-items: center; gap: 3px;
}
.role-btn:hover { background: rgba(255,255,255,0.90); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.role-btn.active {
  border-color: var(--coral);
  background: linear-gradient(135deg, rgba(255,107,71,0.10), rgba(255,154,60,0.08));
  box-shadow: 0 0 0 2px rgba(255,107,71,0.20);
}
.role-icon { font-size: 20px; }
.role-name { font-size: 12.5px; font-weight: 700; color: var(--t); }
.role-sub  { font-size: 10px; color: var(--t-thi); }

.btn-login {
  width: 100%; padding: 13px; border-radius: 99px;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: #fff; font-size: 14.5px; font-weight: 700;
  border: none; cursor: pointer; margin-top: 6px;
  box-shadow: 0 6px 24px rgba(255,107,71,0.42);
  transition: all 0.22s var(--spring);
  position: relative; overflow: hidden;
}
.btn-login::before {
  content: ''; position: absolute; inset: 0 0 50% 0;
  background: rgba(255,255,255,0.18);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(255,107,71,0.52); }

.login-input-wrap { margin-bottom: 10px; }
.login-input-label { font-size: 11.5px; font-weight: 600; color: var(--t-sec); margin-bottom: 4px; display: block; }
.login-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-m);
  background: rgba(255,255,255,0.70); border: 1px solid rgba(255,200,170,0.40);
  font-size: 13.5px; color: var(--t); outline: none; transition: all 0.2s;
  font-family: inherit;
}
.login-input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,71,0.12); background: #fff; }

/* ── PLANNING GRID ──────────────────────────────────────── */
.planning-grid { overflow-x: auto; }
.planning-table {
  width: 100%; border-collapse: separate; border-spacing: 4px;
  min-width: 600px;
}
.planning-table th {
  font-size: 11px; font-weight: 700; color: var(--t-thi); padding: 6px 8px;
  text-align: center;
}
.planning-table td { padding: 3px; }
.shift-cell {
  padding: 7px 5px; border-radius: 9px; text-align: center;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.shift-cell:hover { transform: scale(1.05); }
.shift-matin  { background: rgba(255,107,71,0.15); color: #B03A20; }
.shift-soir   { background: rgba(0,122,255,0.12);  color: #0048A8; }
.shift-nuit   { background: rgba(175,82,222,0.12); color: #7B2FA3; }
.shift-repos  { background: rgba(0,0,0,0.05);      color: var(--t-thi); }
.shift-conge  { background: rgba(52,199,89,0.12);  color: #1a8035; }
.shift-vaca   { background: rgba(255,179,71,0.15); color: #B36000; }

/* ── CHAT ───────────────────────────────────────────────── */
.chat-wrap { display: flex; flex-direction: column; height: 380px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble-wrap { display: flex; gap: 8px; }
.chat-bubble-wrap.me { flex-direction: row-reverse; }
.chat-bubble {
  max-width: 72%; padding: 10px 14px; border-radius: 16px;
  font-size: 12.5px; line-height: 1.5;
}
.chat-bubble-wrap.them .chat-bubble { background: rgba(255,255,255,0.90); border: 1px solid var(--border-l); color: var(--t); border-radius: 4px 16px 16px 16px; }
.chat-bubble-wrap.me   .chat-bubble { background: linear-gradient(135deg, var(--coral), var(--orange)); color: #fff; border-radius: 16px 4px 16px 16px; }
.chat-time { font-size: 10px; color: var(--t-xlight); margin-top: 4px; }
.chat-input-wrap { display: flex; gap: 8px; padding: 10px 0 0; border-top: 1px solid var(--border-l); }

/* ── REPIT CARD ─────────────────────────────────────────── */
.repit-card {
  background: var(--surface); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-s);
  transition: all 0.22s var(--spring);
}
.repit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.repit-top { height: 6px; }
.repit-body { padding: 16px 18px; }
.repit-name { font-size: 14px; font-weight: 700; color: var(--t); }
.repit-type { font-size: 11px; color: var(--t-thi); margin-top: 2px; }
.repit-row  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t-sec); margin-top: 7px; }
.stars { color: var(--amber); font-size: 12px; }

/* ── AI BOX ─────────────────────────────────────────────── */
.ai-box {
  background: linear-gradient(135deg, rgba(0,122,255,0.07), rgba(90,200,250,0.07));
  border: 1px solid rgba(0,122,255,0.18); border-radius: var(--radius-l); padding: 16px 18px;
}
.ai-box-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ai-box-icon { font-size: 18px; }
.ai-box-title { font-size: 13px; font-weight: 700; color: var(--blue); }
.ai-box-text { font-size: 12.5px; color: var(--t-sec); line-height: 1.6; }

/* ── GRID HELPERS ───────────────────────────────────────── */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mb-20 { margin-bottom: 20px; }
.flex  { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; min-width: 0; }
.text-sm { font-size: 11.5px; }
.text-xs { font-size: 10.5px; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.t-sec   { color: var(--t-sec); }
.t-thi   { color: var(--t-thi); }
.t-coral { color: var(--coral); }
.t-green { color: var(--green); }
.t-blue  { color: var(--blue); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid  { grid-template-columns: repeat(2, 1fr); }
  .kanban-board { grid-template-columns: 1fr; }
  .plan-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 16px; }
}
