/* ===== 크레딧 적립 안내 페이지 ===== */
.credit-info-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* 헤더 */
.credit-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%);
    border-radius: 12px;
    margin-bottom: 36px;
}
.credit-hero h1 {
    margin: 0 0 12px;
    font-size: 30px;
    color: #111827;
}
.credit-hero-sub {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

/* 섹션 공통 */
.credit-section {
    margin-bottom: 48px;
}
.credit-section h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #111827;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}
.credit-section-sub {
    color: #6b7280;
    margin: 0 0 20px;
    font-size: 14px;
}

/* 적립 방법 (3단계) */
.credit-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.credit-step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
}
.credit-step-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.credit-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #111827;
}
.credit-step p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* 적립 금액 카드 그리드 */
.credit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.credit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* 카드 헤더 색상 */
.credit-card-header {
    padding: 18px 20px;
    color: #fff;
    text-align: center;
}
.credit-card-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
}
.credit-card-header .subtitle {
    font-size: 13px;
    opacity: 0.9;
}
.credit-card-header.purple { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.credit-card-header.green  { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.credit-card-header.blue   { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }

.credit-card-body {
    padding: 16px;
}

/* 적립 표 */
.credit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.credit-table thead th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}
.credit-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}
.credit-table tbody tr:last-child td {
    border-bottom: none;
}
.credit-table .period-name {
    font-weight: 600;
    color: #374151;
}
.credit-table .credit-amount {
    color: #2563eb;
    font-weight: 600;
}

.credit-table-note {
    margin: 20px 0 0;
    padding: 14px 16px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    color: #78350f;
    font-size: 13px;
    line-height: 1.8;
}
.credit-table-note b { color: #92400e; }

/* FAQ */
.credit-faq details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.credit-faq summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    list-style: none;
    position: relative;
    padding-right: 40px;
    transition: background 0.15s;
}
.credit-faq summary::-webkit-details-marker { display: none; }
.credit-faq summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #9ca3af;
    transition: transform 0.2s;
}
.credit-faq details[open] summary::after {
    content: '−';
    color: #2563eb;
}
.credit-faq summary:hover {
    background: #f9fafb;
}
.credit-faq details[open] summary {
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.credit-faq details > div {
    padding: 16px 18px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
}
.credit-faq details > div small {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
}
.credit-faq details > div a {
    color: #2563eb;
    text-decoration: underline;
}

/* CTA */
.credit-cta {
    text-align: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 24px;
    margin-top: 24px;
}
.credit-cta h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #111827;
}
.credit-cta .btn-lg {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
}

/* 모바일 */
@media (max-width: 640px) {
    .credit-hero h1 { font-size: 24px; }
    .credit-steps { grid-template-columns: 1fr; }
    .credit-section h2 { font-size: 19px; }
    .credit-table { font-size: 13px; }
    .credit-table thead th,
    .credit-table tbody td { padding: 8px 4px; }
}
