﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.coupon-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.page-header {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-blue {
    color: #1890ff;
}

.logo-orange {
    color: #ff6b35;
}

.service-tag {
    background: #f0f8ff;
    color: #1890ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.return-link {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
}

    .return-link:hover {
        text-decoration: underline;
    }

/* Tabs Section */
.tabs-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 8px;
    padding: 40px 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

    .tabs-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Replaced inline SVG with safe CSS-only dotted overlay */
        background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12) 1px, transparent 2px) 0 0/40px 40px, radial-gradient(circle at 75% 75%, rgba(255,255,255,0.12) 1px, transparent 2px) 0 0/40px 40px, radial-gradient(circle at 50% 10%, rgba(255,255,255,0.06) 1px, transparent 2px) 0 0/60px 60px, radial-gradient(circle at 10% 60%, rgba(255,255,255,0.06) 1px, transparent 2px) 0 0/60px 60px, radial-gradient(circle at 90% 40%, rgba(255,255,255,0.06) 1px, transparent 2px) 0 0/60px 60px;
        pointer-events: none;
    }

.tabs-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.tabs-container {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.tab-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .tab-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .tab-item.active {
        border-color: #ff6b35;
        background: white;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    }

.tab-icon {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 10px;
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tab-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.new-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff6b35;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 0 8px 0 8px;
    transform: rotate(0deg);
    font-weight: 600;
}

/* Content Section */
.content-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    padding: 40px 30px;
    margin-bottom: 20px;
    position: relative;
}

.content-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.coupons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.coupon-card {
    width: calc(25% - 15px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

    .coupon-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.coupon-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.coupon-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.coupon-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.coupon-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-section {
    text-align: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 5px;
    line-height: 1.2;
}

.price-unit {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.remaining-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.remaining-text {
    font-size: 0.9rem;
    color: #666;
}

.remaining-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff4d4f;
}

.buy-button {
    width: 100%;
    padding: 12px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

    .buy-button:hover {
        background: #d9363e;
        transform: translateY(-1px);
    }

    .buy-button:disabled {
        background: #d9d9d9;
        cursor: not-allowed;
        transform: none;
    }

/* Features Section */
.features-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.features-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.features-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature-icon {
    font-size: 2rem;
    color: #1890ff;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.faq-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

    .faq-question:hover {
        background: #e8f4fd;
    }

.faq-answer {
    padding: 15px 20px;
    background: white;
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    padding: 15px 40px;
    background: white;
    color: #ff6b35;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .coupon-card {
        width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
        gap: 15px;
    }

    .coupon-card {
        width: calc(50% - 10px);
    }

    .features-container {
        flex-direction: column;
    }

    .content-title {
        font-size: 1.4rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .tab-item {
        min-height: 80px;
        padding: 15px;
    }

    .tab-icon {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .coupon-card {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .coupon-card {
        width: 100%;
    }

    .coupon-page {
        padding: 10px;
    }

    .tab-item {
        min-height: 70px;
        padding: 12px;
    }

    .tab-icon {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .coupon-card {
        min-height: 260px;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .content-section {
        padding: 20px 15px;
    }
}
