@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --rd-ink: #14213d;
  --rd-ink-soft: #263b5b;
  --rd-teal: #218c87;
  --rd-teal-dark: #176c68;
  --rd-coral: #e9785d;
  --rd-gold: #d5a83f;
  --rd-paper: #f4f6f1;
  --rd-white: #ffffff;
  --rd-panel: #fbfcf9;
  --rd-line: #dbe5de;
  --rd-muted: #6d7d76;
  --rd-success: #2d8964;
  --rd-danger: #b84f42;
  --rd-shadow-sm: 0 6px 18px rgba(20, 33, 61, .07);
  --rd-shadow-md: 0 18px 44px rgba(20, 33, 61, .10);
  --rd-shadow-lg: 0 28px 80px rgba(20, 33, 61, .15);
  --rd-radius-sm: 8px;
  --rd-radius-md: 14px;
  --rd-radius-lg: 20px;
  --rd-ease: 180ms ease;
}

/* =========================================================
   PULSEPOINT MODERN EXECUTIVE LANDING PAGE SUITE
   ========================================================= */
.landing-page {
  --lp-bg: #0b1329;
  --lp-bg-subtle: #0f172a;
  --lp-card: #ffffff;
  --lp-surface: #f8fafc;
  --lp-border: #e2e8f0;
  --lp-border-subtle: #f1f5f9;
  --lp-ink: #0f172a;
  --lp-ink-muted: #64748b;
  --lp-ink-light: #94a3b8;
  --lp-primary: #2563eb;
  --lp-primary-hover: #1d4ed8;
  --lp-primary-soft: #eff6ff;
  --lp-emerald: #10b981;
  --lp-emerald-soft: #ecfdf5;
  --lp-amber: #f59e0b;
  --lp-amber-soft: #fffbeb;
  background: #fafbfc;
  color: var(--lp-ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Floating / Sticky Navbar */
.landing-navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.25s ease;
}
.landing-navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a;
}
.landing-brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  filter: drop-shadow(0 3px 8px rgba(37, 99, 235, 0.22));
}
.landing-brand:hover .landing-brand-logo-img,
.modern-auth-brand:hover .landing-brand-logo-img {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.35));
}
.landing-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.landing-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.landing-brand-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.landing-brand-title .brand-crm-accent {
  font-size: inherit;
  font-weight: inherit;
  color: #2563eb;
  letter-spacing: inherit;
  display: inline;
}
.landing-brand-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.25px;
  line-height: 1.2;
}
.landing-footer-v2 .landing-brand-title {
  color: #ffffff;
}
.landing-footer-v2 .landing-brand-subtitle {
  color: #94a3b8;
}
.landing-footer-v2 .brand-crm-accent {
  color: #60a5fa;
  -webkit-text-fill-color: #60a5fa;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav-link {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.landing-nav-link:hover {
  color: #2563eb;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-btn-login {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 10px;
  transition: all 0.15s ease;
}
.landing-btn-login:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.landing-btn-trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  transition: all 0.2s ease;
}
.landing-btn-trial:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.24);
}
.landing-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: #0f172a;
}

/* Mobile Nav Drawer */
.landing-mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 999;
}
.landing-mobile-drawer.is-open {
  display: block;
}
.landing-drawer-inner {
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.landing-drawer-link {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

/* Hero Section */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 80px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.09) 0%, rgba(250, 251, 252, 0) 70%), #fafbfc;
  text-align: center;
}
.landing-hero-container {
  max-width: 1040px;
  margin: 0 auto;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}
.hero-badge-pill:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #0f172a;
  margin: 0 0 22px;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subheadline {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.62;
  color: #475569;
  max-width: 780px;
  margin: 0 auto 36px;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.hero-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  transition: all 0.2s ease;
}
.hero-primary-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
}
.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}
.hero-secondary-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.hero-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #047857 !important;
  border: 1px solid #a7f3d0;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.hero-whatsapp-btn:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}
.hero-proof-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.hero-proof-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* High-Fidelity Mockup Window */
.hero-mockup-wrapper {
  max-width: 1120px;
  margin: 50px auto 0;
  position: relative;
}
.mockup-window {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  box-shadow: 0 26px 75px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  text-align: left;
}
.mockup-topbar {
  background: #0f172a;
  color: #94a3b8;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.mockup-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dots .dot-red { background: #ef4444; }
.mockup-dots .dot-yellow { background: #f59e0b; }
.mockup-dots .dot-green { background: #10b981; }
.mockup-url-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: 6px;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11.5px;
}
.mockup-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 700;
  font-size: 11px;
}
.mockup-body {
  padding: 24px;
  background: #f8fafc;
}
.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.mockup-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}
.mockup-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.mockup-kpi-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.mockup-kpi-sub {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-top: 2px;
}
.mockup-split-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}
.mockup-feed-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}
.mockup-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.mockup-feed-header strong {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.mockup-feed-header span {
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
}
.mockup-employee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}
.mockup-employee-row:last-child {
  border-bottom: none;
}
.mockup-emp-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
}
.mockup-emp-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.mockup-emp-info small {
  font-size: 11px;
  color: #64748b;
}
.mockup-status-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.mockup-status-tag.on-time {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.mockup-status-tag.late {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.mockup-qr-kiosk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mockup-qr-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.mockup-qr-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.mockup-qr-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px;
}
.mockup-qr-box {
  width: 140px;
  height: 140px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mockup-qr-countdown {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

/* Method Badges in Live Feed */
.mockup-method-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.mockup-method-pill.face {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.mockup-method-pill.qr {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Mockup Kiosk Switcher Tabs */
.mockup-kiosk-switcher {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 14px;
  width: 100%;
}
.mockup-kiosk-tab {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.mockup-kiosk-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Mockup Face Scan Simulator */
.mockup-face-simulator {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mockup-face-box {
  width: 150px;
  height: 140px;
  background: #090d16;
  border: 1.5px solid #1e293b;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.mockup-face-reticle {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  border: 1.5px dashed rgba(16, 185, 129, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-face-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: mockupScanLaser 2s ease-in-out infinite alternate;
}
@keyframes mockupScanLaser {
  0% { top: 10%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 90%; opacity: 0.3; }
}
.mockup-face-matched-pill {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.mockup-face-btn-preview {
  margin-top: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  cursor: default;
}

/* Trust Bar */
.landing-trust-bar {
  padding: 38px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}
.trust-bar-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 22px;
}
.trust-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #475569;
  letter-spacing: -0.2px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* Section Header Shared */
.landing-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 54px;
}
.section-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #0f172a;
  margin: 0 0 14px;
}
.section-desc {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Workflow Section */
.landing-workflow {
  padding: 92px 24px;
  background: #fafbfc;
}
.workflow-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.workflow-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 26px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.workflow-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.workflow-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.workflow-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}
.workflow-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Bento Grid Features */
.landing-bento {
  padding: 92px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.bento-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}
.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.bento-card-icon.blue { background: #eff6ff; color: #2563eb; }
.bento-card-icon.emerald { background: #ecfdf5; color: #059669; }
.bento-card-icon.amber { background: #fffbeb; color: #d97706; }
.bento-card-icon.purple { background: #f5f3ff; color: #7c3aed; }
.bento-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}
.bento-card p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 20px;
}
.bento-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 600;
}
.bento-checklist svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Interactive ROI Calculator */
.landing-roi-section {
  padding: 92px 24px;
  background: #fafbfc;
  border-top: 1px solid #e2e8f0;
}
.roi-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 44px;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}
.roi-slider-block {
  margin-bottom: 36px;
}
.roi-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.roi-slider-label span {
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
}
.roi-slider-label strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  color: #60a5fa;
}
.roi-range-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  cursor: pointer;
  accent-color: #3b82f6;
}
.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.roi-result-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.roi-result-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.roi-result-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #34d399;
}
.roi-result-item small {
  display: block;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Pricing Section */
.landing-pricing-section {
  padding: 92px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.pricing-toggle-wrap {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 40px;
}
.pricing-toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pricing-toggle-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 1040px) {
  .landing-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}
.landing-price-card.five-years {
  border: 2px solid #6366f1;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}
.landing-ribbon.royal {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.btn-price-whatsapp.five-years-btn {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.btn-price-whatsapp.five-years-btn:hover {
  background: #d1fae5;
  color: #065f46;
  border-color: #34d399;
}
.landing-price-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 38px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}
.landing-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.landing-price-card.featured {
  border: 2px solid #10b981;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.12);
}
.landing-ribbon {
  position: absolute;
  top: -12px;
  right: 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
}
.landing-card-plan-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}
.landing-card-plan-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 24px;
}
.landing-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}
.landing-card-currency {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}
.landing-card-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.landing-card-period {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}
.landing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.landing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}
.landing-card-features svg {
  color: #10b981;
  flex-shrink: 0;
}
.landing-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-price-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.btn-price-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
.landing-price-card.featured .btn-price-primary {
  background: #10b981;
}
.landing-price-card.featured .btn-price-primary:hover {
  background: #059669;
}
.btn-price-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  transition: all 0.15s ease;
}
.btn-price-whatsapp:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

/* Reviews / Testimonials */
.landing-reviews-section {
  padding: 92px 24px;
  background: #fafbfc;
  border-top: 1px solid #e2e8f0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-quote {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 20px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
}
.review-author-info strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.review-author-info small {
  font-size: 12px;
  color: #64748b;
}

/* FAQ Section */
.landing-faq-section {
  padding: 92px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item.is-open {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  color: #64748b;
  flex-shrink: 0;
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: #2563eb;
}
.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
}
.faq-item.is-open .faq-answer {
  display: block;
}

