/* Price Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

.main-content {
    padding: 120px 0 0 0;
}

.price-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 메인 섹션 레이아웃 */
.price-main-section {
    display: flex;
    flex-direction: column;
}

/* 메인 헤더 */
.main-header {
    margin-bottom: 80px;
    max-width: 485px;
}

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

.header-text {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 47px;
    line-height: 55px;
    max-width: 485px;
    margin: 0;
}

/* 모바일에서 헤더 텍스트 크기 조정 */
@media (max-width: 768px) {
    .header-text {
        font-size: 35px;
        line-height: 38px;
    }
}

.header-text .text-light {
    color: #8c8c8c;
    font-weight: 300;
    margin: 0;
}

.header-text .text-bold {
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}



/* 섹션 헤더 */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.section-header p {
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    max-width: 200px;
}

/* 구분선 */
.section-divider {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 60px 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.91398 20L6.45161 13.4946L0 14.2473L4.89247 10L0 5.69892L6.45161 6.50538L5.91398 0L10 5.05376L14.1398 0L13.5484 6.50538L20 5.69892L15.1075 10L20 14.2473L13.5484 13.4946L14.1398 20L10 14.8925L5.91398 20Z" fill="%23777777"/></svg>') no-repeat center;
    background-size: contain;
}

.section-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.91398 20L6.45161 13.4946L0 14.2473L4.89247 10L0 5.69892L6.45161 6.50538L5.91398 0L10 5.05376L14.1398 0L13.5484 6.50538L20 5.69892L15.1075 10L20 14.2473L13.5484 13.4946L14.1398 20L10 14.8925L5.91398 20Z" fill="%23777777"/></svg>') no-repeat center;
    background-size: contain;
}

.section-divider .divider-line {
    width: calc(100% - 40px);
    height: 1px;
    background-color: #777777;
}

/* 일반 제작 섹션 */
.general-production-section {
}

.section-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.section-title-left {
    flex: 0 0 200px;
}

.section-content-right {
    flex: 1;
}

.production-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.production-card {
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 25px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
}


.production-card:hover .card-header h3 {
    color: #ffc14d;
}

.card-header {
    display: flex;
    align-items: center;
    font-size: 0;
    gap: 5px;
}

.card-header h3 {
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: inline-block;
}

.card-subtitle {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.2;
    display: inline-block;
}

.card-content {
    margin-bottom: 20px;
    flex: 1;
}

.card-description {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 21px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.42px;
}

.card-features {
    list-style: none;
}

.card-features li {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 10px;
    opacity: 0.5;
}

.card-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffffff;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 3px;
    padding: 5px 10px;
    letter-spacing: -0.26px;
}

.card-price {
    text-align: right;
}

.price {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 27px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    letter-spacing: -0.54px;
    line-height: 1.2;
}

.price .month-text {
    font-size: 18px;
    font-weight: 400;
}

