/* -------------------------------------------------------------
   다크 라이브러리 (The Dark Library) 통합 스타일시트
   Written by. 디자인실장 영자 🎨 & 개발부장 코다리 🚀
   ------------------------------------------------------------- */

/* 전역 변수 설정 (Stitch 디자인 토큰 기반) */
:root {
    --color-bg: #0A0A0A;
    --color-surface: #121212;
    --color-surface-glass: rgba(20, 20, 20, 0.75);
    --color-text-primary: #E5E5E5;
    --color-text-muted: #8A8A8A;
    --color-accent-red: #8B0000;
    --color-accent-red-hover: #B22222;
    --color-gold: #D4AF37;
    --color-gold-hover: #E4C25C;
    --border-glow: rgba(139, 0, 0, 0.3);
    
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Inter', 'Noto Sans KR', sans-serif;
    --font-mono: 'Courier New', Courier, 'Noto Sans KR', monospace;
}

/* 초기화 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
}

/* 기밀 보안 인트로 오버레이 (Stitch Screen #11. Classified Entry Hub) */
#security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 0;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#security-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.security-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-accent-red);
    padding: 3rem 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 92vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0 30px var(--border-glow);
}

.alert-icon {
    font-size: 3rem;
    color: var(--color-accent-red);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.security-card h2 {
    font-family: var(--font-mono);
    color: var(--color-text-primary);
    font-size: 1.4rem;
    letter-spacing: 0.05rem;
    margin-bottom: 1rem;
}

.security-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--color-accent-red);
}

.terminal-input {
    background-color: #000;
    border: 1px solid #333;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
}

.prompt {
    color: var(--color-gold);
    margin-right: 0.5rem;
    font-weight: bold;
}

.terminal-input input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    width: 100%;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent-red);
    color: #FFF;
    border: none;
    padding: 0.9rem 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-red-hover);
}

.error-hidden {
    display: none;
    color: var(--color-accent-red);
    font-size: 0.85rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
}

.error-visible {
    display: block;
    color: var(--color-accent-red);
    font-size: 0.85rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.hint-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

/* 🔒 가상 결제 모달 (Toss Payments UI) */
#payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#payment-modal.active {
    opacity: 1;
    visibility: visible;
}

.payment-card {
    background-color: #121212;
    border: 1px solid #333;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    width: 90%;
    max-width: 440px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.payment-header h3 {
    font-family: var(--font-mono);
    color: var(--color-gold);
    font-size: 1.1rem;
}

#btn-close-payment {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

#btn-close-payment:hover {
    color: #FFF;
}

.pay-item-name {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.pay-amount {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.pay-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pay-method-btn {
    background-color: #1A1A1A;
    border: 1px solid #333;
    color: var(--color-text-muted);
    padding: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.pay-method-btn.active, .pay-method-btn:hover {
    border-color: var(--color-gold);
    color: #FFF;
    background-color: #222;
}

.pay-agreement {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pay-agreement label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.secure-footer-text {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-mono);
}

/* 메인 레이아웃 및 GNB (Stitch Screen #8. Refined Hub) */
#main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: filter 0.8s ease;
}

.content-blur {
    filter: blur(10px);
}

.main-header {
    background-color: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid #1A1A1A;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gold-text {
    font-family: var(--font-mono);
    color: var(--color-gold);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
}

.badge {
    background-color: var(--color-accent-red);
    color: #FFF;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    font-family: var(--font-mono);
    font-weight: bold;
}

.system-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-link {
    text-decoration: none;
}

/* 멀티페이지 내비게이션 */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 1.2rem 1.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    border: 1px solid #222;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text-primary);
    border-color: var(--color-accent-red);
}

.nav-link.active {
    background-color: var(--color-accent-red);
    color: #FFF;
    border-color: var(--color-accent-red);
    font-weight: bold;
}

/* 모바일 최적화: 로고 줄바꿈 방지 + 내비게이션 가로 스크롤로 전환
   (좁은 화면에서 로고가 3줄로 쪼개지고 내비게이션이 여러 줄로 밀려
   히어로 콘텐츠가 화면 아래로 밀려나는 문제 수정) */
@media (max-width: 479px) {
    .header-container {
        padding: 1rem 1.25rem;
    }

    .system-status {
        display: none;
    }

    .gold-text {
        font-size: 0.9rem;
        letter-spacing: 0.02rem;
        white-space: nowrap;
    }

    .badge {
        flex-shrink: 0;
    }

    .main-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1.25rem 1rem 1.25rem;
    }

    .nav-link {
        flex-shrink: 0;
    }
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #00FF00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF00;
}


