/* ==========================================
   WIA Book Detail Page - 사이버펑크 스타일
   Version: 2.0.0
   Last Updated: 2025-02-03
   ========================================== */

/* 기본 변수 */
:root {
    --wia-neon-cyan: #00d4ff;
    --wia-neon-cyan-glow: rgba(0,212,255,0.5);
    --wia-neon-mint: #00fff5;
    --wia-neon-pink: #ff6b9d;
    --wia-neon-yellow: #ffc107;
    --wia-neon-purple: #a855f7;
    --wia-neon-green: #00e6ac;
    --wia-bg-dark: #0a0f23;
    --wia-bg-card: rgba(10,15,35,0.5);
    --wia-border: rgba(0,212,255,0.3);
    --wia-text: #fff;
    --wia-text-muted: rgba(255,255,255,0.7);
}

/* 메인 컨테이너 */
.wia-book-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--wia-bg-dark) 0%, #1a1f3a 100%);
    color: var(--wia-text);
    min-height: 100vh;
}

/* ==========================================
   HERO 섹션
   ========================================== */
.wia-hero-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: start;
    gap: 40px;
    background: var(--wia-bg-card);
    border: 1px solid var(--wia-border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.wia-book-cover img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 0 30px var(--wia-neon-cyan-glow), 0 10px 50px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.wia-book-cover img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0,212,255,0.6), 0 15px 60px rgba(0,0,0,0.6);
}

.wia-book-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wia-book-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--wia-neon-cyan);
    text-shadow: 0 0 20px rgba(0,212,255,0.8), 0 0 40px rgba(0,212,255,0.5);
    line-height: 1.3;
    margin: 0;
}

.wia-book-subtitle {
    font-size: 16px;
    color: var(--wia-text-muted);
    line-height: 1.5;
    margin-top: -5px;
}

.wia-book-author {
    font-size: 18px;
    color: var(--wia-text);
}

.wia-book-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.wia-price-discount-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wia-discount-badge {
    font-size: 24px;
    font-weight: 800;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.wia-sale-price {
    font-size: 34px;
    font-weight: 700;
    color: var(--wia-neon-mint);
    text-shadow: 0 0 20px rgba(0,255,245,1), 0 0 40px rgba(0,255,245,0.8);
}

.wia-original-price {
    font-size: 19px;
    font-weight: 400;
    color: #6b7a8d;
    text-decoration: line-through;
}

.wia-price-credit-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.wia-credit-label {
    font-size: 19px;
    color: #8b9bb4;
}

.wia-credit-value {
    font-size: 21px;
    font-weight: 600;
    color: #ff69b4;
}

.wia-credit-unit {
    font-size: 18px;
    color: var(--wia-neon-mint);
    text-shadow: 0 0 10px rgba(0,255,245,0.5);
}

/* 무료 배지 */
.wia-free-badge {
    font-size: 36px;
    font-weight: 700;
    color: var(--wia-neon-mint);
    text-shadow: 0 0 20px rgba(0,255,245,1), 0 0 40px rgba(0,255,245,0.8);
}

.wia-file-info {
    color: var(--wia-text-muted);
    margin-bottom: 15px;
}

/* 버튼 그룹 */
.wia-button-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 15px;
}

.wia-btn-purchase {
    display: inline-block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    color: var(--wia-neon-cyan);
    background-color: rgba(0,212,255,0.15);
    border: 1px solid rgba(0,212,255,0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--wia-neon-cyan-glow), 0 0 40px rgba(0,212,255,0.3);
    animation: buttonPulse 3s ease-in-out infinite;
    cursor: pointer;
}

.wia-btn-purchase:hover {
    color: var(--wia-neon-mint);
    background-color: rgba(0,255,245,0.25);
    transform: translateY(-3px) scale(1.05);
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 20px var(--wia-neon-cyan-glow); }
    50% { box-shadow: 0 0 25px rgba(0,212,255,0.6); }
}

