* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(to bottom, #7b2cbf, #48cae4);
    color: #fff;
}
.location-prompt {
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 16px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.city-select {
    padding: 0; 
    background: none; 
    border-radius: 0; 
    font-size: 20px;
    font-weight: bold;
    width: fit-content;
    cursor: pointer;
}
.filter {
    display: flex;
    gap: 8px;
}
.filter-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.filter-btn:active {
    background: rgba(255, 255, 255, 0.3);
}
.btn-text {
    color: #fff;
}
.custom-banner {
    padding: 0 8px;
    background: linear-gradient(135deg, #b77ef7, #6dd5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px 6px;
    border-radius: 8px;
    font-size: 14px;
    position: relative;
    height: 30px;
    overflow: hidden;
}
.banner-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.banner-text {
    position: absolute;
    white-space: nowrap;
    animation: scrollRightToLeft 15s linear infinite;
    display: flex;
    align-items: center;
    height: 100%;
}
@keyframes scrollRightToLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.banner-close {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    position: absolute;
    right: 8px;
    z-index: 1;
}
.banner-close:active {
    color: #ddd;
}
.filter-result {
    padding: 0 16px 8px;
    font-size: 14px;
    color: #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sort-indicator {
    color: #ffd700;
    font-size: 13px;
}
.merchant-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 10px;
}
.merchant-card {
    background: linear-gradient(to right, #5a189a, #3f37c9);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.merchant-card:active {
    transform: scale(1.02);
}
.merchant-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}
.merchant-info {
    flex: 1;
    min-width: 0;
}
.merchant-name {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #fff;
}
.merchant-rating {
    display: flex;
    margin-bottom: 4px;
}
.star {
    color: #FACC15;
    font-size: 14px;
}
.merchant-stats {
    font-size: 13px;
    color: #f0f0f0;
    margin-bottom: 2px;
}
.merchant-stats-with-distance {
    font-size: 13px;
    color: #f0f0f0;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.distance-in-stats {
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.cashback {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #48cae4;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background: linear-gradient(to right, #7b2cbf, #48cae4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
}
.nav-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    cursor: pointer;
}
.nav-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0px;
    object-fit: contain;
}
.nav-btn.active {
    color: #ffd700;
    border-top: 2px solid #ffd700;
}
.sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
    transition: right 0.3s ease;
}
.sidebar-btn {
    width: 56px !important;
    height: 40px !important;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(to right, #7b2cbf, #48cae4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.sidebar-icon {
    width: 59px !important;
    height: 32px !important;
    object-fit: contain;
    display: block;
}
.sidebar-btn:active {
    transform: scale(1.05);
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    display: none;
}
.modal-content {
    width: 85%;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    position: relative;
    color: #333;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
.modal-text {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    white-space: pre-line;
}
.close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.area-item, .sort-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    transition: background 0.2s ease;
}
.area-item:active, .sort-item:active {
    background: #e0e0e0;
}
.area-item.active, .sort-item.active {
    background: #7b2cbf;
    color: #fff;
}