/* BD File frontend */
.bdf-download-module{--bdf-accent:#0f766e;width:min(100%,760px);margin:1.7rem auto}.bdf-book-info{overflow:hidden;margin:0 auto;border:1px solid #dce7e3;border-radius:18px;background:#fff;box-shadow:0 14px 38px rgba(15,23,42,.06)}.bdf-book-info-head{display:flex;align-items:center;gap:12px;padding:15px 20px;background:linear-gradient(135deg,#f4faf8,#fbfdfc);border-bottom:1px solid #e4ece9}.bdf-book-info-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid color-mix(in srgb,var(--bdf-accent) 18%,#dce7e3);border-radius:12px;background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--bdf-accent) 5%,#fff));color:var(--bdf-accent);box-shadow:0 6px 16px rgba(15,118,110,.08)}.bdf-book-info-icon svg{width:25px;height:25px}.bdf-book-info-head>div{display:flex;min-width:0;flex-direction:column;gap:1px}.bdf-book-info-title{margin:0!important;font-size:15px!important;line-height:1.25!important;text-transform:none!important}.bdf-book-info-head small{color:#708079;font-size:11.5px;line-height:1.4}.bdf-book-table-wrap{overflow-x:auto}.bdf-book-table{width:100%;margin:0!important;border:0!important;border-collapse:collapse!important;background:transparent!important;table-layout:fixed!important}.bdf-book-table tr{border:0!important}.bdf-book-table th,.bdf-book-table td{width:50%!important;padding:12px 20px!important;border:0!important;border-bottom:1px solid #edf2f0!important;background:transparent!important;text-align:center!important;vertical-align:middle!important;font-size:13px!important;line-height:1.45!important}.bdf-book-table th{color:#65736d!important;font-weight:650!important}.bdf-book-table td{color:#1b2b25!important;font-weight:700!important;word-break:break-word}.bdf-book-table tr:last-child th,.bdf-book-table tr:last-child td{border-bottom:0!important}.bdf-book-actions{padding:15px 20px;background:#fbfdfc;border-top:1px solid #edf2f0}.bdf-download-button{position:relative;isolation:isolate;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:12px;width:100%;min-height:58px;padding:9px 12px;border:1px solid color-mix(in srgb,var(--bdf-accent) 76%,#0b312d);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--bdf-accent) 72%,#102f2b),var(--bdf-accent));box-shadow:0 12px 28px color-mix(in srgb,var(--bdf-accent) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.16);text-decoration:none!important;color:#fff!important;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;overflow:hidden}.bdf-download-button:before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(circle at 18% 0%,rgba(255,255,255,.18),transparent 38%)}.bdf-button-glow{position:absolute;top:-70%;left:-34%;z-index:-1;width:28%;height:240%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);animation:bdfButtonShine 4.4s ease-in-out infinite;pointer-events:none}.bdf-download-button:hover{transform:translateY(-2px);filter:saturate(1.04);box-shadow:0 17px 36px color-mix(in srgb,var(--bdf-accent) 27%,transparent),inset 0 1px 0 rgba(255,255,255,.18)}.bdf-download-button:active{transform:translateY(0) scale(.994)}.bdf-download-button:focus-visible{outline:3px solid color-mix(in srgb,var(--bdf-accent) 25%,transparent);outline-offset:4px}.bdf-button-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:11px;background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.13);transition:transform .22s ease,background .22s ease}.bdf-button-icon svg{width:21px;height:21px}.bdf-download-button:hover .bdf-button-icon{transform:translateY(2px);background:rgba(255,255,255,.18)}.bdf-button-copy{display:block;min-width:0;text-align:center}.bdf-button-copy strong{font-size:15px;line-height:1.25;font-weight:800;letter-spacing:-.012em}.bdf-button-copy small{display:none}.bdf-button-arrow{display:grid;place-items:center;width:42px;height:42px;color:rgba(255,255,255,.72);transition:transform .22s ease,color .22s ease}.bdf-button-arrow svg{width:18px;height:18px}.bdf-download-button:hover .bdf-button-arrow{transform:translateX(3px);color:#fff}.bdf-download-module--unavailable .bdf-book-info{border-color:#ecd9bb}.bdf-download-unavailable{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid #edc98e;border-radius:14px;background:linear-gradient(135deg,#fffaf1,#fff7e8);color:#8a4b09}.bdf-unavailable-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:11px;background:#fff0d5;color:#b45309;border:1px solid #f3d8a8}.bdf-unavailable-icon svg{width:22px;height:22px}.bdf-download-unavailable>div{display:flex;min-width:0;flex-direction:column;gap:2px}.bdf-download-unavailable strong{font-size:13.5px;line-height:1.25}.bdf-download-unavailable small{color:#a56b30;font-size:11.5px;line-height:1.45}@keyframes bdfButtonShine{0%,64%{left:-34%}88%,100%{left:118%}}

/* Compact gate */
.bdf-gate-body{margin:0!important;background:#f5f7fb!important;color:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}.bdf-gate-body *{box-sizing:border-box}.bdf-gate-shell{width:min(100% - 28px,820px);min-height:100vh;margin:0 auto;padding:24px 0 18px;display:flex;flex-direction:column}.bdf-gate-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-bottom:16px}.bdf-back-button{justify-self:start;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 12px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;color:#475569!important;text-decoration:none!important;font-size:12.5px;font-weight:750;box-shadow:0 5px 16px rgba(15,23,42,.04)}.bdf-back-button svg{width:17px;height:17px}.bdf-gate-site{justify-self:center;display:inline-flex;align-items:center;gap:8px;color:#111827!important;text-decoration:none!important;font-weight:800;letter-spacing:-.015em}.bdf-brand-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#fff;color:var(--bdf-accent);box-shadow:0 6px 18px rgba(15,23,42,.06);border:1px solid #e7eaf0}.bdf-brand-mark svg{width:21px;height:21px}.bdf-secure-chip{justify-self:end;display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e3e7ee;border-radius:999px;background:rgba(255,255,255,.82);backdrop-filter:blur(10px);color:#64748b;font-size:11.5px;font-weight:700}.bdf-secure-chip svg{width:15px;height:15px;color:#16a34a}.bdf-gate-card{position:relative;overflow:hidden;background:#fff;border:1px solid #e6e9ef;border-radius:22px;padding:22px;box-shadow:0 24px 64px rgba(15,23,42,.09)}.bdf-gate-card:before{content:"";position:absolute;inset:-190px auto auto -160px;width:340px;height:340px;background:radial-gradient(circle,color-mix(in srgb,var(--bdf-accent) 8%,transparent),transparent 70%);pointer-events:none}.bdf-countdown-wrap{position:relative;display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:13px;margin:0;padding:0 0 18px;border-bottom:1px solid #edf1f4}.bdf-compact-file-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:color-mix(in srgb,var(--bdf-accent) 8%,#fff);border:1px solid color-mix(in srgb,var(--bdf-accent) 15%,#e5e7eb);color:var(--bdf-accent)}.bdf-compact-file-icon svg{width:29px;height:29px}.bdf-countdown-copy{min-width:0}.bdf-gate-eyebrow{display:block;margin-bottom:3px;color:#8a94a3;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.11em}.bdf-countdown-copy strong{display:block;color:#111827;font-size:18px;line-height:1.25;letter-spacing:-.018em}.bdf-countdown-copy p{margin:4px 0 0;color:#667085;font-size:12.5px;line-height:1.48}.bdf-countdown-ring{--bdf-progress:0deg;display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:conic-gradient(var(--bdf-accent) var(--bdf-progress),#e8ebf1 0);position:relative}.bdf-countdown-ring:after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.bdf-countdown-ring>div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}.bdf-countdown-ring strong{font-size:19px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.bdf-countdown-ring small{margin-top:3px;color:#94a3b8;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.bdf-ad-slot{margin:16px 0;padding:9px;border:1px dashed #d9dee8;border-radius:15px;background:#fbfcfe;text-align:center}.bdf-ad-label{display:block;margin-bottom:6px;color:#a0a8b5;font-size:8.5px;font-weight:750;text-transform:uppercase;letter-spacing:.12em}.bdf-ad-content{min-height:54px;display:grid;place-items:center;overflow:hidden}.bdf-ad-content img,.bdf-ad-content iframe{max-width:100%}.bdf-ad-placeholder{min-height:76px;width:100%;display:grid;place-items:center;border-radius:11px;background:repeating-linear-gradient(135deg,#f8fafc,#f8fafc 10px,#f3f6f8 10px,#f3f6f8 20px);color:#8a94a3}.bdf-ad-placeholder strong{display:block;font-size:11px;letter-spacing:.04em}.bdf-ad-placeholder small{display:block;margin-top:3px;font-size:9.8px}.bdf-gate-download{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:54px;margin-top:16px;border:0;border-radius:14px;padding:13px 18px;background:#dfe4e8;color:#78828a;font:inherit;font-weight:800;font-size:14px;letter-spacing:-.01em;cursor:not-allowed;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.bdf-gate-download.is-ready{background:var(--bdf-accent);color:#fff;cursor:pointer;box-shadow:0 12px 28px color-mix(in srgb,var(--bdf-accent) 25%,transparent)}.bdf-gate-download.is-ready:hover{transform:translateY(-1px);box-shadow:0 16px 34px color-mix(in srgb,var(--bdf-accent) 31%,transparent)}.bdf-gate-download.is-ready:focus-visible{outline:3px solid color-mix(in srgb,var(--bdf-accent) 25%,transparent);outline-offset:3px}.bdf-gate-download.is-ready:disabled{cursor:wait;transform:none;box-shadow:0 10px 26px color-mix(in srgb,var(--bdf-accent) 18%,transparent)}.bdf-gate-button-icon{display:grid;place-items:center}.bdf-gate-button-icon svg{width:20px;height:20px}.bdf-gate-button-shine{position:absolute;top:-50%;left:-38%;width:25%;height:200%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);opacity:0}.bdf-gate-download.is-ready .bdf-gate-button-shine{opacity:1;animation:bdfShine 3.8s ease-in-out infinite}.bdf-gate-download.is-loading .bdf-gate-button-icon{animation:bdfBounce .8s ease-in-out infinite alternate}
.bdf-download-trouble{margin-top:12px;text-align:center}.bdf-download-trouble summary{display:inline-block;color:var(--bdf-accent);font-size:11.5px;font-weight:800;cursor:pointer;list-style:none}.bdf-download-trouble summary::-webkit-details-marker{display:none}.bdf-trouble-content{width:min(100%,520px);margin:9px auto 0;padding:11px 13px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfcfd}.bdf-trouble-content p{margin:0;color:#6b7280;font-size:10.8px;line-height:1.45}.bdf-secondary-download{margin-top:9px;padding:8px 12px;border:1px solid #bcd5d0;border-radius:9px;background:#fff;color:var(--bdf-accent);font:inherit;font-size:11.5px;font-weight:800;cursor:pointer}.bdf-download-frame{position:absolute!important;width:1px!important;height:1px!important;border:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important}.bdf-gate-footer{margin-top:auto;padding:16px 0 2px;color:#9aa3af;font-size:10.8px;text-align:center}@keyframes bdfShine{0%,68%{left:-38%}92%,100%{left:118%}}@keyframes bdfBounce{to{transform:translateY(2px)}}

@media(max-width:640px){.bdf-download-module{margin:1.25rem auto}.bdf-book-info{border-radius:15px}.bdf-book-info-head{padding:12px 13px}.bdf-book-info-head small{font-size:10.8px}.bdf-book-table th,.bdf-book-table td{padding:10px 13px!important;font-size:12px!important}.bdf-book-table th{width:34%;min-width:105px}.bdf-book-actions{padding:12px}.bdf-download-button{grid-template-columns:39px minmax(0,1fr) 39px;min-height:56px;border-radius:13px;padding:9px 10px;gap:8px}.bdf-button-icon{width:39px;height:39px}.bdf-button-copy strong{font-size:14px}.bdf-button-copy small{display:none}.bdf-gate-shell{width:min(100% - 18px,820px);padding:12px 0}.bdf-gate-header{grid-template-columns:auto 1fr auto;gap:7px;margin-bottom:11px}.bdf-back-button{min-height:34px;padding:0 9px}.bdf-back-button span,.bdf-secure-chip span{display:none}.bdf-back-button svg,.bdf-secure-chip svg{width:17px;height:17px}.bdf-secure-chip{padding:8px}.bdf-gate-site{gap:6px;min-width:0}.bdf-brand-mark{width:31px;height:31px;flex:0 0 31px}.bdf-gate-site-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.bdf-gate-card{border-radius:18px;padding:16px}.bdf-countdown-wrap{grid-template-columns:40px 1fr auto;gap:10px;padding-bottom:14px}.bdf-compact-file-icon{width:40px;height:40px;border-radius:11px}.bdf-compact-file-icon svg{width:25px;height:25px}.bdf-countdown-copy strong{font-size:15.5px}.bdf-countdown-copy p{font-size:11.2px}.bdf-countdown-ring{width:52px;height:52px}.bdf-countdown-ring strong{font-size:16px}.bdf-ad-slot{margin:13px 0}.bdf-ad-placeholder{min-height:82px}.bdf-gate-download{min-height:52px;margin-top:13px;border-radius:12px}.bdf-gate-footer{padding-top:12px;font-size:10px}}

@media(prefers-reduced-motion:reduce){.bdf-download-button,.bdf-gate-download,.bdf-button-arrow,.bdf-button-icon{transition:none}.bdf-button-glow,.bdf-gate-button-shine,.bdf-gate-download.is-loading .bdf-gate-button-icon{animation:none!important}}

/* Balanced centered Book Details rows */
@media(max-width:640px){.bdf-book-table th,.bdf-book-table td{width:50%!important;padding:10px 13px!important;text-align:center!important}.bdf-book-info-head{padding:14px 16px}.bdf-book-actions{padding:14px 16px}}

/* Sent-state browser hand-off indicator */
.bdf-countdown-ring.is-waiting{background:#e8ebf1}.bdf-countdown-ring.is-waiting:before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(transparent 0 64%,var(--bdf-accent) 64% 100%);animation:bdfSentRingSpin .9s linear infinite}.bdf-countdown-ring.is-waiting:after{z-index:0}.bdf-countdown-ring.is-waiting>div{z-index:1}@keyframes bdfSentRingSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bdf-countdown-ring.is-waiting:before{animation:none!important}}
