@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
    body { font-family: 'Plus Jakarta Sans', sans-serif; }
    .custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
    .custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
    .custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    
    .hero-gradient {
      background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%),
                  linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    }

.metric-card {
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.metric-card span { display:block; font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; color:rgb(100 116 139); }
.metric-card strong { display:block; margin-top:.35rem; font-size:1.75rem; line-height:1; font-weight:900; color:rgb(30 41 59); }
.metric-card small { display:block; margin-top:.35rem; font-size:.7rem; color:rgb(148 163 184); }
.book-cover { width: 56px; height: 80px; object-fit: cover; border-radius: .5rem; background: rgb(241 245 249); border: 1px solid rgb(226 232 240); }
.bottom-safe { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 640px) {
  #appContainer main { padding-bottom: 5rem; }
}

/* BiblioTech 2.2 refinements */
.loan-filter-card { transition: transform .15s ease, box-shadow .15s ease; }
.loan-filter-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(15 23 42 / .06); }
@media (max-width: 639px) {
  #appContainer > nav.bg-white.border-b { display:none; }
  #appContainer main { padding-bottom: 5.5rem; }
  .book-cover { width:48px; height:68px; }
}


/* BiblioTech 2.2.2 — Estante Digital */
.recent-book-card{display:flex;align-items:center;gap:.85rem;padding:.75rem;border:1px solid rgb(226 232 240);border-radius:.85rem;background:#fff;transition:box-shadow .15s ease,transform .15s ease,border-color .15s ease;min-width:0}
.recent-book-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgb(15 23 42 / .07);border-color:rgb(199 210 254)}
.recent-cover{width:46px;height:66px;object-fit:cover;border-radius:.45rem;border:1px solid rgb(226 232 240);box-shadow:0 3px 10px rgb(15 23 42 / .08);flex:none}
.digital-book-card{background:#fff;border:1px solid rgb(226 232 240);border-radius:1rem;box-shadow:0 1px 2px rgb(15 23 42 / .04);padding:1rem;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.digital-book-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgb(15 23 42 / .07);border-color:rgb(199 210 254)}
.digital-shelf-cover{width:78px;height:112px;object-fit:cover;border-radius:.55rem;background:rgb(248 250 252);border:1px solid rgb(226 232 240);box-shadow:0 5px 14px rgb(15 23 42 / .10);flex:none}
.shelf-cover-row{display:flex;align-items:end;margin-top:.45rem;height:34px}
.shelf-cover-row img,.shelf-cover-row span{width:22px;height:32px;border-radius:.2rem;border:1px solid rgb(226 232 240);object-fit:cover;background:#fff;margin-right:-5px;box-shadow:0 1px 4px rgb(15 23 42 / .08);display:flex;align-items:center;justify-content:center;color:rgb(148 163 184)}
.shelf-cover-row em{font-style:normal;font-size:10px;font-weight:800;color:rgb(99 102 241);margin-left:9px;align-self:center}
@media (max-width:639px){
  .digital-shelf-cover{width:62px;height:90px}
  .digital-book-card{padding:.85rem}
  .recent-cover{width:42px;height:60px}
}


/* BiblioTech 2.3.1 — Saneamento e qualidade dos dados */
.loan-filter-active{box-shadow:0 0 0 2px rgb(99 102 241 / .16),0 8px 24px rgb(15 23 42 / .07);transform:translateY(-1px)}
.report-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem .8rem;border:1px solid rgb(226 232 240);border-radius:.75rem;background:rgb(248 250 252)}
.report-row strong{display:block;font-size:.78rem;color:rgb(51 65 85)}
.report-row span{display:block;font-size:.68rem;color:rgb(148 163 184);margin-top:.15rem}
.report-row b{font-size:1rem;color:rgb(67 56 202);white-space:nowrap}
.report-rank{display:flex;align-items:center;gap:.65rem;padding:.6rem .25rem;border-bottom:1px solid rgb(241 245 249);font-size:.78rem;color:rgb(71 85 105)}
.report-rank:last-child{border-bottom:0}
.report-rank-num{width:1.35rem;height:1.35rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgb(238 242 255);color:rgb(79 70 229);font-size:.65rem;font-weight:800;flex:none}
.report-rank strong{color:rgb(30 41 59)}
@media (min-width:768px){.digital-shelf-cover{width:92px;height:132px}}

/* BiblioTech 2.4 — Planos por tamanho de acervo */
#planUsageBar{min-width:0}
@media (max-width:639px){#plansModal .max-w-4xl{margin-top:1rem;margin-bottom:5rem}}

/* BiblioTech 2.5 — Landing comercial */
html{scroll-behavior:smooth}
.landing-step{position:relative;background:#fff;border:1px solid rgb(226 232 240);border-radius:1.25rem;padding:1.4rem;box-shadow:0 1px 2px rgb(15 23 42/.03)}
.landing-step>span{position:absolute;right:1rem;top:.8rem;font-size:2.5rem;line-height:1;font-weight:900;color:rgb(224 231 255)}
.landing-step-icon{width:2.75rem;height:2.75rem;border-radius:.85rem;background:rgb(238 242 255);color:rgb(79 70 229);display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.landing-step-icon svg{width:1.25rem;height:1.25rem}
.landing-step h3{font-size:1rem;font-weight:800;color:rgb(15 23 42)}
.landing-step p{font-size:.8rem;line-height:1.65;color:rgb(100 116 139);margin-top:.45rem}
.landing-feature{border:1px solid rgb(226 232 240);border-radius:1.25rem;padding:1.4rem;background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.landing-feature:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgb(15 23 42/.07);border-color:rgb(199 210 254)}
.landing-feature>svg{width:1.4rem;height:1.4rem;color:rgb(79 70 229);margin-bottom:1rem}
.landing-feature h3{font-size:1rem;font-weight:800;color:rgb(15 23 42)}
.landing-feature p{font-size:.8rem;line-height:1.65;color:rgb(100 116 139);margin-top:.45rem}
.persona-card{background:#fff;border:1px solid rgb(226 232 240);border-radius:1.25rem;padding:1.4rem;text-align:left}
.persona-card>svg{width:1.5rem;height:1.5rem;color:rgb(79 70 229);margin-bottom:1rem}
.persona-card h3{font-size:1rem;font-weight:800;color:rgb(15 23 42)}
.persona-card p{font-size:.8rem;line-height:1.6;color:rgb(100 116 139);margin-top:.4rem}
.pricing-card{position:relative;border:1px solid rgb(226 232 240);border-radius:1.5rem;padding:1.65rem;background:#fff;display:flex;flex-direction:column;box-shadow:0 2px 10px rgb(15 23 42/.03)}
.pricing-featured{border:2px solid rgb(99 102 241);box-shadow:0 18px 50px rgb(79 70 229/.12)}
.pricing-badge{position:absolute;top:-.75rem;left:1.5rem;background:rgb(79 70 229);color:#fff;padding:.3rem .7rem;border-radius:999px;font-size:.6rem;font-weight:900;letter-spacing:.08em}
.pricing-name{font-size:.82rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:rgb(79 70 229)}
.pricing-price{font-size:2.4rem;line-height:1;font-weight:900;color:rgb(15 23 42);margin-top:.65rem}
.pricing-sub{font-size:.72rem;color:rgb(148 163 184);margin-top:.35rem}
.pricing-limit{margin-top:1.4rem;padding:1rem;border-radius:1rem;background:rgb(248 250 252);font-size:.82rem;color:rgb(71 85 105)}
.pricing-card ul{margin-top:1.25rem;display:grid;gap:.65rem;font-size:.78rem;color:rgb(71 85 105);flex:1}
.pricing-card li{display:flex;align-items:flex-start;gap:.5rem}
.pricing-card li:before{content:'✓';font-weight:900;color:rgb(16 185 129)}
.pricing-button{margin-top:1.5rem;width:100%;border-radius:.9rem;background:rgb(79 70 229);color:#fff;padding:.8rem 1rem;font-size:.78rem;font-weight:900;transition:background .15s ease}
.pricing-button:hover{background:rgb(67 56 202)}
.pricing-secondary{background:rgb(238 242 255);color:rgb(67 56 202)}
.pricing-secondary:hover{background:rgb(224 231 255)}
.faq-item{border:1px solid rgb(226 232 240);border-radius:1rem;background:#fff;overflow:hidden}
.faq-item summary{cursor:pointer;padding:1rem 1.15rem;font-size:.88rem;font-weight:800;color:rgb(30 41 59);list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:after{content:'+';font-size:1.1rem;color:rgb(99 102 241)}
.faq-item[open] summary:after{content:'−'}
.faq-item p{padding:0 1.15rem 1.15rem;font-size:.8rem;line-height:1.7;color:rgb(100 116 139)}

/* BiblioTech 2.6 - Minha Assinatura */
.subscription-plan{background:#fff;border:1px solid #e2e8f0;border-radius:1.5rem;padding:1.5rem;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:.2s ease;}
.subscription-plan:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(15,23,42,.08);}
.subscription-plan-current{border-color:#818cf8;box-shadow:0 0 0 3px rgba(99,102,241,.10);}


/* BiblioTech 2.7 — Painel Administrativo */
.admin-stat{background:#fff;border:1px solid rgb(226 232 240);border-radius:1rem;padding:.9rem 1rem;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.admin-stat span{display:block;font-size:.65rem;line-height:1rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:rgb(100 116 139)}
.admin-stat strong{display:block;margin-top:.25rem;font-size:1.35rem;line-height:1.75rem;font-weight:900;color:rgb(15 23 42)}
/* BiblioTech 2.8 — contratação manual */
.manual-step{width:1.5rem;height:1.5rem;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:.75rem}
#manualPixQr img,#manualPixQr canvas{max-width:210px!important;width:100%!important;height:auto!important}

/* BiblioTech 3.0 — Vitrine e Grupos */
.field-label{display:block;font-size:.72rem;line-height:1rem;font-weight:800;color:rgb(71 85 105);margin-bottom:.35rem}
.field-input{width:100%;padding:.7rem .8rem;border:1px solid rgb(203 213 225);border-radius:.8rem;background:#fff;font-size:.85rem;outline:none}
.field-input:focus{border-color:rgb(129 140 248);box-shadow:0 0 0 3px rgb(99 102 241/.1)}
.choice-card{display:flex;align-items:flex-start;gap:.65rem;border:1px solid rgb(226 232 240);border-radius:.9rem;padding:.8rem;background:#fff;cursor:pointer}
.choice-card input{margin-top:.15rem;accent-color:rgb(79 70 229)}
.choice-card strong{display:block;font-size:.8rem;color:rgb(30 41 59)}
.choice-card small{display:block;font-size:.68rem;color:rgb(148 163 184);margin-top:.15rem}
.market-tab{padding:.55rem .8rem;border-radius:.75rem;border:1px solid rgb(226 232 240);background:#fff;color:rgb(71 85 105);font-weight:800}
.market-tab-active{background:rgb(238 242 255);border-color:rgb(199 210 254);color:rgb(67 56 202)}
.market-card,.group-card{background:#fff;border:1px solid rgb(226 232 240);border-radius:1rem;padding:1rem;box-shadow:0 1px 2px rgb(15 23 42/.04)}
.market-cover{width:74px;height:106px;object-fit:cover;border-radius:.55rem;border:1px solid rgb(226 232 240);background:rgb(248 250 252);flex:none;box-shadow:0 4px 12px rgb(15 23 42/.08)}
.offer-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.28rem .55rem;font-size:.65rem;font-weight:900}
.offer-sale{background:rgb(236 253 245);color:rgb(4 120 87)}
.offer-rent{background:rgb(239 246 255);color:rgb(29 78 216)}
.offer-loan{background:rgb(245 243 255);color:rgb(109 40 217)}
.mini-btn{padding:.5rem .7rem;border-radius:.7rem;border:1px solid rgb(203 213 225);background:#fff;color:rgb(71 85 105);font-size:.72rem;font-weight:800}
.mini-btn-primary{background:rgb(79 70 229);border-color:rgb(79 70 229);color:white}
.choice-button{padding:.65rem .45rem;border-radius:.75rem;border:1px solid rgb(203 213 225);font-size:.72rem;font-weight:800;color:rgb(71 85 105)}
.choice-button-active{background:rgb(238 242 255);border-color:rgb(129 140 248);color:rgb(67 56 202)}
@media (max-width:639px){.market-cover{width:62px;height:90px}#mobileBottomNav>div{min-width:0;width:100%}#mobileBottomNav button{min-width:0;padding-left:.15rem;padding-right:.15rem}}


/* BiblioTech 3.3 — Bibliotecas de Amigos */
.friend-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border:1px solid rgb(226 232 240);border-radius:.85rem;padding:.75rem .85rem;background:#fff}.friend-row>div:first-child{min-width:0}.friend-row strong{display:block;font-size:.82rem;color:rgb(30 41 59)}.friend-row span{display:block;font-size:.68rem;color:rgb(100 116 139);margin-top:.15rem}.friend-library-card{display:flex;align-items:center;gap:.8rem;background:#fff;border:1px solid rgb(226 232 240);border-radius:1rem;padding:1rem;box-shadow:0 1px 2px rgb(15 23 42/.04)}.friend-library-card strong{font-size:.85rem;color:rgb(30 41 59)}.friend-library-card span{display:block;font-size:.68rem;color:rgb(100 116 139);margin-top:.15rem}.friend-library-avatar{width:2.65rem;height:2.65rem;border-radius:999px;background:rgb(238 242 255);color:rgb(67 56 202);display:flex;align-items:center;justify-content:center;font-weight:900;flex:none}.friend-book-card{display:flex;gap:.85rem;border:1px solid rgb(226 232 240);border-radius:1rem;padding:.85rem;background:#fff}.friend-book-cover{width:64px;height:92px;border-radius:.5rem;object-fit:cover;border:1px solid rgb(226 232 240);flex:none}.friend-book-card strong{font-size:.82rem;color:rgb(30 41 59)}
