:root {
  /* Finlegia Pastel & Modern CA SaaS Color Tokens */
  --bg-app: #f6f5ff;
  --bg-gradient: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 45%, #eff6ff 100%);
  --bg-sidebar: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-highlight: rgba(99, 102, 241, 0.25);
  
  /* Primary & Accent Palettes from Finlegia */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-blue: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --primary-glow: rgba(79, 70, 229, 0.2);
  
  --teal-green: #10b981;
  --teal-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --cyan-accent: #0284c7;
  --rose-accent: #e11d48;
  --amber-accent: #f59e0b;
  --purple-accent: #8b5cf6;
  
  --text-main: #0f172a;
  --text-heading: #1e1b4b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 10px 30px -5px rgba(79, 70, 229, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 35px -5px rgba(79, 70, 229, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
}

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

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient Subtle Background Blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(221, 214, 254, 0) 70%);
  top: -100px;
  right: -50px;
}
.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.25) 0%, rgba(251, 207, 232, 0) 70%);
  bottom: 50px;
  left: 150px;
}
.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.3) 0%, rgba(219, 234, 254, 0) 70%);
  top: 35%;
  left: 40%;
}

/* PMS Sidebar + Main Layout */
.pms-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

.pms-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-heading);
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--teal-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
.logo-highlight {
  color: var(--primary);
  margin-left: 2px;
}

.sidebar-user {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}
.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.user-details { display: flex; flex-direction: column; }
.sb-name { font-size: 0.88rem; font-weight: 700; color: var(--text-heading); }
.sb-role { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; }

.sidebar-menu {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  overflow-y: auto;
}
.menu-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding: 0.5rem 0.5rem 0.25rem;
  font-weight: 800;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.menu-item i { width: 18px; font-size: 1rem; text-align: center; }
.menu-item:hover {
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary);
  transform: translateX(2px);
}
.menu-item.active {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-weight: 700;
}
.sidebar-footer { padding: 1rem; border-top: 1px solid var(--border-color); }

/* Main Topbar */
.pms-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pms-topbar {
  height: 72px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 80;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  width: 440px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.topbar-search input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.topbar-search i { color: var(--text-dim); }

.topbar-actions { display: flex; align-items: center; gap: 0.85rem; }

/* Finlegia-style LOCAL Green Badge */
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-timer-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Page Navigation Breadcrumbs */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.page-breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.page-breadcrumb a:hover { text-decoration: underline; }

/* Views & Content Container */
.pms-content { padding: 2rem; flex: 1; }
.app-view { display: none; animation: fadeIn 0.25s ease-in; }
.app-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.dash-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.dash-page-header h2 {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

/* 3 Dashboard Core Tabs Bar (Capsule Pill Switcher from Finlegia) */
.pms-tabs-bar {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text-heading); }
.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Filter Pills (Finlegia-Style Smooth Capsule Tabs) */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 1rem 0;
}
.pill-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.pill-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.04);
}
.pill-btn.active {
  background: var(--primary-gradient) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px var(--primary-glow) !important;
}

/* Modern Clean Toolbar & Search Bar */
.filter-bar-clean {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.clean-search-box {
  flex: 2;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.clean-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

.clean-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: var(--font-body);
}

.clean-search-box input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.filter-selects-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 3;
  flex-wrap: wrap;
}

