.container {
    height: auto;
    width: 100%;

    padding: 0;
}



/* HEADER */
header {
    position: fixed;
    z-index: 990;
    width: 100%;
    height: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 2rem 2rem 2rem 0;
}

.points-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 5rem 5rem 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: .6rem 1rem .6rem 1.5rem;
}

.points-container img {
    height: 2.2rem;
    width: auto;

    margin-left: .7rem;
}

#points {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
}



.logout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;

    border-radius: 100%;
    transition: .2s ease-out;
}

.logout img {
    height: 1.8rem;
    width: auto;
    opacity: .5;
}

.logout:hover {
    background: #f0f0f0;
}





/* SHOWCASE */
.showcase {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 5rem 3rem 0 3rem;
}

.showcase img {
    height: auto;
    width: 100%;
    z-index: 500;
}

.main-showcase-sky {
    position: absolute;
    top: -5rem;
    left: 0;
    width: 100%;
    height: 100%;
    background: #98DEFF;
    filter: blur(3rem);
    z-index: 1;
}

/* === Progress Container Layout === */
.main-showcase-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;

    background: linear-gradient(90deg, #6ecbff, #3da9fc);
    border-radius: 20px;
    /* border: 2px solid rgba(0, 0, 0, 0.2); */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    padding: 1.2rem 1.8rem;

    width: 100%;
    color: #fff;
    z-index: 400;
    overflow: hidden;
}

/* === Left: Tier Image === */
.main-showcase-progress-left {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-showcase-progress-left img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    filter: drop-shadow(0 0 1rem rgba(0, 0, 0, 0.2));
}

/* === Right: Tier name + progress === */
.main-showcase-progress-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-name {
    width: 100%;
    height: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-family: "Montserrat", sans-serif;
}

.tier-next {
    color: #000;
    font-size: .9rem;
    opacity: .4;
}

.main-showcase-progress-right h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-align: left;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #3da9fc, #1475cc);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.8s ease-in-out;
}

.tier-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.427);
    pointer-events: none;
}

/* === Below the main box === */
.tier-next-tier {
    font-size: 0.9em;
    color: #333;
    opacity: 0.85;
    text-align: center;
    font-weight: 500;
    margin-top: 2rem;
}




/* REFERRAL */
.referral {
    height: auto;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 2rem 2rem 4rem 2rem;
}


.referral button {
    width: 80%;

    border: 2px solid #cfcfcf;
    border-radius: 8px;

    color: #000;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;

    padding: 1rem 2rem;
    cursor: pointer;

    transition: 0.3s ease;
}

.referral button:hover {
    border: 2px solid #972EFF;
    background: #972EFF;
    color: #fff;
}




/* MAIN */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    padding: 0 2.5rem 2rem 2.5rem;

    box-shadow: 0 -.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 3rem 3rem 0 0;
}


.scan-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    background: #972EFF;
    border-radius: 100%;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .3);

    padding: 1rem;
}

.scan-btn img {
    height: 2.2rem;
    width: 2.2rem;
    border-radius: 50%;
    object-fit: cover;
}
.prev-stores {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    padding: 2rem 1rem 4rem 1rem;
    width: 100%;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
}

.prev-stores::-webkit-scrollbar {
    display: none;
}

.prev-stores-img {
    position: relative;
    flex: 0 0 auto;
    opacity: 0.5;
    transform: scale(0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    scroll-snap-align: center;
}

.prev-stores-img.active {
    opacity: 1;
    transform: scale(1);
}

.prev-stores-img img {
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.prev-stores-img span {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #DEC3F8;
    color: #000;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}





.store-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Spread left and right sides */
    align-items: flex-start;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    padding-bottom: 2rem;
    gap: 1rem;
    /* space between name/schedule and button */
}

.store-details-left {
    flex: 1 1 auto;
    min-width: 0;
}

#storeName {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#storeSchedule {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    padding-top: .8rem;
}

.store-details-right {
    flex-shrink: 0;
}

.store-details-right button {
    background: #972EFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.store-details-right button:hover {
    background: #7a23cc;
}


.weekly-schedule {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;

    padding: .5rem;
    border: 1px solid #c5c5c5;
    border-radius: .5rem;
}

.weekly-schedule div {
    padding: .3rem;
}

.weekly-schedule .today {
    font-weight: 700;
    color: #28a745;
}

.weekly-schedule .closed {
    color: #dc3545;
}

#toggleSchedule {
    text-decoration: underline;
    font-size: .8rem;
}




/* LEADERBOARD */
.leaderboard {
    height: auto;
    width: 100%;

    padding: 0 0 2rem;
}


.leaderboard button {
    width: 100%;

    border: 2px solid #cfcfcf;
    border-radius: 8px;

    color: #000;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;

    padding: 1rem 2rem;
    cursor: pointer;

    transition: 0.3s ease;
}

.leaderboard button:hover {
    border: 2px solid #972EFF;
    background: #972EFF;
    color: #fff;
}


/* ✅ Responsive: stack vertically on very small screens */
@media (max-width: 300px) {
    .store-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .store-details-right {
        width: 100%;
    }

    .store-details-right button {
        width: 100%;
        text-align: center;
    }

    #storeName {
        font-size: 1.6rem;
    }

    #storeSchedule {
        font-size: 1rem;
    }
}




