/**
 * PulsePoint PWA Installation & Offline Mode Styles
 */

/* 1. Header Install Button */
.btn-pwa-install {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-pwa-install:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  color: #ffffff !important;
}

.btn-pwa-install .pwa-pulse-dot {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pwaDotPulse 2s infinite;
}

@keyframes pwaDotPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #38bdf8; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Standalone App Badge */
.pwa-standalone-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

/* 2. Floating Bottom Install Toast / Banner (Completely Disabled) */
.pwa-floating-prompt {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 380px;
  width: calc(100% - 48px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 18px 20px;
  color: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pwa-prompt-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-prompt-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pwa-prompt-icon img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.pwa-prompt-info {
  flex: 1;
}

.pwa-prompt-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
  line-height: 1.2;
}

.pwa-prompt-sub {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.pwa-prompt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-btn-install-now {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.pwa-btn-install-now:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

.pwa-btn-dismiss {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* 3. iOS Safari Instructions Modal */
.pwa-ios-modal {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  max-width: 360px;
  width: calc(100% - 32px);
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: pwaSlideUp 0.3s ease;
  text-align: center;
}

.pwa-ios-modal h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 800;
}

.pwa-ios-modal p {
  margin: 0 0 14px 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.pwa-ios-arrow {
  display: inline-block;
  font-size: 20px;
  animation: bounceDown 1.5s infinite;
  color: #38bdf8;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* 4. Connectivity Toast (Online / Offline) */
.pwa-network-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: toastFadeIn 0.3s ease;
  transition: all 0.3s ease;
}

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

.pwa-network-toast.offline {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.pwa-network-toast.online {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

@media (max-width: 640px) {
  .pwa-floating-prompt {
    display: none !important;
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ==========================================================================
   HOMEPAGE DETAILED ARCHITECTURE & DOWNLOAD HUB STYLES
   ========================================================================== */

/* General Section Header Enhancements */
.landing-deep-section {
  padding: 80px 24px;
  position: relative;
}
.landing-deep-section:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}
.landing-deep-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 1. 4-Way Clock-In Modes Grid */
.clockin-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.mode-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.mode-card.face::before { background: linear-gradient(90deg, #10b981, #34d399); }
.mode-card.finger::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.mode-card.qr::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.mode-card.gps::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.mode-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.mode-card.face .mode-icon-box { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.mode-card.finger .mode-icon-box { background: #f0f9ff; border: 1px solid #bae6fd; color: #0284c7; }
.mode-card.qr .mode-icon-box { background: #eef2ff; border: 1px solid #c7d2fe; color: #4f46e5; }
.mode-card.gps .mode-icon-box { background: #fffbeb; border: 1px solid #fde68a; color: #d97706; }

.mode-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.mode-card.face .mode-badge { background: #ecfdf5; color: #059669; }
.mode-card.finger .mode-badge { background: #f0f9ff; color: #0284c7; }
.mode-card.qr .mode-badge { background: #eef2ff; color: #4f46e5; }
.mode-card.gps .mode-badge { background: #fffbeb; color: #d97706; }

.mode-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.mode-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.mode-workflow-steps {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.mode-workflow-steps h5 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #334155;
  margin: 0 0 8px 0;
}
.mode-workflow-steps ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: #475569;
}

.mode-hardware-tag {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* 2. Admin Command Center Grid */
.admin-suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.suite-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.suite-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}
.suite-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.suite-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.suite-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.suite-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}
.suite-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.suite-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* 3. Employee Self-Service Grid */
.portal-showcase-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .portal-showcase-wrap {
    grid-template-columns: 1fr;
  }
}
.portal-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.portal-feature-item {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.pfi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pfi-content h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.pfi-content p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* 4. Download & Install Hub Section */
.download-hub-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 80px 24px;
  border-radius: 28px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
  position: relative;
  overflow: hidden;
}
.download-hub-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  pointer-events: none;
}
.download-hub-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.download-hub-header h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 14px 0;
  color: #ffffff;
}
.download-hub-header p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}
.dl-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.dl-card.highlight {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}
.dl-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dl-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.dl-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}
.dl-card p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.dl-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  width: 100%;
}
.dl-action-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}
.dl-action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.dl-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

.dl-specs-list {
  margin: 18px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.dl-specs-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dl-specs-list li span {
  color: #38bdf8;
}

/* ==========================================================================
   Desktop Navigation Dropdown / Submenu & Hero Button Fixes
   ========================================================================== */

/* 1. Hero Download App Button (Fix invisible text issue) */
.hero-download-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #334155 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 14px 22px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
}

.hero-download-btn span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.hero-download-btn svg {
  stroke: #38bdf8 !important;
  color: #38bdf8 !important;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-download-btn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.28) !important;
}

.hero-download-btn:hover span {
  color: #ffffff !important;
}

.hero-download-btn:hover svg {
  transform: scale(1.12);
  stroke: #60a5fa !important;
}

/* 2. Desktop Navigation Submenu & No-Wrap Rules */
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 22px !important;
}

.landing-nav-link {
  white-space: nowrap !important;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-nav-link:hover {
  color: #2563eb !important;
}

/* Dropdown Container */
.landing-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger Button */
.landing-dropdown-trigger {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: #475569 !important;
}

.dropdown-chevron {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: #64748b;
}

.landing-nav-dropdown:hover .dropdown-chevron,
.landing-nav-dropdown:focus-within .dropdown-chevron,
.landing-nav-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  stroke: #2563eb;
}

.landing-nav-dropdown:hover .landing-dropdown-trigger,
.landing-nav-dropdown:focus-within .landing-dropdown-trigger {
  color: #2563eb !important;
}

/* Submenu Popup (Desktop Only) */
.landing-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  min-width: 320px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.14), 0 6px 16px rgba(15, 23, 42, 0.05);
  padding: 8px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  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);
}

/* Hover bridge between trigger and popup */
.landing-submenu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

/* Show Submenu on Hover or Focus (Desktop) */
@media (min-width: 992px) {
  .landing-nav-dropdown:hover .landing-submenu,
  .landing-nav-dropdown:focus-within .landing-submenu,
  .landing-nav-dropdown.is-open .landing-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Submenu Link Row */
.submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a !important;
  transition: all 0.15s ease;
}

.submenu-item:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.submenu-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.submenu-item:hover .submenu-icon-box {
  transform: scale(1.08);
}

.sm-icon-blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.sm-icon-purple {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #ede9fe;
}

.sm-icon-emerald {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.sm-icon-amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}

.submenu-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.submenu-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.submenu-desc {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

/* Tablet / Mobile Navigation Breakpoint */
@media (max-width: 991px) {
  .landing-nav-links,
  .landing-nav-actions .landing-btn-login,
  .landing-nav-actions .landing-btn-trial {
    display: none !important;
  }
  .landing-mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
  }
  .landing-submenu {
    display: none !important;
  }
}

/* ==========================================================================
   5. UNIVERSAL CROSS-BROWSER & CROSS-DEVICE PWA INSTALLATION MODAL
   Full support for iPhone / iPad (Safari & Chrome iOS), Android, & Desktop
   ========================================================================== */
.pwa-universal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pwaFadeIn 0.22s ease-out;
}

@keyframes pwaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pwa-universal-modal-card {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;
  padding: 24px 22px 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  text-align: left;
  font-family: inherit;
  animation: pwaCardSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaCardSlide {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pwa-universal-modal-backdrop.is-closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pwa-universal-modal-backdrop.is-closing .pwa-universal-modal-card {
  transform: translateY(20px) scale(0.96);
  transition: all 0.2s ease;
}

.pwa-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}

.pwa-modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Modal Header */
.pwa-m-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 36px;
}

.pwa-m-logo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.pwa-m-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1.5px solid #e2e8f0;
}

.pwa-m-verified-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-m-header-info {
  flex: 1;
  min-width: 0;
}

.pwa-m-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.pwa-m-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

/* Tabs */
.pwa-m-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.pwa-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pwa-tab-btn:hover {
  color: #0f172a;
}

.pwa-tab-btn.is-active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pwa-tab-panel {
  display: none;
}

.pwa-tab-panel.is-active {
  display: block;
  animation: pwaTabFade 0.2s ease-out;
}

@keyframes pwaTabFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Browser Badge Pill */
.pwa-browser-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pwa-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

/* In-App Browser Warning */
.pwa-alert-inapp {
  display: flex;
  gap: 12px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #92400e;
  font-size: 12px;
  line-height: 1.45;
}

.pwa-alert-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.pwa-btn-copy-url {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 14px;
}

.pwa-btn-copy-url:hover {
  background: #1e293b;
}

.pwa-btn-copy-url.small {
  width: auto;
  padding: 7px 12px;
  font-size: 11.5px;
  margin-top: 6px;
  margin-bottom: 0;
  display: inline-flex;
}

/* Steps List */
.pwa-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pwa-step-row {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  align-items: flex-start;
  text-align: left;
}

.pwa-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-step-body {
  flex: 1;
  min-width: 0;
}

.pwa-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pwa-ui-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
}

.pwa-ui-icon-box.ios-share-box {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.pwa-ui-icon-box.ios-add-box {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.pwa-ui-icon-box.android-menu-box,
.pwa-ui-icon-box.desktop-icon-box {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.pwa-step-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.pwa-kbd {
  display: inline-block;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
  border-radius: 4px;
  color: #0f172a;
}

/* Callout */
.pwa-m-footer-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 16px;
}

.pwa-m-footer-callout svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Direct Action Button */
.pwa-btn-direct-install {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.pwa-btn-direct-install:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

/* Action Bar */
.pwa-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pwa-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pwa-btn-primary:hover {
  background: #1e293b;
}

.pwa-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pwa-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Desktop QR Card */
.pwa-desktop-qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
  text-align: left;
}

.pwa-qr-img-wrap {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pwa-qr-text-wrap {
  flex: 1;
  min-width: 0;
}

.pwa-qr-text-wrap strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
  margin-bottom: 4px;
}

.pwa-qr-text-wrap p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

/* iOS Safari Floating Bottom Pointer */
.pwa-ios-bottom-guide {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 16px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  max-width: 360px;
  width: calc(100% - 32px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #38bdf8;
  border-radius: 9999px;
  padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.35);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  animation: pwaBounceGuide 1.8s infinite ease-in-out;
  cursor: pointer;
}

.pwa-guide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@keyframes pwaBounceGuide {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}


