/* ===========================================
   헤더 및 네비게이션 스타일
   =========================================== */

/* v-cloak 디렉티브 - Vue 초기화 전 요소 숨김 */
[v-cloak] {
    display: none !important;
}

.header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* 드롭다운이 헤더 밖으로 나가지 않도록 overflow 설정 */
    overflow: visible;
}

.nav-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative; /* 드롭다운 위치 기준점 */
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #f97316;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #f97316;
    stroke-width: 2;
}

.logo-text {
    color: #f97316;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative; /* 드롭다운 위치 기준점 */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative; /* 드롭다운 위치 기준점 */
}

.nav-item {
    position: relative !important; /* 드롭다운 위치를 위한 relative 설정 */
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

/* 메뉴 링크 스타일 */
.nav-menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* 기존 nav-item a 스타일도 유지 */
.nav-item a:not(.nav-menu-link) {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* 기본 상태 - 드롭다운이 닫혀있을 때 */
.nav-item .nav-menu-link,
.nav-item a:not(.nav-menu-link) {
    color: #334155;
    background-color: transparent;
    text-decoration: none !important;
}

.nav-item .arrow-icon {
    stroke: #334155;
    transform: rotate(0deg);
}

/* 마우스 오버 시 */
.nav-item:hover .nav-menu-link,
.nav-item:hover a:not(.nav-menu-link) {
    color: #f97316;
    background-color: #f1f5f9;
    text-decoration: none !important;
}

.nav-item:hover .arrow-icon {
    stroke: #f97316;
}

/* 드롭다운이 열려있을 때 활성 상태 */
.nav-item.dropdown-active .nav-menu-link,
.nav-item.dropdown-active a:not(.nav-menu-link) {
    color: #f97316;
    background-color: #f1f5f9;
    text-decoration: none !important;
}

.nav-item.dropdown-active .arrow-icon {
    stroke: #f97316;
    transform: rotate(180deg);
}

/* 드롭다운이 열려있을 때 호버 상태 */
.nav-item.dropdown-active:hover .nav-menu-link,
.nav-item.dropdown-active:hover a:not(.nav-menu-link) {
    color: #f97316;
    background-color: #f1f5f9;
    text-decoration: none !important;
}

.nav-item.dropdown-active:hover .arrow-icon {
    stroke: #f97316;
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 3px;
    flex-shrink: 0;
    stroke: #334155;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.user-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 7px 14px;
    border-radius: 9999px;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-box:hover {
    background-color: #e2e8f0;
}

.credit-box {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1f2937;
}

.credit-icon {
    width: 20px;
    height: 20px;
    stroke: #f59e0b;
    stroke-width: 2;
}

.credit-value {
    font-weight: 600;
    color: #334155;
}

.divider {
    width: 1px;
    height: 20px;
    background-color: #cbd5e1;
}

.user-icon {
    width: 24px;
    height: 24px;
    stroke: #64748b;
    stroke-width: 2;
    transition: stroke 0.2s ease;
}

.user-box.login-button {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.user-box.login-button:hover {
    opacity: 0.85;
}

.login-icon {
    width: 20px;
    height: 20px;
    stroke: #334155;
    stroke-width: 2;
}

.login-value {
    font-weight: 500;
    color: #334155;
}

/* ===========================================
   유저 드롭다운 메뉴 - 수정된 부분
   =========================================== */

.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 240px;
    max-width: 280px; /* 최대 너비 설정 */
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 9999 !important;
    display: block !important;
    /* 텍스트가 넘치지 않도록 설정 */
    overflow: hidden;
    word-wrap: break-word;
}

.dropdown-menu[style*="display: none"] {
    display: block !important;
}

.dropdown-header {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    padding: 8px 14px;
    margin-bottom: 0;
    /* 텍스트 오버플로우 처리 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
    color: #334155 !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    cursor: pointer !important;
    text-decoration: none !important;
    /* 텍스트 오버플로우 처리 */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: background-color 0.2s ease !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
    box-sizing: border-box !important;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* 아이콘이 줄어들지 않도록 설정 */
}

.dropdown-item:hover {
    background-color: #f9fafb !important;
    color: #f97316 !important;
    text-decoration: none !important;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:hover .dropdown-icon,
.dropdown-menu li a:hover span {
    color: #f97316 !important;
    stroke: #f97316 !important;
}

.dropdown-menu li a,
.dropdown-menu li button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
    color: #334155 !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    cursor: pointer !important;
    text-decoration: none !important;
    /* 텍스트 오버플로우 처리 */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: background-color 0.2s ease !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
    box-sizing: border-box !important;
}

.dropdown-menu li a:hover,
.dropdown-menu li button:hover {
    background-color: #f9fafb !important;
    text-decoration: none !important;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 4px 0;
}

.logout-button {
    color: #ef4444 !important;
    font-weight: 500 !important;
    background: none !important;
    border: none !important;
}

.logout-button:hover {
    background-color: #f9fafb !important;
    color: #ef4444 !important;
}

.logout-button i {
    color: #ef4444 !important;
}

.dropdown-menu form {
    margin: 0;
    padding: 0;
}

/* ===========================================
   네비게이션 드롭다운 메뉴 - 수정된 부분
   =========================================== */

.nav-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 220px;
    max-width: 280px; /* 최대 너비 설정 */
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 9999 !important;
    display: block !important;
    /* 텍스트가 넘치지 않도록 설정 */
    overflow: hidden;
    word-wrap: break-word;
}

/* Vue.js v-show 디렉티브와의 충돌 방지 */
.nav-dropdown-menu[style*="display: none"] {
    display: block !important;
}

/* 네비게이션 드롭다운 아이템 - 수정된 부분 */
.nav-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: #334155 !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    cursor: pointer !important;
    text-decoration: none !important;
    /* 텍스트 오버플로우 처리 */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: background-color 0.2s ease !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
    box-sizing: border-box !important;
}

.nav-dropdown-item:hover {
    background-color: #f8fafc !important;
    color: #f97316 !important;
    text-decoration: none !important;
}

/* 네비게이션 드롭다운 아이콘 */
.nav-dropdown-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0; /* 아이콘이 줄어들지 않도록 설정 */
}

