* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Kufi Arabic", sans-serif;
    direction: rtl;
}

html {
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
}

body {
    width: 100%;

}

.og-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/images/Web_Background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: -1;
    overflow: hidden;
}

/* fixed attachment is costly on mobile; scroll reduces paint/composite work */
@media (max-width: 1024px) {
    .og-background {
        background-attachment: scroll;
    }
}

/* Style for the whole scrollbar */
::-webkit-scrollbar {
    z-index: 99;
    width: 10px;
    /* Adjust the width of the scrollbar */
    height: 10px;
    /* Adjust the height for horizontal scrollbar */
}

/* Style for the track (the area the thumb moves within) */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Light gray color */
    border-radius: 10px;
}

/* Style for the thumb (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
    background-color: #888;
    /* Darker gray color */
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    /* Optional border around the thumb */
}

/* Style when hovering over the thumb */
::-webkit-scrollbar-thumb:hover {
    background-color: #555;
    /* Darker color on hover */
}

/* Style for the corner (where the horizontal and vertical scrollbars meet) */
::-webkit-scrollbar-corner {
    background-color: #f1f1f1;
}


header {
    background-color: rgba(248, 249, 250, 0.8);
    padding: 5px 20px;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

/* يدفع محتوى الصفحة لأسفل تحت الهيدر الثابت (60px) مع هامش بسيط */
.just-moving-header {
    height: 68px;
    min-height: 68px;
    width: 100%;
    flex-shrink: 0;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    justify-content: center;
    align-items: center;
    z-index: 1300;
    padding: 16px;
    overflow-y: auto;
}

.modal-login-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: right;
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.18);
    animation: modalCardIn 0.18s cubic-bezier(0, 0, 0.2, 1) both;
    will-change: transform, opacity;
}

.modal.closing .modal-login-content {
    animation: modalCardOut 0.14s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes modalCardIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@keyframes modalCardOut {
    from { opacity: 1; transform: scale(1)    translateY(0); }
    to   { opacity: 0; transform: scale(0.95) translateY(6px); }
}


.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}


.logo img {
    width: 130px;
}


.nav-header ul {
    padding-right: 100px;
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-header ul li {
    position: relative;
}

.nav-header ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.nav-header ul li a:hover {
    color: #007bff;
}



.nav-links-menu {
    display: none;
    background-color: #efefef !important;
    padding: 5px 15px !important;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 3px 4px 7px 0px rgba(0, 0, 0, 0.3);
}

.nav-links-menu ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.nav-links-menu .dropdown-content-header {
    right: 111%;
    top: 0;
    width: fit-content;
    background-color: #efefef;
    border-radius: 6px;
    padding: 12px;
}

.nav-links-menu .show {
    display: flex !important;
    flex-direction: column;
}

.nav-links-menu .nav-links-menu-a {
    margin-bottom: 10px;
}


.dropdown-content-header {
    display: none;
    position: absolute;
    left: 0;
    /* Position left edge at 50% of the parent */
    list-style: none;
    background-color: #f8f9fa;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 1200;
    text-align: center;
    min-width: 142px;

}

.dropdown-content-header.show {
    display: block;
}


.dropdown-user-header {
    opacity: 0;
    transform: translateY(-10px);
    /* تصعد للأعلى قليلاً */
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
    position: absolute;
    right: 25px;
    top: 40px;
    padding: 10px 0;
    z-index: 1200;
    pointer-events: none;
}

.dropdown-user-header.show {
    opacity: 1;
    transform: translateY(0);
    min-width: 173px;
    /* تهبط في مكانها */
    visibility: visible;
    pointer-events: auto;
}

.dropdown-user-header-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown-user-header-btn {
    background-color: #efefef !important;
    padding: 5px 15px !important;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 3px 4px 7px 0px rgba(0, 0, 0, 0.3);

}

.user-name {
    font-weight: 700;
}

.dropdown-user-header-btn i {
    font-size: 15px;
    margin-left: 8px;
}

.profile-btn i {
    color: #1a73a4;
}

.signOut-btn i {
    color: #a41a1a;
}

.profile-btn:hover {
    color: #1a73a4;
}

.signOut-btn:hover {
    color: #a41a1a;
}


.user-dropdown {
    position: relative;
    padding-left: 5px !important;
    cursor: pointer !important;
    border-radius: 16px;
}

.user-dropdown.active {
    background-color: #e3e3e3;
}

.user-dropdown:hover {
    background-color: #e3e3e3;
}


nav ul li .dropdown-content-header a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    width: 100%;
}