.vat {
    font-family: 'Pretendard GOV', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* 플레인프로븐 템플릿 섹션 */
.template-section {
    margin-bottom: 80px;
}

.template-info {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.template-info h3 {
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #ffc14d;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.template-info p {
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #c2c2c2;
    line-height: 1.8;
    letter-spacing: -0.28px;
}

.template-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.template-card {
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 15px;
    background: transparent;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    flex: 1;
    min-width: 230px;
}

.template-card:hover {
    transform: translateY(-3px);
    border-color: #ffc14d;
}

.template-card:hover .template-header h4 {
    color: #ffc14d;
}

/* Coming Soon 상태 */
.template-card.coming-soon {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.template-card.coming-soon:hover {
    transform: none;
    border-color: #ffffff;
}

.template-card.coming-soon:hover .template-header h4 {
    color: #333;
}

/* 커스텀 템플릿 카드만 준비중 상태 */
.fullpackage-card.coming-soon {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.fullpackage-card.coming-soon:hover {
    transform: none;
    border-color: #ffffff;
}

.fullpackage-card.coming-soon:hover .card-header h3 {
    color: #333;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
}

.coming-soon-text {
    color: #ffc14d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.template-header h4 {
    font-family: 'SEBANG Gothic', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.template-tags .tag {
    font-size: 11px;
    padding: 3px 8px;
}

/* 유지보수 구독제 섹션 */
.maintenance-section {
    margin-bottom: 80px;
}

.maintenance-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.maintenance-card {
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 25px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
}

/* 풀패키지 구독제 섹션 */
.fullpackage-section {
    margin-bottom: 80px;
}

.fullpackage-info {
    margin-bottom: 30px;
}

.fullpackage-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fullpackage-features li {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.fullpackage-features li::before {
    content: "•";
    color: #ffc14d;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.fullpackage-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.fullpackage-card {
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 25px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
}

.clickable-card {
    cursor: pointer;
    user-select: none;
}

.clickable-card:hover {
    transform: translateY(-5px);
    border-color: #ffc14d;
    box-shadow: 0 10px 30px rgba(255, 193, 77, 0.2);
}

.clickable-card:active {
    transform: translateY(-2px);
}

/* 사이드 패널 스타일 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.payment-modal .modal-content {
    position: absolute;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #1a1a1a;
    transition: right 0.3s ease-out;
    overflow-y: auto;
}

.refund-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.refund-modal .modal-content {
    position: absolute;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #1a1a1a;
    transition: right 0.3s ease-out;
    overflow-y: auto;
}

.payment-modal.show {
    display: block;
}

.payment-modal.show .modal-content {
    right: 0;
}

.refund-modal.show {
    display: block;
}

.refund-modal.show .modal-content {
    right: 0;
}

/* modal-content 스타일은 이제 각 모달에서 개별 관리 */

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 15px;
    margin-top: 35px;
    position: relative;
}

.plan-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    margin: 0;
    font-family: 'SEBANG Gothic', sans-serif;
    letter-spacing: -0.5px;
    line-height: 29px;
}

.plan-subtitle {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Pretendard GOV', sans-serif;
    letter-spacing: -0.3px;
    line-height: 18px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10001;
}

.modal-close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10001;
}

.modal-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-back:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 0 25px 100px;
}

.plan-details {
    background: #2c2c2c;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.plan-details-header {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Pretendard GOV', sans-serif;
    letter-spacing: -0.28px;
}

.plan-details-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-details-content li {
    color: #cccccc;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
    font-family: 'Pretendard GOV', sans-serif;
    letter-spacing: -0.28px;
    position: relative;
    padding-left: 15px;
}

.plan-details-content li::before {
    content: "•";
    color: #ffffff;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.plan-details-content li:last-child {
    margin-bottom: 0;
}

.price-breakdown {
    padding: 15px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
}


.price-item.total {
    border-top: 1px solid #575757;
    padding-top: 15px;
    margin-top: 8px;
}

.price-label {
    color: #777777;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Pretendard GOV', sans-serif;
    letter-spacing: -0.3px;
}

.price-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Pretendard GOV', sans-serif;
    letter-spacing: -0.32px;
}

.price-item.total .price-label {
    color: #777777;
    font-size: 15px;
    font-weight: 600;
}

.total-price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-item.total .price-value {
    color: #ffc14d;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.54px;
    line-height: 32px;
}

.month-text {
    color: #cccccc;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.refund-info {
    text-align: right;
}

.refund-btn {
    background: none;
    border: 1px solid #cccccc;
    color: #cccccc;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Pretendard GOV', sans-serif;
    letter-spacing: -0.26px;
    transition: all 0.3s ease;
}

.refund-btn:hover {
    background: #cccccc;
    color: #1a1a1a;
}

.modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    border-top: 1px solid #333;
    background: #1a1a1a;
}

.btn-select {
    width: 100%;
    background: #ffc14d;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Pretendard GOV', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select:hover {
    background: #ffca5d;
    transform: translateY(-1px);
}

.refund-content {
    color: #cccccc;
    font-size: 13px;
    line-height: 23px;
    font-family: 'Pretendard GOV', sans-serif;
    letter-spacing: -0.26px;
}

.refund-content p {
    margin: 0 0 20px 0;
}

