/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-bg: #f5f7fa;
    --c-surface: #ffffff;
    --c-text: #1a1a2e;
    --c-text-muted: #6b7280;
    --c-primary: #2b7a3d;
    --c-primary-dark: #1d5c2c;
    --c-primary-light: #d1fae5;
    --c-blue: #2b5ea7;
    --c-blue-dark: #1e4a85;
    --c-blue-light: #dbeafe;
    --c-green: #4caf50;
    --c-green-light: #e8f5e9;
    --c-gold: #d4a017;
    --c-accent: #f59e0b;
    --c-accent-light: #fef3c7;
    --c-border: #e0e4ea;
    --c-danger: #dc2626;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-reading: 'Merriweather', Georgia, serif;
    --max-w: 720px;
    --max-w-wide: 1080px;
    --radius: 8px;
    --radius-round: 50%;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-circle: 0 4px 20px rgba(43,94,167,0.15);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-dark); }
img { max-width: 100%; height: auto; }

/* === NAV === */
.nav {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-inner {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
    color: var(--c-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}
.nav-links a:hover { color: var(--c-blue); background: var(--c-blue-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-text); margin: 5px 0; transition: 0.3s; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #1e4a85 0%, #2b5ea7 40%, #2b7a3d 100%);
    color: #fff;
    padding: 3rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    border-radius: var(--radius-round);
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    border-radius: var(--radius-round);
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.hero-logo {
    max-width: 400px;
    margin: 0 auto 1.5rem;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.hero-logo img { width: 100%; height: auto; }
.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    position: relative;
}
.hero .subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}
.hero .byline { font-size: 1rem; opacity: 0.8; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-white { background: #fff; color: var(--c-blue-dark); }
.btn-white:hover { background: #f0f4ff; color: var(--c-blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green { background: var(--c-primary); color: #fff; }
.btn-green:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

/* === SECTIONS === */
.section {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}
.section-narrow { max-width: var(--max-w); }

/* === BOOK CARDS === */
.books-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.book-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}
.book-card:hover { box-shadow: var(--shadow-circle); }
.book-active { border-color: var(--c-blue); border-width: 2px; }
.book-coming { opacity: 0.7; }
.book-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.book-header:hover { background: #f8fafc; }
.book-number-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-round);
    background: var(--c-blue);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(43,94,167,0.25);
}
.book-number-circle.coming {
    background: var(--c-border);
    color: var(--c-text-muted);
    box-shadow: none;
}
.book-header-info { flex: 1; }
.book-header-info h2 { font-size: 1.15rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.1rem; }
.book-chapter-count { font-size: 0.85rem; color: var(--c-text-muted); }
.book-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.book-progress-bar {
    width: 80px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
}
.book-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-blue), var(--c-green));
    border-radius: 50px;
    transition: width 0.4s ease;
}
.book-progress-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-blue);
    min-width: 32px;
    text-align: right;
}
.book-toggle {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.book-coming-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    flex-shrink: 0;
}
.book-body {
    display: none;
    padding: 0 1.5rem 1.5rem;
}

/* === PART LABELS === */
.part-group { margin-bottom: 0.5rem; }
.part-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-blue);
    padding: 1rem 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.part-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

