/* ========================================
   css/result.css - 통일된 톤앤매너 버전
======================================== */

/* 공통 wrapper */
.result-page-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* A4 비율 결과지 */
.result-page {
    background: white;
    width: 100%;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto 30px;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.15);
    border-radius: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========================================
   전문 인증서 배너
======================================== */

.result-banner {
    position: relative;
    width: 100%;
    margin: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 3px solid #d4af37;
    overflow: hidden;
    flex-shrink: 0;
}

/* 상단 데코레이션 라인 */
.banner-decoration-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            #d4af37 20%,
            #f4e5b5 50%,
            #d4af37 80%,
            transparent 100%);
}

/* 하단 데코레이션 라인 */
.banner-decoration-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.3) 20%,
            rgba(212, 175, 55, 0.5) 50%,
            rgba(212, 175, 55, 0.3) 80%,
            transparent 100%);
}

.banner-content {
    position: relative;
    padding: 28px 40px 24px 40px;
    color: white;
}

/* ========================================
   배너 헤더 - 날짜를 온라인 테스트 결과와 일렬 배치
======================================== */

.banner-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

/* MENSA 씰 */
.banner-seal {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.banner-seal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 타이틀 그룹 */
.banner-title-group {
    flex: 1;
    padding-right: 0;
    /* 패딩 제거 */
    color: #ffffff;
    margin-top: 16px;
}

.banner-main-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 2px;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
}

.banner-subtitle {
    font-size: 11px;
    font-weight: 400;
    margin: 0 0 12px 0;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
    font-style: italic;
}

/* 구분선 제거 */
.banner-divider {
    display: none;
}

/* 온라인 테스트 결과 + 날짜 일렬 배치 */
.banner-korean-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    margin-top: 8px;
}

.banner-korean {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.banner-date-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.banner-date-inline .date-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-date-inline .date-value {
    font-size: 13px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    color: #d4af37;
}

/* 배너 날짜 박스 숨김 */
.banner-date-box {
    display: none;
}

/* 기존 배너 메타 숨김 */
.banner-meta {
    display: none;
}

/* ========================================
   배너 다음 컨텐츠 영역
======================================== */

.result-page>*:not(.result-banner) {
    padding-left: 18mm;
    padding-right: 18mm;
}

.result-page>.user-info-card:first-of-type,
.result-page>.cert-card:first-of-type {
    margin-top: 15px;
}

.result-page>.result-page-footer {
    margin-top: auto;
    padding-bottom: 15mm;
}

/* ========================================
   베이직 결과 헤더 - 타이틀과 날짜 일렬 배치
======================================== */

.result-page-header {
    display: none;
}

.result-page.basic-result .result-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 15px 0;
    border-bottom: 2px solid #1a1a2e;
    margin-bottom: 20px;
}

.result-page.basic-result {
    padding: 15mm 18mm;
}

.header-title-section {
    flex: 1;
}

