/* 🔥 Chrome autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {

    -webkit-box-shadow: 0 0 0 1000px rgba(28, 28, 36, 1) inset !important;
    -webkit-text-fill-color: #fff !important;

    border: 1px solid rgba(255, 255, 255, 0.12) !important;

    transition: background-color 9999s ease-in-out 0s;
}



/* ===== GLOBAL ===== */
/* ===== CONTAINER ===== */
.marquee {
    width: 260px;
    overflow: hidden;
    border-radius: 999px;
    background: #1C1C24;
    padding: 6px 12px;

    display: flex;
    align-items: center;
    position: relative;

    box-shadow: inset 0 0 0.5px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ===== FADE EDGES ===== */
.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, #1C1C24, transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, #1C1C24, transparent);
}

/* ===== TRACK ===== */
.marquee-track {
    display: flex;
    width: max-content;

    animation: scroll 22s linear infinite;
    /* 🔥 smooth speed */
}

/* ===== TEXT ===== */
.marquee-track span {
    white-space: nowrap;
    padding-right: 50px;
    /* 🔥 important spacing */

    color: #B8B8C0;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* ===== PERFECT LOOP ===== */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== HOVER PAUSE ===== */
.marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
    .marquee {
        width: 200px;
    }
}

@media (max-width:768px) {
    .marquee {
        width: 140px;
        padding: 4px 10px;
    }

    .marquee-track span {
        font-size: 12px;
    }
}

.login-logo {
    width: 34px !important;
    height: auto;
}

@media (max-width:1024px) {
    .login-logo {
        width: 30px;
    }
}

@media (max-width:768px) {
    .login-logo {
        width: 28px;
    }
}

/* ===== TOPBAR ===== */

.topbar {
    width: 100%;
    padding: 5px 4px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.topbar-left {
    flex: 1;
}

.topbar-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.topbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ===== CENTER NAV ===== */

.pill-nav {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 40px;
    background: #1C1C24;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.pill-item {
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: #B8B8C0;
    font-size: 15px;
    transition: .25s ease;
}

.pill-item:hover {
    color: #FFF;
    background: rgba(123, 97, 255, .15);
}

.pill-item.active {
    background: linear-gradient(135deg, #9B6CFF, #7C4DFF);
    color: #FFF;
    box-shadow: 0 0 14px rgba(123, 97, 255, .5);
}

/* ===== MOBILE DOCK ===== */

.mobile-dock {
    display: none;
}

@media (max-width:768px) {

    .topbar-center {
        display: none;
    }

    .mobile-dock {
        position: fixed;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        padding: 9px;
        border-radius: 30px;
        background: #1C1C24;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
        z-index: 9990;
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #B8B8C0;
        text-decoration: none;
        padding: 10px 14px;
        border-radius: 22px;
        transition: .25s;
    }

    .mobile-dock .dock-item.active {
        background: linear-gradient(135deg, #9B6CFF, #7C4DFF);
        color: #FFF;
        box-shadow: 0 0 14px rgba(123, 97, 255, .6);
        transform: scale(1.05);
    }

    .dock-item small {
        font-size: 12px;
    }

}

/* ===== BUTTON ===== */

.pill-btn {
    border: none;
    padding: 8px 10px;
    border-radius: 30px;
    color: #B8B8C0;
    font-size: 14px;
    background: #1C1C24;
    cursor: pointer;
    transition: .3s;
}

.pill-btn:hover {
    color: #FFF;
    transform: translateY(-1px);
}

/* ===== OFFCANVAS WRAPPER ===== */

.oc-wrapper {
    position: relative;
    display: inline-block;
    z-index: auto;
}

.oc-wrapper.active {
    z-index: 10000;
}

.oc-btn {
    padding: 9px 11px;
    border-radius: 50%;
    border: none;
    background: #1C1C24;
    cursor: pointer;
    transition: .3s;
}

.oc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(124, 77, 255, .45);
}

/* ===== BLUR OVERLAY ===== */

.oc-blur {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 9998;
}

.oc-blur.show {
    opacity: 1;
    visibility: visible;
}

/* ===== DROPDOWN CARD ===== */

.oc-card {
    position: absolute;
    top: 120%;
    right: 0;
    width: 280px;
    padding: 16px;
    border-radius: 20px;

    background: linear-gradient(145deg, rgba(28, 28, 36, .75), rgba(18, 18, 26, .85));
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .55),
        inset 0 0 .5px rgba(255, 255, 255, .2);

    color: #fff;

    opacity: 0;
    transform: translateY(-8px) scale(.95);
    pointer-events: none;
    transition: all .35s cubic-bezier(.77, 0, .18, 1);
    z-index: 10001;
}

.oc-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ===== PROFILE ===== */

.oc-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.oc-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9B6CFF, #7C4DFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 0 12px rgba(123, 97, 255, .6);
}