.refund-content strong {
    color: #ffffff;
    font-weight: 600;
}

.divider {
    height: 1px;
    background: #777777;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background: #1a1a1a;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.fullpackage-recommendation {
    margin-top: 20px;
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-list li {
    color: #8c8c8c;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.recommendation-list li::before {
    content: "•";
    color: #ffc14d;
    font-weight: bold;
    position: absolute;
    left: 0;
}


.price-container .fullpackage-cards .fullpackage-card:hover {
    transform: translateY(-3px);
    border-color: #ffc14d;
}

.maintenance-card:hover .card-header h3 {
    color: #ffc14d;
}

.fullpackage-card:hover .card-header h3 {
    color: #ffc14d;
}

.maintenance-card .card-content {
    flex: 1;
}

.fullpackage-card .card-content {
    flex: 1;
}


.maintenance-card .card-description {
    color: #ffc14d;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 25px;
    letter-spacing: -0.34px;
}

.fullpackage-card .card-description {
    color: #ffc14d;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 25px;
    letter-spacing: -0.34px;
}

.maintenance-card .card-features li {
    margin-bottom: 0;
    line-height: 1.5;
}

.fullpackage-card .card-features li {
    margin-bottom: 0;
    line-height: 1.5;
}

.maintenance-card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.fullpackage-card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.maintenance-card .card-price {
    text-align: right;
}

.fullpackage-card .card-price {
    text-align: right;
}

.maintenance-card .vat {
    opacity: 0.4;
}

.fullpackage-card .vat {
    opacity: 0.4;
}

/* 반응형 디자인 */
@media (max-width: 1280px) {
    .price-container {
        padding: 0 30px;
    }
    
    .price-main-section {
        gap: 40px;
    }
    
    .left-section {
        flex: 0 0 400px;
    }
}

@media (max-width: 768px) {
    .main-header {
        margin: 0 auto 80px auto;
        text-align: center;
    }
    
    .main-header h1 {
        font-size: 40px;
    }
    
    .section-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title-left {
        flex: none;
    }
    
    .production-cards {
        flex-wrap: wrap;
    }
    
    .production-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }
    
    .maintenance-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 180px 0 0 0;
    }
    
    .price-container {
        padding: 0 20px;
    }
    
    .price-main-section {
        flex-direction: column;
        gap: 40px;
    }
    
    .left-section {
        flex: none;
    }
    
    .main-header {
        text-align: center;
    }
    
    .main-header h1 {
        font-size: 32px;
    }
    
    .production-cards {
        flex-direction: column;
    }
    
    .production-card {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .maintenance-cards {
        grid-template-columns: 1fr;
    }
    
    .template-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card-price {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .template-cards {
        grid-template-columns: 1fr;
    }
    
    .template-card {
        min-width: auto;
    }
    
    .template-card .template-tags {
        display: none;
    }
    
    .main-header h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .card-header h3 {
        font-size: 22px;
    }
    
    .card-description {
        font-size: 18px;
    }
    
    .price {
        font-size: 24px;
    }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
}


/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.production-card,
.maintenance-card,
.template-card {
    animation: fadeInUp 0.6s ease forwards;
}

.production-card:nth-child(1) { animation-delay: 0.1s; }
.production-card:nth-child(2) { animation-delay: 0.2s; }
.production-card:nth-child(3) { animation-delay: 0.3s; }
.production-card:nth-child(4) { animation-delay: 0.4s; }

.maintenance-card:nth-child(1) { animation-delay: 0.1s; }
.maintenance-card:nth-child(2) { animation-delay: 0.2s; }
.maintenance-card:nth-child(3) { animation-delay: 0.3s; }
.maintenance-card:nth-child(4) { animation-delay: 0.4s; }

/* 스크롤 애니메이션 */
@media (prefers-reduced-motion: no-preference) {
    .production-card,
    .maintenance-card,
    .template-card {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .production-card.animate,
    .maintenance-card.animate,
    .template-card.animate {
        animation: fadeInUp 0.6s ease forwards;
    }
}