/* Top Header */
.top-header {
    position: sticky;
    top: 0;
    z-index: 999;
    margin-bottom: -144px;
    transition: all .3s ease;
}

.top-header.scrolled {
    background: #323232;
}

.top-header .header-top {
    padding: 20px;
}

.top-header .header-top .custcontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-header .logo img {
    max-width: 220px;
    width: 100%;
    display: block;
}

.top-header .login-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-header .login-area input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    padding: 15px 20px;
    outline: none;
    font-size: 14px;
    line-height: 16px;
    min-width: 250px;
}

.top-header .login-area input::placeholder {
    color: #fff;
}

.top-header .login-btn {
    padding: 15px 30px;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 20px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #0F7414 0%, #419927 100%);
    white-space: nowrap;
}

.top-header .cashier-btn {
    padding: 15px 30px;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 20px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #433D3D 0%, #F6F6F6 100%);
    white-space: nowrap;
}

.top-header .join-btn {
    padding: 15px 30px;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 20px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #FF7300 0%, #FF9900 100%);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.top-header .join-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(255, 115, 0, 0.4);
}

/* Menu */

.top-header .menu-bar {
    background: rgb(0 0 0 / 30%);
    padding: 15px;
}

.top-header .menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.top-header .menu li {
    position: relative;
}

.top-header .menu li:not(:last-child)::after {
    content: "/";
    color: #777;
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
}

.top-header .menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 14px;
    transition: .3s;
    padding-right: 24px;
}

.top-header .menu a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-header .menu a:hover {
    color: #6cc04a;
}

.top-header .menu-icon {
    display: none;
}

.top-header .mobile-only-user-area {
    display: none;
}

/* Mobile */

.top-header .mobile-toggle {
    display: none;
}


/* ------------------------- */


.footemain {
    background-color: #000;
    padding: 0 20px;
    background-image: url(./assets/images/footerbg.png);
    background-size: cover;
}

