/* ==========================================================================
   BUILDNEX.AI — ENTERPRISE HRMS PRODUCT PAGE STYLESHEET
   3-Pillar Enterprise Architecture:
   01 — MANAGE: Centralized Workforce Management (Split Layout)
   02 — CONNECT: Unified HR & Frontline Mobility (Desktop + Mobile Duo)
   03 — INTELLIGENCE: Workforce Analytics & Decision Telemetry (Hero Dashboard)
   ========================================================================== */

:root {
  --hrms-primary: #2563eb;
  --hrms-primary-hover: #1d4ed8;
  --hrms-primary-light: #eff6ff;
  --hrms-primary-glow: rgba(37, 99, 235, 0.25);
  --hrms-navy: #0f172a;
  --hrms-navy-dark: #070d18;
  --hrms-success: #10b981;
  --hrms-success-light: #ecfdf5;
  --hrms-warning: #f59e0b;
  --hrms-warning-light: #fffbeb;
  --hrms-danger: #ef4444;
  --hrms-danger-light: #fef2f2;
  --hrms-card-bg: #ffffff;
  --hrms-card-surface: #f8fafc;
  --hrms-border: #e2e8f0;
  --hrms-border-subtle: #f1f5f9;
  --hrms-text-main: #0f172a;
  --hrms-text-muted: #64748b;
  --hrms-text-light: #94a3b8;
  --hrms-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --hrms-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --hrms-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.09);
  --hrms-radius-lg: 20px;
  --hrms-radius-md: 14px;
  --hrms-radius-sm: 8px;
}

body.dark-mode {
  --hrms-card-bg: #1e293b;
  --hrms-card-surface: #0f172a;
  --hrms-border: #334155;
  --hrms-border-subtle: #1e293b;
  --hrms-text-main: #f8fafc;
  --hrms-text-muted: #94a3b8;
  --hrms-text-light: #64748b;
  --hrms-primary-light: rgba(37, 99, 235, 0.15);
  --hrms-success-light: rgba(16, 185, 129, 0.15);
  --hrms-warning-light: rgba(245, 158, 11, 0.15);
  --hrms-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --hrms-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --hrms-shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   GLOBAL SECTION TYPOGRAPHY & HEADERS
   ========================================================================== */
.hrms-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.hrms-eyebrow {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: #1450db;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  border: none;
  box-shadow: none;
}

body.dark-mode .hrms-eyebrow {
  background: transparent !important;
  color: #60a5fa !important;
  border: none !important;
}

.hrms-section-title {
  font-size: clamp(2rem, 3.5vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

body.dark-mode .hrms-section-title {
  color: #f8fafc !important;
}

.hrms-section-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #475569;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

body.dark-mode .hrms-section-desc {
  color: #94a3b8 !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hrms-hero {
  padding: 115px 24px 28px;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

body.dark-mode .hrms-hero {
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
    var(--hrms-navy-dark);
}

.hrms-hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hrms-hero-badge {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: #1450db;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: none;
}

body.dark-mode .hrms-hero-badge {
  background: transparent !important;
  color: #60a5fa !important;
  border: none !important;
}

.hrms-pulse-dot {
  display: none !important;
}

.hrms-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  max-width: 950px;
  letter-spacing: -0.02em;
}

body.dark-mode .hrms-hero-title {
  color: #f8fafc !important;
}

.hrms-hero-title .highlight {
  color: var(--hrms-primary);
  display: inline-block;
}

.hrms-hero-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #475569;
  max-width: 900px;
  margin: 0 auto 22px;
  font-weight: 400;
}

body.dark-mode .hrms-hero-desc {
  color: #94a3b8 !important;
}

.hrms-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hrms-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hrms-primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.hrms-btn-primary:hover {
  background: var(--hrms-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

.hrms-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hrms-card-bg);
  color: var(--hrms-text-main);
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--hrms-border);
  transition: all 0.25s ease;
}

.hrms-btn-secondary:hover {
  border-color: var(--hrms-primary);
  color: var(--hrms-primary);
  transform: translateY(-2px);
}

/* Pillar Quick Navigation Bar: Separate Standalone Buttons */
.hrms-pillar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 0;
}