.oc-email {
    font-size: 13px;
    color: #D6D6F0;
    word-break: break-word;
}

/* ===== LOCATION ===== */

.location-card {
    position: relative;
    overflow: hidden;

    /* ✅ SAME BG (no change) */
    background: linear-gradient(135deg, #5B4BCF, #3F2E9E);

    border-radius: 28px;
    width: 130px;

    display: flex;
    align-items: center;
    gap: 1px;
}

/* PARTICLES */
.card-points {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-points .point {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: floatUp 2.5s infinite ease-in-out;
}

/* Animation */
@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-60px);
        opacity: 0;
    }
}

/* Positions */
.card-points .point:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.card-points .point:nth-child(2) {
    left: 25%;
    animation-delay: 0.5s;
}

.card-points .point:nth-child(3) {
    left: 40%;
    animation-delay: 1s;
}

.card-points .point:nth-child(4) {
    left: 55%;
    animation-delay: 0.2s;
}

.card-points .point:nth-child(5) {
    left: 70%;
    animation-delay: 1.2s;
}

.card-points .point:nth-child(6) {
    left: 85%;
    animation-delay: 0.7s;
}

.loc-icon img {
    width: 24px;
    height: 24px;
}

.loc-title {
    margin-left: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #eaeaff;
}

.loc-subtitle {
    margin-left: 10px;
    font-size: 12px;
    color: #bdbde6;
}

/* ===== BUTTONS ===== */

.oc-logout,
.oc-login {
    width: 100%;
    padding: 10px;
    border-radius: 18px;
    border: none;
    margin-top: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.oc-logout {
    background: linear-gradient(135deg, #FF5F6D, #FF3B30);
    color: #fff;
}

.oc-login {
    background: linear-gradient(135deg, #9B6CFF, #7C4DFF);
    color: #fff;
}

/* ===== MOBILE BOTTOM SHEET ===== */

@media (max-width:768px) {

    .oc-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: -100%;
        top: auto;
        width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 20px;

        transition: bottom .35s ease;
    }

    .oc-card.show {
        bottom: 0;
    }

}

/* ===== PAGE TRANSITION ===== */

body.page-transition {
    opacity: .9;
    transition: opacity .25s ease;
}

/* ===== LOCATION BOX (MATCH BOOKINGS) ===== */

.oc-location-box {
    padding: 3px 5px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
    transition: .25s;
}

.oc-location-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* left content */
.loc-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* icon */
.loc-left img {
    width: 28px;
    height: 28px;
}

/* text */
.loc-title {
    font-size: 14px;
    font-weight: 600;
    color: #eaeaff;
}

.loc-subtitle {
    font-size: 11px;
    color: #bdbde6;
}

/* arrow reuse */
.arrow {
    font-size: 18px;
    color: #9B6CFF;
}


/* ===== BOOKING BOX ===== */
.oc-bookings-box {
    margin-top: 5px;
    padding: 3px 5px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
    transition: .25s;
}

.oc-bookings-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* left side */
.booking-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* icon */
.booking-left img {
    width: 30px;
    height: 30px;
    padding: 6px;

    background: rgba(123, 97, 255, 0.15);
    border-radius: 10px;
}

/* text */
.booking-title {
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #eaeaff;
}

.booking-subtitle {
    margin-left: 10px;
    font-size: 11px;
    color: #bdbde6;
}

/* arrow */
.arrow {
    font-size: 18px;
    color: #9B6CFF;
}


/* ===== PROFILE CLICK ===== */
.oc-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 14px;
    transition: 0.2s ease;
    background: rgba(255, 255, 255, 0.06);
}

.oc-profile:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.09);
}