/* Final Conversion Banner */
.landing-cta-banner {
  padding: 92px 24px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0) 70%), #0f172a;
  color: #ffffff;
  text-align: center;
}
.cta-banner-content {
  max-width: 800px;
  margin: 0 auto;
}
.cta-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.cta-banner-desc {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 36px;
}
.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Executive Dark Footer */
.landing-footer-v2 {
  background: #090e1a;
  color: #94a3b8;
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand-col p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #94a3b8;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom-bar {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .mockup-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .mockup-split-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .workflow-cards-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .landing-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  /* Navbar: Hide desktop links and login AND hide the trial button from header */
  .landing-nav-links,
  .landing-nav-actions .landing-btn-login,
  .landing-nav-actions .landing-btn-trial {
    display: none !important;
  }
  .landing-navbar {
    padding: 12px 16px;
  }
  .landing-brand {
    gap: 10px;
  }
  .landing-brand-logo-img {
    height: 38px;
    max-width: 42px;
  }
  .landing-brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }
  .landing-brand-title {
    font-size: 16px;
  }
  .landing-brand-subtitle {
    font-size: 10.5px;
  }
  .landing-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    color: #0f172a;
  }
  .landing-mobile-menu-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
  }

  /* Drawer Menu */
  .landing-mobile-drawer {
    top: 61px;
  }
  .landing-drawer-inner {
    padding: 20px 20px 24px;
    border-radius: 0 0 20px 20px;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    gap: 14px;
  }
  .landing-drawer-inner .landing-btn-trial {
    display: flex !important;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 13px 20px;
    font-size: 14.5px;
    border-radius: 12px;
  }
  .landing-drawer-inner .landing-btn-login {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
  }

  /* Hero Section on Mobile */
  .landing-hero {
    padding: 36px 16px 48px;
  }
  .hero-badge-pill {
    display: none !important;
  }
  .hero-headline {
    font-size: clamp(28px, 7.5vw, 36px);
    letter-spacing: -0.8px;
    line-height: 1.16;
    margin-top: 8px;
    margin-bottom: 16px;
  }
  .hero-subheadline {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 26px;
    padding: 0 4px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 28px;
    gap: 12px;
  }
  .hero-primary-btn,
  .hero-secondary-btn,
  .hero-whatsapp-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14.5px;
    padding: 13px 20px;
    min-height: 48px;
    border-radius: 12px;
  }

  /* Trust Badges: Sleek 2x2 Grid of Pills */
  .hero-proof-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
  }
  .hero-proof-badges span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    line-height: 1.35;
    box-sizing: border-box;
  }

  /* Mockup Window on Mobile */
  .hero-mockup-wrapper {
    margin-top: 32px;
  }
  .mockup-window {
    border-radius: 16px;
  }
  .mockup-topbar {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mockup-url-pill {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px;
  }
  .mockup-online-badge {
    font-size: 10px;
  }
  .mockup-body {
    padding: 14px;
  }
  .mockup-kpi-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
  .mockup-kpi-card {
    padding: 12px 14px;
  }
  .mockup-kpi-val {
    font-size: 20px;
  }
  .mockup-split-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mockup-feed-card {
    padding: 14px;
  }
  .mockup-employee-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }
  .mockup-qr-kiosk-card {
    padding: 18px 14px;
  }
  .mockup-qr-box {
    width: 130px;
    height: 130px;
  }

  /* Trust Bar */
  .landing-trust-bar {
    padding: 28px 16px;
  }
  .trust-logos-row {
    gap: 10px;
  }
  .trust-logo-chip {
    font-size: 13.5px;
    padding: 6px 10px;
  }

  /* Workflow */
  .landing-workflow {
    padding: 52px 16px;
  }
  .workflow-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .workflow-card {
    padding: 24px 20px;
  }

  /* Bento Grid */
  .landing-bento {
    padding: 52px 16px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 1;
  }
  .bento-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  /* ROI Calculator */
  .landing-roi-section {
    padding: 52px 16px;
  }
  .roi-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .roi-slider-label {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .roi-slider-label strong {
    font-size: 24px;
  }
  .roi-results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
  }
  .roi-result-item {
    padding: 16px;
  }
  .roi-result-item strong {
    font-size: 24px;
  }

  /* Pricing */
  .landing-pricing-section {
    padding: 52px 16px;
  }
  .pricing-toggle-wrap {
    width: 100%;
    max-width: 340px;
    display: flex;
    box-sizing: border-box;
  }
  .pricing-toggle-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
  }
  .landing-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px;
  }
  .landing-price-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .landing-card-amount {
    font-size: 38px;
  }

  /* Reviews & FAQ */
  .landing-reviews-section {
    padding: 52px 16px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-card {
    padding: 20px 18px;
  }
  .landing-faq-section {
    padding: 52px 16px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  .faq-answer {
    padding: 0 18px 16px;
    font-size: 13.5px;
  }

  /* CTA Banner */
  .landing-cta-banner {
    padding: 52px 16px;
  }
  .cta-banner-content {
    padding: 32px 20px;
    border-radius: 18px;
  }
  .cta-banner-title {
    font-size: 24px;
    line-height: 1.25;
  }
  .cta-banner-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .cta-banner-actions .hero-primary-btn,
  .cta-banner-actions .hero-whatsapp-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Footer */
  .landing-footer-v2 {
    padding: 44px 16px 24px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .hero-proof-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-proof-badges span {
    justify-content: flex-start;
    padding: 9px 12px;
    font-size: 11.5px;
  }
}

html {
  min-height: 100%;
  background: var(--rd-paper);
}

body {
  min-height: 100vh;
  background: var(--rd-paper);
  color: var(--rd-ink);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0;
}

body::selection {
  color: var(--rd-white);
  background: var(--rd-teal);
}

  .company-logo {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
  }
  .scan-company-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
  }
  .scan-company-logo img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 14px 30px rgba(20, 33, 61, .12);
  }
  .scan-company-logo .brand-mark {
    display: grid;
    place-items: center;
    width: 200px;
    height: 200px;
    font-size: 42px;
    border-radius: 18px;
  }
  .logo-upload-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
  }
  .logo-upload-preview img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px;
    background: #fff;
  }
  .logo-live-preview {
    display: block;
    width: 150px;
    height: 150px;
    margin-top: 12px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    background: #fff;
  }
  .logo-upload-preview label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    font-weight: 500 !important;
  }

h1,
h2,
h3,
h4,
p {
  text-wrap: balance;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  color: var(--rd-ink);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-sm);
  background: var(--rd-panel);
  box-shadow: inset 0 1px 1px rgba(20, 33, 61, .025);
  transition: border-color var(--rd-ease), box-shadow var(--rd-ease), background var(--rd-ease);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #a9c5ba;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rd-teal);
  outline: 0;
  background: var(--rd-white);
  box-shadow: 0 0 0 4px rgba(33, 140, 135, .13);
}

input::placeholder,
textarea::placeholder {
  color: #9aa9a2;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 7px;
}

.password-field input {
  width: 100%;
  margin: 0 !important;
  padding-right: 48px !important;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
}

.password-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0f172a;
}

.password-toggle.is-visible {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.button {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--rd-radius-sm);
  box-shadow: var(--rd-shadow-sm);
  font-weight: 700;
  transition: transform var(--rd-ease), background var(--rd-ease), border-color var(--rd-ease), box-shadow var(--rd-ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--rd-shadow-md);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: var(--rd-white);
  border-color: var(--rd-ink);
  background: var(--rd-ink);
}

.button.primary:hover {
  border-color: var(--rd-ink-soft);
  background: var(--rd-ink-soft);
}

.button.secondary {
  color: var(--rd-ink);
  border-color: var(--rd-line);
  background: var(--rd-white);
}

.button.secondary:hover {
  color: var(--rd-teal-dark);
  border-color: var(--rd-teal);
  background: #f2faf6;
}

.button.full {
  min-height: 52px;
}

.alert {
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: var(--rd-radius-sm);
  box-shadow: var(--rd-shadow-sm);
}

.alert.success {
  color: #236b4d;
  border-color: #bfe5ce;
  border-left-color: var(--rd-success);
  background: #effaf3;
}

.alert.error {
  color: #934438;
  border-color: #f0c9c0;
  border-left-color: var(--rd-danger);
  background: #fff3ef;
}

