/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B46C1;
    --primary-dark: #553C9A;
    --secondary-color: #0066cc;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* Top Links Bar */
.top-links-bar {
    background-color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    box-shadow: none;
}

.top-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.top-links a:hover {
    color: var(--primary-color);
}

/* 头部导航 */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
    position: relative;
}

@media (max-width: 992px) {
    .header-content {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 10px;
        padding: 12px 0;
        justify-content: space-between;
    }
    
    /* Hide auth buttons in mobile - they are in the side menu */
    .header-content .auth-buttons,
    .header-content .user-account {
        display: none !important;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    position: relative;
}


/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 6px;
}

.categories-btn:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}


.categories-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    min-width: 280px;
    padding: 0;
    margin-top: 0;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.categories-dropdown:hover .categories-dropdown-menu,
.categories-dropdown-menu:hover {
    display: block;
}

.categories-dropdown:hover .categories-dropdown-menu {
    display: block;
}

.categories-intro-links {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.intro-link:hover {
    color: var(--primary-dark);
}

.intro-link svg {
    flex-shrink: 0;
}

.categories-list {
    padding: 12px 0;
    max-height: 500px;
    overflow-y: auto;
}

.categories-dropdown-menu .categories-list a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s;
    border: none;
}

.categories-dropdown-menu .categories-list a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    min-width: 200px;
}

@media (max-width: 768px) {
    .header-search {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .header-search {
        margin: 0 15px;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .header-search {
        margin: 0 10px;
        min-width: 120px;
    }
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: var(--white);
    box-shadow: none;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: var(--white);
    font-size: 15px;
    outline: none;
    color: var(--text-dark);
}

.search-form input::placeholder {
    color: #757575;
    font-size: 15px;
}

.search-form input:focus {
    outline: none;
}

.search-btn {
    background-color: #6F2CF3;
    color: var(--white);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
}

.search-btn:hover {
    background-color: #5a1fd9;
}

/* Rewards Link */
.rewards-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s;
    border-radius: 6px;
}

.rewards-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.rewards-link svg {
    flex-shrink: 0;
}

/* Auth Buttons - Sign In / Join Now */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signin {
    color: #6B46C1;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    transition: color 0.3s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-signin:hover {
    color: #553C9A;
    text-decoration: underline;
}

.btn-join {
    background-color: #6B46C1;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-join:hover {
    background-color: #553C9A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

/* User Account */
.user-account {
    position: relative;
    display: flex;
    align-items: center;
}

.user-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.user-account-btn:hover {
    background-color: var(--bg-light);
}

.user-account-btn svg {
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: var(--bg-light);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

.user-link:hover {
    background-color: var(--bg-light);
}

.user-link:active {
    background-color: #e9ecef;
}

.user-link svg:first-child {
    flex-shrink: 0;
    opacity: 0.8;
}

.user-name {
    font-weight: 500;
    white-space: nowrap;
    font-size: 15px;
}

.user-balance {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    font-size: 15px;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    min-width: 240px;
    padding: 0;
    margin-top: 10px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-account:hover .user-dropdown-menu {
    display: block;
}

.user-dropdown-header {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-signin {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    display: block;
}

.dropdown-signin:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.dropdown-join {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: block;
}

.dropdown-join:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
}

.user-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.user-dropdown-menu .dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.logout-link {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
}

/* Hero Carousel */
.hero-carousel {
    padding: 60px 0 30px 0;
    background-color: transparent;
    width: 100%;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
}

.hero-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0;
}

.hero-carousel-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 21 / 9;
    min-height: 240px;
    max-height: 400px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF9C4 100%);
}

.hero-slide {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF9C4 100%);
    border-radius: 16px;
    padding: 3% 4%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 992px) {
    .hero-slide {
        padding: 3% 3.5%;
    }
    
    .hero-carousel-slides {
        aspect-ratio: 21 / 9;
        min-height: 220px;
        max-height: 340px;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        padding: 30px 20px;
    }
    
    .hero-slide-content {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        padding: 20px 15px;
    }
    
    .hero-slide-content {
        gap: 15px;
    }
}