.wia-btn-action {
    display: inline-block;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wia-btn-wishlist,
.wia-btn-wishlist:visited,
.wia-btn-wishlist:link {
    color: var(--wia-neon-pink) !important;
    background: rgba(255,107,157,0.15);
    border: 1px solid rgba(255,107,157,0.4);
}

.wia-btn-wishlist:hover {
    color: var(--wia-neon-pink);
    background: rgba(255,107,157,0.25);
    transform: translateY(-3px);
}

.wia-btn-preview {
    color: var(--wia-neon-yellow);
    background: rgba(255,193,7,0.15);
    border: 1px solid rgba(255,193,7,0.4);
}

.wia-btn-preview:hover {
    color: var(--wia-neon-yellow);
    background: rgba(255,193,7,0.25);
    transform: translateY(-3px);
}

.wia-btn-vr {
    color: var(--wia-neon-purple);
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.4);
    box-shadow: 0 0 15px rgba(168,85,247,0.3);
}

.wia-btn-vr:hover {
    color: var(--wia-neon-purple);
    background: rgba(168,85,247,0.25);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(168,85,247,0.5);
}

/* 안내 박스 */
.wia-notice-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.6;
}

.wia-notice-box .notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.wia-notice-reader {
    background: rgba(0,150,100,0.2);
    border: 1px solid rgba(0,200,150,0.4);
    border-left: 4px solid #00c896;
    color: var(--wia-neon-green);
}

.wia-notice-vr {
    background: rgba(0,100,150,0.3);
    border: 1px solid rgba(0,150,200,0.5);
    border-left: 4px solid #0096c8;
    color: var(--wia-neon-cyan);
}

/* ==========================================
   탭 섹션
   ========================================== */
.wia-content-section {
    background: rgba(10,15,35,0.3);
    border: 1px solid var(--wia-border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.wia-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0,212,255,0.2);
}

.wia-tab-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wia-text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wia-tab-btn:hover {
    color: var(--wia-neon-cyan);
}

.wia-tab-btn.active {
    color: var(--wia-neon-cyan);
    border-bottom-color: var(--wia-neon-cyan);
}

.wia-tab-content {
    display: none;
}

.wia-tab-content.active {
    display: block;
}

/* 카테고리 브레드크럼 */
.wia-category-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,212,255,0.2);
}

.wia-category-label {
    font-size: 16px;
    color: var(--wia-text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.wia-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.wia-breadcrumb a {
    color: var(--wia-neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.wia-breadcrumb a:hover {
    background: rgba(0,212,255,0.1);
    color: var(--wia-neon-mint);
}

.wia-breadcrumb-sep {
    color: rgba(255,255,255,0.4);
    user-select: none;
}

/* 섹션 제목 */
.wia-section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--wia-neon-cyan);
    margin-bottom: 30px;
}

/* 책 설명 */
.wia-book-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.wia-book-description p {
    margin-bottom: 20px;
}

/* 상세 이미지 */
.wia-detail-image {
    max-width: 754px;
    margin: 40px auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--wia-neon-cyan-glow), 0 10px 40px rgba(0,0,0,0.5);
}

.wia-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 목차 */
.wia-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wia-toc-list li {
    padding: 12px 20px;
    margin-bottom: 8px;
    background: rgba(0,212,255,0.05);
    border-left: 3px solid var(--wia-neon-cyan);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.wia-toc-list li:hover {
    background: rgba(0,212,255,0.1);
    transform: translateX(5px);
}

.wia-toc-list .chapter-num {
    color: var(--wia-neon-cyan);
    font-weight: 600;
    margin-right: 10px;
}

/* 저자 프로필 */
.wia-author-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wia-author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wia-neon-cyan);
    box-shadow: 0 0 20px var(--wia-neon-cyan-glow);
}

.wia-author-info {
    flex: 1;
}

.wia-author-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--wia-neon-cyan);
    margin-bottom: 5px;
}

.wia-author-name-en {
    font-size: 14px;
    color: var(--wia-text-muted);
    margin-bottom: 15px;
}

.wia-author-titles {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.wia-author-titles li {
    padding: 5px 0;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

.wia-author-titles li::before {
    content: "▸";
    color: var(--wia-neon-cyan);
    margin-right: 8px;
}

.wia-author-motto {
    padding: 15px 20px;
    background: rgba(0,212,255,0.1);
    border-left: 3px solid var(--wia-neon-cyan);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ==========================================
   다운로드 파일 섹션
   ========================================== */
.wia-download-files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wia-download-files li {
    padding: 15px 20px;
    
    background: rgba(0,212,255,0.1);
    border: 1px solid var(--wia-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wia-download-files li:hover {
    background: rgba(0,212,255,0.2);
    transform: translateX(5px);
}

.wia-download-files .file-icon {
    font-size: 24px;
}

.wia-download-files a {
    color: var(--wia-neon-cyan);
    text-decoration: none;
    flex: 1;
    font-weight: 500;
}

.wia-file-size {
    color: var(--wia-text-muted);
    font-size: 14px;
}

.wia-file-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0,212,255,0.2);
    border: 1px solid rgba(0,212,255,0.4);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wia-neon-cyan);
    margin-left: 10px;
}

/* ==========================================
   이용 안내 섹션
   ========================================== */
.wia-usage-guide {
    background: rgba(10,15,35,0.4);
    border: 1px solid var(--wia-border);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}

.wia-usage-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--wia-neon-cyan);
    margin-bottom: 30px;
    text-align: center;
}

