
    /* ✅ Fuerza el fondo oscuro aunque el layout ponga blanco */
    html, body {
      height: 100%;
    }
    body{
      margin:0;
      background:
        radial-gradient(1000px 600px at 15% 10%, rgba(124,58,237,.35), transparent 60%),
        radial-gradient(900px 520px at 90% 25%, rgba(255,176,0,.22), transparent 60%),
        linear-gradient(180deg, #0b1020, #0a1635) !important;
      color: #e9eefc;
    }
  
    /* si tu layout usa un contenedor tipo .container/.content con fondo blanco */
    main, .main-content, .content, .container, .container-fluid, .page, .app-content {
      background: transparent !important;
    }
   

 
    .topActions{
      display:flex;
      gap:10px;
      align-items:center;
      flex-wrap:wrap;
    }
    .linkBtn{
      display:inline-flex;
      gap:8px;
      align-items:center;
      padding:10px 12px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      color: #e9eefc;
      text-decoration:none;
      font-weight: 750;
      font-size: 13px;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
      user-select:none;
    }
    .linkBtn:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,.09);
      border-color: rgba(255,255,255,.22);
    }
 
  
  
 
    :root{
      --bg1:#0b1020;
      --bg2:#0a1635;
      --card:rgba(255,255,255,.06);
      --card2:rgba(255,255,255,.08);
      --border:rgba(255,255,255,.12);
      --text:#e9eefc;
      --muted:rgba(233,238,252,.70);
      --accent:#ffb000;
      --accent2:#7c3aed;
      --shadow: 0 18px 50px rgba(0,0,0,.45);
      --radius:18px;
    }
  
    .wrap{
      max-width: 980px;
      margin: 0 auto;
      padding: 28px 16px 60px;
    }
  
    /* Header (igual vibe a la de capítulos) */
    .topbar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom: 16px;
    }
    .brand{
      display:flex;
      align-items:center;
      gap:12px;
      min-width:0;
    }
    .logo{
      width:44px;height:44px;border-radius:14px;
      background: linear-gradient(135deg, rgba(255,176,0,.95), rgba(124,58,237,.95));
      box-shadow: 0 10px 30px rgba(124,58,237,.25);
      display:grid;place-items:center;
      border: 1px solid rgba(255,255,255,.18);
      flex:0 0 auto;
    }
    .titleblock{min-width:0;}
    .titleblock h1{
      margin:0;
      font-size: 18px;
      letter-spacing:.2px;
      line-height:1.15;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .titleblock p{
      margin:4px 0 0;
      font-size: 13px;
      color: var(--muted);
    }
    .pill{
      display:flex;
      gap:8px;
      align-items:center;
      padding: 10px 12px;
      border-radius: 999px;
      border:1px solid var(--border);
      background: rgba(255,255,255,.05);
      backdrop-filter: blur(10px);
      color: var(--muted);
      font-size: 13px;
      white-space: nowrap;
    }
  
    /* Cards */
    .card{
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow:hidden;
      backdrop-filter: blur(10px);
    }
    .cardHeader{
      padding: 16px 16px 12px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:10px;
    }
    .cardHeader h2{
      margin:0;
      font-size: 15px;
      letter-spacing:.2px;
    }
    .sub{
      margin:6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height:1.35;
    }
  
    /* Controls row */
    .controls{
      padding: 12px 16px 14px;
      display:flex;
      gap:10px;
      align-items:center;
      flex-wrap:wrap;
    }
    .input{
      flex: 1 1 240px;
      padding: 12px 12px;
      border-radius: 14px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.18);
      color: var(--text);
      outline:none;
      transition: border-color .12s ease, background .12s ease;
    }
    .input:focus{
      border-color: rgba(255,176,0,.45);
      background: rgba(0,0,0,.24);
    }
  
    .tabs{
      display:flex;
      gap:8px;
      align-items:center;
      flex: 0 0 auto;
    }
    .tab{
      border:1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      color: var(--text);
      padding: 10px 12px;
      border-radius: 12px;
      cursor:pointer;
      font-weight: 750;
      font-size: 13px;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
      user-select:none;
    }
    .tab:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,.09);
      border-color: rgba(255,255,255,.22);
    }
    .tab.active{
      border-color: rgba(255,176,0,.35);
      background: rgba(255,176,0,.12);
    }
  
    /* Lists */
    .lists{
      display:grid;
      grid-template-columns: 1fr;
      gap: 14px;
      padding: 0 0 14px;
    }
    @media(min-width: 920px){
      .lists{
        grid-template-columns: 1fr 1fr;
        padding: 0 0 16px;
      }
    }
  
    .listWrap{
      padding: 0 10px 14px;
    }
    .listTitleRow{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:10px;
      padding: 12px 16px 10px;
    }
    .listTitleRow .label{
      font-weight: 850;
      font-size: 13px;
      letter-spacing:.2px;
    }
    .listTitleRow .count{
      color: var(--muted);
      font-size: 12px;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
      padding:6px 10px;
      border-radius: 999px;
    }
  
    ul.books{
      list-style:none;
      margin:0;
      padding: 0 10px 12px;
      max-height: 540px;
      overflow:auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,.22) transparent;
    }
    ul.books::-webkit-scrollbar{ width: 10px; }
    ul.books::-webkit-scrollbar-thumb{
      background: rgba(255,255,255,.16);
      border-radius: 999px;
      border: 2px solid transparent;
      background-clip: content-box;
    }
  
    .book{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding: 12px 12px;
      margin: 8px 0;
      border-radius: 14px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.04);
      text-decoration:none;
      color: inherit;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
    }
    .book:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,.07);
      border-color: rgba(255,255,255,.18);
    }
    .bookLeft{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }
    .badge{
      width:34px;height:34px;border-radius:12px;
      display:grid;place-items:center;
      font-weight: 900;
      font-size: 12px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.20);
      flex:0 0 auto;
    }
    .bookName{
      min-width:0;
      font-weight: 800;
      font-size: 13px;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }
    .chip{
      padding: 6px 10px;
      border-radius: 999px;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
      display:inline-flex;
      align-items:center;
      gap:8px;
      color: var(--muted);
      font-size: 12px;
      flex:0 0 auto;
    }
  
    .empty{
      margin: 12px 16px 16px;
      padding: 12px 14px;
      border-radius: 14px;
      border:1px dashed rgba(255,255,255,.18);
      color: var(--muted);
      background: rgba(255,255,255,.03);
      display:none;
    }
  
    /* Responsive: cuando use tabs (mobile), ocultamos panel */
    .hidden{ display:none !important; }


/* ✅ Forzar títulos y labels a claro (gana a Bootstrap/layout) */
.wrap .titleblock h1,
.wrap .cardHeader h2,
.wrap .listTitleRow .label,
.wrap .bookName,
.wrap .badge,
.wrap h1,
.wrap h2,
.wrap h3,
.wrap h4,
.wrap h5,
.wrap h6 {
  color: #e4e4e4 !important;
}

/* Si algún link dentro hereda color oscuro */
.wrap a,
.wrap a:visited {
  color: inherit;
}

/* Por si Bootstrap mete --bs-heading-color oscuro */
:root {
  --bs-heading-color: #e4e4e4;
}
