/* ============================================================
   HCL Healthcare R&R Portal – style.css  v11
   Theme: Deep Navy + Royal Blue corporate — matches reference UI
   Font: Poppins (primary) / Plus Jakarta Sans (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

:root {
  /* Primary palette — reference image */
  --navy:        #0f2461;
  --navy-mid:    #162d6e;
  --navy-light:  #1e3a8a;
  --navy-dark:   #0a1a45;
  --royal:       #2563eb;
  --royal-light: #3b82f6;
  --royal-soft:  #eff6ff;
  --primary:     var(--royal);

  /* Accent */
  --orange:      #f47c20;
  --orange-dark: #d4620d;
  --orange-light:#fff7ed;

  /* Login panel palette + CTA gradient (spark-ui-branding-redesign) */
  --login-panel:   #062b66;
  --login-panel-2: #0a3a8c;
  --login-panel-3: #041c46;
  --gradient-cta:  linear-gradient(90deg, #f47c20 0%, #c026d3 100%);
  --accent-purple: #a78bfa;
  --accent-cyan:   #22d3ee;

  /* Neutral */
  --white:       #ffffff;
  --bg:          #f4f6fb;
  --surface:     #ffffff;
  --border:      #e5e9f2;
  --border-mid:  #cdd5e0;
  --bg-secondary:#f4f6fb;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* Semantic */
  --green:       #10b981;
  --green-light: #ecfdf5;
  --red:         #ef4444;
  --red-light:   #fef2f2;
  --yellow:      #f59e0b;
  --yellow-light:#fffbeb;
  --blue-accent: #2563eb;
  --blue-light:  #eff6ff;

  /* Card accent borders (left border on stat cards — matches reference) */
  --accent-orange: #f47c20;
  --accent-blue:   #2563eb;
  --accent-yellow: #f59e0b;
  --accent-green:  #10b981;

  /* Layout */
  --sidebar-w:   280px;
  --topbar-h:    68px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --shadow-sm:   0 1px 4px rgba(15,36,97,0.08);
  --shadow:      0 2px 16px rgba(15,36,97,0.10);
  --shadow-md:   0 6px 28px rgba(15,36,97,0.14);
  --shadow-lg:   0 12px 48px rgba(15,36,97,0.18);
  --transition:  0.18s ease;
}

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

body {
  font-family: 'Poppins', 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 48px 44px 40px;
  width: 100%;
  max-width: 440px;
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 8px; letter-spacing: -0.3px; }
.login-logo p  { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.login-hint {
  margin-top: 22px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.8;
  border: 1px solid var(--border);
}

/* Login tabs */
.login-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg);
}
.login-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.3;
}
.login-tab + .login-tab { border-left: 1.5px solid var(--border); }
.login-tab.active { background: var(--navy); color: var(--white); }
.login-tab:not(.active):hover { background: var(--border); color: var(--navy); }
.login-email-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--blue-light);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--royal);
}

/* Login brand logos */
.login-brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}
.brand-logo-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-logo-img { display: block; height: 34px; width: auto; max-width: 168px; object-fit: contain; }
.brand-logo-img-habit { height: 30px; }
.brand-logo-name { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.3px; white-space: nowrap; }
.brand-logo-divider { font-size: 18px; color: var(--border-mid); font-weight: 300; }
.login-rr-visual { display: flex; justify-content: center; margin: 2px 0 10px; opacity: 0.92; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.optional-label {
  font-weight: 400;
  text-transform: none;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0;
}
input[type=text], input[type=password], input[type=number], input[type=email],
select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
textarea { resize: vertical; min-height: 84px; }
select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Validation helpers */
.score-scale-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; font-weight: 500; }
.field-error { color: var(--red); font-size: 12px; margin-top: 5px; font-weight: 600; }
input.input-error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.score-scale-badge {
  display: inline-block;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.error-msg { color: var(--red); font-size: 13px; font-weight: 600; margin-bottom: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--royal);
  color: var(--white);
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.1px;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.30); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--royal); color: var(--royal); background: var(--blue-light); }

.btn-danger {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-danger:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-success {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-success:hover { background: #059669; transform: translateY(-1px); }
.btn-sm { padding: 6px 14px !important; font-size: 12px !important; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 4px 8px; font-size: 16px; }
.full-width { width: 100%; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: #001248;
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--transition), left var(--transition);
  z-index: 100;
  position: relative;
}
.sidebar.closed { width: 0; overflow: hidden; }

.sidebar-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header-branded { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.sidebar-logo-img {
  width: 112px;
  height: auto;
  max-width: 100%;
  display: block;
}

/* Sidebar nav */
.sidebar-nav { flex: 1; padding: 12px 0 20px; }

.nav-home-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-home-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-home-btn.active {
  background: #0044d6;
}

.nav-section-group {
  margin-bottom: 8px;
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  cursor: pointer;
  color: #ffffff;
  user-select: none;
  transition: background 0.15s ease;
}

.nav-section-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.nav-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: #ffffff;
}

.nav-chevron {
  color: #ffffff;
  transition: transform 0.25s ease;
}

.nav-section-group.collapsed .nav-chevron {
  transform: rotate(-90deg);
}

.nav-section-group.collapsed .nav-section-body {
  display: none;
}

.nav-section-body {
  padding: 4px 0 6px;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 46px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-sub-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-sub-item.active {
  color: #ffffff;
  font-weight: 700;
  background: #0044d6;
}

.sub-bullet {
  font-size: 15px;
  line-height: 1;
  color: #ffffff;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-info {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  line-height: 1.65;
}
.user-info strong { color: var(--white); font-size: 13px; display: block; font-weight: 700; }
.btn-logout {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-logout:hover { background: rgba(239,68,68,0.22); color: #fca5a5; border-color: rgba(239,68,68,0.35); }
.btn-switch-role {
  width: 100%;
  background: rgba(37,99,235,0.18);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(37,99,235,0.35);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
}
.btn-switch-role:hover { background: rgba(37,99,235,0.35); }

/* ============================================================
   TOPBAR  — matches reference image closely
   ============================================================ */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.topbar-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-left: 1px solid var(--border);
}
.topbar-logo { display: block; height: 30px; width: auto; object-fit: contain; }
.topbar-spark-logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}
.topbar-logo-habit { height: 26px; }
.topbar-logo-hcl { height: 25px; object-fit: contain; }
.topbar-spacer { flex: 1; }
.menu-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--navy);
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--bg); }