/* === CHAPTER CARDS === */
.chapter-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.chapter-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    transition: all 0.25s;
    text-decoration: none;
    color: var(--c-text);
}
.book-body .chapter-card {
    background: #f8fafc;
    border-color: #edf0f4;
}
.chapter-card:hover {
    border-color: var(--c-blue);
    box-shadow: var(--shadow-circle);
    transform: translateX(4px);
    color: var(--c-text);
}
.chapter-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: var(--c-blue);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(43,94,167,0.2);
}
.chapter-info { flex: 1; min-width: 0; }
.chapter-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.05rem; }
.chapter-info p { font-size: 0.8rem; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === CHAPTER PROGRESS BARS === */
.chapter-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.chapter-progress-bar {
    width: 50px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
}
.chapter-progress-fill {
    height: 100%;
    background: #d1d5db;
    border-radius: 50px;
    transition: width 0.4s ease;
}
.chapter-progress-fill.in-progress {
    background: linear-gradient(90deg, var(--c-blue), var(--c-green));
}
.chapter-progress-fill.complete {
    background: var(--c-green);
}
.chapter-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--c-text-muted);
    min-width: 28px;
    text-align: right;
}
.chapter-lock {
    margin-left: auto;
    color: var(--c-text-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.chapter-free {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-primary);
    background: var(--c-green-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    flex-shrink: 0;
}

/* === CHAPTER CONTENT === */
.chapter-header {
    background: linear-gradient(135deg, #1e4a85 0%, #2b5ea7 60%, #2b7a3d 100%);
    color: #fff;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.chapter-header::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: var(--radius-round);
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.chapter-header::after {
    content: "";
    position: absolute;
    bottom: -40px; left: 30%;
    width: 140px; height: 140px;
    border-radius: var(--radius-round);
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.chapter-header .ch-num {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.chapter-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
}
.chapter-header .ch-subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}
.chapter-body {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    font-family: var(--font-reading);
    font-size: 1.05rem;
    line-height: 1.8;
}
.chapter-body p { margin-bottom: 1.3rem; }
.chapter-body h2 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--c-blue-dark);
}
.chapter-body h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}
.chapter-body ul, .chapter-body ol { margin: 1rem 0 1.3rem 1.5rem; }
.chapter-body li { margin-bottom: 0.5rem; }
.chapter-body blockquote {
    border-left: 4px solid var(--c-blue);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--c-blue-light);
    border-radius: 0 16px 16px 0;
    font-style: italic;
}
.chapter-body .callout {
    background: var(--c-accent-light);
    border-left: 4px solid var(--c-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 16px 16px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.chapter-body .callout strong { color: #92400e; }
.chapter-body iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.chapter-nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.chapter-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--c-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--c-blue-light);
    transition: all 0.2s;
}
.chapter-nav a:hover { background: var(--c-blue); color: #fff; }

/* === SMSGO BANNER === */
.smsgo-banner {
    background: var(--c-green-light);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.smsgo-banner::before {
    content: "";
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: var(--radius-round);
    background: rgba(43,122,61,0.08);
    pointer-events: none;
}
.smsgo-banner::after {
    content: "";
    position: absolute;
    bottom: -20px; left: 10%;
    width: 80px; height: 80px;
    border-radius: var(--radius-round);
    background: rgba(43,122,61,0.06);
    pointer-events: none;
}
.smsgo-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}
.smsgo-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(43,122,61,0.3);
}
.smsgo-content h3 { font-size: 1rem; font-weight: 700; color: var(--c-primary-dark); margin-bottom: 0.15rem; }
.smsgo-content p { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.4; }

/* === CTA SECTION === */
.cta-section {
    background: var(--c-blue-light);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    border-radius: var(--radius-round);
    background: rgba(43,94,167,0.06);
    pointer-events: none;
}
.cta-section::after {
    content: "";
    position: absolute;
    bottom: -30px; right: 10%;
    width: 100px; height: 100px;
    border-radius: var(--radius-round);
    background: rgba(43,94,167,0.04);
    pointer-events: none;
}

/* === GATE / AUTH PAGES === */
.gate-page { max-width: 480px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.gate-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.gate-card::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: var(--radius-round);
    background: var(--c-blue-light);
    opacity: 0.5;
    pointer-events: none;
}
.gate-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; position: relative; }
.gate-card p { color: var(--c-text-muted); margin-bottom: 1.5rem; position: relative; }
.gate-card .divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0; color: var(--c-text-muted); font-size: 0.85rem; position: relative;
}
.gate-card .divider::before, .gate-card .divider::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.input-group { display: flex; gap: 0.5rem; margin-bottom: 1rem; position: relative; }
.input-group input {
    flex: 1; padding: 0.7rem 1rem;
    border: 1px solid var(--c-border); border-radius: 50px;
    font-size: 1rem; font-family: var(--font-body); transition: border-color 0.2s;
}
.input-group input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(43,94,167,0.1); }

/* === FLASH MESSAGES === */
.flash-container { max-width: var(--max-w-wide); margin: 0 auto; padding: 1rem 1.5rem 0; }
.flash { padding: 0.75rem 1.25rem; border-radius: 50px; font-size: 0.95rem; margin-bottom: 0.5rem; text-align: center; }
.flash-error { background: #fef2f2; color: var(--c-danger); border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: var(--c-primary-dark); border: 1px solid #bbf7d0; }

/* === ABOUT === */
.about-section { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; position: relative; }
.about-section::before {
    content: "";
    position: absolute;
    top: 20px; right: -40px;
    width: 140px; height: 140px;
    border-radius: var(--radius-round);
    background: rgba(43,94,167,0.04);
    pointer-events: none;
}
.about-section h1 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--c-blue-dark); }
.about-section p { font-family: var(--font-reading); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.3rem; }