body.dark-mode .hrms-pillar-nav {
  background: transparent;
  border: none;
  box-shadow: none;
}

.pillar-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hrms-text-main);
  background: #ffffff;
  border: 1.5px solid var(--hrms-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pillar-jump-link:hover {
  transform: translateY(-2px);
  border-color: var(--hrms-primary);
  color: var(--hrms-primary);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.16);
}

.pillar-jump-link.active {
  background: var(--hrms-primary);
  border-color: var(--hrms-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.pillar-jump-link.active .pillar-num {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body.dark-mode .pillar-jump-link {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

body.dark-mode .pillar-jump-link:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

body.dark-mode .pillar-jump-link.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.pillar-num {
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--hrms-primary);
  background: var(--hrms-primary-light);
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

body.dark-mode .pillar-num {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   SECTION 01 — MANAGE: CENTRALIZED WORKFORCE MANAGEMENT (SPLIT LAYOUT)
   ========================================================================== */
.hrms-manage-section {
  padding: 44px 24px 15px;
  background: #ffffff;
  border-bottom: 1px solid var(--hrms-border);
  position: relative;
  scroll-margin-top: 85px;
}

body.dark-mode .hrms-manage-section {
  background: #0f172a;
}

.hrms-manage-container {
  max-width: 1260px;
  margin: 0 auto;
}

.hrms-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

/* Left Content Column */
.manage-content-col {
  display: flex;
  flex-direction: column;
}

.manage-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--hrms-text-main);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.manage-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--hrms-text-muted);
  margin-bottom: 30px;
}

.manage-capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.manage-capability-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.capability-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

body.dark-mode .capability-icon-badge {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.capability-text h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--hrms-text-main);
  margin: 0 0 5px 0;
}

.capability-text p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hrms-text-muted);
  margin: 0;
}

.manage-action-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.manage-text-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hrms-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.manage-text-link:hover {
  gap: 10px;
}

/* Right Console Visual */
.manage-console-wrapper {
  position: relative;
}

.enterprise-console-card {
  background: var(--hrms-card-bg);
  border: 1.5px solid var(--hrms-border);
  border-radius: var(--hrms-radius-lg);
  box-shadow: var(--hrms-shadow-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enterprise-console-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

body.dark-mode .enterprise-console-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--hrms-card-surface);
  border-bottom: 1px solid var(--hrms-border);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.console-dot.red {
  background: #ef4444;
}

.console-dot.yellow {
  background: #f59e0b;
}

.console-dot.green {
  background: #10b981;
}

.console-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hrms-text-muted);
  letter-spacing: 0.5px;
}

.console-status-live {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: var(--hrms-success-light);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Console Search & Stats Strip */
.console-body {
  padding: 20px;
}

.console-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.console-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--hrms-card-surface);
  border: 1px solid var(--hrms-border);
  border-radius: var(--hrms-radius-sm);
  font-size: 13px;
  color: var(--hrms-text-muted);
}

.console-filter-pill {
  padding: 8px 14px;
  border-radius: var(--hrms-radius-sm);
  background: var(--hrms-card-surface);
  border: 1px solid var(--hrms-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--hrms-text-muted);
  white-space: nowrap;
}

.console-filter-pill.active {
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
  border-color: rgba(37, 99, 235, 0.3);
}

/* KPI Summary Bar */
.console-kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.console-kpi-box {
  padding: 12px 14px;
  background: var(--hrms-card-surface);
  border: 1px solid var(--hrms-border);
  border-radius: 10px;
}

.kpi-box-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--hrms-text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-box-label {
  font-size: 11.5px;
  color: var(--hrms-text-muted);
  font-weight: 600;
}