/* Topbar global filters */
.global-filters { display: flex; gap: 10px; align-items: center; }
.global-filters select {
  width: 138px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  cursor: pointer;
}
.global-filters select:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(37,99,235,0.10); }

/* Topbar user avatar (right side) */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}
.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,0.30);
  flex-shrink: 0;
}
.topbar-notif {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.topbar-notif:hover { background: var(--blue-light); border-color: var(--royal); }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { flex: 1; overflow-y: auto; padding: 12px; }

/* ============================================================
   STAT CARDS  — matches reference (colored left-border, icon box)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.home-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.home-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  font-family: inherit;
}

.home-layout-v2 {
  margin: 0 auto;
  padding: 0 8px;
}

.home-top-tabs {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 40px;
  background: transparent;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.home-tab-v2, .home-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  background: transparent;
  border: none;
  border-bottom: none;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
  font-family: inherit;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.home-tab-v2.active, .home-tab.active {
  color: #1e40af;
  opacity: 1;
}

.home-tab-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 3.5px;
  background-color: #1e40af;
  border-radius: 3px 3px 0 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform, width;
}

.home-tab-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.home-columns-v2, .home-columns {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .home-columns-v2, .home-columns {
    grid-template-columns: 1fr;
  }
}

.home-main-v2, .home-main {
  min-width: 0;
}

/* Post Composer Card */
.home-composer-card {
  background: #ffffff;
  border: 1px solid #e2e8f082;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.05);
}

.home-composer-top {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  margin-bottom: 18px;
}

.home-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.home-user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-composer-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 14px 20px;
  color: #acacac;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.01);
}

.home-composer-top:hover .home-composer-input {
  background: #faf7fd;
}

.home-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px;
  padding-top: 4px;
}

.home-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
  transition: background 0.2s;
  font-family: inherit;
}

.home-action-btn:hover {
  background: #f8fafc;
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon svg {
  width: 22px;
  height: 22px;
}

.icon-myposts {
  background: #e0e7ff;
  color: #4338ca;
}

.icon-photo {
  background: #e6f4ea;
  color: #16a34a;
}

.icon-badge {
  background: #fff7ed;
  color: #d97706;
}

.icon-announcement {
  background: #f3e8ff;
  color: #9333ea;
}

.action-divider {
  width: 1px;
  height: 36px;
  background: #f1f5f9;
  margin: 0 8px;
}

/* Feed Filter & Sort Header */
.home-feed-filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.feed-filter-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.feed-filter-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #1e40af;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
}

.feed-filter-dropdown:hover {
  color: #1d4ed8;
}

/* Feed Cards */
.feed-card-v2 {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.feed-card-v2.feed-pinned {
  background: #fefaf2;
  border-color: #fef08a;
}

.feed-card-v2.feed-pinned-post {
  background: #01b5cf29;
  border-color: #bbdfec;
}

.feed-pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feed-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.feed-pin-btn:hover {
  background: #f1f5f9;
  color: #1e40af;
  border-color: #cbd5e1;
}

.feed-pin-btn.pinned {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
}

.feed-pin-btn.pinned:hover {
  background: #ffedd5;
  border-color: #fdba74;
}

.feed-card-header-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feed-card-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-author-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-author-meta {
  font-size: 13.5px;
  line-height: 1.4;
}

.feed-author-name {
  font-weight: 700;
  color: #0f172a;
}

.feed-action-text {
  color: #475569;
  font-weight: 500;
}

.feed-timestamp {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 1px;
}

.feed-card-menu-btn {
  background: transparent;
  border: none;
  color: #1e40af;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.feed-card-body-v2 {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feed-body-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.feed-body-visual {
  width: 220px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.feed-body-visual img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.feed-banner-values-patron {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  border: 1px solid #ddd6fe;
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100px;
  box-sizing: border-box;
}

.feed-banner-values-patron .banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 6px;
  line-height: 1.3;
}

.feed-banner-values-patron .banner-date-pill {
  display: inline-block;
  background: #7e22ce;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.feed-banner-event {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  box-sizing: border-box;
}

.event-banner-text {
  font-size: 14px;
  font-weight: 800;
  color: #0369a1;
}

.event-banner-icon {
  font-size: 24px;
}

.feed-recognition-visual, .feed-wish-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  overflow: visible;
}

.badge-shield-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-shield-icon .shield-star {
  position: absolute;
  color: #facc15;
  font-size: 16px;
  top: 10px;
}

.recipient-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.pink-ribbon-card {
  background: #fce7f3;
  border: 1px solid #fbcfe8;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
}

.pink-ribbon-card .ribbon-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #be185d;
}

.pink-ribbon-card .ribbon-bow {
  font-size: 16px;
}

.feed-card-footer-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.feed-footer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.feed-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
}

.feed-action-link:hover {
  color: #1e40af;
}

.feed-action-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.feed-action-link.edit-btn {
  color: #2563eb;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.feed-action-link.edit-btn:hover {
  color: #1d4ed8;
  background: #eff6ff;
}

.feed-action-link.delete-btn {
  color: #ef4444;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.feed-action-link.delete-btn:hover {
  color: #dc2626;
  background: #fef2f2;
}

.feed-view-details-link {
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
}

.feed-view-details-link:hover {
  text-decoration: underline;
}

.home-feed-load-more {
  text-align: center;
  padding: 16px 0;
}

.home-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #1e40af;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
  transition: color 0.15s;
}

.home-load-more-btn:hover {
  color: #1d4ed8;
}