.system-meta {
    font-family: var(--font-mono);
    color: var(--color-accent-red);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

/* 히어로 CTA 버튼 그룹 */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-cta-group .btn-cta {
    padding: 1rem 1.6rem;
    font-size: 0.92rem;
}

@media (min-width: 480px) {
    .hero-cta-group {
        flex-direction: row;
    }

    .hero-cta-group .btn-cta {
        width: auto;
    }
}

/* 서브페이지 공용 상단 헤더 */
.page-header {
    padding: 4rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.08) 0%, rgba(10, 10, 10, 0) 70%);
}

.page-header-container {
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03rem;
}

.page-header-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* 홈 메인: 추천 도서 섹션 (책 소개를 메인으로) */
.featured-books-section {
    padding: 4rem 1.5rem;
    border-top: 1px solid #1A1A1A;
}

.featured-books-section .archive-grid {
    max-width: 1200px;
    margin: 2.5rem auto 0 auto;
}

.section-cta-more {
    text-align: center;
    margin-top: 2.5rem;
}

.section-cta-more .btn-secondary {
    display: inline-block;
    text-decoration: none;
}

/* 홈 메인: 심리 테스트 섹션 (심리 테스트를 메인으로) */
.home-quiz-section {
    padding: 4rem 1.5rem 1rem 1.5rem;
    border-top: 1px solid #1A1A1A;
}

/* 홈 메인: 기밀 처세 샵 슬림 유도 배너 */
.shop-teaser-section {
    padding: 3rem 1.5rem;
    border-top: 1px solid #1A1A1A;
    text-align: center;
}

.shop-teaser-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.shop-teaser-icon {
    font-size: 2rem;
}

.shop-teaser-inner p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.shop-teaser-link {
    color: var(--color-gold);
    font-weight: bold;
    text-decoration: underline;
}

/* 📬 고도화: 뉴스레터 섹션 스타일링 */
.newsletter-section {
    padding: 0 1.5rem 2rem 1.5rem;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.newsletter-box {
    background-color: #111;
    border: 1px solid #222;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 700px;
    text-align: center;
    border-left: 3px solid var(--color-accent-red);
}

.news-meta {
    font-family: var(--font-mono);
    color: var(--color-accent-red);
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
}

.newsletter-box h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.newsletter-box p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.news-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

@media (min-width: 576px) {
    .news-input-group {
        flex-direction: row;
    }
}

.news-input-group input {
    flex-grow: 1;
    background-color: #000;
    border: 1px solid #333;
    padding: 0.8rem 1.2rem;
    color: #FFF;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.news-input-group input:focus {
    border-color: var(--color-accent-red);
}

.news-input-group button {
    flex-shrink: 0;
    padding: 0.8rem 1.5rem;
    width: auto;
}

#news-feedback {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.news-feedback-success {
    color: var(--color-gold);
}

.news-feedback-error {
    color: var(--color-accent-red);
}

.news-feedback-hidden {
    display: none;
}

/* 카테고리 필터 (Stitch Screen #10. Curation Archive Feed) */
.filters-section {
    padding: 1rem 1.5rem 0 1.5rem;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-bottom: 1px solid #1A1A1A;
    padding-bottom: 1.5rem;
}

.filter-btn {
    background-color: #1A1A1A;
    color: var(--color-text-muted);
    border: 1px solid #2A2A2A;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-accent-red);
    color: var(--color-text-primary);
}

.filter-btn.active {
    background-color: var(--color-accent-red);
    color: #FFF;
    border-color: var(--color-accent-red);
}

/* 도서 아카이브 리스트 (Stitch Screen #12. Segmented File View) */
.archive-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex-grow: 1;
}

/* 공정위 대가성 문구 (아카이브 상단 고지) */
.ftc-disclosure {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    padding: 0.9rem 1.2rem;
    background-color: #0d0d0d;
    border: 1px solid #222;
    border-left: 3px solid var(--color-gold);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.book-card {
    background-color: var(--color-surface-glass);
    border: 1px solid #222;
    padding: 2rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* 모바일 최적화: 카드 여백을 줄여 본문 가로폭을 확보 */
@media (max-width: 479px) {
    .book-card {
        padding: 1.5rem 1.25rem;
    }
}

.book-card:hover {
    border-color: var(--color-accent-red);
    box-shadow: 0 0 20px var(--border-glow);
}

.book-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gold);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.book-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .book-content-wrapper {
        flex-direction: row;
    }
}

