/* ==========================================================================
   도파급스탁 (DOPACLASS STOCK PRO) - 프리미엄 결제 콕핏 전용 독립 스타일시트
   기존 웹 디자인과 100% 격리된 독립 모듈 구조 (수정 및 유지보수 최적화)
   ========================================================================== */

/* 결제 컨테이너 전체 래퍼 */
.checkout-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    color: #f8fafc;
    font-family: var(--font-body, 'Inter', sans-serif);
    box-sizing: border-box;
    width: 100%;
}

.checkout-wrapper * {
    box-sizing: border-box;
}

/* 상단 네비게이션 & 뒤로가기 */
.checkout-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #A5B2CC;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-checkout-back:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.checkout-header-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-header-desc {
    font-size: 14px;
    color: #A5B2CC;
    margin: 0 0 32px 0;
}

/* 7:5 2열 그리드 레이아웃 (반응형: 1024px 이하 1열) */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 7fr 5fr;
        gap: 32px;
    }
}

/* 글래스모피즘 공통 카드 */
.checkout-card {
    background: rgba(14, 20, 34, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* 섹션 타이틀 헤더 */
.checkout-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.checkout-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.checkout-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #00e5ff;
    font-size: 13px;
    font-weight: 800;
    font-family: var(--font-title, 'Outfit', sans-serif);
}

.checkout-section-sub {
    font-size: 12.5px;
    color: #A5B2CC;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* 3단 플랜 선택 카드 그리드 */
.plan-select-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .plan-select-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plan-item-card {
    background: rgba(20, 29, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-item-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(26, 38, 62, 0.8);
    transform: translateY(-2px);
}

/* 플랜 활성화 상태 */
.plan-item-card.active {
    background: rgba(25, 36, 60, 0.95);
    border: 1.5px solid #FF9F00 !important;
    box-shadow: 0 0 20px rgba(255, 159, 0, 0.3);
}

.plan-item-card.active-premium {
    border: 1.5px solid #ff2e93 !important;
    box-shadow: 0 0 20px rgba(255, 46, 147, 0.3);
}

.plan-item-card.active-standard {
    border: 1.5px solid #00e5ff !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.plan-card-tag {
    position: absolute;
    top: -10px;
    left: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-popular {
    background: #ff2e93;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 46, 147, 0.4);
}

.tag-best {
    background: #FF9F00;
    color: #0b0f19;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(255, 159, 0, 0.4);
}

.plan-card-tier {
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-title, 'Outfit', sans-serif);
    letter-spacing: 1px;
}

.plan-card-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 6px 0;
}

.plan-card-sub {
    font-size: 12.5px;
    color: #A5B2CC;
    margin: 0;
    line-height: 1.4;
}

.plan-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 14px 0 10px 0;
}

.plan-card-price-label {
    font-size: 11.5px;
    color: #A5B2CC;
    margin-bottom: 2px;
}

.plan-card-price-main {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-title, 'Outfit', sans-serif);
    letter-spacing: -0.3px;
}

.plan-card-price-orig {
    font-size: 13px;
    color: #64748b;
    text-decoration: line-through;
    margin-left: 6px;
    font-family: var(--font-title, 'Outfit', sans-serif);
    font-weight: 600;
}

.plan-card-total {
    font-size: 12.5px;
    font-weight: 700;
    color: #2eff93;
    margin-top: 4px;
    font-family: var(--font-title, 'Outfit', sans-serif);
}

/* 플랜 하단 안내 박스 */
.checkout-notice-box {
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

/* 2단 결제 수단 선택 그리드 */
.pay-method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .pay-method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pay-method-card {
    background: rgba(20, 29, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.pay-method-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(26, 38, 62, 0.8);
}

.pay-method-card.active {
    border: 1.5px solid #00e5ff !important;
    background: rgba(20, 35, 58, 0.95);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.pay-method-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pay-method-card.active .pay-method-radio {
    border-color: #00e5ff;
    background: #00e5ff;
}

.pay-method-radio-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0b0f19;
}

.pay-method-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pay-method-desc {
    font-size: 12.5px;
    color: #A5B2CC;
    margin: 0;
    line-height: 1.45;
}

.pay-logos-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    min-height: 26px;
    flex-wrap: nowrap;
}

.easy-pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.easy-pay-logo:hover {
    transform: translateY(-1px) scale(1.05);
}

.pay-method-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #00e5ff;
    margin-top: 8px;
    font-family: var(--font-title, 'Outfit', sans-serif);
}

