
/* ===== app-v2.css ===== */
:root{
  --bg:#f5f8ff;--surface:#fff;--surface2:#f0f5ff;--ink:#162443;--muted:#71809b;--line:#dfe8f5;
  --blue:#3188ff;--cyan:#20c9ee;--purple:#745cff;--green:#20c997;--amber:#f5aa42;--red:#ef6677;
  --shadow:0 18px 50px rgba(40,74,130,.12);--radius:24px;--bottom:86px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(180deg,#f8fbff 0,#f2f7ff 100%);color:var(--ink)}body{overscroll-behavior-y:none}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.ui-icon{width:22px;height:22px;display:block}
.app-v2-shell{min-height:100vh}.app-v2-workspace{min-height:100vh;padding-bottom:calc(var(--bottom) + env(safe-area-inset-bottom))}.app-v2-topbar{position:sticky;top:0;z-index:40;padding:calc(10px + env(safe-area-inset-top)) 18px 10px;display:flex;align-items:center;gap:14px;background:rgba(248,251,255,.88);backdrop-filter:blur(20px);border-bottom:1px solid rgba(216,228,243,.8)}.hamburger{border:1px solid var(--line);background:#fff;color:#294f84;display:grid;place-items:center}.app-v2-title{min-width:0;display:flex;flex-direction:column;flex:1}.app-v2-title b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-v2-title span{color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-avatar{border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--cyan));display:grid;place-items:center;color:#fff;font-weight:900;overflow:hidden;box-shadow:0 8px 20px rgba(73,98,222,.18)}.top-avatar img{width:100%;height:100%;object-fit:cover}.top-avatar span{font-size:15px}
.app-v2-main{max-width:1180px;margin:auto;padding:22px 18px 28px}.alert{padding:13px 15px;border-radius:14px;margin:0 0 14px;border:1px solid transparent;font-size:13px}.alert.success{background:#e9fbf3;border-color:#beeeda;color:#14704f}.alert.error{background:#fff0f2;border-color:#f4c1c8;color:#a33545}.alert.warning{background:#fff8e8;border-color:#f4dfa9;color:#8b681f}
.app-v2-overlay{position:fixed;inset:0;background:rgba(15,31,57,.42);z-index:69;opacity:0;pointer-events:none;transition:.22s;backdrop-filter:blur(2px)}.app-v2-overlay.open{opacity:1;pointer-events:auto}.app-v2-drawer{position:fixed;z-index:70;left:-320px;top:0;bottom:0;width:min(310px,86vw);background:#fff;box-shadow:26px 0 70px rgba(16,42,80,.22);transition:.24s ease;display:flex;flex-direction:column;padding:calc(22px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom))}.app-v2-drawer.open{left:0}.drawer-profile{display:flex;align-items:center;gap:13px;padding:8px 9px 20px;border-bottom:1px solid var(--line)}.drawer-brand-icon{width:54px;height:54px;object-fit:contain;border-radius:16px;background:linear-gradient(135deg,#eff7ff,#f7f1ff);padding:4px}.drawer-user{min-width:0;display:flex;flex-direction:column}.drawer-user strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-user span{font-size:11px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-nav{display:flex;flex-direction:column;gap:5px;padding:16px 2px;overflow:auto}.drawer-nav a,.drawer-bottom a{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:14px;color:#586983;font-size:14px;font-weight:750}.drawer-nav a.active,.drawer-nav a:hover,.drawer-bottom a:hover{background:linear-gradient(90deg,#eef6ff,#f5f1ff);color:#234d88}.drawer-nav a.active{box-shadow:inset 3px 0 0 var(--cyan)}.drawer-nav .ui-icon,.drawer-bottom .ui-icon{width:20px;height:20px}.drawer-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:10px}
.app-v2-bottom{position:fixed;z-index:50;left:50%;bottom:0;transform:translateX(-50%);width:min(720px,100%);padding:10px 18px calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;border-bottom:0}.balance-orb{margin-top:-28px}
.hero-app{position:relative;overflow:hidden;background:linear-gradient(135deg,#edf7ff,#f4f0ff 58%,#edfffb);border:1px solid #dde9f7;box-shadow:var(--shadow);display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}.hero-app:after{content:"";position:absolute;right:-60px;top:-50px;width:220px;height:220px;border-radius:50%;background:rgba(50,196,245,.18);filter:blur(2px)}.hero-app-content{position:relative;z-index:2}.hero-app .kicker{font-size:11px;color:#3388cf;font-weight:900;letter-spacing:.11em}.hero-app h1{margin:8px 0 9px;font-size:clamp(30px,5vw,48px);line-height:1;letter-spacing:-.04em}.hero-app p{margin:0;color:#667891;line-height:1.65;max-width:650px}.hero-app-icon{position:relative;z-index:2;object-fit:contain;filter:drop-shadow(0 16px 20px rgba(58,74,180,.16))}.continue-card{margin-top:18px;display:grid;grid-template-columns:90px 1fr auto;gap:16px;align-items:center;padding:15px;border:1px solid var(--line);background:#fff;border-radius:22px;box-shadow:0 12px 36px rgba(32,66,120,.07)}.continue-cover{width:90px;aspect-ratio:2/3;border-radius:13px;overflow:hidden;background:linear-gradient(135deg,#59c9ff,#7f5dff)}.continue-cover img{width:100%;height:100%;object-fit:cover}.continue-copy h3{margin:0 0 6px;font-size:18px}.continue-copy p{margin:0;color:var(--muted);font-size:12px}.progress-line{height:7px;margin-top:11px;background:#edf1f7;border-radius:999px;overflow:hidden}.progress-line span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--cyan));border-radius:inherit}.round-go{width:46px;height:46px;border:0;border-radius:50%;background:#eff6ff;color:#2e73cf;display:grid;place-items:center}.section-v2-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}.section-v2-head h2{margin:0;letter-spacing:-.02em}.section-v2-head p{margin:4px 0 0;color:var(--muted)}.section-v2-head a{color:#2f7ddb;font-weight:800;font-size:12px}.books-v2{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.book-v2{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(36,67,113,.07)}.book-v2-cover{aspect-ratio:2/3;background:linear-gradient(145deg,#57d4f7,#7158ee);overflow:hidden}.book-v2-cover img{width:100%;height:100%;object-fit:cover}.book-v2-info{padding:13px}.book-v2-info small{font-size:9px;color:#3786c5;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.book-v2-info h3{font-size:14px;margin:5px 0 4px;line-height:1.25}.book-v2-info p{font-size:11px;color:var(--muted);margin:0 0 10px}.book-progress{display:flex;align-items:center;gap:8px}.book-progress .progress-line{flex:1;margin:0;height:5px}.book-progress span{font-size:10px;color:#60728b}.book-v2-actions{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.book-v2-actions a{font-size:11px;font-weight:800;color:#246fc8;display:inline-flex;gap:5px;align-items:center}.book-v2-actions .ui-icon{width:15px;height:15px}
.app-card{background:#fff;border:1px solid var(--line);box-shadow:0 12px 36px rgba(31,65,115,.07);margin-bottom:16px}.app-card h2,.app-card h3{margin:0 0 8px}.app-card p{color:var(--muted);line-height:1.6}.form-grid-v2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-v2 label{display:block;font-size:11px;color:#60718a;font-weight:850;margin-bottom:6px}.field-v2 input,.field-v2 select,.field-v2 textarea{width:100%;border:1px solid #d7e2ef;background:#fafdff;border-radius:13px;padding:12px 13px;color:var(--ink);outline:0}.field-v2 input:focus,.field-v2 select:focus,.field-v2 textarea:focus{border-color:#69bff2;box-shadow:0 0 0 3px rgba(54,176,239,.10)}.span-2{grid-column:1/-1}.btn-v2{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;padding:12px 17px;background:linear-gradient(90deg,var(--purple),var(--cyan));color:#fff;font-weight:850;cursor:pointer;box-shadow:0 10px 24px rgba(76,91,215,.16)}.btn-v2.secondary{background:#fff;color:#315b8d;border:1px solid #d5e1ee;box-shadow:none}.btn-v2.danger{background:#f55e73}.btn-v2 .ui-icon{width:18px;height:18px}.license-form{max-width:640px;margin:auto}.bookid-chip{display:inline-flex;padding:7px 10px;border-radius:999px;background:#eef7ff;color:#3076bb;font-size:11px;font-weight:900;letter-spacing:.06em}.license-help{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.license-help div{padding:13px;border-radius:15px;background:#f6f9fd;color:#687993;font-size:11px;line-height:1.55}.license-help strong{display:block;color:#253c60;margin-bottom:4px}.wallet-hero{padding:26px;border-radius:28px;background:linear-gradient(135deg,#446ef2,#745cff 52%,#20c9ee);color:#fff;box-shadow:0 20px 45px rgba(75,89,206,.24)}.wallet-hero span{font-size:12px;opacity:.82}.wallet-hero strong{display:block;font-size:40px;margin:8px 0 0}.wallet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.wallet-mini{padding:16px;border:1px solid var(--line);background:#fff;border-radius:18px}.wallet-mini span{font-size:11px;color:var(--muted)}.wallet-mini strong{display:block;margin-top:6px;font-size:19px}.profile-header-v2{display:flex;align-items:center;gap:18px;padding:20px;background:linear-gradient(135deg,#f0f8ff,#f6f1ff);border:1px solid #dee9f5;border-radius:24px;margin-bottom:16px}.profile-photo-v2{width:82px;height:82px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--cyan));overflow:hidden;display:grid;place-items:center;color:#fff;font-size:28px;font-weight:900;box-shadow:0 10px 26px rgba(70,90,200,.18)}.profile-photo-v2 img{width:100%;height:100%;object-fit:cover}.profile-header-v2 h2{margin:0 0 4px}.profile-header-v2 p{margin:0;color:var(--muted);font-size:12px}.settings-group{margin-top:16px}.settings-group h3{font-size:14px;margin:0 0 10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.theme-options{display:flex;gap:8px;flex-wrap:wrap}.theme-pill{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;font-size:11px;font-weight:800;color:#58708c}.table-v2-wrap{overflow:auto}.table-v2{width:100%;border-collapse:collapse}.table-v2 th,.table-v2 td{padding:11px 9px;border-bottom:1px solid #edf1f6;text-align:left;font-size:11px;white-space:nowrap}.table-v2 th{color:#7e8ea4;text-transform:uppercase;letter-spacing:.06em}.status-v2{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:850;background:#edf2f8;color:#53657e}.status-v2.paid,.status-v2.available,.status-v2.used{background:#e7faf2;color:#207557}.status-v2.pending{background:#fff6dc;color:#8e6b1c}.status-v2.cancelled,.status-v2.refunded,.status-v2.revoked{background:#fff0f2;color:#a34250}
/* Standalone login */
.app-login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 0,#e6f8ff,transparent 36%),radial-gradient(circle at 90% 20%,#eee8ff,transparent 32%),linear-gradient(180deg,#f9fbff,#f1f6ff)}.app-login-card{width:min(430px,100%);background:#fff;border:1px solid #dce7f3;border-radius:30px;padding:30px;box-shadow:0 24px 70px rgba(43,72,119,.14)}.app-login-logo{width:112px;height:112px;object-fit:contain;display:block;margin:0 auto 10px}.app-login-card h1{text-align:center;margin:0;font-size:30px}.app-login-card>p{text-align:center;color:var(--muted);font-size:13px;line-height:1.6}.app-login-card .field-v2{margin-top:12px}.app-login-card .btn-v2{width:100%;margin-top:16px}.login-minilinks{display:flex;justify-content:center;gap:10px;margin-top:16px;font-size:11px;color:#587391}
/* reader */
.reader-body{background:#111827;color:#fff;overflow:hidden}.reader-shell{height:100dvh;display:grid;grid-template-rows:auto 1fr auto}.reader-topbar{display:flex;align-items:center;gap:9px;padding:calc(9px + env(safe-area-inset-top)) 10px 9px;background:rgba(14,22,35,.94);backdrop-filter:blur(16px);z-index:20}.reader-topbar button,.reader-topbar a{width:40px;height:40px;border:1px solid #334158;background:#1b2739;color:#fff;border-radius:12px;display:grid;place-items:center}.reader-title{min-width:0;flex:1}.reader-title b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.reader-title span{display:block;font-size:10px;color:#91a0b5;margin-top:3px}.reader-stage{position:relative;min-height:0;background:#0b1220;overflow:hidden}.pdf-stage iframe{width:100%;height:100%;border:0;background:#fff}.reflow-viewport{height:100%;overflow:hidden;padding:18px;background:#f7f5f0;color:#202938}.reflow-viewport.theme-sepia{background:#eadfc8;color:#342c22}.reflow-viewport.theme-dark{background:#121a27;color:#e9eef7}.reflow-content{height:100%;column-gap:48px;overflow:hidden;line-height:1.75}.reflow-content img{max-width:100%;max-height:65vh;object-fit:contain}.reflow-content h1,.reflow-content h2,.reflow-content h3{break-after:avoid}.reflow-content p{break-inside:avoid}.reader-bottom{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 10px calc(9px + env(safe-area-inset-bottom));background:rgba(14,22,35,.96);z-index:20}.reader-bottom button,.reader-bottom select{height:40px;border:1px solid #334158;background:#1b2739;color:#fff;border-radius:11px}.reader-bottom button{width:42px;display:grid;place-items:center}.reader-bottom select{padding:0 8px;font-size:11px}.reader-page{font-size:11px;color:#aeb9c9;min-width:72px;text-align:center}.reader-tools{position:absolute;right:10px;top:12px;display:flex;flex-direction:column;gap:7px;z-index:15}.reader-tools button{width:40px;height:40px;border:1px solid rgba(255,255,255,.14);background:rgba(17,29,45,.88);color:#fff;border-radius:12px;display:grid;place-items:center}.reader-hidden-ui .reader-topbar,.reader-hidden-ui .reader-bottom,.reader-hidden-ui .reader-tools{opacity:0;pointer-events:none}.reader-topbar,.reader-bottom,.reader-tools{transition:.2s}.voice-panel{position:absolute;left:10px;right:10px;bottom:10px;z-index:30;padding:13px;border-radius:15px;background:rgba(17,29,45,.96);border:1px solid #38475d;display:none}.voice-panel.open{display:block}.voice-row{display:flex;gap:8px;align-items:center}.voice-row select{flex:1;min-width:0;height:38px;border-radius:10px;background:#0e1827;color:#fff;border:1px solid #3a4960;padding:0 8px}.voice-row button{width:38px;height:38px;border-radius:10px;border:1px solid #3a4960;background:#223047;color:#fff;display:grid;place-items:center}
@media(max-width:850px){.books-v2{grid-template-columns:repeat(3,1fr)}.hero-app{grid-template-columns:1fr}.hero-app-icon{position:absolute;right:16px;bottom:10px;opacity:.18}.form-grid-v2{grid-template-columns:1fr}.span-2{grid-column:auto}.wallet-grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:600px){.continue-card{grid-template-columns:72px 1fr auto;gap:11px}.continue-cover{width:72px}.books-v2{grid-template-columns:1fr 1fr;gap:10px}.book-v2-info{padding:11px}.license-help{grid-template-columns:1fr}.wallet-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.profile-header-v2{align-items:flex-start}.reader-bottom{gap:5px}.reader-bottom button{width:38px}.reader-bottom select{max-width:88px}}
@media(min-width:900px){.app-v2-bottom{border-bottom:1px solid rgba(218,228,241,.9)}}

/* === MYXA E-Book App V2.0.3 - refinamento de navegação e biblioteca === */
:root{--bottom:82px}
.app-v2-topbar{min-height:68px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px}
.hamburger{width:40px;height:40px;border-radius:13px;box-shadow:0 6px 16px rgba(45,77,120,.05)}
.hamburger .ui-icon{width:24px;height:24px}
.app-v2-title b{font-size:18px}.app-v2-title span{font-size:12px}.top-avatar{width:40px;height:40px}
.app-v2-bottom .ui-icon{width:30px;height:30px;stroke-width:1.9}
.balance-nav{position:relative;transform:none}
.balance-orb{width:auto;height:auto;margin:0;border:0;border-radius:0;background:transparent;color:#6d5cff;box-shadow:none;place-items:center;transition:transform .18s ease,filter .18s ease}
.balance-orb .ui-icon{width:34px;height:34px;stroke-width:1.9}
.balance-nav.active .balance-orb{transform:translateY(-2px) scale(1.08);filter:drop-shadow(0 6px 10px rgba(91,92,230,.20))}

.hero-app{padding:24px;border-radius:26px}.hero-app h1{font-size:clamp(29px,5vw,44px)}.hero-app p{font-size:15px}.hero-app-icon{width:92px;height:92px}
.section-v2{margin-top:20px}.section-v2-head h2{font-size:22px}.section-v2-head p{font-size:13px}
.app-card{border-radius:22px;padding:20px}
.empty-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:16px 0 18px}.empty-steps span{display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:14px;background:#f4f8fd;color:#5f7088;font-size:11px}.empty-steps b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--purple),var(--cyan));color:#fff;font-size:11px;flex:0 0 24px}.empty-activate{padding:11px 15px}

@media(max-width:600px){.app-v2-topbar{gap:12px}.app-v2-bottom .ui-icon{width:29px;height:29px}.balance-orb .ui-icon{width:33px;height:33px}.hero-app{padding:20px}.hero-app p{font-size:14px}.empty-steps{grid-template-columns:1fr}.app-card{padding:18px}
}
@media(min-width:900px){.app-v2-bottom{bottom:14px}.app-v2-workspace{padding-bottom:116px}}

/* === MYXA E-Book App V2.0.4 — Home Reading First === */
:root{--bottom:80px}
.app-v2-main{padding-top:18px}

/* Bottom navigation: large frameless icons */
.app-v2-bottom{height:calc(var(--bottom) + env(safe-area-inset-bottom));padding:8px 18px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid rgba(218,228,241,.82);border-radius:24px 24px 0 0;background:rgba(255,255,255,.98);box-shadow:0 -8px 30px rgba(27,58,105,.08);backdrop-filter:blur(18px)}
.app-v2-bottom>a{min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#7b899d;font-size:12px;font-weight:800;transition:color .18s ease,transform .18s ease}
.app-v2-bottom>a:active{transform:scale(.96)}
.app-v2-bottom>a.active{color:#247ff0}
.app-v2-bottom>a>.ui-icon{width:32px;height:32px;stroke-width:1.9;filter:none}
.app-v2-bottom .balance-nav>.ui-icon{width:35px;height:35px;color:inherit;stroke-width:1.9}
.app-v2-bottom .balance-nav.active>.ui-icon{filter:drop-shadow(0 5px 10px rgba(72,105,235,.18))}
.app-v2-bottom>a.active>.ui-icon{filter:drop-shadow(0 4px 8px rgba(49,136,255,.14))}
.balance-orb{display:contents}

/* Home with book: main continue-reading card */
.reading-first-card{border:1px solid #dce9f5;border-radius:28px;background:linear-gradient(135deg,#f5f9ff 0%,#f7f5ff 55%,#eefcff 100%);padding:20px;box-shadow:0 18px 45px rgba(45,78,126,.09);margin-bottom:24px}
.reading-first-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.reading-first-title{display:flex;align-items:center;gap:10px}.reading-first-title>.ui-icon{width:29px;height:29px;color:#2c9af8;stroke-width:2}.reading-first-title h2{font-size:24px;margin:0;letter-spacing:-.025em}.home-more{color:#7387a3;font-size:18px;letter-spacing:2px;line-height:1}
.reading-first-body{display:grid;grid-template-columns:minmax(118px,34%) 1fr;gap:22px;align-items:center}
.reading-first-cover{aspect-ratio:2/3;border-radius:18px;overflow:hidden;background:#eaf1f8;box-shadow:0 13px 28px rgba(42,69,106,.15)}.reading-first-cover>img{width:100%;height:100%;display:block;object-fit:cover}.cover-fallback-v204{height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#eff8ff,#f4efff)}.cover-fallback-v204 img{width:72%;height:72%;object-fit:contain}
.reading-first-copy h3{font-size:clamp(24px,5vw,38px);line-height:1.05;margin:0 0 5px;letter-spacing:-.035em}.reading-author{margin:0;color:#72829b;font-size:clamp(14px,3vw,20px)}
.reading-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 8px;color:#70809a;font-size:14px}.reading-meta strong{color:#197de6;font-weight:800;white-space:nowrap}.reading-progress,.book-progress-v204{height:9px;border-radius:999px;background:#dfe7f2;overflow:hidden}.reading-progress span,.book-progress-v204 span{height:100%;display:block;border-radius:999px;background:linear-gradient(90deg,#20c9ee,#3188ff 52%,#745cff)}
.continue-reading-btn{margin-top:20px;min-height:58px;border-radius:17px;background:linear-gradient(90deg,#745cff 0%,#3979ff 48%,#20c9ee 100%);color:#fff;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:0 18px;font-size:18px;font-weight:900;box-shadow:0 14px 28px rgba(60,98,225,.20)}.continue-reading-btn>.ui-icon{width:28px;height:28px}.continue-reading-btn>.ui-icon:last-child{width:22px;height:22px}

/* Home library heading */
.home-library-section{margin-top:20px}.home-library-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.home-library-title{display:flex;align-items:center;gap:12px}.home-library-title>.ui-icon{width:33px;height:33px;color:#416fff;stroke-width:2}.home-library-title h2{font-size:26px;margin:0;letter-spacing:-.025em}.home-library-title p{font-size:13px;color:#71809b;margin:4px 0 0}.home-library-head>a{display:inline-flex;align-items:center;gap:4px;color:#197de6;font-weight:900;font-size:14px}.home-library-head>a>.ui-icon{width:17px;height:17px}

/* Home library cards: 2 columns on phone, like the approved mockup */
.home-books-grid-v204{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.home-book-v204{min-width:0;display:grid;grid-template-columns:43% 57%;min-height:174px;border:1px solid #dfe8f4;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 11px 28px rgba(41,72,113,.07);color:var(--ink)}
.home-book-cover-v204{min-width:0;background:#eef4fa;overflow:hidden}.home-book-cover-v204>img:not(.fallback-icon){width:100%;height:100%;display:block;object-fit:cover}.home-book-cover-v204 .fallback-icon{width:70%;height:70%;object-fit:contain;margin:15%}
.home-book-info-v204{position:relative;min-width:0;padding:13px 12px 12px;display:flex;flex-direction:column}.book-kebab{position:absolute;right:8px;top:8px;color:#7f91aa;writing-mode:vertical-rl;font-size:13px;letter-spacing:0}.home-book-info-v204 h3{font-size:15px;line-height:1.22;margin:4px 15px 5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.home-book-info-v204 p{font-size:11px;color:#78879c;margin:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.book-progress-v204{height:7px;margin:12px 0 7px}.home-book-info-v204 small{font-size:11px;color:#71809b}

/* Empty library state appears only when there are zero books */
.home-library-section.is-empty{margin-top:18px}.empty-library-v204{border:1px solid #dce9f5;border-radius:30px;background:linear-gradient(145deg,#f9fcff 0%,#f7f8ff 55%,#f0fdff 100%);padding:28px 22px 24px;box-shadow:0 18px 46px rgba(43,75,120,.08);text-align:center}.empty-library-logo{width:150px;height:150px;object-fit:contain;display:block;margin:0 auto 6px;filter:drop-shadow(0 16px 20px rgba(56,83,170,.12))}.empty-library-v204 h3{font-size:30px;line-height:1.08;margin:6px 0 13px;letter-spacing:-.03em}.empty-library-v204>p{max-width:590px;margin:0 auto 24px;color:#71809b;font-size:15px;line-height:1.62}
.activation-steps-v204{display:grid;gap:11px;max-width:700px;margin:0 auto 22px}.activation-step-v204{display:grid;grid-template-columns:46px 42px 1fr;align-items:center;gap:11px;padding:13px 14px;border:1px solid #e7eef7;background:rgba(255,255,255,.90);border-radius:18px;text-align:left;box-shadow:0 7px 18px rgba(47,76,113,.04)}.step-number{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:18px;font-weight:900}.step-number.blue{background:#dff0ff;color:#147ee8}.step-number.purple{background:#eee6ff;color:#6338f1}.step-number.cyan{background:#dcf6ff;color:#1689dc}.step-icon{width:38px;height:38px;display:grid;place-items:center}.step-icon svg{width:31px;height:31px}.step-icon.blue{color:#177ee8}.step-icon.purple{color:#6c42f2}.step-icon.cyan{color:#188ce8}.activation-step-v204 div{display:flex;flex-direction:column;min-width:0}.activation-step-v204 strong{font-size:16px;line-height:1.2}.activation-step-v204 small{color:#7a899f;font-size:12px;margin-top:3px;line-height:1.35}
.activate-ebook-v204{max-width:700px;margin:0 auto;min-height:60px;border-radius:18px;background:linear-gradient(90deg,#745cff 0%,#3979ff 48%,#20c9ee 100%);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:0 20px;color:#fff;font-size:18px;font-weight:900;box-shadow:0 14px 28px rgba(60,98,225,.18)}.activate-ebook-v204>.ui-icon{width:29px;height:29px}.activate-ebook-v204>.ui-icon:last-child{width:21px;height:21px}

@media(max-width:600px){
  .app-v2-main{padding:15px 12px 20px}.app-v2-bottom{padding-left:10px;padding-right:10px}.app-v2-bottom>a>.ui-icon{width:31px;height:31px}.app-v2-bottom .balance-nav>.ui-icon{width:34px;height:34px}.app-v2-bottom>a{font-size:11.5px}
  .reading-first-card{padding:16px;border-radius:24px}.reading-first-title h2{font-size:20px}.reading-first-title>.ui-icon{width:25px;height:25px}.reading-first-body{grid-template-columns:38% 1fr;gap:14px}.reading-first-copy h3{font-size:22px}.reading-author{font-size:14px}.reading-meta{align-items:flex-start;flex-direction:column;gap:3px;margin:15px 0 7px;font-size:12px}.continue-reading-btn{min-height:52px;font-size:15px;padding:0 13px;gap:8px}.continue-reading-btn>.ui-icon{width:23px;height:23px}.continue-reading-btn>.ui-icon:last-child{width:18px;height:18px}
  .home-library-title>.ui-icon{width:29px;height:29px}.home-library-title h2{font-size:23px}.home-library-title p{font-size:12px}.home-library-head>a{font-size:13px}
  .home-books-grid-v204{gap:10px}.home-book-v204{min-height:154px;grid-template-columns:45% 55%;border-radius:17px}.home-book-info-v204{padding:10px 9px}.home-book-info-v204 h3{font-size:13.5px}.home-book-info-v204 p,.home-book-info-v204 small{font-size:10.5px}.book-progress-v204{height:6px;margin-top:9px}
  .empty-library-v204{padding:22px 14px 19px;border-radius:25px}.empty-library-logo{width:115px;height:115px}.empty-library-v204 h3{font-size:25px}.empty-library-v204>p{font-size:14px;margin-bottom:19px}.activation-step-v204{grid-template-columns:38px 34px 1fr;padding:11px 10px;gap:9px;border-radius:16px}.step-number{width:38px;height:38px;font-size:16px}.step-icon{width:32px;height:32px}.step-icon svg{width:27px;height:27px}.activation-step-v204 strong{font-size:14px}.activation-step-v204 small{font-size:11px}.activate-ebook-v204{min-height:54px;font-size:16px;padding:0 15px}
}
@media(max-width:390px){.home-book-v204{grid-template-columns:42% 58%}.reading-first-body{grid-template-columns:36% 1fr}.reading-first-copy h3{font-size:20px}}
@media(min-width:900px){.home-books-grid-v204{grid-template-columns:repeat(4,minmax(0,1fr))}.reading-first-card{padding:26px}.empty-library-v204{padding:36px}.app-v2-bottom{border-radius:24px}}

/* V2.0.5 Reader review */
.reader-review-link{display:grid;place-items:center;color:#f3aa1b}.reader-review-link .ui-icon{width:22px;height:22px}.reader-review-nudge{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);z-index:30;width:min(520px,calc(100% - 24px));display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 13px;border-radius:16px;background:rgba(255,255,255,.96);border:1px solid #e3e8f0;box-shadow:0 16px 38px rgba(20,38,70,.18);color:#152643;backdrop-filter:blur(12px)}.reader-review-nudge>span{font-size:28px;color:#f3a61c}.reader-review-nudge div{display:flex;flex-direction:column}.reader-review-nudge small{font-size:11px;color:#75849a;margin-top:2px}.reader-review-nudge>strong{font-size:12px;color:#197fe8}
@media(max-width:540px){.reader-review-nudge{bottom:68px;padding:9px 11px}.reader-review-nudge>span{font-size:24px}.reader-review-nudge b{font-size:12px}.reader-review-nudge small{font-size:10px}}

/* R3: mostrar/ocultar senha (tela de login do App) */
.pw-wrap{position:relative;display:block;width:100%}.pw-wrap input{padding-right:48px!important;width:100%}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#7a8aa0;display:grid;place-items:center;cursor:pointer;box-shadow:none;padding:0;margin:0}
.pw-toggle:hover{background:#f1f6fc;color:#2d4b70}.pw-toggle svg{width:18px;height:18px}
.app-login-logo{background:transparent}

