/* Global Style Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}


/* Header Styles */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    min-height: 60px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo-text {
    font-size: 1.3rem;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.home-btn,
.search-btn,
.menu-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.home-btn:hover,
.search-btn:hover,
.menu-btn:hover {
    background: #f5f5f5;
}

.home-btn:active {
    transform: scale(0.95);
}

.home-icon,
.search-icon,
.menu-icon {
    color: #333;
    font-size: 1.1rem;
}

.home-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}


/* Search Container */

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container.active {
    transform: translateY(0);
}

.search-box {
    display: flex;
    gap: 12px;
    padding: 16px 0;
}

#searchInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-submit {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}


/* Main Content */

.main {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}


/* Section Titles */

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding: 0 4px;
}


/* Popular Stores Section */

.popular-stores-section {
    margin: 32px 0;
}

.stores-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

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

.store-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.store-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}


/* Categories Section */

.categories-section {
    margin: 32px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 8px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: #333;
}

.category-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #f8f9fa;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}


/* Saving Tips Section */

.saving-tips-section {
    margin: 32px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tip-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tip-image {
    width: 100%;
    height: 120px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.tip-content {
    padding: 16px;
}

.tip-category {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.tip-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tip-time {
    font-size: 0.75rem;
    color: #6c757d;
}


/* Coupons Section */

.coupons-section {
    margin: 32px 0;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 4px;
}

.coupons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}


/* Coupon Cards */

.coupon-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 12px;
    align-items: center;
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.coupon-info {
    flex: 1;
}

.coupon-brand {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.coupon-title {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    margin-bottom: 8px;
}

.coupon-expire {
    font-size: 0.75rem;
    color: #6c757d;
}

.coupon-action {
    text-align: center;
}

.coupon-discount {
    font-size: 1rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 8px;
}

.coupon-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-btn:hover {
    background: #0056b3;
}


/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 12px 24px 20px;
    justify-content: flex-end;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e8e8e8;
}


/* Footer */

.footer {
    background: #343a40;
    color: white;
    padding: 32px 0 20px;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #adb5bd;
}

.footer-secondary {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-secondary a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-secondary a:hover {
    color: white;
}

.footer-social {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #adb5bd;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #6c757d;
    padding-top: 16px;
    border-top: 1px solid #495057;
}

.footer-copyright p {
    margin: 0;
}


/* Back to Top Button */

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}


/* Animation Effects */

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .header-content {
        padding: 12px 0;
    }
    .header-center {
        flex: 1.5;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .main {
        padding-top: 70px;
    }
    .search-container {
        top: 70px;
    }
    .coupon-card {
        padding: 12px;
    }
    .modal-content {
        margin: 0 12px;
        max-height: 90vh;
    }
    .modal-footer {
        flex-direction: column;
    }
    .footer-links {
        gap: 16px;
    }
    .footer-secondary {
        gap: 12px;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .category-item {
        padding: 12px 6px;
    }
    .category-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .category-name {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) {
    .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .coupons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .search-box {
        max-width: 600px;
        margin: 0 auto;
    }
}


/* Loading Animation */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* No Results State */

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #495057;
}

.no-results p {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Navigation Drawer Styles */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

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

.navigation-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.navigation-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #e8ecf0;
    background: white;
}

.menu-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.025em;
}

.drawer-close {
    background: #f7f8fa;
    border: none;
    color: #64748b;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: #e2e8f0;
    color: #475569;
    transform: scale(1.05);
}

.drawer-close:active {
    transform: scale(0.95);
}

.drawer-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 24px 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    background: white;
    border: 1px solid #f1f3f4;
    margin-bottom: 8px;
}

.nav-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.nav-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-icon {
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-text {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.nav-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.nav-arrow {
    color: #cbd5e1;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item:hover .nav-arrow {
    color: white;
    transform: translateX(4px) scale(1.1);
}


/* Responsive Design - Drawer Menu */

@media (max-width: 768px) {
    .navigation-drawer {
        width: 300px;
    }
    .drawer-header {
        padding: 20px 20px 16px 20px;
    }
    .menu-title {
        font-size: 1.5rem;
    }
    .drawer-close {
        width: 40px;
        height: 40px;
    }
    .drawer-nav {
        padding: 8px 12px 20px 12px;
    }
    .nav-item {
        padding: 16px 12px;
        margin-bottom: 6px;
    }
    .nav-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }
    .nav-icon {
        font-size: 1.5rem;
    }
    .nav-text {
        font-size: 1rem;
    }
    .nav-subtitle {
        font-size: 0.8rem;
    }
}


/* Page Title Styles */

.page-header {
    text-align: center;
    padding: 32px 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 24px 24px;
    margin: -20px -16px 32px -16px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}


/* Category Button Common Styles */

.store-category-btn,
.tip-category-btn {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
    color: #666;
}

.store-category-btn:hover,
.tip-category-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.store-category-btn.active,
.tip-category-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.stores-categories,
.tips-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 4px;
}


/* Store Card Styles */

.stores-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.store-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.store-logo {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.store-info {
    flex: 1;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.store-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.store-coupons-count {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
    background: #f0f8ff;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.store-arrow {
    font-size: 1.5rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.store-card:hover .store-arrow {
    color: #667eea;
    transform: translateX(4px);
}


/* Detailed Money-Saving Tips Cards */

.tip-detailed-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 16px;
}

.tip-detailed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.tip-detailed-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.tip-read-time {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.tip-detailed-content {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tip-preview {
    margin-top: 16px;
}

.tip-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.tip-tag {
    background: #f0f8ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tip-more {
    background: #e9ecef;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}


/* Responsive Design - New Pages */

@media (max-width: 768px) {
    .page-header {
        padding: 24px 12px 20px;
        margin: -20px -12px 24px -12px;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .page-subtitle {
        font-size: 0.9rem;
    }
    .stores-main-grid {
        gap: 12px;
    }
    .store-card {
        padding: 16px;
        gap: 12px;
    }
    .store-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .store-name {
        font-size: 1.1rem;
    }
    .tip-detailed-card {
        padding: 20px;
    }
    .tip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tip-read-time {
        align-self: flex-end;
    }
}

@media (min-width: 769px) {
    .stores-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stores-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Coupon Detail Page Styles */

.coupon-detail-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}


/* Hero Coupon Card */

.detail-coupon-hero {
    margin-bottom: 32px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-brand {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hero-discount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge.status-limited {
    background: rgba(255, 107, 107, 0.9);
    border-color: rgba(255, 107, 107, 0.5);
}

.expire-info {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Detail Actions */

.detail-actions {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.coupon-code-section {
    margin-bottom: 24px;
}

.code-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.code-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

#couponCodeInput {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    color: #333;
    text-align: center;
    letter-spacing: 2px;
}

.copy-code-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.copy-code-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.use-coupon-btn,
.share-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.use-coupon-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.use-coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.share-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.share-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}


/* Info Sections */

.detail-info-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.info-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.info-section.highlight-section {
    background: linear-gradient(135deg, #f0f8ff, #e8f4fd);
    border-color: #667eea;
}

.info-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.title-icon {
    font-size: 1.3rem;
}

.section-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.term-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.term-bullet {
    color: #667eea;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.term-text {
    color: #666;
}

.min-amount-display {
    font-size: 2rem;
    font-weight: 700;
    color: #4caf50;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    font-weight: 500;
    color: #333;
}


/* Related Coupons */

.related-coupons-section {
    margin-bottom: 40px;
}

.related-coupons-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

.related-coupons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.related-coupon-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.related-coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.related-brand {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.related-discount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.related-title {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 16px;
}

.related-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.related-expire {
    font-size: 0.8rem;
    color: #999;
}

.related-status {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    background: #e8f5e8;
    color: #4caf50;
}

.related-status.status-limited {
    background: #ffe8e8;
    color: #ff6b6b;
}

.no-related {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}


/* Responsive Design - Detail Page */

@media (max-width: 768px) {
    .coupon-detail-page {
        padding: 0 12px;
    }
    .hero-gradient {
        padding: 32px 24px;
    }
    .hero-discount {
        font-size: 2.5rem;
    }
    .hero-title {
        font-size: 1.1rem;
    }
    .hero-status {
        flex-direction: column;
        gap: 8px;
    }
    .detail-actions {
        padding: 20px;
    }
    .code-container {
        flex-direction: column;
        align-items: stretch;
    }
    .copy-code-btn {
        justify-content: center;
    }
    .action-buttons {
        flex-direction: column;
    }
    .info-section {
        padding: 20px;
    }
    .related-coupons-grid {
        gap: 12px;
    }
    .detail-grid {
        gap: 12px;
    }
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (min-width: 769px) {
    .related-coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-coupons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Home Page Styles */

.home-page {
    padding: 0;
}


/* Welcome Section */

.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 48px 20px;
    border-radius: 0 0 32px 32px;
    margin: -20px -16px 40px -16px;
    text-align: center;
}

.welcome-content {
    max-width: 600px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}


/* Popular Stores Section */

.popular-stores-section {
    margin-bottom: 48px;
}

.popular-stores-section .section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 32px;
}

.stores-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stores-scroll-container::-webkit-scrollbar {
    display: none;
}

.stores-grid {
    display: flex;
    gap: 16px;
    padding: 0 4px;
    min-width: max-content;
}

.store-card {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.store-card:hover::before {
    opacity: 0.05;
}

.store-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-color);
}

.store-logo {
    font-size: 2rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.store-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}


/* Today's Top Coupons - Compact Layout */

.todays-coupons-section {
    margin-bottom: 48px;
}

.todays-coupons-section .section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 32px;
}

.todays-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.coupon-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-coupon-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.compact-coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compact-coupon-card:hover::before {
    opacity: 1;
}

.compact-coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}


/* Left Brand Logo */

.coupon-left {
    flex-shrink: 0;
}

.coupon-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}


/* Center Information Area */

.coupon-center {
    flex: 1;
    min-width: 0;
}

.coupon-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.coupon-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: capitalize;
}

.coupon-status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.coupon-status-badge.verified {
    background: #dbeafe;
    color: #2563eb;
}

.coupon-status-badge.limited {
    background: #fed7aa;
    color: #ea580c;
}

.coupon-brand-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.coupon-main-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.last-used {
    font-size: 0.8rem;
    color: #9ca3af;
}

.time-left {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
}

.coupon-saved-info {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
    background: #f0fdf4;
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 3px solid #10b981;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Right CTA Area */

.coupon-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.coupon-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.get-deal-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.get-deal-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.view-all-coupons {
    text-align: center;
}

.view-all-coupons-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.view-all-coupons-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.nav-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.nav-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.nav-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.nav-arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-arrow {
    transform: translateX(8px);
}


/* Featured Preview */

.featured-preview {
    margin-bottom: 48px;
}

.featured-preview .section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 32px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.featured-coupon {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.featured-coupon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.featured-brand {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.featured-discount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
}

.featured-title {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.view-all-link {
    text-align: center;
}

.view-all-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}


/* Responsive Design - Home Page */

@media (max-width: 768px) {
    .welcome-section {
        padding: 40px 16px;
        margin: -20px -12px 32px -12px;
    }
    .welcome-title {
        font-size: 1.8rem;
    }
    .welcome-subtitle {
        font-size: 1rem;
    }
    .stats-grid {
        gap: 16px;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .popular-stores-section .section-title {
        font-size: 1.5rem;
    }
    .store-card {
        width: 80px;
        height: 80px;
    }
    .store-logo {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    .store-name {
        font-size: 0.7rem;
    }
    .todays-coupons-section .section-title {
        font-size: 1.5rem;
    }
    .coupon-item {
        gap: 6px;
    }
    .compact-coupon-card {
        padding: 12px;
        gap: 12px;
    }
    .coupon-brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .coupon-meta {
        gap: 6px;
    }
    .coupon-status-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    .coupon-brand-name {
        font-size: 0.8rem;
    }
    .coupon-main-title {
        font-size: 0.9rem;
    }
    .last-used {
        font-size: 0.75rem;
    }
    .coupon-right {
        min-width: 100px;
        gap: 6px;
    }
    .time-left {
        font-size: 0.7rem;
    }
    .coupon-saved-info {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .get-deal-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .view-all-coupons-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    .featured-preview .section-title {
        font-size: 1.4rem;
    }
    .featured-coupon {
        padding: 20px;
    }
    .view-all-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .store-card {
        width: 120px;
        height: 120px;
    }
    .store-logo {
        font-size: 2.5rem;
    }
    .store-name {
        font-size: 0.8rem;
    }
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .welcome-section {
        padding: 64px 20px;
    }
    .welcome-title {
        font-size: 2.5rem;
    }
    .stats-grid {
        gap: 32px;
    }
}


/* Saving Tips Page Styles */

.tips-page {
    padding: 0;
}


/* Article Header Section */

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 48px 20px;
    border-radius: 0 0 32px 32px;
    margin: -20px -16px 40px -16px;
}

.article-hero {
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    margin-bottom: 20px;
}

.category-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

.article-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.5;
    text-align: left;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.article-stats {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.update-date,
.read-time {
    position: relative;
}

.update-date::after {
    content: '•';
    position: absolute;
    right: -10px;
    color: rgba(255, 255, 255, 0.6);
}

.article-cta {
    flex-shrink: 0;
}

.read-article-btn {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.read-article-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #f8f9ff;
}

.read-article-btn:active {
    transform: translateY(0);
}

.btn-text {
    font-weight: 600;
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.read-article-btn:hover .btn-icon {
    transform: scale(1.1);
}


/* Category Navigation */

.category-nav-section {
    margin-bottom: 32px;
}

.category-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-nav-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.category-nav-btn:hover {
    color: #374151;
    background: #f9fafb;
}

.category-nav-btn.active {
    color: #1f2937;
    font-weight: 600;
    border-bottom-color: #667eea;
    background: #f8faff;
}

.category-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}


/* Articles Section */

.articles-section {
    margin-bottom: 48px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: #e0e7ff;
}

.article-image {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.brand-logos {
    display: flex;
    gap: -8px;
    align-items: center;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border: 3px solid white;
    margin-left: -8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.brand-logo:first-child {
    margin-left: 0;
}

.brand-logo:hover {
    z-index: 2;
    transform: scale(1.1);
}

.article-content {
    padding: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.article-category {
    color: #667eea;
    font-weight: 600;
    text-transform: capitalize;
}

.article-separator {
    color: #d1d5db;
}

.article-read-time {
    color: #6b7280;
    font-weight: 500;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}


/* Responsive Design - Tips Page */

@media (max-width: 768px) {
    .article-header {
        padding: 40px 16px;
        margin: -20px -12px 32px -12px;
    }
    .article-title {
        font-size: 1.8rem;
        text-align: center;
    }
    .article-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    .article-category {
        text-align: center;
    }
    .article-meta {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .author-info {
        justify-content: center;
    }
    .author-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .author-name {
        font-size: 0.9rem;
    }
    .article-stats {
        justify-content: center;
        gap: 12px;
        font-size: 0.8rem;
    }
    .read-article-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    .category-nav-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .articles-grid {
        gap: 20px;
    }
    .article-image {
        padding: 20px;
        min-height: 100px;
    }
    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-left: -6px;
    }
    .article-content {
        padding: 20px;
    }
    .article-meta {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    .article-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-logo {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
}

@media (min-width: 1024px) {
    .article-header {
        padding: 64px 20px;
    }
    .article-hero {
        max-width: 900px;
    }
    .article-title {
        font-size: 3rem;
    }
    .article-subtitle {
        font-size: 1.3rem;
    }
    .author-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }
    .author-name {
        font-size: 1.1rem;
    }
    .article-stats {
        font-size: 1rem;
        gap: 20px;
    }
    .read-article-btn {
        padding: 18px 28px;
        font-size: 1.1rem;
    }
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .article-image {
        min-height: 140px;
    }
    .brand-logo {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}


/* ===== NEW STORES PAGE STYLES ===== */


/* Stores Hero Section */

.stores-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 48px 20px;
    border-radius: 0 0 32px 32px;
    margin: -20px -16px 40px -16px;
    text-align: center;
}

.stores-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.stores-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.stores-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}


/* Category Pills */

.stores-categories-section {
    margin-bottom: 32px;
}

.category-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
}

.category-pill {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-pill:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #495057;
    transform: translateY(-2px);
}

.category-pill.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-pill.active:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
}


/* Main Stores Section */

.main-stores-section {
    margin-bottom: 48px;
}

.main-stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 16px;
}

.modern-store-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.modern-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: #e0e7ff;
}

.store-logo-container {
    margin-bottom: 20px;
}

.store-logo-bg {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.store-logo-text {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    padding: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-card-content {
    text-align: center;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.store-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.store-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.coupon-count {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    background: #f0f4ff;
    padding: 4px 12px;
    border-radius: 12px;
}


/* Trending Stores Section */

.trending-stores-section {
    padding: 0 16px;
}

.trending-stores-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
}

.trending-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.trending-store-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.trending-store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}

.trending-logo-container {
    margin-bottom: 16px;
}

.trending-logo-bg {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.trending-logo-text {
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
    padding: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trending-store-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}


/* Responsive Design - Stores Page */

@media (max-width: 768px) {
    .stores-hero {
        padding: 40px 16px;
        margin: -20px -12px 32px -12px;
    }
    .stores-title {
        font-size: 1.8rem;
    }
    .stores-subtitle {
        font-size: 1rem;
    }
    .hero-icon {
        font-size: 2.5rem;
    }
    .category-pills {
        gap: 8px;
        padding: 0 12px;
    }
    .category-pill {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .main-stores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
    }
    .modern-store-card {
        padding: 20px;
    }
    .store-logo-bg {
        width: 64px;
        height: 64px;
    }
    .store-logo-text {
        font-size: 0.8rem;
    }
    .trending-stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    .trending-store-card {
        padding: 16px;
    }
    .trending-logo-bg {
        width: 56px;
        height: 56px;
    }
    .trending-logo-text {
        font-size: 0.7rem;
    }
    .trending-store-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .trending-stores-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) {
    .stores-hero {
        padding: 64px 20px;
    }
    .stores-title {
        font-size: 2.5rem;
    }
    .stores-subtitle {
        font-size: 1.2rem;
    }
    .hero-icon {
        font-size: 3.5rem;
    }
    .main-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding: 0 20px;
        max-width: 800px;
        margin: 0 auto;
    }
    .trending-stores-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .trending-stores-section {
        padding: 0 20px;
    }
}


/* ===== HOME PAGE NEW MODULES ===== */


/* Saving Tips Preview Section */

.saving-tips-preview {
    margin-bottom: 48px;
    padding: 0 16px;
}

.saving-tips-preview .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;
}

.saving-tips-preview .section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 32px;
}

.tips-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.tip-preview-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.tip-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: #e0e7ff;
}

.tip-preview-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.tip-preview-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tip-preview-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tip-preview-meta {
    display: flex;
    justify-content: center;
}

.tip-read-time {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
    background: #f0f4ff;
    padding: 4px 12px;
    border-radius: 12px;
}


/* Popular Categories Section */

.popular-categories-section {
    margin-bottom: 48px;
    padding: 0 16px;
}

.popular-categories-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}

.category-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}


/* Responsive Design - Home Page New Modules */

@media (max-width: 768px) {
    .saving-tips-preview {
        padding: 0 12px;
    }
    .tips-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tip-preview-card {
        padding: 20px;
    }
    .tip-preview-icon {
        font-size: 2rem;
    }
    .tip-preview-title {
        font-size: 1.1rem;
    }
    .popular-categories-section {
        padding: 0 12px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .category-card {
        padding: 20px 12px;
    }
    .category-icon {
        font-size: 1.5rem;
        width: 48px;
        height: 48px;
    }
    .category-name {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tips-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .saving-tips-preview {
        padding: 0 20px;
    }
    .tips-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin: 0 auto 32px auto;
    }
    .popular-categories-section {
        padding: 0 20px;
    }
    .categories-grid {
        max-width: 700px;
    }
}


/* ===== COUPON MODAL STYLES ===== */


/* Modal Overlay */

.coupon-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.coupon-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Modal Container */

.coupon-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    margin: 0 auto;
    background: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    border-radius: 20px 20px 0 0;
}

.coupon-modal-overlay.active .coupon-modal {
    transform: translateY(0);
}


/* Modal Header */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 20px 20px 0 0;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

.modal-back-btn,
.modal-close-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-back-btn:hover,
.modal-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}


/* Modal Content */

.modal-content {
    padding: 24px;
}

.modal-coupon-header {
    margin-bottom: 24px;
}

.coupon-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}


/* Coupon Features */

.coupon-features {
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 1.1rem;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
}

.view-more-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    color: #5a6fd8;
}

.chevron-down,
.chevron-up {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}


/* Coupon Code Section */

.coupon-code-section {
    margin-bottom: 24px;
}

.coupon-code-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8faff;
    border: 2px dashed #667eea;
    border-radius: 12px;
}

.coupon-code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
}

.copy-code-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.copy-code-btn:active {
    transform: translateY(0);
}

.copy-code-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.copy-code-btn.copied:hover {
    background: #10b981 !important;
    transform: none !important;
    cursor: not-allowed !important;
}

.copy-code-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}


