/* HashAdv Design System v6.0 — iOS26 Minimal + Gamification */
/* ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --red:     #E31E24;
  --red-dim: rgba(227,30,36,0.13);
  --yellow:  #ff9800;
  --blue:    #3b6fd4;
  --green:   #34c759;
  /* Dark Theme (default) */
  --bg:      #0a0a0f;
  --bg2:     #111118;
  --surface: #16161e;
  --surface2:#1e1e28;
  --surface3:#252530;
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.12);
  --text:    #f0f0f5;
  --text2:   #c8c8d8;
  --muted:   #6b7080;
  --success: #2e7d32;
  --success-light: #34c759;
  --info:    #3b6fd4;
  --warning: #ff9800;
  --danger:  #E31E24;
  /* Glass */
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.1);
  --glass-blur:   12px;
  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 16px 60px rgba(0,0,0,0.7);
  /* Radii */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-circle: 50%;
  /* Transitions */
  --t-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --t-mid:    280ms cubic-bezier(0.4,0,0.2,1);
  --t-spring: 450ms cubic-bezier(0.34,1.56,0.64,1);
  --t-smooth: 280ms cubic-bezier(0.4,0,0.2,1);
  /* Legacy aliases */
  --card: var(--surface);
  --accent: var(--red);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.app-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes screen-fade-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes screen-slide-left {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes spring-in {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes xp-fill {
  from { width: 0%; }
  to   { width: var(--xp-pct, 50%); }
}
@keyframes xp-pop {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  50%  { opacity: 1; transform: translateY(-32px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-64px) scale(1); }
}
@keyframes achievement-slide {
  0%   { transform: translateY(120%) scale(0.9); opacity: 0; }
  15%  { transform: translateY(0) scale(1.02); opacity: 1; }
  80%  { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(120%) scale(0.95); opacity: 0; }
}
@keyframes confetti-drop {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes overdue-pulse {
  0%, 100% { border-color: rgba(230,57,70,0.5); box-shadow: 0 0 0 0 rgba(230,57,70,0); }
  50%       { border-color: rgba(230,57,70,1); box-shadow: 0 0 0 8px rgba(230,57,70,0.2); }
}
@keyframes ios26-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ios26-scale-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ios26-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,30,36,0.45), 0 8px 32px rgba(0,0,0,0.6); }
  50%       { box-shadow: 0 0 0 22px rgba(227,30,36,0), 0 8px 32px rgba(0,0,0,0.6); }
}
@keyframes ios26-form-slide {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ios26-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-9px) scale(1.01); }
}
@keyframes ios26-spin { to { transform: rotate(360deg); } }
@keyframes streak-bounce {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}
@keyframes level-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(227,30,36,0.3); }
  50%       { box-shadow: 0 0 24px rgba(227,30,36,0.7); }
}

/* ── App Screens ────────────────────────────────────────────────────────── */
.app-screen {
  display: none;
  width: 100%;
}
.app-screen.active {
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
  animation: screen-fade-in 0.35s cubic-bezier(0.4,0,0.2,1);
}
.screen { padding-bottom: 90px; }

.app-sub-screen {
  animation: screen-slide-left 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── App Splash ─────────────────────────────────────────────────────────── */
.app-splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, #1a0812 0%, #050510 50%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.app-splash-logo {
  background: #fff;
  border-radius: 16px;
  padding: 20px 36px;
  margin-bottom: 28px;
}
.app-splash-logo img {
  height: 48px;
  display: block;
}
.app-splash-label {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
#app-header {
  display: none; /* set to flex by JS */
  flex-shrink: 0;
  position: relative;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(8,8,14,0.88);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 8px;
  overflow: visible;
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
/* Inject logo into header */
.hdr-left::before {
  content: '';
  display: block;
  width: 37px;
  height: 37px;
  background: #fff url('https://hashadv.in/wp-content/uploads/2023/12/Asset-21logo.png') center/70% no-repeat;
  border-radius: 9px;
  flex-shrink: 0;
}

.hdr-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Krona One', 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.3px;
  z-index: 1;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.hdr-left button,
.hdr-right button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text2);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
  position: relative;
}
.hdr-left button:hover,
.hdr-right button:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
}

.hdr-slot { width: 34px; height: 34px; }

/* Role switcher pill in header */
.hdr-role-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.hdr-role-btn:hover { background: var(--surface-2, rgba(255,255,255,0.08)); color: var(--text); }

/* Legacy .app-header class — used by older desktop header (dash-header) */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  background: rgba(8,8,14,0.82);
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.42);
}

.header-left  { display: flex; align-items: center; gap: 14px; }
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.app-header .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}
.header-back-btn, .header-home-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.header-logo-wrap {
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
}
.header-logo-wrap img { height: 28px; display: block; }
.header-title { color: var(--text); font-weight: 700; font-size: 15px; }

.header-subline {
  display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: wrap;
}
.header-subline span { font-size: 11px; }

.ist-clock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(227,30,36,0.11);
  border: 1px solid rgba(227,30,36,0.22);
  border-radius: 99px;
  padding: 2px 10px;
  color: #ff7272;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.session-timer {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 99px;
  padding: 2px 10px;
  color: #6b7080;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sign-out-btn {
  background: rgba(227,30,36,0.10);
  border: 1px solid rgba(227,30,36,0.24);
  color: #ff7272;
  border-radius: 99px;
  font-size: 12px;
  padding: 6px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.sign-out-btn:hover {
  background: rgba(227,30,36,0.20);
  border-color: rgba(227,30,36,0.42);
}

.divider { width: 1px; height: 28px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.app-sidebar {
  width: 240px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease, flex-basis 0.25s ease;
  z-index: 10;
  padding: 8px 0;
}

.sidebar-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  margin: 2px 8px;
  width: calc(100% - 16px);
  color: var(--text2);
  cursor: pointer;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  transform: translateX(2px);
}
.sidebar-item.active {
  background: rgba(255,255,255,0.09);
  color: var(--blue);
  font-weight: 600;
}
.sidebar-item .nav-icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-item .nav-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2; }
.sidebar-item .nav-label { font-size: 13px; line-height: 1.3; flex: 1; }

.sidebar-action-item { width: calc(100% - 16px); margin: 2px 8px; }
.sidebar-logout-item { color: var(--danger); }

/* Collapsed sidebar */
body.sidebar-collapsed .app-sidebar { width: 70px; flex: 0 0 70px; }
body.sidebar-collapsed .sidebar-item { justify-content: center; padding: 12px 8px; margin: 2px 4px; width: calc(100% - 8px); }
body.sidebar-collapsed .sidebar-item:hover { transform: none; }
body.sidebar-collapsed .sidebar-item .nav-label { display: none; }

/* ── BOTTOM NAV (iOS Floating Dock) ─────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 48px);
  max-width: 420px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 850;
  align-items: center;
  background: rgba(14,14,22,0.78);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 44px;
  height: 64px;
  padding: 0 6px;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.38),
    0 1px 4px rgba(0,0,0,0.22),
    0 0 0 0.5px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.10) inset;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 767px) {
  .bottom-nav { display: flex; }
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.30);
  padding: 8px 2px 6px;
  position: relative;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
  min-width: 0;
  overflow: visible;
}

/* Top indicator line */
.bnav-item::before { display: none; }
.bnav-item.active::before { display: none; }

/* Ripple */
.bnav-item::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: radial-gradient(circle, rgba(227,30,36,0.15) 0%, transparent 70%);
  opacity: 0;
  border-radius: 8px;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.4s ease;
  pointer-events: none;
}
.bnav-item:active::after { opacity: 1; transform: scale(1); transition: none; }

.bnav-icon {
  font-size: 19px;
  line-height: 1;
  display: block;
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
  margin-top: 2px;
}
.bnav-item.active .bnav-icon { transform: translateY(-3px) scale(1.12); }
.bnav-item:active .bnav-icon { transform: scale(0.86); transition-duration: 0.07s; }

.bnav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.22s ease, max-height 0.22s ease, color 0.25s ease;
  white-space: nowrap;
  text-transform: none;
  min-height: 0;
}
.bnav-item.active .bnav-label { opacity: 1; max-height: 14px; color: var(--red); }
.bnav-item.active { color: var(--red); }

.bnav-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  min-width: 14px; height: 14px;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  border: 1.5px solid #08080e;
  line-height: 1; z-index: 3;
}

.bnav-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; }

/* ── Body padding for bottom nav ────────────────────────────────────────── */
@media (max-width: 767px) {
  body.has-bnav .tab-content,
  body.has-bnav .dash-body,
  body.has-bnav #emp-content,
  body.has-bnav .app-screen,
  body.has-bnav .employee-content {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-bnav .sticky-toggle-btn   { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  body.has-bnav .sticky-add-btn      { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  body.has-bnav .sticky-restore-btn  { bottom: calc(168px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  body.has-bnav .sticky-announce-btn { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); left: 16px; right: auto; }
  body.has-bnav #emp-add-task-fab,
  body.has-bnav #admin-add-task-fab  { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  .pomo-ticker:not(.pomo-header) { display: none !important; }
  .header-right .notif-wrap,
  .header-right #mute-icon,
  .header-right .divider,
  .header-right .sign-out-btn,
  .header-right #pomo-ticker,
  .dash-header-right .notif-wrap,
  .dash-header-right #mute-icon,
  .dash-header-right .divider,
  .dash-header-right .sign-out-btn,
  .dash-header-right #pomo-ticker { display: none !important; }
  .pomo-header .pomo-panel {
    position: fixed !important;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important; top: auto !important;
    max-height: 70vh; overflow-y: auto; min-width: 220px;
  }
  .notif-panel {
    position: fixed !important;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important; right: 12px !important; top: auto !important;
    width: auto !important; max-height: 62vh !important;
    border-radius: 16px !important;
  }
  .dash-header .notif-panel,
  .app-header .notif-panel { bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; top: auto !important; }
}

/* ── Desktop/Mobile Layout Modes ────────────────────────────────────────── */
body.mobile-mode #app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body.mobile-mode #app-sidebar { display: none !important; }
body.mobile-mode #app-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.desktop-mode #app {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
body.desktop-mode #app-sidebar {
  display: flex !important;
  flex-direction: column;
  flex-shrink: 0;
}
body.desktop-mode .bottom-nav { display: none !important; }
/* Hide nav/sidebar while clock-in gate is active */
body[data-locked] #bottom-nav,
body[data-locked] .app-sidebar { display: none !important; }
body.desktop-mode #app-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
body.desktop-mode.sidebar-collapsed #app-sidebar {
  width: 70px; flex: 0 0 70px;
}
body.desktop-mode.sidebar-collapsed .sidebar-item { justify-content: center; padding: 12px 8px; }
body.desktop-mode.sidebar-collapsed .sidebar-item .nav-label { display: none; }

/* ── Gamification Components ─────────────────────────────────────────────── */

/* XP Bar */
.xp-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  position: relative;
}
.xp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, #ff7272 50%, #ff9800 100%);
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  animation: xp-fill 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Level Badge */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--red), #0071e3);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  animation: level-glow 3s ease-in-out infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.level-badge.gold { background: linear-gradient(135deg, #ff9800, #f5c542); color: #1a0f00; }
.level-badge.platinum { background: linear-gradient(135deg, #b0b8d4, #7a8aaa); color: #fff; }

/* Streak Badge */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,149,0,0.13);
  border: 1px solid rgba(255,149,0,0.28);
  color: #ffb74d;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  animation: streak-bounce 2s ease-in-out infinite;
}
.streak-fire { font-size: 14px; }

/* Achievement Toast */
.achievement-toast {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20,20,28,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(227,30,36,0.35);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 24px rgba(227,30,36,0.22);
  max-width: min(380px, 90vw);
  animation: achievement-slide 3.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
  pointer-events: none;
}
.achievement-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.achievement-text { flex: 1; }
.achievement-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.achievement-desc {
  font-size: 12px;
  color: #6b7080;
  margin-top: 2px;
}

/* XP Pop animation (floating +XP number) */
.xp-pop {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 16px;
  font-weight: 900;
  color: #34c759;
  text-shadow: 0 2px 8px rgba(52,199,89,0.6);
  animation: xp-pop 1.2s ease-out forwards;
}