.clean-select {
  flex: 1;
  min-width: 140px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 0.85rem center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #e2e8f0;
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.clean-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

/* 9 Due Date Stat Cards (Finlegia Crisp Light Cards) */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.due-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.due-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.due-card-title { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.due-card-value { font-size: 1.75rem; font-weight: 800; margin: 0.25rem 0; color: var(--text-heading); font-family: var(--font-heading); }
.due-card-sub { font-size: 0.7rem; color: var(--text-dim); font-weight: 600; }

.due-yellow { border-top: 4px solid #eab308; }
.due-green { border-top: 4px solid #10b981; }
.due-blue { border-top: 4px solid #3b82f6; }
.due-pink { border-top: 4px solid #ec4899; }
.due-red { border-top: 4px solid #ef4444; }
.due-purple { border-top: 4px solid #8b5cf6; }

/* Grid Layouts */
.dash-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.right-summary-col { display: flex; flex-direction: column; gap: 1rem; }
.assignment-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.assign-card { text-align: center; padding: 1.25rem 1rem; cursor: pointer; background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-card); }
.assign-card h3 { font-size: 1.5rem; margin-top: 0.25rem; font-family:var(--font-heading); font-weight:800; color:var(--text-heading); }
.assign-unassigned { border-left: 4px solid #f59e0b; }
.assign-assigned { border-left: 4px solid #10b981; }
.assign-total { border-left: 4px solid #4f46e5; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.stat-card { display: flex; align-items: center; gap: 1.25rem; background:#fff; }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.icon-purple { background: #ede9fe; color: #6366f1; }
.icon-cyan { background: #e0f2fe; color: #0284c7; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-danger { background: #ffe4e6; color: #e11d48; }

/* Glass Cards & Containers */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dash-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tables */
.custom-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.88rem; }
.custom-table th { background: #f8fafc; color: var(--text-muted); padding: 0.75rem 1rem; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
.custom-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(226, 232, 240, 0.7); vertical-align: middle; color: var(--text-main); }
.custom-table tr:hover td { background: rgba(248, 250, 252, 0.8); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.65rem; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.badge-role { background: #ede9fe; color: #4f46e5; border: 1px solid #c7d2fe; }
.badge-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-warning { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }

/* Buttons (Finlegia Style Pills & Gradients) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}
.btn-teal {
  background: var(--teal-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-teal:hover { transform: translateY(-1px); }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f3ff;
}

.btn-glass {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.btn-glass:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.82rem; }
.btn-xs { padding: 0.25rem 0.65rem; font-size: 0.75rem; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

/* Form Controls */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.82rem; color: var(--text-heading); font-weight: 700; }
.form-group input, .custom-select, .form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.form-group input:focus, .custom-select:focus, .form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Advanced Smart Date Preset Pills */
.date-preset-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.date-preset-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.date-preset-pill:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.date-preset-pill:active {
  background: var(--primary);
  color: #ffffff;
}

.client-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.client-select-header label { margin: 0; }
.btn-quick-new-client {
  background: rgba(79, 70, 229, 0.08);
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-quick-new-client:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Modals - Ultra-Modern Glassmorphic Design */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active {
  display: flex !important;
  animation: modalBackdropFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Nested & Client Onboarding Modals always in front */
#modalAddClient, #modalEditClient {
  z-index: 1050 !important;
  background: rgba(15, 23, 42, 0.75) !important;
}

.modal-card {
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card-solid, #ffffff);
  border: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
  border-radius: var(--radius-lg, 18px);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: modalCardScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
}
.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.btn-close-modal, .close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted, #64748b);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-close-modal:hover, .close-modal:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
  transform: rotate(90deg);
}

/* Form switch and toggle card components */
.modal-rule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm, 10px);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-rule-card:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.25);
}

body.dark-mode .modal-card,
body[data-theme="dark"] .modal-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}
body.dark-mode .modal-header,
body[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .btn-close-modal,
body[data-theme="dark"] .btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* Task Workflow Stepper */
.workflow-pipeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.step-item.active {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.step-item.completed {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

/* Floating WhatsApp Button (Finlegia Style) */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 100;
  transition: var(--transition);
}
.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Printable Invoice Container */
.invoice-print-box {
  background: #ffffff;
  color: #0f172a;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}
.invoice-print-box h2, .invoice-print-box h3, .invoice-print-box p, .invoice-print-box span { color: #0f172a !important; }
.invoice-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.invoice-light-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.invoice-light-table th { background: #f8fafc; color: #475569; padding: 0.75rem; border: 1px solid #cbd5e1; text-align: left; font-weight:700; }
.invoice-light-table td { padding: 0.75rem; border: 1px solid #cbd5e1; color: #0f172a; }

.toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.15rem; border-radius: var(--radius-sm); background: #ffffff; border: 1px solid var(--border-color); color: var(--text-main); font-size: 0.88rem; font-weight:600; box-shadow: 0 10px 25px rgba(0,0,0,0.08); animation: slideInRight 0.3s ease-out forwards; }
.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #3b82f6; }

.simple-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }
.simple-list li { padding: 0.4rem 0; border-bottom: 1px solid rgba(226,232,240,0.6); }

.todo-inline-form { display: flex; gap: 0.75rem; }
.todo-inline-form input[type="text"] { flex: 1; }

.margin-top-xs { margin-top: 0.35rem; }
.margin-top-sm { margin-top: 0.75rem; }
.margin-top-md { margin-top: 1.25rem; }
.margin-top-lg { margin-top: 2rem; }
.text-center { text-align: center; }
.text-success { color: #059669; }
.text-danger { color: #dc2626; }
.text-muted { color: #64748b; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========================================================= */
/* DEDICATED PRINT STYLESHEET (TAX INVOICE ONLY PRINTING)    */
/* ========================================================= */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide all app chrome, sidebars, headers, floating widgets, buttons */
  .pms-sidebar,
  .pms-topbar,
  .ambient-glow,
  .floating-whatsapp,
  .page-breadcrumb,
  .dash-page-header,
  .toast-container,
  .btn,
  #toastContainer,
  header,
  aside,
  button {
    display: none !important;
  }

  .pms-wrapper {
    display: block !important;
  }

  .pms-main {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .pms-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .app-view {
    display: none !important;
  }

  /* Show only dedicated invoice print view */
  #view-invoice-detail {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .invoice-print-box {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.5cm !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  .invoice-header-row {
    border-bottom: 2px solid #334155 !important;
  }

  .invoice-light-table th {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #94a3b8 !important;
  }

  .invoice-light-table td {
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
  }

  .invoice-upi-block {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px dashed #94a3b8 !important;
    padding-top: 1rem !important;
    margin-top: 1.5rem !important;
    page-break-inside: avoid !important;
  }

  #invPrintUpiQrCanvas,
  #invPrintUpiQrCanvas img,
  #invPrintUpiQrCanvas canvas {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100px !important;
    max-height: 100px !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .invoice-seal-stamp {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Floating Bulk Actions Bar */
.floating-bulk-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(79, 70, 229, 0.3);
  z-index: 1000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bulk-bar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bulk-count-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bulk-action-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.clean-select-sm {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  outline: none;
}

.clean-select-sm option {
  background: #1e293b;
  color: #fff;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ============================================================ */
/* DARK THEME TOKENS & OVERRIDES */
/* ============================================================ */
[data-theme="dark"], body.theme-dark {
  --bg-app: #0b0f19;
  --bg-gradient: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #0b1120 100%);
  --bg-sidebar: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-solid: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.4);
  --text-main: #f1f5f9;
  --text-heading: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 4px 12px -2px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 8px 16px -4px rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .sidebar-user { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .pms-topbar { background: rgba(15, 23, 42, 0.85); }
[data-theme="dark"] .topbar-search input { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .custom-table th { background: rgba(255, 255, 255, 0.03); color: #94a3b8; }
[data-theme="dark"] .custom-table td { border-color: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .form-group input, 
[data-theme="dark"] .form-group select, 
[data-theme="dark"] .form-group textarea { 
  background: rgba(15, 23, 42, 0.7); 
  color: #fff; 
  border-color: rgba(255, 255, 255, 0.12); 
}
[data-theme="dark"] .modal-card { background: #1e293b; color: #fff; }
[data-theme="dark"] #mcDirectorsSection,
[data-theme="dark"] div[style*="background:#f8fafc"] {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Theme Toggle Button in Topbar */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================================================ */
/* SPOTLIGHT COMMAND PALETTE (Ctrl+K) */
/* ============================================================ */
.cmd-palette-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.cmd-palette-backdrop.active {
  display: flex;
}
.cmd-palette-box {
  width: 90%;
  max-width: 600px;
  background: var(--bg-card-solid);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cmd-palette-header i {
  color: var(--primary);
  font-size: 1.2rem;
}
.cmd-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--text-heading);
  outline: none;
  font-family: inherit;
}
.cmd-palette-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
}
.cmd-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem 0.25rem;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  text-decoration: none;
}
.cmd-item:hover, .cmd-item.selected {
  background: var(--primary);
  color: #fff !important;
}
.cmd-item:hover .cmd-badge, .cmd-item.selected .cmd-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.cmd-badge {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================ */
/* VISUAL COMPLIANCE CALENDAR & GANTT */
/* ============================================================ */
.calendar-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.calendar-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calendar-month-title {
  font-size: 1.35rem;
  font-weight: 800;
  min-width: 180px;
  text-align: center;
  color: var(--text-heading);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-day-head {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0.5rem 0;
  text-transform: uppercase;
}
.calendar-cell {
  min-height: 105px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.calendar-cell:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.calendar-cell.other-month {
  opacity: 0.35;
  background: rgba(0,0,0,0.02);
}
.calendar-cell.today {
  border: 2px solid var(--primary);
  background: rgba(79, 70, 229, 0.05);
}
.calendar-date-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
  display: inline-block;
}
.calendar-cell.today .calendar-date-num {
  background: var(--primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
}

.cal-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.cal-chip-statutory {
  background: #fef3c7;
  color: #92400e;
  border-left: 3px solid #f59e0b;
}
.cal-chip-gst {
  background: #e0e7ff;
  color: #3730a3;
  border-left: 3px solid #4f46e5;
}
.cal-chip-it {
  background: #dcfce7;
  color: #166534;
  border-left: 3px solid #10b981;
}
.cal-chip-tds {
  background: #fce7f3;
  color: #9d174d;
  border-left: 3px solid #ec4899;
}
.cal-chip-roc {
  background: #e0f2fe;
  color: #0369a1;
  border-left: 3px solid #0284c7;
}

/* Gantt Chart */
.gantt-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}
.gantt-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}
.gantt-task-info {
  font-size: 0.85rem;
  font-weight: 700;
}
.gantt-track {
  height: 24px;
  background: rgba(0,0,0,0.04);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}
.gantt-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding-left: 0.6rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  transition: width 0.4s ease;
}

/* ============================================================ */
/* DMS DRAG & DROP ZONE */
/* ============================================================ */
.dms-dropzone {
  border: 2px dashed var(--primary);
  background: rgba(79, 70, 229, 0.04);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}
.dms-dropzone:hover, .dms-dropzone.dragover {
  background: rgba(79, 70, 229, 0.12);
  border-color: var(--teal-green);
  transform: scale(1.01);
}
.dms-drop-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ============================================================ */
/* DYNAMIC UPI QR INVOICE PRINT BOX */
/* ============================================================ */
.invoice-upi-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
}
.invoice-seal-stamp {
  width: 80px;
  height: 80px;
  border: 2px dashed #4f46e5;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.85;
}

/* ============================================================ */
/* WHATSAPP WEB DEVICE LINKING & AUTO-REMIND SCHEDULER */
/* ============================================================ */
.wa-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.wa-live-badge.connected {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}
.wa-live-badge.disconnected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}
.wa-live-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wa-link-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 768px) {
  .wa-link-grid { grid-template-columns: 1fr; }
}

.wa-qr-box {
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}
.wa-steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.wa-steps-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
}
.wa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Auto-Remind Scheduler Cards & Grid */
.auto-remind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.auto-remind-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.auto-remind-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.auto-remind-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.channel-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.channel-pill-tag.both {
  background: rgba(97, 78, 252, 0.15);
  color: #614efc;
}
.channel-pill-tag.wa {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.channel-pill-tag.email {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}

/* Switch Toggle UI */
.switch-box {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.switch-box input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 20px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.switch-box input:checked + .switch-slider {
  background-color: #10b981;
}
.switch-box input:checked + .switch-slider:before {
  transform: translateX(18px);
}

/* WACRM Pairing Code UI */
.pairing-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090d16;
  color: #10b981;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 4px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  margin: 0.6rem 0;
}
.wa-link-mode-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}
.wa-link-tab-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.wa-link-tab-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ============================================================== */
/* TAXFLOW KANBAN COMPLIANCE WORKFLOW BOARD STYLES */
/* ============================================================== */

.pill-toggle {
  background: transparent;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-toggle.active {
  background: var(--bg-card-solid);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kanban-board-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(290px, 1fr));
  gap: 1.25rem;
  min-width: 1180px;
}

.kanban-col {
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 580px;
  max-height: calc(100vh - 270px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

body.dark-mode .kanban-col {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.07);
}

.kanban-col.drag-over {
  background: rgba(79, 70, 229, 0.06);
  border: 2px dashed var(--primary);
  transform: scale(1.01);
}

.kanban-col-header {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-solid);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-heading);
}

.kanban-count {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

body.dark-mode .kanban-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.kanban-col-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kanban-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  cursor: grab;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  user-select: none;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: var(--border-highlight);
}

.kanban-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.96);
  cursor: grabbing;
}

.kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.kanban-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.kanban-card-title:hover {
  color: var(--primary);
}

.kanban-card-client {
  font-size: 0.78rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.kanban-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.75rem;
}

.kanban-assignee {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.kanban-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ============================================================== */
/* TAXFLOW WHATSAPP CRM & GOOGLE DRIVE INTEGRATION STYLES */
/* ============================================================== */

.crm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.crm-status-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.crm-workspace {
  display: grid;
  grid-template-columns: 330px 1fr 310px;
  gap: 0;
  height: calc(100vh - 165px);
  max-height: calc(100vh - 165px);
  min-height: 560px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* 1. LEFT PANE: CHAT DIRECTORY */
.crm-pane-left {
  border-right: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-card, #ffffff);
}

.crm-search-box {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  position: relative;
  display: flex;
  align-items: center;
  background: inherit;
}
.crm-search-box i {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
}
.crm-search-box input {
  width: 100%;
  padding: 0.45rem 0.6rem 0.45rem 2rem;
  background: var(--bg-input, #f8fafc);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: var(--radius-sm);
  color: var(--text-heading, #0f172a);
  font-size: 0.82rem;
}
.crm-search-box input:focus {
  border-color: var(--primary, #6366f1);
  outline: none;
  background: #ffffff;
}

.crm-tag-filters {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  overflow-x: auto;
  white-space: nowrap;
  background: inherit;
}
.crm-tag-filters::-webkit-scrollbar {
  height: 3px;
}
.crm-tag-pill {
  background: var(--bg-glass-card, #f1f5f9);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-pill);
  color: var(--text-main, #475569);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}
.crm-tag-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.crm-tag-pill.active {
  background: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
  color: #ffffff;
}

.crm-chat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: inherit;
}
.crm-chat-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
  cursor: pointer;
  transition: background 0.15s ease;
  background: inherit;
}
.crm-chat-item:hover {
  background: rgba(99, 102, 241, 0.04);
}
.crm-chat-item.active {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3.5px solid var(--primary, #6366f1);
}

.crm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.crm-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.crm-chat-info {
  flex: 1;
  min-width: 0;
}
.crm-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}
.crm-chat-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.crm-chat-time {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}
.crm-chat-tags-line {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.crm-chat-snippet {
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.crm-chat-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.2rem;
}
.crm-client-tag-pill {
  font-size: 0.68rem;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.crm-unread-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
}

/* TAG BADGES */
.tag-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
}
.tag-badge.bg-primary { background: rgba(99, 102, 241, 0.15); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.3); }
.tag-badge.bg-secondary { background: rgba(148, 163, 184, 0.15); color: #64748b; border: 1px solid rgba(148, 163, 184, 0.3); }
.tag-badge.bg-warning { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-badge.bg-teal { background: rgba(20, 184, 166, 0.15); color: #0d9488; border: 1px solid rgba(20, 184, 166, 0.3); }
.tag-badge.bg-info { background: rgba(59, 130, 246, 0.15); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.tag-badge.bg-purple { background: rgba(168, 85, 247, 0.15); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-badge.bg-success { background: rgba(34, 197, 94, 0.15); color: #16a34a; border: 1px solid rgba(34, 197, 94, 0.3); }

/* 2. CENTER PANE: ACTIVE CHAT STREAM */
.crm-pane-center {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-main, #f8fafc);
  position: relative;
}

.crm-empty-chat-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted, #64748b);
}
.crm-empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.crm-thread-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.crm-contact-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.crm-contact-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading, #0f172a);
}
.crm-phone-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}
.crm-active-tags-row {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}
.crm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Tag Checkbox Dropdown */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.crm-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 170px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  margin-top: 4px;
}
.crm-dropdown-menu.show {
  display: block;
}
.crm-dropdown-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.crm-tag-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.3rem;
  cursor: pointer;
  font-size: 0.8rem;
  border-radius: 4px;
  color: var(--text-heading, #0f172a);
}
.crm-tag-check-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

/* Messages Stream */
.crm-messages-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-main, #f8fafc);
}

.crm-date-divider {
  text-align: center;
  margin: 0.5rem 0;
  position: relative;
}
.crm-date-divider span {
  background: var(--border-color, #e2e8f0);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--text-muted, #475569);
  font-weight: 600;
}

.crm-msg-bubble {
  max-width: 72%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}
.crm-msg-inbound {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.crm-msg-outbound {
  align-self: flex-end;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}
.crm-msg-author {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d9488;
  margin-bottom: 0.2rem;
}
.crm-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  font-size: 0.68rem;
  margin-top: 0.3rem;
}
.crm-msg-inbound .crm-msg-footer {
  color: #94a3b8;
}
.crm-msg-outbound .crm-msg-footer {
  color: rgba(255, 255, 255, 0.85);
}

/* Global Smooth Animations & Transitions */
@keyframes appViewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalBackdropFade {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

@keyframes modalCardScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes msgBubbleSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Global Transition Rules for Smooth UX */
a, button, .btn, .tag-badge, .badge, .nav-item, .crm-chat-item, .crm-media-act-btn, .glass-card, .card {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  display: flex !important;
  animation: modalBackdropFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-backdrop.active .modal-card,
.crm-media-modal-card {
  animation: modalCardScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.crm-msg-bubble {
  animation: msgBubbleSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.crm-chat-item {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.crm-chat-item:hover {
  transform: translateX(4px);
}
.crm-chat-item.active {
  transform: translateX(4px);
  border-left: 3px solid var(--primary, #6366f1);
  background: rgba(99, 102, 241, 0.08);
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Enhanced Media Cards in CRM (Photos & PDFs) */
.crm-photo-card {
  margin-bottom: 0.4rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  max-width: 320px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.crm-photo-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.crm-photo-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  max-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
}
.crm-photo-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.crm-photo-wrapper:hover .crm-photo-img {
  transform: scale(1.04);
}
.crm-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.crm-photo-wrapper:hover .crm-photo-overlay {
  opacity: 1;
}
.crm-photo-zoom-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(4px);
  transition: transform 0.22s ease;
}
.crm-photo-wrapper:hover .crm-photo-zoom-badge {
  transform: translateY(0);
}
.crm-photo-caption, .crm-pdf-caption {
  padding: 6px 8px 2px 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Rich PDF Card */
.crm-pdf-card {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.4rem;
  max-width: 350px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.crm-pdf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}
.crm-pdf-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.crm-pdf-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.crm-pdf-card:hover .crm-pdf-icon-box {
  transform: scale(1.08);
}
.crm-pdf-info {
  flex: 1;
  min-width: 0;
}
.crm-pdf-filename {
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-pdf-meta {
  font-size: 0.72rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.crm-pdf-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action Buttons inside Media Cards */
.crm-media-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}
.crm-media-act-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.crm-media-act-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: translateY(-1.5px);
}
.crm-btn-preview {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.3);
}
.crm-btn-preview:hover {
  background: rgba(14, 165, 233, 0.22);
  color: #0369a1;
}

/* Legacy Attachment Card */
.crm-attachment-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 0.4rem;
}
.crm-attachment-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.crm-attachment-details {
  flex: 1;
  min-width: 0;
}
.crm-attachment-name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-drive-tag-synced {
  font-size: 0.68rem;
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  text-decoration: none;
}

/* Message Composer */
.crm-composer-area {
  border-top: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  padding: 0.6rem 0.75rem;
  flex-shrink: 0;
  margin-top: auto;
}
.crm-quick-reply-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.crm-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.crm-textarea {
  flex: 1;
  background: var(--bg-input, #f8fafc);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: var(--radius-sm);
  color: var(--text-heading, #0f172a);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  resize: none;
  max-height: 100px;
  font-family: inherit;
}
.crm-textarea:focus {
  outline: none;
  border-color: var(--primary, #6366f1);
  background: #ffffff;
}

/* 3. RIGHT PANE: CLIENT 360 & DRIVE HUB */
.crm-pane-right {
  border-left: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #ffffff);
  overflow-y: auto;
}
.crm-context-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: inherit;
}
.crm-context-header h4 {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-heading, #0f172a);
  font-weight: 700;
}
.crm-context-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crm-context-card {
  background: var(--bg-input, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--text-heading, #0f172a);
}
.crm-context-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-tag-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #cbd5e1);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-heading, #0f172a);
}

.crm-client-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text-heading, #0f172a);
}
.crm-client-picker-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

/* Dark mode theme overrides */
body.dark-mode .crm-workspace,
body[data-theme="dark"] .crm-workspace {
  background: #0f172a;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .crm-pane-left,
body[data-theme="dark"] .crm-pane-left {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .crm-search-box input,
body[data-theme="dark"] .crm-search-box input {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}
body.dark-mode .crm-chat-item,
body[data-theme="dark"] .crm-chat-item {
  background: #1e293b;
  border-color: rgba(255,255,255,0.05);
}
body.dark-mode .crm-chat-item:hover,
body[data-theme="dark"] .crm-chat-item:hover {
  background: rgba(255,255,255,0.04);
}
body.dark-mode .crm-chat-item.active,
body[data-theme="dark"] .crm-chat-item.active {
  background: rgba(99, 102, 241, 0.15);
}
body.dark-mode .crm-chat-name,
body[data-theme="dark"] .crm-chat-name {
  color: #f8fafc;
}
body.dark-mode .crm-pane-center,
body[data-theme="dark"] .crm-pane-center,
body.dark-mode .crm-messages-stream,
body[data-theme="dark"] .crm-messages-stream {
  background: #0b0f19;
}
body.dark-mode .crm-thread-header,
body[data-theme="dark"] .crm-thread-header {
  background: #131b2e;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .crm-msg-inbound,
body[data-theme="dark"] .crm-msg-inbound {
  background: #1e293b;
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .crm-composer-area,
body[data-theme="dark"] .crm-composer-area {
  background: #131b2e;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .crm-textarea,
body[data-theme="dark"] .crm-textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #f8fafc;
}
body.dark-mode .crm-pane-right,
body[data-theme="dark"] .crm-pane-right {
  background: #131b2e;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .crm-context-card,
body[data-theme="dark"] .crm-context-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: #f1f5f9;
}

/* Google Drive OAuth Button & Tab Styles */
.btn-google-drive-login:hover {
  background: #f8fafc !important;
  border-color: #9ca3af !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
  transform: translateY(-1px);
}
.btn-google-drive-login:active {
  transform: translateY(0);
}
.drive-auth-tab {
  transition: all 0.2s ease;
}
.drive-auth-tab:hover {
  color: var(--text-main) !important;
}

/* ============================================================ */
/* BULK CLIENT IMPORTER STYLES */
/* ============================================================ */
.bulk-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  background: rgba(79, 70, 229, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}
.bulk-dropzone:hover,
.bulk-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  transform: scale(1.005);
}

/* ============================================================ */
/* WHATSAPP CRM CANNED REPLIES POPOVER */
/* ============================================================ */
.crm-canned-popover {
  position: absolute;
  bottom: 60px;
  left: 10px;
  right: 10px;
  max-width: 460px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  z-index: 100;
  overflow: hidden;
  animation: slideUpFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.canned-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 700;
}
.btn-popover-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-popover-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}
.canned-popover-search {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}
.canned-popover-search input {
  width: 100%;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-main);
  outline: none;
}
.canned-popover-list {
  max-height: 240px;
  overflow-y: auto;
}
.canned-item {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}
.canned-item:hover {
  background: rgba(79, 70, 229, 0.08);
}
.canned-item:last-child {
  border-bottom: none;
}

body.dark-mode .crm-canned-popover,
body[data-theme="dark"] .crm-canned-popover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
body.dark-mode .canned-popover-header,
body[data-theme="dark"] .canned-popover-header {
  background: rgba(255, 255, 255, 0.04);
}
body.dark-mode .canned-item:hover,
body[data-theme="dark"] .canned-item:hover {
  background: rgba(79, 70, 229, 0.25);
}

/* ============================================================ */
/* PRIORITY SLA GLOW PULSE ANIMATION */
/* ============================================================ */
.sla-pulse-urgent {
  animation: pulseUrgent 2s infinite;
}
@keyframes pulseUrgent {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sla-pulse-today {
  animation: pulseToday 2s infinite;
}
@keyframes pulseToday {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ============================================================ */
/* TO-DO INLINE FORM MODERN CLEAN LAYOUT */
/* ============================================================ */
.todo-inline-form {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.todo-inline-form input[type="text"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 42px;
  padding: 0.55rem 1rem !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.todo-inline-form input[type="text"]:focus {
  border-color: var(--primary, #6366f1) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.todo-inline-form .taxflow-dp-wrapper {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  flex: 0 0 210px !important;
  display: inline-block !important;
}

.todo-inline-form .taxflow-dp-input {
  min-height: 42px !important;
  padding: 0.55rem 0.75rem !important;
}

.todo-inline-form button {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  min-height: 42px !important;
  padding: 0.55rem 1.25rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

body.dark-mode .todo-inline-form input[type="text"],
body[data-theme="dark"] .todo-inline-form input[type="text"] {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

/* ============================================================ */
/* TAXFLOW SMOOTH MODERN DATEPICKER STYLES */
/* ============================================================ */
.taxflow-dp-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.taxflow-dp-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.taxflow-dp-input:hover {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12);
}

.taxflow-dp-input.active,
.taxflow-dp-input:focus {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.taxflow-dp-val {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxflow-dp-icon {
  font-size: 1.1rem;
  color: var(--primary, #6366f1);
  flex-shrink: 0;
}

.taxflow-dp-placeholder {
  color: #94a3b8;
}
.taxflow-dp-placeholder .taxflow-dp-icon {
  color: #94a3b8;
}

.taxflow-dp-text {
  font-weight: 600;
  color: #0f172a;
}

.taxflow-dp-badge {
  font-size: 0.72rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary, #6366f1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.taxflow-dp-chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}

.taxflow-dp-input.active .taxflow-dp-chevron {
  transform: rotate(180deg);
  color: var(--primary, #6366f1);
}

/* POPOVER CALENDAR */
.taxflow-dp-popover {
  position: absolute;
  width: 320px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.2), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 14px;
  z-index: 999999;
  font-family: inherit;
  animation: taxflowDpSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

@keyframes taxflowDpSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* HEADER */
.taxflow-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.taxflow-dp-title-group {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.taxflow-dp-month-select,
.taxflow-dp-year-select {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.taxflow-dp-month-select:hover,
.taxflow-dp-year-select:hover {
  border-color: var(--primary, #6366f1);
}

.taxflow-dp-nav-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.taxflow-dp-nav-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
}

/* WEEKDAYS */
.taxflow-dp-grid-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* DAYS GRID */
.taxflow-dp-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 12px;
}

.taxflow-dp-day {
  height: 34px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.taxflow-dp-day:hover:not(.taxflow-dp-day-disabled) {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary, #6366f1);
  font-weight: 700;
}

.taxflow-dp-day-disabled {
  color: #cbd5e1;
  opacity: 0.45;
  cursor: not-allowed;
}

.taxflow-dp-day-today {
  border: 1.5px solid var(--primary, #6366f1);
  color: var(--primary, #6366f1);
  font-weight: 700;
}

.taxflow-dp-day-selected {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

/* PRESETS / SHORTCUTS */
.taxflow-dp-presets {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.taxflow-dp-preset-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.taxflow-dp-preset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.taxflow-dp-preset-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 600;
}

.taxflow-dp-preset-tag:hover {
  background: var(--primary, #6366f1);
  color: #ffffff;
  border-color: var(--primary, #6366f1);
}

/* FOOTER */
.taxflow-dp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 8px;
}

.taxflow-dp-footer-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.taxflow-dp-clear-btn {
  background: transparent;
  color: #64748b;
}
.taxflow-dp-clear-btn:hover {
  background: #f1f5f9;
  color: #ef4444;
}

.taxflow-dp-today-btn {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary, #6366f1);
}
.taxflow-dp-today-btn:hover {
  background: var(--primary, #6366f1);
  color: #ffffff;
}

/* DARK MODE SUPPORT */
body.dark-mode .taxflow-dp-input,
body[data-theme="dark"] .taxflow-dp-input {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}
body.dark-mode .taxflow-dp-text,
body[data-theme="dark"] .taxflow-dp-text {
  color: #f8fafc;
}
body.dark-mode .taxflow-dp-popover,
body[data-theme="dark"] .taxflow-dp-popover {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}
body.dark-mode .taxflow-dp-month-select,
body.dark-mode .taxflow-dp-year-select,
body.dark-mode .taxflow-dp-nav-btn,
body[data-theme="dark"] .taxflow-dp-month-select,
body[data-theme="dark"] .taxflow-dp-year-select,
body[data-theme="dark"] .taxflow-dp-nav-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}
body.dark-mode .taxflow-dp-day,
body[data-theme="dark"] .taxflow-dp-day {
  color: #e2e8f0;
}
body.dark-mode .taxflow-dp-presets,
body[data-theme="dark"] .taxflow-dp-presets {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .taxflow-dp-preset-tag,
body[data-theme="dark"] .taxflow-dp-preset-tag {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

/* ============================================================ */
/* E-REG.IN PUBLIC MARKETING, AUTH & DYNAMIC CMS STYLES */
/* ============================================================ */

/* Full Public Mode Dark Theme (Default) */
body.public-mode:not(.light-mode) {
  background: #090d16 !important;
  color: #e2e8f0 !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.public-mode .pms-sidebar,
body.public-mode .pms-topbar {
  display: none !important;
}

body.public-mode .pms-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.public-mode .pms-content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

body.public-mode .ambient-glow.glow-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%) !important;
}
body.public-mode .ambient-glow.glow-2 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%) !important;
}
body.public-mode .ambient-glow.glow-3 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 70%) !important;
}

/* ============================================================ */
/* LIGHT MODE THEME OVERRIDES (100% Light Mode Support) */
/* ============================================================ */
body.light-mode,
body[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --bg-sidebar: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #ffffff;
  --text-main: #0f172a;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body.public-mode.light-mode,
body.public-mode[data-theme="light"] {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.public-mode.light-mode .ereg-public-nav,
body.public-mode[data-theme="light"] .ereg-public-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

body.public-mode.light-mode .ereg-brand-text,
body.public-mode[data-theme="light"] .ereg-brand-text {
  color: #0f172a !important;
}

body.public-mode.light-mode .ereg-nav-link,
body.public-mode[data-theme="light"] .ereg-nav-link {
  color: #475569 !important;
}
body.public-mode.light-mode .ereg-nav-link:hover,
body.public-mode[data-theme="light"] .ereg-nav-link:hover {
  color: #4f46e5 !important;
}

body.public-mode.light-mode #publicThemeToggleBtn,
body.public-mode[data-theme="light"] #publicThemeToggleBtn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

body.public-mode.light-mode .landing-hero h1,
body.public-mode[data-theme="light"] .landing-hero h1 {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.public-mode.light-mode .landing-hero p,
body.public-mode[data-theme="light"] .landing-hero p {
  color: #475569 !important;
}

body.public-mode.light-mode .hero-pill-badge,
body.public-mode[data-theme="light"] .hero-pill-badge {
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: rgba(79, 70, 229, 0.25) !important;
  color: #4f46e5 !important;
}

body.public-mode.light-mode .hero-cta-btn-glass,
body.public-mode[data-theme="light"] .hero-cta-btn-glass {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

body.public-mode.light-mode .hero-cta-btn-glass:hover,
body.public-mode[data-theme="light"] .hero-cta-btn-glass:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

body.public-mode.light-mode .section-title,
body.public-mode[data-theme="light"] .section-title {
  color: #0f172a !important;
}

body.public-mode.light-mode .section-subtitle,
body.public-mode[data-theme="light"] .section-subtitle {
  color: #64748b !important;
}

body.public-mode.light-mode .feature-card-modern,
body.public-mode[data-theme="light"] .feature-card-modern {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

body.public-mode.light-mode .feature-card-modern h3,
body.public-mode[data-theme="light"] .feature-card-modern h3 {
  color: #0f172a !important;
}

body.public-mode.light-mode .feature-card-modern p,
body.public-mode[data-theme="light"] .feature-card-modern p {
  color: #64748b !important;
}

body.public-mode.light-mode .roi-calculator-box,
body.public-mode[data-theme="light"] .roi-calculator-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

body.public-mode.light-mode .roi-calculator-box h3,
body.public-mode[data-theme="light"] .roi-calculator-box h3 {
  color: #0f172a !important;
}

body.public-mode.light-mode .roi-slider-header,
body.public-mode[data-theme="light"] .roi-slider-header {
  color: #1e293b !important;
}

body.public-mode.light-mode .roi-metrics-result,
body.public-mode[data-theme="light"] .roi-metrics-result {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

body.public-mode.light-mode .pricing-card-box,
body.public-mode[data-theme="light"] .pricing-card-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

body.public-mode.light-mode .pricing-card-box h3,
body.public-mode[data-theme="light"] .pricing-card-box h3 {
  color: #0f172a !important;
}

body.public-mode.light-mode .plan-price-val,
body.public-mode[data-theme="light"] .plan-price-val {
  color: #0f172a !important;
}

body.public-mode.light-mode .plan-features-list li,
body.public-mode[data-theme="light"] .plan-features-list li {
  color: #334155 !important;
}

body.public-mode.light-mode .auth-portal-wrapper,
body.public-mode[data-theme="light"] .auth-portal-wrapper {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08) !important;
}

body.public-mode.light-mode .auth-portal-wrapper h3,
body.public-mode[data-theme="light"] .auth-portal-wrapper h3 {
  color: #0f172a !important;
}

body.public-mode.light-mode .auth-tab-btn,
body.public-mode[data-theme="light"] .auth-tab-btn {
  color: #64748b;
}

body.public-mode.light-mode .blog-card-item,
body.public-mode[data-theme="light"] .blog-card-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
}

body.public-mode.light-mode .blog-card-item h3,
body.public-mode[data-theme="light"] .blog-card-item h3 {
  color: #0f172a !important;
}

body.public-mode.light-mode .service-card-item,
body.public-mode[data-theme="light"] .service-card-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
}

body.public-mode.light-mode .service-card-item h3,
body.public-mode[data-theme="light"] .service-card-item h3 {
  color: #0f172a !important;
}

/* Generic Public & Auth Typography Tokens (Supports Dark and Light Mode) */
.roi-box-title {
  font-size: 1.85rem;
  color: #ffffff;
  margin: 0.5rem 0 1rem 0;
}
.roi-box-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.roi-days-summary {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.plan-name {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0;
}
.plan-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0.35rem 0 0 0;
}

.auth-box-title {
  color: #ffffff;
  font-size: 1.35rem;
  margin: 0 0 0.35rem 0;
}
.auth-box-subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}
.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.35rem;
}
.auth-input {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Light Mode Overrides for these classes */
body.light-mode .roi-box-title,
body[data-theme="light"] .roi-box-title {
  color: #0f172a !important;
}
body.light-mode .roi-box-desc,
body[data-theme="light"] .roi-box-desc {
  color: #475569 !important;
}
body.light-mode .roi-days-summary,
body[data-theme="light"] .roi-days-summary {
  color: #334155 !important;
}
body.light-mode .plan-name,
body[data-theme="light"] .plan-name {
  color: #0f172a !important;
}
body.light-mode .plan-desc,
body[data-theme="light"] .plan-desc {
  color: #64748b !important;
}
body.light-mode .auth-box-title,
body[data-theme="light"] .auth-box-title {
  color: #0f172a !important;
}
body.light-mode .auth-box-subtitle,
body[data-theme="light"] .auth-box-subtitle {
  color: #64748b !important;
}
body.light-mode .auth-label,
body[data-theme="light"] .auth-label {
  color: #334155 !important;
}
body.light-mode .auth-input,
body[data-theme="light"] .auth-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Theme Toggle Button Styling (Public & Dashboard) */
.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #e2e8f0 !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1001 !important;
  pointer-events: auto !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  user-select: none !important;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.theme-toggle-btn:active {
  transform: scale(0.95) !important;
}

.theme-toggle-btn i {
  pointer-events: none !important;
  font-size: 1.05rem !important;
  transition: transform 0.3s ease !important;
}

body.light-mode .theme-toggle-btn,
body[data-theme="light"] .theme-toggle-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .theme-toggle-btn:hover,
body[data-theme="light"] .theme-toggle-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Public Top Navigation Bar */
.ereg-public-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2.5rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.ereg-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ereg-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #10b981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.ereg-brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.ereg-brand-text span {
  color: #38bdf8;
}

.ereg-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.ereg-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ereg-nav-link:hover, .ereg-nav-link.active {
  color: #38bdf8;
  transform: translateY(-1px);
}

.ereg-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Landing Page Hero Section */
.landing-hero {
  position: relative;
  padding: 4.5rem 2rem 3rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.landing-hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.landing-hero h1 .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 780px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.45);
  transition: all 0.25s ease;
}

.hero-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.6);
}

.hero-cta-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 700 !important;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn-glass:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

/* Hero Live Dashboard Mockup */
.hero-mockup-frame {
  position: relative;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(56, 189, 248, 0.3) 50%, rgba(16, 185, 129, 0.3) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  max-width: 1050px;
  margin: 0 auto;
}

.hero-mockup-inner {
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature Grid Section */
.landing-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto;
}

.features-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.feature-card-modern {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card-modern:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.feature-icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.feature-icon-teal { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.feature-icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.feature-icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.feature-icon-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.feature-icon-violet { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.feature-card-modern h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.6rem;
}

.feature-card-modern p {
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

/* Interactive ROI Calculator */
.roi-calculator-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.roi-slider-group {
  margin-bottom: 1.5rem;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #e2e8f0;
}

.roi-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  cursor: pointer;
  accent-color: #6366f1;
}

.roi-metrics-result {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
}

.roi-stat-highlight {
  font-size: 2.6rem;
  font-weight: 800;
  color: #34d399;
  margin: 0.25rem 0;
  font-family: var(--font-mono);
}

/* Modern Pricing Cards */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.pricing-card-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card-box:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
}

.pricing-card-box.popular {
  border: 2px solid #6366f1;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(99, 102, 241, 0.1) 100%);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.25);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.plan-price-val {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 1rem 0 0.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price-val small {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem 0;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.plan-features-list li i {
  color: #10b981;
}

/* Dedicated Auth Portal Container */
.auth-portal-wrapper {
  max-width: 480px;
  margin: 3rem auto;
  padding: 2.25rem 2rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.auth-tabs-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
  padding: 0.6rem 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Blog & Tax Updates Cards */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.blog-card-item {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.blog-badge-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.blog-badge-gst { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.blog-badge-it { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.blog-badge-roc { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Services Catalog Cards */
.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.service-card-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.service-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}

.service-price-tag {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #34d399;
  margin: 0.85rem 0 1.25rem 0;
}

/* Public Footer */
.ereg-public-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090d16;
  padding: 4rem 2rem 2rem 2rem;
  color: #94a3b8;
  margin-top: 5rem;
}

.footer-content-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.6rem;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: #38bdf8;
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .landing-hero h1 { font-size: 2.35rem; }
  .roi-calculator-box { grid-template-columns: 1fr; }
  .footer-content-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ereg-public-nav { padding: 0.85rem 1rem; }
  .ereg-nav-links { display: none; }
}