.header-title-section h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.header-date-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.date-label {
    font-size: 9px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-value {
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* ========================================
   테스트 메타 정보 (날짜 + 소요시간) - 사용 안함
======================================== */

.test-meta-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    padding: 0 0 12px 0;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 15px;
}

.meta-date,
.meta-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.test-meta-info .meta-label {
    font-size: 9px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-meta-info .meta-value {
    font-size: 12px;
    color: #1a1a2e;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* ========================================
   사용자 정보 카드
======================================== */

.user-info-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.info-label {
    font-size: 10px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 700;
    word-break: break-word;
}

.verification-code {
    font-family: 'Courier New', monospace;
    color: #d4af37;
    font-size: 11px;
    letter-spacing: 1px;
}

/* ========================================
   인증 정보 카드 (기존 호환)
======================================== */

.cert-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.cert-card.basic {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
}

.cert-item {
    text-align: center;
}

.cert-label {
    display: block;
    font-size: 10px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-value {
    display: block;
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 700;
    word-break: break-word;
}

/* ========================================
   종합 점수 섹션 (detail)
======================================== */

.score-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: 18px;
    padding: 0 18mm;
}

.main-score-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 28px 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
}

.score-unit {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 5px;
}

.score-percentile {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
}

.score-rank {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 8px;
}

/* ========================================
   종합 점수 섹션 (basic) - 새 구조
======================================== */

.total-score-section {
    padding: 0;
    margin: 0 0 15px 0;
    width: 100%;
    box-sizing: border-box;
}

.main-score-display {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.main-score-display .score-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.main-score-display .score-value {
    font-size: 56px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
}

.main-score-display .score-unit {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 8px;
}

.main-score-display .score-percentile {
    font-size: 18px;
    color: #ffffff;
    margin-top: 12px;
    font-weight: 600;
}

/* 기존 호환성 유지 */
.score-section.basic {
    display: block;
    padding: 0;
    margin: 0 0 15px 0;
    width: 100%;
    box-sizing: border-box;
}

.main-score-box.large {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border: 2px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.main-score-box.large .score-value {
    font-size: 56px;
    color: #d4af37;
}

.main-score-box.large .percentile {
    font-size: 20px;
    color: #d4af37;
}

/* ========================================
   결과 해석 섹션
======================================== */

.result-interpretation-section {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4af37;
}

.interpretation-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    line-height: 1.7;
}

.interpretation-content h4 {
    font-size: 15px;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.interpretation-content p {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ========================================
   기존 해석 섹션 (호환성)
======================================== */

.interpretation-section {
    margin-bottom: 15px;
    width: 100%;
}

.interpretation-box {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.04), rgba(212, 175, 55, 0.06));
    border-left: 3px solid #d4af37;
    border-radius: 8px;
    padding: 18px;
    line-height: 1.7;
}

.interpretation-box h3 {
    font-size: 17px;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.interpretation-box p {
    margin: 0;
    font-size: 14px;
    color: #1a1a2e;
}

.interpretation-section.basic {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-bottom: 15px;
}

.interpretation-box.simple {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
}

.interpretation-box.simple h4 {
    font-size: 15px;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.interpretation-box.simple p {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ========================================
   업그레이드 프로모션 섹션
======================================== */

.upgrade-promotion-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.promotion-header h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.promotion-subtitle {
    font-size: 11px;
    color: #666;
    margin: 0 0 15px 0;
}

.promotion-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-icon {
    color: #27ae60;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 11px;
    color: #1a1a2e;
    font-weight: 600;
    line-height: 1.4;
}

.upgrade-button {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border: 2px solid #d4af37;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.upgrade-button:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.button-text {
    font-size: 14px;
}

.button-arrow {
    font-size: 18px;
    font-weight: 700;
}

/* ========================================
   기존 업그레이드 CTA (호환성)
======================================== */

.upgrade-cta {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.upgrade-header h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.upgrade-subtitle {
    font-size: 11px;
    color: #666;
    margin: 0 0 12px 0;
}

.upgrade-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.upgrade-btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border: 2px solid #d4af37;
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.upgrade-notice {
    font-size: 9px;
    color: #999;
    margin-top: 10px;
}

/* ========================================
   레벨 박스
======================================== */

.level-box {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 14px;
    border-radius: 12px;
    border-left: 4px solid #d4af37;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.level-box h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.level-box p {
    font-size: 11px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* ========================================
   단계별 성적 - 5개 일렬 배치 (데스크톱)
======================================== */

.stages-section {
    margin-bottom: 16px;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.stage-item {
    background: white;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.3s;
}

.stage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.stage-item h5 {
    font-size: 10px;
    color: #666;
    margin: 0 0 6px 0;
    font-weight: 600;
    line-height: 1.2;
}

.stage-score {
    font-size: 18px;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 3px;
}

.stage-rate {
    font-size: 9px;
    color: #999;
}

.stage-percentile {
    font-size: 8px;
    color: #d4af37;
    font-weight: 600;
    margin-top: 3px;
}

.stage-detail {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

/* ========================================
   그래프 섹션
======================================== */

.charts-section {
    margin-bottom: 16px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.chart-box {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.02) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 10px;
}

.chart-box canvas {
    width: 100% !important;
    height: 90px !important;
}

.chart-label {
    text-align: center;
    font-size: 10px;
    color: #1a1a2e;
    margin: 6px 0 0 0;
    font-weight: 600;
}

.chart-percentile {
    text-align: center;
    font-size: 9px;
    color: #d4af37;
    margin: 3px 0 0 0;
    font-weight: 600;
}

canvas {
    width: 100% !important;
    max-height: 220px !important;
}

/* 전체 점수 차트만 강조 */
.chart-total {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff8f0 100%);
    border: 3px solid #d4af37;
    box-shadow: 0 6px 20px rgba(247, 191, 37, 0.25);
    position: relative;
}

.chart-total::before {
    content: 'Total';
    position: absolute;
    top: 10px;
    left: 15px;
    /* ✅ right → left 변경 */
    background: #d4af37;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;

    font-weight: bold;
    z-index: 10;
}

.chart-total h3 {
    color: #d4af37;
    font-size: 1.4rem;
}

/* 기존 단계별 차트 스타일 유지 */
.score-chart-container:not(.chart-total) {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* ========================================
   개선 가이드
======================================== */

.recommendation-section {
    margin-bottom: 15px;
}

.recommendation-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 13px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.6;
    color: #333;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.recommendation-content h4 {
    font-size: 12px;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.recommendation-content ul {
    margin: 5px 0;
    padding-left: 16px;
}

.recommendation-content li {
    margin-bottom: 4px;
}

/* ========================================
   푸터 - 작은 문구로 수정
======================================== */

.result-page-footer {
    text-align: center;
    font-size: 10px;
    color: #999;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 10px;
    margin-top: auto;
    line-height: 1.8;
}

.footer-disclaimer {
    font-size: 10px;
    color: #666;
    margin: 0 0 6px 0;
}

.footer-notice {
    font-size: 10px;
    color: #999;
    margin: 0 0 4px 0;
}

.footer-warning {
    font-size: 10px;
    color: #d4af37;
    margin: 0;
    font-weight: 600;
}

.result-page-footer.page_bottom {
    margin: 0 auto;
    text-align: center;
    border-top: none;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: #d4af3718;
    padding: 16px 12px;
    max-width: 210mm;
}

.result-page-footer.page_bottom p.footer-notice {
    font-size: 16px;
    color: #836b1e;
}

/* ========================================
   액션 버튼
======================================== */

.action-buttons-container,
.action-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 50px;
    flex-wrap: wrap;
}

.action-buttons-wrapper {
    padding-bottom: 60px;
}

.action-button,
.action-btn {
    background: white;
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #1a1a2e;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover,
.action-btn:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: #d4af37;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.button-icon {
    font-size: 16px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border: 2px solid #d4af37;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   반응형 - 태블릿
======================================== */

@media (max-width: 768px) {
    .result-page {
        margin-bottom: 20px;
    }

    .result-page>*:not(.result-banner) {
        padding-left: 15px;
        padding-right: 15px;
    }

    .result-page.basic-result {
        padding: 15px;
    }

    .result-page.basic-result>* {
        width: 100%;
        box-sizing: border-box;
    }

    /* 헤더 반응형 */
    .result-page.basic-result .result-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 0 12px 0;
    }

    .header-title-section h1 {
        font-size: 20px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .header-date-section {
        align-items: flex-start;
        width: 100%;
    }

    .date-label {
        font-size: 8px;
    }

    .date-value {
        font-size: 12px;
    }

    /* 배너 반응형 */
    .banner-content {
        padding: 70px 20px 18px 20px;
        /* 상단 패딩 증가 */
    }

    .banner-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding-top: 0;
        /* 패딩 제거 */
    }

    .banner-title-group {
        padding-right: 0;
        /* 패딩 제거 */
    }

    .banner-seal {
        width: 100px;
        height: 100px;
    }

    .banner-main-title {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .banner-subtitle {
        font-size: 10px;
    }

    .banner-korean {
        font-size: 13px;
    }

    .banner-divider {
        margin: 6px auto;
    }

    .banner-date-box {
        position: absolute;
        top: 15px;
        right: 15px;
        left: auto;
        padding: 10px 16px;
    }

    .banner-date-label {
        font-size: 8px;
    }

    .banner-date-value {
        font-size: 14px;
    }

    .test-meta-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    .user-info-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cert-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .cert-card.basic {
        grid-template-columns: 1fr;
    }

    .score-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .main-score-box {
        padding: 16px;
    }

    .score-value {
        font-size: 40px;
    }

    .total-score-section,
    .score-section.basic {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0 0 15px 0;
    }

    .main-score-display,
    .score-section.basic .main-score-box.large {
        width: 100%;
        box-sizing: border-box;
    }

    .result-interpretation-section,
    .interpretation-section.basic,
    .interpretation-section.basic .interpretation-box.simple,
    .result-page.basic-result .section-title,
    .upgrade-promotion-section,
    .upgrade-cta {
        width: 100%;
        box-sizing: border-box;
    }

    .promotion-features,
    .upgrade-features {
        grid-template-columns: 1fr;
    }

    .stages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .action-buttons-container,
    .action-buttons-wrapper {
        flex-direction: column;
        padding: 0 15px;
    }

    .action-button,
    .action-btn {
        width: 100%;
        justify-content: center;
    }

    /* 푸터 반응형 */
    .result-page-footer {
        font-size: 8px;
    }

    .footer-disclaimer {
        font-size: 8px;
    }

    .footer-notice,
    .footer-warning {
        font-size: 8px;
    }
}

/* ========================================
   반응형 - 모바일
======================================== */

@media (max-width: 480px) {

    /* 헤더 반응형 */
    .header-title-section h1 {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .header-subtitle {
        font-size: 10px;
    }

    .date-value {
        font-size: 11px;
    }

    /* 배너 반응형 */
    .banner-content {
        padding: 60px 15px 16px 15px;
    }

    .banner-header {
        padding-top: 0;
    }

    .banner-seal {
        width: 80px;
        height: 80px;
    }

    .banner-main-title {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .banner-subtitle {
        font-size: 9px;
    }

    .banner-korean {
        font-size: 12px;
    }

    .banner-date-box {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
    }

    .banner-date-label {
        font-size: 7px;
    }

    .banner-date-value {
        font-size: 13px;
    }

    .test-meta-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        padding: 0 0 10px 0;
    }

    .result-page.basic-result>* {
        width: 100%;
        box-sizing: border-box;
    }

    .user-info-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .total-score-section,
    .score-section.basic {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0 0 15px 0;
    }

    .main-score-display,
    .score-section.basic .main-score-box.large {
        width: 100%;
        box-sizing: border-box;
    }

    .main-score-display .score-value {
        font-size: 48px;
    }

    .result-interpretation-section,
    .interpretation-section.basic,
    .interpretation-section.basic .interpretation-box.simple,
    .result-page.basic-result .section-title,
    .upgrade-promotion-section,
    .upgrade-cta {
        width: 100%;
        box-sizing: border-box;
    }

    .stages-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* 푸터 반응형 */
    .result-page-footer {
        font-size: 7px;
        padding-top: 10px;
    }

    .footer-disclaimer {
        font-size: 7px;
    }

    .footer-notice,
    .footer-warning {
        font-size: 7px;
    }
}

/* ========================================
   PDF 생성 최적화
======================================== */

@media print {
    body {
        background: white;
    }

    .result-page-wrapper {
        margin: 0;
        padding: 0;
    }

    .result-page {
        max-width: 210mm;
        width: 210mm;
        min-height: 297mm;
        height: auto;
        box-shadow: none;
        border-radius: 0;
        page-break-after: avoid;
        margin: 0;
        padding: 0;
    }

    .result-page>*:not(.result-banner) {
        padding-left: 18mm;
        padding-right: 18mm;
    }

    .result-banner {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        page-break-inside: avoid;
    }

    .banner-seal {
        box-shadow: none;
    }

    .banner-date-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background: linear-gradient(135deg, #d4af37 0%, #c4992d 100%) !important;
    }

    .action-buttons-container,
    .action-buttons-wrapper,
    #header-placeholder,
    #footer-placeholder {
        display: none !important;
    }

    .result-page-footer {
        padding-bottom: 15mm;
        font-size: 8px;
    }

    .footer-disclaimer {
        font-size: 9px;
    }

    .footer-notice,
    .footer-warning {
        font-size: 8px;
    }
}

/* PDF 렌더링 모드 - 테두리 포함 */
.pdf-rendering {
    width: 210mm !important;
    height: auto !important;
    min-height: 297mm;
    max-width: 210mm !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0.3mm solid #e9ecef !important;
    box-sizing: border-box !important;
}

.pdf-rendering>*:not(.result-banner, .result-page-header) {
    padding-left: 18mm !important;
    padding-right: 18mm !important;
}

.pdf-rendering .result-page-header {
    margin-left: 18mm !important;
    margin-right: 18mm !important;
}

.pdf-rendering .result-banner {
    margin: 0 !important;
    width: 100% !important;
}

.pdf-rendering.basic-result {
    padding-top: 15mm !important;
    padding-bottom: 15mm !important;
}

.pdf-rendering .cert-card,
.pdf-rendering .upgrade-cta {
    margin-left: 18mm !important;
    margin-right: 18mm !important;

}

.pdf-rendering .upgrade-cta {
    width: calc(100% - 36mm ) !important;
}

.pdf-rendering>* {
    page-break-inside: avoid;
}