/* ============================================================
   CEO DNA Diagnostic — 검정+골드 베이스 (TBA 톤 일관성)
   ============================================================ */

/* Body & 가로 스크롤 차단 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================================
   공통 버튼
   ============================================================ */
.cdna-btn-primary {
    background: #D4AF37;
    color: #000;
    padding: 16px 32px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
    border: 2px solid #D4AF37;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.cdna-btn-primary:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}
.cdna-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cdna-btn-ghost {
    background: transparent;
    color: #fff;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cdna-btn-ghost:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}
.cdna-btn-ghost:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cdna-btn-gold {
    display: inline-block;
    background: #D4AF37;
    color: #000;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #D4AF37;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cdna-btn-gold:hover {
    background: #fff;
    border-color: #fff;
}

/* ============================================================
   인트로 메타리스트
   ============================================================ */
.cdna-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cdna-meta-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}
.cdna-meta-list li:last-child { border-bottom: none; }
.cdna-meta-list li i { width: 20px; text-align: center; }

/* ============================================================
   알림 박스
   ============================================================ */
.cdna-notice {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(212,175,55,0.06);
    border-left: 3px solid #D4AF37;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.6;
}
.cdna-notice i { font-size: 18px; color: #D4AF37; flex-shrink: 0; padding-top: 2px; }
.cdna-notice strong { display: block; color: #fff; margin-bottom: 4px; font-weight: 700; }
.cdna-notice p { margin: 0; }
.cdna-notice--warn { background: rgba(255,180,50,0.06); border-left-color: #FFC857; }
.cdna-notice--warn i { color: #FFC857; }
.cdna-notice--ok { background: rgba(80,200,120,0.08); border-left-color: #50C878; }
.cdna-notice--ok i { color: #50C878; }

/* ============================================================
   필드 (input/select/checkbox)
   ============================================================ */
.cdna-field { display: flex; flex-direction: column; gap: 8px; }
.cdna-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
}
.cdna-required { color: #D4AF37; font-weight: 700; }
.cdna-input,
.cdna-select {
    width: 100%;
    padding: 16px 18px;
    background: #1A1A1A;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.15s ease;
}
.cdna-input:focus,
.cdna-select:focus {
    outline: none;
    border-color: #D4AF37;
    background: #222;
}
.cdna-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23D4AF37' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}
.cdna-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}
.cdna-checkbox input { width: 18px; height: 18px; accent-color: #D4AF37; }

/* ============================================================
   진행률 바
   ============================================================ */
.cdna-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.cdna-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #f0d567);
    transition: width 0.3s ease;
}

/* ============================================================
   문항 카드 (퀴즈)
   ============================================================ */
.cdna-question {
    background: #0F0F0F;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    transition: border-color 0.2s ease;
}
.cdna-question:hover { border-color: rgba(212,175,55,0.3); }
.cdna-question-head {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.cdna-question-num {
    flex-shrink: 0;
    color: #D4AF37;
    font-weight: 800;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding-top: 2px;
    min-width: 36px;
}
.cdna-question-text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    color: #fff;
}

/* 5점 척도 */
.cdna-likert {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.cdna-likert-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #1A1A1A;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.cdna-likert-opt:hover {
    border-color: rgba(212,175,55,0.5);
    background: #222;
}
.cdna-likert-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cdna-likert-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.15s ease;
}
.cdna-likert-opt.is-selected {
    border-color: #D4AF37;
    background: rgba(212,175,55,0.12);
}
.cdna-likert-opt.is-selected .cdna-likert-dot {
    border-color: #D4AF37;
    background: #D4AF37;
    box-shadow: inset 0 0 0 3px #1A1A1A;
}
.cdna-likert-label {
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.cdna-likert-opt.is-selected .cdna-likert-label {
    color: #fff;
    font-weight: 600;
}

/* 모바일 5점 척도: 세로 정렬은 유지하되 폰트만 축소 */
@media (max-width: 480px) {
    .cdna-likert { gap: 4px; }
    .cdna-likert-opt { padding: 10px 2px; }
    .cdna-likert-label { font-size: 10px; }
    .cdna-likert-dot { width: 14px; height: 14px; }
    .cdna-question { padding: 18px; }
    .cdna-question-text { font-size: 15px; }
}

/* ============================================================
   결과 페이지
   ============================================================ */
.cdna-result-card {
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cdna-result-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 250px; height: 250px;
    border: 2px solid rgba(212,175,55,0.15);
    transform: rotate(45deg);
    pointer-events: none;
}
.cdna-result-fullcode {
    font-size: 56px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    color: #D4AF37;
    margin-bottom: 32px;
    word-break: break-all;
    text-shadow: 0 0 30px rgba(212,175,55,0.3);
    text-align: center !important;
    display: block;
}
@media (max-width: 768px) {
    .cdna-result-fullcode { font-size: 40px !important; }
}

.cdna-result-codes {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    text-align: center !important;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .cdna-result-codes { flex-direction: row; align-items: stretch; justify-content: center; }
}

.cdna-result-code-block {
    flex: 1;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    width: 100%;
}
.cdna-result-divider {
    width: 100%; height: 1px;
    background: rgba(255,255,255,0.1);
}
@media (min-width: 640px) {
    .cdna-result-divider { width: 1px; height: auto; }
}

.cdna-result-label {
    font-size: 18px !important;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #999 !important;
    margin-bottom: 14px;
    text-transform: uppercase;
    text-align: center;
}
/* === 결과 페이지 코드 텍스트 강제 크기 (Final v2 A항목) === */
.cdna-result-code-text {
    font-size: 28px !important;
    font-weight: 900 !important;
    margin-bottom: 12px;
    line-height: 1.15;
    text-align: center !important;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.cdna-result-sound {
    font-size: 24px !important;
    color: rgba(255,255,255,0.6) !important;
    margin-left: 0;
    font-weight: 700 !important;
}
.cdna-result-nick {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: center !important;
}
.cdna-result-line {
    font-size: 16px !important;
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center !important;
    max-width: 32em;
}
@media (max-width: 768px) {
    .cdna-result-code-text { font-size: 24px !important; }
    .cdna-result-sound { font-size: 20px !important; }
    .cdna-result-nick { font-size: 20px !important; }
    .cdna-result-line { font-size: 15px !important; }
}

/* 섹션 타이틀 */
.cdna-result-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #D4AF37;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* 차트 영역 */
.cdna-chart-wrap {
    background: #0F0F0F;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 20px;
    height: 380px;
}
@media (max-width: 480px) {
    .cdna-chart-wrap { padding: 12px; height: 340px; }
}

/* 8축 텍스트 리스트 — 양극 표시 (좌/우 라벨+%) */
.cdna-axis-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cdna-axis-row {
    background: #0F0F0F;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px 18px;
}
/* 양극 레이아웃 */
.cdna-axis-row-poles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.cdna-axis-pole {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.cdna-axis-pole--right { justify-content: flex-end; }
.cdna-axis-pole-letter {
    font-family: 'Inter', monospace;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}
.cdna-axis-pole-label {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}
.cdna-axis-pole-pct {
    font-weight: 700;
    font-size: 15px;
    font-family: 'Inter', monospace;
    min-width: 44px;
    text-align: center;
}
/* 활성/비활성 색상 */
.cdna-axis-pole.is-active .cdna-axis-pole-letter { color: #D4AF37; }
.cdna-axis-pole.is-active .cdna-axis-pole-label  { color: #fff; }
.cdna-axis-pole.is-active .cdna-axis-pole-pct    { color: #D4AF37; }
.cdna-axis-pole.is-muted .cdna-axis-pole-letter,
.cdna-axis-pole.is-muted .cdna-axis-pole-label,
.cdna-axis-pole.is-muted .cdna-axis-pole-pct {
    color: rgba(255,255,255,0.35);
}
/* 양극 막대 */
.cdna-axis-bar-dual {
    display: flex;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.cdna-axis-bar-left,
.cdna-axis-bar-right {
    display: block;
    height: 100%;
    transition: width 0.4s ease;
}
.cdna-axis-bar-left.is-active,
.cdna-axis-bar-right.is-active {
    background: #D4AF37;
}
.cdna-axis-bar-left.is-muted,
.cdna-axis-bar-right.is-muted {
    background: rgba(255,255,255,0.18);
}
/* \ucd95\ubcc4 \ud55c\uc904 \uc124\uba85 (E\ud56d\ubaa9) — \uac15\ub3c4 \ub77c\ubca8 \ubc14\ub85c \uc704 */
.cdna-axis-desc {
    margin: 8px 0 0;
    font-size: 14px;
    color: #999;
    text-align: center;
    font-weight: 400;
    line-height: 1.5;
}
.cdna-axis-band {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    text-align: center;
    font-weight: 600;
}

/* 모바일에서 한 줄 유지 — 라벨 줄임 없이 폰트만 축소 */
@media (max-width: 480px) {
    .cdna-axis-pole-letter { font-size: 17px; }
    .cdna-axis-pole-label  { font-size: 13px; }
    .cdna-axis-pole-pct    { font-size: 13px; min-width: 38px; }
    .cdna-axis-pole { gap: 6px; }
    .cdna-axis-row-poles { gap: 8px; }
    .cdna-axis-row { padding: 14px; }
    .cdna-axis-band { font-size: 13px; }
}

/* \uc694\uc57d \ud14d\uc2a4\ud2b8 (D\ud56d\ubaa9: 3\ub2e8 \uad6c\uc870) */
.cdna-result-summary {
    background: #0F0F0F;
    border-left: 3px solid #D4AF37;
    padding: 24px 28px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.cdna-summary-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cdna-summary-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #D4AF37;
    text-transform: uppercase;
    margin: 0;
}
.cdna-summary-body {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    margin: 0;
}
@media (max-width: 768px) {
    .cdna-result-summary { font-size: 15px; padding: 20px; gap: 18px; }
    .cdna-summary-body { font-size: 15px; }
}

/* 결과 폼 */
.cdna-result-form-wrap {
    background: #0F0F0F;
    border: 1px solid rgba(212,175,55,0.2);
    padding: 28px 24px;
}

/* PRO CTA */
.cdna-pro-cta {
    background: linear-gradient(135deg, #1A1A1A, #0F0F0F);
    border: 1px solid rgba(212,175,55,0.4);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 768px) {
    .cdna-pro-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }
}

/* 정보입력 페이지 hint */
.cdna-field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}
.cdna-field-hint.is-error {
    color: #ff6b6b;
}

/* 결과 페이지 자동 기록 상태 표시 */
.cdna-autosave-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(212,175,55,0.08);
    border-left: 3px solid #D4AF37;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}
.cdna-autosave-status.is-ok {
    background: rgba(80,200,120,0.08);
    border-left-color: #50C878;
    color: rgba(255,255,255,0.85);
}
.cdna-autosave-status.is-error {
    background: rgba(255,80,80,0.08);
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

/* 상세 리포트 CTA 블록 */
.cdna-pro-report-cta {
    background: #0F0F0F;
    border: 1px solid rgba(212,175,55,0.25);
    padding: 28px 26px;
}
.cdna-pro-report-copy {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
    margin: 0;
}
.cdna-pro-report-note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-align: center;
}
/* G\ud56d\ubaa9: \uc720\ub8cc \uc548\ub0b4 \ubcf4\uc870 \ud14d\uc2a4\ud2b8 */
.cdna-pro-report-paid-note {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
    text-align: center;
    line-height: 1.6;
}

/* 버튼 disabled */
.cdna-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 숨김 */
.hidden { display: none !important; }

/* Patch v3 D: 결과 단계일 때 main wrapper 폭 확대 (max-w-3xl 오버라이드) */
#cdna-main-wrap.cdna-wrap--wide {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}
@media (max-width: 768px) {
    #cdna-main-wrap.cdna-wrap--wide {
        max-width: calc(100% - 32px) !important;
    }
}

/* ============================================================
   CEO DNA — 메가 로고타입 (서비스명 시각적 임팩트)
   ============================================================ */
.ceo-dna-mega-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 2vw, 1.5rem);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin: 0 auto;
    padding: clamp(0.5rem, 2vw, 1.5rem) 0;
    text-align: center;
}
.ceo-dna-mega-word {
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.05em;
    line-height: 1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    display: inline-block;
}
.ceo-dna-mega-word--gold {
    color: #D4AF37;
    background: linear-gradient(180deg, #F4D77A 0%, #D4AF37 50%, #A8841C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 24px rgba(212, 175, 55, 0.35));
}
.ceo-dna-mega-divider {
    width: clamp(0.4rem, 1.2vw, 0.9rem);
    height: clamp(0.4rem, 1.2vw, 0.9rem);
    background: #D4AF37;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
}
@media (max-width: 480px) {
    .ceo-dna-mega-title { gap: 0.5rem; }
    .ceo-dna-mega-word { font-size: clamp(3.5rem, 18vw, 6rem); }
    .ceo-dna-mega-divider { width: 0.5rem; height: 0.5rem; }
}
