/* 페이지 로드 전 기본 스타일 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F8F9FA;
}

/* 홈페이지 전용 스타일 */
.hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #ffecec 50%, #ffe6e6 100%);
    color: #333333;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid rgba(229, 9, 20, 0.1);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.08);
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.4;
}

.price-highlight {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.15);
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.05);
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 1.1rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.discount-badge {
    background: #00C851;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.savings-info {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.savings-badge {
    background: rgba(229, 9, 20, 0.08);
    color: #E50914;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(229, 9, 20, 0.12);
    transition: all 0.2s ease;
}

.savings-badge:hover {
    background: rgba(229, 9, 20, 0.12);
    transform: translateY(-1px);
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .savings-info {
        margin-top: 15px;
        flex-direction: column;
        gap: 8px;
    }

    .savings-badge {
        font-size: 0.85rem;
        padding: 8px 14px;
        width: 100%;
        justify-content: center;
    }

    .cta-banner {
        padding: 25px 15px;
    }

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

    .cta-subtitle {
        font-size: 0.9rem;
    }

    .cta-feature {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 245, 245, 0.75) 100%);
    }

    .cta-banner .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(229, 9, 20, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.hero-feature h3 {
    font-size: 0.9rem;
    margin: 0 0 4px;
    font-weight: 600;
    color: #333333;
}

.hero-feature p {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
    color: #666666;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.reason-card {
    background: white;
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.reason-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.reason-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #191F28;
}

.reason-description {
    color: #8B95A1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.referral-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 25px 20px;
    margin: 20px 0;
}

.referral-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.referral-step {
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 0 5px;
}

.step-number {
    background: #E50914;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 8px;
}

.referral-step h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #191F28;
}

.referral-step p {
    color: #8B95A1;
    font-size: 0.75rem;
    margin: 0;
}

.referral-total {
    background: linear-gradient(135deg, #E50914 0%, #cc0812 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 15px;
}

.total-points {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
}

.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
}

.reviews-container {
    overflow: hidden;
    margin: 20px 0;
}

.reviews-scroll {
    display: flex;
    gap: 15px;
    animation: scroll-horizontal 25s linear infinite;
    will-change: transform;
    /* 성능 최적화 */
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 마우스 호버 시 일시정지 */
.reviews-container:hover .reviews-scroll {
    animation-play-state: paused;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    min-width: 280px;
    max-width: 280px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 3px solid #E50914;
}

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

.review-header strong {
    font-size: 1rem;
    color: #191F28;
}

.usage-period {
    font-size: 0.8rem;
    color: #E50914;
    font-weight: 600;
}

.review-content {
    color: #8B95A1;
    line-height: 1.5;
    margin-bottom: 12px;
    font-style: italic;
    font-size: 0.9rem;
}

.review-rating {
    font-size: 1rem;
}

.faq-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: #D3D8DD;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: #E50914;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 20px;
    background: #FFFFFF;
    position: relative;
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: #F2F4F6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item.active .faq-question::after {
    opacity: 1;
}

.faq-question:hover {
    background: #F8F9FA;
}

.faq-item.active .faq-question {
    background: #FFF8F8;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    color: #191F28;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.faq-item.active .faq-question h3 {
    color: #E50914;
}

.faq-toggle {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: #6B7684;
    transition: all 0.3s ease;
}

.faq-toggle::before {
    width: 12px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 12px;
}

.faq-item:hover .faq-toggle::before,
.faq-item:hover .faq-toggle::after {
    background-color: #4E5968;
}

.faq-item.active .faq-toggle::before,
.faq-item.active .faq-toggle::after {
    background-color: #E50914;
}

.faq-item.active .faq-toggle::after {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F8F9FA;
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    color: #4E5968;
    line-height: 1.6;
    font-size: 0.9rem;
}

.faq-answer-content p {
    margin: 0 0 12px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 12px 0 12px 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin: 6px 0;
    line-height: 1.5;
}

.faq-answer-content strong {
    color: #191F28;
    font-weight: 600;
}

/* FAQ 바로가기 링크 스타일 */
.faq-quick-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(229, 9, 20, 0.05);
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #E50914;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: none;
}

.quick-action-btn::after {
    content: '→';
    display: inline-block;
    margin-left: 2px;
    transition: transform 0.2s ease;
    font-size: 0.9rem;
    font-weight: 400;
}

.quick-action-btn:hover {
    color: #cc0812;
}

.quick-action-btn:hover::after {
    transform: translateX(2px);
}

.quick-action-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

.quick-action-label {
    letter-spacing: -0.01em;
}

/* FAQ 모바일 최적화 */
@media (max-width: 480px) {
    .faq-question {
        padding: 16px 20px;
        gap: 12px;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-toggle {
        width: 20px;
        height: 20px;
    }

    .faq-toggle::before {
        width: 10px;
    }

    .faq-toggle::after {
        height: 10px;
    }

    .faq-answer-content {
        padding: 0 20px 20px 20px;
        font-size: 0.85rem;
    }

    .faq-question::after {
        left: 20px;
        right: 20px;
    }

    .quick-action-btn {
        font-size: 0.8rem;
    }

    .quick-action-icon {
        font-size: 0.85rem;
    }
}

.cta-banner {
    background: linear-gradient(135deg, #E50914 0%, #cc0812 100%);
    color: white;
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.5;
}

.cta-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0 25px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 245, 245, 0.7) 100%);
    color: #333333;
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.cta-banner .btn-primary {
    background: white;
    color: #E50914;
    font-weight: 700;
    padding: 14px 32px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-banner .btn-primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* 헤더 스타일 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #F1F4F8;
}

.app-header-left {
    flex: 1;
}

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

.app-title-link {
    text-decoration: none;
    display: inline-block;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.app-title:hover {
    opacity: 0.8;
}

.header-purchase-btn {
    background: #E50914;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header-purchase-btn:hover {
    background: #cc0812;
    transform: translateY(-1px);
}

/* Notice Popup Modal - Shopee Style */
.notice-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notice-popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.notice-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.notice-popup-container {
    position: relative;
    background: white;
    border-radius: 12px;
    width: calc(100% - 40px);
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.notice-popup-modal.show .notice-popup-container {
    transform: scale(1) translateY(0);
}

.notice-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.notice-popup-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.notice-popup-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notice-popup-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.notice-popup-close {

    width: 36px;
    height: 36px;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    padding: 0;
}

.notice-popup-close:hover {
    background: #E5E5E5;
    color: #333;
}

.notice-popup-close:active {
    background: #D5D5D5;
    transform: scale(0.95);
}


.notice-popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #191F28;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.notice-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 500px;
    max-height: calc(80vh - 100px);
}

.notice-popup-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4E5968;
    /* white-space: pre-wrap; */
    word-wrap: break-word;
    text-align: left;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .notice-popup-container {
        width: calc(100% - 40px);
        border-radius: 12px;
        border-width: 2px;
        max-height: 85vh;
    }
    
    .notice-popup-header {
        padding: 14px 16px;
    }
    
    .notice-popup-icon {
        font-size: 20px;
    }
    
    .notice-popup-title {
        font-size: 1rem;
    }
    
    .notice-popup-body {
        padding: 16px;
        min-height: 500px;
        max-height: calc(85vh - 80px);
    }
    
    .notice-popup-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .notice-popup-close {
        width: 28px;
        height: 28px;
    }
}

/* Tablet and larger screens */
@media (min-width: 769px) {
    .notice-popup-container {
        max-width: 450px;
    }
}