@charset "UTF-8";

/* ==========================================================================
   1. 요금제 외곽 컨테이너 & 타이틀 헤더
   ========================================================================== */
.pricing-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    box-sizing: border-box;
    flex: 1;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 48px;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-hero h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.pricing-hero p {
    font-size: 0.98rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   2. 정기 멤버십 요금제 3열 그리드 & 카드
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto 50px;
    }
}

.pricing-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

/* MOST POPULAR (PRO 플랜 하이라이트) */
.pricing-card.is-popular {
    background: linear-gradient(180deg, #1e293b 0%, #151d30 100%);
    border: 1.5px solid #6366f1;
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.35);
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 플랜 헤더 (이름 및 가격) */
.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.plan-name .text-primary { color: #60a5fa !important; }
.plan-name .text-indigo  { color: #818cf8 !important; }
.plan-name .text-purple  { color: #c084fc !important; }

.plan-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.plan-period {
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 600;
}

/* 크레딧 제공량 뱃지 알약 */
.credit-pill {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.coin-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #cbd5e1;
    font-weight: 700;
}

.coin-badge {
    color: #fbbf24;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.credit-num {
    font-size: 0.98rem;
    font-weight: 800;
    color: #38bdf8;
}

/* 혜택 리스트 (점 제거 및 체크 아이콘 박스화) */
.feature-list {
    list-style: none !important;
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1; /* 버튼을 카드 하단으로 일괄 밀착 */
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.feature-list li b {
    color: #ffffff;
}

.feature-icon-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 카드 하단 CTA 버튼 규격 */
.btn-charge {
    width: 100%;
    padding: 13px 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    text-decoration: none;
}

.btn-charge.btn-fill {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.btn-charge.btn-fill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
    filter: brightness(1.08);
}

.btn-charge.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-charge.btn-outline:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #ffffff;
}

.btn-charge.btn-current {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    cursor: default;
}

.btn-charge.btn-disabled {
    background: rgba(255, 255, 255, 0.04);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

/* ==========================================================================
   3. 추가 크레딧 충전 (Add-on 토큰 팩 그리드 - 중앙 정렬)
   ========================================================================== */
.addon-section {
    margin-top: 60px;
}

.addon-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
}

@media (max-width: 768px) {
    .addon-header-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

.addon-header-left h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addon-header-left p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
}

.addon-badge-policy {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* 카드 개수에 맞춰 자동으로 가운데 정렬되는 플렉스 컨테이너 */
.addon-grid {
    display: flex !important;
    justify-content: center !important; /* 화면 중앙 정렬 */
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.addon-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    /* 카드가 너무 좁거나 넓어지지 않도록 고정폭 부여 */
    width: 100%;
    max-width: 320px;
    flex: 0 1 320px;
}

.addon-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.addon-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.addon-rollover {
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 7px;
    border-radius: 6px;
}

.addon-credit-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.addon-credit-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.addon-credit-unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: #818cf8;
}

.addon-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.addon-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f59e0b;
}

.btn-addon-charge {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-addon-charge:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* ==========================================================================
   4. 법적 고지 / 환불 규정 다크 카드
   ========================================================================== */
.pricing-policy-card {
    max-width: 1100px;
    width: 100%;
    margin: 50px auto 0;
    padding: 26px 30px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.75;
    box-sizing: border-box;
}

.pricing-policy-card h6 {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-policy-card ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-policy-card li b {
    color: #f8fafc;
}

.pricing-policy-card code {
    background: #0f172a;
    color: #818cf8;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: monospace;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .pricing-container {
        padding: 30px 15px 50px;
    }
    .pricing-policy-card {
        padding: 20px;
    }
}

/* ==========================================================================
   5. 계좌이체 신청 모달 폼 컨트롤 (인풋 명도 및 포커스 보정)
   ========================================================================== */
#bankTransferModal .modal-content {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* 활성 입력창 (입금자명, 휴대폰번호, 사업자번호) */
#bankTransferModal .form-control {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#bankTransferModal .form-control::placeholder {
    color: #64748b !important;
}

#bankTransferModal .form-control:focus {
    border-color: #6366f1 !important;
    background-color: #243047 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
    outline: none;
}

/* 읽기 전용 인풋 (선택 상품, 입금 금액, 신청 계정) */
#bankTransferModal .form-control[readonly] {
    background-color: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    cursor: not-allowed;
}

/* 입금 금액 강조 */
#bankTransferModal #btModalAmountDisp {
    color: #f59e0b !important;
    font-size: 1.05rem;
}

/* 영수증 셀렉트박스 */
#bankTransferModal .form-select {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

#bankTransferModal .form-select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
    outline: none;
}