.wia-usage-section {
    margin-bottom: 30px;
}

.wia-usage-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--wia-neon-cyan);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,212,255,0.2);
}

.wia-usage-section ul {
    list-style: none;
    padding-left: 0;
}

.wia-usage-section li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.wia-usage-section li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--wia-neon-cyan);
}

.wia-usage-link {
    color: var(--wia-neon-mint);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,255,245,0.3);
    transition: all 0.3s ease;
}

.wia-usage-link:hover {
    border-bottom-color: var(--wia-neon-mint);
}

/* ==========================================
   반응형
   ========================================== */
@media (max-width: 768px) {
    .wia-download-files { grid-template-columns: 1fr; }
    .wia-hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .wia-book-cover img {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .wia-book-title {
        font-size: 28px;
    }
    
    .wia-sale-price {
        font-size: 26px;
    }
    .wia-discount-badge {
        font-size: 18px;
    }
    .wia-original-price {
        font-size: 14px;
    }
    .wia-credit-label {
        font-size: 12px;
    }
    .wia-credit-value {
        font-size: 13px;
    }
    
    .wia-tabs {
        overflow-x: auto;
    }
    
    .wia-tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
    }
    
    .wia-author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .wia-author-photo {
        width: 150px;
        height: 150px;
    }
    
    .wia-usage-guide {
        padding: 20px;
    }
    
    .wia-button-group {
        flex-wrap: wrap;
    }
    .wia-button-group > * {
        flex: 1 1 45%;
    }
    .wia-btn-action {
        padding: 12px 0;
        font-size: 13px;
    }
    .wia-btn-purchase {
        padding: 12px 0;
        font-size: 14px;
    }
}

/* ====================================
   체크아웃 / 주문내역 - 사이버펑크
   ==================================== */

/* 주문 내역 컨테이너 */
.wia-order-history {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--wia-bg, #0a0a1a);
    border-radius: 16px;
    border: 1px solid rgba(0,212,255,0.2);
}

.wia-order-history h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0,212,255,0.3);
}

.wia-order-history p {
    color: #e0e0e0;
}

/* 주문 테이블 */
.wia-order-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.wia-order-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.wia-order-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e0e0e0;
}

.wia-order-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 상태 배지 */
.status-complete {
    background: #00d4ff;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-pending {
    background: #f59e0b;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-processing {
    background: #8b5cf6;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-refunded {
    background: #ef4444;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-partially_refunded {
    background: #f97316;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* 버튼 */
.wia-order-history .wia-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.wia-order-history .wia-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.wia-btn-sm {
    display: inline-block;
    background: rgba(0,212,255,0.15);
    color: #00d4ff !important;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(0,212,255,0.3);
    transition: all 0.3s ease;
}

.wia-btn-sm:hover {
    background: rgba(0,212,255,0.25);
    box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .wia-order-history {
        padding: 15px;
        margin: 20px 10px;
    }
    
    .wia-order-table th,
    .wia-order-table td {
        padding: 10px 8px;
        font-size: 0.85em;
    }
    
    .wia-order-table {
        display: block;
        overflow-x: auto;
    }
}

/* 주문내역/체크아웃 페이지 - 부모 배경 투명 처리 */
.page-template-default .wia-order-history {
    background: #0a0a1a;
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    padding: 30px;
}

/* 부모 요소 흰색 배경 제거 */
body.page .wia-order-history,
body.page .wia-order-history ~ * {
    position: relative;
    z-index: 1;
}

/* inside-article 흰색 배경 → 어두운 배경 */
body.page-id-390073 .inside-article,
body.page-id-390069 .inside-article {
    background: #0d0d1a !important;
}

/* article 연두색 배경 제거 */
body.page-id-390073 article,
body.page-id-390069 article {
    background: transparent !important;
}

/* 페이지 제목도 사이버펑크 */
body.page-id-390073 .entry-title,
body.page-id-390069 .entry-title {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0,212,255,0.4);
}