.dropdown-content-header li {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

nav ul li .dropdown-content-header a:hover {
    background-color: #007bff;
    color: white;
}

.dropdown-content-header li:hover {
    cursor: pointer;
    background-color: #007bff;
    color: white;
}



.dropdown-header:hover {
    user-select: none;
    cursor: default;
}

.dropdown-header.active {
    color: #007bff !important;
}

.action-container-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-book-left {
    display: block;
    box-sizing: border-box;
    direction: rtl;
    gap: 5px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    color: #007bff;
    font-size: 18px;
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.3s, border 0.3s;
}

.social-icon:hover {
    border: 2px solid #007bff;
}

.login-button {
    display: flex;
    align-items: center;
}

#loginBtn {
    background-color: #007bff;
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 30px;
    max-height: 30px;
    border-radius: 10px;
}

#loginBtn:hover {
    background-color: #0056b3;
}

.menu-btn-header {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.phone-container {
    display: grid;
    grid-template-columns: 22% 75%;
    direction: ltr;
    column-gap: 3%;

}

.phone-reg-tag {
    user-select: none;
    cursor: default;
    color: #757575;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    direction: ltr;
}



@media (max-width: 768px) {
    nav ul {
        padding-right: 10px;
    }

    .social-book-left {
        gap: 3px;
    }

    #loginBtn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .logo img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .container-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-btn-header {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #007bff;
        cursor: pointer;
        margin-right: 10px;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        background-color: rgba(248, 249, 250, 0.9);
        top: 90px;
        left: 0;
        z-index: 1000;
    }

    nav.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style-type: none;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 10px;
        display: block;
        text-align: center;
    }

    nav ul li .dropdown-content-header {
        min-width: auto;
        top: auto;
        margin: 0 auto;
        width: 100%;
    }

    nav ul li .dropdown-content-header a {
        padding: 10px 15px;
        font-size: 12px;
    }

    nav ul li.show .dropdown-content-header {
        display: block;
    }

    .logo img {
        width: 100px;
    }

    .action-container-header {
        gap: 3px;
        /* margin-right: 20px; */
    }

    .social-icon {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    #loginBtn {
        padding: 5px 8px;
        font-size: 10px;
        width: 100%;
        max-width: 150px;
        min-height: 30px;

    }
}


@media (max-width: 383px) {
    .user-name {
        display: inline-block;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropdown-user-header {
        right: -2px;
    }

    .dropdown-content-header {
        min-width: 102px;
    }
}

.header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

/* Exclude primary CTAs (e.g. add-vehicle / pricelist "التالي") — they use .next-button-sections */
button:not(.section-buttons):not(.next-button-sections) {
    padding: 10px;
    border: none;
    cursor: pointer;
    background-color: #ccc;
}

/*
  button.active:not(.section-buttons) {
    background-color: #007bff;
    font-weight: bold;
    border-bottom-color: #0056b3;
  }

   button:hover :not(.section-buttons){
    background-color: #0056b3;
    color: white;
  } */

.notification {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    font-size: 16px;
    z-index: 1000;
    min-width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}


.button-header {
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.button-header:disabled {
    background-color: #ccc;
}

.p-header {
    margin-top: 20px;
}

.p-header a {
    color: #007bff;
    cursor: pointer;
}


input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.password-container {
    position: relative;
    display: block;
}

/* Tooltip box */
.password-tooltip {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 11px;
}

.password-tooltip ul {
    list-style: circle;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

.password-tooltip ul li {
    margin-bottom: 5px;
}

/* Valid rule */
.password-tooltip ul li.valid {
    color: green;
}

/* Invalid rule */
.password-tooltip ul li.invalid {
    color: red;
}

/* Show the tooltip */
.password-container:focus-within .password-tooltip {
    display: block;
}

.record-field-reg {
    display: none;
    flex-flow: column;
}

.record-field-reg.show {
    display: flex;
}

.burger {
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    display: none;
}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: black;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.burger input:checked~span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 5px;
}

.burger input:checked~span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.burger input:checked~span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
}

.avatar {
    width: 35px;
    height: 35px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}


.flex-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-button .button-text {
    display: inline;
}

.login-button .button-icon {
    display: none;
    font-size: 18px;
}

@media (max-width: 1104px) {
    .web-nav-header {
        display: none;
    }

    .nav-links-menu {
        display: block;
    }
}

@media (max-width: 1103px) {
    .action-container-header {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end;
    }

    .login-button {
        display: none;
    }

    .login-button-m {
        display: block !important;
    }
}




/* =======================================
   Logout Modal (shared .modal base)
   ======================================= */
.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
    animation: modalCardIn 0.18s cubic-bezier(0, 0, 0.2, 1) both;
}

