/* ============================
   ROOT & DESIGN TOKENS
   Suasana Bandung: hijau-sage, biru-kabut, krem-hujan
   ============================ */
   :root {
    --bg-main: #e8ede8;
    --bg-card: #f4f7f2;
    --bg-paper: #faf9f5;
    --bg-cover: #2d4a3e;
    --bg-cover-2: #1a3028;
  
    --sage:        #6b8f71;
    --sage-dark:   #4a6b52;
    --sage-light:  #9db8a1;
    --moss:        #3d5c45;
    --mist:        #b4c5bc;
    --rain:        #7a9ca3;
    --rain-dark:   #4e7a85;
    --cream:       #f0ebe0;
    --cream-dark:  #d9d1c0;
    --amber:       #c8a96e;
    --amber-light: #e5c98a;
    --text-main:   #2c3b30;
    --text-mid:    #4a6351;
    --text-light:  #7a9a82;
    --text-muted:  #aec0b2;
  
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Lora', Georgia, serif;
    --font-ui:      'Nunito', sans-serif;
  
    --shadow-soft: 0 8px 40px rgba(45,74,62,0.12);
    --shadow-book: 0 30px 80px rgba(26,48,40,0.3), 0 10px 30px rgba(26,48,40,0.2);
    --radius-card: 16px;
    --radius-sm:   8px;
  
    --transition: 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    --font-size-reader: 17px;
  }
  
  /* DARK THEME (malam Bandung) */
  body.dark {
    --bg-main:   #1a2420;
    --bg-card:   #1f2d28;
    --bg-paper:  #243028;
    --cream:     #2a3530;
    --text-main: #d4e2d8;
    --text-mid:  #a8c0b0;
    --text-light:#7a9a82;
  }
  
  /* RESET */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-ui);
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
  }
  
  /* ============================
     AMBIENT BACKGROUND
     ============================ */
  .ambient-bg {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .mist {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: mistDrift 20s ease-in-out infinite alternate;
  }
  .mist-1 {
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, #7ab8a0, transparent 70%);
    top: -10%; left: -10%;
    animation-duration: 18s;
  }
  .mist-2 {
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, #a0c4d0, transparent 70%);
    bottom: -5%; right: -5%;
    animation-duration: 24s; animation-delay: -8s;
  }
  .mist-3 {
    width: 400px; height: 300px;
    background: radial-gradient(ellipse, #c8d8b0, transparent 70%);
    top: 40%; left: 30%;
    animation-duration: 30s; animation-delay: -15s;
  }
  @keyframes mistDrift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(40px,30px) scale(1.1); }
  }
  
  /* RAIN PARTICLES */
  .rain-container, .petals-container {
    position: absolute; inset: 0; overflow: hidden;
  }
  .rain-drop {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(160,196,208,0.6), transparent);
    animation: rainFall linear infinite;
    border-radius: 50%;
  }
  @keyframes rainFall {
    0%   { transform: translateY(-20px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(100vh); opacity: 0; }
  }
  .petal {
    position: absolute;
    font-size: 10px;
    opacity: 0.4;
    animation: petalFall linear infinite;
  }
  @keyframes petalFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    15%  { opacity: 0.5; }
    85%  { opacity: 0.3; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
  }
  
  /* ============================
     LANDING PAGE
     ============================ */
  .landing-page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
  }
  
  .landing-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 40px;
    animation: fadeDown 0.8s ease both;
  }
  .header-brand {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    color: var(--sage-dark);
  }
  .brand-dot {
    width: 8px; height: 8px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
  }
  .header-label {
    font-size: 13px; color: var(--text-light);
    letter-spacing: 0.08em;
    font-family: var(--font-ui);
  }
  @keyframes pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.7; }
  }
  
  .landing-content {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    gap: 80px;
  }
  
  /* BOOK SCENE */
  .book-scene {
    position: relative;
    animation: fadeUp 1s 0.3s ease both;
  }
  .book-wrapper {
    position: relative;
    perspective: 1200px;
  }
  .book {
    width: 220px; height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
    cursor: pointer;
    animation: bookFloat 5s ease-in-out infinite;
    filter: drop-shadow(var(--shadow-book));
  }
  .book:hover {
    transform: rotateY(-30deg) rotateX(8deg) scale(1.04);
  }
  @keyframes bookFloat {
    0%,100% { transform: rotateY(-20deg) rotateX(5deg) translateY(0); }
    50%      { transform: rotateY(-20deg) rotateX(5deg) translateY(-12px); }
  }
  
  .book-cover {
    position: absolute; inset: 0;
    background: var(--bg-cover);
    border-radius: 4px 12px 12px 4px;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translateZ(18px);
    display: flex; flex-direction: column;
    align-items: center;
    padding: 20px 16px 16px;
    border-right: 3px solid rgba(0,0,0,0.15);
  }
  .cover-texture {
    position: absolute; inset: 0;
    background: 
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.015) 30px,
        rgba(255,255,255,0.015) 31px
      ),
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.015) 30px,
        rgba(255,255,255,0.015) 31px
      );
    pointer-events: none;
  }
  
  /* COVER ART - Mountain skyline */
  .cover-art {
    position: relative;
    width: 100%; height: 120px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, #0d2438 0%, #1a4a6b 40%, #2d6b5e 70%, #3d5c45 100%);
  }
  .cover-mountains {
    position: absolute; bottom: 0; left: 0; right: 0;
  }
  .mountain {
    position: absolute; bottom: 0;
    border-left: solid transparent;
    border-right: solid transparent;
    border-bottom: solid;
  }
  .m1 {
    border-left-width: 55px; border-right-width: 55px;
    border-bottom-width: 80px;
    border-bottom-color: #1e3d2f;
    left: -10px;
  }
  .m2 {
    border-left-width: 70px; border-right-width: 70px;
    border-bottom-width: 95px;
    border-bottom-color: #2d5040;
    left: 50px;
  }
  .m3 {
    border-left-width: 50px; border-right-width: 50px;
    border-bottom-width: 70px;
    border-bottom-color: #163320;
    right: -5px;
  }
  .cover-rain-lines {
    position: absolute; inset: 0;
    display: flex; gap: 14px;
    justify-content: center;
    padding: 8px;
  }
  .cover-rain-lines span {
    display: block;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(160,210,230,0.5) 50%, transparent 100%);
    animation: rainLine 2s ease-in-out infinite;
  }
  .cover-rain-lines span:nth-child(odd) { animation-delay: -1s; }
  @keyframes rainLine {
    0%,100% { opacity: 0.3; transform: translateY(-5px); }
    50%      { opacity: 0.8; transform: translateY(5px); }
  }
  
  .cover-street {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    display: flex; align-items: flex-end; justify-content: space-around;
    padding: 0 20px 4px;
  }
  .lamp-post {
    width: 3px; height: 28px;
    background: rgba(255,220,100,0.7);
    border-radius: 2px;
    position: relative;
  }
  .lamp-glow {
    position: absolute; top: -4px; left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 12px;
    background: radial-gradient(circle, rgba(255,220,100,0.9) 0%, transparent 70%);
    border-radius: 50%;
    animation: lampGlow 3s ease-in-out infinite;
  }
  @keyframes lampGlow {
    0%,100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.3); }
  }
  
  .cover-top-label {
    font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(196,220,196,0.7);
    font-family: var(--font-ui);
    margin-bottom: 4px;
  }
  .cover-title-wrap {
    text-align: center; margin-bottom: 6px;
  }
  .cover-title-di {
    font-family: var(--font-display);
    font-size: 22px; font-style: italic; font-weight: 400;
    color: rgba(200,230,200,0.8);
    line-height: 1;
  }
  .cover-title-bandung {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 700;
    color: #c8d8a8;
    line-height: 1;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  }
  .cover-subtitle {
    font-size: 8px; color: rgba(180,210,180,0.6);
    text-align: center; line-height: 1.5;
    font-family: var(--font-body);
    font-style: italic;
    margin-bottom: auto;
  }
  .cover-bottom-bar {
    width: 100%;
    border-top: 1px solid rgba(200,210,180,0.15);
    padding-top: 8px;
    text-align: center;
  }
  .cover-ornament {
    font-size: 8px; letter-spacing: 4px;
    color: rgba(200,210,180,0.5);
  }
  
  /* BOOK SPINE */
  .book-spine {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 36px;
    background: linear-gradient(180deg, #1a3028, #2d4a3e);
    transform: rotateY(-90deg) translateX(-18px) translateZ(18px);
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px 0 0 4px;
  }
  .book-spine span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-size: 11px; font-weight: 600;
    color: rgba(200,220,200,0.7);
    letter-spacing: 0.1em;
  }
  .book-back {
    position: absolute; inset: 0;
    background: var(--bg-cover-2);
    border-radius: 4px 12px 12px 4px;
    transform: translateZ(-18px);
    backface-visibility: hidden;
  }
  .book-pages {
    position: absolute;
    top: 2px; bottom: 2px;
    right: -4px;
    width: 20px;
    background: repeating-linear-gradient(
      0deg,
      #f0ece0 0px, #f0ece0 1px,
      #e8e4d4 1px, #e8e4d4 2px
    );
    border-radius: 0 2px 2px 0;
    transform: translateZ(0);
  }
  
  .book-shadow {
    position: absolute;
    bottom: -30px; left: 10%;
    width: 80%; height: 40px;
    background: radial-gradient(ellipse, rgba(45,74,62,0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: shadowPulse 5s ease-in-out infinite;
  }
  @keyframes shadowPulse {
    0%,100% { opacity: 0.6; transform: scaleX(1); }
    50%      { opacity: 0.4; transform: scaleX(0.9); }
  }
  
  /* FLOATING LABELS */
  .float-label {
    position: absolute;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(107,143,113,0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    font-family: var(--font-ui);
    color: var(--sage-dark);
    font-weight: 500;
    white-space: nowrap;
    animation: floatLabel 4s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(45,74,62,0.1);
  }
  .fl-1 { top: -10px; right: -50px; animation-delay: 0s; }
  .fl-2 { bottom: 40px; right: -60px; animation-delay: -1.5s; }
  .fl-3 { bottom: -10px; left: -50px; animation-delay: -3s; }
  @keyframes floatLabel {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }
  
  /* LANDING TEXT */
  .landing-text {
    max-width: 460px;
    animation: fadeUp 1s 0.5s ease both;
  }
  .landing-eyebrow {
    font-size: 13px; letter-spacing: 0.1em;
    color: var(--sage); text-transform: uppercase;
    font-family: var(--font-ui); font-weight: 500;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
  }
  .landing-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 72px);
    line-height: 1;
    color: var(--text-main);
    margin-bottom: 24px;
  }
  .landing-title em {
    color: var(--sage);
    font-style: italic;
  }
  .landing-desc {
    font-family: var(--font-body);
    font-size: 15px; line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 28px;
  }
  .landing-meta {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 36px;
  }
  .meta-item {
    font-size: 13px; color: var(--text-light);
    font-family: var(--font-ui);
  }
  .meta-sep { color: var(--text-muted); }
  
  .btn-open {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 36px;
    background: var(--bg-cover);
    color: rgba(200,230,200,0.95);
    border: none; border-radius: 50px;
    font-family: var(--font-ui); font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 8px 30px rgba(45,74,62,0.35), 0 2px 8px rgba(45,74,62,0.2);
    letter-spacing: 0.03em;
  }
  .btn-open:hover {
    background: var(--moss);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(45,74,62,0.45);
  }
  .btn-open:active { transform: translateY(0); }
  .btn-icon { font-size: 18px; }
  .btn-ripple {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: scale(0); border-radius: 50px;
    animation: rippleOut 0.6s ease;
  }
  .btn-open:active .btn-ripple { animation: rippleOut 0.6s ease; }
  @keyframes rippleOut {
    0%   { transform: scale(0); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
  }
  
  .landing-footer {
    padding: 20px 40px;
    text-align: center;
    animation: fadeUp 1s 0.8s ease both;
  }
  .footer-scroll {
    display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 12px;
  }
  .scroll-icon {
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
  }
  .scroll-icon::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
  }
  @keyframes scrollDot {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    80%  { opacity: 0; transform: translateX(-50%) translateY(12px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(0); }
  }
  
  /* ============================
     READER PAGE
     ============================ */
  .reader-page {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg-paper);
    display: flex; flex-direction: column;
    transition: background var(--transition);
  }
  .reader-page.hidden { display: none; }
  
  .reader-header {
    display: flex; align-items: center;
    padding: 14px 24px;
    background: rgba(var(--bg-paper), 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107,143,113,0.15);
    gap: 16px;
    position: sticky; top: 0; z-index: 10;
    transition: all var(--transition);
  }
  .btn-back {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: rgba(107,143,113,0.12);
    border: 1px solid rgba(107,143,113,0.25);
    border-radius: 8px;
    color: var(--sage-dark);
    font-family: var(--font-ui); font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .btn-back:hover { background: rgba(107,143,113,0.22); }
  
  .reader-title-bar {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center;
  }
  .reader-novel-name {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    color: var(--text-main);
  }
  .reader-chapter-name {
    font-size: 12px; color: var(--text-light);
    font-family: var(--font-ui);
  }
  
  .reader-controls {
    display: flex; gap: 6px;
  }
  .ctrl-btn {
    width: 34px; height: 34px;
    border: 1px solid rgba(107,143,113,0.25);
    border-radius: 8px;
    background: rgba(107,143,113,0.08);
    color: var(--sage-dark);
    font-family: var(--font-ui); font-size: 13px; font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
  }
  .ctrl-btn:hover { background: rgba(107,143,113,0.2); }
  
  /* PROGRESS BAR */
  .reading-progress {
    height: 3px;
    background: rgba(107,143,113,0.15);
    position: sticky; top: 0; z-index: 9;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--sage), var(--amber));
    transition: width 0.2s ease;
    width: 0%;
    border-radius: 0 2px 2px 0;
  }
  
  .reader-layout {
    display: flex; flex: 1;
    overflow: hidden;
  }
  
  /* TOC SIDEBAR */
  .toc-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-card);
    border-right: 1px solid rgba(107,143,113,0.12);
    display: flex; flex-direction: column;
    overflow-y: auto;
    transition: all var(--transition);
  }
  .toc-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(107,143,113,0.12);
  }
  .toc-book-mini {
    margin-bottom: 12px;
  }
  .toc-cover-mini {
    display: inline-flex; align-items: baseline; gap: 2px;
    background: var(--bg-cover);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #c8d8a8;
    font-family: var(--font-display);
  }
  .toc-cover-mini strong { font-weight: 700; font-size: 13px; }
  .toc-header h3 {
    font-family: var(--font-ui); font-size: 12px;
    color: var(--text-muted); letter-spacing: 0.1em;
    text-transform: uppercase; font-weight: 600;
  }
  
  .toc-nav {
    flex: 1; padding: 12px 0;
  }
  .toc-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-family: var(--font-ui); font-size: 13px;
    color: var(--text-mid);
  }
  .toc-item:hover {
    background: rgba(107,143,113,0.08);
    color: var(--text-main);
    border-left-color: rgba(107,143,113,0.3);
  }
  .toc-item.active {
    background: rgba(107,143,113,0.12);
    border-left-color: var(--sage);
    color: var(--sage-dark);
    font-weight: 600;
  }
  .toc-num {
    width: 22px; height: 22px;
    background: rgba(107,143,113,0.12);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    color: var(--sage); flex-shrink: 0;
  }
  .toc-item.active .toc-num { background: var(--sage); color: white; }
  .toc-title { line-height: 1.3; }
  
  .toc-toggle-mob { display: none; }
  
  /* MAIN READER */
  .reader-main {
    flex: 1; overflow-y: auto;
    padding: 0;
    scroll-behavior: smooth;
  }
  .reader-main::-webkit-scrollbar { width: 6px; }
  .reader-main::-webkit-scrollbar-track { background: transparent; }
  .reader-main::-webkit-scrollbar-thumb {
    background: rgba(107,143,113,0.3);
    border-radius: 3px;
  }
  
  .chapter-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 40px 100px;
    animation: fadeUp 0.5s ease both;
  }
  
  /* CHAPTER HEADER */
  .chapter-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(107,143,113,0.15);
    position: relative;
  }
  .chapter-label {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted); font-family: var(--font-ui); font-weight: 600;
    margin-bottom: 12px;
  }
  .chapter-number {
    font-family: var(--font-display);
    font-size: 64px; font-weight: 700; font-style: italic;
    color: rgba(107,143,113,0.15);
    line-height: 1;
    position: absolute; top: -20px; left: 50%;
    transform: translateX(-50%);
    user-select: none;
  }
  .chapter-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700; line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 12px;
    position: relative; z-index: 1;
  }
  .chapter-ornament {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--sage-light);
    font-size: 12px;
  }
  .chapter-ornament::before,
  .chapter-ornament::after {
    content: '';
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, var(--sage-light));
  }
  .chapter-ornament::after { background: linear-gradient(to left, transparent, var(--sage-light)); }
  
  /* CHAPTER BODY */
  .chapter-body {
    font-family: var(--font-body);
    font-size: var(--font-size-reader);
    line-height: 1.95;
    color: var(--text-mid);
  }
  .chapter-body p {
    margin-bottom: 1.5em;
    text-indent: 1.5em;
  }
  .chapter-body p:first-child { text-indent: 0; }
  .chapter-body p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3em;
    font-weight: 700;
    color: var(--sage);
    float: left;
    line-height: 0.75;
    margin: 0 8px -4px 0;
  }
  .chapter-body em { font-style: italic; color: var(--text-main); }
  .chapter-body .dialogue {
    color: var(--text-main);
    font-style: italic;
  }
  
  /* Chapter end */
  .chapter-end {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(107,143,113,0.15);
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-ui);
    display: flex; align-items: center; justify-content: center; gap: 12px;
  }
  
  /* CHAPTER NAV */
  .chapter-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
    background: var(--bg-card);
    border-top: 1px solid rgba(107,143,113,0.12);
    position: sticky; bottom: 0; z-index: 10;
  }
  .nav-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: rgba(107,143,113,0.1);
    border: 1px solid rgba(107,143,113,0.2);
    border-radius: 10px;
    color: var(--sage-dark);
    font-family: var(--font-ui); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
  }
  .nav-btn:hover:not(:disabled) {
    background: rgba(107,143,113,0.2);
    transform: translateY(-1px);
  }
  .nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  .chapter-indicator {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 600;
    color: var(--text-mid);
  }
  
  /* MOBILE DRAWER */
  .fab-toc {
    display: none;
    position: fixed; bottom: 80px; right: 20px; z-index: 50;
    width: 48px; height: 48px;
    background: var(--bg-cover);
    color: rgba(200,230,200,0.9);
    border: none; border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(45,74,62,0.35);
    align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .fab-toc:hover { transform: scale(1.08); }
  
  .toc-drawer {
    display: none;
    position: fixed; inset: 0; z-index: 200;
    pointer-events: none;
  }
  .toc-drawer.open { pointer-events: all; }
  .toc-drawer-inner {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 280px;
    background: var(--bg-card);
    box-shadow: 4px 0 30px rgba(45,74,62,0.2);
    transform: translateX(-100%);
    transition: transform var(--transition);
    display: flex; flex-direction: column;
    overflow-y: auto;
  }
  .toc-drawer.open .toc-drawer-inner { transform: translateX(0); }
  .toc-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(107,143,113,0.12);
  }
  .toc-drawer-header h3 {
    font-family: var(--font-display);
    font-size: 16px; font-weight: 700;
    color: var(--text-main);
  }
  .toc-drawer-header button {
    width: 32px; height: 32px;
    background: rgba(107,143,113,0.1);
    border: none; border-radius: 8px;
    cursor: pointer;
    color: var(--text-mid);
    font-size: 14px;
  }
  .toc-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 190;
    background: rgba(26,48,40,0.4);
    backdrop-filter: blur(4px);
  }
  .toc-overlay.open { display: block; }
  
  /* ============================
     TRANSITIONS & ANIMATIONS
     ============================ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  
  .page-enter {
    animation: fadeUp 0.5s ease both;
  }
  
  /* ============================
     RESPONSIVE
     ============================ */
  @media (max-width: 900px) {
    .landing-content { gap: 48px; flex-direction: column; padding: 20px 24px; }
    .book-scene { order: 1; }
    .landing-text { order: 2; text-align: center; }
    .landing-meta { justify-content: center; }
    .btn-open { align-self: center; }
    .fl-1 { right: -30px; }
    .fl-2 { right: -40px; bottom: 30px; }
    .fl-3 { left: -30px; }
  }
  
  @media (max-width: 720px) {
    .toc-sidebar { display: none; }
    .fab-toc { display: flex; }
    .toc-drawer { display: block; }
    .chapter-container { padding: 32px 20px 80px; }
    .chapter-number { font-size: 48px; }
    .reader-header { padding: 10px 16px; }
    .btn-back span { display: none; }
    .landing-header { padding: 16px 20px; }
    .float-label { display: none; }
  }
  
  @media (max-width: 480px) {
    .book { width: 180px; height: 250px; }
    .cover-title-bandung { font-size: 26px; }
    .cover-art { height: 95px; }
    .landing-title { font-size: 42px; }
    .chapter-container { padding: 24px 16px 80px; }
    .nav-btn span { display: none; }
    .nav-btn { padding: 10px 14px; }
  }
  