
/* Bright Webs Ebook frontend */
.bw-ebook-wrap{max-width:1080px;margin:20px auto;padding:0 14px;font-family:Inter,Arial,sans-serif;color:#12213a}
.bw-ebook-hero{background:linear-gradient(135deg,#0b2a52,#174a86);border-radius:26px;padding:34px 28px;color:#fff;text-align:center;box-shadow:0 18px 45px rgba(11,42,82,.18)}
.bw-badge{display:inline-block;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);padding:7px 13px;border-radius:99px;font-size:12px;font-weight:800;letter-spacing:.5px}
.bw-ebook-hero h2{font-size:clamp(32px,5vw,54px);margin:14px 0 6px;line-height:1.05}
.bw-ebook-hero p{font-size:20px;margin:0;opacity:.92}
.bw-trust{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.bw-trust span{background:#fff;color:#17365f;border-radius:99px;padding:9px 13px;font-size:13px;font-weight:700}
.bw-ebook-card{margin-top:18px;background:#fff;border:1px solid #e6ebf2;border-radius:26px;padding:22px;display:grid;grid-template-columns:1.15fr .85fr;gap:22px;box-shadow:0 16px 40px rgba(16,42,67,.08)}
.bw-book-preview{min-height:430px;background:linear-gradient(180deg,#f7fafc,#edf2f7);border-radius:20px;padding:25px;position:relative;overflow:hidden}
.bw-shelf{height:100%;display:grid;grid-template-columns:repeat(5,1fr);align-content:end;gap:8px;padding:40px 12px 30px;border-bottom:13px solid #8b5a2b}
.bw-book{height:190px;border-radius:5px 7px 4px 3px;display:flex;align-items:center;justify-content:center;text-align:center;padding:7px;color:#fff;font-weight:800;font-size:12px;writing-mode:vertical-rl;transform:rotate(180deg);box-shadow:4px 6px 10px rgba(0,0,0,.12)}
.bw-book-0{background:#17365f}.bw-book-1{background:#b85c38}.bw-book-2{background:#367a5a}.bw-book-3{background:#7d4a9e}.bw-book-4{background:#d59a19}
.bw-preview-copy{position:absolute;top:22px;left:25px;display:flex;flex-direction:column;background:#fff;border-radius:14px;padding:12px 15px;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.bw-preview-copy strong{font-size:20px}.bw-preview-copy span{font-size:13px;color:#64748b}
.bw-form-side{padding:12px 8px;display:flex;flex-direction:column;justify-content:center}
.bw-price{display:flex;align-items:end;gap:10px;margin-bottom:18px}.bw-price small{color:#64748b;font-weight:700}.bw-price strong{font-size:46px;line-height:1;color:#e13b2f}
.bw-form-side label{font-size:13px;font-weight:800;margin:7px 0}.bw-form-side input{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d7dee8;border-radius:12px;padding:14px;font-size:15px;outline:none;background:#fff}.bw-form-side input:focus{border-color:#245ea8;box-shadow:0 0 0 3px rgba(36,94,168,.1)}
.bw-form-side button{border:0;border-radius:13px;padding:16px;margin-top:12px;background:#f4b900;color:#172033;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 8px 20px rgba(244,185,0,.25)}.bw-form-side button:disabled{opacity:.65;cursor:wait}
.bw-msg{min-height:22px;margin-top:10px;color:#c0392b;font-size:13px;font-weight:700}.bw-mini-trust{font-size:11px;color:#64748b;text-align:center;margin-top:12px}
.bw-categories{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:16px 0}.bw-categories span{padding:8px 12px;border:1px solid #e1e7ef;border-radius:99px;font-size:12px;background:#fff}
.bw-resend{max-width:560px;margin:25px auto;padding:25px;background:#fff;border:1px solid #e6ebf2;border-radius:20px;text-align:center}.bw-resend input{width:100%;box-sizing:border-box;padding:13px;border:1px solid #d7dee8;border-radius:10px}.bw-resend button{margin-top:10px;border:0;border-radius:10px;padding:13px 18px;background:#0b2a52;color:#fff;font-weight:800}
.bw-admin-loginbox{max-width:430px;margin:50px auto;padding:30px;background:#fff;border:1px solid #e5e7eb;border-radius:22px;text-align:center;box-shadow:0 18px 45px rgba(0,0,0,.08)}.bw-admin-icon{font-size:44px}.bw-admin-loginbox input{width:100%;box-sizing:border-box;padding:13px;margin:7px 0;border:1px solid #d9e0e8;border-radius:10px}.bw-admin-loginbox button{width:100%;padding:13px;border:0;border-radius:10px;background:#0b2a52;color:#fff;font-weight:800;margin-top:8px}.bw-admin-error{background:#fff0f0;color:#b42318;padding:10px;border-radius:9px;margin:10px 0}
.bw-admin-dashboard{max-width:1100px;margin:30px auto;padding:15px;font-family:Inter,Arial,sans-serif}.bw-admin-top{display:flex;justify-content:space-between;align-items:center}.bw-admin-kicker{font-size:11px;letter-spacing:2px;font-weight:900;color:#2d67a8}.bw-admin-top h2{margin:4px 0 15px}.bw-admin-top button{border:1px solid #d7dee8;background:#fff;border-radius:9px;padding:9px 14px;cursor:pointer}.bw-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.bw-filters a{padding:8px 12px;border-radius:99px;background:#f1f5f9;color:#334155;text-decoration:none;font-size:13px;font-weight:700}.bw-filters a.active{background:#0b2a52;color:#fff}.bw-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.bw-stat{background:#fff;border:1px solid #e6ebf2;border-radius:16px;padding:16px;box-shadow:0 5px 18px rgba(0,0,0,.04)}.bw-stat span{font-size:20px}.bw-stat small{display:block;color:#64748b;margin-top:8px}.bw-stat strong{display:block;font-size:24px;margin-top:5px}.bw-orders{margin-top:22px;background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:18px}.bw-table-wrap{overflow:auto}.bw-orders table{width:100%;border-collapse:collapse;min-width:650px}.bw-orders th,.bw-orders td{text-align:left;padding:12px;border-bottom:1px solid #edf1f5;font-size:13px}.bw-orders th{color:#64748b}.bw-status{display:inline-block;padding:5px 8px;border-radius:99px;font-size:11px;font-weight:800;background:#eef2f7}.bw-status.paid{background:#e8f7ee;color:#16794c}.bw-status.failed,.bw-status.cancelled,.bw-status.user_dropped{background:#fff0f0;color:#b42318}
@media(max-width:760px){.bw-ebook-card{grid-template-columns:1fr;padding:14px}.bw-book-preview{min-height:300px}.bw-book{height:130px;font-size:10px}.bw-shelf{padding-top:55px}.bw-ebook-hero{padding:28px 18px}.bw-trust span{font-size:11px}}

.bw-password-wrap{position:relative;width:100%;}
.bw-password-wrap input{width:100%;padding-right:48px!important;box-sizing:border-box;}
.bw-password-toggle{position:absolute!important;right:8px;top:50%;transform:translateY(-50%);width:38px!important;height:38px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;font-size:18px!important;line-height:1!important;color:inherit!important;}
.bw-password-toggle:hover{background:transparent!important;}

.bw-order-search{margin:18px 0 22px;padding:16px;background:#fff;border:1px solid #e5e7eb;border-radius:14px}
.bw-order-search form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bw-order-search input{flex:1;min-width:220px;padding:11px 13px;border:1px solid #d8dee8;border-radius:10px;font-size:14px}
.bw-order-search button{padding:11px 18px;border:0;border-radius:10px;background:#0b2a52;color:#fff;font-weight:700;cursor:pointer}
.bw-order-search a{padding:10px 4px;text-decoration:none}
.bw-order-search p{margin:10px 0 0;color:#64748b;font-size:13px}

/* v1.0.7 dashboard polish */
.bw-admin-dashboard{max-width:1180px;margin:28px auto;padding:18px;font-family:Inter,Arial,sans-serif;color:#14213a}
.bw-dash-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border-radius:24px;background:linear-gradient(135deg,#0b2a52,#174a86);color:#fff;box-shadow:0 18px 45px rgba(11,42,82,.18);margin-bottom:16px}
.bw-dash-hero h2{font-size:30px;margin:5px 0 5px}.bw-dash-hero p{margin:0;color:rgba(255,255,255,.78)}
.bw-admin-kicker{font-size:11px;letter-spacing:2px;font-weight:900;color:#8fc3ff}.bw-logout-btn{border:0;border-radius:11px;padding:11px 17px;background:#fff;color:#0b2a52;font-weight:800;cursor:pointer}.bw-logout-btn:hover{transform:translateY(-1px)}
.bw-dash-notice{margin:14px 0;padding:12px 15px;border-radius:12px;background:#eafaf0;color:#16794c;border:1px solid #bce8cd;font-weight:700}
.bw-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.bw-filters a{padding:9px 14px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#334155;text-decoration:none;font-size:13px;font-weight:800}.bw-filters a.active{background:#0b2a52;color:#fff;border-color:#0b2a52}
.bw-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.bw-stat{position:relative;overflow:hidden;background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:17px;box-shadow:0 8px 25px rgba(16,42,67,.05)}.bw-stat:after{content:"";position:absolute;right:-22px;top:-22px;width:75px;height:75px;border-radius:50%;opacity:.12}.bw-stat span{font-size:21px}.bw-stat small{display:block;color:#64748b;margin-top:9px;font-weight:700}.bw-stat strong{display:block;font-size:25px;margin-top:5px}.bw-stat.blue:after{background:#2563eb}.bw-stat.purple:after{background:#7c3aed}.bw-stat.orange:after{background:#f97316}.bw-stat.green:after{background:#16a34a}.bw-stat.amber:after{background:#d97706}.bw-stat.red:after{background:#dc2626}.bw-stat.dark:after{background:#0b2a52}.bw-stat.cyan:after{background:#0891b2}
.bw-order-search{margin:18px 0;padding:17px;background:#fff;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 25px rgba(16,42,67,.04)}.bw-order-search form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.bw-order-search input{flex:1;min-width:260px;padding:13px 14px;border:1px solid #d8dee8;border-radius:11px;font-size:14px}.bw-order-search button{padding:13px 18px;border:0;border-radius:11px;background:#0b2a52;color:#fff;font-weight:800;cursor:pointer}.bw-order-search a{padding:10px;text-decoration:none;font-weight:700}.bw-order-search p{margin:10px 0 0;color:#64748b;font-size:13px}
.bw-orders{margin-top:18px;background:#fff;border:1px solid #e6ebf2;border-radius:20px;padding:20px;box-shadow:0 8px 25px rgba(16,42,67,.05)}.bw-orders-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.bw-orders h3{margin:4px 0;font-size:20px}.bw-section-kicker{font-size:10px;letter-spacing:1.5px;color:#2d67a8;font-weight:900}.bw-count-pill{padding:7px 11px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:800}.bw-orders table{width:100%;border-collapse:separate;border-spacing:0;min-width:850px}.bw-orders th{background:#f8fafc;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.4px}.bw-orders th,.bw-orders td{text-align:left;padding:13px;border-bottom:1px solid #edf1f5;font-size:13px}.bw-orders tbody tr:hover{background:#fbfdff}.bw-orders td small{color:#64748b;line-height:1.6}.bw-status{display:inline-block;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}.bw-status.paid{background:#e8f7ee;color:#16794c}.bw-status.failed,.bw-status.cancelled,.bw-status.canceled,.bw-status.user_dropped,.bw-status.expired{background:#fff0f0;color:#b42318}.bw-status.pending,.bw-status.created,.bw-status.active{background:#fff8df;color:#9a6700}.bw-delete-btn{border:1px solid #fecaca;background:#fff5f5;color:#b42318;border-radius:9px;padding:7px 10px;font-size:11px;font-weight:800;cursor:pointer}.bw-delete-btn:hover{background:#fee2e2}.bw-empty{text-align:center!important;color:#64748b;padding:35px!important}
@media(max-width:900px){.bw-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.bw-dash-hero{padding:20px;align-items:flex-start}.bw-dash-hero h2{font-size:24px}.bw-stats{grid-template-columns:1fr 1fr}.bw-stat{padding:14px}.bw-stat strong{font-size:21px}.bw-orders{padding:14px}.bw-order-search input{min-width:100%}}

/* v1.0.8 compact checkout + fixed offer CTA + popup */
.bw-ebook-form{max-width:620px;margin:18px auto;padding:24px;background:#fff;border:1px solid #e4e9f0;border-radius:22px;box-shadow:0 14px 40px rgba(16,42,67,.08);font-family:Inter,Arial,sans-serif;color:#162238}
.bw-ebook-form-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.bw-form-kicker{font-size:10px;letter-spacing:1.6px;font-weight:900;color:#28619d}.bw-ebook-form-head h3{font-size:25px;margin:5px 0 5px;color:#12213a}.bw-ebook-form-head p{margin:0;color:#64748b;font-size:13px;line-height:1.5}.bw-form-price{text-align:right;white-space:nowrap}.bw-form-price small{display:block;color:#64748b;font-size:11px;font-weight:800;margin-bottom:2px}.bw-form-price strong{font-size:32px;line-height:1;color:#e13b2f}.bw-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}.bw-form-grid label{display:block;font-size:12px;font-weight:800;margin:8px 0}.bw-form-grid .bw-full-field{grid-column:1/-1}.bw-ebook-form input{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d5dce6;border-radius:11px;padding:13px 14px;font-size:14px;outline:none;background:#fff;color:#162238}.bw-ebook-form input:focus{border-color:#245ea8;box-shadow:0 0 0 3px rgba(36,94,168,.10)}.bw-pay-button{width:100%;border:0;border-radius:12px;padding:15px 18px;margin-top:13px;background:#f4b900;color:#172033;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 8px 20px rgba(244,185,0,.22);transition:transform .15s,box-shadow .15s}.bw-pay-button:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgba(244,185,0,.28)}.bw-pay-button:disabled{opacity:.65;cursor:wait;transform:none}.bw-pay-button span{font-size:18px}.bw-ebook-form .bw-msg{min-height:18px;margin-top:8px;color:#b42318;font-size:12px;font-weight:700}.bw-ebook-form .bw-mini-trust{font-size:10px;color:#64748b;text-align:center;margin-top:9px;line-height:1.5}

.bw-bottom-cta{position:fixed;left:0;right:0;bottom:0;z-index:99990;background:#1a1c28;color:#fff;border-top:1px solid rgba(255,255,255,.08);box-shadow:0 -8px 28px rgba(0,0,0,.18);font-family:Inter,Arial,sans-serif}.bw-bottom-inner{max-width:1200px;margin:0 auto;min-height:88px;padding:9px 22px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:25px}.bw-offer-label{font-size:12px;letter-spacing:1.2px;color:#aeb3c1;margin-bottom:5px}.bw-timer{display:flex;gap:8px}.bw-timer>div{min-width:42px;text-align:center}.bw-timer strong{display:block;background:#11131c;border:1px solid #2c2f3b;border-radius:6px;padding:5px 7px;font-size:20px;line-height:1;color:#f7c15d}.bw-timer span{display:block;margin-top:3px;font-size:9px;color:#aeb3c1;letter-spacing:.5px}.bw-bottom-buy{border:0;border-radius:13px;padding:17px 31px;background:#f4bf62;color:#15171f;font-size:17px;font-weight:900;cursor:pointer;white-space:nowrap;box-shadow:0 8px 22px rgba(244,191,98,.20);transition:transform .15s,filter .15s}.bw-bottom-buy:hover{transform:translateY(-1px);filter:brightness(1.03)}

html.bw-popup-open,html.bw-popup-open body{overflow:hidden}.bw-popup{display:none;position:fixed;inset:0;z-index:100000;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.bw-popup.is-open{display:flex}.bw-popup-backdrop{position:absolute;inset:0;background:rgba(8,15,28,.70);backdrop-filter:blur(5px)}.bw-popup-dialog{position:relative;z-index:1;width:min(600px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:24px;padding:26px;box-sizing:border-box;box-shadow:0 25px 90px rgba(0,0,0,.35);animation:bwPopupIn .18s ease-out}.bw-popup-close{position:absolute;right:14px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f4f8;color:#263449;font-size:27px;line-height:36px;cursor:pointer}.bw-popup-close:hover{background:#e5eaf1}.bw-popup-title{padding-right:42px;margin-bottom:2px}.bw-popup-title h3{margin:5px 0 5px;font-size:25px;color:#12213a}.bw-popup-title p{margin:0;color:#64748b;font-size:13px;line-height:1.5}.bw-ebook-form-popup{margin:15px 0 0;padding:0;border:0;box-shadow:none;max-width:none}.bw-popup-price{text-align:left;margin-bottom:4px}.bw-popup-price strong{font-size:28px}.bw-popup .bw-form-grid{gap:2px 14px}
@keyframes bwPopupIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:650px){.bw-ebook-form{padding:19px;border-radius:18px}.bw-ebook-form-head{display:block}.bw-form-price{text-align:left;margin-top:12px}.bw-form-price strong{font-size:29px}.bw-form-grid{grid-template-columns:1fr}.bw-form-grid .bw-full-field{grid-column:auto}.bw-popup{padding:10px}.bw-popup-dialog{max-height:calc(100vh - 20px);padding:21px 18px;border-radius:20px}.bw-popup-title h3{font-size:21px}.bw-bottom-inner{min-height:78px;padding:8px 11px;gap:10px}.bw-offer-label{font-size:9px;letter-spacing:.8px}.bw-timer{gap:4px}.bw-timer>div{min-width:31px}.bw-timer strong{font-size:14px;padding:5px 4px}.bw-timer span{font-size:7px}.bw-bottom-buy{padding:13px 14px;border-radius:10px;font-size:13px}.bw-bottom-cta{z-index:99990}.bw-pay-button{padding:14px;font-size:14px}}

/* v1.0.10 premium vertical checkout + popup + yellow CTA */
.bw-ebook-form{max-width:760px;margin:24px auto;padding:30px 30px 24px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);border:1px solid #e1e8f1;border-radius:26px;box-shadow:0 20px 55px rgba(15,42,70,.10);position:relative;overflow:hidden}
.bw-ebook-form:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#f6b800,#ffd84d,#f6b800)}
.bw-ebook-form-head{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;margin-bottom:25px}
.bw-form-kicker{font-size:10px;letter-spacing:2px;font-weight:900;color:#1d5da1}
.bw-ebook-form-head h3{font-size:30px;line-height:1.12;margin:7px 0 7px;color:#12233f;letter-spacing:-.5px}
.bw-ebook-form-head p{font-size:14px;color:#6b7b91;margin:0;line-height:1.55}
.bw-form-price{text-align:right;white-space:nowrap;padding-top:2px}.bw-form-price small{font-size:11px;color:#718096;font-weight:800;display:block}.bw-form-price strong{font-size:38px;line-height:1;color:#e3342f;letter-spacing:-1px}
.bw-form-grid{display:block}.bw-form-grid label{display:block;margin:0 0 15px;font-size:13px;font-weight:900;color:#18263c}.bw-form-grid label:last-child{margin-bottom:0}.bw-form-grid .bw-full-field{grid-column:auto}
.bw-ebook-form input{margin-top:7px;width:100%;height:48px;padding:0 15px;border:1px solid #cfd8e3;border-radius:10px;background:#fff;box-sizing:border-box;color:#152238;font-size:15px;transition:border-color .15s,box-shadow .15s,transform .15s}
.bw-ebook-form input:hover{border-color:#aebdce}.bw-ebook-form input:focus{border-color:#245ea8;box-shadow:0 0 0 4px rgba(36,94,168,.09);outline:none}
.bw-pay-button{width:100%;height:54px;border:0;border-radius:12px;padding:0 20px;margin-top:19px;background:linear-gradient(135deg,#f7b900 0%,#ffd84a 48%,#f2ad00 100%);color:#172033;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 12px 25px rgba(245,183,0,.24);transition:transform .18s,box-shadow .18s,filter .18s}.bw-pay-button:hover{transform:translateY(-2px);filter:saturate(1.05);box-shadow:0 16px 30px rgba(245,183,0,.30)}
.bw-ebook-form .bw-mini-trust{font-size:11px;color:#718096;text-align:center;margin-top:14px;line-height:1.6}.bw-ebook-form .bw-msg{min-height:18px;text-align:center;margin-top:9px;color:#b42318;font-size:12px;font-weight:800}
.bw-bottom-cta{background:rgba(24,27,39,.98);border-top:1px solid rgba(255,255,255,.09);box-shadow:0 -12px 35px rgba(0,0,0,.20)}
.bw-bottom-inner{max-width:1200px;min-height:92px;padding:10px 24px;gap:28px}.bw-offer-label{font-size:11px;letter-spacing:1.5px;color:#aeb5c4;font-weight:700;margin-bottom:6px}.bw-timer{gap:8px}.bw-timer>div{min-width:44px}.bw-timer strong{background:#11141d;border:1px solid #303541;border-radius:7px;color:#ffd05a;padding:6px 7px;font-size:20px;box-shadow:inset 0 1px rgba(255,255,255,.04)}.bw-timer span{color:#9da5b5;font-size:8px;font-weight:800}
.bw-bottom-buy{border:0;border-radius:12px;padding:16px 34px;background:linear-gradient(135deg,#f5b500 0%,#ffd84b 50%,#f0ad00 100%);color:#151922;font-size:17px;font-weight:950;letter-spacing:-.1px;box-shadow:0 10px 28px rgba(247,183,0,.24);transition:transform .18s,box-shadow .18s,filter .18s}.bw-bottom-buy:hover{transform:translateY(-2px);filter:saturate(1.06);box-shadow:0 15px 34px rgba(247,183,0,.32)}
html.bw-popup-open,html.bw-popup-open body{overflow:hidden}.bw-popup{padding:18px}.bw-popup-backdrop{background:rgba(9,16,29,.76);backdrop-filter:blur(7px)}
.bw-popup-dialog{width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;background:linear-gradient(180deg,#ffffff,#fbfdff);border:1px solid rgba(255,255,255,.8);border-radius:28px;padding:30px 30px 24px;box-shadow:0 30px 110px rgba(0,0,0,.45);animation:bwPopupPremium .22s cubic-bezier(.2,.75,.25,1)}
.bw-popup-dialog:before{content:"";position:absolute;left:0;top:0;right:0;height:5px;border-radius:28px 28px 0 0;background:linear-gradient(90deg,#f6b800,#ffe16b,#f6b800)}
.bw-popup-close{right:17px;top:16px;width:42px;height:42px;border:1px solid #dfe5ed;border-radius:50%;background:#fff;color:#17233a;font-size:23px;line-height:39px;font-weight:700;box-shadow:0 5px 15px rgba(20,35,55,.10);transition:all .15s}.bw-popup-close:hover{background:#fff8dc;border-color:#f0bd20;color:#a06b00;transform:rotate(90deg)}
.bw-popup-title{padding-right:54px;margin-bottom:17px}.bw-popup-title .bw-form-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef5ff;border:1px solid #dceaff;font-size:9px;letter-spacing:1.7px}.bw-popup-title h3{font-size:27px;line-height:1.15;margin:10px 0 6px;color:#12233f;letter-spacing:-.5px}.bw-popup-title p{font-size:13px;color:#6b7b91}
.bw-ebook-form-popup{margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}.bw-ebook-form-popup:before{display:none}.bw-popup-price{display:flex;align-items:baseline;gap:9px;text-align:left;margin:0 0 14px}.bw-popup-price small{font-size:11px;color:#718096;font-weight:800}.bw-popup-price strong{font-size:34px!important;color:#e3342f!important;line-height:1}.bw-popup .bw-form-grid label{margin-bottom:14px}.bw-popup .bw-pay-button{margin-top:8px}.bw-popup .bw-mini-trust{margin-top:13px}
@keyframes bwPopupPremium{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:650px){.bw-ebook-form{padding:25px 18px 20px;border-radius:22px}.bw-ebook-form-head{display:block;margin-bottom:20px}.bw-ebook-form-head h3{font-size:27px}.bw-form-price{text-align:left;margin-top:14px}.bw-form-price strong{font-size:34px}.bw-ebook-form input{height:49px}.bw-pay-button{height:52px}.bw-popup{padding:8px}.bw-popup-dialog{max-height:calc(100vh - 16px);padding:28px 18px 20px;border-radius:23px}.bw-popup-title h3{font-size:23px}.bw-popup-close{right:13px;top:13px;width:40px;height:40px}.bw-bottom-inner{min-height:76px;padding:8px 10px;gap:9px}.bw-offer-label{font-size:8px;letter-spacing:1px}.bw-timer{gap:3px}.bw-timer>div{min-width:30px}.bw-timer strong{font-size:14px;padding:5px 4px}.bw-timer span{font-size:6px}.bw-bottom-buy{padding:13px 14px;border-radius:10px;font-size:13px}.bw-bottom-cta{z-index:99990}}

/* v1.0.11 premium polish */
.bw-form-price strong,.bw-popup-price strong{
  color:#ffbd00!important;
  background:linear-gradient(90deg,#f59e0b 0%,#ffe36a 38%,#fff7b0 50%,#ffd23f 62%,#f59e0b 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 3px 10px rgba(255,190,0,.28));
  animation:bwPriceGlow 2.8s ease-in-out infinite;
}
@keyframes bwPriceGlow{0%,100%{background-position:0% 50%;filter:drop-shadow(0 3px 8px rgba(255,190,0,.20))}50%{background-position:100% 50%;filter:drop-shadow(0 3px 16px rgba(255,196,0,.48))}}

.bw-ebook-form{border-color:#e7edf5;box-shadow:0 24px 65px rgba(16,42,67,.11)}
.bw-form-grid label{font-size:13px;letter-spacing:.1px}
.bw-ebook-form input{
  height:54px;padding:0 17px;border:1px solid #c8d3df;border-radius:12px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:inset 0 1px 2px rgba(16,42,67,.025),0 2px 7px rgba(16,42,67,.035);
  transition:border-color .2s,box-shadow .2s,transform .2s,background .2s;
}
.bw-ebook-form input:hover{border-color:#aebdcc;background:#fff;box-shadow:0 5px 14px rgba(16,42,67,.055)}
.bw-ebook-form input:focus{border-color:#e4ae00;background:#fff;box-shadow:0 0 0 4px rgba(244,185,0,.13),0 7px 18px rgba(16,42,67,.06);transform:translateY(-1px)}
.bw-ebook-form input::placeholder{color:#8491a1;opacity:1}

.bw-pay-button,.bw-bottom-buy{
  background:linear-gradient(135deg,#f2ae00 0%,#ffc400 28%,#ffe05b 50%,#ffc400 72%,#e8a500 100%)!important;
  background-size:200% 100%!important;color:#fff!important;
  text-shadow:0 1px 1px rgba(120,75,0,.22);
}
.bw-pay-button:hover,.bw-bottom-buy:hover{
  background:linear-gradient(135deg,#d99600 0%,#edae00 30%,#ffc928 50%,#edae00 70%,#d28f00 100%)!important;
  background-size:200% 100%!important;color:#fff!important;
  filter:none!important;transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(219,155,0,.34)!important;
}

/* Premium close button: compact outlined control, clearly clickable */
.bw-popup-close{
  right:16px!important;top:15px!important;width:44px!important;height:44px!important;
  border:1px solid #e5b400!important;border-radius:12px!important;
  background:linear-gradient(145deg,#fffdf2,#fff8d8)!important;
  color:#9b6a00!important;font-size:0!important;line-height:1!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:0 8px 22px rgba(173,125,0,.16)!important;
  transition:transform .2s,background .2s,border-color .2s,box-shadow .2s!important;
}
.bw-popup-close:before{content:'×';font-size:25px;font-weight:500;line-height:1;transform:translateY(-1px)}
.bw-popup-close:hover{
  background:linear-gradient(145deg,#ffe27a,#ffc21a)!important;
  border-color:#e1a500!important;color:#fff!important;transform:rotate(90deg) scale(1.04)!important;
  box-shadow:0 10px 26px rgba(224,163,0,.30)!important;
}

.bw-popup-dialog{border-color:#edf1f5;box-shadow:0 32px 120px rgba(0,0,0,.48)}
.bw-popup .bw-ebook-form input{height:54px}

@media(max-width:650px){
  .bw-ebook-form input{height:52px}
  .bw-popup .bw-ebook-form input{height:52px}
  .bw-popup-close{right:12px!important;top:12px!important;width:42px!important;height:42px!important;border-radius:11px!important}
}

/* v1.0.12 checkout consent */
.bw-consent{display:flex!important;align-items:flex-start;gap:9px!important;margin:4px 0 3px!important;font-size:11px!important;font-weight:600!important;color:#66758a!important;line-height:1.45!important}
.bw-consent input{width:16px!important;height:16px!important;margin:1px 0 0!important;flex:0 0 16px!important;accent-color:#f2b000}
.bw-consent span{display:block}

/* v1.0.16: transaction bulk actions + custom date filters */
.bw-custom-date{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 18px;padding:14px;background:#fff;border:1px solid #e6ebf2;border-radius:14px;box-shadow:0 5px 18px rgba(0,0,0,.03)}
.bw-custom-date label{display:flex;flex-direction:column;gap:6px;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}
.bw-custom-date input[type=date]{padding:10px 12px;border:1px solid #d8dee8;border-radius:10px;background:#fff;color:#172033;font-size:13px;min-height:40px}
.bw-custom-date button{padding:11px 16px;border:0;border-radius:10px;background:#0b2a52;color:#fff;font-weight:800;cursor:pointer;min-height:40px}
.bw-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;background:#f8fafc;border:1px solid #e7edf4;border-radius:11px;color:#475569;font-size:13px}
.bw-bulk-toolbar label{display:flex;align-items:center;gap:7px;cursor:pointer}
.bw-bulk-toolbar input[type=checkbox],.bw-check-col input[type=checkbox]{width:16px;height:16px;accent-color:#0b2a52;cursor:pointer}
.bw-delete-selected{border:1px solid #fecaca;background:#fff5f5;color:#b42318;border-radius:9px;padding:8px 12px;font-size:11px;font-weight:800;cursor:pointer}
.bw-delete-selected:hover{background:#fee2e2}
.bw-check-col{width:60px;text-align:center!important}
@media(max-width:600px){.bw-custom-date{align-items:stretch}.bw-custom-date label,.bw-custom-date input[type=date],.bw-custom-date button{width:100%;box-sizing:border-box}.bw-custom-date button{margin-top:2px}.bw-bulk-toolbar{align-items:flex-start}}


/* v1.0.21: stable full-width bottom CTA; no timer */
.bw-bottom-cta{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;z-index:99990!important}
.bw-bottom-buy{appearance:none!important;-webkit-appearance:none!important;border:1px solid rgba(255,208,70,.55)!important;background:linear-gradient(135deg,#f2ae00 0%,#ffc400 28%,#ffe05b 50%,#ffc400 72%,#e8a500 100%)!important;color:#fff!important}
.bw-popup{position:fixed!important;inset:0!important;display:none!important;align-items:center!important;justify-content:center!important;z-index:99999!important}
.bw-popup.is-open{display:flex!important}
.bw-popup-dialog{position:relative!important;background:#fff!important;opacity:1!important}
.bw-popup-dialog .bw-ebook-form-popup{background:transparent!important}
.bw-popup-dialog input{background:#fff!important;color:#172033!important}


/* v1.0.21 final CTA override: match the simple full-width mobile CTA style and remove timer UI */
.bw-bottom-cta{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;z-index:99990!important;background:rgba(255,255,255,.92)!important;border-top:1px solid rgba(16,42,67,.10)!important;box-shadow:0 -8px 28px rgba(16,42,67,.12)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;padding:10px 22px calc(10px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
.bw-bottom-inner{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important}
.bw-bottom-buy{display:block!important;width:100%!important;min-height:54px!important;padding:15px 18px!important;box-sizing:border-box!important;border:0!important;border-radius:28px!important;background:linear-gradient(135deg,#f2ae00 0%,#ffc400 30%,#ffe05b 50%,#ffc400 70%,#e8a500 100%)!important;color:#172033!important;font-size:16px!important;line-height:1.2!important;font-weight:950!important;letter-spacing:.1px!important;cursor:pointer!important;box-shadow:0 8px 22px rgba(230,165,0,.28)!important;transform:none!important}
.bw-bottom-buy:hover{filter:brightness(1.03)!important;transform:none!important}
.bw-bottom-buy:active{transform:scale(.995)!important}
.bw-offer-block,.bw-offer-label,.bw-timer{display:none!important}
@media(max-width:650px){.bw-bottom-cta{padding:10px 22px calc(10px + env(safe-area-inset-bottom))!important}.bw-bottom-buy{min-height:54px!important;padding:15px 14px!important;border-radius:28px!important;font-size:16px!important}}