.modal-btn {
    padding: 10px 24px;
    margin: 8px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
}

.modal-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.logout-modal-btns-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.logout-modal-btn-confirm {
    background: #ef4444 !important;
    color: white;
}

.logout-modal-btn-cancel {
    background: #f1f5f9 !important;
    color: #475569;
}

/* =======================================
   Auth Modal – Brand
   ======================================= */
.modal-brand {
    text-align: center;
    margin-bottom: 20px;
}

.modal-brand img {
    height: 36px;
    width: auto;
}

/* =======================================
   Auth Modal – Close Button
   ======================================= */
.modal-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* =======================================
   Auth Modal – Tab Switcher
   ======================================= */
.popup-header-sign {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 0;
    margin-bottom: 20px;
}

.popup-header-btn {
    flex: 1;
    padding: 9px 12px;
    border: none !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
    outline: none !important;
}

.popup-header-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
    font-weight: 700;
    text-decoration: none;
}

/* =======================================
   Auth Modal – SMS Notification
   ======================================= */
.modal-sms-notification {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    justify-content: center;
}

.modal-sms-notification i {
    color: #22c55e;
    font-size: 16px;
}

/* =======================================
   Auth Modal – Field Groups
   ======================================= */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* OTP step — same column layout as login; shown with display:flex from JS */
.auth-verification-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.modal-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.modal-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* =======================================
   Auth Modal – Inputs
   ======================================= */
.loginReginput {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    text-align: right;
    box-sizing: border-box;
}

.loginReginput:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* =======================================
   Auth Modal – Submit Buttons
   ======================================= */
#loginSubmit,
#signupSubmit,
#verifySubmit {
    position: relative;
    width: 100%;
    padding: 12px 20px;
    background: #1a56db !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

#loginSubmit:hover,
#signupSubmit:hover,
#verifySubmit:hover {
    background: #1e40af !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.32);
}

#loginSubmit:disabled,
#signupSubmit:disabled,
#verifySubmit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Switch text (ليس لديك حساب؟) */
.modal-switch-text {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 14px;
}

.modal-switch-text a,
#goToSignup {
    color: #1a56db !important;
    font-weight: 700;
    text-decoration: none;
}

.modal-switch-text a:hover,
#goToSignup:hover {
    text-decoration: underline;
}

/* =======================================
   Auth Modal – OTP / Verification
   ======================================= */
.modal-otp-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-otp-header i {
    font-size: 36px;
    color: #1a56db;
    margin-bottom: 8px;
    display: block;
}