/* 다운로드 내역 텍스트 */
body.page-id-390073 .entry-content h3,
body.page-id-390069 .entry-content h3 {
    color: #e0e0e0;
}

body.page-id-390073 .entry-content,
body.page-id-390069 .entry-content {
    color: #e0e0e0;
}

/* ====================================
   체크아웃/주문내역 페이지 전체 배경
   ==================================== */
body.page-id-390073,
body.page-id-390069 {
    background: #0a0a1a;
}

body.page-id-390073 .site-content,
body.page-id-390069 .site-content {
    background: #0a0a1a;
}

body.page-id-390073 .entry-title,
body.page-id-390069 .entry-title {
    color: #fff;
    text-shadow: 0 0 15px rgba(0,212,255,0.3);
}

body.page-id-390073 .inside-article,
body.page-id-390069 .inside-article {
    background: #0a0a1a;
    box-shadow: none;
    border: none;
}

/* ===== 메타 정보 섹션 ===== */
.wia-book-meta {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--wia-cyan);
    border-radius: 4px;
}

.wia-meta-item {
    font-size: 14px;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.wia-meta-item .meta-label {
    color: var(--wia-cyan);
    font-weight: 600;
    margin-right: 8px;
}

.wia-meta-item .meta-value {
    color: rgba(255, 255, 255, 0.8);
}

/* 메타 정보 한 행 */
.wia-book-meta-inline {
    margin: 15px 0;
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--wia-cyan);
    border-radius: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.wia-book-meta-inline .meta-label {
    color: var(--wia-cyan);
    font-weight: 600;
}

.wia-book-meta-inline .meta-value {
    color: rgba(255, 255, 255, 0.85);
    margin-right: 2px;
}

.wia-book-meta-inline .meta-sep {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 8px;
}

/* ===== 식별자 바 (ISBN/ISSN/UCI) - 가로 한 행 ===== */
.wia-identifier-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 15px 0;
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.wia-id-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.wia-id-item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(0, 212, 255, 0.3);
    margin: 0 12px;
    vertical-align: middle;
}

.wia-id-item .id-label {
    color: var(--wia-cyan);
    font-weight: 600;
    margin-right: 6px;
}

.wia-id-item .id-value {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}


.wia-wbin-row {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.wia-wbin-item .wbin-label {
    color: var(--wia-cyan);
    font-weight: 600;
}

.wia-wbin-item .wbin-value {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.wia-wbin-item .wbin-lang {
    color: var(--wia-cyan);
    font-weight: 700;
}
/* 모바일: 식별자 바 세로 전환 */
@media (max-width: 768px) {
    .wia-identifier-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 14px;
    }
    .wia-id-item:not(:last-child)::after {
        display: none;
    }
}

/* ============================================
   도서 요약 한 행 바
   ============================================ */
.wia-book-summary-bar {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 12px 20px;
    overflow-x: auto;
    white-space: nowrap;
}
.wia-summary-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #b0b8d0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.wia-summary-title {
    color: #00d4ff;
    font-weight: 700;
    font-size: 14px;
}
.wia-summary-subtitle {
    color: #8a92b0;
    font-size: 12px;
}
.wia-summary-sep {
    color: rgba(0, 212, 255, 0.3);
    margin: 0 4px;
}
.wia-summary-meta {
    color: #b0b8d0;
}
.wia-summary-price {
    color: #ff6b6b;
    font-weight: 700;
}
.wia-summary-price s {
    color: #666;
    font-weight: 400;
    font-size: 12px;
}
.wia-summary-credit {
    color: #ffd700;
    font-weight: 600;
}

/* ============================================
   WIA Credit 적립/사용 안내
   ============================================ */
