/* ===== Block 1: Login Modal, Registration Modal, Layout (index.php lines 240-922) ===== */
  #services .ru-card:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(2,6,23,.10);}
#services .ru-card{border-radius:18px;}
#services .ru-card .text-muted{color:#475569 !important;}
#services .ru-card:hover{transform:translateY(-2px); box-shadow:0 12px 28px rgba(2,6,23,.10);}

  /* Mobile login modal fix */
  #loginModal{z-index:4000!important;}
  .modal-backdrop.login-modal-backdrop{z-index:3990!important;opacity:.55;}
  body.login-modal-open .ru-topbar{z-index:1200 !important;}
  #loginModal .modal-dialog{ margin:.6rem auto; }
  #loginModal .modal-content{ max-height:94vh; overflow:auto; }
  #loginModal .modal-body{ padding:1rem !important; }

  /* Desktop/admin login: keep the same PASADA styling, but make it compact and landscape-friendly. */
  #loginModal .modal-dialog{ margin:.85rem auto; max-width:560px; }
  #loginModal .modal-content{
    border-radius:24px !important;
    overflow:hidden;
    border:1px solid rgba(15,23,42,.08) !important;
    background:#ffffff;
    box-shadow:0 28px 60px rgba(15,23,42,.18);
  }
  #loginModal .modal-body{ padding:0 !important; background:#fff; }
  #loginModal .login-modal-shell{ position:relative; background:#fff; }
  #loginModal .login-modal-close{
    position:absolute;
    top:16px;
    right:16px;
    z-index:3;
    width:40px;
    height:40px;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.96);
    color:#475569;
    box-shadow:0 10px 24px rgba(15,23,42,.12);
    display:flex;
    align-items:center;
    justify-content:center;
  }
  #loginModal .login-modal-close:hover{ color:#0f172a; }
  #loginModal .login-modal-hero{
    position:relative;
    padding:26px 24px 18px;
    background:linear-gradient(180deg,#f3f8ef 0%, #edf6e8 100%);
    overflow:hidden;
  }
  #loginModal .login-modal-hero-art{
    position:relative;
    min-height:150px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
  }
  #loginModal .login-modal-wings{
    width:min(100%, 430px);
    display:block;
    margin:24px auto 0;
    opacity:.98;
    pointer-events:none;
    user-select:none;
  }
  #loginModal .login-modal-seal{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:94px;
    height:94px;
    border-radius:999px;
    background:rgba(255,255,255,.98);
    box-shadow:0 14px 34px rgba(15,23,42,.08);
    padding:10px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  #loginModal .login-modal-seal img{ width:100%; height:100%; object-fit:contain; display:block; }
  #loginModal .login-modal-title{
    margin-top:8px;
    text-align:center;
    color:#187247;
    font-size:2rem;
    letter-spacing:.26em;
    font-weight:700;
  }
  #loginModal .login-modal-card{ padding:22px 24px 26px; }
  #loginModal .login-modal-field{ margin-bottom:14px; }
  #loginModal .login-modal-inputwrap{ position:relative; }
  #loginModal .login-modal-inputwrap > i:first-child,
  #loginModal .login-modal-inputwrap > .bi:first-child{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    font-size:1.12rem;
    color:#6b7280;
    pointer-events:none;
  }
  #loginModal .toggle-pass-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    cursor: pointer !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #loginModal .toggle-pass-btn i {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    font-size: 1.15rem !important;
  }
  #loginModal .login-modal-inputwrap .form-control{
    min-height:56px;
    border-radius:18px;
    border:1px solid rgba(15,23,42,.12);
    padding:.9rem 3rem .9rem 3rem !important;
    font-size:1rem;
    box-shadow:none;
    background:#fff;
  }
  #loginModal .login-modal-inputwrap .form-control:focus{
    border-color:rgba(31,138,80,.42);
    box-shadow:0 0 0 .22rem rgba(31,138,80,.12);
  }
  #loginModal .login-modal-error{
    margin:6px 4px 0;
    color:#dc2626;
    font-size:.9rem;
    display:flex;
    gap:.35rem;
    align-items:center;
  }
  #loginModal .login-modal-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:4px 4px 14px;
    flex-wrap:wrap;
    font-size:.95rem;
  }
  #loginModal .login-modal-row .form-check{
    margin:0;
    min-height:auto;
    display:flex;
    align-items:center;
    gap:.55rem;
  }
  #loginModal .login-modal-row .form-check-input{
    margin:0;
    width:1.08rem;
    height:1.08rem;
  }
  #loginModal .login-modal-row .form-check-label{
    margin:0;
    font-weight:600;
    color:#475569;
  }
  #loginModal .login-modal-forgot,
  #loginModal .login-modal-back{
    color:#1f8a50;
    font-weight:700;
    text-decoration:none;
  }
  #loginModal .login-modal-forgot:hover,
  #loginModal .login-modal-back:hover{ text-decoration:underline; }
  #loginModal .login-modal-btn{
    width:100%;
    min-height:56px;
    border-radius:18px;
    font-size:1.08rem;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  #loginModal .login-modal-btn-login{
    background:#fff;
    color:#0f172a;
    border:1px solid rgba(15,23,42,.14);
    box-shadow:0 10px 24px rgba(15,23,42,.05);
  }
  #loginModal .login-modal-btn-login:hover{ background:#f8fafc; }
  #loginModal .login-modal-btn-register{
    background:linear-gradient(180deg,#21b14d 0%, #199744 100%);
    color:#fff;
    border:0;
    box-shadow:0 16px 30px rgba(25,151,68,.18);
  }
  #loginModal .login-modal-btn-register:hover{ background:linear-gradient(180deg,#1ea647 0%, #17873e 100%); color:#fff; }
  #loginModal .login-modal-support{
    margin-top:22px;
    text-align:center;
    color:#64748b;
    font-size:1rem;
    line-height:1.45;
  }
  #loginModal .login-modal-support a{
    display:inline-block;
    margin-top:6px;
    color:#1f8a50;
    font-weight:700;
    text-decoration:none;
  }
  #loginModal .login-modal-support a:hover{ text-decoration:underline; }
  #loginModal .login-modal-alt-title{
    text-align:center;
    color:#0f172a;
    font-size:1.2rem;
    font-weight:700;
    margin-bottom:6px;
  }
  #loginModal .login-modal-note{
    text-align:center;
    color:#64748b;
    font-size:.95rem;
    line-height:1.55;
    margin-bottom:18px;
  }
  #loginModal .login-modal-back{ display:inline-block; margin-top:16px; }

  @media (min-width: 577px){
    #loginModal .modal-dialog{ max-width:560px; }
    #loginModal .modal-content{ max-height:none; }
    #loginModal .login-modal-close{
      top:18px;
      right:18px;
      width:34px;
      height:34px;
      background:transparent;
      box-shadow:none;
    }
    #loginModal .login-modal-hero{
      padding:26px 32px 10px;
      background:#fff;
    }
    #loginModal .login-modal-hero-art{
      min-height:auto;
      align-items:center;
      justify-content:center;
    }
    #loginModal .login-modal-wings{ display:none; }
    #loginModal .login-modal-seal{
      position:relative;
      top:auto;
      left:auto;
      transform:none;
      width:76px;
      height:76px;
      padding:8px;
      box-shadow:none;
      border:1px solid rgba(15,23,42,.08);
    }
    #loginModal .login-modal-title{
      margin-top:10px;
      font-size:1.15rem;
      letter-spacing:.02em;
      font-weight:700;
      color:#0f5132;
    }
    #loginModal .login-modal-card{ padding:14px 32px 28px; }
    #loginModal .login-modal-field{ margin-bottom:12px; }
    #loginModal .login-modal-inputwrap > i:first-child,
    #loginModal .login-modal-inputwrap > .bi:first-child{
      left:14px;
      font-size:1rem;
    }
    #loginModal .login-modal-inputwrap .form-control{
      min-height:48px;
      border-radius:14px;
      padding:.78rem 2.8rem .78rem 2.75rem !important;
    }
    #loginModal .login-modal-row{
      margin:2px 2px 14px;
      font-size:.92rem;
    }
    #loginModal .login-modal-btn{
      min-height:48px;
      border-radius:14px;
      font-size:1rem;
    }
    #loginModal .login-modal-btn-register,
    #loginModal .login-modal-support{ display:none; }
    #loginModal .login-modal-note{ margin-bottom:14px; }
  }

  /* ===== Mobile: hamburger sections behave like separate pages (no long scroll) ===== */
  @media (max-width: 767.98px){
    /* Mobile: NEVER show Register entry points on the public landing hero */
    #heroLoginForm [data-bs-target="#registerModal"],
    #heroLoginForm .ru-btn-blue{ display:none !important; }

    /* Mobile home should not show hero thumbnails behind the login card */
    #heroThumbs{ display:none !important; }

    /* Smooth scrolling and normal section flow on mobile view */
    .reveal {
      opacity: 1 !important;
      transform: none !important;
      animation: none !important;
    }
  }

  /* Registration modal (stays inside portal, not a separate page)
     - scrollable body (prevents cut-off on shorter viewports)
     - matches the clean "Driver Registration" style
     - doesn't close when user clicks outside
  */
  #registerModal{z-index:4000!important;}
  .modal-backdrop.register-modal-backdrop{z-index:3985!important;opacity:.55;}
  /* Match the compact "Driver Registration" popup (no scrollbars on desktop) */
  /* Slightly smaller so everything fits without scrolling */
  #registerModal .modal-dialog{ margin:.45rem auto; max-width:560px; }
  #registerModal .modal-content{
    border-radius:22px;
    border:1px solid rgba(15,23,42,.10);
    box-shadow:0 18px 45px rgba(15,23,42,.10);
    overflow:hidden;
    background:linear-gradient(180deg,#f8fafc 0%, #eef2f7 100%);
  }
  #registerModal .modal-body{ padding:.65rem .8rem .65rem !important; max-height:none; overflow:visible; }

  #registerModal .ru-reg-logo{ width:46px; height:46px; }
	  #registerModal .ru-reg-logo img{ width:100%; height:100%; object-fit:contain; display:block; }
  #registerModal .ru-reg-brand-title{ font-weight:900; letter-spacing:.5px; color:#0f5132; font-size:1.55rem; line-height:1; }
  #registerModal .ru-reg-brand-sub{ font-size:.84rem; color:#2563eb; margin-top:-.2rem; }
  #registerModal .ru-reg-main-title{ font-weight:900; color:#111827; margin:.35rem 0 .05rem; font-size:1.2rem; }
  #registerModal .ru-reg-main-desc{ color:#6b7280; margin:0 0 .5rem; font-size:.84rem; }

  #registerModal .ru-reg-card{ background:#f8fafc; border:1px solid rgba(15,23,42,.08); border-radius:18px; padding:8px; box-shadow:0 10px 24px rgba(15,23,42,.06); }

  /* Tighten Bootstrap spacing utilities inside the modal so it fits without scrolling */
  #registerModal .g-2{ --bs-gutter-x:.5rem; --bs-gutter-y:.5rem; }
  #registerModal .mt-3{ margin-top:.75rem !important; }
  #registerModal .mt-2{ margin-top:.5rem !important; }
  #registerModal .mb-2{ margin-bottom:.5rem !important; }
  #registerModal .mb-1{ margin-bottom:.35rem !important; }

  #registerModal .form-label{ font-size:.82rem; margin-bottom:.16rem; font-weight:600; color:#111827 !important; -webkit-text-stroke:0 !important; text-shadow:none !important; }
  
  /* Force PURE WHITE input boxes in Register & Login modals (even in Dark Mode) */
  #registerModal .modal-content,
  #loginModal .modal-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
  }
  #registerModal .form-control,
  #registerModal .form-select,
  #registerModal input:not([type="checkbox"]):not([type="radio"]),
  #registerModal select,
  #registerModal .ru-review-box input,
  #loginModal .form-control,
  #loginModal .form-select,
  #loginModal input:not([type="checkbox"]):not([type="radio"]) {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 13px !important;
    padding: .42rem .66rem;
    line-height: 1.15;
    font-size: .92rem;
  }

  /* File Upload "Choose File" Button (Always Blue even in Dark Mode) */
  #registerModal input[type="file"]::file-selector-button,
  #registerModal input[type="file"]::-webkit-file-upload-button,
  input[type="file"]::file-selector-button,
  input[type="file"]::-webkit-file-upload-button {
    background: #2563eb !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    margin-right: 10px !important;
    transition: background-color 0.2s ease !important;
  }
  #registerModal input[type="file"]::file-selector-button:hover,
  #registerModal input[type="file"]::-webkit-file-upload-button:hover,
  input[type="file"]::file-selector-button:hover,
  input[type="file"]::-webkit-file-upload-button:hover {
    background: #1d4ed8 !important;
    background-color: #1d4ed8 !important;
  }

  /* Confirm Checkbox Styling (Square Box & Clickable) */
  #registerModal .form-check-input,
  #driverConfirm,
  #passengerConfirm,
  input[type="checkbox"].form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    border-radius: 4px !important;
    border: 2px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative !important;
  }
  #registerModal .form-check-input:hover,
  #driverConfirm:hover,
  #passengerConfirm:hover,
  input[type="checkbox"].form-check-input:hover {
    border-color: #2563eb !important;
  }
  #registerModal .form-check-input:checked,
  #driverConfirm:checked,
  #passengerConfirm:checked,
  input[type="checkbox"].form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 13px 13px !important;
  }

  #registerModal .btn-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 9999 !important;
    opacity: 0.9 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    filter: none !important;
  }

  /* OTP Verify Buttons Disabled (White background + light border + non-clickable) & Enabled (Blue background + clickable) */
  #registerModal button[data-otp-verify]:disabled,
  #registerModal button[data-driver-submit]:disabled,
  button[data-otp-verify]:disabled,
  button[data-driver-submit]:disabled,
  .ru-btn-blue:disabled,
  .ru-btn-blue.disabled {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #94a3b8 !important;
    border: 1.5px solid #cbd5e1 !important;
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
  }

  #registerModal button[data-otp-verify]:not(:disabled),
  #registerModal button[data-driver-submit]:not(:disabled),
  button[data-otp-verify]:not(:disabled),
  button[data-driver-submit]:not(:disabled),
  .ru-btn-blue:not(:disabled) {
    background: #2563eb !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: 1.5px solid #2563eb !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }

  #registerModal .form-control:focus,
  #registerModal .form-select:focus{
    box-shadow:0 0 0 .2rem rgba(37,99,235,.12) !important;
    border-color:rgba(37,99,235,.5) !important;
    background: #ffffff !important;
  }
  /* Remove Bootstrap's built-in exclamation icon inside invalid inputs */
  #registerModal .form-control.is-invalid,
  #registerModal .form-select.is-invalid{
    background-image:none !important;
  }
  /* Remove Bootstrap's green check icon inside valid inputs (user doesn't want it) */
  #registerModal .form-control.is-valid,
  #registerModal .form-select.is-valid{
    background-image:none !important;
  }
  /* Also remove valid icons that Bootstrap applies via :valid when using was-validated */
  #registerModal .was-validated .form-control:valid,
  #registerModal .was-validated .form-select:valid{
    background-image:none !important;
  }

  /* Keep the eye toggle perfectly centered at the end of the input */
  #registerModal [data-toggle-pass]{ width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
  /* Plain (non-stroked) helper text */
  #registerModal .invalid-feedback{ font-size:.8rem; font-weight:500; text-shadow:none; }
  #registerModal .input-error-msg{
    display:none;
    margin-top:6px;
    font-size:.8rem;
    font-weight:500;
    color:#dc3545;
    text-shadow:none;
  }
  #registerModal .live-indicator{
    display:none;
    margin-top:6px;
    font-size:.8rem;
    font-weight:600;
    text-shadow:none;
  }
  #registerModal .live-indicator.wait{ display:block; color:#6b7280; }
  #registerModal .live-indicator.ok{ display:block; color:#16a34a; }
  #registerModal .live-indicator.bad{ display:block; color:#dc3545; }
  /* Password inputs are wrapped (eye button). Bootstrap won't auto-show invalid-feedback.
     We toggle a class on the wrapper and show the adjacent feedback block. */
  #registerModal .ru-passwrap.ru-invalid + .invalid-feedback,
  #registerModal .ru-passwrap.ru-invalid + .pass-reqs + .invalid-feedback,
  #registerModal .ru-passwrap.ru-invalid + .pass-reqs + .input-error-msg,
  #registerModal .ru-passwrap.ru-invalid + .input-error-msg{ display:block; }

  /* Password requirements checklist */
  #registerModal .pass-reqs {
    display: none;
    margin-top: .35rem;
    margin-bottom: .35rem;
    padding: 6px 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: .72rem;
  }
  #registerModal .pass-reqs.active {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  #registerModal .pass-req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    transition: all .2s ease;
  }
  #registerModal .pass-req-item i {
    font-size: .78rem;
    color: #94a3b8;
  }
  #registerModal .pass-req-item.valid {
    color: #16a34a;
    font-weight: 600;
  }
  #registerModal .pass-req-item.valid i {
    color: #16a34a;
  }
  #registerModal .reg-tabs .nav-link{ border-radius:999px; font-weight:800; font-size:.9rem; padding:.4rem .65rem; }
  #registerModal .ru-stepper{ display:flex; gap:8px; justify-content:center; margin:2px 0 14px; }
  #registerModal .ru-step-dot{
    width:30px; height:30px; border-radius:999px; display:flex; align-items:center; justify-content:center;
    font-size:.85rem; font-weight:800; color:#64748b; background:#fff; border:1px solid rgba(15,23,42,.12);
  }
  #registerModal .ru-step-dot.active{ background:#2563eb; border-color:#2563eb; color:#fff; box-shadow:0 10px 22px rgba(37,99,235,.22); }
  #registerModal .ru-step-dot.done{ background:#16a34a; border-color:#16a34a; color:#fff; }
  #registerModal .ru-step-pane{ display:none; }
  #registerModal .ru-step-pane.active{ display:block; }
  #registerModal .ru-step-label{
    text-align:center; font-size:.82rem; color:#64748b; margin:-4px 0 10px;
  }
  #registerModal .ru-review-box{ border:1px solid rgba(15,23,42,.10); border-radius:16px; padding:14px; background:#f8fafc; }
  #registerModal .ru-review-title{ font-weight:800 !important; color:#0f172a; margin:4px 0 6px; }
  #registerModal .ru-review-title small{ font-weight:700 !important; color:#64748b; }
  #registerModal .ru-review-row{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px dashed rgba(15,23,42,.12); }
  #registerModal .ru-review-row:last-child{ border-bottom:0; }
  #registerModal .ru-review-row .k{ color:#475569; font-weight:700 !important; }
  #registerModal .ru-review-row .v{ color:#0f172a; font-weight:700 !important; text-align:right; }
  #registerModal .ru-confirm-err{ display:none; color:#dc2626; font-size:.84rem; margin-top:.45rem; }
  #registerModal .ru-step-actions{ display:flex; gap:.5rem; margin-top:.85rem; }
  #registerModal .ru-step-actions .btn{ flex:1 1 0; }
  #registerModal .ru-inline-note{
    font-size:.88rem; color:#64748b; text-align:center; margin-top:.1rem;
  }

  /* Registration typography spec (Poppins, regular only, no stroke) */
  #registerModal, #registerModal *{
    -webkit-text-stroke:0 !important;
    text-shadow:none !important;
    font-family:"Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans" !important;
    font-weight:400 !important;
  }
  /* Keep Bootstrap Icons working */
  #registerModal .bi, #registerModal .bi::before{ font-family:"bootstrap-icons" !important; font-weight:400 !important; }
  #registerModal .reg-tabs .nav-link{ -webkit-text-stroke:0 !important; text-shadow:none !important; }

  /* Show password checkbox styling */
  #registerModal .form-check-label, #loginModal .form-check-label{ font-weight:700; color:#475569; user-select:none; }


  #registerModal .otp-input{
    width:44px; height:50px;
    text-align:center;
    border-radius:12px;
    border:1px solid var(--ru-border);
    font-size:1.2rem;
    font-weight:800;
  }
  #registerModal .otp-input:focus{ outline:none; border-color:#2563eb; box-shadow:0 0 0 .18rem rgba(37,99,235,.15); }

  /* SweetAlert: always above modal + compact on phone */
  .swal2-container{ z-index:5000 !important; }

  @media (max-width: 576px){
    #loginModal .modal-dialog{ margin:.35rem auto; max-width:96vw; }
    #loginModal .modal-content{ max-height:96vh; border-radius:22px !important; }
    #loginModal .login-modal-hero{ padding:22px 18px 16px; }
    #loginModal .login-modal-hero-art{ min-height:128px; }
    #loginModal .login-modal-seal{ width:82px; height:82px; }
    #loginModal .login-modal-title{ font-size:1.62rem; letter-spacing:.2em; }
    #loginModal .login-modal-card{ padding:18px 16px 20px; }
    #loginModal .login-modal-inputwrap .form-control{ min-height:52px; font-size:.96rem; }
    #loginModal .login-modal-btn{ min-height:52px; font-size:.98rem; }

    .swal2-popup{
      width:min(90vw, 320px) !important;
      padding:.85rem .8rem !important;
      border-radius:14px !important;
    }
    .swal2-title{ font-size:1.03rem !important; margin:.1rem 0 .35rem !important; }
    .swal2-html-container{ font-size:.9rem !important; margin:.2rem 0 .45rem !important; }
    .swal2-actions{ margin-top:.55rem !important; gap:.35rem !important; }
    .swal2-styled{ padding:.48rem .82rem !important; font-size:.88rem !important; }

  #registerModal .modal-dialog{ margin:.45rem auto; max-width:560px; }
    #registerModal .modal-content{ border-radius:18px !important; }
  #registerModal .modal-body{ padding:.65rem .8rem .65rem !important; max-height:none; overflow:visible; }
  #registerModal .ru-reg-logo{ width:46px; height:46px; }
  #registerModal .ru-reg-brand-title{ font-weight:900; letter-spacing:.5px; color:#0f5132; font-size:1.55rem; line-height:1; }
  #registerModal .ru-reg-main-title{ font-weight:900; color:#111827; margin:.35rem 0 .05rem; font-size:1.2rem; }
  #registerModal .ru-reg-main-desc{ color:#6b7280; margin:0 0 .5rem; font-size:.84rem; }
  #registerModal .ru-reg-card{ background:#f8fafc; border:1px solid rgba(15,23,42,.08); border-radius:18px; padding:8px; box-shadow:0 10px 24px rgba(15,23,42,.06); }
  #registerModal .form-label{ font-size:.82rem; margin-bottom:.16rem; font-weight:700; color:#111827; }
    #registerModal .form-control,
    #registerModal .form-select{ padding:.5rem .7rem; font-size:.95rem; }
    #registerModal .otp-input{ width:38px; height:46px; font-size:1.08rem; }
    #registerModal .ru-step-actions{ flex-direction:column; }
    #registerModal .ru-step-actions .btn{ width:100%; }
  }

    /* Drawer menu (supports Dark Mode & Light Mode) */
    body.ru-noscroll{ overflow:hidden; }
    .menuOverlay{ position:fixed; inset:0; background:rgba(15,23,42,.45); opacity:0; pointer-events:none; transition:opacity .22s ease; z-index:1050; backdrop-filter:blur(4px); }
    .menuOverlay.show{ opacity:1; pointer-events:auto; }
    .menuDrawer{ position:fixed; top:0; left:0; width:min(300px, 82vw); height:100%; transform:translateX(-100%); transition:transform .25s cubic-bezier(.16,1,.3,1), background-color .3s, color .3s; z-index:1051; box-shadow:10px 0 30px rgba(2,6,23,.25); display:flex; flex-direction:column; padding:20px 16px; }
    .menuDrawer.open{ transform:translateX(0); }
    
    /* Theme support for Drawer */
    :root, [data-bs-theme="light"] .menuDrawer { background-color:#ffffff !important; color:#0f172a !important; }
    :root, [data-bs-theme="light"] .menuClose { color:#64748b !important; }
    :root, [data-bs-theme="light"] .menuLink { color:#334155 !important; }
    :root, [data-bs-theme="light"] .menuLink:hover { background:#f1f5f9; }
    :root, [data-bs-theme="light"] .menuLink.active { background:#e8f8ee !important; color:#15803d !important; font-weight:700 !important; }

    [data-bs-theme="dark"] .menuDrawer { background-color:#0f172a !important; color:#f8fafc !important; border-right:1px solid rgba(255,255,255,0.08); }
    [data-bs-theme="dark"] .menuClose { color:#94a3b8 !important; }
    [data-bs-theme="dark"] .menuLink { color:#cbd5e1 !important; }
    [data-bs-theme="dark"] .menuLink:hover { background:rgba(255,255,255,0.06); }
    [data-bs-theme="dark"] .menuLink.active { background:rgba(34,197,94,0.18) !important; color:#4ade80 !important; font-weight:700 !important; }

    .menuHead{ display:flex; align-items:center; justify-content:flex-end; padding-bottom:14px; }
    .menuClose{ border:0; background:transparent; font-size:22px; line-height:1; padding:6px 10px; border-radius:10px; cursor:pointer; }
    .menuList{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
    .menuLink{ display:flex; align-items:center; gap:14px; padding:12px 18px; border-radius:16px; text-decoration:none; font-size:1.02rem; font-weight:600; transition:all .2s ease; }
    .menuLink i{ font-size:1.2rem; width:24px; text-align:center; }

    .ru-topbar-dark .ru-logo img,
  .ru-mobile-topbar-dark .ru-mobile-logo img {
    filter: brightness(0) invert(1) !important;
  }
  .ru-topbar-dark {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: fixed !important; top: 0; left: 0; right: 0; width: 100%;
    z-index: 1040 !important;
  }
  .ru-topbar-dark .ru-brand-title { color: #f8fafc !important; }
  .ru-topbar-dark .ru-brand-sub { color: #94a3b8 !important; }
  .ru-topbar-dark .ru-navlink { color: #cbd5e1 !important; }
  .ru-topbar-dark .ru-navlink:hover { color: #22c55e !important; }
  .ru-topbar-dark .ru-btn-outline { background: transparent !important; border-color: rgba(255,255,255,0.4) !important; color: #f8fafc !important; }
  .ru-topbar-dark .ru-btn-outline:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
  
  .ru-mobile-topbar-dark {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .ru-mobile-topbar-dark .ru-mobile-brand { color: #f8fafc !important; }
  .ru-mobile-topbar-dark .ru-mobile-burger span { background-color: #f8fafc !important; }

  .ru-mobile-topbar { display: none !important; }

  @media (max-width: 991.98px) {
    .ru-desktop-topbar { display: none !important; }
    .ru-mobile-topbar {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 12px;
    }
  }

  .ru-mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  [data-bs-theme="dark"] .ru-mobile-menu-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  [data-bs-theme="dark"] .ru-mobile-burger span {
    background: #ffffff !important;
  }
  [data-bs-theme="light"] .ru-mobile-menu-btn {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
  }
  [data-bs-theme="light"] .ru-mobile-burger span {
    background: #0f172a !important;
  }
  
    /* Force alternate dark sections to match the main dark theme seamlessly */
    .ru-section-dark-alt { background-color: #0f172a !important; border-top: none !important; }

/* ===== Block 2: Scroll Fix, Footer Logo, Section Alt (index.php lines 927-950) ===== */
    /* Fix for anchor link scrolling being cut off by fixed header */
    html { scroll-padding-top: 130px !important; background-color: var(--ru-bg-primary) !important; }
    /* Dynamic theme background for body */
    body.home { background-color: var(--ru-bg-primary) !important; color: var(--ru-text-primary); }
    /* Footer Logo: Green in Light mode, White in Dark mode */
    .ru-footer-logo {
      width: 44px !important;
      height: auto !important;
      transition: filter 0.3s, opacity 0.3s;
      display: inline-block !important;
    }
    [data-bs-theme="dark"] .ru-footer-logo {
      filter: brightness(0) invert(1) !important;
      opacity: 0.95 !important;
    }
    [data-bs-theme="light"] .ru-footer-logo {
      filter: none !important;
      opacity: 1 !important;
    }

    /* Force alternate dark sections to match the main dark theme seamlessly */
    .ru-section-dark-alt { background-color: #0f172a !important; border-top: none !important; }

/* ===== Block 3: Hero Animations, Phone Mockup, Floating Badges (index.php lines 1515-1726) ===== */
@keyframes floatAnimation {
  0% { transform: translateY(0px) scale(1.05); }
  50% { transform: translateY(-15px) scale(1.05); }
  100% { transform: translateY(0px) scale(1.05); }
}
@keyframes floatBadge1 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
@keyframes floatBadge2 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ru-hero-modern {
  background: var(--ru-hero-bg);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}
.ru-hero-modern::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(34,197,94,0.1) 0%, transparent 40%);
  animation: rotateGradient 20s linear infinite;
}
@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ru-glass-badge {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 50px;
  color: #a7f3d0;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
}

/* Phone Mockup Styles */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #f8fafc;
  border-radius: 35px;
  border: 10px solid #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6), inset 0 0 0 2px #334155;
  position: relative;
  overflow: hidden;
  animation: floatAnimation 6s ease-in-out infinite;
  margin: 0 auto;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 25px;
  background: #0f172a;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 20;
}
.map-bg {
  width: 100%; height: 100%;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.map-bg iframe {
  width: 150%; height: 150%;
  position: absolute;
  top: -25%; left: -25%;
  border: 0;
  pointer-events: none; /* Make map non-interactive so scrolling isn't hijacked */
  filter: saturate(1.2) contrast(1.1); /* Enhance map colors slightly */
}
.route-line {
  position: absolute;
  top: 35%; left: 25%;
  width: 50%; height: 35%;
  border-left: 5px solid #3b82f6;
  border-bottom: 5px solid #3b82f6;
  border-bottom-left-radius: 12px;
  z-index: 5;
}
.marker-start {
  position: absolute;
  top: 35%; left: 25%;
  width: 14px; height: 14px;
  background: #10b981;
  border-radius: 50%;
  border: 3px solid white;
  transform: translate(-50%, -50%);
  z-index: 6;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.marker-end {
  position: absolute;
  bottom: 30%; right: 25%;
  width: 18px; height: 18px;
  background: #ef4444;
  border-radius: 50%;
  border: 3px solid white;
  transform: translate(50%, 50%);
  z-index: 6;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.driver-card-mockup {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: white;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 10;
  animation: slideUp 1s ease forwards 0.8s;
  opacity: 0; transform: translateY(50px);
}
.driver-avatar {
  width: 42px; height: 42px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.floating-badge {
  position: absolute;
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 30;
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
}
.badge-1 {
  top: 20%; right: -40px;
  color: #f59e0b;
  animation-delay: 1.2s;
}
.badge-1-float {
  animation: floatBadge1 4s ease-in-out infinite;
}
.badge-2 {
  bottom: 40%; left: -60px;
  color: #3b82f6;
  animation-delay: 1.5s;
}
.badge-2-float {
  animation: floatBadge2 5s ease-in-out infinite;
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
    .ru-topbar-dark .ru-logo img,
  .ru-mobile-topbar-dark .ru-mobile-logo img {
    filter: brightness(0) invert(1) !important;
  }
  .ru-topbar-dark {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: fixed !important; top: 0; left: 0; right: 0; width: 100%;
    z-index: 1040 !important;
  }
  .ru-topbar-dark .ru-brand-title { color: #f8fafc !important; }
  .ru-topbar-dark .ru-brand-sub { color: #94a3b8 !important; }
  .ru-topbar-dark .ru-navlink { color: #cbd5e1 !important; }
  .ru-topbar-dark .ru-navlink:hover { color: #22c55e !important; }
  .ru-topbar-dark .ru-btn-outline { background: transparent !important; border-color: rgba(255,255,255,0.4) !important; color: #f8fafc !important; }
  .ru-topbar-dark .ru-btn-outline:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
  
  .ru-mobile-topbar-dark {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .ru-mobile-topbar-dark .ru-mobile-brand { color: #f8fafc !important; }
  .ru-mobile-topbar-dark .ru-mobile-burger span { background-color: #f8fafc !important; }

  /* Force alternate dark sections to match the main dark theme seamlessly */
  .ru-section-dark-alt { background-color: #0f172a !important; border-top: none !important; }

/* ===== Block 4: Dark/Light Theme Variables, Topbar Styling (index.php lines 1791-1946) ===== */
  :root, [data-bs-theme="light"] {
    --ru-bg-primary: #ffffff;
    --ru-bg-alt: #f8fafc;
    --ru-text-primary: #0f172a;
    --ru-text-secondary: #475569;
    --ru-card-bg: #ffffff;
    --ru-card-border: rgba(15, 23, 42, 0.1);
    --ru-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --ru-footer-bg: #f1f5f9;
    --ru-topbar-bg: rgba(255, 255, 255, 0.95);
    --ru-topbar-border: rgba(15, 23, 42, 0.1);
    --ru-contact-card: rgba(255, 255, 255, 0.8);
    --ru-hero-bg: radial-gradient(circle at 20% 50%, #f1f5f9 0%, #ffffff 100%);
  }

  [data-bs-theme="light"] .ru-glass-badge {
    color: #10b981;
    border-color: rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.1);
  }

  [data-bs-theme="dark"] {
    --ru-bg-primary: #0f172a;
    --ru-bg-alt: #1e293b;
    --ru-text-primary: #ffffff;
    --ru-text-secondary: #94a3b8;
    --ru-card-bg: rgba(255, 255, 255, 0.03);
    --ru-card-border: rgba(255, 255, 255, 0.05);
    --ru-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --ru-footer-bg: #0f172a;
    --ru-topbar-bg: rgba(15, 23, 42, 0.95);
    --ru-topbar-border: rgba(255, 255, 255, 0.05);
    --ru-contact-card: rgba(15, 23, 42, 0.6);
    --ru-hero-bg: radial-gradient(circle at 20% 50%, #0f172a 0%, #020617 100%);
  }

  .ru-section-dark {
    background-color: var(--ru-bg-primary);
    color: var(--ru-text-primary);
    padding: 80px 0;
    transition: background-color 0.3s, color 0.3s;
  }
  .ru-section-dark-alt {
    background-color: var(--ru-bg-alt) !important;
    color: var(--ru-text-primary);
    padding: 80px 0;
    border-top: none !important;
    transition: background-color 0.3s, color 0.3s;
  }
  .ru-section-title-dark {
    color: var(--ru-text-primary);
    font-weight: 800;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    transition: color 0.3s;
  }
  .ru-section-sub-dark {
    color: var(--ru-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    transition: color 0.3s;
  }
  .ru-card-dark {
    background: var(--ru-card-bg);
    border: 1px solid var(--ru-card-border);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
  }
  .ru-card-dark:hover {
    transform: translateY(-5px);
    box-shadow: var(--ru-card-shadow);
    border-color: rgba(34, 197, 94, 0.3);
  }
  .ru-icon-dark {
    width: 60px;
    height: 60px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
  }
  .ru-card-title-dark {
    color: var(--ru-text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
    transition: color 0.3s;
  }
  .ru-card-text-dark {
    color: var(--ru-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s;
  }
  .step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
  }
  .dark-footer {
    background: var(--ru-footer-bg);
    padding: 40px 0;
    text-align: center;
    color: var(--ru-text-secondary);
    border-top: none;
    transition: background-color 0.3s, color 0.3s;
  }
  
  [data-bs-theme="light"] .ru-topbar-dark .ru-logo img,
  [data-bs-theme="light"] .ru-mobile-topbar-dark .ru-mobile-logo img {
    filter: none !important;
  }
  .ru-topbar-dark {
    background: var(--ru-topbar-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ru-topbar-border);
    position: fixed !important; top: 0; left: 0; right: 0; width: 100%;
    z-index: 1040 !important;
    transition: background-color 0.3s, border-color 0.3s;
  }
  .ru-topbar-dark .ru-brand-title { color: var(--ru-text-primary) !important; transition: color 0.3s; }
  .ru-topbar-dark .ru-brand-sub { color: var(--ru-text-secondary) !important; transition: color 0.3s; }
  .ru-topbar-dark .ru-navlink { color: var(--ru-text-secondary) !important; transition: color 0.3s; }
  .ru-topbar-dark .ru-navlink:hover { color: #22c55e !important; }
  .ru-topbar-dark .ru-btn-outline { background: transparent !important; border-color: var(--ru-text-secondary) !important; color: var(--ru-text-primary) !important; transition: all 0.3s; }
  .ru-topbar-dark .ru-btn-outline:hover { background: rgba(34, 197, 94, 0.1) !important; color: #22c55e !important; border-color: #22c55e !important; }
  
  .ru-mobile-topbar-dark {
    background: var(--ru-topbar-bg) !important;
    border-bottom: 1px solid var(--ru-topbar-border);
    transition: background-color 0.3s, border-color 0.3s;
  }
  .ru-mobile-topbar-dark .ru-mobile-brand { color: var(--ru-text-primary) !important; }
  .ru-mobile-topbar-dark .ru-mobile-burger span { background-color: var(--ru-text-primary) !important; }