/* 커스텀 직각 책 커버 (Stitch 디자인 이식) */
.book-cover-placeholder {
    width: 130px;
    height: 190px;
    background-color: #1A1A1A;
    border: 1px solid #333;
    padding: 0.6rem;
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    justify-content: stretch;
    transition: filter 0.3s ease;
    filter: grayscale(80%) contrast(120%);
}

.book-card:hover .book-cover-placeholder {
    filter: grayscale(10%) contrast(110%);
    border-color: var(--color-accent-red);
}

/* 모바일 최적화: 표지가 화면 폭의 대부분을 차지하도록 확대 + 중앙 정렬 */
@media (max-width: 479px) {
    .book-cover-placeholder {
        width: 68%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 130 / 190;
        margin: 0 auto;
        padding: 0.5rem;
    }
}

/* 실제 표지 이미지 (교보문고 정품 이미지) */
.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-inner {
    border: 1px dashed #444;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.8rem 0.5rem;
    text-align: center;
}

.book-card:hover .cover-inner {
    border-color: var(--color-accent-red);
}

.serial {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--color-accent-red);
    letter-spacing: 0.05rem;
    font-weight: bold;
}

.cover-inner .title {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    line-height: 1.3;
    color: #CCC;
    font-weight: bold;
}

/* 도서 정보 및 버튼 */
.book-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.book-info h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.gift-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.8rem;
}

.admin-comment {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    border-left: 2px solid var(--color-gold);
    padding-left: 0.6rem;
}

.summary-list {
    list-style: none;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.summary-list li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 0.8rem;
}

.summary-list li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--color-accent-red);
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.btn-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-kyobo {
    background-color: var(--color-accent-red);
    color: #FFF;
}

.btn-kyobo:hover {
    background-color: var(--color-accent-red-hover);
}

.btn-coupang {
    background-color: var(--color-gold);
    color: #0A0A0A;
    border: none;
}

.btn-coupang:hover {
    background-color: var(--color-gold-hover);
}

/* 모바일 최적화: 도서 카드 텍스트 가독성 + 터치 타겟 확보 */
@media (max-width: 479px) {
    .book-info h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }

    .admin-comment {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .summary-list {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .summary-list li {
        margin-bottom: 0.6rem;
    }

    .btn-cta {
        padding: 1rem 1.2rem;
        font-size: 0.92rem;
        min-height: 48px;
    }
}

.secure-buy-badge {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.3rem;
    font-family: var(--font-mono);
}

/* 하단 푸터 */
.main-footer {
    background-color: #050505;
    border-top: 1px solid #1A1A1A;
    padding: 3rem 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.affiliate-notice {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.footer-bottom {
    border-top: 1px solid #111;
    padding-top: 1.5rem;
    font-family: var(--font-mono);
}

/* =============================================================
   신규 모듈 스타일 정의 (자가진단, 기밀 샵)
   Written by. 디자인실장 영자 🎨
   ============================================================= */

.hidden {
    display: none !important;
}

/* 1. 마인드 디펜스 자가진단 (Test Section) */
.test-section {
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.05) 0%, rgba(10, 10, 10, 0) 80%);
}

.test-container {
    max-width: 800px;
    margin: 0 auto;
}

.test-box {
    background-color: var(--color-surface);
    border: 1px solid #222;
    padding: 3rem 2rem;
    text-align: center;
    border-left: 4px solid var(--color-accent-red);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

@media (max-width: 479px) {
    .test-box {
        padding: 2rem 1.25rem;
    }
}

.test-meta {
    font-family: var(--font-mono);
    color: var(--color-accent-red);
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
}

.test-box h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.test-box p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

#btn-start-test {
    width: auto;
    display: inline-block;
    padding: 0.9rem 2.5rem;
}

/* 프로그레스 바 */
.progress-bar-wrapper {
    background-color: #000;
    height: 4px;
    width: 100%;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--color-accent-red);
    box-shadow: 0 0 8px var(--color-accent-red);
    transition: width 0.3s ease;
}