.eyebrow {
  color: var(--rd-teal-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.muted {
  color: var(--rd-muted);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(20, 33, 61, .18);
  font-size: 20px;
}

.auth-page {
  isolation: isolate;
  background: #eaf1ec;
}

.auth-page::after {
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(33, 140, 135, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(33, 140, 135, .04), 0 0 0 60px rgba(33, 140, 135, .03);
  content: '';
}

.auth-panel {
  padding: 56px clamp(30px, 7vw, 100px);
  background: rgba(255, 255, 255, .94);
  box-shadow: 18px 0 55px rgba(20, 33, 61, .06);
}

.auth-panel .brand {
  margin-bottom: 84px;
}

.auth-panel .brand > div {
  min-width: 0;
}

.auth-panel .brand strong {
  display: block;
  max-width: 245px;
  color: var(--rd-ink);
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.auth-panel h1 {
  max-width: 420px;
  color: var(--rd-ink);
  font-size: clamp(36px, 4vw, 58px);
  line-height: .98;
}

.auth-panel form {
  max-width: 420px;
}

.auth-panel label {
  margin: 19px 0;
  color: var(--rd-ink);
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.auth-panel input {
  min-height: 52px;
  margin-top: 8px;
}

.auth-panel .subtle-link {
  color: var(--rd-teal-dark);
  font-weight: 700;
  transition: color var(--rd-ease);
}

.auth-panel .subtle-link:hover {
  color: var(--rd-coral);
}

.auth-art {
  background: linear-gradient(142deg, #14213d 0%, #1b4650 58%, #218c87 130%);
}

.auth-art::after {
  position: absolute;
  right: 11%;
  bottom: 13%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rd-coral);
  box-shadow: 22px -7px 0 var(--rd-gold), 38px 11px 0 #b8e4cf;
  content: '';
}

.art-copy strong {
  max-width: 680px;
  font-size: clamp(48px, 6vw, 92px);
  line-height: .91;
}

.app-shell {
  min-height: 100vh;
  background: var(--rd-paper);
}

.sidebar {
  width: 274px;
  flex-basis: 274px;
  padding: 30px 18px 20px;
  background: linear-gradient(160deg, #14213d 0%, #183951 55%, #1f6661 135%);
  box-shadow: 16px 0 46px rgba(20, 33, 61, .13);
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.sidebar-close-btn {
  display: none;
}

.sidebar::before {
  right: -60px;
  bottom: 11%;
  width: 180px;
  height: 180px;
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 25px rgba(255, 255, 255, .04), 0 0 0 50px rgba(255, 255, 255, .025);
}

.sidebar .brand {
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.sidebar .company-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 14px;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.sidebar .brand strong {
  color: var(--rd-white);
  font-size: 17px;
}

.sidebar .brand small {
  color: #b8cbc5;
}

.sidebar nav {
  gap: 7px;
  margin-top: 48px;
}

.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 9px;
  color: #bdccc9;
  font-size: 13px;
  text-decoration: none;
  transition: background var(--rd-ease), color var(--rd-ease), transform var(--rd-ease);
}

.sidebar nav a:hover {
  color: var(--rd-white);
  background: rgba(255, 255, 255, .09);
  transform: translateX(3px);
}

.sidebar nav a.active {
  color: var(--rd-ink);
  border-color: #d8f2e3;
  background: #d8f2e3;
  box-shadow: 0 10px 22px rgba(8, 24, 42, .2);
}

.sidebar nav a.active::before {
  position: absolute;
  left: -18px;
  width: 4px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: var(--rd-coral);
  content: '';
}

.sidebar-nav-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  color: #ffffff;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  opacity: 0.95;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.sidebar nav a:hover .sidebar-nav-icon {
  opacity: 1;
  color: #ffffff;
  transform: scale(1.08);
}

.sidebar nav a.active .sidebar-nav-icon {
  color: var(--rd-ink) !important;
  opacity: 1;
}

.sidebar-nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
  line-height: 1.4;
}

.sidebar-badge-beta {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
  line-height: 1.3;
}

/* Sidebar Submenu Dropdown Accordion */
.sidebar-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sidebar-dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #bdccc9;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sidebar-dropdown-toggle:hover {
  color: var(--rd-white);
  background: rgba(255, 255, 255, .09);
  transform: translateX(2px);
}

.sidebar-dropdown-toggle.active,
.sidebar-dropdown.is-open .sidebar-dropdown-toggle {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.sidebar-dropdown-toggle.active {
  border-left: 3px solid #10b981;
}

.sidebar-dropdown-toggle .dropdown-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-dropdown-toggle .dropdown-icon {
  font-size: 15px;
  line-height: 1;
}

.sidebar-dropdown-toggle .dropdown-badge {
  display: none !important;
}

.sidebar-dropdown-toggle .dropdown-chevron {
  color: #9eafa9;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.sidebar-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  color: #10b981;
}

/* Submenu Child Items */
.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 6px 14px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  transition: all 0.25s ease;
}

.sidebar-dropdown.is-open .sidebar-submenu {
  display: flex;
  animation: submenuFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes submenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-submenu .submenu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  color: #a7b8b4 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.sidebar-submenu .submenu-item:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateX(3px) !important;
}

.sidebar-submenu .submenu-item.active {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  font-weight: 700 !important;
}

.sidebar-submenu .submenu-item.active::before {
  display: none !important;
}

.sidebar-submenu .sub-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-submenu .sub-icon-svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  max-width: 15px;
  color: #ffffff;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.sidebar-submenu .submenu-item:hover .sub-icon-svg {
  opacity: 1;
  color: #ffffff;
  transform: scale(1.1);
}

.sidebar-submenu .submenu-item.active .sub-icon-svg {
  color: #10b981 !important;
  opacity: 1;
}

.sidebar-submenu .sub-ext {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.6;
}

/* ── Trial-locked sidebar items ─────────────────────────────────── */
.sidebar-submenu .submenu-item.trial-locked {
  cursor: not-allowed !important;
  opacity: 0.52 !important;
  pointer-events: auto !important;
  position: relative;
  text-decoration: none !important;
}
.sidebar-submenu .submenu-item.trial-locked:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  transform: none !important;
  color: #a7b8b4 !important;
}
.sidebar-submenu .submenu-item.trial-locked .sub-icon-svg {
  opacity: 0.5 !important;
  transform: none !important;
  color: #a7b8b4 !important;
}
/* Pro badge pill */
.trial-lock-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.trial-lock-badge svg {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
/* Tooltip on hover */
.sidebar-submenu .submenu-item.trial-locked::after {
  content: "Upgrade to unlock";
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  border: 1px solid rgba(245,158,11,0.5);
  color: #f59e0b;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.sidebar-submenu .submenu-item.trial-locked:hover::after {
  opacity: 1;
}
/* ─────────────────────────────────────────────────────────────────── */

.sidebar nav a.sidebar-logout {
  color: #fca5a5;
  margin-top: 4px;
}

.sidebar nav a.sidebar-logout:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateX(3px);
}

.sidebar-foot {
  color: #b8cbc5;
  border-top-color: rgba(255, 255, 255, .14);
}

.status-dot {
  background: #8de0ad;
  box-shadow: 0 0 0 4px rgba(141, 224, 173, .16);
}

.main-content {
  position: relative;
  padding: 38px clamp(22px, 5vw, 82px);
  background: radial-gradient(circle at 94% 0, #d8efe4 0, transparent 23%), radial-gradient(circle at 0 100%, #fff0df 0, transparent 19%), var(--rd-paper);
}

.main-content::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rd-coral) 0 20%, var(--rd-teal) 20% 77%, var(--rd-gold) 77%);
  content: '';
}

.topbar {
  position: relative;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.035);
  min-height: 56px;
}

.topbar:has(.user-menu.open),
.topbar.menu-open {
  z-index: 950 !important;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.topbar-company-chip {
  font-weight: 700;
  color: #0f172a;
}

.topbar-sep {
  color: #cbd5e1;
  font-weight: 700;
}

.topbar-date-chip {
  color: #64748b;
  font-weight: 600;
}

.topbar-live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}

.topbar-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: topbarPulse 2s infinite;
}

@keyframes topbarPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar .user-menu {
  position: relative;
  z-index: 50;
  margin-left: auto;
}

.topbar .user-menu.open {
  z-index: 950 !important;
}

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 12px 4px 5px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu-toggle:hover,
.user-menu.open .user-menu-toggle {
  border-color: #2563eb;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.user-avatar.has-avatar-img {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.user-avatar.is-company-avatar {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid #cbd5e1 !important;
  padding: 2px;
}

.user-avatar.is-company-avatar .user-avatar-img {
  object-fit: contain !important;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.user-meta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.user-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.user-menu-role {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.user-menu-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.user-menu.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  width: max-content;
  max-width: min(280px, calc(100vw - 28px));
  padding: 8px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000 !important;
}

.user-menu.open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.user-dropdown-header {
  padding: 10px 14px 11px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
  background: #f8fafc;
  border-radius: 10px;
}
.user-dropdown-header strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}
.user-dropdown-header small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.user-menu-dropdown .dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.user-menu-dropdown .dropdown-link svg {
  flex-shrink: 0;
}

.user-menu-dropdown .dropdown-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.user-menu-dropdown .dropdown-link.logout-link {
  color: #dc2626;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  padding-top: 10px;
}
.user-menu-dropdown .dropdown-link.logout-link:hover {
  background: #fef2f2;
  color: #b91c1c;
}


.delete-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 33, 61, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--rd-ease);
}

.delete-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.delete-modal-card {
  position: relative;
  width: min(100%, 410px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-top: 5px solid var(--rd-coral);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-white);
  box-shadow: 0 30px 90px rgba(20, 33, 61, .28);
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform var(--rd-ease);
}

.delete-modal.open .delete-modal-card {
  transform: translateY(0) scale(1);
}

.delete-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--rd-muted);
  background: transparent;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.delete-modal-close:hover {
  color: var(--rd-coral);
  background: #fff1ee;
}

.delete-modal-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 13px;
  color: #a4493d;
  background: #fff0eb;
  font: 700 23px 'Space Grotesk';
}

.delete-modal-card h2 {
  margin: 0 0 8px;
  color: var(--rd-ink);
  font-size: 23px;
}

.delete-modal-message {
  margin: 0 auto 21px;
  color: var(--rd-muted);
  font-size: 14px;
  line-height: 1.5;
}

.delete-modal-password {
  margin: 0 0 18px;
  text-align: left;
}

.delete-modal-password label {
  color: var(--rd-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.delete-modal-password input {
  min-height: 48px;
  margin-top: 7px;
}

.delete-modal-hint {
  margin: 7px 0 0;
  color: var(--rd-muted);
  font-size: 11px;
}

.delete-modal-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.delete-modal-actions .button {
  min-width: 132px;
}

.delete-modal-actions .delete-confirm {
  color: #fff;
  border-color: var(--rd-coral);
  background: var(--rd-coral);
}

.delete-modal-actions .delete-confirm:hover {
  border-color: #bb5948;
  background: #bb5948;
}

@media (max-width: 430px) {
  .delete-modal-card {
    padding: 27px 19px 21px;
  }

  .delete-modal-actions {
    flex-direction: column-reverse;
  }

  .delete-modal-actions .button {
    width: 100%;
  }
}

.page-actions {
  align-items: center;
  margin: -8px 0 30px;
}

.page-actions p {
  margin: 0;
}

.stats-grid {
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card {
  min-height: 154px;
  padding: 25px 23px;
  overflow: hidden;
  border: 1px solid var(--rd-line);
  border-top: 4px solid var(--rd-teal);
  border-radius: var(--rd-radius-md);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--rd-shadow-md);
  transition: transform var(--rd-ease), box-shadow var(--rd-ease);
}

.stat-card:nth-child(2) {
  border-top-color: var(--rd-coral);
}

.stat-card:nth-child(3) {
  border-top-color: var(--rd-gold);
}

.stat-card:nth-child(4) {
  border-top-color: #73847e;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rd-shadow-lg);
}

.stat-card span {
  color: var(--rd-muted);
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--rd-ink);
  font-size: 40px;
  line-height: 1;
}

.content-section,
.panel,
.stat {
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-md);
  background: rgba(255, 255, 255, .91);
  box-shadow: var(--rd-shadow-md);
}

.content-section {
  padding: 27px;
}

.section-heading,
.panel-head {
  margin-bottom: 23px;
}

.section-heading h2,
.panel-head h2 {
  color: var(--rd-ink);
  font-size: 24px;
}

.table-wrap {
  margin: 0 -5px;
  border: 1px solid #e2ebe5;
  border-radius: 10px;
  background: #fcfdfb;
}

.table-wrap table {
  overflow: hidden;
  border-radius: 10px;
}

th,
td {
  padding: 16px 13px;
  border-bottom-color: var(--rd-line);
}

th {
  color: var(--rd-muted);
  background: #f1f6f2;
  font-size: 10px;
}

tbody tr {
  transition: background var(--rd-ease);
}

tbody tr:hover td {
  background: #eef9f3;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.form-grid {
  gap: 12px 23px;
}