.activity-container {
    padding: 0 2.2rem 2.2rem 2.2rem;
    height: auto;
    max-height: 400px;
    /* total height */
    display: flex;
    flex-direction: column;
}

.activity-head {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    flex-shrink: 0;
}

.activity-list {
    flex: 1;
    overflow-y: auto;
    transform: translateX(-.5rem);
}

.activity-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .3rem;

    padding: 1.5rem .5rem;
    background: #fff;
    border-bottom: 1px solid #e3e3e3;

    transition: .2s ease-out;
}

.activity-card:last-child {
    border-bottom: none;
}

.activity-card:hover {
    background: #f5f5f5;
    border-radius: .8rem;
    border-color: transparent;
}

.activity-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.8rem;
}

.activity-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.store-name {
    font-weight: 600;
    font-size: 1.17rem;
    color: #222;
    text-overflow: ellipsis;
    text-transform: capitalize;

    white-space: nowrap;
    overflow: hidden;

    max-width: 13rem;
    /* default clipped width */
    display: inline-block;
    transition: all 0.3s ease;
    /* smooth transition */
}

.activity-card:hover .store-name {
    white-space: normal;
    /* allow wrapping */
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    /* expand fully */
}

.orders {
    font-size: 0.9rem;
    color: #777;
}

.activity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
}

.activity-right button {
    padding: .6rem 1.5rem;

    background: #FFD900;
    border-radius: .5rem;
    box-shadow: 0 2px .5rem rgba(0, 0, 0, 0.15);

    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: #302900;

    transition: .2s ease-out;
}

.activity-right button:hover {
    filter: brightness(.85);
}

.points {
    text-align: right;
    font-weight: 600;
    font-size: 1.17rem;
    color: #dd42a2;
}

.time {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.2rem;
}

#loadMoreBtn {
    margin-top: 1rem;
    padding: 1rem;

    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 1rem;

    color: #1e1e1e;
    font-size: 1rem;
}

#loadMoreBtn:hover {
    background: #dddddd;
}







.custom-confirm {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1000;
}

.confirm-box {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    width: 60%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.confirm-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.confirm-actions {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
}

.confirm-actions button {
    height: auto;
    width: 100%;
    padding: 6px 12px;
    border: none;
    border-radius: .8rem;
    cursor: pointer;
}

.confirm-actions .btn-yes {
    background: #000;
    border: 1px solid #000;
    color: white;
}

.confirm-actions .btn-no {
    background: none;
    border: 1px solid #aaa;
    color: #4d4d4d;
}







.particle {
    position: fixed;
    /* fixed so it can move anywhere on screen */
    width: 18px;
    /* size of the particle */
    height: 18px;
    border-radius: 50%;
    /* makes it circular */
    background: #FFD700;
    /* gold gradient */
    box-sizing: border-box;
    opacity: 0;
    /* start invisible, JS will set opacity */
    will-change: transform, opacity;
    /* optimize animations */
    pointer-events: none;
    /* clicks pass through */
    z-index: 9999;
    /* above everything */
}


#points {
    transition: transform 0.2s;
}

#points.added {
    transform: scale(1.2);
}



















.receipt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;

    width: 70%;
    max-width: 25rem;
    background: #fff;
    border: 1px dashed #000;
    border-radius: 1rem;

    padding: 1.5rem;
    font-family: monospace;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== Header ===== */
.receipt-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.receipt-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.receipt-header p {
    font-size: 0.95rem;
    margin: 0.2rem 0;
}

/* ===== Body ===== */
.receipt-body {
    height: 20rem;
    overflow-y: auto;
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
    padding: 1rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;
}

/* ===== Items ===== */
.item,
.sub-item,
.sub-sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.sub-item {
    padding-left: 1.2rem;
    font-size: 0.95rem;
    color: #333;
}

.sub-sub-item {
    padding-left: 2.2rem;
    font-size: 0.9rem;
    color: #444;
}

/* ===== Checkboxes ===== */
.order-block label,
.sub-sub-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.order-block input[type="checkbox"],
.sub-sub-item input[type="checkbox"] {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid #666;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    opacity: 0;
    /* 👈 hidden */
    pointer-events: none;
    /* 👈 cannot be clicked */
}

/* ===== Blocks ===== */
.order-block {
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.order-block:hover {
    background: #f9f9f9;
}

.order-block.unavailable {
    opacity: 0.5;
    color: red;
    text-decoration: line-through;
}

.sub-sub-item.unavailable {
    opacity: 0.5;
    text-decoration: line-through;
}


/* ===== Footer ===== */
.receipt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}





.unavailable-prompt {
    height: auto;
    width: 70%;

    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);

    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

    padding: 1rem;

    color: #856404;
    max-width: 360px;
    z-index: 1000;
}

.unavailable-prompt .prompt-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.unavailable-prompt .prompt-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.unavailable-prompt .prompt-close {
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    color: #856404;
}





/* QR Code Shown */

#scanModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#scanBox {
    background: white;
    padding: 1.5rem;
    border-radius: 2rem;
    width: 90%;
    max-width: 400px;
    font-size: 1.1rem;
    text-align: center;
}

#reader {
    width: 100%;
    margin-top: 1.5rem;
}

#closeScan {
    margin-top: 1.1rem;
    padding: 1rem 2rem;
    background: #d50000;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
}