/* Employee Table Rows */
.console-employee-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employee-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--hrms-card-surface);
  border: 1px solid var(--hrms-border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.employee-row-card:hover {
  border-color: var(--hrms-primary);
  background: rgba(37, 99, 235, 0.02);
}

.employee-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emp-avatar-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a8a;
  position: relative;
  flex-shrink: 0;
}

.emp-avatar-box.av-1 {
  background: #dbeafe;
  color: #1d4ed8;
}

.emp-avatar-box.av-2 {
  background: #fef3c7;
  color: #b45309;
}

.emp-avatar-box.av-3 {
  background: #dcfce7;
  color: #047857;
}

.emp-status-ring {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--hrms-card-bg);
}

.emp-status-ring.warning {
  background: #f59e0b;
}

.emp-status-ring.leave {
  background: #3b82f6;
}

.emp-name-role h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--hrms-text-main);
  margin: 0 0 3px 0;
}

.emp-name-role p {
  font-size: 12px;
  color: var(--hrms-text-muted);
  margin: 0;
}

.emp-compliance-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.tag-badge.success {
  background: var(--hrms-success-light);
  color: #059669;
}

.tag-badge.warning {
  background: var(--hrms-warning-light);
  color: #d97706;
}

.tag-badge.info {
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
}

/* ==========================================================================
   SECTION 02 — CONNECT: UNIFIED HR & FRONTLINE MOBILITY (DUAL-PANE ECOSYSTEM)
   ========================================================================== */
.hrms-connect-section {
  padding: 20px 24px;
  background: var(--hrms-card-surface);
  border-bottom: 1px solid var(--hrms-border);
  position: relative;
  scroll-margin-top: 90px;
}

body.dark-mode .hrms-connect-section {
  background: #0b1120;
}

.hrms-connect-container {
  max-width: 1260px;
  margin: 0 auto;
}

/* Dual-Pane Layout Composition */
.connect-ecosystem-canvas {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 60px;
}

/* Left Pane: Desktop Shift & Manpower Dispatcher */
.desktop-roster-panel {
  background: var(--hrms-card-bg);
  border: 1.5px solid var(--hrms-border);
  border-radius: var(--hrms-radius-lg);
  box-shadow: var(--hrms-shadow-md);
  overflow: hidden;
}

.roster-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--hrms-card-surface);
  border-bottom: 1px solid var(--hrms-border);
}

.roster-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roster-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.roster-panel-title h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hrms-text-main);
  margin: 0;
}

.roster-panel-title span {
  font-size: 12px;
  color: var(--hrms-text-muted);
}

.roster-panel-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Shift Group Rows */
.shift-crew-item {
  border: 1px solid var(--hrms-border);
  border-radius: var(--hrms-radius-sm);
  padding: 14px 16px;
  background: var(--hrms-card-surface);
}

.shift-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shift-title-site h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--hrms-text-main);
  margin: 0 0 2px 0;
}

.shift-title-site p {
  font-size: 12px;
  color: var(--hrms-text-muted);
  margin: 0;
}

.shift-strength-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--hrms-success-light);
  color: #059669;
}

.shift-strength-badge.warning {
  background: var(--hrms-warning-light);
  color: #d97706;
}

/* Mini Progress Meter */
.shift-meter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shift-meter-bar {
  flex: 1;
  height: 6px;
  background: var(--hrms-border);
  border-radius: 999px;
  overflow: hidden;
}

.shift-meter-fill {
  height: 100%;
  background: var(--hrms-primary);
  border-radius: 999px;
}

.shift-meter-pct {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hrms-text-muted);
  min-width: 32px;
}

/* Supervisor Action Strip */
.supervisor-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px dashed var(--hrms-border);
  border-radius: var(--hrms-radius-sm);
  background: rgba(37, 99, 235, 0.03);
  margin-top: 4px;
}

.action-strip-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hrms-text-main);
}

.action-strip-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--hrms-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
}