.form-grid label,
.toolbar label {
  color: var(--rd-ink);
  font-size: 11px;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.toolbar input {
  min-height: 48px;
  margin-top: 8px;
  border-radius: 9px;
  background: #fbfdfb;
}

.form-grid textarea {
  min-height: 106px;
}

.form-grid .wide-field {
  grid-column: 1 / -1;
}

.form-actions {
  gap: 12px;
  margin-top: 28px;
}

.table-controls {
  border-color: var(--rd-line);
  border-radius: 10px;
  background: #f1f6f2;
}

.table-pagination button {
  border-color: var(--rd-line);
  border-radius: 6px;
  background: var(--rd-white);
  color: var(--rd-ink);
  font-weight: 700;
  transition: all var(--rd-ease);
}

.table-pagination button:hover,
.table-pagination button.active {
  border-color: var(--rd-teal);
  background: var(--rd-teal);
  color: var(--rd-white);
}

.qr-panel {
  padding: 34px;
  border-top: 4px solid var(--rd-teal);
}

.qr-panel h2 {
  margin-top: 8px;
  color: var(--rd-ink);
}

.qr-panel .qr-image {
  padding: 12px;
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  background: var(--rd-white);
  box-shadow: var(--rd-shadow-md);
}

.public-qr-page {
  padding-top: 38px;
  background: radial-gradient(circle at 10% 0, #d8efe4 0, transparent 27%), var(--rd-paper);
}

.public-qr-header {
  margin-bottom: 42px;
}

.public-qr-card {
  border: 1px solid var(--rd-line);
  border-top: 5px solid var(--rd-teal);
  border-radius: var(--rd-radius-lg);
  box-shadow: var(--rd-shadow-lg);
}

.public-qr-card h1 {
  color: var(--rd-ink);
}

.public-qr-card .qr-image {
  padding: 14px;
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  background: var(--rd-white);
}

.live-clock {
  color: var(--rd-teal-dark);
}

.mobile-attendance {
  background: linear-gradient(145deg, #14213d 0%, #1c514e 100%) !important;
}

.mobile-attendance-card {
  border-top: 5px solid var(--rd-teal) !important;
  border-radius: var(--rd-radius-lg) !important;
  box-shadow: var(--rd-shadow-lg) !important;
}

.mobile-attendance-card h1 {
  color: var(--rd-ink);
}

.attendance-action {
  min-height: 68px !important;
  border-radius: 12px !important;
  transition: transform var(--rd-ease), box-shadow var(--rd-ease) !important;
}

.attendance-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(20, 33, 61, .18) !important;
}

.attendance-action.check-in {
  background: var(--rd-teal) !important;
}

.attendance-action.check-out {
  background: var(--rd-coral) !important;
}

.employee-report {
  border-top: 5px solid var(--rd-teal);
  border-radius: var(--rd-radius-md);
  box-shadow: var(--rd-shadow-lg);
}

.report-heading {
  border-bottom-color: var(--rd-line);
}

.report-heading h2 {
  color: var(--rd-ink);
}

.report-profile > div,
.report-stats > div {
  border: 1px solid #e0ebe4;
  border-radius: 10px;
  background: #f2f8f3;
}

.report-stats > div:last-child {
  background: #e1f4e9;
}

.report-stats strong {
  color: var(--rd-ink);
}

.report-stats > div:last-child strong {
  color: var(--rd-teal-dark);
}

.salary-payment-form {
  padding: 9px;
  border: 1px solid var(--rd-line);
  border-radius: 9px;
  background: #f5faf6;
}

.salary-payment-form input,
.salary-payment-form select {
  min-height: 39px;
  border-radius: 7px;
}

.salary-payment-form .button {
  min-height: 39px;
}

.report-toolbar .toolbar {
  padding: 11px;
  border: 1px solid var(--rd-line);
  border-radius: 10px;
  background: #f5faf6;
}

.report-toolbar .toolbar input {
  background: var(--rd-white);
}

.salary-page .main-content {
  background: radial-gradient(circle at 90% 0, #d5eee4 0, transparent 28%), radial-gradient(circle at 0 90%, #fff0df 0, transparent 22%), var(--rd-paper);
}

.salary-page .salary-payment-form {
  min-width: 630px;
  padding: 10px;
  border: 1px solid #cfe1d7;
  border-radius: 11px;
  background: linear-gradient(135deg, #f3faf5, #fff);
  box-shadow: 0 8px 18px rgba(20, 33, 61, .06);
}

.salary-page .salary-payment-form input,
.salary-page .salary-payment-form select {
  min-height: 40px;
  border-radius: 7px;
  background: #fff;
}

.salary-page .salary-payment-form input[name="amount"] {
  border-color: #8fc5ad;
  font-weight: 700;
}

.salary-page .salary-payment-form .button {
  min-height: 40px;
  background: var(--rd-teal);
  border-color: var(--rd-teal);
}

.salary-page .salary-payment-form .button:hover {
  background: var(--rd-teal-dark);
}

.salary-slip-link {
  white-space: nowrap;
}

/* ==========================================================================
   DATA EXPORT & BACKUP CENTER (EXECUTIVE REDESIGN)
   ========================================================================== */
.export-center-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Section */
.export-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.035);
  position: relative;
  overflow: hidden;
}

.export-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #2563eb 0%, #10b981 100%);
}

.export-hero-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.export-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2563eb;
}

.export-hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

.export-hero p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

.export-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.export-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 20px;
}

.export-badge.company {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.export-badge.security {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.export-badge.format {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.export-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Metrics Grid (4 KPI Cards) */
.export-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.export-metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.export-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.export-metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}

.export-metric-icon.blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.export-metric-icon.green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.export-metric-icon.amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.export-metric-icon.purple {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.export-metric-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.export-metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-feature-settings: "tnum";
}

.export-metric-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-top: 2px;
}

.export-metric-hint {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section Header */
.export-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: -10px;
}

.export-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.export-section-title svg {
  color: #2563eb;
}

.export-section-subtitle {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

/* Main Backup Grid (JSON Full Backup & Restore) */
.backup-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.backup-primary-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.035);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.backup-primary-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.backup-primary-card.card-download {
  border-top: 4px solid #10b981;
}

.backup-primary-card.card-restore {
  border-top: 4px solid #f59e0b;
}

.backup-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.backup-card-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.card-download .backup-card-badge-icon {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.card-restore .backup-card-badge-icon {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.backup-tag-pill {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  letter-spacing: 0.3px;
}

.backup-primary-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.backup-primary-card p.card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 18px;
}

/* Inclusions Checklist */
.backup-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.backup-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.backup-checklist li svg {
  color: #10b981;
  flex-shrink: 0;
}

.backup-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.backup-meta-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

.backup-meta-spec span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.export-btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.export-btn-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Restore Dropzone & Form */
.restore-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backup-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.backup-dropzone:hover,
.backup-dropzone.dragover {
  border-color: #f59e0b;
  background: #fffdfa;
}

.backup-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  color: #f59e0b;
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

.file-preview-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  max-width: 100%;
}

.file-preview-pill.active {
  display: inline-flex;
}

.restore-warning-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
}

.restore-warning-callout svg {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.restore-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.restore-checkbox-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #d97706;
  cursor: pointer;
  margin: 0;
}

.button-restore-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-restore-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.button-restore-submit:not(:disabled):hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

/* CSV Instant Exports Grid (4 Columns) */
.csv-export-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.csv-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.csv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.csv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.csv-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.csv-card.att .csv-card-icon {
  background: #ecfdf5;
  color: #059669;
}

.csv-card.emp .csv-card-icon {
  background: #eff6ff;
  color: #2563eb;
}

.csv-card.sal .csv-card-icon {
  background: #fffbeb;
  color: #d97706;
}

.csv-card.sec .csv-card-icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.csv-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
}

.csv-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.csv-card p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 16px;
  min-height: 36px;
}

.csv-card .export-csv-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.15s ease;
}

.csv-card .export-csv-btn:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

/* Security & Compliance Notes Grid (3 Columns) */
.export-compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compliance-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.025);
}

.compliance-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f8fafc;
  color: #2563eb;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.compliance-card-content h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.compliance-card-content p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .export-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .csv-export-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .export-compliance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .export-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
  }
  .export-hero h2 {
    font-size: 22px;
  }
  .export-hero-actions {
    width: 100%;
    margin-top: 8px;
  }
  .export-hero-actions .button {
    flex: 1;
    justify-content: center;
  }
  .backup-main-grid {
    grid-template-columns: 1fr;
  }
  .backup-primary-card {
    padding: 20px 18px;
  }
  .csv-export-grid {
    grid-template-columns: 1fr;
  }
  .export-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .export-metric-card {
    padding: 14px 12px;
    gap: 10px;
  }
  .export-metric-icon {
    width: 38px;
    height: 38px;
  }
  .export-metric-value {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .export-metrics-grid {
    grid-template-columns: 1fr;
  }
}


.salary-slip-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
}

.salary-slip-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.salary-slip {
  padding: 38px 32px 28px;
  border: 1px solid #d8e5dc;
  border-top: 6px solid var(--rd-teal);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  box-shadow: 0 22px 60px rgba(35, 73, 54, .12);
}

.salary-slip-header,
.salary-slip-period,
.salary-slip-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.salary-slip-header h1 {
  margin: 8px 0 3px;
  color: var(--rd-ink);
  font-size: 30px;
}

.salary-slip-header p {
  margin: 0;
  color: var(--rd-muted);
}

.salary-slip-badge {
  padding: 9px 14px;
  border-radius: 999px;
  color: #236b4d;
  background: #dff3e7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.salary-slip-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 10px;
}

.salary-slip-summary-item {
  padding: 16px 18px;
  border: 1px solid #dbe8df;
  border-radius: 12px;
  background: #ffffff;
}

.salary-slip-summary-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--rd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.salary-slip-summary-item strong {
  display: block;
  color: var(--rd-ink);
  font-size: 18px;
}

.salary-slip-rule {
  height: 1px;
  margin: 24px 0 26px;
  background: var(--rd-line);
}