/* 보안 보증 패널 */
.security-banner {
    background: rgba(16, 24, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(46, 255, 147, 0.1);
    border: 1px solid rgba(46, 255, 147, 0.3);
    color: #2eff93;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 우측 5컬럼 주문 요약 스티키 패널 */
.checkout-summary-sticky {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .checkout-summary-sticky {
        position: sticky;
        top: 80px;
    }
}

.summary-card {
    background: rgba(14, 20, 36, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.summary-top-glow-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00e5ff 0%, #ff2e93 50%, #FF9F00 100%);
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.summary-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* 영수증 행 리스트 */
.summary-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    color: #A5B2CC;
}

.summary-val {
    color: #f1f5f9;
    font-weight: 700;
    font-family: var(--font-title, 'Outfit', sans-serif);
}

.summary-val-discount {
    color: #2eff93;
    font-weight: 700;
    font-family: var(--font-title, 'Outfit', sans-serif);
    letter-spacing: -0.2px;
}

.summary-val-orig {
    color: #64748b;
    text-decoration: line-through;
    font-family: var(--font-title, 'Outfit', sans-serif);
    font-weight: 600;
}

/* 총 결제 금액 하이라이트 박스 */
.total-price-box {
    background: linear-gradient(135deg, rgba(255, 159, 0, 0.08) 0%, rgba(20, 28, 45, 0.8) 100%);
    border: 1px solid rgba(255, 159, 0, 0.35);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.total-price-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.total-price-label {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-price-number {
    font-size: 32px;
    font-weight: 800;
    color: #FF9F00;
    font-family: var(--font-title, 'Outfit', sans-serif);
    letter-spacing: -0.5px;
    text-shadow: 0 0 18px rgba(255, 159, 0, 0.35);
}

.total-price-monthly {
    text-align: right;
    font-size: 13px;
    color: #00e5ff;
    font-weight: 700;
    font-family: var(--font-title, 'Outfit', sans-serif);
    margin-top: 4px;
    letter-spacing: -0.2px;
}

/* 약관 동의 체크박스 */
.checkout-terms-box {
    background: rgba(6, 11, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 11px 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #A5B2CC;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.checkout-terms-box label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-terms-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FF9F00;
    margin-top: 1px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkout-terms-box a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.2s;
}

.checkout-terms-box a:hover {
    color: #00e5ff;
}

/* 대형 네온 결제 집행 CTA 버튼 */
.btn-checkout-submit {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF9F00 0%, #ff6b00 100%);
    color: #0b0f19;
    font-family: var(--font-title, 'Outfit', sans-serif);
    font-size: 16.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.3px;
    box-shadow: 0 0 24px rgba(255, 159, 0, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-checkout-submit:hover {
    background: linear-gradient(135deg, #ffb326 0%, #ff7d1a 100%);
    box-shadow: 0 0 32px rgba(255, 159, 0, 0.55);
    transform: translateY(-2px);
}

.btn-checkout-submit:active {
    transform: translateY(0) scale(0.99);
}

/* 하단 2대 신뢰 안심 보증 마크 */
.summary-trust-list {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: #A5B2CC;
}

.summary-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-trust-item strong {
    color: #e2e8f0;
}

/* ==========================================================================
   우측 상단 인증키 적용 대상 선택 카드 (신규 발급 vs 기존 키 연장)
   ========================================================================== */
.key-target-card {
    background: rgba(14, 20, 36, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 159, 0, 0.28);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 159, 0, 0.06);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.key-target-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.key-target-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #FF9F00;
    background: rgba(255, 159, 0, 0.12);
    border: 1px solid rgba(255, 159, 0, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-title, 'Outfit', sans-serif);
}

/* 2단 탭 토글 */
.key-target-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.key-target-tab-btn {
    background: rgba(20, 29, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #A5B2CC;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    user-select: none;
}

.key-target-tab-btn:hover {
    background: rgba(26, 38, 62, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.key-target-tab-btn.active.mode-new {
    background: rgba(46, 255, 147, 0.12);
    border: 1.5px solid #2eff93;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(46, 255, 147, 0.25);
}

.key-target-tab-btn.active.mode-renew {
    background: rgba(0, 229, 255, 0.12);
    border: 1.5px solid #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.key-target-tab-main {
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.key-target-tab-sub {
    font-size: 11px;
    color: #A5B2CC;
    font-weight: 500;
}

.key-target-tab-btn.active .key-target-tab-sub {
    color: #e2e8f0;
}

/* 동적 패널: 새 키 발급 안내 */
.key-target-panel-new {
    background: rgba(46, 255, 147, 0.05);
    border: 1px solid rgba(46, 255, 147, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #A5B2CC;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.key-target-panel-new strong {
    color: #ffffff;
}

/* 동적 패널: 기존 키 기간 연장 (드롭다운) */
.key-target-panel-renew {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-select-wrap {
    position: relative;
}

.key-select-custom {
    width: 100%;
    background: rgba(10, 16, 28, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 8px;
    padding: 9px 34px 9px 12px;
    color: #ffffff;
    font-family: var(--font-title, 'Outfit', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.key-select-custom:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.key-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #00e5ff;
}

.key-renew-preview-box {
    background: rgba(0, 229, 255, 0.04);
    border: 1px dashed rgba(0, 229, 255, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: #A5B2CC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.4;
}

.key-renew-highlight {
    color: #2eff93;
    font-weight: 800;
    font-family: var(--font-title, 'Outfit', sans-serif);
}

/* ==========================================================================
   📱 모바일 & 소형 디바이스 초정밀 반응형 (320px ~ 768px 완벽 피팅)
   ========================================================================== */
.checkout-ssl-badge {
    font-size: 12px;
    color: #A5B2CC;
    font-family: var(--font-title, 'Outfit', sans-serif);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    /* 메인 컨텐츠 영역의 불필요한 이중 패딩 최적화 */
    #main-content:has(.checkout-wrapper) {
        padding: 15px 10px 40px !important;
    }

    .checkout-wrapper {
        padding: 8px 0 50px;
        width: 100%;
        max-width: 100%;
    }

    /* 상단 뒤로가기 & 보안 뱃지 정렬 */
    .checkout-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
    }

    .btn-checkout-back {
        font-size: 12px;
        padding: 7px 12px;
    }

    .checkout-ssl-badge {
        font-size: 11px;
    }

    /* 대제목 및 설명 */
    .checkout-header-title {
        font-size: 21px;
        gap: 8px;
        margin-bottom: 4px;
    }

    .checkout-header-title svg {
        width: 21px;
        height: 21px;
    }

    .checkout-header-desc {
        font-size: 12.5px;
        margin-bottom: 18px;
        line-height: 1.45;
    }

    .checkout-grid {
        gap: 18px;
    }

    /* 글래스모피즘 카드 패딩 슬림화 (가용 폭 극대화) */
    .checkout-card {
        padding: 16px 13px;
        border-radius: 14px;
    }

    .checkout-section-header {
        margin-bottom: 14px !important;
    }

    .checkout-step-title {
        font-size: 15px;
        gap: 8px;
    }

    .checkout-step-num {
        width: 22px;
        height: 22px;
        font-size: 11.5px;
    }

    /* 플랜 선택 카드 1열 정렬 */
    .plan-select-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .plan-item-card {
        padding: 14px 12px;
        border-radius: 10px;
    }

    .plan-card-name {
        font-size: 16px;
        margin: 6px 0 4px 0;
    }

    .plan-card-divider {
        margin: 10px 0 8px 0;
    }

    .plan-card-price-main {
        font-size: 20px;
    }

    .plan-card-total {
        font-size: 12px;
    }

    .checkout-notice-box {
        padding: 9px 11px;
        font-size: 11.5px;
        line-height: 1.45;
    }

    /* 결제 수단 그리드 모바일 1열 */
    .pay-method-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin-bottom: 12px;
    }

    .pay-method-card {
        padding: 14px 13px;
        border-radius: 10px;
        gap: 8px;
    }

    .pay-method-title {
        font-size: 14px;
    }

    .pay-logos-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* 보안 배너 */
    .security-banner {
        padding: 11px 12px;
        gap: 10px;
        border-radius: 10px;
    }

    .security-banner-icon {
        width: 32px;
        height: 32px;
    }

    /* 인증키 선택 카드 */
    .key-target-card {
        padding: 16px 13px;
        border-radius: 14px;
    }

    .key-target-tabs {
        gap: 6px;
        margin-bottom: 10px;
    }

    .key-target-tab-btn {
        padding: 8px 6px;
    }

    .key-target-tab-main {
        font-size: 12px;
        gap: 4px;
    }

    .key-target-tab-sub {
        font-size: 10px;
    }

    .key-select-custom {
        font-size: 11.5px;
        padding: 8px 30px 8px 10px;
    }

    .key-renew-preview-box {
        padding: 7px 10px;
        font-size: 11px;
    }

    .key-target-panel-new {
        padding: 9px 10px;
        font-size: 11.5px;
    }

    /* 주문 요약 영수증 카드 */
    .summary-card {
        padding: 18px 13px;
        border-radius: 14px;
    }

    .summary-title {
        font-size: 15.5px;
    }

    .summary-table {
        font-size: 12.5px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .total-price-box {
        padding: 14px 13px;
        border-radius: 10px;
        margin-bottom: 14px;
    }

    .total-price-number {
        font-size: 26px;
    }

    .total-price-monthly {
        font-size: 12px;
    }

    .checkout-terms-box {
        padding: 9px 10px;
        font-size: 11px;
        gap: 8px;
    }

    .checkout-terms-box label {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.4;
        word-break: keep-all;
    }

    .btn-checkout-submit {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 10px;
    }
}

/* 380px 이하 초소형 스마트폰 (아이폰 SE, 구형 갤럭시 등) 극세 피팅 */
@media (max-width: 380px) {
    .checkout-header-title {
        font-size: 19px;
    }

    .checkout-card,
    .key-target-card,
    .summary-card {
        padding: 13px 9px;
    }

    .plan-card-price-main {
        font-size: 18px;
    }

    .total-price-number {
        font-size: 22px;
    }

    .btn-checkout-submit {
        font-size: 14px;
        padding: 13px 10px;
    }
}

/* ==========================================================================
   포트원 V2 & KG이니시스 결제창 폴더블/태블릿 화면 자동 피팅 (사이드 짤림 방지)
   ========================================================================== */
iframe[src*="portone"],
iframe[src*="iamport"],
iframe[src*="inicis"],
div[id*="portone"],
div[class*="portone"],
[data-portone-ui-container] {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 700px) and (min-width: 481px) {
    iframe[src*="portone"],
    iframe[src*="iamport"],
    iframe[src*="inicis"] {
        transform-origin: center center !important;
        transform: scale(0.92) !important;
    }
}

/* ==========================================================================
   실시간 무통장 계좌이체 전용 카드 & 복사 버튼 스타일
   ========================================================================== */
.bank-transfer-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-copy-bank-account:hover {
    background: rgba(0, 229, 255, 0.25) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
    transform: translateY(-1px);
}

.btn-copy-bank-account:active {
    transform: translateY(1px);
}

.btn-copy-sub-account:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.btn-copy-sub-account:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .bank-transfer-card {
        padding: 14px 15px !important;
    }
    .bank-transfer-card .btn-copy-bank-account {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }
}

/* ==========================================================================
   계좌이체 신청 인라인 대기 패널 스타일
   ========================================================================== */
.bank-transfer-pending-box {
    animation: fadeInPendingBox 0.3s ease-out;
}

@keyframes fadeInPendingBox {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bank-transfer-pending-box input:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
}

.btn-cancel-transfer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-cancel-transfer:hover {
    background: rgba(255, 75, 75, 0.12) !important;
    border-color: rgba(255, 75, 75, 0.4) !important;
    color: #ff6b6b !important;
}

.btn-cancel-transfer:active {
    transform: translateY(1px);
}