.modal-otp-header p {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.modal-otp-header span {
    font-size: 13px;
    color: #64748b;
}

.modal-otp-input {
    text-align: center !important;
    font-size: 22px !important;
    letter-spacing: 8px;
    font-weight: 700;
}

.modal-otp-actions {
    text-align: center;
    margin: 12px 0 16px;
}

.modal-otp-timer {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 4px;
}

.modal-otp-resend {
    font-size: 13px;
    font-weight: 700;
    color: #1a56db;
    cursor: pointer;
    margin: 0;
}

.modal-otp-resend:hover {
    text-decoration: underline;
}

/* =======================================
   Auth Modal – Drag Handle (hidden on desktop)
   ======================================= */
.modal-drag-handle {
    display: none;
}

/* =======================================
   Auth Modal – Register Grid
   ======================================= */
.modal-reg-grid {
    display: flex;
    flex-direction: column;
}

.record-field-reg {
    display: none;
}

.record-field-reg.show {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

/* =======================================
   Auth Modal – Error Messages
   ======================================= */
.modal-error-msg {
    color: #ef4444;
    font-size: 12px;
    display: none;
    font-weight: 500;
}

.modal-error-main {
    display: none;
    text-align: center;
    margin-bottom: 8px;
    font-size: 13px;
}

/* =======================================
   Loader
   ======================================= */
.loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =======================================
   Password container & tooltip
   ======================================= */



.input-container {
  position: relative;
}

.input-container input {
  outline: none;
  border: 1px solid #ccc;
}

.input-container input {
  /* background-color: #fff;
  padding: 1rem; */
  padding-right: 3rem;
  /* font-size: 0.875rem;
  line-height: 1.25rem;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); */
}

.input-container span {
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  place-content: center;
  cursor: pointer;
}

.input-container span svg {
  color: #9CA3AF;
  width: 1rem;
  height: 1rem;
}


#password-login-eye-slash {
  display: none;
}



/* =======================================
   Auth Modal – Mobile (Bottom Sheet)
   ======================================= */
@media (max-width: 600px) {

    /* Modal becomes a bottom sheet */
    #popup.modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-login-content {
        border-radius: 22px 22px 0 0;
        max-width: 100%;
        width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 18px 28px;
        animation: sheetUp 0.22s cubic-bezier(0, 0, 0.2, 1) both;
        /* smooth scrolling inside */
        -webkit-overflow-scrolling: touch;
    }

    .modal.closing .modal-login-content {
        animation: sheetDown 0.18s cubic-bezier(0.4, 0, 1, 1) both;
    }

    @keyframes sheetUp {
        from { transform: translateY(100%); opacity: 0.6; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    @keyframes sheetDown {
        from { transform: translateY(0);    opacity: 1; }
        to   { transform: translateY(100%); opacity: 0; }
    }

    /* Drag handle pill */
    .modal-drag-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 99px;
        margin: 0 auto 12px;
        flex-shrink: 0;
    }

    /* Close button – hidden on mobile (drag handle or tap outside to close) */
    .modal-close-btn {
        display: none;
    }

    /* Compact brand */
    .modal-brand {
        margin-bottom: 12px;
        margin-top: 4px;
    }

    .modal-brand img {
        height: 28px;
    }

    /* Compact tabs */
    .popup-header-sign {
        margin-bottom: 14px;
    }

    .popup-header-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Compact field groups */
    .modal-field-group {
        margin-bottom: 8px;
        gap: 4px;
    }

    .modal-field-group label {
        font-size: 12px;
    }

    /* Compact inputs — font-size ≥16px prevents iOS auto-zoom on focus */
    .loginReginput {
        padding: 9px 12px;
        font-size: 16px;
        border-radius: 9px;
    }

    /* Submit buttons */
    #loginSubmit,
    #signupSubmit,
    #verifySubmit {
        padding: 11px 16px;
        font-size: 14px;
        border-radius: 10px !important;
        margin-top: 2px;
    }

    /* 2-column grid for register form */
    .modal-reg-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 10px;
    }

    /* Full-width fields (email, password, confirm) */
    .modal-reg-grid .modal-full {
        grid-column: 1 / -1;
    }

    /* Record field takes full row when visible */
    .record-field-reg.show {
        display: flex;
        grid-column: 1 / -1;
    }

    /* Switch text below button */
    .modal-switch-text {
        margin-top: 10px;
        font-size: 12px;
    }

    /* OTP adjustments */
    .modal-otp-header i {
        font-size: 28px;
    }

    .modal-otp-header p {
        font-size: 16px;
    }

    .modal-otp-input {
        font-size: 18px !important;
        letter-spacing: 6px;
        padding: 10px !important;
    }

    /* OTP step: keep content anchored from top after sheet scroll reset */
    #popup .auth-verification-form {
        padding-top: 4px;
        justify-content: flex-start;
    }

    #popup .auth-verification-form .modal-otp-header {
        margin-top: 4px;
        margin-bottom: 16px;
    }

    /* Password hint: stack below input (absolute + top:70px covered confirm-password & buttons) */
    #popup .password-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #popup .password-container .loginReginput {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    #popup .password-tooltip {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        margin-bottom: 0;
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 10px;
        box-sizing: border-box;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
        border-color: #e2e8f0;
        z-index: 0;
    }

    #popup .password-tooltip p {
        margin: 0 0 8px 0;
        font-size: 12px;
    }

    #popup .password-tooltip ul li {
        font-size: 12px;
        margin-bottom: 5px;
    }

    /* SMS notification */
    .modal-sms-notification {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* oldOperation-alert */
.oldOperation-alert {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(to left, #65bbf5 50%, #2b96d5 50%);
    background-size: 200% 100%;
    background-position: right bottom !important;
    border-left: 5px solid #2b96d5;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 320px;
    direction: rtl;
    cursor: pointer !important;
    transition: background-position 0.5s ease;
}
.oldOperation-alert img{
    width: 54px;
}
.oldOperation-alert p{
    margin: 0px 10px;
}
.oldOperation-alert i{
    font-size: 20px;
}
.oldOperation-alert:hover{
    background-position: left bottom !important;
}