.salary-slip-employee,
.salary-slip-period {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.salary-slip-employee > div,
.salary-slip-period > div {
  padding: 16px;
  border: 1px solid #dbe8df;
  border-radius: 10px;
  background: #f6faf7;
}

.salary-slip span {
  display: block;
  margin-bottom: 7px;
  color: var(--rd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.salary-slip strong {
  display: block;
  color: var(--rd-ink);
  font-size: 16px;
}

.salary-slip small {
  display: block;
  margin-top: 5px;
  color: var(--rd-muted);
}

.salary-slip-paid {
  color: var(--rd-teal) !important;
  font-size: 22px !important;
}

.salary-slip-notes {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #dfe9e2;
  border-left: 4px solid var(--rd-teal);
  border-radius: 12px;
  background: #f8fbf8;
}

.salary-slip-notes p {
  margin: 0;
  color: var(--rd-ink);
}

.salary-slip-footer {
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--rd-line);
  color: var(--rd-muted);
  font-size: 11px;
}

@media (max-width: 600px) {
  .backup-grid {
    grid-template-columns: 1fr;
  }

  .salary-slip-page {
    padding: 16px;
  }

  .salary-slip {
    padding: 22px 16px 18px;
  }

  .salary-slip-header,
  .salary-slip-period,
  .salary-slip-footer {
    flex-direction: column;
  }

  .salary-slip-summary,
  .salary-slip-employee,
  .salary-slip-period {
    grid-template-columns: 1fr;
  }

  .salary-slip-toolbar .button {
    flex: 1;
    text-align: center;
  }
}

@media print {
  .salary-slip-page {
    max-width: none;
    padding: 0;
  }

  .salary-slip {
    border: 0;
    box-shadow: none;
  }

  .salary-slip-toolbar {
    display: none;
  }
}

.salary-page .content-section:nth-of-type(2) {
  border-top: 4px solid var(--rd-teal);
}

.salary-page .content-section:nth-of-type(3) {
  border-top: 4px solid var(--rd-coral);
}

.salary-page .content-section:nth-of-type(2) .section-heading h2,
.salary-page .content-section:nth-of-type(3) .section-heading h2 {
  font-size: 25px;
}

.salary-page .content-section:nth-of-type(2) td:nth-child(7) {
  color: var(--rd-teal-dark);
  font-size: 14px;
}

.salary-page .content-section:nth-of-type(3) td:nth-child(3) {
  color: var(--rd-teal-dark);
  font-weight: 700;
}

.salary-page .page-actions {
  align-items: stretch;
  gap: 28px;
  padding: 22px 25px;
  border: 1px solid var(--rd-line);
  border-left: 5px solid var(--rd-coral);
  border-radius: var(--rd-radius-md);
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--rd-shadow-md);
}

.salary-page .salary-period-copy {
  flex: 1;
  align-self: center;
}

.salary-page .salary-period-copy p {
  margin: 7px 0 2px;
  color: var(--rd-ink);
  font-size: 16px;
  font-weight: 700;
}

.salary-page .salary-period-copy small {
  color: var(--rd-muted);
  font-size: 12px;
}

.salary-page .page-actions .toolbar {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  margin: 0;
}

.salary-page .page-actions .toolbar label {
  min-width: 180px;
  margin: 0;
}

.salary-page .page-actions .toolbar .button {
  min-width: 114px;
}

.membership-banner {
  margin: -20px 0 23px;
  padding: 10px 14px;
  border: 1px solid #bfe0cc;
  border-left: 4px solid var(--rd-success);
  border-radius: 8px;
  color: #236b4d;
  background: #effaf3;
  font-size: 12px;
  font-weight: 700;
}

.membership-banner a {
  margin-left: 8px;
  color: var(--rd-teal-dark);
  text-decoration: underline;
}

.membership-banner.urgent {
  position: fixed;
  z-index: 90;
  top: 50%;
  right: 20px;
  width: min(320px, calc(100vw - 40px));
  margin: 0;
  transform: translateY(-50%);
  border-color: #f0c6bc;
  border-left-color: var(--rd-coral);
  color: #944438;
  background: #fff3ef;
}
/* ==========================================================================
   WORKSPACE MEMBERSHIP & PRICING (HIGH-CONVERTING SIMPLE DESIGN)
   ========================================================================== */
.membership-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Status Banner */
.membership-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.membership-status-card.is-active {
  border-left: 5px solid #10b981;
}

.membership-status-card.is-expired {
  border-left: 5px solid #ef4444;
  background: #fffafa;
}

.status-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.is-active .status-pulse-dot {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulseGreen 2s infinite;
}

.is-expired .status-pulse-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.status-card-sub {
  font-size: 12.5px;
  color: #64748b;
}

.status-card-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.is-active .status-card-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.is-expired .status-card-badge {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Hero Intro */
.membership-hero-text {
  text-align: center;
  padding: 10px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 12px;
  border-radius: 20px;
}

.membership-hero-text h2 {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin: 0;
  line-height: 1.2;
}

.membership-hero-text p {
  max-width: 580px;
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.pricing-trust-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.pricing-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pricing Cards Grid (3 Columns) */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.pricing-card.featured {
  border: 2px solid #10b981;
  background: linear-gradient(180deg, #fafffc 0%, #ffffff 100%);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12), 0 2px 10px rgba(15, 23, 42, 0.04);
}

.pricing-card.featured:hover {
  box-shadow: 0 16px 44px rgba(16, 185, 129, 0.2);
}

.plan-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4.5px 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
}
.plan-ribbon.royal {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 4px 12px;
}
.pricing-card.featured-royal {
  border: 2px solid #6366f1;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12), 0 2px 10px rgba(15, 23, 42, 0.04);
}
.pricing-card.featured-royal:hover {
  box-shadow: 0 16px 44px rgba(99, 102, 241, 0.22);
}
.plan-type-chip.five-years,
.plan-type-chip.chip-lifetime {
  background: #eef2ff;
  color: #4338ca;
}
.badge-new-feat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}
.button-whatsapp.five-years-btn,
.button-whatsapp.lifetime-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  border-color: #4338ca;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.28);
}
.button-whatsapp.five-years-btn:hover,
.button-whatsapp.lifetime-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
}

.plan-type-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  margin-bottom: 8px;
}

.plan-type-chip.yearly {
  background: #ecfdf5;
  color: #047857;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.plan-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.45;
  min-height: 38px;
}

.plan-price-block {
  margin-bottom: 20px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-main .currency {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  vertical-align: top;
  margin-top: -6px;
}

.price-main .amount {
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -1.5px;
  font-feature-settings: "tnum";
}

.price-main .period {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  margin-left: 4px;
}

.price-sub {
  font-size: 12.5px;
  color: #059669;
  font-weight: 700;
  margin-top: 5px;
}

.price-sub.yearly-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-saving {
  display: inline-flex;
  padding: 2px 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}

.plan-divider {
  height: 1px;
  background: #f1f5f9;
  margin-bottom: 20px;
}

/* Feature Checklist */
.plan-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}

.plan-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.plan-checklist li svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-checklist li.highlight-feature {
  background: #ecfdf5;
  padding: 8px 12px;
  border-radius: 8px;
  color: #047857;
  font-weight: 700;
  border: 1px solid #d1fae5;
}

.plan-checklist li.highlight-feature svg {
  color: #059669;
}

/* WhatsApp Buy Buttons */
.button-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.button-whatsapp svg {
  flex-shrink: 0;
}

.monthly-btn {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.monthly-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  color: #ffffff;
}

.yearly-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.yearly-btn:hover {
  background: linear-gradient(135deg, #22bf5b 0%, #0e7a6e 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* Trust Value Grid (3 Pillars) */
.membership-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.value-item {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.value-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.value-item h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.value-item p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Activation Key Box */
.activation-card {
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activation-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.activation-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  flex-shrink: 0;
}

.activation-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px;
}

.activation-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.activation-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activation-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.activation-input-row input {
  flex: 1;
  min-height: 52px;
  padding: 13px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  font-family: inherit;
  margin: 0;
}

.activation-input-row input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  font-size: 14.5px;
}

.activation-input-row input:focus {
  background: #ffffff;
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.activate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  background: #0f172a;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  transition: all 0.2s ease;
}

.activate-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

/* Installation ID Row with Copy */
.installation-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
  max-width: 100%;
}

.id-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.id-label {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.id-info code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.copy-id-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.copy-id-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.copy-id-btn.copied {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

/* Responsive Styles */
@media (max-width: 860px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .membership-value-grid {
    grid-template-columns: 1fr;
  }
  .membership-hero-text h2 {
    font-size: 26px;
  }
  .activation-card {
    padding: 20px 16px;
  }
  .activation-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .activate-btn {
    justify-content: center;
    width: 100%;
  }
  .installation-id-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .id-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }
  .id-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    white-space: normal;
  }
  .id-info code {
    width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 12px;
    padding: 8px 10px;
    line-height: 1.45;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-sizing: border-box;
    display: block;
  }
  .copy-id-btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 13px;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 0 12px 28px;
  }

  /* Hide the decorative 3-colour stripe on mobile */
  .main-content::before {
    display: none;
  }

  .topbar {
    position: sticky !important;
    top: 0 !important;
    /* Break out of parent's horizontal padding to reach screen edges */
    margin: 0 -12px !important;
    width: calc(100% + 24px) !important;
    z-index: 900 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
    padding: 6px 14px;
    padding-top: max(6px, env(safe-area-inset-top, 6px));
    min-height: 52px;
    border-radius: 0 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
    /* Ensure content below has breathing room */
    margin-bottom: 16px !important;
  }

  .topbar:has(.user-menu.open),
  .topbar.menu-open {
    z-index: 999 !important;
  }

  .topbar-context {
    display: none;
  }

  .user-menu-role {
    display: none;
  }

  .topbar h1 {
    overflow-wrap: anywhere;
    font-size: 27px;
  }

  .topbar .user-menu {
    flex: 0 0 auto;
  }

  .content-section {
    overflow: hidden;
    padding: 17px 13px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-actions > div {
    flex-wrap: wrap;
  }

  .page-actions .button {
    min-width: calc(50% - 5px);
  }
}

.monthly-report-page .main-content {
  background: radial-gradient(circle at 90% 0, #d8eee4 0, transparent 27%), radial-gradient(circle at 0 82%, #fff0df 0, transparent 20%), var(--rd-paper);
}

.monthly-report-page .content-section {
  border-top: 4px solid var(--rd-teal);
}

.monthly-report-page .content-section > .toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: -2px 0 21px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--rd-line);
}

.monthly-report-page .content-section > .toolbar label {
  min-width: 180px;
  margin: 0;
}

.monthly-report-page .content-section > .toolbar input {
  min-height: 50px;
  background: #fff;
}

.monthly-report-page .content-section > .toolbar .button {
  min-width: 120px;
}