/* Right Pane: Mobile Frontline Experience Mockup */
.mobile-frontline-panel {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Realistic Smartphone Frame */
.smartphone-shell {
  width: 320px;
  background: #0f172a;
  border: 10px solid #1e293b;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.phone-screen {
  background: #ffffff;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

body.dark-mode .phone-screen {
  background: #0f172a;
}

.phone-notch-bar {
  padding: 10px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

body.dark-mode .phone-notch-bar {
  color: #f8fafc;
}

.phone-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

body.dark-mode .phone-header {
  border-color: #1e293b;
}

.phone-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--hrms-text-main);
}

/* Biometric Viewfinder Area */
.biometric-viewfinder {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.face-target-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px dashed #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  background: rgba(37, 99, 235, 0.04);
}

.face-target-ring i {
  font-size: 48px;
  color: #2563eb;
}

.biometric-verified-chip {
  position: absolute;
  bottom: -6px;
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.viewfinder-status h5 {
  font-size: 13px;
  font-weight: 800;
  color: var(--hrms-text-main);
  margin: 0 0 3px 0;
}

.viewfinder-status p {
  font-size: 11px;
  color: var(--hrms-text-muted);
  margin: 0;
}

/* Geofence & Shift Cards inside phone */
.phone-card-container {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-mini-card {
  padding: 10px 12px;
  background: var(--hrms-card-surface);
  border: 1px solid var(--hrms-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-card-info h6 {
  font-size: 11px;
  font-weight: 700;
  color: var(--hrms-text-main);
  margin: 0 0 2px 0;
}

.mini-card-info p {
  font-size: 10px;
  color: var(--hrms-text-muted);
  margin: 0;
}

.phone-clock-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  margin-top: 4px;
}

/* Value Pillars Grids (Section 01 & Section 02) - Clean Borderless Layout with Circular Badges */
.manage-pillars-grid,
.connect-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.manage-pillar-card,
.connect-pillar-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 16px 10px;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.manage-pillar-card:hover,
.connect-pillar-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.pillar-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #003b95;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 22px rgba(0, 59, 149, 0.22);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, background 0.28s ease;
  flex-shrink: 0;
}

.manage-pillar-card:hover .pillar-icon-wrap,
.connect-pillar-card:hover .pillar-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 59, 149, 0.35);
  background: #0047b3;
}

body.dark-mode .pillar-icon-wrap {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}

body.dark-mode .manage-pillar-card:hover .pillar-icon-wrap,
body.dark-mode .connect-pillar-card:hover .pillar-icon-wrap {
  background: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
}

.manage-pillar-card h4,
.connect-pillar-card h4 {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--hrms-text-main);
  margin: 0 0 10px 0;
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-align: center;
}

.manage-pillar-card p,
.connect-pillar-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--hrms-text-muted);
  margin: 0 auto;
  text-align: center;
  max-width: 275px;
}

/* ==========================================================================
   SECTION 03 — INTELLIGENCE: WORKFORCE ANALYTICS & DECISION TELEMETRY
   ========================================================================== */
.hrms-intel-section {
  padding: 90px 24px;
  background: #ffffff;
  position: relative;
  scroll-margin-top: 90px;
}

body.dark-mode .hrms-intel-section {
  background: #070d18;
}

.hrms-intel-container {
  max-width: 1260px;
  margin: 0 auto;
}

/* Executive Telemetry Dashboard Visual */
.intel-command-center {
  background: var(--hrms-card-bg);
  border: 1.5px solid var(--hrms-border);
  border-radius: var(--hrms-radius-lg);
  box-shadow: var(--hrms-shadow-lg);
  overflow: hidden;
}

/* Top Telemetry KPI Ribbon */
.intel-telemetry-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hrms-border);
  background: var(--hrms-card-surface);
}

.telemetry-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--hrms-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.telemetry-cell:last-child {
  border-right: none;
}

.telemetry-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.telemetry-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--hrms-text-muted);
}