/* Right Panel Notifications */
.home-notif-card {
  background: #ffffff;
  border: 1px solid #e2e8f082;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.home-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.home-notif-title {
  font-size: 16px;
  font-weight: 700;
  color: #00006a;
  margin: 0;
}

.home-view-all-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
}

.home-view-all-link:hover {
  text-decoration: underline;
}

.home-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f8fafc;
}

.home-notif-item:last-child {
  border-bottom: none;
}

.notif-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon-circle svg {
  width: 35px;
  height: 35px;
}

.notif-content-area {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #00006a;
  margin-bottom: 3px;
}

.notif-item-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 4px;
}

.notif-action-btn, .btn-send-wish, .btn-view-winners {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e40af;
  background: #ffffff;
  border: 1.5px solid #1e40af;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 6px;
}

.notif-action-btn:hover, .btn-send-wish:hover, .btn-view-winners:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

.notif-item-time {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ============================================================
   QUICK ACTIONS (My Activity)
   ============================================================ */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.qa-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.qa-card:hover {
  border-color: var(--royal);
  box-shadow: 0 6px 18px rgba(37,99,235,0.14);
  transform: translateY(-2px);
}
.qa-icon { font-size: 26px; line-height: 1; }
.qa-label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.qa-hint { font-size: 11px; color: var(--text-muted); }
@media (max-width: 768px) {
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FEED CARDS (Corporate feed + My Activity)
   ============================================================ */
.feed-card {
  --feed-accent: var(--royal);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--feed-accent);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.feed-card:hover { box-shadow: var(--shadow); }
.feed-card-pinned { border-left-color: var(--orange); background: linear-gradient(180deg, var(--orange-light) 0%, var(--white) 70%); }
.feed-card-head { display: flex; align-items: flex-start; gap: 12px; }
.feed-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
}
.feed-card-meta { flex: 1; min-width: 0; }
.feed-card-title { font-size: 14px; line-height: 1.4; }
.feed-card-action { color: var(--text-muted); font-weight: 500; }
.feed-card-time {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.feed-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.feed-pill-pinned { background: var(--orange-light); color: var(--orange-dark); border: 1px solid rgba(244,124,32,0.35); }
.feed-card-body { font-size: 14px; color: var(--text-primary); line-height: 1.6; margin-top: 10px; }
.feed-card-heading { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feed-type-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  padding: 3px 9px;
  border-radius: 12px;
}
.badge-announcement { background: #f59e0b; }
.badge-event { background: #10b981; }
.badge-wish { background: #ec4899; }
.feed-event-meta { margin-top: 8px; font-size: 12px; color: var(--text-secondary); }
.feed-quote {
  margin-top: 6px;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 13px;
  border-left: 3px solid var(--border-mid);
  padding-left: 10px;
}
.feed-card-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.feed-card-images img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.feed-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.feed-action {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: inherit;
  transition: all 0.15s;
}
.feed-action:hover { background: var(--bg-secondary); color: var(--text-primary); }
.feed-action-liked { color: var(--red); }
.feed-card-menu { position: relative; flex-shrink: 0; }
.feed-more {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  line-height: 1;
}
.feed-more:hover { background: var(--bg-secondary); color: var(--text-primary); }
.feed-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 26px;
  z-index: 50;
  min-width: 150px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feed-menu.open { display: block; }
.feed-menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
}
.feed-menu-item:hover { background: var(--bg-secondary); }
.feed-menu-item.danger { color: var(--danger); }
.feed-comments { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.feed-comment { font-size: 13px; margin-bottom: 8px; }
.feed-comment-time { color: var(--text-muted); font-size: 11px; margin-left: 6px; }
.feed-comment-del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--danger);
  font-size: 11px;
  margin-left: 6px;
}
.feed-comment p { margin: 2px 0 0; }
.feed-comment-pinned { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 8px; }
.feed-comment-pin-tag { font-size: 11px; margin-left: 4px; }
.feed-comment-input-row { display: flex; gap: 6px; margin-top: 8px; }
.feed-comment-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

/* ============================================================
   MY ACTIVITY CARDS (engagements + badges)
   ============================================================ */
.activity-card {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.activity-card:last-child { border-bottom: none; }
.activity-card-icon { font-size: 18px; line-height: 1.4; }
.activity-card-text { font-size: 13px; color: var(--text-primary); }
.activity-card-quote { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.activity-card-time { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.badge-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  align-items: flex-start;
}
.badge-card:last-child { border-bottom: none; }
.badge-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.badge-card-icon img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.badge-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.badge-card-from { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.badge-card-citation { font-size: 13px; margin: 4px 0 0; color: var(--text-secondary); }
.badge-card-time { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   POST COMPOSER (modal)
   ============================================================ */
.post-composer-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.post-composer-input:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(37,99,235,0.10); outline: none; }
.post-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}
.post-composer-attach {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}
.post-composer-count { font-size: 12px; color: var(--text-muted); }
.post-composer-preview {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.post-composer-preview > div {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.post-composer-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.panel-group-head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 14px 16px 8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: var(--white);
  transition: background 0.15s;
}
.notif-card:hover { background: var(--bg-secondary); }
.notif-unread .notif-title { font-weight: 700; }
.notif-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; line-height: 1.45; color: var(--text-primary); }
.notif-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.notif-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.notif-actions { margin-top: 8px; }
.notif-wish-sent {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 3px 10px;
  border-radius: 12px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-orange);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(244,124,32,0.04));
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card.blue  { border-left-color: var(--accent-blue); }
.stat-card.blue::before  { background: linear-gradient(90deg, transparent, rgba(37,99,235,0.04)); }
.stat-card.green { border-left-color: var(--accent-green); }
.stat-card.green::before { background: linear-gradient(90deg, transparent, rgba(16,185,129,0.04)); }
.stat-card.yellow{ border-left-color: var(--accent-yellow); }
.stat-card.yellow::before{ background: linear-gradient(90deg, transparent, rgba(245,158,11,0.04)); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--orange-light);
  box-shadow: 0 2px 8px rgba(244,124,32,0.12);
}
.stat-card.blue .stat-icon  { background: var(--blue-light);   box-shadow: 0 2px 8px rgba(37,99,235,0.12); }
.stat-card.green .stat-icon { background: var(--green-light);  box-shadow: 0 2px 8px rgba(16,185,129,0.12); }
.stat-card.yellow .stat-icon{ background: var(--yellow-light); box-shadow: 0 2px 8px rgba(245,158,11,0.12); }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================================
   SECTION CARDS
   ============================================================ */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.section-card:hover { box-shadow: var(--shadow); }
.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.section-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.section-card-body { padding: 20px 24px; }

/* ============================================================
   TABLES  — rounded, hover effects, sticky headers
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
thead { position: sticky; top: 0; z-index: 1; }
thead tr {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}
thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(37,99,235,0.035); }
tbody td {
  padding: 13px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}
code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  font-family: 'Monaco', 'Consolas', monospace;
  color: var(--royal);
}

/* Search bar above tables */
.search-bar-wrap {
  margin-bottom: 14px;
}
.search-bar-wrap input {
  max-width: 380px;
  background: var(--bg);
  border-color: var(--border-mid);
}
.search-bar-wrap input:focus {
  background: var(--white);
  border-color: var(--royal);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-orange { background: #fed7aa; color: #c2410c; }
.badge-purple { background: #e9d5ff; color: #7c3aed; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray   { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }

/* ============================================================
   EMPTY STATES  — attractive illustration style
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 52px 24px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.65;
  display: block;
}
.empty-state p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.empty-state .empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,26,69,0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal-box {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  overflow-y: auto;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity:0; transform:scale(0.96) translateY(10px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}
.modal-header h3 { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -0.2px; }
.modal-close {
  background: var(--bg);
  border: 1.5px solid var(--border);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  line-height: 1;
}
.modal-close:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }
.modal-body { padding: 20px 24px 24px; }
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  animation: toastIn 0.25s ease;
  max-width: 360px;
  border-left: 4px solid var(--royal-light);
}
.toast.error { background: var(--red); border-left-color: #fca5a5; }
.toast.success { background: #065f46; border-left-color: var(--green); }
@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   AWARD CARDS
   ============================================================ */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 24px; }
.award-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.award-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.award-card-header {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
}
.award-card-header h4 { font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -0.2px; }
.award-type {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.award-card-body { padding: 16px 20px; flex: 1; }
.award-criteria { font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.award-prev-winner { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.award-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
}
.headcount-info { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* ============================================================
   INFO ALERTS
   ============================================================ */
.info-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  border-left: 4px solid;
  font-weight: 500;
  background: var(--bg);
  border-color: var(--border-mid);
  color: var(--text-secondary);
}
.info-alert.blue   { background: var(--blue-light);   border-color: var(--royal);  color: #1e40af; }
.info-alert.orange { background: var(--orange-light); border-color: var(--orange); color: #9a3412; }
.info-alert.green  { background: var(--green-light);  border-color: var(--green);  color: #065f46; }

/* ============================================================
   NOMINATION DETAIL
   ============================================================ */
.detail-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label {
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 160px;
  flex-shrink: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-top: 1px;
}
.detail-row .value { color: var(--text-primary); font-weight: 500; }
.divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.score-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 6px;
}
.score-box h5 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.avg-score {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  color: white;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

/* ============================================================
   HCInfo Box (nomination form headcount display)
   ============================================================ */
.hc-info-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: white;
  margin-top: 6px;
}
.hc-num { font-size: 28px; font-weight: 800; line-height: 1; }
.hc-label { font-size: 12px; opacity: 0.8; margin-top: 3px; }
.hc-allowed { font-size: 13px; font-weight: 700; margin-top: 8px; }

/* ============================================================
   NOMINATION STATUS + CONTROL
   ============================================================ */
.nom-status-banner {
  text-align: center;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.1px;
}
.nom-status-banner.on  { background: var(--green-light); color: #065f46; border: 2px solid var(--green); }
.nom-status-banner.off { background: var(--red-light);   color: #b91c1c; border: 2px solid var(--red); }

.toggle-wrap { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.toggle-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.toggle { position: relative; display: inline-block; width: 50px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-mid);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(24px); }

/* ============================================================
   SCORE TABLES (eval-score-table)
   ============================================================ */
.eval-score-table td, .eval-score-table th {
  padding: 10px 14px;
}
.eval-score-table input[type=number] { max-width: 90px; text-align: center; }

/* ============================================================
   WINNER HISTORY BANNER
   ============================================================ */
.winners-history-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--royal) 100%);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 22px;
  color: white;
  box-shadow: var(--shadow-md);
}
.whb-trophy { font-size: 44px; line-height: 1; flex-shrink: 0; }
.whb-text { flex: 1; }
.whb-title { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.whb-sub { font-size: 13px; opacity: 0.78; margin-top: 3px; }

/* ============================================================
   WINNER NAME CELL
   ============================================================ */
.winner-name-cell { display: flex; align-items: center; gap: 7px; }
.winner-trophy { font-size: 16px; }

/* ============================================================
   PREVIOUS WINNERS SECTION (matches reference "View Full History" style)
   ============================================================ */
.prev-winners-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prev-winners-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--yellow-light), #fde68a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid #fcd34d;
}
.prev-winners-title { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.prev-winners-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   DELETED NOMINATIONS BANNER
   ============================================================ */
.deleted-noms-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 20px;
  color: white;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HEADCOUNT PAGE
   ============================================================ */
.hc-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* ============================================================
   CSV DROP ZONE
   ============================================================ */
.csv-drop-zone {
  border: 2px dashed var(--border-mid);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
  background: var(--bg);
}
.csv-drop-zone:hover, .csv-drop-zone.drag-over {
  border-color: var(--royal);
  background: var(--blue-light);
}
.csv-drop-zone p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* CSV summary stat cards */
.csv-stat-grid { display: flex; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.csv-stat { flex: 1; min-width: 80px; border-radius: var(--radius-sm); padding: 14px 16px; text-align: center; }
.csv-stat.ok   { background: var(--green-light); border: 1px solid #6ee7b7; }
.csv-stat.dup  { background: var(--yellow-light); border: 1px solid #fcd34d; }
.csv-stat.fail { background: var(--red-light); border: 1px solid #fca5a5; }
.csv-stat-num { font-size: 26px; font-weight: 800; color: var(--navy); }
.csv-stat.ok   .csv-stat-num { color: var(--green); }
.csv-stat.dup  .csv-stat-num { color: var(--yellow); }
.csv-stat.fail .csv-stat-num { color: var(--red); }
.csv-stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.user-limit-warning {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
}
.team-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--royal);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 2px 2px 0;
  white-space: nowrap;
  border: 1px solid #bfdbfe;
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--blue-light);
  color: var(--royal);
  margin: 2px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}

/* ============================================================
   LEGACY CSS aliases (used in JS strings)
   ============================================================ */
.gray-700 { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.color-orange { color: var(--orange); }
.color-navy { color: var(--navy); }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.flex-center { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   SIDEBAR ILLUSTRATION (reference image has people + trophy at bottom)
   ============================================================ */
.sidebar-illustration {
  padding: 0 0 12px;
  display: flex;
  justify-content: center;
  opacity: 0.92;
  margin-top: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --sidebar-w: 260px; }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: calc(-1 * var(--sidebar-w)); transition: left var(--transition); z-index: 1000; }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
  .global-filters select { width: 112px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; gap: 10px; }
  .page-content { padding: 16px; }
  .topbar-logos { gap: 10px; padding: 0 10px; }
  .topbar-spark-logo { height: 28px; }
  .topbar-logo-habit { height: 20px; }
  .topbar-logo-hcl { height: 13px; }
  .login-brand-logos { gap: 12px; }
  .brand-logo-img { height: 28px; max-width: 130px; }.home-top-tabs {
    gap: 20px;
  }
  .home-composer-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .feed-card-body-v2 {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal-box { max-width: 100%; border-radius: 12px; }
  .topbar-logo-habit { display: none; }
  .brand-logo-img { height: 24px; max-width: 110px; }
  .page-content { padding: 12px; }
  .section-card-header { padding: 14px 16px 12px; }
  .section-card-body { padding: 14px 16px; }
  .csv-stat-grid { flex-wrap: wrap; }

  /* Feed + notification cards on mobile */
  .feed-card { padding: 14px; border-radius: 12px; }
  .feed-card-images img { max-width: 100%; }
  .feed-avatar { width: 34px; height: 34px; font-size: 12px; }
  .notif-card { padding: 12px 14px; }
  .qa-card { padding: 14px 10px; }
  .home-tab { padding: 8px 10px; font-size: 13px; }
}

/* ============================================================
   ACCESSIBILITY — focus states (spark-ui-branding-redesign)
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .nav-item:focus-visible, .qa-card:focus-visible,
.notif-card:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
}
.feed-more:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }
.menu-toggle:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }

/* ============================================================
   ANALYTICS ENHANCEMENTS — Phase 8E
   ============================================================ */
.trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}
.trend-up { background: #dcfce7; color: #16a34a; }
.trend-down { background: #fef2f2; color: #dc2626; }
.trend-flat { background: #f3f4f6; color: #6b7280; }

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}
.insight-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.insight-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.insight-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.insight-text strong { font-weight: 700; }
.insight-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.leaderboard-mini { padding: 0; margin: 0; }
.lb-rank {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: #f9fafb;
  transition: all 0.15s ease;
}
.lb-rank:hover { background: #f3f4f6; }
.lb-rank:last-child { border-bottom: none; }
.lb-rank.top1 { background: linear-gradient(135deg, #fef3c7, #fffbeb); border-left: 3px solid #f59e0b; }
.lb-rank.top2 { background: linear-gradient(135deg, #f3f4f6, #f9fafb); border-left: 3px solid #9ca3af; }
.lb-rank.top3 { background: linear-gradient(135deg, #ffedd5, #fff7ed); border-left: 3px solid #f97316; }
.lb-medal { margin-right: 6px; }
.lb-bar { height: 4px; background: #e5e7eb; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.lb-fill { height: 100%; background: var(--primary, #2563eb); border-radius: 2px; transition: width 0.5s ease; }
.lb-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-value { font-weight: 700; color: var(--royal); min-width: 30px; text-align: right; }

.insight-body { min-width: 0; }
.insight-card.success { border-left-color: #16a34a; }
.insight-card.warning { border-left-color: #f59e0b; }
.insight-card.info { border-left-color: #2563eb; }
.insight-card.danger { border-left-color: #dc2626; }

.exec-bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 8px 0; }
.exec-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.exec-bar-value { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.exec-bar { width: 100%; border-radius: 4px 4px 0 0; transition: height 0.3s ease; min-height: 4px; }
.exec-bar-label { font-size: 10px; color: #666; margin-top: 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }

.section-title { font-weight: 700; color: #64748b; }

.exec-kpi {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.exec-kpi:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.exec-kpi-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.exec-kpi-body { min-width: 0; }
.exec-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.exec-kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
  white-space: nowrap;
}

details > summary::-webkit-details-marker { display: none; }
details[open] > summary span.lb-chevron { transform: rotate(90deg); }
details > summary span.lb-chevron { transition: transform 0.2s ease; }

.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:hover {
  background: #f8fafc;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.3s ease forwards; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--royal-light); }

/* ============================================================
   LOGIN PAGE — FINAL COMPOSITION (overrides earlier login CSS)
   Structured three-ring award infographic (left 60%) + a large
   white login panel (right 40%). Everything on the left is one
   infographic: rings, vectors and labels share one centre and
   move/scale as a single composition. No floating emoji chips.
   ============================================================ */

html, body { height: 100%; }

.login-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: #001744;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

.login-shell {
  /* One design unit: both panels are percentages of THIS container, so the
     artwork and the white panel always scale together (including browser
     zoom). The px caps set the 100%-zoom baseline; on smaller windows the
     shell shrinks to the viewport and the whole design compresses as one. */
  width: min(100vw, 1920px);
  height: min(100vh, 1080px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

/* ---------------- LEFT 60% — award infographic ---------------- */
.login-brand-panel {
  flex: 0 0 62%;
  position: relative;
  overflow: hidden;
  background-color: #001744;
  /* Pre-cropped (white card removed) so `contain` can show the whole
     concentric-rings composition uncut, regardless of panel aspect ratio.
     Any leftover space is absorbed by the matching navy background-color. */
  background-image: url('assets/login-left-artwork.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  width: 62%;
  height: 100%;
}
.login-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* One square container = the whole infographic. All rings and all
   award items are positioned relative to it, so the composition
   never drifts apart and scales as one unit. */
.award-infographic {
  position: relative;
  width: min(94vh, 60vw);
  aspect-ratio: 1 / 1;
  z-index: 2;
}

/* Concentric dotted rings — same centre, different radii */
.award-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2.5px dotted;
  box-sizing: border-box;
}
.award-ring-outer { width: 88%; height: 88%; border-color: #9B3DFF; }
.award-ring-mid   { width: 60%; height: 60%; border-color: #16C7C1; }
.award-ring-inner { width: 36%; height: 36%; border-color: #FF6B00; }

/* Ring section pills */
.award-ring-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  padding: 0 22px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  z-index: 10;
}
.award-ring-label-outer { top: -1.5%; background: linear-gradient(90deg, #7B2FF7, #A855F7); }
.award-ring-label-mid   { top: -1.5%; background: #16C7C1; }
.award-ring-label-inner { top: -1.5%; background: #FF6B00; }

/* Award groups: illustration + label always move together */
.award-item {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}
.award-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-art svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.32));
}
.award-name {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  background: rgba(0, 23, 68, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
}

/* Vector sizes — desktop spec: outer 100-150px, mid 90-130px, inner 80-120px */
.award-o1 .award-art, .award-o2 .award-art,
.award-o3 .award-art, .award-o4 .award-art { width: 124px; height: 124px; }
.award-o5 .award-art { width: 128px; height: 128px; }
.award-m1 .award-art, .award-m2 .award-art,
.award-m3 .award-art, .award-m4 .award-art,
.award-m5 .award-art { width: 110px; height: 110px; }
.award-i1 .award-art, .award-i2 .award-art,
.award-i3 .award-art, .award-i4 .award-art { width: 96px; height: 96px; }

/* Positions (% of the shared infographic) — fixed by structure */
.award-o1 { left: 18.9%; top: 18.9%; }
.award-o2 { left: 81.1%; top: 18.9%; }
.award-o3 { left: 18.9%; top: 81.1%; }
.award-o4 { left: 81.1%; top: 81.1%; }
.award-o5 { left: 50%;   top: 92%; }

.award-m1 { left: 31.5%; top: 31.5%; }
.award-m2 { left: 50%;   top: 29%; }
.award-m3 { left: 78%;   top: 50%; }
.award-m4 { left: 31%;   top: 69%; }
.award-m5 { left: 69%;   top: 69%; }

.award-i1 { left: 42%;   top: 42%; }
.award-i2 { left: 58%;   top: 42%; }
.award-i3 { left: 42%;   top: 58%; }
.award-i4 { left: 58%;   top: 58%; }

/* Vectors are completely still — no float, no orbit, no pulse. */
.award-art { animation: none; }

/* ---------------- RIGHT 40% — white login panel ---------------- */
.login-card {
  flex: 0 0 36%;
  width: 36%;
  max-width: none; /* overrides the 440px cap from the earlier .login-card rule above */
  height: 90%;
  position: relative;
  z-index: 10;
  background: #FFFFFF;
  margin: 0 0 0 1.5%;
  border-radius: 48px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 34px;
  box-sizing: border-box;
  overflow: hidden;
}

.login-card-inner {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Branding: org logos in one row, then the official SPARK logo */
.login-org-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.login-org-logo { width: auto; height: auto; object-fit: contain; }
.login-org-habit { width: 158px; }
.login-org-hcl { width: 174px; }
.login-org-divider {
  width: 2px;
  height: 40px;
  background: #CBD5E1;
  border-radius: 2px;
  flex: 0 0 auto;
  display: block;
}

.login-spark-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

/* Heading */
.login-welcome {
  font-size: 36px;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}
.login-spark-word {
  background: linear-gradient(90deg, #FF6B00 0%, #7B2FF7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}
.login-tagline {
  font-size: 16px;
  color: #64748B;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  margin: 0 0 22px;
}

/* Role selector — segmented control */
.role-selector {
  display: flex;
  width: 100%;
  background: #F1F5F9;
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 22px;
  box-sizing: border-box;
}
.role-option {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.role-option.is-active {
  background: #FFFFFF;
  color: #7B2FF7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.role-option:hover { color: #7B2FF7; }

/* Email + OTP form */
.login-form { width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; }
.login-form .form-group { margin-bottom: 18px; }
.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
  font-family: 'Poppins', sans-serif;
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
}
.input-wrapper:focus-within {
  border-color: #7B2FF7;
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.10);
}
.input-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.input-wrapper input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #0F172A;
  background: transparent;
  box-sizing: border-box;
}
.input-wrapper input::placeholder { color: #94A3B8; }
.input-wrapper.otp-wrapper input { padding-right: 118px; }

.btn-send-otp {
  position: absolute;
  right: 7px;
  top: 7px;
  bottom: 7px;
  height: 42px;
  padding: 0 18px;
  background: #FF6B00;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-send-otp:hover { background: #E05D00; }
.btn-send-otp:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-login-gradient {
  width: 100%;
  height: 60px;
  margin-top: auto;
  margin-bottom: 28px;
  background: linear-gradient(90deg, #FF6B00 0%, #7B2FF7 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(123, 47, 247, 0.30);
  transition: all 0.2s ease;
}
.btn-login-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(123, 47, 247, 0.42);
}
.btn-login-gradient:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-login-icon { font-size: 19px; }

/* ---------------- Responsive ---------------- */
@media (max-height: 820px) {
  .award-infographic { width: min(92vh, 60vw); }
  .award-o1 .award-art, .award-o2 .award-art,
  .award-o3 .award-art, .award-o4 .award-art { width: 110px; height: 110px; }
  .award-o5 .award-art { width: 114px; height: 114px; }
  .award-m1 .award-art, .award-m2 .award-art,
  .award-m3 .award-art, .award-m4 .award-art,
  .award-m5 .award-art { width: 96px; height: 96px; }
  .award-i1 .award-art, .award-i2 .award-art,
  .award-i3 .award-art, .award-i4 .award-art { width: 82px; height: 82px; }
  .award-name { font-size: 12.5px; padding: 3px 9px; }
  .login-card { padding: 28px 28px; }
  .login-welcome { font-size: 32px; }
  .login-spark-logo { width: 122px; margin-bottom: 12px; }
  .login-org-habit { width: 136px; }
  .login-org-hcl { width: 150px; }
  .login-org-divider { height: 34px; }
}

@media (max-height: 700px) {
  .login-card { overflow-y: auto; }
  .login-welcome { font-size: 28px; }
  .input-wrapper { height: 50px; }
  .btn-login-gradient { height: 50px; }
  .login-org-habit { width: 106px; }
  .login-org-hcl { width: 118px; }
  .login-org-divider { height: 28px; }
  .login-spark-logo { width: 96px; }
  .role-option { padding: 9px 6px; }
  .login-form .form-group { margin-bottom: 14px; }
}

/* Narrow/mobile widths: drop the decorative artwork, login card fills the screen */
@media (max-width: 860px) {
  .login-shell { width: 100vw; height: 100vh; }
  .login-brand-panel { display: none; }
  .login-card {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    padding: 28px 20px;
  }
  .login-card-inner { max-width: 420px; }
}


/* ============================================================
   POPPINS TYPOGRAPHY TIERS (portal-wide)
   Poppins is the primary font throughout the SPARK portal.
   Regular (400)  = body text
   Medium (500)   = labels
   SemiBold (600) = buttons & section headings
   Bold (700)     = major headings
   ExtraBold (800)= prominent titles
   ============================================================ */
body {
  font-family: 'Poppins', 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 400;
}
p, span, div, li, td, th, table, ul, ol { font-family: 'Poppins', sans-serif; }
input, select, textarea { font-family: 'Poppins', sans-serif; font-weight: 400; }

h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; }
h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 600; }
p { font-weight: 400; }

label, .label, .field-label, .form-label, .modal-label,
.stat-label, .notif-sub, .feed-card-action, .award-name,
.badge-card-from, .score-scale-hint { font-family: 'Poppins', sans-serif; font-weight: 500; }

button, .btn, .btn-primary, .btn-secondary, .btn-danger, .btn-ghost,
.btn-login-gradient, .btn-send-otp, .role-option, .btn-switch-role,
.btn-logout, .modal-actions button, .btn-submit, .btn-cancel,
.menu-toggle, .badge-btn, .pagination button { font-family: 'Poppins', sans-serif; font-weight: 600; }

a { font-family: 'Poppins', sans-serif; font-weight: 500; }
strong, b { font-family: 'Poppins', sans-serif; font-weight: 700; }

.section-title, .section-card-header h3, .sidebar-nav a,
.notif-title, .card-title, .main-heading { font-family: 'Poppins', sans-serif; font-weight: 700; }

.sidebar-title, .topbar-title, .login-welcome, .feed-card-heading,
.modal-title, .profile-name, .badge-card-name, .stat-value,
.whb-title, .prev-winners-title, .exec-title,
.notif-unread .notif-title { font-family: 'Poppins', sans-serif; font-weight: 800; }

/* ============================================================
   HOME DASHBOARD — INTER TYPOGRAPHY + COMPACT UPGRADE
   Scope: My Activity / Corporate Activity tabs, quick-action row,
   My Recent Posts, and the Notifications panel (right 24-26%).
   Everything else (sidebar, header, colours, logic) untouched.
   ============================================================ */
.home-layout,
.home-tabs, .home-tab, .home-tab-label, .home-tab-icon,
.qa-grid, .qa-card, .qa-label, .qa-hint,
.home-main .section-card, .home-main .section-card-header h3,
.home-main .feed-card, .home-main .feed-card-title, .home-main .feed-card-time,
.home-main .feed-card-body, .home-main .feed-card-heading, .home-main .feed-card-action,
.home-main .feed-action, .home-main .feed-comment, .home-main .feed-comment-input,
.home-main .activity-card, .home-main .badge-card, .home-main .badge-card-name,
.home-panel .section-card, .home-panel .section-card-header h3,
.home-panel .notif-card, .home-panel .notif-title, .home-panel .notif-time,
.home-panel .notif-desc, .home-panel .notif-sub, .home-panel .panel-group-head,
.home-panel .notif-actions .btn-sm, .home-view-all {
  font-family: 'Inter', 'Poppins', sans-serif;
}

/* ---- Tabs: wide white rounded container, 3px active underline ---- */
.home-tabs {
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.home-tab {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-bottom: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.home-tab-icon { display: inline-flex; align-items: center; }
.home-tab-icon svg { width: 16px; height: 16px; }
.home-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
.home-tab.active {
  color: var(--primary);
  background: var(--blue-light);
  font-weight: 600;
}
.home-tab.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

/* ---- Columns: main feed + fixed 24-26% notifications panel ---- */
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 28%, 430px);
  gap: 20px;
  align-items: start;
}
.home-main { min-width: 0; }
.home-panel { min-width: 0; }

/* ---- "View All" / link ---- */
.home-view-all {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.home-view-all:hover { text-decoration: underline; }

/* ---- Section cards inside Home are compact ---- */
.home-main .section-card-header,
.home-panel .section-card-header {
  padding: 12px 16px;
}
.home-main .section-card-header h3,
.home-panel .section-card-header h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.home-panel .section-card-header h3 svg { width: 17px; height: 17px; }

/* ---- Quick actions: 5 equal cards ---- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.qa-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 7px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.qa-card:hover {
  border-color: var(--royal);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}
.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qa-icon svg { width: 20px; height: 20px; }
.qa-blue .qa-icon   { background: var(--blue-light);  color: var(--royal); }
.qa-orange .qa-icon { background: var(--orange-light); color: var(--orange); }
.qa-green .qa-icon  { background: var(--green-light);  color: var(--green); }
.qa-purple .qa-icon { background: #f5f3ff;            color: #8b5cf6; }
.qa-yellow .qa-icon { background: var(--yellow-light); color: var(--yellow); }
.qa-label { font-size: 12.5px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.qa-hint { font-size: 10.5px; font-weight: 400; color: var(--text-muted); }
@media (max-width: 1200px) {
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Corporate Activity: create buttons with the same SPARK icons as My Activity ---- */
.ca-create-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ca-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ca-create-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ca-create-icon svg { width: 15px; height: 15px; }
.ca-ann { background: var(--orange-light); color: var(--orange); }
.ca-evt { background: var(--green-light); color: var(--green); }
.ca-create-btn:hover .ca-create-icon .spark {
  animation: sparkTwinkle 0.8s ease-in-out infinite;
  transform-origin: center;
}

/* ---- Feed cards: compact, time to the right of the row ---- */
.feed-card {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.feed-card-head { align-items: center; }
.feed-card-head > .feed-card-time { margin-left: auto; }
.feed-avatar { width: 38px; height: 38px; font-size: 13px; }
.feed-avatar svg { width: 18px; height: 18px; }
.feed-card-title { font-size: 13.5px; }
.feed-card-time { font-size: 11px; }
.feed-card-body { font-size: 13.5px; }
.feed-card-heading { font-size: 14px; }
.feed-pill svg { width: 10px; height: 10px; vertical-align: -1px; }
.feed-card-actions {
  margin-top: 10px;
  padding-top: 8px;
}
.feed-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
}
.feed-action svg { width: 16px; height: 16px; }
.feed-action-liked { color: var(--red); }
.feed-action-liked svg { fill: currentColor; }
.feed-more { display: inline-flex; align-items: center; }
.feed-more svg { width: 18px; height: 18px; }
.feed-menu-item { display: flex; align-items: center; gap: 6px; }
.feed-menu-item svg { width: 14px; height: 14px; }
.feed-comment-pin-tag svg { width: 11px; height: 11px; vertical-align: -2px; }
.feed-comment-del { display: inline-flex; align-items: center; gap: 2px; vertical-align: -2px; }
.feed-comment-del svg { width: 12px; height: 12px; }
.feed-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.feed-event-meta svg { width: 13px; height: 13px; }
.btn-secondary svg, .btn-primary svg {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* ---- My Activity engagement + badge rows ---- */
.activity-card-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-card-icon svg { width: 15px; height: 15px; }
.badge-card-icon { color: var(--orange); }
.badge-card-icon svg { width: 20px; height: 20px; }

/* ---- Notifications panel: bigger + taller, soft circular SPARK icons ---- */
.panel-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 11.5px;
  padding: 16px 16px 10px;
  letter-spacing: 0.7px;
}
.panel-group-head svg { width: 15px; height: 15px; }
.notif-card {
  gap: 14px;
  padding: 15px 16px;
  margin-bottom: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 36, 97, 0.05);
}
.notif-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-icon svg { width: 28px; height: 28px; }
.notif-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.notif-sub { font-size: 11.5px; }
.notif-desc { font-size: 12.5px; margin-top: 3px; }
.notif-unread .notif-title { font-weight: 800; }
.notif-time { font-size: 11.5px; margin-top: 4px; }
.notif-actions { margin-top: 10px; }
.notif-actions .btn-sm { display: inline-flex; align-items: center; gap: 5px; }
.btn-send-wish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #c4b5fd;
  background: #faf5ff;
  color: #7c3aed;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.08);
  transition: all 0.2s ease;
}
.btn-send-wish:hover {
  background: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.btn-send-wish.anniversary {
  background: #ffedd5;
  color: #ea580b;
  border-color: #fed7aa;
  box-shadow: 0 1px 2px rgba(234, 88, 11, 0.08);
}
.btn-send-wish.anniversary:hover {
  background: #ffffff;
  border-color: #f97316;
  box-shadow: 0 2px 8px rgba(234, 88, 11, 0.2);
}
.btn-send-wish svg { width: 14px; height: 14px; }
.btn-view-winners {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid #ca8a03;
  background: #fef9c3;
  color: #ca8a03;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12);
  transition: all 0.2s ease;
}
.btn-view-winners:hover {
  background: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.btn-view-winners svg { width: 14px; height: 14px; }
.notif-wish-sent { display: inline-flex; align-items: center; gap: 4px; }
.notif-wish-sent svg { width: 12px; height: 12px; }
.feed-pill { display: inline-flex; align-items: center; gap: 3px; }

/* ---- Illustrated Home icons: subtle hover-only life ---- */
.qa-card .qa-icon svg,
.notif-card .notif-icon svg {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qa-card:hover .qa-icon svg { transform: scale(1.09) rotate(-3deg); }
.notif-card:hover .notif-icon svg { transform: scale(1.1) rotate(-2deg); }
.qa-card:hover .qa-icon .spark,
.notif-card:hover .notif-icon .spark {
  animation: sparkTwinkle 0.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes sparkTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}
