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

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    max-height: 50px;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #667eea;
}

.admin-link {
    background: #667eea;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content .highlight {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.search-box {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    font-size: 18px;
    font-weight: 600;
}

.stat i {
    margin-right: 8px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 10px;
}

.section-header p {
    color: #6b7280;
}

/* Categories Tabs */
.categories-section {
    padding: 50px 0 0;
}

.categories-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.tab-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Coupons Grid */
.coupons-section {
    padding: 50px 0;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Coupon Card - Attractive Design */
.coupon-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px dashed #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.coupon-card::before,
.coupon-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #f9fafb;
    border-radius: 50%;
}

.coupon-card::before {
    top: -15px;
    left: -15px;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.05);
}

.coupon-card::after {
    bottom: -15px;
    right: -15px;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.05);
}

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

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.store-icon {
    font-size: 40px;
}

.coupon-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.coupon-desc {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

.coupon-code-wrapper {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.coupon-code {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #667eea;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.expiry {
    font-size: 13px;
    color: #6b7280;
}

.expiry-soon {
    color: #ef4444;
    font-weight: 600;
}

.clicks {
    font-size: 13px;
    color: #6b7280;
}

.deal-btn {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.deal-btn:hover {
    background: #059669;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.newsletter-box {
    text-align: center;
    color: white;
}

.newsletter-box i {
    font-size: 50px;
    margin-bottom: 20px;
}

.newsletter-box h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 20px auto 0;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    outline: none;
}

.newsletter-form button {
    background: #1f2937;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 50px 0 20px;
}

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

.footer-info h3, .footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 15px;
}

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

.footer-links ul li a {
    color: #9ca3af;
    text-decoration: none;
    line-height: 2;
}

.footer-links ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #9ca3af;
    font-size: 22px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 15px;
    z-index: 9999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    
    nav.show {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .coupons-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .coupon-code-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .coupon-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .deal-btn {
        text-align: center;
    }
}