.wia-credit-guide {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
}
.wia-credit-guide-title {
    font-size: 22px;
    color: #ffd700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.wia-credit-section {
    margin-bottom: 20px;
}
.wia-credit-section h3 {
    color: #e0e6f0;
    font-size: 16px;
    margin-bottom: 10px;
}
.wia-credit-section p {
    color: #b0b8d0;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
.wia-credit-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wia-credit-section ul li {
    color: #b0b8d0;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 18px;
    position: relative;
}
.wia-credit-section ul li::before {
    content: '•';
    color: #ffd700;
    position: absolute;
    left: 0;
}

/* Credit 예시 박스 */
.wia-credit-example {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}
.wia-credit-example-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 16px;
}
.wia-credit-example-label {
    color: #ffd700;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wia-credit-example-box p {
    color: #b0b8d0;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}
.wia-credit-example-box strong {
    color: #ffd700;
    font-size: 16px;
}

@media (max-width: 768px) {
    .wia-credit-example {
        grid-template-columns: 1fr;
    }
    .wia-summary-inner {
        font-size: 12px;
    }
    .wia-credit-guide {
        padding: 20px 16px;
        margin: 20px 10px;
    }
}

/* Credit 유효기간 예시 */
.wia-credit-example-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.wia-credit-example-row:last-child {
    margin-bottom: 0;
}
.wia-credit-example-row-label {
    grid-column: 1 / -1;
    color: #8090b0;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    margin-bottom: 4px;
}
.wia-credit-expired {
    color: #ff6b6b !important;
    text-decoration: line-through;
    opacity: 0.7;
}
.wia-credit-active {
    color: #51cf66 !important;
    font-weight: 700;
}
.wia-credit-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wia-credit-timeline li {
    color: #b0b8d0;
    font-size: 15px;
    line-height: 1.8;
    padding-left: 12px;
    position: relative;
}
.wia-credit-timeline li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #8090b0;
}
.wia-credit-timeline li:first-child {
    padding-left: 0;
}
.wia-credit-timeline li:first-child::before {
    content: none;
}

@media (max-width: 768px) {
    .wia-credit-example-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   교보문고 스타일 갤러리 컨트롤 (표지 아래)
   ============================================ */

/* 이미지 전환 애니메이션 */
#wiaGalleryMainImg {
    transition: opacity 0.2s ease;
}

/* 갤러리 컨트롤 (표지 아래 바깥) */
.wia-book-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible !important;
}

.wia-gallery-controls {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 0;
    width: 100%;
    position: relative;
    z-index: 2;
    background: var(--wia-bg-card, #0d1b2a);
}

/* 페이저: ‹ 01 - 02 › */
.wia-gallery-pager {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.wia-gallery-arrow {
    cursor: pointer;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
    line-height: 1;
}

.wia-gallery-arrow:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.wia-gallery-page {
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

/* 미리보기 버튼 */
.wia-preview-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.wia-preview-btn:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* ============================================
   미리보기 모달 (전체화면)
   ============================================ */
.wia-preview-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
}

.wia-preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wia-preview-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.92);
}

.wia-preview-modal-content {
    position: relative;
    width: 90vw;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.wia-preview-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.wia-preview-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wia-preview-modal-viewport {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
}

.wia-preview-modal-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wia-preview-modal-slide.active {
    opacity: 1;
    z-index: 1;
}

.wia-preview-modal-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wia-preview-modal-nav {
    position: absolute;
    top: 45%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wia-preview-modal-nav:hover {
    background: rgba(102, 126, 234, 0.5);
}

.wia-preview-modal-prev { left: -55px; }
.wia-preview-modal-next { right: -55px; }

.wia-preview-modal-indicator {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.wia-preview-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.wia-preview-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 768px) {
    .wia-preview-modal-content { width: 95vw; }
    .wia-preview-modal-prev { left: 4px; }
    .wia-preview-modal-next { right: 4px; }
    .wia-preview-modal-nav { width: 36px; height: 36px; font-size: 20px; }
}

/* 찜하기 상태 */
.wia-btn-wishlist.wishlisted,
.wia-btn-wishlist.wishlisted:visited,
.wia-btn-wishlist.wishlisted:link {
    color: #ff3b6b !important;
    background: rgba(255,59,107,0.25);
    border-color: rgba(255,59,107,0.6);
}

/* 토스트 알림 */
.wia-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 30, 50, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(102, 126, 234, 0.4);
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wia-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 📖 바로 읽기 버튼 */
.wia-btn-reader {
  background: linear-gradient(135deg, #00d4aa, #00a88a) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  animation: wia-reader-pulse 2s ease-in-out infinite;
}
.wia-btn-reader:hover {
  background: linear-gradient(135deg, #00e8bb, #00b89a) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}
@keyframes wia-reader-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(0, 212, 170, 0); }
}