.hero-slide.active {
    display: block;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-slide-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4%;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.hero-slide-text {
    z-index: 2;
}

.hero-slide-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-slide-title-large {
    font-size: 42px;
    display: block;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .hero-slide-title {
        font-size: 32px;
    }
    
    .hero-slide-title-large {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-slide-title {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .hero-slide-title-large {
        font-size: 26px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .hero-slide-title {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .hero-slide-title-large {
        font-size: 22px;
        margin-top: 4px;
    }
}

.hero-slide-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-slide-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-slide-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
}

.btn-hero-cta {
    display: inline-block;
    background-color: #2c3e50;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .btn-hero-cta {
        padding: 10px 24px;
        font-size: 14px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .btn-hero-cta {
        padding: 8px 20px;
        font-size: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }
}

.btn-hero-cta:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.hero-slide-note {
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero-slide-note {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero-slide-note {
        font-size: 10px;
    }
}

.hero-slide-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-circle {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: visible;
}

.hero-decorative-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-pink {
    width: 120px;
    height: 120px;
    background-color: #FF6B9D;
    top: -20px;
    right: 20px;
    opacity: 0.8;
}

.shape-yellow {
    width: 100px;
    height: 100px;
    background-color: #FFD93D;
    bottom: 40px;
    left: 10px;
    opacity: 0.9;
}

.shape-red {
    width: 140px;
    height: 140px;
    background-color: #FF4757;
    bottom: -30px;
    right: -10px;
    opacity: 0.7;
}

.shape-green {
    width: 110px;
    height: 110px;
    background-color: #8B5CF6;
    top: 10px;
    left: -10px;
    opacity: 0.8;
}

.shape-blue {
    width: 130px;
    height: 130px;
    background-color: #3742FA;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    opacity: 0.7;
}

.shape-orange {
    width: 100px;
    height: 100px;
    background-color: #FFA502;
    bottom: 20px;
    left: 30px;
    opacity: 0.9;
}

.shape-purple {
    width: 120px;
    height: 120px;
    background-color: #6B46C1;
    top: -10px;
    left: 20px;
    opacity: 0.8;
}

.shape-teal {
    width: 110px;
    height: 110px;
    background-color: #14B8A6;
    bottom: 30px;
    right: 10px;
    opacity: 0.7;
}

.hero-people-image {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 10px auto;
}

.people-placeholder {
    font-size: 120px;
    opacity: 0.9;
}

.carousel-arrow {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 10;
    color: #6B46C1;
    flex-shrink: 0;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-arrow:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 5;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-pagination {
        bottom: 12px;
        left: 12px;
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
    
    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-pagination {
        bottom: 10px;
        left: 10px;
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Side Promo Card */
.hero-side-card {
    position: sticky;
    top: 100px;
}

.side-card-content {
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    border-radius: 16px;
    padding: 40px 30px;
    color: var(--white);
    text-align: center;
}

.side-card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.side-card-content h4 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.side-card-cashback {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-side-card {
    display: inline-block;
    background-color: #8B5CF6;
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-side-card:hover {
    background-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* 区域标题 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

/* Popular & Extra Cash Back Stores Section */
.stores-grid-section {
    padding: 30px 0 60px 0;
    background-color: var(--white);
}

.stores-section {
    margin-bottom: 60px;
}

.stores-section:last-child {
    margin-bottom: 0;
}

.stores-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stores-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 768px) {
    .stores-section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stores-section-title {
        font-size: 20px;
    }
}

.see-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.see-all-link:hover {
    color: var(--primary-dark);
}

/* Popular Stores Row */
.stores-row-wrapper {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.stores-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 100%;
    overflow: visible;
    margin: 0;
    padding: 0;
}

.stores-row::-webkit-scrollbar {
    display: none;
}

.stores-scroll-arrow {
    display: none;
}

/* Responsive grid layout - adapts number of columns based on screen width */
@media (max-width: 1400px) {
    .stores-row {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .store-card-bg-popular {
        aspect-ratio: 2.25 / 1;
    }
}

@media (max-width: 1200px) {
    .stores-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .store-card-bg-popular {
        aspect-ratio: 2.25 / 1;
    }
}

@media (max-width: 992px) {
    .stores-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .store-card-bg-popular {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-popular {
        font-size: 16px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 768px) {
    .stores-row-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .stores-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0;
        padding: 0;
    }
    
    .store-card-popular {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .store-card-bg-popular {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-popular {
        font-size: 14px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
    
    .stores-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0;
        padding: 0;
    }
    
    .store-card-compact {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-compact {
        font-size: 14px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .stores-row-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .stores-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0;
        padding: 0;
    }
    
    .store-card-popular {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .store-card-bg-popular {
        aspect-ratio: 2.25 / 1;
        padding: 5px 8px;
    }
    
    .store-logo-popular {
        font-size: 12px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
    
    .stores-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0;
        padding: 0;
    }
    
    .store-card-compact {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 5px 8px;
    }
    
    .store-logo-compact {
        font-size: 12px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
}

.stores-scroll-arrow:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.stores-scroll-left {
    left: 0;
}

.stores-scroll-right {
    right: 0;
}

/* Extra Cash Back Stores Grid */
.stores-grid-large {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    width: 100%;
}

@media (max-width: 1400px) {
    .stores-grid-large {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
    }
}

@media (max-width: 1200px) {
    .stores-grid-large {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
    }
}

@media (max-width: 992px) {
    .stores-grid-large {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-compact {
        font-size: 16px;
        -webkit-line-clamp: 3;
    }
}

/* Popular Store Card - Long Strip Card with Text Below */
.store-card-popular {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
}

.store-card-popular:hover {
    transform: translateY(-3px);
}

.store-card-bg-popular {
    width: 100%;
    aspect-ratio: 2.25 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 0 12px 0;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    overflow: hidden;
}

.store-logo-popular {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    width: 100%;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    box-sizing: border-box;
}

.store-cashback-info-popular {
    text-align: left;
    width: 100%;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.cashback-current-popular {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 4px;
}

.cashback-was-popular {
    display: inline;
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
}

/* Compact Store Card - Long Strip Shape */
.store-card-compact {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    padding: 0;
}


.store-card-compact:hover {
    transform: translateY(-3px);
}

.store-card-bg {
    width: 100%;
    aspect-ratio: 2.25 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    flex-shrink: 0;
    border-radius: 12px;
    margin: 0 0 12px 0;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.store-logo-compact {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    width: 100%;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-compact {
        font-size: 16px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 768px) {
    .stores-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-compact {
        font-size: 14px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .stores-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 5px 8px;
    }
    
    .store-logo-compact {
        font-size: 12px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
}

.store-logo-compact span {
    font-weight: 400;
    opacity: 0.9;
}

.store-cashback-info {
    text-align: left;
    width: 100%;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}


.cashback-current {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 4px;
}

.cashback-was {
    display: inline;
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .cashback-current-popular,
    .cashback-current {
        font-size: 13px;
    }
    
    .cashback-was-popular,
    .cashback-was {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .cashback-current-popular,
    .cashback-current {
        font-size: 12px;
    }
    
    .cashback-was-popular,
    .cashback-was {
        font-size: 10px;
    }
}

/* Deals and coupons of the week */
.deals-section {
    margin-bottom: 15px;
    width: 100%;
}

.deals-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.deals-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
    text-align: left;
}

.deals-see-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.deals-see-all:hover {
    color: var(--primary-dark);
}

.deals-row-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow: visible;
}

.deals-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 0;
    width: 100%;
}

.deals-row::-webkit-scrollbar {
    display: none;
}

.deal-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    align-items: flex-start;
}

.deal-card:hover {
    transform: none;
    box-shadow: none;
}

.deal-logo-card {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: 0;
}

.deal-logo {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    padding: 0 16px;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
}

.deal-action-btn {
    position: absolute;
    bottom: -12px;
    right: 12px;
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deal-action-btn:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.deal-info {
    padding: 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.deal-cashback {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.deal-description {
    font-size: 14px;
    color: #2C2C2C;
    font-weight: 600;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
    width: 100%;
}

.deals-scroll-arrow {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid rgba(107, 70, 193, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    flex-shrink: 0;
    z-index: 10;
    touch-action: manipulation;
    top: 0;
    right: 0;
    transform: translateX(50%);
}

.deals-scroll-arrow:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.deals-scroll-left {
    left: 0;
    display: none;
}


@media (max-width: 992px) {
    .deals-section-title {
        font-size: 28px;
    }
    
    .deals-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .deals-section {
        margin-bottom: 10px;
    }
    
    .deals-section-header {
        margin-bottom: 20px;
    }
    
    .deals-section-title {
        font-size: 24px;
    }
    
    .deals-row-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .deals-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        overflow: visible;
    }
    
    .deal-card {
        width: 100%;
    }
    
    .deals-scroll-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .deals-section-title {
        font-size: 20px;
    }
    
    .deals-row-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .deals-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow: visible;
    }
    
    .deal-card {
        width: 100%;
    }
    
    .deals-scroll-arrow {
        display: none;
    }
}

/* Hot deals and coupons */
.hot-deals-section {
    padding: 15px 0 60px 0;
    background-color: var(--white);
}

.hot-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hot-deals-title {
    font-size: 32px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.hot-deals-see-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.hot-deals-see-all:hover {
    color: var(--primary-dark);
}

.hot-deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hot-deal-card {
    background-color: var(--white);
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hot-deal-card:hover {
    background-color: var(--white);
    border: 1px solid #E5E5E5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: none;
}

.hot-deal-logo-area {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 8px;
}

.hot-deal-logo {
    color: #2C2C2C;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    text-transform: uppercase;
}

.hot-deal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-width: 0;
}

.hot-deal-headline {
    font-size: 15px;
    font-weight: 600;
    color: #2C2C2C;
    line-height: 1.4;
    text-align: left;
}

.hot-deal-cashback {
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-align: left;
}

.hot-deal-current {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.hot-deal-was {
    font-size: 13px;
    color: #999999;
    font-weight: 400;
}

.hot-deal-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: none;
    background-color: #6B46C1;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    opacity: 1;
}

.hot-deal-btn:hover {
    background-color: #553C9A;
    opacity: 1;
}

@media (max-width: 992px) {
    .hot-deals-title {
        font-size: 28px;
    }
    
    .hot-deals-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hot-deals-section {
        padding: 10px 0 40px 0;
    }
    
    .hot-deals-title {
        font-size: 24px;
    }
    
    .hot-deals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hot-deal-card {
        padding: 15px;
    }
    
    .hot-deal-logo-area {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .hot-deals-title {
        font-size: 20px;
    }
    
    .deals-section-title {
        font-size: 20px;
    }
    
    .hot-deal-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hot-deal-logo-area {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
    
    .hot-deal-btn {
        position: static;
        transform: none;
        align-self: flex-end;
        margin-top: 8px;
    }
}

/* Top Price Drops */
.price-drops-section {
    padding: 60px 0;
    background-color: var(--white);
}

.price-drops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.price-drops-title {
    font-size: 32px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.price-drops-see-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.price-drops-see-all:hover {
    color: var(--primary-dark);
}

.price-drops-description {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

.price-drops-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 12px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #E5E5E5;
    color: #666666;
}

.filter-btn.active {
    background-color: #2C2C2C;
    color: var(--white);
}

.filter-btn:hover:not(.active) {
    background-color: #D0D0D0;
}

.category-dropdown-wrapper {
    position: relative;
}

.category-dropdown {
    padding: 10px 40px 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background-color: #E5E5E5;
    color: #666666;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s;
}

.category-dropdown:hover {
    background-color: #D0D0D0;
}

.price-drops-products-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.price-drops-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    overflow: visible;
    padding: 0;
    width: 100%;
}

.product-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-shadow: none;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
    margin: 0;
    overflow: visible;
}

.price-drops-products .product-card:nth-child(n+5) {
    display: none;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.deal-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 10px;
    border-radius: 4px 0 4px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    z-index: 5;
}

.deal-badge.best-price {
    background-color: var(--primary-color);
}

.deal-badge.good-deal {
    background-color: var(--primary-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 14px;
    color: #2C2C2C;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 4px;
}

.product-savings {
    font-size: 13px;
    color: #999999;
    margin-bottom: 12px;
}

.product-btn {
    width: 100%;
    padding: 15px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.product-btn:hover {
    background-color: var(--primary-dark);
}

.products-scroll-arrow {
    display: none;
}

@media (max-width: 992px) {
    .price-drops-title {
        font-size: 28px;
    }
    
    .price-drops-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-drops-products-wrapper {
        padding: 0;
    }
    
    .price-drops-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .price-drops-products .product-card:nth-child(n+4) {
        display: none;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-image {
        min-height: 180px;
        aspect-ratio: 1 / 1;
    }
    
    .price-drops-products .product-card:nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 768px) {
    .price-drops-section {
        padding: 40px 0;
    }
    
    .price-drops-title {
        font-size: 24px;
    }
    
    .price-drops-description {
        font-size: 14px;
    }
    
    .price-drops-products-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .price-drops-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-image {
        min-height: 160px;
        aspect-ratio: 1 / 1;
    }
    
    .price-drops-products .product-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .price-drops-title {
        font-size: 20px;
    }
    
    .price-drops-products-wrapper {
        padding: 0;
        margin: 0;
    }
    
    .price-drops-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-image {
        min-height: 140px;
        aspect-ratio: 1 / 1;
    }
    
    .price-drops-products .product-card:nth-child(n+5) {
        display: none;
    }
}

/* 热门商店 */
.featured-stores {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.store-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.store-logo {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.store-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cashback-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.cashback-badge.boosted {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.store-info .btn {
    width: 100%;
    margin-top: 15px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* 工作原理 */
.how-it-works {
    padding: 80px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

@media (max-width: 992px) {
    .steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 统计数据 */
.stats {
    padding: 80px 0;
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    .stats {
        padding: 60px 0;
    }
}

.stats-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 16px;
}

/* 分类展示 */
.categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.category-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* 浏览器扩展推广 */
.extension-promo {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.extension-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .extension-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.extension-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.extension-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.extension-buttons {
    display: flex;
    gap: 20px;
}

.extension-preview {
    background-color: var(--white);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text-light);
}

/* 最新优惠券 */
.latest-coupons {
    padding: 80px 0;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .coupons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.coupon-card {
    background-color: var(--white);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.coupon-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.coupon-store {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coupon-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.coupon-code {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.coupon-actions {
    display: flex;
    gap: 10px;
}

.coupon-actions .btn {
    flex: 1;
}

/* 页脚 */
.footer {
    background-color: #262626;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.footer-bottom-nav {
    background-color: #262626;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    border-top: none;
    margin-top: 0;
}

.footer-bottom-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.3s;
    white-space: nowrap;
    opacity: 1;
    line-height: 1.5;
}

.footer-bottom-nav a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-bottom-nav {
        gap: 20px;
        padding: 14px 0;
    }
    
    .footer-bottom-nav a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-bottom-nav {
        gap: 16px;
        padding: 12px 0;
        flex-wrap: wrap;
    }
    
    .footer-bottom-nav a {
        font-size: 12px;
    }
}

/* 分类页面样式 */
.category-page {
    padding: 60px 0;
}

.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card-large {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card-large:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.category-card-large h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card-large p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 15px;
}

.category-arrow {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

/* 登录注册页面 */
.auth-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-dark);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.auth-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    display: block;
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    background-color: var(--white);
    padding: 0 15px;
    position: relative;
    color: var(--text-light);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 现代化登录注册页面样式 */
.auth-page-section {
    padding: 60px 0 80px;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.auth-page-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-page-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.auth-page-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
}

.auth-page-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-page-subtitle a:hover {
    text-decoration: underline;
}

.auth-form-modern {
    margin-bottom: 24px;
}

.form-group-modern {
    margin-bottom: 20px;
}

.form-group-modern label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group-modern input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group-modern input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 98, 0.1);
}

.form-group-modern input::placeholder {
    color: #999;
}

.form-options-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-modern {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.checkbox-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.checkbox-modern a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-modern a:hover {
    text-decoration: underline;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-block-modern {
    width: 100%;
    display: block;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 0;
}

.auth-divider-modern {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.auth-divider-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider-modern span {
    background-color: var(--white);
    padding: 0 16px;
    position: relative;
    color: var(--text-light);
    font-size: 14px;
}

.social-login-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-google {
    border-color: #dadce0;
}

.btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 1px 3px rgba(66, 133, 244, 0.2);
}

.auth-page-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-page-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-page-footer a:hover {
    text-decoration: underline;
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.active {
    display: flex;
    opacity: 1;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.auth-modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.auth-form-container {
    width: 100%;
}

.auth-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.auth-modal-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
}

.auth-modal-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-modal-subtitle a:hover {
    text-decoration: underline;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--text-dark);
}

.password-toggle svg {
    display: block;
}

.form-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.form-group-modern input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.auth-modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.auth-modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-modal-footer a:hover {
    text-decoration: underline;
}

.auth-modal-disclaimer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-links-bar {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
        justify-content: flex-start;
        margin-right: auto;
    }
    
    .mobile-menu-toggle {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        margin: 0;
        max-width: 100%;
        margin-top: 0;
    }

    .categories-dropdown,
    .rewards-link,
    .auth-buttons,
    .user-account {
        display: none;
    }

    .hero-carousel {
        padding: 40px 0 20px 0;
    }
    
    .hero-carousel-container {
        gap: 15px;
    }
    
    .hero-carousel-slides {
        border-radius: 12px;
    }
    
    .hero-slide {
        border-radius: 12px;
    }

    .hero-carousel-slides {
        aspect-ratio: 16 / 9;
        min-height: 180px;
        max-height: 280px;
    }

    .hero-slide {
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .hero-slide-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stores-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stores-row {
        gap: 10px;
    }
    
    .store-card-bg {
        width: 100%;
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-compact {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }
    
    .store-cashback-info {
        padding: 0 10px;
    }

    .stores-section-title {
        font-size: 24px;
    }

    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }

    .store-logo-compact {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .store-cashback-info {
        padding: 0;
    }

    .cashback-current {
        font-size: 13px;
    }

    .cashback-was {
        font-size: 11px;
    }

    .stores-row-wrapper {
        padding: 0;
    }
    
    .stores-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .store-card-popular {
        width: 100%;
    }
    
    .store-card-bg-popular {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-popular {
        font-size: 14px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
    
    .stores-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .store-card-bg {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-compact {
        font-size: 14px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }
    
    .stores-scroll-arrow {
        display: none;
    }
    
    .stores-scroll-arrow {
        width: 36px;
        height: 36px;
    }
    
    .store-card-bg-popular {
        aspect-ratio: 2.25 / 1;
        padding: 6px 10px;
    }
    
    .store-logo-popular {
        font-size: 16px;
        -webkit-line-clamp: 3;
    }
    
    .cashback-current-popular {
        font-size: 13px;
    }
    
    .cashback-was-popular {
        font-size: 11px;
    }

    .hero-slide-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .hero-slide-title-large {
        font-size: 24px;
        margin-top: 4px;
    }
    
    .hero-slide-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .btn-hero-cta {
        padding: 9px 22px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .hero-slide-note {
        font-size: 10px;
    }

    .hero-image-circle {
        max-width: 150px;
    }

    .hero-people-image {
        width: 140px;
        height: 140px;
    }

    .people-placeholder {
        font-size: 60px;
    }
    
    .shape-pink,
    .shape-yellow,
    .shape-red,
    .shape-green,
    .shape-blue,
    .shape-orange,
    .shape-purple,
    .shape-teal {
        transform: scale(0.7);
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-pagination {
        bottom: 12px;
        left: 12px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .hero-side-card {
        position: relative;
        top: 0;
        margin-top: 30px;
    }

    .extension-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .stores-grid,
    .coupons-grid {
        grid-template-columns: 1fr;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .auth-page-section {
        padding: 40px 0 60px;
    }

    .auth-page-container {
        padding: 0 16px;
    }

    .auth-page-content {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .auth-page-title {
        font-size: 28px;
    }

    .auth-page-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .form-group-modern {
        margin-bottom: 18px;
    }

    .form-group-modern input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-options-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
    }

    .forgot-password-link {
        align-self: flex-end;
    }

    .btn-block-modern {
        padding: 14px;
        font-size: 15px;
    }

    .auth-divider-modern {
        margin: 24px 0;
    }

    .btn-social {
        padding: 12px 14px;
        font-size: 14px;
    }

    .auth-page-footer {
        margin-top: 24px;
        font-size: 13px;
    }

    .auth-modal-content {
        padding: 32px 24px;
        border-radius: 12px;
        max-width: 95%;
        max-height: 95vh;
    }

    .auth-modal-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .auth-modal-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .form-group-modern {
        margin-bottom: 18px;
    }

    .form-group-modern input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-block-modern {
        padding: 14px;
        font-size: 15px;
    }

    .auth-divider-modern {
        margin: 24px 0;
    }

    .btn-social {
        padding: 12px 14px;
        font-size: 14px;
    }

    .auth-modal-footer {
        margin-top: 20px;
        font-size: 13px;
    }

    .auth-modal-disclaimer {
        margin-top: 12px;
        font-size: 11px;
    }

    .coupon-stats {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        flex: 0 0 auto;
        justify-content: flex-start;
    }
    
    .categories-dropdown,
    .rewards-link,
    .auth-buttons,
    .user-account {
        display: none;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        margin-top: 0;
    }
}

/* Mobile Side Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-side-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-promo {
    padding: 20px;
    text-align: center;
    background-color: #F8F9FA;
}

.mobile-menu-promo p {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.mobile-menu-auth {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.mobile-btn-signin {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.mobile-btn-signin:hover {
    background-color: #F8F9FA;
}

.mobile-btn-join {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.mobile-btn-join:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-user {
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 16px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.mobile-user-info svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.mobile-user-info span {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
}

.mobile-btn-logout {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.mobile-btn-logout:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

.mobile-menu-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.mobile-nav-item:hover {
    background-color: #F8F9FA;
}

.mobile-nav-item svg {
    flex-shrink: 0;
    color: var(--text-dark);
}

.mobile-menu-footer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-footer a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.3s;
}

.mobile-menu-footer a:hover {
    color: var(--primary-color);
}

/* Category Page Header */
.category-page-header {
    padding: 40px 0 30px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.category-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

@media (max-width: 768px) {
    .category-page-header {
        padding: 30px 0 20px 0;
    }
    
    .category-page-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .category-page-title {
        font-size: 20px;
    }
}

/* All Stores Page Styles */
.all-stores-header-section {
    padding: 30px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.all-stores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-stores-title {
    font-size: 32px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.all-stores-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.action-btn svg {
    flex-shrink: 0;
}

/* Category Filters Section */
.category-filters-section {
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.category-filters-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.category-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 0;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filter-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.category-scroll-arrow {
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid rgba(107, 70, 193, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    flex-shrink: 0;
    z-index: 10;
}

.category-scroll-arrow:hover {
    background-color: #F5F5F5;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.2);
}

/* All Stores Grid Section */
.all-stores-grid-section {
    padding: 40px 0 60px 0;
    background-color: var(--white);
}

.all-stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.all-store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    padding: 24px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
    background-color: var(--white);
}

.all-store-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
    transform: translateY(-2px);
}

.all-store-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.store-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.all-store-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.all-store-cashback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.all-cashback-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.all-cashback-was {
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
}

@media (max-width: 1200px) {
    .all-stores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .all-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .all-stores-header-section {
        padding: 20px 0;
    }
    
    .all-stores-title {
        font-size: 24px;
    }
    
    .all-stores-actions {
        gap: 12px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .category-filters-section {
        padding: 15px 0;
    }
    
    .category-filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .all-stores-grid-section {
        padding: 30px 0 40px 0;
    }
    
    .all-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .all-store-card {
        padding: 20px 12px;
    }
    
    .all-store-logo {
        height: 100px;
        margin-bottom: 12px;
    }
    
    .store-logo-placeholder {
        font-size: 16px;
    }
    
    .all-store-name {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .all-cashback-current {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .all-stores-title {
        font-size: 20px;
    }
    
    .all-stores-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .all-store-logo {
        height: 80px;
    }
    
    .store-logo-placeholder {
        font-size: 14px;
    }
}