.monthly-report-page .content-section > .muted {
  margin: 0 0 18px;
  padding-left: 2px;
  font-size: 13px;
}

.monthly-report-page .table-controls {
  margin-top: 16px;
  border-color: #cfe2d7;
  background: #edf7f0;
}

.membership-expired-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: radial-gradient(circle at 50% 0%, #315f50 0, #1b3d35 34%, #101d1a 100%);
  position: relative;
  overflow: hidden;
}

.membership-expired-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, #d5a83f12 50%, transparent 65%);
  pointer-events: none;
}

.membership-expired-card {
  position: relative;
  width: min(100%, 500px);
  padding: 54px 34px 38px;
  border: 1px solid #d5a83f66;
  border-radius: 24px;
  background: linear-gradient(145deg, #fffefa, #f5f7f1);
  box-shadow: 0 30px 90px #00000052;
  text-align: center;
  overflow: hidden;
}

.membership-expired-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -150px;
  left: 50%;
  border-radius: 50%;
  background: #d5a83f44;
  filter: blur(12px);
  transform: translateX(-50%);
}

.membership-expired-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a671a;
}

.membership-expired-badge span {
  font: 700 15px 'Space Grotesk';
  letter-spacing: 1px;
}

.membership-expired-badge small {
  font-size: 9px;
  letter-spacing: 1.2px;
}

.membership-expired-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  object-fit: contain;
  border: 1px solid #d5a83f55;
  border-radius: 16px;
  padding: 7px;
  background: #fff;
}

.membership-expired-card .eyebrow {
  display: block;
  color: #9a731c;
  margin-bottom: 12px;
}

.membership-expired-card h1 {
  max-width: 380px;
  margin: 0 auto 12px;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.02;
}

.membership-expired-company {
  margin: 0 0 18px;
  color: #176c68;
  font: 700 15px 'Space Grotesk';
  letter-spacing: .3px;
}

.membership-expired-card .muted {
  max-width: 370px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.membership-expired-actions {
  display: grid;
  gap: 16px;
}

.membership-expired-actions .button {
  justify-content: center;
  min-height: 54px;
}

.membership-expired-actions .subtle-link {
  color: #176c68;
}

@media (max-width: 480px) {
  .membership-expired-card {
    padding: 48px 22px 30px;
    border-radius: 20px;
  }
}

.monthly-report-page .table-wrap {
  border-color: #d5e4db;
  background: #fff;
}

.monthly-report-page th {
  color: var(--rd-ink);
  background: #e7f2eb;
}

.monthly-report-page td:first-child {
  min-width: 175px;
}

.monthly-report-page td:first-child .subtle-link {
  color: var(--rd-ink);
  font-size: 14px;
}

.monthly-report-page td:nth-child(4) {
  color: var(--rd-success);
  font-weight: 700;
}

.monthly-report-page td:nth-child(5) {
  color: #9a7424;
  font-weight: 700;
}

.monthly-report-page td:nth-child(7) {
  color: var(--rd-coral);
  font-weight: 700;
}

@media (max-width: 760px) {
  .monthly-report-page .content-section > .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .monthly-report-page .content-section > .toolbar label,
  .monthly-report-page .content-section > .toolbar .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .salary-page .page-actions {
    gap: 18px;
    padding: 19px 16px;
  }

  .salary-page .page-actions .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .salary-page .page-actions .toolbar label,
  .salary-page .page-actions .toolbar .button {
    width: 100%;
  }

  .salary-page .salary-payment-form {
    min-width: 440px;
  }
}

.empty-state {
  color: var(--rd-muted) !important;
  background: #fbfdfb;
}

@media (max-width: 1100px) {
  .sidebar {
    width: 238px;
    flex-basis: 238px;
  }

  .main-content {
    padding-right: 34px;
    padding-left: 34px;
  }

  .salary-payment-form {
    min-width: 640px;
  }
}

@media (max-width: 760px) {
  .auth-panel {
    padding: 34px 25px;
  }

  .auth-panel .brand {
    margin-bottom: 58px;
  }

  .auth-panel .brand strong {
    max-width: 220px;
    font-size: 14px;
  }

  .auth-panel h1 {
    font-size: 42px;
  }

  .auth-art {
    min-height: 330px;
    padding: 36px 26px;
  }

  .art-copy strong {
    font-size: 48px;
  }

  .main-content {
    /* Keep padding-top 0 so topbar sits flush at the top */
    padding: 0 15px 25px;
  }

  .main-content::before {
    display: none;
  }

  .topbar {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    /* Breakout: compensate for parent's 15px side padding */
    margin-left: -15px !important;
    margin-right: -15px !important;
    width: calc(100% + 30px) !important;
  }

  .topbar h1 {
    font-size: 31px;
  }

  .user-chip {
    min-height: 39px;
    padding: 8px 10px;
  }

  .page-actions {
    gap: 15px;
  }

  .content-section {
    padding: 19px 15px;
  }

  .section-heading h2,
  .panel-head h2 {
    font-size: 21px;
  }

  .stats-grid {
    gap: 11px;
  }

  .stat-card {
    min-height: 125px;
    padding: 18px 15px;
  }

  .stat-card strong {
    font-size: 30px;
  }

  .table-controls {
    padding: 10px;
  }

  .table-search {
    width: 100%;
    max-width: none !important;
  }

  .table-pagination {
    justify-content: flex-start;
  }

  .table-wrap {
    margin-right: -4px;
    margin-left: -4px;
  }

  th,
  td {
    padding: 12px 9px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide-field {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
    justify-content: center;
  }

  .qr-panel {
    padding: 24px 17px;
  }

  .employee-report {
    padding: 20px 15px;
  }

  .report-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-meta {
    text-align: left;
  }

  .report-profile,
  .report-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-stats > div:last-child {
    grid-column: 1 / -1;
  }

  .salary-payment-form {
    min-width: 430px;
  }
}

@media (max-width: 430px) {
  .auth-panel h1 {
    font-size: 36px;
  }

  .art-copy strong {
    font-size: 42px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 112px;
  }

  .report-profile,
  .report-stats {
    grid-template-columns: 1fr;
  }

  .report-stats > div:last-child {
    grid-column: auto;
  }

  .public-qr-page {
    padding: 22px 15px;
  }

  .public-qr-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 5mm;
  }

  html,
  body {
    width: 210mm;
    min-height: 297mm;
    background: #fff !important;
  }

  body {
    color: #14213d;
    font-size: 9px;
  }

  .app-shell,
  .main-content {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .sidebar,
  .topbar,
  .no-print,
  .table-controls,
  .alert {
    display: none !important;
  }

  .employee-report {
    width: 200mm;
    min-height: 0;
    margin: 0 auto;
    padding: 0 !important;
    border-top: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    background: #fff !important;
  }

  .employee-report .report-heading {
    display: flex;
    min-height: 0;
    margin-bottom: 3mm;
    padding: 0 0 2mm;
    border-bottom: 1px solid #14213d;
    line-height: 1.05;
  }

  .employee-report .report-heading h2 {
    display: inline;
    margin: 0 2mm 0 0;
    font-size: 15px;
  }

  .employee-report .report-heading h3 {
    display: inline;
    margin: 0 2mm 0 0;
    font-size: 11px;
  }

  .employee-report .report-heading p,
  .employee-report .report-meta span {
    display: inline;
    font-size: 7px;
  }

  .employee-report .report-meta strong {
    font-size: 12px;
  }

  .employee-report .report-profile,
  .employee-report .report-stats {
    gap: 1.2mm;
    margin-bottom: 2mm;
  }

  .employee-report .report-profile > div,
  .employee-report .report-stats > div {
    min-height: 10mm;
    padding: 1.5mm;
    border: 1px solid #dbe5de;
    border-radius: 2mm;
  }

  .employee-report .report-profile span,
  .employee-report .report-stats span,
  .employee-report .report-stats small {
    font-size: 6px;
  }

  .employee-report .report-profile strong,
  .employee-report .report-stats strong {
    margin-top: .5mm;
    font-size: 9px;
  }

  .employee-report h3 {
    margin: 2mm 0 1mm;
    font-size: 10px;
  }

  .employee-report > p {
    margin: 0 0 1.5mm;
    font-size: 6px;
  }

  .employee-report .table-wrap {
    overflow: visible;
    border: 1px solid #cfdcd4;
    border-radius: 0;
  }

  .employee-report table {
    width: 100%;
    table-layout: fixed;
  }

  .employee-report th,
  .employee-report td {
    padding: 1mm 1.2mm;
    font-size: 7px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .employee-report th {
    color: #14213d;
    background: #eaf3ed !important;
    font-size: 6px;
  }

  .employee-report tfoot th {
    background: #dff1e6 !important;
    font-size: 8px;
  }

  .employee-report .report-footer {
    margin-top: 2mm;
    font-size: 6px;
  }

  .employee-report tr,
  .employee-report .report-profile,
  .employee-report .report-stats {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.employee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 360px;
}

.employee-actions .button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 12px;
}

.employee-actions form {
  margin: 0;
}

.employee-detail-header {
  position: relative;
  overflow: hidden;
  padding: 25px 28px 22px;
  border-top: 4px solid var(--rd-teal);
}

.employee-detail-header::after {
  position: absolute;
  right: -45px;
  bottom: -75px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(33, 140, 135, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(33, 140, 135, .035), 0 0 0 40px rgba(33, 140, 135, .025);
  content: '';
  pointer-events: none;
}

.employee-detail-header .section-heading {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  margin-bottom: 20px;
}

.employee-detail-header .section-heading h2 {
  margin: 7px 0 5px;
  font-size: 30px;
}

.employee-detail-header .section-heading p {
  margin: 0;
}

.employee-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.employee-detail-actions .button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 12px;
}

.employee-detail-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--rd-line);
}

.form-grid input:disabled {
  cursor: not-allowed;
  opacity: .5;
  background: #edf2ee;
  border-color: #e86f55;
}

.employee-detail-meta div {
  min-width: 0;
}

.employee-detail-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--rd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.employee-detail-meta strong {
  display: block;
  overflow: hidden;
  color: var(--rd-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-detail-header > form {
  position: relative;
  z-index: 1;
  margin: 0;
}

@media (max-width: 760px) {
  .employee-detail-header {
    padding: 21px 17px 18px;
  }

  .employee-detail-header .section-heading {
    gap: 17px;
  }

  .employee-detail-actions {
    justify-content: flex-start;
  }

  .employee-detail-meta {
    grid-template-columns: 1fr;
  }

  .employee-detail-meta strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.button.danger {
  color: #9a453b;
  border-color: #efc7c0;
  background: #fff4f1;
}

.button.danger:hover {
  color: #fff;
  border-color: #b84f42;
  background: #b84f42;
}

@media (max-width: 760px) {
  .auth-page {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
  }

  .auth-panel {
    min-height: auto;
    padding: 30px 22px 36px;
  }

  .auth-panel .brand {
    margin-bottom: 46px;
  }

  .auth-panel h1 {
    max-width: 330px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .auth-panel form,
  .auth-panel .muted {
    max-width: none;
  }

  .auth-art {
    min-height: 220px;
    padding: 30px 22px;
  }

  .art-copy strong {
    max-width: 330px;
    font-size: 40px;
  }
}

.auth-page {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
  place-items: center;
  padding: 28px 18px;
  background: radial-gradient(circle at 15% 10%, #d8efe4 0, transparent 30%), radial-gradient(circle at 90% 90%, #fff0df 0, transparent 28%), var(--rd-paper);
}

.auth-art {
  display: none;
}

.auth-panel {
  width: min(100%, 520px);
  min-height: 0;
  padding: 42px clamp(24px, 6vw, 58px);
  border: 1px solid var(--rd-line);
  border-top: 5px solid var(--rd-teal);
  border-radius: 16px;
  box-shadow: var(--rd-shadow-lg);
}

.auth-panel .brand {
  margin-bottom: 48px;
}

.auth-panel h1 {
  font-size: clamp(34px, 5vw, 52px);
}

@media (max-width: 600px) {
  .auth-page {
    padding: 16px 12px;
  }

  .auth-panel {
    padding: 30px 20px 34px;
    border-radius: 13px;
  }

  .auth-panel .brand {
    margin-bottom: 38px;
  }
}

.security-card {
  max-width: 760px;
}

.security-card .section-heading {
  align-items: flex-start;
}

.security-card .section-heading h2 {
  margin: 8px 0 6px;
  font-size: 27px;
}

.security-card .section-heading p {
  margin: 0;
}

.security-lock {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: #236b4d;
  background: #dff3e7;
  font-size: 22px;
}

.security-form {
  max-width: 540px;
}

.security-form label {
  display: block;
  margin: 17px 0;
  color: var(--rd-ink);
  font-size: 12px;
  font-weight: 700;
}

.security-form input {
  display: block;
  width: 100%;
  margin-top: 7px;
  box-sizing: border-box;
}

.security-form .password-field input {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  .employee-actions {
    min-width: 320px;
  }
}

.mobile-menu-toggle,
.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  body.sidebar-open-lock {
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1000005 !important;
    width: 290px !important;
    max-width: 88vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 18px 14px calc(110px + env(safe-area-inset-bottom, 24px)) !important;
    background: linear-gradient(165deg, #101c33 0%, #152f44 50%, #19524e 120%) !important;
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.45) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    transform: translateX(-105%) !important;
    transition: transform .26s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent !important;
  }

  .sidebar::-webkit-scrollbar {
    width: 4px !important;
  }
  .sidebar::-webkit-scrollbar-track {
    background: transparent !important;
  }
  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .sidebar-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000000 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: rgba(8, 19, 30, .65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .26s ease !important;
  }

  .sidebar-overlay.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .sidebar .brand {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 12px !important;
    padding: 0 4px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .15) !important;
    flex-shrink: 0 !important;
  }

  .sidebar .company-logo {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
  }

  .sidebar .brand-mark {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 10px !important;
    font-size: 19px !important;
  }

  .sidebar .brand strong {
    display: block !important;
    font-size: 15px !important;
    color: #fff !important;
    line-height: 1.2 !important;
  }

  .sidebar .brand small {
    display: block !important;
    font-size: 11px !important;
    color: #9eafa9 !important;
    margin-top: 2px !important;
  }

  .sidebar-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
  }
  .sidebar-close-btn:hover,
  .sidebar-close-btn:active {
    background: rgba(255, 255, 255, 0.22) !important;
  }

  .sidebar nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }

  .sidebar nav a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
    color: #b8cbc5 !important;
    white-space: nowrap !important;
  }

  .sidebar nav a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .sidebar nav a.active {
    color: var(--rd-ink) !important;
    background: #d8f2e3 !important;
    border-color: #d8f2e3 !important;
  }

  .sidebar nav a.sidebar-logout {
    color: #fca5a5 !important;
  }

  .sidebar nav a.sidebar-logout:hover {
    color: #fff !important;
    background: rgba(239, 68, 68, 0.25) !important;
  }

  .sidebar-dropdown-toggle {
    min-height: 44px !important;
    padding: 0 12px 0 14px !important;
    font-size: 13px !important;
  }

  .sidebar-submenu .submenu-item {
    min-height: 40px !important;
    font-size: 12px !important;
  }

  .sidebar-foot {
    margin-top: auto !important;
    padding: 16px 10px !important;
    border-top: 1px solid rgba(255, 255, 255, .14) !important;
    color: #9eafb4 !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  .mobile-menu-toggle {
    display: grid !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    place-content: center !important;
    gap: 4px !important;
    border: 1px solid #d7e3dc !important;
    border-radius: 9px !important;
    background: #fff !important;
    cursor: pointer !important;
    order: 1 !important;
    margin-right: auto !important;
  }

  .topbar .user-menu {
    order: 2 !important;
    margin-left: auto !important;
  }

  .mobile-menu-toggle span {
    display: block !important;
    width: 19px !important;
    height: 2px !important;
    border-radius: 2px !important;
    background: var(--rd-ink) !important;
  }

  .main-content {
    padding: 8px 12px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .topbar {
    position: sticky !important;
    top: max(8px, env(safe-area-inset-top, 8px)) !important;
    z-index: 900 !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    padding: 6px 12px !important;
    min-height: 48px !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
  }

  .topbar:has(.user-menu.open),
  .topbar.menu-open {
    z-index: 999 !important;
  }

  .topbar h1 {
    overflow-wrap: anywhere !important;
    font-size: 27px !important;
  }
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 999999 !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 1fr !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: 4px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform !important;
    contain: layout paint !important;
    overflow: visible !important;
  }

  .mobile-bottom-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    max-height: 48px !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 2px !important;
    padding: 3px 2px !important;
    border-radius: 10px !important;
    color: #64748b !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .mobile-bottom-nav a span:not(.mobile-nav-icon) {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-align: center !important;
    letter-spacing: -0.2px !important;
  }

  .mobile-bottom-nav a.active {
    color: #e11d48 !important;
    background: #fff1f2 !important;
  }

  .mobile-nav-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }

  .mobile-bottom-nav a.active .mobile-nav-icon {
    font-weight: 700 !important;
  }

  .main-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 390px) {
  .mobile-bottom-nav a {
    height: 46px !important;
    max-height: 46px !important;
    gap: 1px !important;
    padding: 2px 1px !important;
  }

  .mobile-bottom-nav a span:not(.mobile-nav-icon) {
    font-size: 9px !important;
    letter-spacing: -0.4px !important;
  }
  
  .mobile-nav-icon {
    font-size: 17px !important;
    width: 20px !important;
    height: 20px !important;
  }
}