/* 네비게이션 드롭다운 구분선 */
.nav-dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 6px 8px;
}

/* ===========================================
   반응형 디자인 - 네비게이션
   =========================================== */

@media (max-width: 1024px) {
    .nav-wrapper {
        padding: 0 20px; /* 25px에서 20px로 축소 */
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-item a,
    .nav-menu-link {
        padding: 4px 8px;
        font-size: 13px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    /* 네비게이션 드롭다운 반응형 */
    .nav-dropdown-menu {
        left: auto !important;
        right: 0 !important;
        min-width: 200px;
        max-width: 250px; /* 모바일에서 최대 너비 줄임 */
    }

    /* 유저 드롭다운 반응형 */
    .dropdown-menu {
        min-width: 200px;
        max-width: 250px; /* 모바일에서 최대 너비 줄임 */
    }

    .nav-dropdown-item {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    .nav-dropdown-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 0 10px;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-item a,
    .nav-menu-link {
        padding: 3px 6px;
        font-size: 12px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .user-box {
        padding: 5px 10px;
    }

    .credit-box {
        font-size: 12px;
    }

    /* 네비게이션 드롭다운 모바일 반응형 */
    .nav-dropdown-menu {
        min-width: 180px;
        max-width: 200px; /* 모바일에서 더 작게 */
        padding: 4px;
    }

    /* 유저 드롭다운 모바일 반응형 */
    .dropdown-menu {
        min-width: 180px;
        max-width: 200px; /* 모바일에서 더 작게 */
        padding: 4px;
    }

    .nav-dropdown-item {
        padding: 8px 10px !important;
        font-size: 12px !important;
        gap: 8px !important;
    }
}

/* ===========================================
   네비게이션 팝업 스타일 (메인과 동일)
   =========================================== */

/* 팝업 오버레이 */
.career-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none; /* Vue가 초기화되기 전에는 숨김 */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Vue가 초기화된 후 조건부 표시 */
.career-popup-overlay:not([v-cloak]) {
    display: flex;
}

/* 팝업 본체 */
.career-popup {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 32px 32px 32px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid #f1f3f4;
}

/* 닫기 버튼 */
.popup-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.popup-close-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

/* 팝업 아이콘 */
.popup-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.popup-main-icon {
    width: 50px;
    height: 50px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* 팝업 제목 */
.popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
    line-height: 1.3;
}

/* 팝업 설명 */
.popup-desc {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
}

.popup-desc strong {
    color: #3b82f6;
    font-weight: 600;
}

/* 팝업 버튼들 */
.popup-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    outline: none; /* 포커스 시 아웃라인 제거 */
}

.popup-btn:focus {
    outline: none;
    box-shadow: none;
}

/* 닫기 버튼도 포커스 아웃라인 제거 */
.popup-close-btn:focus {
    outline: none;
    box-shadow: none;
}

/* 메인 버튼 (파란색) */
.popup-btn.main {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.popup-btn.main:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* 서브 버튼 (회색) */
.popup-btn.sub {
    background: #ffffff;
    color: #374151;
    border: 2px solid #d1d5db;
}

.popup-btn.sub:hover {
    background: #f8fafc;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* 또는 텍스트 - 좌우 선 추가 */
.popup-or {
    margin: 16px 0 20px 0;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-or::before,
.popup-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.popup-or::before {
    margin-right: 16px;
}

.popup-or::after {
    margin-left: 16px;
}

.dropdown-menu a:visited,
.dropdown-menu li a:visited {
    color: #334155 !important;
}

.dropdown-menu a:visited .dropdown-icon,
.dropdown-menu li a:visited .dropdown-icon {
    stroke: #334155 !important;
}

.dropdown-menu a:visited span,
.dropdown-menu li a:visited span {
    color: #334155 !important;
}


.demo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    
    
    .demo-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    
    
    
    .demo-badge {
        font-size: 8px;
        padding: 1px 3px;
    }
}










.modal-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1rem;
}

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

.credit-option {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.credit-option:hover {
    border-color: #f97316;
    background: #fef7f0;
    transform: translateY(-1px);
}

.credit-option.active {
    border-color: #f97316;
    background: #fef7f0;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.credit-amount {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.credit-label {
    font-size: 12px;
    color: #64748b;
}

.selected-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
}

.info-label {
    color: #64748b;
    font-size: 14px;
}

.info-value {
    color: #1f2937;
    font-weight: 500;
    font-size: 14px;
}









/* ===========================================
   데모 결제 모달 스타일
   =========================================== */

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    backdrop-filter: blur(4px);
}

.payment-modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.payment-modal-lg {
    max-width: 750px;
}

.payment-modal-content {
    border-radius: 12px;
    border: none;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.payment-modal-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-modal-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
    gap: 8px;
}

.payment-btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.payment-btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.payment-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.payment-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.payment-widget-area {
    margin: 20px 0;
}

.widget-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.payment-method-container,
.agreement-container {
    min-height: 50px;
    margin-bottom: 12px;
}

.payment-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: white;
}

.payment-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    gap: 6px;
}

.payment-btn-primary {
    background: #f97316;
    color: white;
}

.payment-btn-primary:hover:not(:disabled) {
    background: #ea580c;
}

.payment-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.payment-btn-secondary:hover {
    background: #d1d5db;
}

.payment-btn-success {
    background: #10b981;
    color: white;
}

.payment-btn-success:hover:not(:disabled) {
    background: #059669;
}

.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===========================================
   환불정책 안내 스타일
   =========================================== */

.refund-notice-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0 16px 0;
}