.oc-profile:active {
    transform: scale(0.97);
}

.oc-greet {
    font-size: 11px;
    color: rgba(245, 245, 245, 0.6);
    margin: 0;
}

/* ===== PROFILE POPUP (SMOOTH) ===== */
/* ===== PROFILE POPUP (UNIVERSAL OFFCANVAS) ===== */
.profile-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    justify-content: flex-end;

    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        backdrop-filter 0.3s ease;
}

.profile-popup.show {
    opacity: 1;
    pointer-events: auto;

    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

/* ===== PANEL ===== */
.profile-box {
    width: 100%;
    max-width: 300px;
    height: 100%;

    background: linear-gradient(145deg, #1c1c24, #12121a);
    border-left: 1px solid rgba(255, 255, 255, 0.06);

    padding: 16px;
    color: white;

    transform: translateX(110%) scale(0.98);
    /* 🔥 ADD scale */
    opacity: 0.8;
    /* 🔥 ADD opacity */

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1),
        opacity 0.3s ease;
    /* 🔥 ADD smooth fade */

    display: flex;
    flex-direction: column;
}

.profile-popup.show .profile-box {
    transform: translateX(0) scale(1);
    /* 🔥 smooth entry */
    opacity: 1;
}

/* ===== TOP BAR ===== */
.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.close-icon {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
}

/* ===== AVATAR ===== */
.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;

    background: linear-gradient(135deg, #9B6CFF, #7C4DFF);

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 12px 0;
    /* 🔥 LEFT ALIGN */
    font-size: 18px;
}

/* ===== FORM ===== */
.field {
    margin-bottom: 10px;
}

.field label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.field input {
    width: 100%;
    padding: 7px 9px;
    margin-top: 4px;

    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);

    color: white;
    font-size: 12px;
    transition: 0.2s;
}

.field input:focus {
    outline: none;
    border-color: #9B6CFF;
}

/* ===== BUTTONS ===== */
.profile-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.profile-actions button {
    flex: 1;
    padding: 9px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s ease;
}

/* edit */
#editBtn {
    background: #2a2a35;
    color: #eaeaff;
}

#editBtn:hover {
    background: #353545;
}

/* save */
#saveBtn {
    display: none;
    background: linear-gradient(135deg, #9B6CFF, #7C4DFF);
    color: #eaeaff;
}

#saveBtn:hover {
    opacity: 0.9;
}


/* ===== FINAL TOAST FIX (POSITION + WIDTH + SMOOTH) ===== */

.toast,
.top-toast,
.custom-toast {
    position: fixed !important;

    top: 10px !important;

    left: 50%;
    transform: translateX(-50%) translateY(-30px) scale(0.96);

    width: fit-content;
    max-width: 380px;
    /* desktop limit */

    padding: 10px 14px;
    border-radius: 14px;

    opacity: 0;
    pointer-events: none;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1),
        opacity 0.45s ease;

    z-index: 99999;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

/* SHOW */
.toast.show,
.top-toast.show,
.custom-toast.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

/* ===== MOBILE FIX ===== */
@media (max-width:768px) {

    .toast,
    .top-toast,
    .custom-toast {

        top: 10px !important;

        width: auto !important;
        max-width: 85% !important;

        padding: 10px 12px;
    }
}