/* ==========================================================================
   Modern Executive Auth Suite (Registration & Login)
   ========================================================================== */
.modern-auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background:
    radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 82% 86%, rgba(16, 185, 129, 0.07) 0%, transparent 42%),
    #f8fafc;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.modern-auth-card {
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07), 0 4px 14px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
  position: relative;
}

.modern-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 24px;
}

.modern-auth-brand:hover .landing-brand-mark {
  transform: scale(1.03);
}

.modern-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modern-auth-badge.secure {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.modern-auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 27px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.modern-auth-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 24px;
}

.modern-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modern-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.modern-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.modern-field-label a {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s;
}

.modern-field-label a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.modern-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modern-auth-input {
  width: 100%;
  height: 48px;
  padding: 10px 14px 10px 42px !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  margin: 0 !important;
}

.modern-auth-input:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12) !important;
}

.modern-input-wrap:focus-within .modern-input-icon {
  color: #2563eb;
}

.modern-password-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modern-password-toggle:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.modern-input-wrap .password-toggle {
  display: none !important;
}

.modern-input-wrap .password-field {
  display: contents !important;
}

.modern-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
  margin-top: 6px;
}

.modern-auth-btn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}

.modern-auth-btn.btn-trial {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.modern-auth-btn.btn-trial:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
}

.modern-auth-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.modern-auth-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modern-auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 20px;
}

.modern-auth-switch a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.modern-auth-switch a:hover {
  text-decoration: underline;
}

.modern-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 20px;
  text-align: left;
}

.modern-auth-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.modern-auth-alert.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* Created State Specific */
.auth-success-box {
  text-align: center;
  padding: 6px 0;
}

.auth-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #6ee7b7;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.auth-link-copy-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 6px 8px 6px 14px;
  margin: 18px 0 20px;
}

.auth-link-copy-wrap input {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: ui-monospace, SFMono-Regular, monospace !important;
  font-size: 13px !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
}

.btn-copy-widget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-copy-widget:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-copy-widget.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.auth-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  box-sizing: border-box;
  margin-top: 10px;
  transition: all 0.15s ease;
}

.auth-secondary-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.auth-meta-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .modern-auth-page {
    padding: 16px 12px;
  }
  .modern-auth-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .modern-auth-title {
    font-size: 22px;
  }
  .modern-auth-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .modern-auth-input {
    font-size: 14px !important;
  }
  .modern-auth-trust-row {
    gap: 10px;
    font-size: 11px;
  }
  .auth-link-copy-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .btn-copy-widget {
    justify-content: center;
  }
}

/* ==========================================================================
   Change Password In-App Card
   ========================================================================== */
.change-password-wrap {
  padding: 32px 24px 60px;
  max-width: 680px;
  margin: 0 auto;
}

.change-password-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
}

.change-password-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
}

.change-password-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.change-password-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.change-password-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 12px;
  flex-shrink: 0;
}

.user-pill-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.change-password-user-pill strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.2;
}

.change-password-user-pill small {
  font-size: 11px;
  color: #64748b;
}

.change-password-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.change-password-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.change-password-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.change-password-btn-cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.change-password-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.tip-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-item strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
  margin-bottom: 2px;
}