.telemetry-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.telemetry-tag.success {
  background: var(--hrms-success-light);
  color: #059669;
}

.telemetry-tag.info {
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
}

.telemetry-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--hrms-text-main);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.telemetry-hint {
  font-size: 12px;
  color: var(--hrms-text-muted);
  font-weight: 600;
}

/* Analytics Panels Grid */
.intel-analytics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 24px;
}

.intel-panel {
  border: 1px solid var(--hrms-border);
  border-radius: var(--hrms-radius-md);
  padding: 22px;
  background: var(--hrms-card-surface);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-title-row h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hrms-text-main);
  margin: 0;
}

.panel-meta-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hrms-text-muted);
  background: var(--hrms-card-bg);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--hrms-border);
}

/* Visual Mockup: 30-Day Turnout Bar Graph */
.turnout-bars-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 160px;
  padding: 10px 0 0;
  border-bottom: 1px solid var(--hrms-border);
  margin-bottom: 14px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.chart-bar-fill {
  width: 16px;
  background: var(--hrms-primary);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
  position: relative;
}

.chart-bar-fill.target {
  background: #93c5fd;
}

.chart-bar-day {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--hrms-text-muted);
}

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--hrms-text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-dot.primary {
  background: var(--hrms-primary);
}

.legend-dot.secondary {
  background: #93c5fd;
}

/* Manpower Trade Allocation Breakdown */
.trade-allocation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trade-row-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trade-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
}

.trade-name {
  color: var(--hrms-text-main);
}

.trade-numbers {
  color: var(--hrms-text-muted);
}

.trade-bar-bg {
  height: 7px;
  background: var(--hrms-border);
  border-radius: 999px;
  overflow: hidden;
}

.trade-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.trade-bar-fill.c1 {
  width: 42%;
  background: #2563eb;
}

.trade-bar-fill.c2 {
  width: 28%;
  background: #0284c7;
}

.trade-bar-fill.c3 {
  width: 18%;
  background: #10b981;
}

.trade-bar-fill.c4 {
  width: 12%;
  background: #f59e0b;
}

/* Bottom Strip: Statutory Expiry Horizon Radar */
.statutory-radar-strip {
  padding: 18px 24px;
  border-top: 1px solid var(--hrms-border);
  background: var(--hrms-card-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radar-summary-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-pulse-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--hrms-success-light);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.radar-details h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hrms-text-main);
  margin: 0 0 2px 0;
}

.radar-details p {
  font-size: 12px;
  color: var(--hrms-text-muted);
  margin: 0;
}

.radar-milestones-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-pill {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--hrms-border);
  background: var(--hrms-card-bg);
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-pill.safe {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

.radar-pill.warning {
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   RESPONSIVE SCALING & COMPREHENSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .hrms-manage-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .connect-ecosystem-canvas {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .manage-pillars-grid,
  .connect-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intel-telemetry-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .telemetry-cell:nth-child(2) {
    border-right: none;
  }

  .telemetry-cell:nth-child(3) {
    border-top: 1px solid var(--hrms-border);
  }

  .telemetry-cell:nth-child(4) {
    border-top: 1px solid var(--hrms-border);
  }

  .intel-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hrms-hero {
    padding: 100px 16px 18px;
  }

  .hrms-hero-title {
    font-size: 32px;
  }

  .hrms-section-title {
    font-size: 28px;
  }

  .hrms-manage-section,
  .hrms-connect-section,
  .hrms-intel-section {
    padding: 14px 16px;
  }

  .manage-pillars-grid,
  .connect-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intel-telemetry-ribbon {
    grid-template-columns: 1fr;
  }

  .telemetry-cell {
    border-right: none;
    border-bottom: 1px solid var(--hrms-border);
  }

  .telemetry-cell:last-child {
    border-bottom: none;
  }

  .statutory-radar-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .radar-milestones-row {
    flex-wrap: wrap;
    width: 100%;
  }

  .smartphone-shell {
    width: 290px;
  }
}