/* Lightweight layout compat (replaces Bootstrap package — same class names used in HTML) */
*,*::before,*::after{box-sizing:border-box}
.container{width:100%;max-width:1140px;margin-left:auto;margin-right:auto;padding-left:12px;padding-right:12px}
.container-fluid{width:100%;padding-left:12px;padding-right:12px;margin-left:auto;margin-right:auto}
.row{display:flex;flex-wrap:wrap;margin-left:-8px;margin-right:-8px}
.row>*{padding-left:8px;padding-right:8px}
[class*="col-"]{width:100%;max-width:100%}
.col-6{flex:0 0 auto;width:50%}
.col-12{flex:0 0 auto;width:100%}
@media (min-width:576px){
  .col-sm-4{flex:0 0 auto;width:33.333%}
  .col-sm-6{flex:0 0 auto;width:50%}
  .col-sm-12{flex:0 0 auto;width:100%}
}
@media (min-width:768px){
  .col-md-3{flex:0 0 auto;width:25%}
  .col-md-4{flex:0 0 auto;width:33.333%}
  .col-md-5{flex:0 0 auto;width:41.666%}
  .col-md-6{flex:0 0 auto;width:50%}
  .col-md-7{flex:0 0 auto;width:58.333%}
}
@media (min-width:992px){
  .col-lg-2{flex:0 0 auto;width:16.666%}
  .col-lg-3{flex:0 0 auto;width:25%}
  .col-lg-4{flex:0 0 auto;width:33.333%}
  .col-lg-5{flex:0 0 auto;width:41.666%}
  .col-lg-7{flex:0 0 auto;width:58.333%}
  .col-lg-8{flex:0 0 auto;width:66.666%}
  .col-lg-12{flex:0 0 auto;width:100%}
}
@media (min-width:1200px){
  .col-xl-2{flex:0 0 auto;width:16.666%}
  .col-xl-6{flex:0 0 auto;width:50%}
}
.d-none{display:none!important}
.d-block{display:block!important}
.d-flex{display:flex!important}
.flex-wrap{flex-wrap:wrap!important}
.align-items-center{align-items:center!important}
.justify-content-between{justify-content:space-between!important}
.w-100{width:100%!important}
.h-100{height:100%!important}
.m-auto{margin:auto!important}
.m-0{margin:0!important}
.p-0{padding:0!important}
.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}
.text-end,.text-md-right{text-align:right!important}
.text-light{color:rgba(246,240,232,.85)!important}
.img-fluid{max-width:100%;height:auto}
.g-4,.gy-4{--g:1.5rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border:0;border-radius:.5rem;padding:.5rem .9rem;cursor:pointer;text-decoration:none}
.btn-primary{background:#c45c48;color:#fff}
.btn-secondary{background:#374151;color:#fff}
.form-control{width:100%;padding:.55rem .75rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.15);background:rgba(0,0,0,.25);color:inherit}
.nav{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.nav-item{list-style:none}
.nav-link{display:block;padding:.4rem .75rem;cursor:pointer;border:0;background:transparent;color:inherit;text-decoration:none}
.nav-pills .nav-link{border-radius:999px}
.nav-pills .nav-link.active,.nav-link.active{background:#c45c48;color:#fff}
.tab-content>.tab-pane{display:none}
.tab-content>.tab-pane.active{display:block}
.fade{transition:opacity .15s linear}
.fade:not(.show){opacity:0}
.tab-content>.tab-pane.fade{opacity:0}
.tab-content>.tab-pane.fade.active,.tab-content>.tab-pane.fade.show{opacity:1}
.dropdown{position:relative}
.dropdown-menu{display:none;position:absolute;right:0;top:100%;z-index:20;min-width:180px;padding:.4rem;margin-top:.35rem;border-radius:.65rem;background:#151019;border:1px solid rgba(243,214,196,.14);list-style:none}
.dropdown-menu.show{display:block}
.dropdown-item{display:block;padding:.55rem .7rem;color:inherit;text-decoration:none;border-radius:.4rem}
.dropdown-item:hover{background:rgba(255,255,255,.06)}
.modal{display:none;position:fixed;inset:0;z-index:1050}
.modal.show{display:block}
.modal-dialog{max-width:520px;margin:4rem auto;padding:0 1rem}
.modal-content{background:#151019;border:1px solid rgba(243,214,196,.14);border-radius:1rem;padding:1rem}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1040}
@media (min-width:768px){
  .d-md-none{display:none!important}
  .d-md-block{display:block!important}
}
@media (min-width:992px){
  .d-lg-none{display:none!important}
  .d-lg-block{display:block!important}
}

/* Vanilla carousel shell (replaces slick) */
.lunara-carousel{position:relative}
.lunara-carousel-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.lunara-carousel-track::-webkit-scrollbar{display:none}
.lunara-carousel-track>*{scroll-snap-align:start;flex:0 0 auto}
.lunara-carousel.fade-mode .lunara-carousel-track{display:block;overflow:hidden}
.lunara-carousel.fade-mode .lunara-carousel-track>*{display:none;width:100%}
.lunara-carousel.fade-mode .lunara-carousel-track>.is-active{display:block}
.lunara-carousel .prevArrow,.lunara-carousel .nextArrow{z-index:5;cursor:pointer}
.lunara-carousel .lunara-dots{display:flex;gap:6px;justify-content:center;margin-top:10px}
.lunara-carousel .lunara-dots button{
  width:8px;height:8px;border-radius:50%;border:0;background:rgba(255,255,255,.25);padding:0;cursor:pointer
}
.lunara-carousel .lunara-dots button.is-active{background:#c45c48}

/* Chapter reading progress */
.progress-container{position:fixed;top:0;left:0;width:100%;height:3px;z-index:9999;background:transparent}
.progress-bar{height:3px;width:0;background:#c45c48}