/* Gamification Profile section */
.gami-profile-hero {
  padding: 24px 20px 16px;
  text-align: center;
}
.gami-avatar-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
}
.gami-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 3px rgba(227,30,36,0.5), 0 8px 24px rgba(0,0,0,0.5);
}
.gami-upload-btn {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gami-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.gami-role {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.gami-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.gami-xp-section {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 0 16px 16px;
}
.gami-xp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gami-xp-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.gami-xp-count { font-size: 12px; color: var(--text2); font-weight: 700; }
.gami-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 16px 16px;
}
.gami-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.gami-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.gami-stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.profile-logout-btn {
  width: calc(100% - 32px);
  margin: 8px 16px 16px;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 0;
  display: block;
}
.card-title {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; text-align: left; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border2); }
.stat-card.stat-danger { border-color: rgba(227,30,36,0.3); background: rgba(227,30,36,0.04); }
.stat-val, .stat-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -1px; }
.stat-lbl, .stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-bottom: 20px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.92; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-red {
  background: linear-gradient(135deg, #E31E24, #bf181d);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(227,30,36,0.28);
}
.btn-red:hover:not(:disabled) { box-shadow: 0 7px 22px rgba(227,30,36,0.42); }
.btn-green {
  background: linear-gradient(135deg, #34c759, #2a7a38);
  color: #fff; border-color: transparent;
}
.btn-blue {
  background: linear-gradient(135deg, #3b6fd4, #1a5cbd);
  color: #fff; border-color: transparent;
}
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border2); }
.btn-outline { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: var(--text2); }
.btn-outline:hover:not(:disabled) { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
.btn-danger { background: rgba(227,30,36,0.12); border-color: rgba(227,30,36,0.26); color: #ff7272; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-xs { padding: 3px 7px; font-size: 11px; border-radius: 6px; }
.w-100 { width: 100%; justify-content: center; }
.mt-8 { margin-top: 8px; }
.mb-12 { margin-bottom: 12px; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s, transform 0.15s;
  position: relative;
  flex-shrink: 0;
}
.btn-icon:hover { background: rgba(255,255,255,0.11); transform: scale(1.06); }

/* ── Task Screen Shell ───────────────────────────────────────────────────── */
.task-screen-wrap {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.task-screen-hdr {
  padding: 24px 20px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.tsh-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tsh-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}

.tsh-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tsh-total {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.tsh-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.tsh-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red) 0%, #ff9800 100%);
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.tsh-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.task-list {
  padding: 4px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Task Cards ──────────────────────────────────────────────────────────── */
.task-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.055);
  border-left: 3px solid transparent;
  border-radius: 16px;
  padding: 18px 18px 14px;
  position: relative;
  transition: opacity 0.25s ease;
}

/* status-coded left accent */
.task-card.in-progress    { border-left-color: var(--info); }
.task-card.completed      { border-left-color: var(--success-light); opacity: 0.55; }
.task-card.overdue        { border-left-color: var(--danger); animation: overdue-pulse 1.8s ease-in-out infinite; }
.task-card.pending-review { border-left-color: #ffb703; }
.task-card.recheck        { border-left-color: var(--danger); background: rgba(230,57,70,0.03); }

.overdue-bar {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(230,57,70,0.07);
  border-radius: 10px;
  color: var(--red);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.overdue-bar input[type="number"] { width: 70px; }

.task-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.task-client {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.task-desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.55;
}
.task-desc.done {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
}

.task-row3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.task-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.task-timer-row {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(59,111,212,0.15);
  padding-top: 12px;
}

.task-reviews {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item {
  background: rgba(255,183,3,0.05);
  border: 1px solid rgba(255,183,3,0.15);
  border-radius: 12px;
  padding: 12px 14px;
}
.review-item.review-acked {
  background: rgba(76,175,80,0.05);
  border-color: rgba(76,175,80,0.15);
  opacity: 0.75;
}

.review-header { margin-bottom: 6px; }
.review-comment { font-size: 13px; color: var(--text2); line-height: 1.55; }
.review-comment.done { text-decoration: line-through; color: var(--muted); }
.review-actions { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.review-reply-input {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text2);
  border-radius: 8px; padding: 7px 10px; font-size: 12px; width: 100%; outline: none;
}
.review-reply-input:focus { border-color: rgba(255,183,3,0.5); }

/* ── Flags & Badges ──────────────────────────────────────────────────────── */
.flag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 700;
}
.flag-high   { background: rgba(227,30,36,0.13); border: 1px solid rgba(227,30,36,0.32); color: #ff7272; }
.flag-medium { background: rgba(255,152,0,0.12);  border: 1px solid rgba(255,152,0,0.32); color: #ffb74d; }
.flag-low    { background: rgba(52,199,89,0.12);  border: 1px solid rgba(52,199,89,0.32); color: #34c759; }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; vertical-align: middle; margin-left: 4px;
}
.badge-pending         { background: rgba(255,255,255,0.07); color: var(--muted); }
.badge-in_progress     { background: rgba(59,111,212,0.13); color: #7aabff; }
.badge-completed       { background: rgba(52,199,89,0.13); color: #34c759; }
.badge-paused          { background: rgba(255,152,0,0.12); color: #ffb74d; }
.badge-pending_review  { background: rgba(255,183,3,0.10); color: #ffb74d; }
.badge-recheck         { background: rgba(227,30,36,0.13); color: #ff7272; }
.badge-red    { background: rgba(227,30,36,0.13); color: #ff7272; }
.badge-yellow { background: rgba(255,152,0,0.13); color: #ffb74d; }
.badge-gray   { background: rgba(255,255,255,0.07); color: var(--muted); }
.badge-green  { background: rgba(52,199,89,0.13); color: #34c759; }
.badge-blue   { background: rgba(59,111,212,0.13); color: #7aabff; }
.row-pending-review td { background: rgba(255,183,3,0.03); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }
input, select, textarea {
  width: 100%; padding: 10px 13px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(227,30,36,0.46);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.10);
}
textarea { resize: vertical; }
select option { background: #1c1c26; color: var(--text); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px; font-size: 13px;
}
.form-control:focus { border-color: rgba(227,30,36,0.46); box-shadow: 0 0 0 3px rgba(227,30,36,0.10); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 64px; }
.form-error  { color: #ff7272; font-size: 12px; margin-top: 4px; }
.form-success { color: #34c759; font-size: 12px; margin-top: 4px; }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; padding: 14px 28px;
  background: rgba(8,8,14,0.68);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 8px 20px; border: none; border-radius: 10px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--muted);
  font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.tab-btn.active { background: var(--red); color: #fff; font-weight: 700; }
.tab-btn:hover:not(.active) { background: var(--surface2); color: var(--text); }
.tab-content { padding: 28px; display: flex; flex-direction: column; gap: 24px; max-width: 1200px; }

/* ── Admin Home (Screen 1) ──────────────────────────────────────────────── */
.admin-home-shell { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.admin-subnav {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.admin-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; cursor: pointer;
  padding: 6px 12px; border-radius: 8px;
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 500;
  transition: all 0.2s ease;
}
.admin-back-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--border2); }
.admin-back-btn.active { background: rgba(10,132,255,0.12); color: #60A5FA; border-color: rgba(10,132,255,0.3); }
.htab-btn {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 7px 16px; border-radius: 8px;
  font-family: 'Poppins', 'Inter', sans-serif;
  transition: all 0.18s ease; white-space: nowrap;
}
.htab-btn:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.htab-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Leave photo grid ────────────────────────────────────────────────────── */
.leav-photo-wrap {
  position: relative; display: inline-flex; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
}
.leav-photo-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; }
.leav-photo-approved .leav-photo-img { border-color: #34c759; }
.leav-photo-pending  .leav-photo-img { border-color: #ffb703; }
.leav-photo-rejected .leav-photo-img { border-color: #e63946; opacity: 0.6; }
.leav-photo-tip {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: rgba(18,18,28,0.96); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  padding: 6px 10px; font-size: 11px; color: #fff; white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5); z-index: 200; text-align: center; line-height: 1.4;
}
.leav-photo-wrap:hover .leav-photo-tip { display: block; }
/* keep old init classes for any legacy refs */
.leav-init-circle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 8px; font-weight: 700; flex-shrink: 0; }
.leav-init-approved { background: rgba(52,199,89,0.18); color: #34c759; border: 1px solid rgba(52,199,89,0.3); }
.leav-init-pending  { background: rgba(255,183,3,0.18);  color: #ffb703; border: 1px solid rgba(255,183,3,0.3); }
.leav-init-rejected { background: rgba(230,57,70,0.15);  color: #e63946; border: 1px solid rgba(230,57,70,0.25); }
.leav-init-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.leav-dot-approved { background: rgba(52,199,89,0.5);  border: 1px solid #34c759; }
.leav-dot-pending  { background: rgba(255,183,3,0.5);  border: 1px solid #ffb703; }
.leav-dot-holiday  { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); }

/* ── Skeleton loading ───────────────────────────────────────────────────── */
@keyframes skel-pulse {
  0%,100% { opacity: 0.5; } 50% { opacity: 1; }
}
.skel {
  background: var(--surface2);
  border-radius: 10px;
  animation: skel-pulse 1.4s ease-in-out infinite;
}
.skel-card { height: 100px; }
.ins-skel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
@media (min-width: 600px) { .ins-skel-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Insights screen ────────────────────────────────────────────────────── */
.ins-wrap { padding: 16px; max-width: 900px; width: 100%; }
.ins-section-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}

.ins-scores-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 600px) { .ins-scores-grid { grid-template-columns: repeat(5, 1fr); } }

.ins-score-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 14px; position: relative; overflow: hidden;
}
.ins-score-overall {
  background: rgba(245,197,24,0.07);
  border-color: rgba(245,197,24,0.22);
}
.ins-score-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 6px; }
.ins-score-val {
  font-size: 28px; font-weight: 800; color: var(--text); line-height: 1;
  font-family: 'Krona One', 'Poppins', sans-serif; letter-spacing: -0.5px;
}
.ins-score-overall .ins-score-val { color: var(--yellow, #F5C518); }
.ins-score-unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.ins-trend { font-size: 13px; font-weight: 700; margin-left: 4px; }
.ins-trend.up   { color: #34c759; }
.ins-trend.flat { color: var(--muted); }
.ins-trend.dn   { color: #e63946; }
.ins-score-bar-wrap {
  height: 3px; background: var(--surface3); border-radius: 99px; margin-top: 10px; overflow: hidden;
}
.ins-score-bar { height: 100%; background: var(--yellow, #F5C518); border-radius: 99px; transition: width 0.6s ease; }

.ins-tier-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 600px) { .ins-tier-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ins-tier-grid { grid-template-columns: repeat(5, 1fr); } }

.ins-tier-card {
  background: var(--tb, var(--surface)); border: 1px solid var(--tbdr, var(--border));
  border-radius: 14px; padding: 14px 12px;
}
.ins-tier-hd { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.ins-tier-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--tc, #888);
}
.ins-tier-label { font-size: 11px; font-weight: 700; color: var(--tc, var(--text)); flex: 1; }
.ins-tier-count {
  font-size: 18px; font-weight: 800; color: var(--tc, var(--text));
  font-family: 'Krona One', sans-serif;
}
.ins-avatar-row {
  display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
}
.ins-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); flex-shrink: 0;
}
.ins-avatar-name { font-size: 12px; color: var(--text2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-avatar-score { font-size: 11px; font-weight: 700; color: var(--muted); }
.ins-tier-empty { font-size: 11px; color: var(--muted); }

.ins-flags-list { display: flex; flex-direction: column; gap: 8px; }
.ins-flag-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(230,57,70,0.05); border: 1px solid rgba(230,57,70,0.14);
  border-radius: 12px; padding: 12px 14px;
}
.ins-flag-info { flex: 1; min-width: 0; }
.ins-flag-name { font-size: 13px; font-weight: 700; color: var(--text); }
.ins-flag-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ins-flag-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(230,57,70,0.12); color: #e63946;
  border: 1px solid rgba(230,57,70,0.22); border-radius: 6px; padding: 2px 8px; flex-shrink: 0;
}

/* ── Employee card grid ─────────────────────────────────────────────────── */
.el-cards-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%;
}
@media (min-width: 640px)  { .el-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .el-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.el-emp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s ease;
}
.el-emp-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.18); border-color: var(--border2); }
.el-emp-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.el-emp-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); flex-shrink: 0;
}
.el-emp-info { flex: 1; min-width: 0; }
.el-emp-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  outline: none; border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}
.el-emp-name:focus { border-bottom-color: var(--border2); }
.el-emp-meta { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.el-emp-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 0; border-top: 1px solid var(--border);
}
.el-emp-field-label {
  font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.6px; width: 72px; flex-shrink: 0;
}
.el-emp-actions {
  display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}

/* neon green → yellow for admin ui role badge */
body.admin-ui .role-badge {
  background: rgba(245,197,24,0.1) !important;
  color: var(--yellow, #F5C518) !important;
  border: none;
}

.admin-subnav-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  font-family: 'Krona One', 'Poppins', sans-serif; letter-spacing: -0.2px;
}

.tab-content.admin-tab {
  padding: 20px; gap: 0; overflow-y: auto; flex: 1;
  display: flex; flex-direction: column;
}

/* Section label */
.admin-section-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 20px 0 10px;
  font-family: 'Poppins', 'Inter', sans-serif;
}
.admin-section-label:first-child { padding-top: 4px; }

/* Live employee list — pill rows */
.admin-live-list { display: flex; flex-direction: column; gap: 6px; }
.admin-live-empty {
  color: var(--muted); font-size: 13px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 40px; display: inline-block;
}
.admin-live-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  transition: all 0.2s ease;
}
.admin-live-item:hover {
  transform: translateY(-1px);
  border-color: var(--border2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ali-left { display: flex; align-items: center; gap: 10px; }
.ali-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ali-name { font-size: 13px; font-weight: 600; color: var(--text); font-family: 'Poppins', 'Inter', sans-serif; }
.ali-status {
  font-size: 11px; color: var(--green);
  display: flex; align-items: center; gap: 5px;
  font-family: 'Poppins', 'Inter', sans-serif;
}
.ali-status::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.ali-time {
  font-size: 12px; font-weight: 600; color: var(--text2);
  font-variant-numeric: tabular-nums;
  font-family: 'Poppins', 'Inter', sans-serif;
}
.ali-task { font-size: 10px; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stats grid */
.admin-stats-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-stat-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: all 0.2s ease;
  position: relative; overflow: hidden;
}
.admin-stat-mini:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
/* Highlight first stat */
.admin-stats-compact .admin-stat-mini:first-child {
  background: linear-gradient(135deg, rgba(10,132,255,0.1) 0%, rgba(10,132,255,0.03) 100%);
  border-color: rgba(10,132,255,0.2);
}
.asm-icon { color: var(--muted); line-height: 1; margin-bottom: 2px; }
.asm-number {
  font-size: 34px; font-weight: 800; color: var(--text); line-height: 1;
  font-family: 'Krona One', 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}
.asm-label {
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 500;
}

/* Tools grid — People (square cards, 2-col mobile / 4-col desktop) */
.admin-tools-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.admin-tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; cursor: pointer; color: var(--text);
  font-family: 'Poppins', 'Inter', sans-serif;
  min-height: 90px;
  transition: all 0.2s ease;
}
.admin-tool-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--border2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.admin-tool-card:active { transform: scale(0.97); transition: transform 0.1s ease; }
.admin-tool-card.active {
  border-color: rgba(10,132,255,0.35);
  background: rgba(10,132,255,0.06);
}
.atc-icon { color: var(--muted); line-height: 1; }
.atc-label {
  font-size: 11px; font-weight: 600; color: var(--text);
  text-align: center; line-height: 1.3;
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Operations grid — horizontal list */
#tab-content .admin-tools-grid:last-of-type {
  grid-template-columns: 1fr;
  gap: 8px;
}
#tab-content .admin-tools-grid:last-of-type .admin-tool-card {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  padding: 14px 18px;
  min-height: 52px;
  gap: 14px;
  border-radius: 12px;
}
#tab-content .admin-tools-grid:last-of-type .atc-label {
  flex: 1;
  text-align: left;
  font-size: 13px;
}
#tab-content .admin-tools-grid:last-of-type .admin-tool-card::after {
  content: '→';
  color: var(--muted);
  font-size: 15px;
  margin-left: auto;
  transition: transform 0.2s ease, color 0.2s ease;
}
#tab-content .admin-tools-grid:last-of-type .admin-tool-card:hover {
  transform: translateY(-1px) scale(1);
}
#tab-content .admin-tools-grid:last-of-type .admin-tool-card:hover::after {
  transform: translateX(3px);
  color: var(--text2);
}

@media (min-width: 768px) {
  .admin-tools-grid { grid-template-columns: repeat(4, 1fr); }
  .tab-content.admin-tab { padding: 28px 32px; max-width: 1100px; margin: 0 auto; width: 100%; }
  .admin-stats-compact { grid-template-columns: repeat(4, 1fr); }
  #tab-content .admin-tools-grid:last-of-type { grid-template-columns: repeat(2, 1fr); }
}

.dash-tabs {
  display: flex; gap: 4px; padding: 8px 16px;
  border-bottom: 1px solid var(--border); overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(8,8,14,0.68);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.dash-tab {
  padding: 7px 16px; border: none; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 500;
  cursor: pointer; border-radius: 10px; white-space: nowrap;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.dash-tab:hover { background: rgba(255,255,255,0.06); color: var(--text2); }
.dash-tab.active { background: var(--red); color: #fff; }

/* ── Grid utils ─────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }

/* ── Dashboard Shell ─────────────────────────────────────────────────────── */
.dashboard-shell { display: flex; flex-direction: column; min-height: 0; width: 100%; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; flex-shrink: 0;
}
.dash-header-left  { display: flex; align-items: center; gap: 10px; }
.dash-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-logo { font-size: 18px; font-weight: 800; color: var(--text); }
.dash-role-badge {
  font-size: 11px; font-weight: 700; padding: 2px 10px;
  border-radius: 99px;
  background: rgba(227,30,36,0.13); color: #ff7272;
  border: 1px solid rgba(227,30,36,0.24);
}
.dash-body { flex: 1; padding: 16px 20px; overflow-x: visible; }

/* ── Employee Shell Classes ─────────────────────────────────────────────── */
.emp-shell { padding: 16px; }
.emp-quick-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.emp-quick-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.emp-quick-btn:hover { background: var(--surface2); border-color: var(--border2); transform: scale(1.02); }
.emp-quick-btn:active { transform: scale(0.97); }
.emp-quick-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.emp-quick-icon.green  { background: rgba(52,199,89,0.13); color: #34c759; }
.emp-quick-icon.red    { background: rgba(227,30,36,0.13); color: #ff7272; }
.emp-quick-icon.blue   { background: rgba(59,111,212,0.13); color: #7aabff; }
.emp-quick-icon.orange { background: rgba(255,152,0,0.13); color: #ffb74d; }
.emp-quick-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; }
.emp-quick-label { font-size: 13px; font-weight: 700; color: var(--text); }
.emp-quick-sub   { font-size: 10px; color: var(--muted); margin-top: 2px; }

.emp-clock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.emp-clock-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.emp-clock-streak { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* ── Notifications ───────────────────────────────────────────────────────── */
.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -5px;
  background: var(--red); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  min-width: 16px;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  border: 1.5px solid var(--bg);
  line-height: 1; z-index: 3;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 330px; max-height: 440px; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 9999; display: none;
}
.notif-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--surface);
}
.notif-item { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; gap: 10px; }
.notif-item.unread { background: rgba(227,30,36,0.04); }
.notif-bell-btn {
  position: relative; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 14px;
}

/* ── Pomodoro ────────────────────────────────────────────────────────────── */
.pomodoro-btn {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 12px; cursor: pointer; color: var(--text);
  font-family: monospace; font-size: 13px; font-weight: bold;
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.pomo-ticker {
  position: fixed; bottom: 16px; right: 16px; z-index: 200;
  display: flex; flex-direction: column-reverse; align-items: flex-end;
}
.pomo-btn-toggle {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: var(--text2); padding: 6px 14px; font-size: 13px;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: all 0.15s;
}
.pomo-btn-toggle:hover { border-color: rgba(227,30,36,0.42); color: #ff7272; }
.pomo-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 18px; padding: 14px; min-width: 200px; margin-bottom: 8px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.52);
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1500;
  display: none;
}
.pomo-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.pomo-close-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.pomo-display { font-size: 32px; font-weight: 800; color: var(--text); text-align: center; margin: 8px 0; letter-spacing: 2px; }
.pomo-bar-wrap { margin: 8px 0; }
.pomo-bar-track { width: 100%; height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.pomo-bar-fill  { height: 100%; border-radius: 3px; transition: width 1s linear, background 0.5s; }
.pomo-controls  { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.pomo-presets   { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pomo-preset-btn {
  background: var(--surface2); border: 1px solid rgba(255,255,255,0.10);
  color: var(--text2); border-radius: 8px; padding: 3px 8px; font-size: 11px; cursor: pointer;
}
.pomo-preset-btn:hover { border-color: rgba(227,30,36,0.42); color: #ff7272; }
.pomo-preset-btn.break-btn:hover { border-color: rgba(52,199,89,0.42); color: #34c759; }
.pomo-toast {
  background: rgba(255,183,3,0.08); border: 1px solid rgba(255,183,3,0.3);
  color: #ffb74d; border-radius: 6px; padding: 6px 10px; font-size: 12px; text-align: center; margin-top: 8px;
}
.pomo-custom-wrap { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.pomo-custom-lbl { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; }
.pomo-custom-inputs { display: flex; gap: 6px; align-items: center; }
.pomo-time-unit { display: flex; align-items: center; gap: 3px; flex: 1; }
.pomo-time-input {
  width: 100%; background: var(--surface2); border: 1px solid rgba(255,255,255,0.10);
  color: var(--text); border-radius: 5px; padding: 5px 4px; font-size: 13px; text-align: center; outline: none;
}
.pomo-time-input:focus { border-color: rgba(227,30,36,0.46); }
.pomo-time-lbl { font-size: 11px; color: var(--muted); }
.pomo-time-input::-webkit-outer-spin-button,
.pomo-time-input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; }
.pomo-time-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.pomo-header { position: relative !important; bottom: auto !important; right: auto !important; flex-direction: column; align-items: flex-end; z-index: 600; }
.pomo-header .pomo-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1500; min-width: 220px; max-height: 80vh; overflow-y: auto; }
.pomo-ticker:not(.pomo-header) .pomo-panel {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 2000; min-width: 260px; max-width: 320px; width: 90vw; margin-bottom: 0;
}
.pomo-header .pomo-btn-toggle { font-size: 12px; padding: 5px 12px; }

/* ── Pomodoro Screen (standalone) ────────────────────────────────────────── */
.ps-wrap { max-width: 380px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.ps-mode-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; transition: color 0.4s; }
.ps-display { font-size: 72px; font-weight: 800; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; font-family: -apple-system,'SF Mono','SFMono-Regular',Menlo,monospace; transition: color 0.4s; margin-bottom: 16px; }
.ps-display.pomo-running { animation: pomo-pulse 2s ease-in-out infinite; }
.ps-bar-wrap { width: 100%; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-bottom: 28px; }
.ps-bar { height: 100%; border-radius: 3px; transition: width 1s linear, background 0.5s; }
.ps-presets { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.ps-preset { padding: 7px 14px; background: var(--surface2); border: 1.5px solid rgba(255,255,255,0.10); border-radius: 20px; color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s, color 0.15s, background 0.15s; }
.ps-preset:active { transform: scale(0.88); }
.ps-preset:hover { border-color: rgba(227,30,36,0.5); color: #ff7272; }
.ps-preset-break:hover { border-color: rgba(52,199,89,0.5); color: #34c759; }
.ps-preset-active { border-color: #34c759 !important; color: #34c759 !important; background: rgba(52,199,89,0.10) !important; }
.ps-custom { display: flex; align-items: center; gap: 4px; margin-bottom: 28px; background: var(--surface2); border-radius: 14px; padding: 12px 16px; }
.ps-custom-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ps-custom-unit input { width: 56px; background: var(--surface3); border: 1px solid rgba(255,255,255,0.10); border-radius: 8px; color: var(--text); font-size: 20px; font-weight: 700; text-align: center; padding: 8px 4px; font-variant-numeric: tabular-nums; }
.ps-custom-unit input:focus { border-color: rgba(227,30,36,0.5); outline: none; }
.ps-custom-unit input::-webkit-outer-spin-button, .ps-custom-unit input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ps-custom-unit span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.ps-custom-sep { font-size: 22px; font-weight: 800; color: var(--muted); padding: 0 2px; margin-bottom: 16px; }
.ps-start-btn { width: 140px; height: 140px; border-radius: 50%; border: none; color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; letter-spacing: 0.5px; transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s; box-shadow: 0 8px 28px rgba(227,30,36,0.38); margin-bottom: 16px; }
.ps-start-btn:hover { transform: scale(1.07) translateY(-2px); }
.ps-start-btn:active { transform: scale(0.92); transition-duration: 0.08s; }
.ps-reset-btn { background: none; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 7px 20px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ps-reset-btn:hover { background: rgba(255,255,255,0.06); color: var(--text2); }

/* Pomodoro Screen (legacy — keep for other refs) */
.pomodoro-screen { max-width: 560px; margin: 0 auto; padding: 20px 16px; }
.pomodoro-main-card {
  border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 24px 16px; text-align: center;
}
.pomodoro-title { font-size: 20px; font-weight: 700; color: var(--text); }
.pomodoro-big-time { margin-top: 12px; font-size: 56px; line-height: 1; color: var(--text); font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.pomodoro-mode { margin-top: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.pomodoro-screen-controls { margin-top: 20px; display: flex; justify-content: center; gap: 12px; }

/* ── Tools Screen ────────────────────────────────────────────────────────── */
.tools-screen { padding: 20px 16px; max-width: 600px; margin: 0 auto; }
.tools-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px;
}
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tools-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 16px;
  border-radius: 18px;
  text-align: center;
  color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.tools-btn:hover  { background: var(--surface2); border-color: var(--border2); transform: scale(1.025); }
.tools-btn:active { transform: scale(0.97); }
.tools-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.tools-icon.green  { background: rgba(52,199,89,0.12); color: #34c759; }
.tools-icon.red    { background: rgba(227,30,36,0.12); color: #ff7272; }
.tools-icon.orange { background: rgba(255,152,0,0.12); color: #ffb74d; }
.tools-icon.blue   { background: rgba(59,111,212,0.12); color: #7aabff; }
.tools-icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; }
.tools-label { font-size: 14px; font-weight: 700; color: var(--text); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.data-table th {
  padding: 10px 12px; background: rgba(255,255,255,0.02);
  color: var(--muted); font-weight: 700; text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
  font-size: 10.5px; letter-spacing: 0.6px;
}
.data-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.038); color: var(--text2); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.row-overdue td   { border-left: 3px solid var(--red); background: rgba(227,30,36,0.03) !important; }
.row-important td { border-left: 3px solid var(--yellow); background: rgba(255,152,0,0.03) !important; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th { padding: 8px 10px; color: var(--muted); font-weight: 500; text-align: left; width: 40%; }
.detail-table td { padding: 8px 10px; color: var(--text); word-break: break-word; }
.detail-table tr { border-bottom: 1px solid var(--border); }

/* ── Progress bars ───────────────────────────────────────────────────────── */
.progress-track { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.progress-bar   { height: 100%; width: 0; background: #34c759; transition: width 1s linear; border-radius: 2px; }

/* Workload bars */
.workload-bar  { display: inline-block; width: 80px; height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 4px; }
.workload-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.wl-low  { background: #34c759; }
.wl-med  { background: #ff9800; }
.wl-high { background: var(--red); }
.mini-bar { display: inline-block; width: 60px; height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; vertical-align: middle; margin-right: 4px; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.74);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
}
.modal-box {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 24px;
  width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 48px 90px rgba(0,0,0,0.88);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-weight: 700; color: var(--text);
}
.modal-body   { padding: 16px 20px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 20px; border-top: 1px solid var(--border);
}
.modal-close {
  background: none; border: none; color: var(--muted); font-size: 20px;
  cursor: pointer; padding: 2px 6px; line-height: 1;
  border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.09); }
.priority-modal-box { border: 1px solid var(--red) !important; }

/* System modal (showModal) */
.sys-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}
.sys-modal-box {
  background: var(--surface2);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  width: 90%; max-width: 320px;
  animation: spring-in 0.25s ease forwards;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.sys-modal-title { margin-bottom: 12px; font-size: 18px; font-weight: 800; color: var(--text); }
.sys-modal-msg   { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.sys-modal-btns  { display: flex; gap: 12px; }

/* ── CRM Kanban (base — used by Sales role) ──────────────────────────────── */
.crm-kanban {
  display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 12px; align-items: flex-start; scroll-behavior: smooth;
  flex-direction: row; min-height: 200px;
}
.crm-kanban::-webkit-scrollbar { height: 6px; }
.crm-kanban::-webkit-scrollbar-track { background: var(--bg2); }
.crm-kanban::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.crm-col {
  flex: 0 0 240px; min-height: 120px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.crm-col-header {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
.crm-col-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--text2); }
.crm-col-count {
  font-size: 11px; background: rgba(255,255,255,0.07);
  color: var(--muted); padding: 2px 8px; border-radius: 99px;
}
.crm-col-body { padding: 8px; display: flex; flex-direction: column; gap: 6px;
  min-height: 60px; max-height: 65vh; overflow-y: auto; }
.crm-col-add {
  font-size: 12px; color: var(--muted); padding: 6px 8px; border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.09); text-align: center; cursor: pointer;
}
.crm-col-add:hover { border-color: rgba(0,212,255,0.4); color: #00D4FF; }
.crm-card {
  background: var(--surface2); border: 1px solid rgba(255,255,255,0.062);
  border-radius: 10px; padding: 10px; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.crm-card:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }
.crm-card-name  { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.crm-card-firm  { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.crm-card-phone { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.crm-card-req   { font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.crm-card-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.crm-stage-select, .crm-stage-select-sm {
  background: var(--surface3); border: 1px solid rgba(255,255,255,0.10);
  color: var(--text2); border-radius: 4px; padding: 2px 6px; font-size: 11px; cursor: pointer; flex: 1;
}

/* ── CRM Board — Admin (futuristic neon) ─────────────────────────────────── */
.crm-screen {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
}
.crm-toolbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  flex-shrink: 0; flex-wrap: wrap;
}
.crm-search-input {
  flex: 1; min-width: 160px; max-width: 320px;
  background: #141920; border: 1px solid rgba(0,212,255,0.15);
  border-radius: 10px; padding: 9px 14px; font-size: 13px;
  color: #fff; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.crm-search-input:focus {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.crm-search-input::placeholder { color: #555; }
.crm-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.crm-btn-add {
  background: #00D4FF; color: #020c10; border: none;
  border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.02em; white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.crm-btn-add:hover { opacity: 0.9; box-shadow: 0 0 16px rgba(0,212,255,0.35); }
.crm-btn-add:active { transform: scale(0.97); }
.crm-btn-icon {
  background: #141920; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: #888;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.crm-btn-icon:hover { color: #00D4FF; border-color: rgba(0,212,255,0.3); }

/* Stage pills */
.crm-stage-pills {
  display: flex; gap: 6px; padding: 0 16px 10px;
  overflow-x: auto; flex-shrink: 0; -webkit-overflow-scrolling: touch;
}
.crm-stage-pills::-webkit-scrollbar { height: 0; }
.crm-pill {
  flex-shrink: 0; background: transparent;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 4px 12px; font-size: 12px; font-weight: 500; color: #666;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.crm-pill:hover { color: #ccc; border-color: rgba(255,255,255,0.2); }
.crm-pill.active {
  background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.4);
  color: #00D4FF;
}

/* Board */
.crm-board-wrap {
  flex: 1; overflow-x: auto; overflow-y: hidden;
  padding: 0 16px 16px; -webkit-overflow-scrolling: touch;
}
.crm-board-wrap::-webkit-scrollbar { height: 5px; }
.crm-board-wrap::-webkit-scrollbar-track { background: transparent; }
.crm-board-wrap::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }
.crm-kanban {
  display: flex; gap: 10px; align-items: flex-start;
  min-height: calc(100% - 8px); flex-direction: row; padding-bottom: 4px;
}

/* Columns */
.crm-col {
  flex: 0 0 220px; display: flex; flex-direction: column;
  background: #11161C; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; overflow: hidden;
}
.crm-col-hd {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.crm-col-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.crm-col-title { flex: 1; font-size: 12px; font-weight: 600; color: #ccc; }
.crm-col-cnt {
  font-size: 11px; background: rgba(255,255,255,0.06);
  color: #555; padding: 1px 7px; border-radius: 99px;
}
.crm-col-add-btn {
  background: none; border: none; color: #444; font-size: 16px; line-height: 1;
  cursor: pointer; padding: 0 2px; transition: color 0.15s;
}
.crm-col-add-btn:hover { color: #00D4FF; }
.crm-col-bd {
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
  min-height: 80px; max-height: calc(100vh - 220px); overflow-y: auto; flex: 1;
}
.crm-col-bd::-webkit-scrollbar { width: 3px; }
.crm-col-bd::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.crm-col-empty {
  font-size: 11px; color: #333; padding: 8px; border-radius: 8px;
  border: 1px dashed #222; text-align: center; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.crm-col-empty:hover { border-color: rgba(0,212,255,0.3); color: #00D4FF; }

/* Cards */
.crm-card {
  background: #161C24; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 10px 10px 8px; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.crm-card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,212,255,0.06);
}
.crm-card-imp { border-color: rgba(167,139,250,0.25); }
.crm-card-imp:hover { border-color: rgba(167,139,250,0.5); box-shadow: 0 4px 16px rgba(167,139,250,0.08); }
.crm-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 4px;
}
.crm-card-name { font-size: 13px; font-weight: 600; color: #eee; line-height: 1.3; }
.crm-card-imp-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.crm-card-sub { font-size: 11px; color: #555; margin-bottom: 6px; }
.crm-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.crm-tag {
  font-size: 10px; background: rgba(255,255,255,0.05); color: #777;
  border-radius: 4px; padding: 2px 6px;
}
.crm-tag-muted { color: #444; font-style: italic; }

/* Hover-reveal card footer */
.crm-card-foot {
  display: flex; align-items: center; gap: 6px;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.15s, max-height 0.15s;
}
.crm-card:hover .crm-card-foot {
  opacity: 1; max-height: 40px;
}
.crm-stage-sel {
  flex: 1; background: #1a2030; border: 1px solid rgba(0,212,255,0.15);
  color: #aaa; border-radius: 6px; padding: 4px 6px; font-size: 11px; cursor: pointer; outline: none;
}
.crm-stage-sel option { background: #1a2030; }
.crm-card-del-btn {
  background: none; border: none; color: #444; cursor: pointer;
  padding: 2px; display: flex; align-items: center;
  transition: color 0.1s;
}
.crm-card-del-btn:hover { color: #EF4444; }

/* CRM Lead Modal */
.crm-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 3000; align-items: center; justify-content: center;
  overflow-y: auto; backdrop-filter: blur(8px);
}
.crm-modal-box {
  background: #11161C; border: 1px solid rgba(0,212,255,0.15);
  border-radius: 16px; width: 90%; max-width: 560px; margin: 20px auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.04);
}
.crm-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.crm-modal-title { font-size: 17px; font-weight: 700; color: #fff; }
.crm-modal-close {
  background: none; border: none; color: #555; cursor: pointer;
  padding: 4px; display: flex; align-items: center;
  transition: color 0.15s;
}
.crm-modal-close:hover { color: #fff; }
.crm-modal-body { padding: 16px 20px; }
.crm-modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.crm-field-full { grid-column: 1 / -1; }
.crm-imp-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #888; cursor: pointer;
}
.crm-imp-label input { accent-color: #A78BFA; width: 14px; height: 14px; }
.crm-imp-label:has(input:checked) { color: #A78BFA; }
.crm-modal-err { color: #EF4444; font-size: 12px; margin-top: 6px; }
.crm-modal-ft {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 20px 18px; border-top: 1px solid rgba(255,255,255,0.06);
}
.crm-btn-cancel {
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: #666; border-radius: 10px; padding: 9px 16px; font-size: 13px;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.crm-btn-cancel:hover { border-color: rgba(255,255,255,0.2); color: #aaa; }
.crm-btn-save {
  background: #00D4FF; color: #020c10; border: none;
  border-radius: 10px; padding: 9px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s, box-shadow 0.15s;
}
.crm-btn-save:hover { opacity: 0.9; box-shadow: 0 0 18px rgba(0,212,255,0.4); }

/* Lite theme overrides for CRM */
body.lite-theme .crm-screen { background: #f5f5f7; }
body.lite-theme .crm-search-input {
  background: #fff; border-color: rgba(0,0,0,0.1); color: #1c1c1e;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
body.lite-theme .crm-search-input::placeholder { color: #aaa; }
body.lite-theme .crm-btn-add { box-shadow: 0 2px 8px rgba(0,212,255,0.2); }
body.lite-theme .crm-btn-icon { background: #fff; border-color: rgba(0,0,0,0.1); color: #555; }
body.lite-theme .crm-pill { border-color: rgba(0,0,0,0.12); color: #999; }
body.lite-theme .crm-pill.active { background: rgba(0,100,200,0.08); border-color: rgba(0,100,200,0.3); color: #0064c8; }
body.lite-theme .crm-col { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
body.lite-theme .crm-col-hd { border-bottom-color: rgba(0,0,0,0.06); }
body.lite-theme .crm-col-title { color: #1c1c1e; }
body.lite-theme .crm-card { background: #f9f9fb; border-color: rgba(0,0,0,0.07); }
body.lite-theme .crm-card:hover { border-color: rgba(0,100,200,0.2); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
body.lite-theme .crm-card-name { color: #1c1c1e; }
body.lite-theme .crm-modal-box { background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
body.lite-theme .crm-modal-hd, body.lite-theme .crm-modal-ft { border-color: rgba(0,0,0,0.08); }
body.lite-theme .crm-modal-title { color: #1c1c1e; }
body.lite-theme .crm-stage-sel { background: #f2f2f7; border-color: rgba(0,0,0,0.1); color: #3a3a3c; }

/* ── Requirement Cards ───────────────────────────────────────────────────── */
.req-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
}
.req-card-priority { border-color: rgba(227,30,36,0.32); background: rgba(227,30,36,0.04); }
.req-card-overdue  { border-left: 3px solid var(--yellow); }
.req-card-header   { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.req-card-title    { font-size: 14px; font-weight: 600; color: var(--text); }
.req-meta          { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; margin: 6px 0; }
.req-progress      { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.req-progress-bar  { flex: 1; height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.req-progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), #ff7272); border-radius: 3px; transition: width 0.3s; }
.req-progress-label { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ── Subtasks ────────────────────────────────────────────────────────────── */
.req-subtasks { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.subtask-row {
  display: flex; align-items: flex-start; gap: 8px; padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.subtask-row input[type=checkbox] { margin-top: 3px; flex-shrink: 0; accent-color: var(--red); }
.subtask-row > span, .subtask-text { flex: 1; font-size: 13px; color: var(--text2); }
.strike { text-decoration: line-through; color: var(--muted); }
.subnotes { width: 100%; margin-top: 4px; padding-left: 16px; }
.subnote-row { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
.subnote-input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text); border-radius: 8px; padding: 3px 8px; font-size: 12px; outline: none;
}
.subnote-input:focus { border-color: rgba(255,183,3,0.5); }

/* ── Sticky Notes ────────────────────────────────────────────────────────── */
.sticky-toggle-btn {
  position: fixed; bottom: 84px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; background: linear-gradient(135deg,#ff9800,#e65100);
  color: #111; border: none; font-size: 15px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(255,152,0,0.38); z-index: 800;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, opacity 0.4s;
}
.sticky-toggle-btn:hover { transform: scale(1.08); }
.sticky-add-btn {
  position: fixed; bottom: 126px; right: 16px; z-index: 950;
  background: #34c759; color: #fff; border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 16px; line-height: 1;
  padding: 0; margin: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform 0.15s, opacity 0.4s;
}
.sticky-add-btn:hover { transform: scale(1.1); }
.sticky-restore-btn {
  position: fixed; bottom: 168px; right: 16px; z-index: 950;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.15); color: var(--text2);
  border-radius: 50%; width: 34px; height: 34px; font-size: 14px; line-height: 1;
  padding: 0; margin: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform 0.15s, opacity 0.4s;
}
.sticky-restore-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.3); transform: scale(1.1); }
/* Announce floats LEFT (mobile) */
.sticky-announce-btn {
  position: fixed; bottom: 84px; left: 16px; z-index: 950;
  background: var(--surface); border: 1px solid rgba(245,197,24,0.3); color: var(--yellow);
  border-radius: 50%; width: 34px; height: 34px; font-size: 14px; line-height: 1;
  padding: 0; margin: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform 0.15s, opacity 0.4s;
}
.sticky-announce-btn:hover { border-color: var(--yellow); transform: scale(1.1); }
/* Desktop: announce clears sidebar */
body.desktop-mode .sticky-announce-btn { left: 256px; bottom: 84px; }
body.desktop-mode.sidebar-collapsed .sticky-announce-btn { left: 86px; }

/* ── FAB center button inside bottom nav ─────────────────────────────────── */
.bnav-fab {
  flex: 1 !important;
  width: auto !important; height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.30) !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 8px 2px 6px !important;
  transition: color 0.25s ease !important;
}
.bnav-fab:hover  { transform: none !important; box-shadow: none !important; }
.bnav-fab:active { transform: scale(0.86) !important; transition-duration: 0.07s !important; }
.bnav-fab::before { content: '' !important; position: absolute !important; top: 0 !important; left: 50% !important; transform: translateX(-50%) scaleX(0) !important; width: 22px !important; height: 2.5px !important; border-radius: 0 0 3px 3px !important; background: var(--red) !important; transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1) !important; display: block !important; }
.bnav-fab.active::before { transform: translateX(-50%) scaleX(1) !important; }
.bnav-fab::after { display: none !important; }
.bnav-fab .bnav-icon svg { width: 22px; height: 22px; }
.bnav-fab.active { color: var(--red) !important; }
.bnav-fab.active .bnav-icon { transform: translateY(-3px) scale(1.12) !important; }

/* ── Employee Add Task FAB normalization ─────────────────────────────────── */
#emp-add-task-fab,
#admin-add-task-fab {
  width: 34px !important;
  height: 34px !important;
  left: 14px !important;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28) !important;
  z-index: 520 !important;
}
@media (min-width: 768px) {
  #emp-add-task-fab,
  #admin-add-task-fab {
    width: 34px !important;
    height: 34px !important;
    left: 18px !important;
    bottom: 72px !important;
  }
}

/* ── Emoji rendering normalization ───────────────────────────────────────── */
.emoji-safe,
.emoji-glyph,
.bnav-notif-title span,
.bnav-notif-msg,
#_notif-popup,
#_notif-popup * {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif !important;
  font-style: normal !important;
  font-variant-emoji: emoji;
  text-rendering: optimizeLegibility;
}
body.dark-theme .emoji-safe,
body.dark-theme .emoji-glyph,
body.dark-theme #_notif-popup,
body.dark-theme #_notif-popup * {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
}

/* ── App splash fade ─────────────────────────────────────────────────────── */
.app-splash { transition: opacity 0.2s ease; }

/* ── Pomodoro Sticky Top Bar ─────────────────────────────────────────────── */
.pomo-sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(14,14,22,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  opacity: 0; transition: opacity 0.25s ease;
}
.pomo-sticky-bar #psb-mode { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.pomo-sticky-bar #psb-time { font-variant-numeric: tabular-nums; font-size: 15px; }
.pomo-sticky-bar #psb-btn  { background: rgba(255,255,255,0.10); border: none; border-radius: 6px; color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; padding: 3px 10px; cursor: pointer; }
.pomo-sticky-bar #psb-btn:active { background: rgba(255,255,255,0.18); }
body.has-pomo-bar .app-header { top: 36px !important; }
body.has-pomo-bar .app-content-area { padding-top: 36px; }

/* ── Nav locked state (before clock-in) ─────────────────────────────────── */
.nav-locked { pointer-events: none !important; opacity: 0.28 !important; filter: blur(0.5px); transition: opacity 0.3s, filter 0.3s; }

/* ── Clock Gate Overlay ──────────────────────────────────────────────────── */
@keyframes cg-in  { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
@keyframes cg-out { from { opacity: 1; transform: scale(1); }   to { opacity: 0; transform: scale(0.96); } }
@keyframes cg-btn-pulse { 0%,100%{ box-shadow: 0 8px 40px rgba(52,199,89,0.45), 0 0 0 12px rgba(52,199,89,0.08); } 50%{ box-shadow: 0 8px 48px rgba(52,199,89,0.65), 0 0 0 18px rgba(52,199,89,0.05); } }

.clock-gate-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(8,8,16,0.88);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex; align-items: center; justify-content: center;
  animation: cg-in 0.32s cubic-bezier(0.4,0,0.2,1) forwards;
}
.clock-gate-overlay.cg-dismiss { animation: cg-out 0.38s cubic-bezier(0.4,0,0.2,1) forwards; }
.cg-inner { text-align: center; padding: 24px 32px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.cg-greeting { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.5); margin-bottom: 12px; letter-spacing: 0.2px; }
.cg-time { font-size: 68px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -2px; font-family: -apple-system,'SF Pro Display','Inter',sans-serif; }
.cg-date { font-size: 15px; color: rgba(255,255,255,0.45); margin-top: 6px; margin-bottom: 48px; font-weight: 400; }
.cg-clockin-btn {
  width: 148px; height: 148px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4cd964, #34c759 40%, #1a8c35 100%);
  box-shadow: 0 8px 40px rgba(52,199,89,0.45), 0 0 0 12px rgba(52,199,89,0.08);
  border: none; color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: 0.4px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s, opacity 0.2s;
  margin: 0 auto 28px;
  animation: cg-btn-pulse 2.4s ease-in-out infinite;
}
.cg-clockin-btn:hover  { transform: scale(1.08) translateY(-3px); }
.cg-clockin-btn:active { transform: scale(0.92); transition-duration: 0.08s; }
.cg-clockin-btn:disabled { animation: none; }
.cg-clockin-btn svg { display: block; }
.cg-clockin-btn span { font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.cg-msg { font-size: 13px; color: #ff6b6b; min-height: 18px; margin-top: 8px; }
.cg-missed-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,183,3,0.10); border: 1px solid rgba(255,183,3,0.28); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 24px; text-align: left; max-width: 320px;
  animation: cg-in 0.4s 0.1s both;
}
.cg-missed-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.cg-missed-text { font-size: 13px; color: rgba(255,255,255,0.80); line-height: 1.5; }

/* ── Employee Detail Card ────────────────────────────────────────────────── */
.el-detail-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-md); padding: 18px; margin-top: 4px;
  animation: fadeUp 0.2s ease;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.el-detail-top {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px;
}
.el-detail-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border2); flex-shrink: 0;
}
.el-card-name-input {
  font-size: 15px; font-weight: 600; width: 100%;
  background: transparent; border-color: transparent;
  padding: 4px 8px; margin-bottom: 0;
}
.el-card-name-input:not([readonly]):focus { background: var(--surface2); border-color: var(--yellow); }
.el-card-name-input[readonly] { cursor: default; pointer-events: none; }
.el-detail-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.el-detail-row:last-of-type { border-bottom: none; }
.el-detail-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.el-select-wrap { margin-bottom: 4px; }

/* ── Announcement Modal ──────────────────────────────────────────────────── */
.ann-modal-inner {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 20px; width: 100%; max-width: 440px;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.ann-modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 16px;
}
.ann-close-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 22px; line-height: 1; padding: 0 4px;
}
.ann-close-btn:hover { color: var(--text); }
.ann-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.ann-recipients-wrap {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); max-height: 180px; overflow-y: auto;
  padding: 6px 10px;
}
.ann-recipient-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; cursor: pointer; font-size: 13px; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.ann-recipient-item:last-child { border-bottom: none; }
.ann-recipient-item input { accent-color: var(--yellow); width: 15px; height: 15px; flex-shrink: 0; }
.ann-recipient-name { flex: 1; }
.ann-recipient-meta { color: var(--muted); font-size: 11px; }
.ann-textarea {
  width: 100%; min-height: 90px; resize: vertical; font-size: 13px;
}
.sticky-note {
  position: fixed; width: 200px; z-index: 900;
  background: #fff9c4; border-radius: 8px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.5); overflow: hidden;
}
.sticky-note-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px; background: #ffe082; cursor: move;
}
.sticky-drag-handle { color: #555; font-size: 16px; cursor: grab; line-height: 1; }
.sticky-del-btn     { background: none; border: none; color: #aaa; font-size: 13px; cursor: pointer; line-height: 1; padding: 0 2px; }
.sticky-del-btn:hover { color: #c00; }
.sticky-body { overflow: hidden; transition: max-height 0.25s ease; max-height: 200px; }
.sticky-note.collapsed .sticky-body { max-height: 0; }
.sticky-textarea {
  width: 100%; height: 100px; background: #fff9c4; border: none; resize: none;
  padding: 6px 8px; font-size: 12px; color: #333; font-family: inherit; outline: none;
}
.sticky-footer { padding: 2px 6px; background: #ffe082; display: flex; justify-content: flex-end; }
.sticky-chars  { font-size: 10px; color: #888; }

/* ── Role Switcher ───────────────────────────────────────────────────────── */
.role-switcher { display: flex; gap: 4px; }
.role-switch-btn {
  padding: 4px 13px; font-size: 11px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 99px;
  background: rgba(255,255,255,0.042); color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.role-switch-btn:hover { border-color: rgba(227,30,36,0.42); color: #ff7272; }
.role-switch-btn.active {
  background: rgba(227,30,36,0.14); border-color: rgba(227,30,36,0.42); color: #ff7272;
}

/* ── iOS26 Role Modal ────────────────────────────────────────────────────── */
.ios26-role-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.76);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ios26-role-modal {
  background: var(--surface2); border: 1px solid rgba(255,255,255,0.13);
  border-radius: 28px; width: 100%; max-width: 360px; padding: 32px 24px;
  box-shadow: 0 48px 90px rgba(0,0,0,0.88);
  animation: ios26-scale-in 0.28s 0.04s both;
}
.ios26-role-modal-title { font-size: 20px; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 6px; letter-spacing: -0.4px; }
.ios26-role-modal-sub   { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 24px; }
.ios26-role-cards       { display: flex; flex-direction: column; gap: 10px; }
.ios26-role-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface3); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s; text-align: left;
  font-family: 'Inter', sans-serif; width: 100%;
}
.ios26-role-card:hover  { background: var(--surface2); border-color: var(--border2); transform: scale(1.022); }
.ios26-role-card:active { transform: scale(0.98); }
.ios26-role-card.current { border-color: rgba(227,30,36,0.36); background: rgba(227,30,36,0.052); }
.ios26-role-icon  { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ios26-role-name  { font-size: 15px; font-weight: 700; color: var(--text); }
.ios26-role-desc  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ios26-role-enter { margin-left: auto; font-size: 11px; font-weight: 600; color: #ff7272; white-space: nowrap; flex-shrink: 0; }
.ios26-role-card.current .ios26-role-enter { color: var(--muted); }

/* ── iOS26 Component System ──────────────────────────────────────────────── */
.ios26-action-circle {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-family: 'Inter', sans-serif; flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s;
}
.ios26-action-circle.clock-in {
  background: radial-gradient(circle at 35% 35%, #34c759, #1a7a32);
  box-shadow: 0 8px 32px rgba(52,199,89,0.42), 0 0 0 8px rgba(52,199,89,0.09);
}
.ios26-action-circle.clock-out {
  background: radial-gradient(circle at 35% 35%, #ff7272, #E31E24);
  box-shadow: 0 8px 32px rgba(227,30,36,0.42), 0 0 0 8px rgba(227,30,36,0.09);
}
.ios26-action-circle.clock-in.disabled, .ios26-action-circle.clock-out.disabled { opacity: 0.32; cursor: not-allowed; }
.ios26-action-circle:not(.disabled):hover { transform: scale(1.07) translateY(-2px); }
.ios26-action-circle:not(.disabled):active { transform: scale(0.93); transition-duration: 80ms; }
.ios26-action-circle-icon { font-size: 38px; line-height: 1; }
.ios26-action-circle-text { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.93); letter-spacing: 0.5px; margin-top: 5px; }

.ios26-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ios26-quick-btn {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  cursor: pointer; text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  font-family: 'Inter', sans-serif; width: 100%;
}
.ios26-quick-btn:hover  { background: var(--surface3); border-color: var(--border2); transform: scale(1.025); }
.ios26-quick-btn:active { transform: scale(0.97); }
.ios26-quick-icon {
  font-size: 26px; line-height: 1;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ios26-quick-icon.blue   { background: rgba(59,111,212,0.16); }
.ios26-quick-icon.green  { background: rgba(52,199,89,0.13); }
.ios26-quick-icon.orange { background: rgba(255,152,0,0.13); }
.ios26-quick-icon.red    { background: rgba(227,30,36,0.13); }
.ios26-quick-label { font-size: 13px; font-weight: 600; color: var(--text2); line-height: 1.3; }

.ios26-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; margin-bottom: 20px; }
.ios26-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 16px; text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.ios26-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--ios26-a, #E31E24), var(--ios26-b, #ff7272));
}
.ios26-stat:hover { transform: translateY(-2px); border-color: var(--border2); }
.ios26-stat.green  { --ios26-a: #2a7a38; --ios26-b: #34c759; }
.ios26-stat.blue   { --ios26-a: #1a5cbd; --ios26-b: #3b6fd4; }
.ios26-stat.orange { --ios26-a: #e65100; --ios26-b: #ff9800; }
.ios26-stat-value  { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1.1; }
.ios26-stat-label  { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 4px; }

.ios26-progress-track { height: 6px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.ios26-progress-fill  { height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); background: linear-gradient(90deg,var(--red),#ff7272); }
.ios26-progress-fill.green  { background: linear-gradient(90deg,#2a7a38,#34c759); }
.ios26-progress-fill.blue   { background: linear-gradient(90deg,#1a5cbd,#3b6fd4); }
.ios26-progress-fill.multi  { background: linear-gradient(90deg,var(--red) 0%,#ff9800 50%,#34c759 100%); }

.ios26-workload-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ios26-workload-row:last-child { border-bottom: none; }
.ios26-workload-name  { font-size: 13px; color: var(--text2); width: 110px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios26-workload-track { flex: 1; height: 6px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.ios26-workload-fill  { height: 100%; border-radius: 99px; transition: width 0.6s; }
.ios26-workload-fill.low  { background: linear-gradient(90deg,#2a7a38,#34c759); }
.ios26-workload-fill.med  { background: linear-gradient(90deg,#e65100,#ff9800); }
.ios26-workload-fill.high { background: linear-gradient(90deg,#b71c1c,var(--red)); }
.ios26-workload-pct   { font-size: 12px; font-weight: 700; color: var(--muted); width: 36px; text-align: right; }

.ios26-spinner { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,0.10); border-top-color: var(--red); border-radius: 50%; animation: ios26-spin 0.8s linear infinite; }
.ios26-loading-center { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 20px; color: var(--muted); font-size: 14px; }

.ios26-section { margin-bottom: 28px; }
.ios26-section-title { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 14px; }

/* ── Priority Block Overlay ─────────────────────────────────────────────── */
.priority-block-overlay {
  position: fixed; inset: 0; background: rgba(227,30,36,0.12); z-index: 950;
  display: flex; align-items: center; justify-content: center;
}
.priority-block-popup {
  background: rgba(26,0,0,0.97); border: 2px solid var(--red); border-radius: 12px;
  padding: 28px 32px; max-width: 400px; width: 90%; text-align: center;
}
.priority-block-title { color: var(--red); font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.priority-block-msg   { color: var(--text2); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }

/* ── Designation sections ────────────────────────────────────────────────── */
.desig-section { margin-bottom: 24px; }
.desig-title   { font-size: 15px; font-weight: 700; color: var(--text2); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }

/* ── Login Page ──────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 28% 18%, #1a0812 0%, #050510 42%, #000 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.login-page::before {
  content: ''; position: absolute; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(227,30,36,0.13) 0%, transparent 68%);
  top: -220px; left: -220px; pointer-events: none;
}
.login-page::after {
  content: ''; position: absolute; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(59,111,212,0.09) 0%, transparent 68%);
  bottom: -110px; right: -110px; pointer-events: none;
}

.login-logo-wrap {
  background: rgba(255,255,255,0.97);
  border-radius: 20px; padding: 16px 34px; margin-bottom: 44px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.14);
  animation: ios26-fade-in 0.5s 0.1s both; position: relative; z-index: 2;
}
.login-logo-wrap img { height: 44px; display: block; }

.login-circle-wrap {
  position: relative; animation: ios26-float 4.2s ease-in-out infinite;
  margin-bottom: 32px; z-index: 2;
}
.login-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(227,30,36,0.09); border: 1.5px solid rgba(227,30,36,0.38);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 0 0 rgba(227,30,36,0.4), 0 8px 32px rgba(0,0,0,0.55);
  font-family: 'Inter', sans-serif;
}
.login-circle:hover {
  transform: scale(1.07); background: rgba(227,30,36,0.15); border-color: rgba(227,30,36,0.65);
  box-shadow: 0 0 44px rgba(227,30,36,0.28), 0 12px 40px rgba(0,0,0,0.55);
}
.login-circle:active { transform: scale(0.93); transition-duration: 80ms; }
.login-circle.glowing { animation: ios26-glow-pulse 2.1s ease-in-out infinite; }
.login-circle-icon { font-size: 40px; line-height: 1; margin-bottom: 5px; color: rgba(227,30,36,0.8); }
.login-circle-text {
  font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: rgba(227,30,36,0.75);
}

.login-form-wrap {
  width: 100%; max-width: 368px;
  display: none; flex-direction: column;
  animation: ios26-form-slide 0.38s 0.04s both;
  position: relative; z-index: 2;
}
.login-form-wrap.visible { display: flex; }

.login-card {
  background: rgba(20,20,28,0.92);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px; padding: 36px 32px;
  backdrop-filter: blur(26px) saturate(200%); -webkit-backdrop-filter: blur(26px) saturate(200%);
  box-shadow: 0 24px 80px rgba(0,0,0,0.72), 0 1px 0 rgba(255,255,255,0.08) inset;
}
.login-title {
  color: var(--text); font-size: 22px; font-weight: 800; text-align: center;
  letter-spacing: -0.5px; margin-bottom: 4px;
}
.login-sub { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 28px; }
.login-error-box {
  background: rgba(227,30,36,0.08); border: 1px solid rgba(227,30,36,0.28);
  color: #ff7272; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 14px;
}
.login-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.login-tab {
  flex: 1; min-width: 70px; padding: 7px 8px;
  border: 1px solid var(--border); border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.login-tab:hover { border-color: rgba(255,255,255,0.2); color: var(--text2); }
.login-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.login-footer-credit { color: rgba(255,255,255,0.18); font-size: 11px; text-align: center; margin-top: 24px; position: relative; z-index: 2; }
.login-footer-credit strong { color: rgba(255,255,255,0.30); }

/* ── Theme Toggle ────────────────────────────────────────────────────────── */
.theme-toggle-wrap {
  display: flex; align-items: center; gap: 5px; margin-right: 2px; flex-shrink: 0;
}
.theme-toggle {
  position: relative; display: inline-block;
  width: 52px; height: 30px; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent; vertical-align: middle;
}
.theme-toggle input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.theme-track {
  position: absolute; inset: 0; border-radius: 15px;
  background: #2c2c2e; border: 1px solid #3a3a3c; overflow: hidden;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease;
}
.theme-toggle input:checked ~ .theme-track {
  background: linear-gradient(135deg, var(--red) 0%, #0071e3 100%); border-color: transparent;
}
.theme-thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45), 0 0 0 0.5px rgba(0,0,0,0.12);
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease; z-index: 2;
}
.theme-toggle input:checked ~ .theme-track .theme-thumb {
  transform: translateX(22px);
  box-shadow: 0 2px 8px rgba(0,113,227,0.4), 0 0 0 0.5px rgba(255,255,255,0.2);
}
.theme-icon-moon, .theme-icon-sun {
  position: absolute; font-size: 11px; top: 50%; transform: translateY(-50%);
  transition: opacity 0.3s ease; pointer-events: none; z-index: 1; line-height: 1;
}
.theme-icon-moon { left: 6px; opacity: 0.85; }
.theme-icon-sun  { right: 5px; opacity: 0.3; }
.theme-toggle input:checked ~ .theme-track .theme-icon-moon { opacity: 0.25; }
.theme-toggle input:checked ~ .theme-track .theme-icon-sun  { opacity: 0.9; }
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.45s cubic-bezier(0.4,0,0.2,1),
              color 0.45s cubic-bezier(0.4,0,0.2,1),
              border-color 0.35s ease, box-shadow 0.35s ease,
              opacity 0.3s ease !important;
}

/* ── Bottom Nav Sheets ───────────────────────────────────────────────────── */
.bnav-sheet {
  position: fixed; inset: 0; z-index: 1100;
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.bnav-sheet.open { pointer-events: all; opacity: 1; }
.bnav-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.bnav-sheet-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(20,20,28,0.94);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 24px 24px 0 0;
  max-height: 88vh; overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.34,1.08,0.64,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bnav-sheet.open .bnav-sheet-content { transform: translateY(0); }
.bnav-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.18); margin: 12px auto 0; flex-shrink: 0;
}
.bnav-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px; flex-shrink: 0;
}
.bnav-sheet-title { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.bnav-sheet-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.10); border: none;
  color: var(--muted); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.bnav-sheet-close:hover { background: rgba(255,255,255,0.18); color: var(--text); }
.bnav-sheet-body { flex: 1; overflow-y: auto; padding: 4px 0 env(safe-area-inset-bottom, 16px); -webkit-overflow-scrolling: touch; }
.bnav-sheet-empty  { text-align: center; padding: 48px 20px; color: var(--muted); font-size: 15px; }
.bnav-sheet-loading { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }

.notif-sheet .bnav-sheet-content {
  background: rgba(20,20,28,0.85) !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
}

/* Notif sheet items — swipe-aware structure */
.bnav-notif-item { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.048); }
.bnav-notif-item:hover .notif-swipe-inner { background: rgba(255,255,255,0.025); }
.bnav-notif-unread .notif-swipe-inner { background: rgba(227,30,36,0.05); }
.bnav-notif-unread:hover .notif-swipe-inner { background: rgba(227,30,36,0.08); }
.bnav-notif-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1px solid rgba(255,255,255,0.18); flex-shrink: 0; margin-top: 5px; }
.bnav-notif-dot.active { background: var(--red); border-color: var(--red); box-shadow: 0 0 5px rgba(227,30,36,0.5); }
.bnav-notif-content { flex: 1; min-width: 0; }
.bnav-notif-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnav-notif-msg { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bnav-notif-time { font-size: 10px; color: rgba(255,255,255,0.22); margin-top: 3px; }

/* Focus/Pomodoro sheet */
.bnav-focus-sheet { padding: 24px 24px 32px; text-align: center; }
.bnav-pomo-display { font-size: 72px; font-weight: 800; color: var(--text); letter-spacing: 2px; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 6px; font-family: -apple-system,'SF Mono','SFMono-Regular',Menlo,monospace; }
.bnav-pomo-mode { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.bnav-pomo-track { height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; margin-bottom: 28px; }
.bnav-pomo-fill  { height: 100%; border-radius: 3px; transition: width 1s linear, background 0.5s; }
.bnav-pomo-btns  { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.pomo-start-main { min-width: 120px; font-size: 16px !important; font-weight: 800 !important; padding: 14px 28px !important; border-radius: 14px !important; letter-spacing: 0.5px; transition: transform 0.1s, box-shadow 0.2s !important; }
.pomo-start-main:active { transform: scale(0.94) !important; }
.bnav-pomo-presets { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.bnav-preset-btn { padding: 7px 16px; background: var(--surface2); border: 1px solid rgba(255,255,255,0.10); border-radius: 8px; color: var(--text2); font-size: 13px; cursor: pointer; transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s, color 0.15s; }
.bnav-preset-btn:hover { border-color: rgba(227,30,36,0.42); color: #ff7272; }
.bnav-preset-btn.break-preset:hover { border-color: rgba(52,199,89,0.42); color: #34c759; }
.bnav-preset-btn.preset-tap { transform: scale(0.88); }
@keyframes pomo-pulse { 0%,100%{opacity:1;} 50%{opacity:0.55;} }
.bnav-pomo-display.pomo-running { animation: pomo-pulse 2s ease-in-out infinite; }
.bnav-pomo-custom { background: var(--surface2); border-radius: 10px; padding: 14px 16px; text-align: left; }
.bnav-pomo-unit { display: flex; align-items: center; gap: 4px; flex: 1; }
.bnav-pomo-unit input { width: 100%; background: var(--surface3); border: 1px solid rgba(255,255,255,0.10); border-radius: 6px; color: var(--text); font-size: 16px; text-align: center; padding: 8px 4px; }
.bnav-pomo-unit input:focus { border-color: rgba(227,30,36,0.46); outline: none; }
.bnav-pomo-unit span { font-size: 12px; color: var(--muted); }

/* Tasks/Gamified sheet */
.bnav-tasks-hero { padding: 20px 20px 0; }
.bnav-tasks-level { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bnav-level-badge { background: linear-gradient(135deg, var(--red), #0071e3); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 99px; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.bnav-xp-wrap { flex: 1; }
.bnav-xp-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.bnav-xp-track { height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.bnav-xp-fill  { height: 100%; background: linear-gradient(90deg, var(--red), #0071e3); border-radius: 3px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.bnav-tasks-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.bnav-stat-pill { padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.bnav-progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bnav-progress-track { flex: 1; height: 8px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.bnav-progress-fill { height: 100%; background: linear-gradient(90deg, var(--red) 0%, #ff9500 50%, #34c759 100%); background-size: 200% 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.bnav-progress-label { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.bnav-motivate { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 16px; padding: 8px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.bnav-task-list { padding: 0 12px 12px; }
.bnav-task-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface2); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; transition: border-color 0.15s, opacity 0.2s; }
.bnav-task-card:hover { border-color: rgba(255,255,255,0.12); }
.bnav-task-done { opacity: 0.5; }
.bnav-task-status { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; min-width: 20px; text-align: center; }
.bnav-task-body { flex: 1; min-width: 0; }
.bnav-task-client { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.bnav-task-text { font-size: 13px; color: var(--text2); line-height: 1.4; word-break: break-word; }
.bnav-task-due  { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Utility classes ─────────────────────────────────────────────────────── */
.text-muted  { color: var(--muted) !important; }
.text-red    { color: var(--red) !important; }
.text-green  { color: #34c759 !important; }
.text-yellow { color: var(--yellow) !important; }
.text-danger { color: var(--red) !important; }
.text-blue   { color: #7aabff !important; }
.mono { font-family: monospace; }
.flex-1 { flex: 1; }
.pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ── Scrollbars ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.20); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tabs { padding: 8px 12px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-btn { padding: 6px 14px; font-size: 12px; }
  .tab-content { padding: 16px 12px; }
  .card { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 24px; }
  .login-card { padding: 28px 20px; border-radius: 22px; }
  .data-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
  .ios26-stats-grid { grid-template-columns: 1fr 1fr; }
  .ios26-action-circle { width: 100px; height: 100px; }
  .ios26-action-circle-icon { font-size: 30px; }
  .modal-overlay { align-items: flex-start; padding: 12px 8px; overflow-y: auto; }
  .modal-box { max-height: none; margin: 0; }
  [id$="-modal"] > div[style*="max-width"] { max-height: 90vh; overflow-y: auto; margin: 8px auto; }
  .gami-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .dash-header { padding: 8px 12px; }
  .dash-body   { padding: 10px 12px; }
  .crm-col     { flex: 0 0 200px; }
  .pomo-panel  { min-width: 170px; }
  .notif-panel { right: 8px; left: 8px; width: auto; }
  .modal-box   { margin: 0 8px; }
  .data-table  { min-width: 400px; }
  .btn-sm      { padding: 5px 8px; font-size: 11px; }
  .sticky-note { width: 160px; }
  .tools-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   LITE THEME
   ══════════════════════════════════════════════════════════════════════════ */
body.lite-theme {
  --red:     #e63946;
  --yellow:  #ff9500;
  --blue:    #0071e3;
  --bg:      #f2f2f7;
  --bg2:     #e5e5ea;
  --surface: #ffffff;
  --surface2:#f2f2f7;
  --surface3:#e5e5ea;
  --border:  rgba(60,60,67,0.18);
  --border2: rgba(60,60,67,0.28);
  --text:    #1c1c1e;
  --text2:   #3a3a3c;
  --muted:   #6c6c70;
  --success: #34c759;
  --info:    #0071e3;
  --card: #ffffff;
  --accent: #0071e3;
  background: var(--bg) !important;
  color: var(--text) !important;
}
body.lite-theme #app-header {
  background: rgba(242,242,247,0.82) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border-bottom: 1px solid rgba(60,60,67,0.12) !important;
  box-shadow: 0 0.5px 0 rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.05) !important;
}
body.lite-theme .hdr-inner .hdr-title { color: #1c1c1e; }
body.lite-theme .hdr-left button,
body.lite-theme .hdr-right button { color: #3a3a3c; }
body.lite-theme .hdr-left button:hover,
body.lite-theme .hdr-right button:hover { background: rgba(60,60,67,0.08); }
body.lite-theme .app-header,
body.lite-theme header.dash-header,
body.lite-theme .dash-header {
  background: rgba(242,242,247,0.82) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border-bottom: 1px solid rgba(60,60,67,0.12) !important;
  box-shadow: 0 0.5px 0 rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.05) !important;
}
body.lite-theme .app-sidebar {
  background: rgba(255,255,255,0.9);
  border-right-color: rgba(60,60,67,0.12);
}
body.lite-theme .sidebar-item:hover { background: rgba(60,60,67,0.07); }
body.lite-theme .sidebar-item.active { background: rgba(230,57,70,0.08); color: var(--red); }
body.lite-theme .tabs,
body.lite-theme .dash-tabs {
  background: rgba(242,242,247,0.9) !important;
  border-bottom: 1px solid rgba(60,60,67,0.1) !important;
}
body.lite-theme .tab-btn,
body.lite-theme .dash-tab { color: var(--muted) !important; background: transparent !important; }
body.lite-theme .tab-btn.active,
body.lite-theme .dash-tab.active { background: var(--red) !important; color: #fff !important; }
body.lite-theme .tab-btn:hover:not(.active),
body.lite-theme .dash-tab:hover { background: rgba(60,60,67,0.07) !important; color: var(--text) !important; }
body.lite-theme .card { background: #ffffff !important; border: 1px solid rgba(60,60,67,0.11) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important; }
body.lite-theme .card-title { color: var(--red) !important; border-bottom-color: rgba(60,60,67,0.09) !important; }
body.lite-theme .stat-card { background: #ffffff !important; border: 1px solid rgba(60,60,67,0.1) !important; }
body.lite-theme .stat-card.stat-danger { background: rgba(230,57,70,0.04) !important; border-color: rgba(230,57,70,0.22) !important; }
body.lite-theme .stat-val, body.lite-theme .stat-value { color: #1c1c1e !important; }
body.lite-theme .stat-lbl, body.lite-theme .stat-label { color: #6c6c70 !important; }
body.lite-theme .task-screen-hdr { background: #f2f2f7 !important; }
body.lite-theme .tsh-title       { color: #1c1c1e !important; }
body.lite-theme .tsh-count       { color: #1c1c1e !important; }
body.lite-theme .tsh-bar-wrap    { background: rgba(60,60,67,0.1) !important; }
body.lite-theme .task-card { background: #ffffff !important; border-color: rgba(60,60,67,0.09) !important; }
body.lite-theme .task-card.in-progress { border-left-color: #007aff !important; }
body.lite-theme .task-card.completed   { border-left-color: #34c759 !important; }
body.lite-theme .task-card.overdue { animation-name: overdue-pulse-lite !important; }
@keyframes overdue-pulse-lite {
  0%, 100% { border-color: rgba(230,57,70,0.4); box-shadow: 0 0 0 0 rgba(230,57,70,0); }
  50%       { border-color: rgba(230,57,70,0.9); box-shadow: 0 0 0 6px rgba(230,57,70,0.1); }
}
body.lite-theme .task-desc    { color: #3a3a3c !important; }
body.lite-theme .task-client  { color: var(--red) !important; }
body.lite-theme .task-meta    { color: #8a8a8e !important; }
body.lite-theme .task-desc.done { color: #aeaeb2 !important; }
body.lite-theme .task-timer-row { background: rgba(0,122,255,0.05) !important; border-color: rgba(0,122,255,0.18) !important; }
body.lite-theme .data-table th { background: #f9f9fb !important; color: #6c6c70 !important; border-bottom-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .data-table td { color: #1c1c1e !important; border-bottom-color: rgba(60,60,67,0.07) !important; }
body.lite-theme .data-table tr:hover td { background: rgba(0,0,0,0.015) !important; }
body.lite-theme .row-overdue td { border-left-color: var(--red) !important; background: rgba(230,57,70,0.02) !important; }
body.lite-theme .row-important td { border-left-color: #ff9500 !important; background: rgba(255,149,0,0.02) !important; }
body.lite-theme .detail-table th, body.lite-theme .detail-table td { color: var(--text) !important; }
body.lite-theme input, body.lite-theme select, body.lite-theme textarea, body.lite-theme .form-control {
  background: #ffffff !important; color: #1c1c1e !important; border-color: rgba(60,60,67,0.22) !important;
}
body.lite-theme input:focus, body.lite-theme select:focus, body.lite-theme textarea:focus, body.lite-theme .form-control:focus {
  border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(230,57,70,0.1) !important;
}
body.lite-theme .form-label { color: #6c6c70 !important; }
body.lite-theme input::placeholder, body.lite-theme textarea::placeholder { color: #aeaeb2 !important; }
body.lite-theme .btn-ghost, body.lite-theme .btn-outline {
  color: #3a3a3c !important; border-color: rgba(60,60,67,0.28) !important; background: transparent !important;
}
body.lite-theme .btn-ghost:hover, body.lite-theme .btn-outline:hover {
  background: rgba(60,60,67,0.07) !important; border-color: rgba(60,60,67,0.45) !important; color: #1c1c1e !important;
}
body.lite-theme .btn-icon { background: rgba(60,60,67,0.07) !important; border-color: rgba(60,60,67,0.15) !important; color: #3a3a3c !important; }
body.lite-theme .btn-icon:hover { background: rgba(60,60,67,0.13) !important; }
body.lite-theme .sign-out-btn { background: var(--red) !important; color: #fff !important; border: none !important; }
body.lite-theme .role-switch-btn { border-color: rgba(60,60,67,0.2) !important; color: #6c6c70 !important; background: transparent !important; }
body.lite-theme .role-switch-btn:hover { border-color: var(--red) !important; color: var(--red) !important; }
body.lite-theme .role-switch-btn.active { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
body.lite-theme .notif-panel { background: rgba(255,255,255,0.94) !important; backdrop-filter: blur(20px) saturate(180%) !important; border-color: rgba(60,60,67,0.13) !important; box-shadow: 0 8px 40px rgba(0,0,0,0.13) !important; }
body.lite-theme .notif-item { border-bottom-color: rgba(60,60,67,0.07) !important; }
body.lite-theme .notif-item.unread { background: rgba(230,57,70,0.035) !important; }
body.lite-theme .notif-header { background: rgba(249,249,251,0.96) !important; border-bottom-color: rgba(60,60,67,0.09) !important; }
body.lite-theme .pomo-btn-toggle { background: rgba(255,255,255,0.9) !important; border-color: rgba(60,60,67,0.15) !important; color: #1c1c1e !important; box-shadow: 0 1px 5px rgba(0,0,0,0.1) !important; }
body.lite-theme .pomo-panel { background: rgba(255,255,255,0.95) !important; backdrop-filter: blur(20px) !important; border-color: rgba(60,60,67,0.12) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important; }
body.lite-theme .pomo-display { color: #1c1c1e !important; }
body.lite-theme .pomo-bar-track { background: rgba(60,60,67,0.1) !important; }
body.lite-theme .pomo-panel-header { color: #6c6c70 !important; border-bottom-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .modal-overlay { background: rgba(0,0,0,0.32) !important; backdrop-filter: blur(4px) !important; }
body.lite-theme .modal-box { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; box-shadow: 0 16px 60px rgba(0,0,0,0.15) !important; }
body.lite-theme .modal-header { border-bottom-color: rgba(60,60,67,0.09) !important; color: #1c1c1e !important; }
body.lite-theme .login-page { background: #f2f2f7 !important; }
body.lite-theme .login-card { background: rgba(255,255,255,0.9) !important; backdrop-filter: blur(20px) !important; border-color: rgba(60,60,67,0.1) !important; box-shadow: 0 4px 30px rgba(0,0,0,0.09) !important; }
body.lite-theme .login-title { color: #1c1c1e !important; }
body.lite-theme .login-sub { color: #6c6c70 !important; }
body.lite-theme .login-tab { border-color: rgba(60,60,67,0.18) !important; color: #6c6c70 !important; }
body.lite-theme .login-tab.active { background: var(--red) !important; border-color: var(--red) !important; }
body.lite-theme .badge-red    { background: rgba(230,57,70,0.1) !important; color: #c91f2c !important; }
body.lite-theme .badge-yellow { background: rgba(255,149,0,0.1) !important; color: #b36800 !important; }
body.lite-theme .badge-gray   { background: rgba(60,60,67,0.1) !important; color: #6c6c70 !important; }
body.lite-theme .badge-green  { background: rgba(52,199,89,0.1) !important; color: #1a8c3a !important; }
body.lite-theme .badge-blue   { background: rgba(0,122,255,0.1) !important; color: #0055c4 !important; }
body.lite-theme .badge-in_progress { background: rgba(0,122,255,0.1) !important; color: #0055c4 !important; }
body.lite-theme .badge-completed   { background: rgba(52,199,89,0.1) !important; color: #1a8c3a !important; }
body.lite-theme .crm-stage-select, body.lite-theme .crm-stage-select-sm { background: #f2f2f7 !important; border-color: rgba(60,60,67,0.18) !important; color: #3a3a3c !important; }
body.lite-theme .req-card { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .req-card-title { color: #1c1c1e !important; }
body.lite-theme .req-meta { color: #8a8a8e !important; }
body.lite-theme .req-progress-bar { background: rgba(60,60,67,0.1) !important; }
body.lite-theme .subtask-row { border-bottom-color: rgba(60,60,67,0.08) !important; }
body.lite-theme .subtask-text { color: #3a3a3c !important; }
body.lite-theme .strike { color: #aeaeb2 !important; }
body.lite-theme .review-item { background: rgba(255,149,0,0.05) !important; border-color: rgba(255,149,0,0.2) !important; }
body.lite-theme .review-item.review-acked { background: rgba(52,199,89,0.05) !important; border-color: rgba(52,199,89,0.2) !important; }
body.lite-theme .review-comment { color: #3a3a3c !important; }
body.lite-theme .flag-high   { background: rgba(230,57,70,0.09) !important; border-color: rgba(230,57,70,0.25) !important; }
body.lite-theme .flag-medium { background: rgba(255,149,0,0.09) !important; border-color: rgba(255,149,0,0.25) !important; color: #b36800 !important; }
body.lite-theme .flag-low    { background: rgba(52,199,89,0.09) !important; border-color: rgba(52,199,89,0.25) !important; color: #1a8c3a !important; }
body.lite-theme .progress-track { background: rgba(60,60,67,0.1) !important; }
body.lite-theme .workload-bar   { background: rgba(60,60,67,0.1) !important; }
body.lite-theme .divider        { background: rgba(60,60,67,0.15) !important; }
body.lite-theme .text-muted     { color: #6c6c70 !important; }
body.lite-theme .text-yellow    { color: #b36800 !important; }
body.lite-theme .text-green     { color: #1a8c3a !important; }
body.lite-theme ::-webkit-scrollbar-track { background: rgba(0,0,0,0.04) !important; }
body.lite-theme ::-webkit-scrollbar-thumb { background: rgba(60,60,67,0.22) !important; }
body.lite-theme .bottom-nav {
  background: rgba(248,248,252,0.90) !important;
  backdrop-filter: blur(48px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(48px) saturate(200%) !important;
  border: 1px solid rgba(60,60,67,0.15) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(255,255,255,0.80) inset !important;
}
body.lite-theme .clock-gate-overlay { background: rgba(242,242,247,0.94) !important; }
body.lite-theme .cg-time { color: #1c1c1e !important; }
body.lite-theme .cg-date, body.lite-theme .cg-greeting { color: #6c6c70 !important; }
body.lite-theme .bnav-item { color: #8a8a8e !important; }
body.lite-theme .bnav-item.active { color: var(--red) !important; }
body.lite-theme .bnav-item::before { display: none !important; }
body.lite-theme .bnav-item.active .bnav-label { color: var(--red) !important; }
body.lite-theme .bnav-badge { border-color: #f2f2f7 !important; }
body.lite-theme .bnav-sheet-content { background: rgba(255,255,255,0.92) !important; border-top: 1px solid rgba(60,60,67,0.1) !important; }
body.lite-theme .bnav-sheet-handle  { background: rgba(60,60,67,0.2) !important; }
body.lite-theme .bnav-sheet-title   { color: #1c1c1e !important; }
body.lite-theme .bnav-sheet-close   { background: rgba(60,60,67,0.08) !important; color: #6c6c70 !important; }
body.lite-theme .bnav-notif-item        { border-bottom-color: rgba(60,60,67,0.08) !important; }
body.lite-theme .bnav-notif-title       { color: #1c1c1e !important; }
body.lite-theme .bnav-notif-msg         { color: #6c6c70 !important; }
body.lite-theme .bnav-notif-time        { color: rgba(60,60,67,0.4) !important; }
body.lite-theme .bnav-notif-item:hover .notif-swipe-inner  { background: rgba(60,60,67,0.04) !important; }
body.lite-theme .bnav-notif-unread .notif-swipe-inner      { background: rgba(227,30,36,0.04) !important; }
body.lite-theme .bnav-pomo-display  { color: #1c1c1e !important; }
body.lite-theme .bnav-task-card     { background: #f9f9fb !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .bnav-task-text     { color: #3a3a3c !important; }
body.lite-theme .ios26-stat         { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .ios26-quick-btn    { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .ios26-quick-btn:hover { background: #f2f2f7 !important; }
body.lite-theme .ios26-workload-track { background: rgba(60,60,67,0.1) !important; }
body.lite-theme .ios26-stat-value   { color: #1c1c1e !important; }
body.lite-theme .ios26-stat-label   { color: #6c6c70 !important; }
body.lite-theme .gami-profile-hero  { background: #f2f2f7; }
body.lite-theme .gami-xp-section    { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .gami-stat          { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .gami-stat-value    { color: #1c1c1e !important; }
body.lite-theme .tools-btn          { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .tools-btn:hover    { background: #f2f2f7 !important; }
body.lite-theme .emp-quick-btn      { background: #ffffff !important; border-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .emp-quick-btn:hover { background: #f2f2f7 !important; }
body.lite-theme .ist-clock { color: var(--red) !important; background: rgba(230,57,70,0.09) !important; border-color: rgba(230,57,70,0.2) !important; }
body.lite-theme .session-timer { color: #6c6c70 !important; background: rgba(60,60,67,0.08) !important; border-color: rgba(60,60,67,0.12) !important; }

/* Home Clock Button Lite Theme Fix */
body.lite-theme .home-clock-btn {
  background: #ffffff !important;
  color: var(--red) !important;
  box-shadow:
    0 0 0 1.5px rgba(0,0,0,0.06),
    0 0 0 10px rgba(227,30,36,0.04),
    0 20px 48px rgba(0,0,0,0.08),
    inset 0 1px 0 #fff !important;
}
body.lite-theme .home-clock-btn::after {
  background: #ffffff !important;
}
body.lite-theme .home-clock-btn.clocked-in {
  color: var(--success-light) !important;
  box-shadow:
    0 0 0 1.5px rgba(52,199,89,0.15),
    0 0 0 10px rgba(52,199,89,0.04),
    0 20px 48px rgba(0,0,0,0.08) !important;
}
body.lite-theme .home-clock-btn svg {
  opacity: 1;
}
body.lite-theme #app-header {
  background: rgba(255,255,255,0.92) !important;
  border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.04) !important;
}
body.lite-theme .hdr-title {
  color: #1c1c1e;
  font-weight: 700;
  letter-spacing: -0.2px;
}
body.lite-theme .hdr-left::before {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* ── Admin home — light theme polish ──────────────────────────────────── */
body.lite-theme {
  --bg:      #F2F2F7;
  --surface: #FFFFFF;
  --surface2: #F9F9FB;
  --surface3: #F2F2F7;
  --card:    #FFFFFF;
  --text:    #1C1C1E;
  --text2:   #3A3A3C;
  --muted:   #8E8E93;
  --border:  rgba(60,60,67,0.1);
  --border2: rgba(60,60,67,0.18);
  --blue:    #0A84FF;
  --green:   #34C759;
  --yellow:  #FF9F0A;
  --danger:  #FF3B30;
}
body.lite-theme .admin-live-item {
  background: #ffffff !important;
  border-color: rgba(60,60,67,0.1) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
body.lite-theme .admin-stat-mini {
  background: #ffffff !important;
  border-color: rgba(60,60,67,0.1) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05) !important;
}
body.lite-theme .admin-stats-compact .admin-stat-mini:first-child {
  background: rgba(10,132,255,0.05) !important;
  border-color: rgba(10,132,255,0.18) !important;
}
body.lite-theme .admin-tool-card {
  background: #ffffff !important;
  border-color: rgba(60,60,67,0.1) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
body.lite-theme .admin-tool-card:hover {
  background: #f9f9fb !important;
  border-color: rgba(60,60,67,0.18) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
}
body.lite-theme .admin-tool-card.active {
  border-color: rgba(10,132,255,0.3) !important;
  background: rgba(10,132,255,0.05) !important;
}
body.lite-theme .admin-subnav {
  background: rgba(255,255,255,0.96) !important;
  border-bottom-color: rgba(60,60,67,0.1) !important;
  backdrop-filter: blur(20px) !important;
}
body.lite-theme .admin-section-label { color: #8E8E93 !important; }
body.lite-theme .ali-status  { color: #30D158 !important; }
body.lite-theme .ali-status::before { background: #30D158 !important; }
body.lite-theme .ali-name    { color: #1C1C1E !important; }
body.lite-theme .ali-time    { color: #3A3A3C !important; }
body.lite-theme .asm-number  { color: #1C1C1E !important; }
body.lite-theme .asm-label   { color: #8E8E93 !important; }
body.lite-theme .atc-label   { color: #1C1C1E !important; }
body.lite-theme .atc-icon    { color: #8E8E93 !important; }
body.lite-theme .admin-back-btn { background: rgba(0,0,0,0.04) !important; border-color: rgba(60,60,67,0.12) !important; color: #3A3A3C !important; }
body.lite-theme .admin-back-btn:hover { background: rgba(0,0,0,0.07) !important; color: #1C1C1E !important; }
body.lite-theme .admin-subnav-title { color: #1C1C1E !important; }
/* Sidebar light */
body.lite-theme .app-sidebar { background: #FFFFFF !important; border-right-color: rgba(60,60,67,0.1) !important; }
body.lite-theme .sidebar-item { color: #6C6C70 !important; }
body.lite-theme .sidebar-item:hover { background: rgba(0,0,0,0.04) !important; color: #1C1C1E !important; }
body.lite-theme .sidebar-item.active { background: rgba(10,132,255,0.09) !important; color: #0A84FF !important; }
/* Lite-theme form inputs */
body.lite-theme .afc-input {
  background: #F9F9FB !important;
  border-color: rgba(60,60,67,0.14) !important;
  color: #1C1C1E !important;
}
body.lite-theme .afc-input:focus {
  border-color: rgba(10,132,255,0.4) !important;
  box-shadow: 0 0 0 3px rgba(10,132,255,0.08) !important;
}
body.lite-theme .afc-label { color: #8E8E93 !important; }
body.lite-theme .afc-btn { background: #0A84FF !important; color: #fff !important; }
body.lite-theme .afc-btn-sm { background: #0A84FF !important; color: #fff !important; }
body.lite-theme .admin-form-card { background: #FFFFFF !important; border: 1px solid rgba(60,60,67,0.1) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important; }
body.lite-theme .admin-form-title { color: #1C1C1E !important; }
/* Content area padding for floating nav */
body.lite-theme.has-bnav .app-screen.active { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }

/* ── Notification Action Buttons ──────────────────────────────────────────── */
.notif-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}
.notif-count-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface2);
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.notif-action-btn:hover { background: var(--surface3); color: var(--text); }
.notif-mark-all { color: var(--info) !important; border-color: rgba(59,111,212,0.3) !important; }
.notif-mark-all:hover { background: rgba(59,111,212,0.12) !important; }
.notif-clear-all { color: var(--danger) !important; border-color: rgba(227,30,36,0.3) !important; }
.notif-clear-all:hover { background: rgba(227,30,36,0.12) !important; }
.notif-read-btn  { color: var(--success-light) !important; border-color: rgba(52,199,89,0.3) !important; padding: 4px 7px !important; }
.notif-read-btn:hover  { background: rgba(52,199,89,0.12) !important; }
.notif-del-btn   { color: var(--danger) !important; border-color: rgba(227,30,36,0.3) !important; padding: 4px 7px !important; }
.notif-del-btn:hover   { background: rgba(227,30,36,0.12) !important; }
.bnav-notif-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; margin-left: 8px; }

/* desktop-mode screen scroll — inherits from .app-screen.active */

/* ── Gamified Strike Rate Card ────────────────────────────────────────────── */
.strike-card {
  background: linear-gradient(135deg, rgba(227,30,36,0.08) 0%, rgba(255,184,0,0.06) 100%);
  border: 1px solid rgba(255,184,0,0.18);
  border-radius: 18px;
  padding: 18px 16px 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.strike-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,184,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.strike-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.strike-pct {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.strike-target {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.strike-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
  margin-bottom: 8px;
}
.strike-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px rgba(255,184,0,0.4);
}
.strike-msg {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.strike-msg.good  { color: var(--success-light); }
.strike-msg.great { color: var(--yellow); }
.strike-msg.fire  { color: #ff6b35; }

/* ── Home Screen: Clock ──────────────────────────────────────────────────── */
.home-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.home-clock-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 20px;
}

/* Outer ring — subtle rotating conic gradient */
.home-clock-btn {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--surface);
  color: rgba(255,255,255,0.75);
  -webkit-tap-highlight-color: transparent;
  outline: none;

  /* Thin hairline ring */
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 0 0 10px rgba(227,30,36,0.05),
    0 24px 48px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);

  transition:
    transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.3s ease,
    color 0.2s ease;
}

/* Spinning arc via pseudo */
.home-clock-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(227,30,36,0.7) 0%,
    rgba(255,120,50,0.4) 25%,
    transparent 40%
  );
  animation: clock-spin 8s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

/* Blur mask to soften the arc */
.home-clock-btn::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--surface);
  pointer-events: none;
}

/* Icon sits above pseudo layers */
.home-clock-btn svg {
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

@keyframes clock-spin {
  to { transform: rotate(360deg); }
}

.home-clock-btn:active {
  transform: scale(0.91);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.5);
}

/* Green arc when clocked in */
.home-clock-btn.clocked-in {
  color: rgba(52,199,89,0.9);
  box-shadow:
    0 0 0 1.5px rgba(52,199,89,0.2),
    0 0 0 10px rgba(52,199,89,0.05),
    0 24px 48px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.home-clock-btn.clocked-in::before {
  background: conic-gradient(
    from 0deg,
    rgba(52,199,89,0.7) 0%,
    rgba(0,200,120,0.3) 30%,
    transparent 50%
  );
}

.home-clock-time {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-clock-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.home-clock-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
}
.home-clock-status.active {
  color: var(--success-light);
  border-color: rgba(52,199,89,0.28);
  background: rgba(52,199,89,0.07);
}

/* ── Home Screen: Productivity Card ──────────────────────────────────────── */
.prod-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.prod-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.prod-pct {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.prod-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.prod-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--red);
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.prod-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ── Home Meta (time/date/theme below header) ─────────────────────────────── */
.home-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px 0;
  position: relative;
}
.home-meta-time {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.home-meta-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.home-meta-theme {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  line-height: 0;
  transition: color 0.15s;
}
.home-meta-theme:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN UI — CRED-style dark theme (body.admin-ui)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Motion background */
.admin-motion-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.admin-motion-bg .amb-1,
.admin-motion-bg .amb-2,
.admin-motion-bg .amb-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  will-change: transform;
}
.admin-motion-bg .amb-1 {
  width: 480px; height: 480px;
  background: #F5C518;
  top: -120px; left: -80px;
  animation: amb-drift-1 18s ease-in-out infinite;
}
.admin-motion-bg .amb-2 {
  width: 360px; height: 360px;
  background: #ffe600;
  bottom: 40px; right: -60px;
  animation: amb-drift-2 22s ease-in-out infinite;
  opacity: 0.10;
}
.admin-motion-bg .amb-3 {
  width: 280px; height: 280px;
  background: #00c8ff;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation: amb-drift-3 28s ease-in-out infinite;
  opacity: 0.07;
}
@keyframes amb-drift-1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(60px, 80px) scale(1.1); }
  66%      { transform: translate(-40px, 40px) scale(0.95); }
}
@keyframes amb-drift-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-80px,-60px) scale(1.15); }
  70%      { transform: translate(40px,30px) scale(0.9); }
}
@keyframes amb-drift-3 {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50%      { transform: translate(-50%,-50%) scale(1.3); }
}

/* ── Admin UI — Dark theme (deep navy/teal) ─────────────────────────────── */
body.admin-ui:not(.lite-theme) {
  --bg:      #0B1622;
  --surface: #111F35;
  --surface2: #18294A;
  --surface3: #1E3358;
  --card:    #111F35;
  --text:    #E2E8F5;
  --text2:   #B0BDD4;
  --muted:   #64748B;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --red:     #EF4444;
  --danger:  #EF4444;
  --yellow:  #F5C518;
  --green:   #34D399;
  --blue:    #60A5FA;
  --success-light: #34D399;
}

/* Surface overrides */
body.admin-ui:not(.lite-theme) .card,
body.admin-ui:not(.lite-theme) .admin-stat-mini,
body.admin-ui:not(.lite-theme) .admin-live-item,
body.admin-ui:not(.lite-theme) .admin-tool-card,
body.admin-ui:not(.lite-theme) .admin-form-card {
  background: #111F35;
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
}

body.admin-ui:not(.lite-theme) .admin-tool-card:hover {
  background: #18294A;
  border-color: rgba(255,255,255,0.13);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* First stat highlight — subtle yellow tint */
body.admin-ui:not(.lite-theme) .admin-stats-compact .admin-stat-mini:first-child {
  background: rgba(245,197,24,0.07);
  border-color: rgba(245,197,24,0.16);
}
body.admin-ui:not(.lite-theme) .admin-stats-compact .admin-stat-mini:first-child .asm-number {
  color: #F5C518;
}

/* Sidebar active — yellow */
body.admin-ui:not(.lite-theme) .sidebar-item.active {
  background: rgba(245,197,24,0.1);
  color: #F5C518;
}
body.admin-ui:not(.lite-theme) .sidebar-item:hover {
  background: rgba(255,255,255,0.04);
}

/* Bottom nav dark navy */
body.admin-ui:not(.lite-theme) .bottom-nav {
  background: rgba(11,22,34,0.96) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6) !important;
  backdrop-filter: blur(24px) !important;
}
body.admin-ui:not(.lite-theme) .bnav-item.active .bnav-label,
body.admin-ui:not(.lite-theme) .bnav-item.active svg { color: #F5C518 !important; }

/* Header navy */
body.admin-ui:not(.lite-theme) #app-header {
  background: rgba(11,22,34,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(28px);
}

/* Dedicated admin screen wrap */
.admin-screen-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 32px;
  min-height: 100%;
}
.admin-screen-wide {
  align-items: stretch;
}
.admin-form-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 14px;
  padding: 24px 20px;
}
.admin-table-card {
  max-width: 100%;
}
.admin-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  font-family: 'Krona One', 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Form fields inside admin screens */
.afc-field {
  margin-bottom: 14px;
}
.afc-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.afc-input {
  width: 100%;
  background: var(--surface2, #1a1a1a);
  border: 1px solid var(--border2, #252525);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: 'Poppins', 'Inter', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.afc-input:focus {
  border-color: rgba(245,197,24,0.5);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.07);
}
.afc-input option { background: #1a1a1a; }

.afc-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.afc-role-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.afc-role-item input { accent-color: var(--yellow, #F5C518); width: 14px; height: 14px; }
.afc-role-item:has(input:checked) span { color: var(--yellow, #F5C518); }

.afc-msg {
  min-height: 18px;
  font-size: 12px;
  margin-bottom: 10px;
}
.afc-btn {
  width: 100%;
  background: var(--yellow, #F5C518);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', 'Inter', sans-serif;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.afc-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.afc-btn:active { transform: scale(0.98); transition: transform 0.1s ease; }

.afc-btn-sm {
  background: var(--yellow, #F5C518);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Poppins', 'Inter', sans-serif;
  transition: all 0.2s ease;
}
.afc-btn-sm:hover { opacity: 0.88; transform: translateY(-1px); }

/* Designation chips */
.ds-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text);
}
.ds-chip-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: color 0.1s;
}
.ds-chip-del:hover { color: #ff4444; }

/* Role badge in employee table */
body.admin-ui .role-badge {
  display: inline-block;
  background: rgba(57,255,20,0.1);
  color: #39ff14;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 2px;
}

/* ── Notification swipe rows ─────────────────────────────────────────────── */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Swipe structure — bg strips absolute, inner is the translating card */
.notif-swipe-bg-left,
.notif-swipe-bg-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  color: var(--text);
}
.notif-swipe-bg-left  { left:0; background:rgba(52,199,89,0.15); justify-content:flex-start; color:#34c759; }
.notif-swipe-bg-right { right:0; background:rgba(227,30,36,0.15); justify-content:flex-end;   color:#e63946; }
.notif-swipe-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 16px;
  background: transparent;
  position: relative;
  z-index: 1;
  will-change: transform;
  transition: none;
}

/* Reclock approve/deny — compact icon buttons */
.notif-reclock-actions { display: flex; gap: 6px; margin-top: 7px; }
.notif-reclock-allow,
.notif-reclock-deny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  transition: background 0.12s;
  flex-shrink: 0;
}
.notif-reclock-allow { border-color:rgba(52,199,89,0.4); color:#34c759; }
.notif-reclock-allow:hover { background:rgba(52,199,89,0.15); }
.notif-reclock-allow:disabled { opacity:0.4; cursor:default; }
.notif-reclock-deny  { border-color:rgba(227,30,36,0.4);  color:#e63946; }
.notif-reclock-deny:hover  { background:rgba(227,30,36,0.15); }
.notif-reclock-deny:disabled  { opacity:0.4; cursor:default; }
.notif-reclock-label { font-size:11px; color:var(--warning); align-self:center; margin-left:2px; }