/* Code box copied state (grayed out) */

.coupon-code.copied-state {
    opacity: 0.5 !important;
    color: #9ca3af !important;
    background: #f9fafb !important;
    transition: all 0.3s ease;
}

.coupon-code-container .coupon-code.copied-state {
    opacity: 0.5 !important;
    color: #9ca3af !important;
    background: #f3f4f6 !important;
}


/* Continue Section */

.continue-section {
    margin-bottom: 32px;
}

.continue-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.continue-btn:active {
    transform: translateY(0);
}


/* Feedback Section */

.feedback-section {
    margin-bottom: 32px;
    text-align: center;
}

.feedback-question {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.feedback-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

.feedback-btn:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.feedback-btn.selected.feedback-yes {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}

.feedback-btn.selected.feedback-no {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.feedback-icon {
    font-size: 1.1rem;
}

.thank-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}


/* Related Codes Section */

.related-codes-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 24px;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.related-codes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.related-code-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.related-code-info {
    flex: 1;
}

.related-code-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.verified-badge {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-copy-btn:hover {
    background: #5a6fd8;
}

.copy-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.related-copy-btn:hover .copy-text {
    opacity: 1;
}

.related-copy-btn.copied {
    background: #10b981 !important;
    color: white !important;
}

.related-copy-btn.copied:hover {
    background: #10b981 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.related-copy-btn.copied .copy-text {
    opacity: 0;
}

.related-copy-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}


/* Copy Toast */

.copy-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.copy-toast.show {
    transform: translateX(0);
}


/* Responsive Design - Modal */

@media (max-width: 768px) {
    .coupon-modal {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
    }
    .modal-header {
        padding: 6px 16px 16px 16px;
        border-radius: 16px 16px 0 0;
    }
    .modal-header::before {
        top: 6px;
        width: 32px;
        height: 3px;
    }
    .modal-content {
        padding: 20px;
    }
    .coupon-main-title {
        font-size: 1.3rem;
    }
    .feedback-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .feedback-btn {
        justify-content: center;
    }
    .related-code-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .related-copy-btn {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .coupon-modal {
        max-height: 75vh;
    }
    .modal-header {
        padding: 6px 12px 12px 12px;
    }
    .modal-content {
        padding: 16px;
    }
}

@media (min-width: 769px) {
    .coupon-modal {
        max-width: 480px;
        max-height: 80vh;
    }
}


/* ===== FEATURED COUPONS SECTION STYLES ===== */

.featured-coupons-section {
    margin: 32px 0;
}

.featured-coupons-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 16px;
}

.coupons-count {
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 40px;
}

.coupons-count span {
    font-weight: 600;
    color: #667eea;
}

.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}