/* 질문 카드 */
.question-card {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.q-num {
    font-family: var(--font-mono);
    color: var(--color-gold);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.8rem;
}

#question-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-option {
    background-color: #1A1A1A;
    border: 1px solid #333;
    color: var(--color-text-primary);
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.btn-option:hover {
    border-color: var(--color-accent-red);
    background-color: #222;
    padding-left: 1.5rem;
}

/* 결과창 */
.result-badge-wrapper {
    margin: 1.5rem 0;
}

.result-badge {
    font-family: var(--font-mono);
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid;
    display: inline-block;
}

.badge-level-1 {
    color: #4CAF50;
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.badge-level-2 {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.badge-level-3 {
    color: #FF3B30;
    border-color: #FF3B30;
    background-color: rgba(255, 59, 48, 0.05);
    animation: flash-border 1.5s infinite alternate;
}

@keyframes flash-border {
    0% { box-shadow: 0 0 5px rgba(255, 59, 48, 0.2); }
    100% { box-shadow: 0 0 20px rgba(255, 59, 48, 0.6); }
}

.result-score-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.result-description {
    line-height: 1.7;
    margin-bottom: 2.5rem !important;
}

/* 질문별 상세 분석 아코디언 */
.result-detail-area {
    text-align: left;
    margin-bottom: 2.5rem;
}

.result-detail-area h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.detail-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
}

.detail-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detail-item {
    background-color: #0d0d0d;
    border: 1px solid #222;
}

.detail-item-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    transition: background-color 0.2s ease;
}

.detail-item-header:hover {
    background-color: #171717;
}

.detail-q-num {
    font-family: var(--font-mono);
    color: var(--color-gold);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.detail-q-short {
    flex-grow: 1;
    line-height: 1.5;
}

.detail-toggle-icon {
    font-family: var(--font-mono);
    color: var(--color-accent-red);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
    width: 1rem;
    text-align: center;
}

.detail-item-body {
    padding: 0.9rem 1rem 1.1rem 1rem;
    border-top: 1px solid #1a1a1a;
}

.detail-answer {
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-bottom: 0.6rem;
    font-family: var(--font-mono);
}

.detail-insight {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.result-recommendation {
    background-color: #0F0F0F;
    border: 1px dashed #333;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.result-recommendation h4 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    color: #FFF;
    border-color: #FFF;
}


/* 2. 기밀 처세 샵 (Shop Section) */
.shop-section {
    padding: 4rem 1.5rem;
    border-top: 1px solid #1A1A1A;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title-wrapper h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.shop-card {
    background-color: var(--color-surface);
    border: 1px solid #222;
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.shop-card:hover {
    border-color: var(--color-accent-red);
    box-shadow: 0 0 20px var(--border-glow);
}

.card-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    border: 1px solid var(--color-accent-red);
    color: var(--color-accent-red);
    padding: 0.2rem 0.6rem;
}

.shop-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.shop-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.product-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-shop-buy {
    background-color: var(--color-accent-red);
    color: #FFF;
    text-decoration: none;
    text-align: center;
    padding: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-shop-buy:hover {
    background-color: var(--color-accent-red-hover);
}


/* =============================================================
   웅자 요원 사진 프레임 시스템 (기밀 감시 촬영본 컨셉)
   Written by. 디자인실장 영자 🎨
   각지고 그림자 없는 DESIGN.md 원칙에 맞춰 원형 아바타 대신
   코너 브래킷(뷰파인더) 프레임으로 실제 조명/벽돌방 일러스트를 그대로 노출한다.
   ============================================================= */

/* 0. 공용 프레임: 4모서리 골드 브래킷 (border-radius/box-shadow 미사용) */
.agent-photo-frame {
    position: relative;
}

.agent-photo-frame::before {
    content: "";
    position: absolute;
    inset: -8px;
    pointer-events: none;
    background:
        linear-gradient(var(--color-gold), var(--color-gold)) top    left  / 18px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) top    left  / 2px 18px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) top    right / 18px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) top    right / 2px 18px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom left  / 18px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom left  / 2px 18px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom right / 18px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom right / 2px 18px no-repeat;
}

.agent-photo-frame.is-small::before {
    inset: -4px;
    background:
        linear-gradient(var(--color-gold), var(--color-gold)) top    left  / 9px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) top    left  / 2px 9px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) top    right / 9px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) top    right / 2px 9px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom left  / 9px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom left  / 2px 9px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom right / 9px 2px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom right / 2px 9px no-repeat;
}

.agent-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #222;
}

.agent-photo-caption {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--color-gold);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.04rem;
    padding: 0.2rem 0.5rem;
    pointer-events: none;
}

/* 1. 인트로 보안카드 촬영본 (전신 세로 크롭) */
.intro-image-wrapper {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    margin: 0 auto 1.8rem auto;
}