.footemain-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.footemain-contact {
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

.footemain-login {
    border-left: 1px solid rgba(255, 255, 255, .1);
    padding-top: 100px;
    padding-bottom: 40px;
}

.footemain-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-block: 40px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footemain-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-block: 45px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footemain-social {
    display: flex;
    gap: 32px;
}

.footemain-social img {
    width: 19.5px;
    height: 19.5px;
}

.footemain-label {
    margin-bottom: 20px;
    color: rgb(255 255 255 / 60%);
    font-size: 12px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.footemain-phone {
    text-decoration: none;
    color: #fff;
    font-size: 26px;
    line-height: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.footemain-email {
    margin-bottom: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 18px;
}


.footemain-label {
    margin-bottom: 20px;
    color: rgb(255 255 255 / 60%);
    font-size: 12px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.footemain-phone {
    text-decoration: none;
    color: #fff;
    font-size: 26px;
    line-height: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.footemain-email {
    margin-bottom: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 18px;
}

.footemain-title {
    font-size: 80px;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.footemain-field {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.footemain-field label {
    color: rgb(255 255 255 / 60%);
    width: 100%;
    font-size: 12px;
    letter-spacing: -0.5px;
}

.footemain-field input {
    padding: 16px 18px;
    background: transparent;
    border: 1px solid rgb(255 255 255 / 10%);
    width: 100%;
    border-left: navajowhite;
    color: #fff;
}

.footemain-field input::placeholder {
    color: #fff;
}

.footemain-btn {
    padding: 18px 20px;
    background: #fff;
    color: #0B0B0B;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}


.footemain-column li a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 5px;
    display: block;
    letter-spacing: -0.2px;
}

.footemain-links h4 {
    color: rgb(255 255 255 / 60%);
    font-size: 12px;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.footemain-copy {
    color: rgb(255 255 255 / 60%);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

/* Responsive */


@media(max-width: 1199px) {
    .footemain-title {
        font-size: 50px;
        line-height: 1.2;
    }
}

@media(max-width: 991px) {
    .top-header .login-area input {
        min-width: unset;
        padding: 15px;
        max-width: 170px;
    }

    .top-header .login-btn,
    .top-header .cashier-btn,
    .top-header .join-btn {
        padding: 15px;
        flex: 1;
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .top-header .menu {
        overflow: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .top-header .menu a {
        padding-right: 12px;
    }

    .top-header .menu {
        gap: 12px;
    }

    .footemain-login {
        border-left: none;
        padding-left: 0;
    }


    .footemain-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media(max-width:767px) {

    /* Lock scrolling when mobile menu is active */
    body.menu-open {
        overflow: hidden;
    }

    /* Backdrop Overlay for mobile drawer */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .top-header .logo {
        text-align: left;
    }

    .top-header .login-area {
        display: none;
    }

    /* Slide-out Drawer style for Mobile menu */
    .top-header .menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: linear-gradient(145deg, #1f221e 0%, #111210 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1000;
        padding: 90px 24px 40px 24px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 0;
        overflow-y: auto;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
        box-sizing: border-box;
    }

    .top-header .menu.active {
        transform: translateX(0);
    }

    .top-header .menu li {
        width: 100%;
        position: relative;
    }

    .top-header .menu li::after {
        display: none;
    }

    /* Menu Link styling - Glass style row */
    .top-header .menu a {
        display: flex;
        align-items: center;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.85);
        padding: 16px 12px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 1px;
        background: transparent;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        text-transform: uppercase;
        width: 100%;
        box-sizing: border-box;
        padding-right: 0;
    }

    .top-header .menu a:hover,
    .top-header .menu a:active {
        color: #6cc04a;
        background: rgba(108, 192, 74, 0.06);
        padding-left: 20px;
    }

    /* SVG menu icons only show on mobile */
    .top-header .menu-icon {
        display: inline-block;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        stroke: rgba(255, 255, 255, 0.6);
        transition: stroke 0.3s ease, transform 0.3s ease;
    }

    .top-header .menu a:hover .menu-icon {
        stroke: #6cc04a;
        transform: scale(1.1);
    }

    /* Custom Mobile Hamburger Toggle Button */
    .top-header .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
    }

    .top-header .mobile-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #fff;
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
    }

    /* Morphing to X */
    .top-header .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #6cc04a;
    }

    .top-header .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .top-header .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #6cc04a;
    }

    .top-header .menu-bar {
        padding: 0;
    }

    .top-header {
        margin-bottom: -100px;
    }

    /* Mobile Only User Login Area in drawer */
    .top-header .mobile-only-user-area {
        display: block;
        width: 100%;
        padding: 0 0 24px 0;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .top-header .mobile-login-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .top-header .mobile-login-form .mobile-input {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        padding: 14px 16px;
        outline: none;
        font-size: 14px;
        line-height: 16px;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
        transition: border-color 0.3s ease, background-color 0.3s ease;
    }

    .top-header .mobile-login-form .mobile-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .top-header .mobile-login-form .mobile-input:focus {
        border-color: #6cc04a;
        background: rgba(255, 255, 255, 0.08);
    }

    .top-header .mobile-user-buttons {
        display: flex;
        gap: 12px;
        width: 100%;
        margin-top: 4px;
    }

    .top-header .mobile-user-buttons .mobile-action-btn {
        flex: 1;
        padding: 14px 0;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        border-radius: 6px;
        cursor: pointer;
        border: none;
        text-transform: uppercase;
        box-sizing: border-box;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .top-header .mobile-user-buttons .mobile-action-btn:active {
        transform: scale(0.98);
    }

    .top-header .mobile-user-buttons .login-btn {
        background: linear-gradient(90deg, #0f7414 0%, #419927 100%);
        color: #fff;
        box-shadow: 0 4px 15px rgba(15, 116, 20, 0.3);
    }

    .top-header .mobile-user-buttons .cashier-btn {
        background: linear-gradient(90deg, #3a3a3a 0%, #262626 100%);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .top-header .mobile-user-buttons .join-btn {
        background: linear-gradient(90deg, #FF7300 0%, #FF9900 100%);
        color: #fff;
        box-shadow: 0 4px 15px rgba(255, 115, 0, 0.3);
    }


    .top-header .logo img {
        max-width: 150px;
    }

    .footemain-top {
        grid-template-columns: 1fr;
    }

    .footemain-links {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }

    .footemain-title {
        font-size: 30px;
    }

    .footemain-login {
        padding-top: 40px;
    }

    .footemain-bottom {
        align-items: baseline;
    }

    .footemain-column li a {
        font-size: 18px;
        line-height: 20px;
    }
}

/* Join Now & Success Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #111210;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.modal-overlay.active .modal-container {
    transform: scale(1);
}
.modal-container-sm {
    max-width: 440px;
    padding: 32px;
    text-align: center;
    align-items: center;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f0f0e;
}
.modal-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: "Geist", sans-serif;
}
.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.modal-form {
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    font-family: "Geist", sans-serif;
}
.modal-form::-webkit-scrollbar {
    width: 6px;
}
.modal-form::-webkit-scrollbar-track {
    background: transparent;
}
.modal-form::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: "Geist", sans-serif;
}
.form-input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: "Geist", sans-serif;
}
.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.form-input:focus {
    outline: none;
    border-color: #6cc04a;
    box-shadow: 0 0 0 1px #6cc04a;
}
select.form-input {
    background-color: #111210;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}
.form-submit-btn {
    width: 100%;
    padding: 10px;
    height: 48px;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    background: linear-gradient(90deg, #0F7414 0%, #419927 100%);
    box-shadow: 0 4px 15px rgba(15, 116, 20, 0.3);
    transition: all 0.2s ease;
    font-family: "Geist", sans-serif;
}
.form-submit-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(15, 116, 20, 0.5);
}
.form-submit-btn:active {
    transform: scale(0.98);
}
.modal-alert {
    padding: 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    display: none;
    font-family: "Geist", sans-serif;
}
.modal-alert-error {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.2);
    color: #ef5350;
}
.modal-alert-success {
    background: rgba(108, 192, 74, 0.1);
    border: 1px solid rgba(108, 192, 74, 0.2);
    color: #6cc04a;
}
.success-checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #6cc04a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(108, 192, 74, 0.4);
    background: rgba(108, 192, 74, 0.1);
}
.success-checkmark-circle svg {
    width: 40px;
    height: 40px;
    stroke: #6cc04a;
}
.success-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-family: "Geist", sans-serif;
}
.success-subtext {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
    font-family: "Geist", sans-serif;
}
.success-subtext p {
    margin-bottom: 8px;
}
.success-subtext p.small-hint {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}