/* =====================================================
   MICHOT — styles.css (FULL FILE, DUPLICATES PRESERVED)
   File: /public/css/styles.css

   NOTE:
   - You told me: "do not remove the code".
   - I kept everything you pasted, and ONLY:
     (1) commented-out the conflicting responsive rules that were breaking mobile navbar
     (2) added a small “FIX OVERRIDES” block at the very bottom to force correct behavior
===================================================== */

/* =====================================================
   BASE
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* =====================================================
   NAVBAR (BLACK + FIXED)
===================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #000;
  z-index: 1000;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT SIDE */
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-left .brand {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.nav-left .nav-link {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

/* CENTER */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-search {
  width: min(520px, 100%);
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-right .nav-link {
  color: #fff;
  font-weight: 800;
}

.nav-cta {
  background: #fff;
  color: #000;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 900;
  border: none;
  cursor: pointer;
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 10px;
}

/* =====================================================
   DROPDOWN (DESKTOP SIGNUP)
===================================================== */

.dropdown{
  position:relative;
  display:inline-block;
}

.dropdown-menu{
  position:absolute;
  right:0;
  top:48px;
  width:200px;
  background:#fff;
  color:#000;
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:8px;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  display:none;
  z-index:2000;
}
 .dropdown-menu {
  display: none; /* 🔒 CRITICAL: hide by default */
}
.dropdown-menu a{
  display:block;
  padding:12px;
  border-radius:10px;
  font-weight:800;
  color:#000;
}

.dropdown-menu a:hover{
  background:#f2f2f2;
}

.dropdown-menu.open{
  display:block;
}

.auth-page .footer {
  display: none;
}

/* =====================================================
   PAGE / HERO
===================================================== */

.page {
  padding-top: 96px;
  flex: 1;
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 18px;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
}

.hero p {
  margin-top: 10px;
  color: #444;
}

.hero-note {
  margin-top: 18px;
  line-height: 1.6;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   FORM / FIELD SHARED
===================================================== */

.field {
  margin-top: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 14px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  font-weight: 600;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hint {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

.form-actions {
  margin-top: 20px;
}

.primary-btn {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-weight: 900;
  cursor: pointer;
}

.ghost-btn {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.fineprint {
  margin-top: 14px;
  font-size: 12px;
  color: #666;
}

.fineprint a {
  text-decoration: underline;
}

/* =====================================================
   AUTH PAGE (FULL SCREEN)
===================================================== */

.auth-page {
  font-size: 16px;
  color: #000;
}

.auth-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 18px 64px;
}

.auth-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px;
}

/* Toggle */
.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-toggle button {
  padding: 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f3f3f3;
  font-weight: 900;
  cursor: pointer;
}

.auth-toggle button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.auth-form h1,
.auth-form h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.auth-sub {
  color: #444;
  line-height: 1.6;
  margin-bottom: 18px;
}

.hidden {
  display: none;
}

/* =====================================================
   AUTH MODAL (HOMEPAGE)
===================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.modal-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* =====================================================
   ROLE PAGE
===================================================== */

.role-page {
  padding-top: 96px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 18px;
  padding-right: 18px;
}

.role-page h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.role-subtitle {
  max-width: 560px;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.6;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 560px;
  width: 100%;
}

.role-card {
  background: #000;
  color: #fff;
  padding: 42px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.role-card h2 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.role-card p {
  color: rgba(255,255,255,.85);
  font-weight: 700;
  line-height: 1.4;
}

.role-card:hover {
  background: #111;
}

.role-logout {
  margin-top: 18px;
  width: 100%;
  max-width: 560px;
}
.role-card {
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
}

.role-logout button {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

/* =====================================================
   FOOTER (FULL)
===================================================== */

.footer {
  background: #000;
  color: #fff;
  padding: 40px 18px 18px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 24px;
}

.footer-col h3 {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col a {
  display: block;
  color: #ccc;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-meta {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.social-circle {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-circle img {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #aaa;
}

.footer-links-right a {
  color: #fff;
  margin-left: 14px;
  font-weight: 700;
}

/* =====================================================
   HAMBURGER MENU (MERGED + ANIMATED)
===================================================== */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* 3-line → X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #000;
  color: #fff;
  display: none;
  flex-direction: column;
  padding: 24px 18px;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .menu-cta {
  margin-top: 18px;
  background: #fff;
  color: #000;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  font-weight: 900;
}

/* =====================================================
   ACCOUNT MENU (OPTIONAL)
===================================================== */

.account-menu {
  position: relative;
}

.account-btn {
  background: none;
  border: none;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: 140%;
  background: #000;
  border-radius: 12px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}

.account-dropdown.open {
  display: flex;
}

.account-dropdown button {
  background: none;
  border: none;
  color: #fff;
  padding: 14px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.account-dropdown button:hover {
  background: #111;
}
/* =====================================================
   FIX: BACK BUTTON (AUTH PAGES)
===================================================== */

/* =====================================================
   MICHOT — FINAL OVERRIDES (MUST BE LAST)
   Purpose:
   - Fix mobile navbar layout (spacing + overlap)
   - Force hamburger visible on mobile (Safari + Chrome)
   - Hide search on mobile (prevents overlap)
   - Show bold back arrow on auth pages
   - Ensure dropdown only shows Create Account / Sign In
===================================================== */

/* -------------------------------
   A) Back arrow: bigger + bold
-------------------------------- */
.nav-back{
  background: none !important;
  border: none !important;
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  display: none; /* hidden by default */
}
.auth-page .nav-back{
  display: inline-flex !important;
  align-items: center !important;
}
.nav-back:hover{
  background: rgba(255,255,255,.12) !important;
}

/* -------------------------------
   B) Mobile navbar: stop overlap
   - Use 3-column grid:
     [Left: hamburger + brand] [Center: search hidden] [Right: about/help/signup]
-------------------------------- */
@media (max-width: 768px){

  .navbar,
  .navbar-inner{
    display: grid !important;
  }

  .navbar-inner{
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 14px !important;
  }

  /* LEFT group */
  .nav-left{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  /* FORCE hamburger visible */
  .hamburger{
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 28px !important;
    height: 22px !important;
    margin: 0 6px 0 0 !important;
  }
  .hamburger span{
    display: block !important;
    height: 3px !important;
    width: 100% !important;
    background: #fff !important;
    border-radius: 2px !important;
  }

  /* Brand always visible */
  .nav-left .brand{
    display: inline-flex !important;
    white-space: nowrap !important;
  }

  /* Hide Ride/Earn/Business on small screens to prevent text collision */
  .nav-left .nav-link{
    display: none !important;
  }

  /* CENTER: hide search on mobile (your screenshot shows overlap) */
  .nav-center{
    display: none !important;
  }

  /* RIGHT group always visible */
  .nav-right{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
  }

  /* About/Help visible on mobile (even if marked desktop-only in HTML) */
  .nav-right .nav-link.desktop-only{
    display: inline-flex !important;
  }

  /* Signup CTA visible */
  #signupBtn,
  .nav-cta{
    display: inline-flex !important;
  }
}

/* -------------------------------
   C) Mobile menu panel:
   ensure it can open/close
-------------------------------- */
.mobile-menu{
  display: none;
}
.mobile-menu.open{
  display: flex !important;
}

/* -------------------------------
   D) Dropdown safety:
   never show dropdown unless JS toggles .open
   (prevents Safety/Legal footer links from "dropping down")
-------------------------------- */
.dropdown-menu{
  display: none !important;
}
.dropdown-menu.open{
  display: block !important;
}

/* -------------------------------
   E) Auth pages: footer hidden
-------------------------------- */
.auth-page .footer{
  display: none !important;
}


/* =====================================================
   RESPONSIVE (FINAL — MOBILE SAFE)
===================================================== */

.desktop-only {
  display: inline-flex;
}

/* ---------- TABLET & DOWN ---------- */
@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- MOBILE NAVBAR BEHAVIOR ---------- */
@media (max-width: 768px) {


  /* NAVBAR STRUCTURE */
  .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  /* LEFT SIDE: Hamburger + Brand + Links */
  .nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* allow shrink without breaking */
  }

  /* Hamburger on LEFT (even if HTML places it later) */
  .hamburger {
    display: flex;
    margin-right: 6px;
    order: -1;
  }

  /* KEEP core links visible */
  .nav-left .brand,
  .nav-left .nav-link {
    display: inline-flex;
    white-space: nowrap;
  }

  /* CENTER: SEARCH (VISIBLE ON MOBILE, smaller) */
  .nav-center {
    display: flex;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }

  .nav-search {
    width: 100%;
    max-width: 220px;
  }

  /* RIGHT SIDE: Signup / About / Help */
  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  /* ROLE GRID STACK */
  .role-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 520px) {

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links-right a {
    margin-left: 0;
    margin-right: 14px;
  }

  /* On very small phones, search can collapse */
  .nav-search {
    max-width: 140px;
  }
}


/*Password + Confirm Password (with 👁 show / hide) */
 .password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  flex: 1;
  padding-right: 42px;
}

.eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.error-text {
  color: #b00020;
  font-size: 12px;
  margin-top: 4px;
}

/* =====================================================
   FIX OVERRIDES (LAST WINS)
   - Keeps navbar visible on mobile
   - Prevents desktop-only from hiding links on mobile
   - Ensures dropdown stays hidden until .open
===================================================== */

.navbar { background:#000; }

.dropdown-menu { display:none; }
.dropdown-menu.open { display:block; }

@media (max-width: 768px){
  .desktop-only{ display:inline-flex !important; }

  /* Keep hamburger left of Michot even if HTML order differs */
  .hamburger{ order:-1; }

  /* Keep nav sections visible */
  .nav-left, .nav-center, .nav-right { display:flex; }
}
/*=============================================================
* Time session count down to loggedout users Minimal CSS (centered modal)
*==============================================================*/
.session-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.session-modal.hidden {
  display: none;
}

.session-box {
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  text-align: center;
  width: 340px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#sessionCountdown {
  font-weight: bold;
  font-size: 18px;
}

#sessionCountdown.danger {
  color: red;
}

#sessionContinueBtn {
  margin-top: 16px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: black;
  color: white;
  cursor: pointer;
}