.tip-item small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .change-password-wrap {
    padding: 18px 12px 60px;
  }
  .change-password-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .change-password-header {
    flex-direction: column;
    gap: 14px;
  }
  .change-password-user-pill {
    width: 100%;
    box-sizing: border-box;
  }
  .change-password-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .change-password-actions .modern-auth-btn,
  .change-password-btn-cancel {
    width: 100% !important;
    justify-content: center;
  }
  .change-password-tips {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Modern Attendance Scan & Quick Check-In Interface
   ========================================================================== */
body.page-scan-attendance {
  background:
    radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 86%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
    #f8fafc;
  min-height: 100vh;
}

body.page-scan-attendance > .alert {
  max-width: 470px;
  margin: 20px auto -10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.scan-auth-page {
  padding: 28px 16px 44px;
  min-height: 100vh;
  min-height: 100svh;
}

.scan-auth-card {
  max-width: 470px;
  margin: 0 auto;
  padding: 36px 32px;
  text-align: left;
}

/* Company Branding & Identity Header */
.scan-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.scan-logo-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}

.scan-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.scan-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  border-radius: 10px;
}

.scan-company-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.scan-company-name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.scan-office-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

/* Session Verification Badge */
.scan-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.scan-session-pill.verified {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.scan-session-pill.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.scan-pulse-ring {
  position: relative;
  width: 9px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scan-pulse-core {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
}

.scan-pulse-ring::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: scanPulse 1.8s ease-in-out infinite;
}

@keyframes scanPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* PIN Input Styling */
.scan-pin-digits-note {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.scan-pin-wrap {
  position: relative;
}

.scan-pin-field {
  letter-spacing: 5px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  height: 52px !important;
  padding-right: 48px !important;
}

.scan-pin-field::placeholder {
  letter-spacing: 6px;
  color: #cbd5e1;
  font-weight: 600;
}

.scan-submit-btn {
  min-height: 50px;
  font-size: 15.5px;
  margin-top: 14px;
}

/* Security proof chips */
.scan-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.scan-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.scan-trust-item svg {
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.scan-trust-text {
  display: flex;
  flex-direction: column;
}

.scan-trust-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.scan-trust-desc {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.35;
}

.scan-help-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

.scan-help-note strong {
  color: #334155;
}

@media (max-width: 480px) {
  .scan-auth-page {
    padding: 16px 12px 36px;
  }
  .scan-auth-card {
    padding: 26px 20px;
    border-radius: 16px;
  }
  .scan-trust-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .scan-pin-field {
    font-size: 18px !important;
    letter-spacing: 4px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DESKTOP COLLAPSIBLE / MINIMIZABLE SIDEBAR SYSTEM
═══════════════════════════════════════════════════════════════════ */

/* Toggle Buttons */
.desktop-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  margin-right: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.desktop-sidebar-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.desktop-sidebar-toggle svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  transform: scale(1.08);
}

.sidebar-collapse-btn .icon-expand {
  display: none;
}

.sidebar-collapse-btn .icon-minimize {
  display: block;
}

@media (max-width: 768px) {
  .desktop-sidebar-toggle,
  .sidebar-collapse-btn {
    display: none !important;
  }
}

/* Transitions for Smooth Collapsing */
.app-shell {
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar {
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              flex-basis 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.main-content {
  transition: padding 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ─── Collapsed State (Desktop >= 769px) ─── */
@media (min-width: 769px) {
  .app-shell.sidebar-collapsed .sidebar {
    width: 76px !important;
    flex-basis: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    padding: 20px 8px 16px !important;
  }

  .app-shell.sidebar-collapsed .sidebar::before {
    display: none !important;
  }

  /* Brand in Collapsed State */
  .app-shell.sidebar-collapsed .sidebar .brand {
    padding: 0 0 14px 0 !important;
    position: relative !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .app-shell.sidebar-collapsed .sidebar .company-logo {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 6px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }

  .app-shell.sidebar-collapsed .sidebar .brand-mark {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    margin-bottom: 6px !important;
    border-radius: 50% !important;
  }

  .app-shell.sidebar-collapsed .sidebar .brand-text {
    display: none !important;
  }

  /* Collapse button moves to center under logo and shows expand icon */
  .app-shell.sidebar-collapsed .sidebar .sidebar-collapse-btn {
    position: static !important;
    margin: 4px auto 0 auto !important;
    display: inline-flex !important;
  }

  .app-shell.sidebar-collapsed .sidebar-collapse-btn .icon-minimize {
    display: none !important;
  }

  .app-shell.sidebar-collapsed .sidebar-collapse-btn .icon-expand {
    display: block !important;
  }

  /* Topbar toggle reflects state */
  .app-shell.sidebar-collapsed .desktop-sidebar-toggle {
    background: #e2e8f0;
    color: #0f172a;
  }

  .app-shell.sidebar-collapsed .desktop-sidebar-toggle svg {
    transform: rotate(180deg);
  }

  /* Navigation Links in Collapsed State */
  .app-shell.sidebar-collapsed .sidebar nav {
    margin-top: 20px !important;
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .app-shell.sidebar-collapsed .sidebar nav a {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    justify-content: center !important;
    border-radius: 10px !important;
    position: relative !important;
    transform: none !important;
  }

  .app-shell.sidebar-collapsed .sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    transform: scale(1.06) !important;
  }

  .app-shell.sidebar-collapsed .sidebar nav a.active {
    background: #d8f2e3 !important;
    color: #14213d !important;
    box-shadow: 0 4px 14px rgba(8, 24, 42, 0.3) !important;
  }

  .app-shell.sidebar-collapsed .sidebar nav a.active::before {
    left: -8px !important;
    height: 20px !important;
  }

  .app-shell.sidebar-collapsed .sidebar-nav-label,
  .app-shell.sidebar-collapsed .sidebar-dropdown-toggle .sidebar-nav-label,
  .app-shell.sidebar-collapsed .dropdown-chevron,
  .app-shell.sidebar-collapsed .dropdown-badge,
  .app-shell.sidebar-collapsed .sidebar-badge-count,
  .app-shell.sidebar-collapsed .sidebar-badge-beta,
  .app-shell.sidebar-collapsed .trial-lock-badge,
  .app-shell.sidebar-collapsed .trial-locked-nav .trial-lock-badge {
    display: none !important;
  }

  /* Dropdown Toggle in Collapsed State */
  .app-shell.sidebar-collapsed .sidebar-dropdown {
    width: 100% !important;
    align-items: center !important;
  }

  .app-shell.sidebar-collapsed .sidebar-dropdown-toggle {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    justify-content: center !important;
    border-radius: 10px !important;
    transform: none !important;
  }

  .app-shell.sidebar-collapsed .sidebar-dropdown-toggle .dropdown-label {
    justify-content: center !important;
    gap: 0 !important;
  }

  .app-shell.sidebar-collapsed .sidebar-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    transform: scale(1.06) !important;
  }

  .app-shell.sidebar-collapsed .sidebar-dropdown-toggle.active,
  .app-shell.sidebar-collapsed .sidebar-dropdown.is-open .sidebar-dropdown-toggle {
    border-left: none !important;
    background: rgba(16, 185, 129, 0.22) !important;
    color: #10b981 !important;
  }

  /* In collapsed mode, internal inline submenus are hidden because the floating flyout is used */
  .app-shell.sidebar-collapsed .sidebar-submenu {
    display: none !important;
  }

  /* Footer in Collapsed State */
  .app-shell.sidebar-collapsed .sidebar-foot {
    font-size: 0 !important;
    padding: 12px 0 !important;
    display: flex !important;
    justify-content: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .app-shell.sidebar-collapsed .sidebar-foot .status-dot {
    margin: 0 !important;
  }

  /* Main content expanded padding */
  .app-shell.sidebar-collapsed .main-content {
    padding-left: clamp(20px, 3.5vw, 56px) !important;
    padding-right: clamp(20px, 3.5vw, 56px) !important;
  }
}

/* ─── Floating Tooltip for Icon-only Sidebar ─── */
.sidebar-floating-tooltip {
  position: fixed;
  z-index: 99999;
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar-floating-tooltip.show {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-floating-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
}

/* ─── Floating Submenu Flyout for Dropdowns in Collapsed Sidebar ─── */
.sidebar-flyout {
  position: fixed;
  z-index: 99998;
  background: linear-gradient(165deg, #14213d 0%, #183951 55%, #1b4f4c 110%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  min-width: 210px;
  max-width: 260px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s ease;
}

.sidebar-flyout.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sidebar-flyout-header {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8de0ad;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
}

.sidebar-flyout a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.sidebar-flyout a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transform: translateX(3px) !important;
}

.sidebar-flyout a.active {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  font-weight: 700 !important;
}

.sidebar-flyout svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  fill: none !important;
  flex-shrink: 0 !important;
}

/* ─── REAL-TIME TOPBAR NOTIFICATIONS ─── */
.topbar-notifications {
  position: relative;
  margin-left: auto;
  margin-right: 8px;
  z-index: 60;
  display: flex;
  align-items: center;
}

.topbar .user-menu {
  margin-left: 0 !important;
}

.topbar-notifications .notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.topbar-notifications .notif-bell-btn:hover,
.topbar-notifications .notif-bell-btn[aria-expanded="true"] {
  background: #f8fafc;
  color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.notif-bell-icon {
  transition: transform 0.2s ease;
}

.topbar-notifications .notif-bell-btn:hover .notif-bell-icon {
  transform: rotate(12deg) scale(1.05);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5), 0 0 0 2px #ffffff;
}

.badge-pop {
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  animation: notifSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-dropdown.is-open {
  display: flex !important;
}

@keyframes notifSlideDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.notif-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.notif-unread-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.notif-mark-all-btn:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-list::-webkit-scrollbar {
  width: 5px;
}
.notif-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.is-unread {
  background: rgba(240, 249, 255, 0.85);
}

.notif-item.is-unread:hover {
  background: #e0f2fe;
}

.notif-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item.is-unread .notif-item-title {
  color: #0f172a;
}

.notif-item-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-item-msg {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-empty {
  padding: 38px 20px;
  text-align: center;
  color: #94a3b8;
}

.notif-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.notif-empty p {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 4px;
}

.notif-empty small {
  font-size: 12px;
  color: #94a3b8;
}

.notif-dropdown-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.notif-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.notif-live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: notifPulseDot 2s infinite;
}

@keyframes notifPulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}






