/* ══════════════════════════════════════════════════
   No Scam App — Shared Mobile & Senior Mode CSS
   Include this on every page AFTER page-specific styles
   ══════════════════════════════════════════════════ */


/* ── Mobile Header ── */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 9000;
  background: #0f2447;
  height: 56px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}
.mh-brand {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mh-right {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Hamburger */
.hamburger {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all .2s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(0,0,0,.4);
  z-index: 8999;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.mobile-menu a {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:active { background: #f1f5f9; }
.mobile-menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}


/* ── Mobile Breakpoint ── */
@media (max-width: 1024px) {
  .mobile-header { display: flex; }

  /* Hide desktop nav and top bar on mobile — the mobile-header replaces it */
  nav:not(.mobile-menu):not(.sidebar-nav),
  .top-bar {
    display: none !important;
  }

  /* Global mobile fixes */
  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }
  html { overflow-x: hidden; }

  /* All buttons min height */
  button, .btn, .btn-solid, a.btn, .btn-plan, .btn-analyze, .btn-post, .btn-check, .btn-share {
    min-height: 44px;
  }

  /* Prevent horizontal overflow */
  .hero, section, .content, .container, footer, main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Stack grids */
  .profile-grid,
  .plans-grid,
  .steps-row,
  .footer-top,
  .stat-cards,
  .hero-stats {
    grid-template-columns: 1fr !important;
  }

  /* Footer single column */
  footer .footer-top {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  footer .footer-legal {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* ── Desktop: hide mobile elements ── */
@media (min-width: 1025px) {
  .mobile-header { display: none !important; }
  .mobile-menu-overlay { display: none !important; }
  #mobileNavWrap { display: contents; }
}