/* ===== COUPONS LIST USES COMPACT LAYOUT FROM HOME PAGE ===== */


/* The coupons list now uses the same compact-coupon-card style as the homepage */


/* All styling for compact-coupon-card is already defined in the "Today's Top Coupons" section above */


/* ===== PAGINATION STYLES ===== */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 32px 0;
    border-top: 1px solid #f0f0f0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    border-color: #e5e7eb;
    color: #6b7280;
    transform: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-number {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.page-number.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-number.active:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
}

.pagination-dots {
    color: #9ca3af;
    font-weight: bold;
    padding: 0 4px;
    user-select: none;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

.pagination-info span {
    font-weight: 600;
    color: #374151;
}


/* ===== RESPONSIVE DESIGN - FEATURED COUPONS ===== */

@media (max-width: 768px) {
    .featured-coupons-title {
        font-size: 1.8rem;
    }
    .coupons-list {
        gap: 16px;
    }
    /* Mobile responsive for compact coupon cards */
    .coupons-list .compact-coupon-card {
        padding: 12px;
        gap: 12px;
    }
    .coupons-list .coupon-brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .coupons-list .coupon-meta {
        gap: 6px;
    }
    .coupons-list .coupon-status-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    .coupons-list .coupon-brand-name {
        font-size: 0.8rem;
    }
    .coupons-list .coupon-main-title {
        font-size: 0.9rem;
    }
    .coupons-list .last-used {
        font-size: 0.75rem;
    }
    .coupons-list .coupon-right {
        min-width: 100px;
        gap: 6px;
    }
    .coupons-list .time-left {
        font-size: 0.7rem;
    }
    .coupons-list .coupon-saved-info {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .coupons-list .get-deal-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .pagination {
        gap: 8px;
    }
    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .page-number {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    .pagination-numbers {
        gap: 6px;
    }
    .pagination-container {
        gap: 16px;
        margin-top: 32px;
        padding: 24px 0;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}


/* ===== ABOUT US PAGE STYLES ===== */

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Back Button */

.back-button-container {
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e5e9;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateX(-2px);
}

.back-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-btn:hover .back-icon {
    transform: translateX(-2px);
}


/* About Header */

.about-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.about-hero {
    position: relative;
    z-index: 1;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}


/* About Content */

.about-content {
    line-height: 1.7;
}

.about-section {
    margin-bottom: 48px;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
}

.about-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.about-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.about-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0;
}


/* Principles List */

.principles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.principle-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.principle-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.principle-content p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
}


/* Legal and Privacy Text */

.legal-text,
.privacy-text {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}


/* Responsive Design for About Page */

@media (max-width: 768px) {
    .about-page {
        padding: 0 16px;
    }
    .about-title {
        font-size: 2rem;
    }
    .about-subtitle {
        font-size: 1.1rem;
    }
    .about-section {
        padding: 24px 20px;
        margin-bottom: 32px;
    }
    .about-section .section-title {
        font-size: 1.5rem;
    }
    .principle-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .principle-content h3 {
        font-size: 1.1rem;
    }
    .back-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-header {
        margin-bottom: 32px;
        padding: 32px 20px;
    }
    .about-title {
        font-size: 1.8rem;
    }
    .about-section {
        padding: 20px 16px;
        margin-bottom: 24px;
    }
    .principles-list {
        gap: 16px;
    }
    .principle-item {
        padding: 16px;
    }
}