/* 2. 히어로 풀블리드 이미지 + 대각 분할 헤드라인
   (pawsbound.com / ConnectAI LAB 참고: 풀블리드 사진 배경 위에
   상단 배지 태그 + 대형 2톤 헤드라인 + 설명 카드 + 하단 반대편
   보조 헤드라인을 대각선으로 배치하는 구조) */
.hero-fullbleed {
    position: relative;
    min-height: 88vh;
    padding: 0;
    text-align: left;
    background: none;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: grayscale(10%) contrast(108%) brightness(0.92);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0.3) 32%, rgba(5, 5, 5, 0.55) 68%, rgba(5, 5, 5, 0.94) 100%),
        linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.05) 42%, rgba(5, 5, 5, 0.05) 58%, rgba(5, 5, 5, 0.88) 100%);
}

.hero-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(90px, 24vw, 420px);
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 75%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-fullbleed-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    min-height: 88vh;
    margin: 0 auto;
    padding: 6.5rem 1.5rem 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-badge-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06rem;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 0.4rem 0.9rem;
    margin-bottom: 2rem;
}

.hero-split-heading {
    max-width: 720px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    line-height: 1.25;
    letter-spacing: -0.02rem;
    margin-bottom: 2.5rem;
}

.hero-split-heading .line-light,
.hero-split-heading .line-accent {
    display: block;
}

.hero-split-heading .line-light {
    color: var(--color-text-primary);
}

.hero-split-heading .line-accent {
    color: var(--color-gold);
}

.hero-desc-card {
    background-color: rgba(10, 10, 10, 0.7);
    border-left: 3px solid var(--color-accent-red);
    padding: 1.5rem 1.75rem;
    max-width: 480px;
    margin-bottom: 3rem;
}

.hero-desc-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.hero-desc-card .hero-cta-group {
    margin-top: 0;
    flex-direction: column;
}

.hero-desc-card .hero-cta-group .btn-cta {
    width: 100%;
}

.hero-secondary-heading {
    align-self: flex-end;
    text-align: right;
    max-width: 480px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.4rem, 4.2vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.02rem;
    color: #FFF;
}

@media (max-width: 767px) {
    .hero-fullbleed-content {
        padding: 5.5rem 1.25rem 2.5rem 1.25rem;
    }

    .hero-desc-card {
        max-width: 100%;
    }

    .hero-secondary-heading {
        align-self: flex-start;
        text-align: left;
        max-width: 100%;
        margin-top: 2.5rem;
    }
}

/* 히어로 진입 애니메이션 */
.hero-badge-tag,
.hero-split-heading,
.hero-desc-card,
.hero-secondary-heading {
    animation: heroFadeUp 0.9s ease both;
}

.hero-split-heading { animation-delay: 0.15s; }
.hero-desc-card { animation-delay: 0.3s; }
.hero-secondary-heading { animation-delay: 0.45s; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge-tag,
    .hero-split-heading,
    .hero-desc-card,
    .hero-secondary-heading {
        animation: none;
    }
}

/* =============================================================
   4. 고도화: 퀴즈 세분화 탭 및 CPA 1:1 심리상담 스타일
   ============================================================= */

/* 퀴즈 탭 버틀들 */
.quiz-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quiz-tab-btn {
    background-color: var(--color-surface);
    border: 1px solid #333;
    color: var(--color-text-muted);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0px;
}

.quiz-tab-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-text-primary);
}

.quiz-tab-btn.active {
    background-color: var(--color-accent-red);
    border-color: var(--color-accent-red);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4);
}

/* CPA 전문 심리상담 1:1 케어 섹션 */
.cpa-counseling-section {
    position: relative;
    padding: 4rem 1.5rem;
    background-color: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
}

/* '치유의 들판' 배경 영상 — 심리상담(치유) 섹션에만 톤을 다르게 적용 */
.cpa-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%) brightness(0.55) contrast(105%);
}

.cpa-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.88) 0%, rgba(13, 13, 13, 0.75) 50%, rgba(13, 13, 13, 0.92) 100%);
}

.cpa-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.cpa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.cpa-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-gold);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cpa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.cpa-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--color-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.05rem;
}

.cpa-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.cpa-icon {
    font-size: 2.2rem;
}

.cpa-card-header h3 {
    font-size: 1.15rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

.cpa-sub {
    font-size: 0.82rem;
    color: var(--color-gold);
}

.cpa-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.btn-cpa-action {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    background-color: var(--color-accent-red);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-cpa-action:hover {
    background-color: var(--color-accent-red-hover);
}