.refund-policy-notice {
    margin-top: 20px;
}

.refund-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
}

.refund-notice-icon {
    width: 20px;
    height: 20px;
    stroke: #f59e0b;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 2px;
}

.refund-notice-text {
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    
    .payment-modal-dialog {
        width: 98%;
        margin: 10px;
    }
    
    .payment-modal-body {
        padding: 16px;
    }
    
    .payment-modal-footer {
        padding: 16px;
        flex-direction: column;
    }
    
    .payment-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 환불정책 안내 모바일 반응형 */
    .refund-notice-content {
        padding: 12px;
        gap: 10px;
    }
    
    .refund-notice-icon {
        width: 18px;
        height: 18px;
    }
    
    .refund-notice-text {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* ===========================================
   크레딧 모달 추가 스타일
   =========================================== */

.credit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.credit-modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.credit-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.credit-modal-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-modal-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.credit-btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.credit-btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.credit-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.credit-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: white;
}

.credit-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.credit-btn-primary {
    background: #f97316;
    color: white;
}

.credit-btn-primary:hover:not(:disabled) {
    background: #ea580c;
}

.credit-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.credit-btn-secondary:hover {
    background: #d1d5db;
}

.credit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===========================================
   크레딧 패키지 스타일
   =========================================== */

.credit-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.credit-package {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #ffffff;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.credit-package:hover {
    border-color: #f97316;
    background-color: #fef7f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.credit-package.active {
    border-color: #f97316;
    background-color: #fef7f0;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

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

.package-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.package-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.package-credit {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.package-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.final-price {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.discount-rate {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background-color: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
}

.mypage-popular-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    background: #3b82f6;
    border: 1px solid #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.modal-description {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}