/* === ADMIN === */
.admin-wrap { max-width: var(--max-w-wide); margin: 0 auto; padding: 2rem 1.5rem; }
.admin-wrap h1 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--c-blue-dark); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 20px; padding: 1.5rem; text-align: center; transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-circle); }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--c-blue); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--c-text-muted); margin-top: 0.25rem; }
.admin-table {
    width: 100%; border-collapse: collapse;
    background: var(--c-surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--c-border);
}
.admin-table th, .admin-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 0.9rem; }
.admin-table th {
    background: #f1f5f9; font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted);
}
.admin-form {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 16px; padding: 1.5rem; margin-bottom: 2rem;
}
.admin-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; margin-top: 1rem; }
.admin-form label:first-child { margin-top: 0; }
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form textarea {
    width: 100%; padding: 0.6rem 0.8rem;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 0.95rem;
}
.admin-form textarea { min-height: 300px; font-family: monospace; font-size: 0.85rem; line-height: 1.5; }
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--c-blue); }
.checkbox-row { display: flex; gap: 1.5rem; margin-top: 1rem; }
.checkbox-row label { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.badge-active { background: var(--c-green-light); color: var(--c-primary-dark); padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.badge-inactive { background: #fef2f2; color: var(--c-danger); padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }

/* === FOOTER === */
.footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    color: var(--c-blue-dark);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    bottom: -50px; right: -50px;
    width: 180px; height: 180px;
    border-radius: var(--radius-round);
    background: rgba(43,94,167,0.04);
    pointer-events: none;
}
.footer::after {
    content: "";
    position: absolute;
    top: -30px; left: -30px;
    width: 120px; height: 120px;
    border-radius: var(--radius-round);
    background: rgba(43,122,61,0.04);
    pointer-events: none;
}
.footer-inner { max-width: var(--max-w-wide); margin: 0 auto; position: relative; }
.footer-logo {
    width: 56px; height: 56px;
    border-radius: var(--radius-round);
    background: var(--c-blue-light);
    padding: 8px;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px rgba(43,94,167,0.12);
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-round); }
.footer p { font-size: 0.9rem; color: var(--c-blue-dark); }
.footer-tagline { font-style: italic; margin-top: 0.3rem; font-size: 0.85rem !important; color: var(--c-text-muted) !important; }
.footer a { color: var(--c-blue); }
.footer a:hover { color: var(--c-blue-dark); }

/* === 404 === */
.page-404 { text-align: center; padding: 5rem 1.5rem; }
.page-404 h1 {
    font-size: 4rem; color: var(--c-blue);
    width: 120px; height: 120px;
    border-radius: var(--radius-round);
    background: var(--c-blue-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}
.page-404 p { color: var(--c-text-muted); margin: 1rem 0; }

/* === BOOK PROMO === */
.book-promo {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.book-promo::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: var(--radius-round);
    background: rgba(43,94,167,0.04);
    pointer-events: none;
}
.book-promo::after {
    content: "";
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    border-radius: var(--radius-round);
    background: rgba(43,122,61,0.04);
    pointer-events: none;
}
.book-promo-inner {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}
.book-promo-cover {
    flex-shrink: 0;
    width: 280px;
}
.book-promo-cover img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.book-promo-cover img:hover {
    transform: scale(1.03) rotate(-1deg);
}
.book-promo-text {
    flex: 1;
}
.book-promo-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-blue-dark);
    margin-bottom: 0.25rem;
}
.book-promo-subtitle {
    font-size: 1rem;
    color: var(--c-gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.book-promo-text p {
    font-family: var(--font-reading);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}
.book-promo-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-inner { height: 60px; }
    .nav-brand img { height: 36px; }
    .nav-links {
        display: none; position: absolute; top: 60px; left: 0; right: 0;
        background: var(--c-surface); border-bottom: 1px solid var(--c-border);
        flex-direction: column; padding: 1rem 1.5rem; gap: 0.5rem;
        box-shadow: var(--shadow-md); border-radius: 0 0 16px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { padding: 2rem 1rem 2.5rem; }
    .hero-logo { max-width: 260px; margin-bottom: 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero .subtitle { font-size: 0.95rem; margin-bottom: 1rem; }
    .hero .byline { margin-bottom: 1rem; }
    .hero-actions { gap: 0.75rem; }
    .hero-actions .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
    .section { padding: 2rem 1rem; }
    .book-header { padding: 1rem; gap: 0.75rem; flex-wrap: wrap; }
    .book-number-circle { width: 40px; height: 40px; font-size: 1.1rem; }
    .book-header-info h2 { font-size: 1rem; }
    .book-progress-wrap { order: 4; width: 100%; }
    .book-progress-bar { flex: 1; width: auto; }
    .book-body { padding: 0 1rem 1rem; }
    .chapter-card { padding: 0.75rem 0.85rem; gap: 0.6rem; }
    .chapter-num { width: 30px; height: 30px; font-size: 0.8rem; }
    .chapter-info h3 { font-size: 0.85rem; }
    .chapter-info p { font-size: 0.75rem; }
    .chapter-progress-bar { width: 36px; }
    .chapter-pct { font-size: 0.65rem; min-width: 24px; }
    .chapter-body { padding: 1.5rem 1rem 2.5rem; font-size: 1rem; }
    .chapter-body h2 { font-size: 1.15rem; }
    .chapter-nav { flex-direction: column; text-align: center; padding: 0 1rem 2rem; }
    .chapter-nav a { display: block; }
    .smsgo-inner { flex-direction: column; text-align: center; }
    .smsgo-inner .btn { width: 100%; justify-content: center; }
    .input-group { flex-direction: column; }
    .input-group input { border-radius: 12px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer { padding: 2rem 1rem; }
    .footer-logo { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
    .hero-logo { max-width: 200px; }
    .hero h1 { font-size: 1.4rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .chapter-num { width: 28px; height: 28px; font-size: 0.75rem; }
    .book-number-circle { width: 36px; height: 36px; font-size: 1rem; }
}