:root{
  --bg:#f6f8fc;--ink:#101827;--muted:#667085;--navy:#07152d;--blue:#1687ff;
  --card:#fff;--line:#e6eaf0;--shadow:0 18px 50px rgba(10,25,55,.10);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background-color:var(--bg);background-image:linear-gradient(rgba(92,139,190,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(92,139,190,.075) 1px,transparent 1px);background-size:64px 64px;background-position:0 0;background-attachment:fixed;line-height:1.6}
a{text-decoration:none;color:inherit}.topbar{height:76px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,5vw,70px);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:48px;height:48px;border-radius:50%;object-fit:cover}.brand strong{display:block;font-size:15px;letter-spacing:.7px}.brand span{display:block;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:1.5px}
nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:700}nav a{color:#344054}nav a:hover{color:var(--blue)}.nav-join{background:var(--navy);color:white!important;padding:10px 16px;border-radius:999px}.menu-btn{display:none;border:0;background:none;font-size:25px}
.hero{min-height:650px;padding:70px clamp(22px,7vw,100px);display:grid;grid-template-columns:1.1fr .9fr;gap:35px;align-items:center;background:radial-gradient(circle at 78% 35%,#d9ecff 0,#eef5ff 28%,transparent 55%),linear-gradient(180deg,#fff,#f5f8fd)}
.eyebrow{font-size:12px;letter-spacing:2px;font-weight:900;color:#1687ff;margin:0 0 12px}.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.02;letter-spacing:-2.5px;margin:0 0 22px;max-width:720px}.hero h1 span{color:#1687ff}.lead{font-size:19px;color:var(--muted);max-width:590px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 21px;border-radius:12px;font-weight:800;border:1px solid transparent}.primary{background:var(--blue);color:#fff;box-shadow:0 10px 25px rgba(22,135,255,.24)}.secondary{background:#fff;border-color:#dce3ec}.trust-row{display:flex;gap:12px;flex-wrap:wrap}.trust-row div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 15px;min-width:85px}.trust-row b,.trust-row small{display:block}.trust-row b{font-size:17px}.trust-row small{color:var(--muted);font-size:10px}.hero-logo{position:relative;display:flex;justify-content:center}.hero-logo img{width:min(520px,90%);aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 25px 35px rgba(7,21,45,.18));position:relative}.glow{position:absolute;width:70%;aspect-ratio:1;border-radius:50%;background:#62b4ff55;filter:blur(55px)}
.section{padding:85px clamp(22px,7vw,100px)}.section-head{text-align:center;max-width:680px;margin:0 auto 38px}.section-head h2,.cta h2{font-size:clamp(30px,4vw,44px);margin:0 0 8px;line-height:1.1}.section-head p:last-child{color:var(--muted);margin:0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:1200px;margin:auto}.card{background:var(--card);padding:26px;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 25px rgba(10,25,55,.05)}.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);transition:.2s}.icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;font-size:25px;margin-bottom:18px}.blue{background:#e7f3ff}.orange{background:#fff0dd}.green{background:#e6faee}.purple{background:#f0e9ff}.card h3{margin:0 0 8px}.card p{color:var(--muted);font-size:14px;margin:0}
.dark-section{background:var(--navy);color:white}.dark-section .eyebrow{color:#69b7ff}.subject-grid{max-width:1100px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.subject{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.06);border-radius:20px;padding:25px;display:flex;flex-direction:column}.subject span{font-size:30px}.subject b{font-size:20px;margin-top:10px}.subject small{color:#aebbd0}.cta{margin:70px clamp(22px,7vw,100px);padding:42px;max-width:1200px;margin-left:auto;margin-right:auto;border-radius:28px;background:linear-gradient(110deg,#e9f4ff,#fff);border:1px solid #d8eaff;display:flex;align-items:center;justify-content:space-between;gap:30px}.cta p:not(.eyebrow){color:var(--muted)}.about-box{max-width:900px;margin:auto;background:white;border:1px solid var(--line);border-radius:25px;padding:30px;display:flex;align-items:center;gap:30px;box-shadow:var(--shadow)}.about-box img{width:150px;height:150px;object-fit:contain;border-radius:50%}.about-box h2{margin:0 0 10px}.about-box p:last-child{color:var(--muted)}footer{background:#050f21;color:#c8d2e1;padding:24px clamp(22px,7vw,100px);display:flex;justify-content:space-between;gap:15px;font-size:13px}footer strong{color:white}
@media(max-width:900px){.hero{grid-template-columns:1fr;text-align:center;padding-top:45px}.lead{margin-left:auto;margin-right:auto}.actions,.trust-row{justify-content:center}.hero-logo{order:-1}.hero-logo img{width:min(360px,75vw)}.cards{grid-template-columns:repeat(2,1fr)}.subject-grid{grid-template-columns:repeat(2,1fr)}.cta{flex-direction:column;align-items:flex-start}}
@media(max-width:680px){nav{display:none;position:absolute;left:14px;right:14px;top:70px;background:white;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:4px}nav.open{display:flex}nav a{padding:11px 13px}.menu-btn{display:block}.brand strong{font-size:13px}.cards{grid-template-columns:1fr}.subject-grid{grid-template-columns:1fr 1fr}.section{padding-top:60px;padding-bottom:60px}.cta{margin-top:40px;padding:28px}.about-box{flex-direction:column;text-align:center}.about-box img{width:120px;height:120px}footer{flex-direction:column}}


/* Compact community channel slider */
.community-section{padding:34px clamp(22px,7vw,100px);background:var(--bg)}
.community-card{position:relative;max-width:1200px;margin:auto;padding:28px 30px 24px;background:#fff;border:1px solid #dfe7f1;border-radius:24px;box-shadow:0 12px 35px rgba(10,25,55,.08);overflow:hidden}
.community-accent{position:absolute;left:0;top:22px;bottom:22px;width:5px;border-radius:0 5px 5px 0;background:#f20d1a}
.community-top{padding-left:18px}
.community-top h2{margin:0 0 8px;font-size:clamp(27px,4vw,42px);line-height:1.08}
.community-top p:not(.eyebrow){margin:0;color:var(--muted);max-width:720px;font-size:16px}
.channel-slider{margin-top:20px;min-height:158px}
.channel-slide{display:flex;align-items:center;gap:20px;padding:20px 22px;background:#fff;border:1px solid #dfe7f1;border-radius:20px;box-shadow:0 7px 22px rgba(10,25,55,.06);animation:channelIn .22s ease}
.channel-slide[hidden]{display:none}
.channel-icon{width:72px;height:72px;flex:0 0 72px;border-radius:18px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:22px}
.whatsapp-icon{background:#25d366}.telegram-icon{background:#28a9df}.youtube-icon{background:#ff0b16}
.channel-copy{min-width:0;flex:1}.channel-copy h3{margin:0 0 4px;font-size:24px;line-height:1.15}.channel-copy p{margin:0 0 13px;color:var(--muted);font-size:15px}
.channel-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:11px;color:#fff;font-weight:800;font-size:14px}.whatsapp-btn{background:#25c76a}.telegram-btn{background:#28a9df}.youtube-btn{background:#ff0b16}
.channel-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-left:18px}
.slider-arrows{display:flex;gap:10px}.channel-arrow{width:42px;height:42px;border:1px solid #dce5ef;background:#fff;border-radius:50%;font-size:30px;line-height:1;color:#35506f;cursor:pointer}.channel-arrow:hover{background:#f5f9ff}
.switch-channel{border:1px solid #ff5360;background:#ff1724;color:#fff;border-radius:999px;padding:11px 20px;font-weight:800;cursor:pointer}.switch-channel span{font-size:18px;margin-left:5px}
@keyframes channelIn{from{opacity:.35;transform:translateX(8px)}to{opacity:1;transform:none}}

/* Download tutorial */
.download-tutorial{
  max-width:900px;
  margin:22px auto 0;
  padding:16px 18px;
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
  background:linear-gradient(110deg,#eef7ff,#ffffff);
  border:1px solid #d7e9fb;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(10,25,55,.06);
}
.download-tutorial-icon{
  width:46px;height:46px;min-width:46px;
  display:grid;place-items:center;
  border-radius:13px;
  background:#1687ff;color:#fff;
  font-size:18px;
  box-shadow:0 8px 18px rgba(22,135,255,.22);
}
.download-tutorial-text{flex:1;min-width:0}
.download-tutorial-text strong{display:block;font-size:16px;color:#101828}
.download-tutorial-text span{display:block;color:#667085;font-size:13px;margin-top:2px}
.tutorial-btn{
  display:inline-flex;align-items:center;justify-content:center;
  white-space:nowrap;
  padding:11px 15px;
  border-radius:10px;
  background:#1687ff;color:#fff;
  font-size:13px;font-weight:800;
  box-shadow:0 8px 18px rgba(22,135,255,.18);
}
.tutorial-btn:hover{filter:brightness(.94)}
@media(max-width:680px){
  .download-tutorial{flex-wrap:wrap;padding:14px}
  .download-tutorial-text{flex:1}
  .tutorial-btn{width:100%;margin-left:60px}
}

/* Books */
.books-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.book-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 8px 25px rgba(10,25,55,.06);
  display:flex;
  flex-direction:column;
  transition:.2s;
}
.book-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.book-cover{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  background:#eef2f7;
}
.book-info{padding:18px}
.book-info h3{margin:0 0 5px;font-size:18px}
.book-info p{margin:0 0 15px;color:var(--muted);font-size:13px}
.book-download{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:11px;
  background:var(--blue);
  color:#fff;
  font-weight:800;
}
.book-download:hover{filter:brightness(.94)}
.book-help strong{color:#101828}
.book-help p{margin:5px 0 0;font-size:13px}
.book-help code{
  background:#edf2f7;
  padding:2px 5px;
  border-radius:5px;
}

@media(max-width:680px){
  .community-section{padding:24px 16px}
  .community-card{padding:24px 18px 18px;border-radius:20px}
  .community-accent{top:18px;bottom:18px}
  .community-top{padding-left:12px}
  .community-top h2{font-size:28px}
  .community-top p:not(.eyebrow){font-size:14px}
  .channel-slider{min-height:175px;margin-top:16px}
  .channel-slide{gap:15px;padding:18px 14px;border-radius:17px}
  .channel-icon{width:58px;height:58px;flex-basis:58px;border-radius:15px;font-size:18px}
  .channel-copy h3{font-size:19px}
  .channel-copy p{font-size:13px;margin-bottom:10px}
  .channel-btn{font-size:13px;padding:9px 14px}
  .channel-controls{padding-left:12px;margin-top:12px}
  .channel-arrow{width:38px;height:38px;font-size:27px}
  .switch-channel{padding:10px 16px;font-size:13px}
}

/* responsive books */
@media(max-width:1050px){
  .books-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .books-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  .books-grid{grid-template-columns:1fr 1fr;gap:12px}
  .book-info{padding:13px}
  .book-info h3{font-size:15px}
  .book-info p{font-size:12px;margin-bottom:11px}
  .book-download{font-size:12px;padding:10px}
}

/* Hidden admin system */
.brand img{cursor:pointer;user-select:none}
.modal{display:none;position:fixed;inset:0;background:rgba(2,9,22,.72);backdrop-filter:blur(7px);z-index:100;align-items:center;justify-content:center;padding:18px}
.modal.show{display:flex}.modal-box,.admin-panel{width:min(480px,100%);background:#fff;border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.3);position:relative}
.admin-lock{text-align:center;font-size:38px}.modal-box h2{text-align:center;margin:6px 0}.modal-box p{text-align:center;color:var(--muted)}
.modal-box input,.book-form input{width:100%;padding:13px 14px;border:1px solid #d8e0ea;border-radius:11px;margin:7px 0;font:inherit;outline:none}.modal-box input:focus,.book-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1687ff18}
.full{width:100%;margin-top:8px}.modal-close{position:absolute;right:18px;top:12px;border:0;background:none;font-size:30px;cursor:pointer;color:#667085}.login-error{color:#d92d20;text-align:center;font-size:13px;min-height:20px;margin-top:8px}
.admin-panel{width:min(850px,100%);max-height:90vh;overflow:auto}.admin-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:15px}.admin-head h2{margin:0}.add-book-btn{width:100%;margin:18px 0;padding:14px;border:0;border-radius:12px;background:var(--blue);color:#fff;font-size:16px;font-weight:800;cursor:pointer}
.admin-book{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:15px;padding:10px;margin:10px 0}.admin-book img{width:58px;height:75px;object-fit:cover;border-radius:8px}.admin-book-info{flex:1}.admin-book-info b,.admin-book-info small{display:block}.admin-book-info small{color:var(--muted)}.admin-actions{display:flex;gap:7px}.small-btn{border:1px solid #d8e0ea;background:#fff;border-radius:9px;padding:8px 10px;cursor:pointer}.danger{color:#d92d20}.book-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}
@media(max-width:520px){.admin-book{align-items:flex-start}.admin-actions{flex-direction:column}}

.owner-credit{text-align:center;margin:22px 0 12px;color:#667085;font-size:14px;font-weight:700}

.owner-credit a{
  color:inherit;
  text-decoration:none;
}

/* ===== PREMIUM LIBRARY UPDATE ===== */
.library-toolbar{max-width:1200px;margin:0 auto 14px}.search-wrap{height:58px;background:#fff;border:1px solid #dce5ef;border-radius:17px;display:flex;align-items:center;padding:0 10px 0 18px;box-shadow:0 10px 30px rgba(10,25,55,.06)}.search-wrap>span{font-size:27px;color:#7b8798;line-height:1;transform:rotate(-20deg)}.search-wrap input{flex:1;border:0;outline:0;font:inherit;font-size:16px;padding:0 12px;background:transparent;color:#101828}.search-wrap button{border:0;background:#eef3f8;width:34px;height:34px;border-radius:10px;color:#667085;font-size:22px;cursor:pointer}.subject-tabs{display:flex;gap:8px;overflow-x:auto;padding:13px 2px 5px;scrollbar-width:none}.subject-tabs::-webkit-scrollbar{display:none}.subject-tabs button{flex:0 0 auto;border:1px solid #dce5ef;background:#fff;color:#344054;border-radius:12px;padding:10px 13px;font-weight:800;cursor:pointer;transition:.18s}.subject-tabs button:hover{transform:translateY(-1px);border-color:#9bcaff}.subject-tabs button.active{background:#07152d;color:#fff;border-color:#07152d;box-shadow:0 8px 18px rgba(7,21,45,.18)}.subject-tabs button span{opacity:.75;margin-left:3px}.library-meta{max-width:1200px;margin:0 auto 16px;display:flex;justify-content:space-between;align-items:center;color:#667085;font-size:13px}.reset-filter{border:0;background:transparent;color:#1670d2;font-weight:800;cursor:pointer}.cover-wrap{position:relative}.subject-badge{position:absolute;left:12px;top:12px;background:rgba(7,21,45,.88);backdrop-filter:blur(6px);color:#fff;border:1px solid rgba(255,255,255,.2);padding:6px 9px;border-radius:9px;font-size:11px;font-weight:900}.book-meta{display:flex;justify-content:flex-start;margin-bottom:7px}.book-meta span{font-size:11px;font-weight:800;color:#667085;background:#f2f5f9;padding:5px 8px;border-radius:7px}.card-actions{display:grid;grid-template-columns:1fr auto;gap:8px}.book-download,.share-btn{border:0;cursor:pointer;font:inherit}.share-btn{display:flex;align-items:center;justify-content:center;padding:11px 12px;border-radius:11px;background:#edf5ff;color:#1265bb;font-weight:900;white-space:nowrap}.share-btn:hover{background:#dfeeff}.empty-state{max-width:500px;margin:35px auto;text-align:center;padding:35px 20px;border:1px dashed #cbd7e5;border-radius:22px;background:#fff}.empty-state>div{font-size:42px}.empty-state h3{margin:8px 0 4px}.empty-state p{color:#667085;margin:0}.subject{cursor:pointer;color:inherit;text-align:left;font:inherit}.subject:hover{border-color:#4aa2ff;transform:translateY(-3px);transition:.2s}.admin-note{background:#eef7ff;border:1px solid #d5eaff;padding:11px 13px;border-radius:11px;color:#35516e;font-size:12px;margin-bottom:14px}.book-form select{width:100%;padding:13px 14px;border:1px solid #d8e0ea;border-radius:11px;margin:7px 0;font:inherit;background:#fff}.admin-empty{text-align:center;color:#667085}.admin-actions button{font-weight:800}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#07152d;color:#fff;padding:12px 17px;border-radius:12px;box-shadow:0 15px 35px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:.2s;z-index:9999;font-weight:800;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:680px){.search-wrap{height:54px}.subject-tabs button{padding:9px 11px;font-size:12px}.library-meta{padding:0 2px}.card-actions{grid-template-columns:1fr 78px}.share-btn{font-size:11px;padding:10px 7px}.subject-grid{grid-template-columns:1fr 1fr}}

/* ===== FINAL RESPONSIVE PREMIUM LIBRARY ===== */
.books-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.book-card{min-width:0;border-radius:22px;box-shadow:0 8px 28px rgba(10,25,55,.07)}
.book-cover{display:block;width:100%;aspect-ratio:3/4;object-fit:cover}
.book-info{min-width:0;padding:16px}
.book-info h3{font-size:17px;line-height:1.42;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.card-actions{grid-template-columns:minmax(0,1fr) 78px;gap:8px;align-items:stretch}
.book-download{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.share-btn{width:78px;min-width:0;font-size:12px;padding:9px 6px;overflow:hidden}
.subject-badge{max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:1050px){
  .books-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}
@media(max-width:900px){
  .books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
}
@media(max-width:680px){
  .section{padding-left:16px;padding-right:16px}
  .library-toolbar{width:100%}
  .search-wrap{height:52px;border-radius:15px;padding-left:14px}
  .search-wrap>span{font-size:23px}
  .search-wrap input{font-size:14px;padding:0 9px}
  .subject-tabs{padding-top:11px;padding-bottom:7px;gap:7px}
  .subject-tabs button{padding:8px 11px;border-radius:11px;font-size:12px}
  .library-meta{font-size:12px;margin-bottom:13px}
  .books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .book-card{border-radius:18px}
  .book-cover{aspect-ratio:4/5}
  .subject-badge{left:8px;top:8px;padding:5px 7px;border-radius:8px;font-size:9px}
  .book-info{padding:10px}
  .book-meta{margin-bottom:5px}
  .book-meta span{font-size:9px;padding:4px 6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .book-info h3{font-size:13.5px;line-height:1.38;margin-bottom:9px;-webkit-line-clamp:3}
  .card-actions{grid-template-columns:minmax(0,1fr) 58px;gap:6px}
  .book-download{font-size:11px;padding:9px 5px;border-radius:10px}
  .share-btn{width:58px;font-size:9.5px;padding:8px 3px;border-radius:10px}
}
@media(max-width:360px){
  .books-grid{gap:9px}
  .book-info{padding:9px}
  .book-info h3{font-size:12.5px}
  .card-actions{grid-template-columns:minmax(0,1fr) 54px;gap:5px}
  .share-btn{width:54px;font-size:9px}
  .book-download{font-size:10px}
}


/* ===== TELEGRAM WELCOME POPUP ===== */
body.popup-open{overflow:hidden}
.telegram-popup{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:18px;z-index:10000}
.telegram-popup.show{display:flex}
.telegram-popup-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(8px)}
.telegram-popup-card{position:relative;width:min(636px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#111;border:1px solid rgba(52,185,255,.35);border-radius:30px;box-shadow:0 30px 100px rgba(0,0,0,.55);overflow:hidden;animation:telegramPopupIn .24s ease}
.telegram-popup-close{position:absolute;right:18px;top:18px;z-index:4;width:48px;height:48px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(70,84,99,.8);color:#fff;font-size:34px;line-height:1;cursor:pointer}
.telegram-popup-art{position:relative;min-height:285px;padding:34px 32px 28px;display:flex;align-items:center;gap:22px;overflow:hidden;background:radial-gradient(circle at 18% 65%,rgba(0,165,255,.35),transparent 34%),radial-gradient(circle at 80% 35%,rgba(0,120,255,.35),transparent 34%),linear-gradient(135deg,#061b3d,#0879d9 55%,#063b89)}
.telegram-popup-art:before,.telegram-popup-art:after{content:"";position:absolute;border:1px dashed rgba(255,255,255,.38);border-radius:50%;width:190px;height:190px;right:-55px;top:18px;transform:rotate(-25deg)}
.telegram-popup-art:after{width:110px;height:110px;left:-45px;bottom:-55px}
.telegram-popup-badge{position:relative;z-index:2;width:172px;height:172px;flex:0 0 172px;border-radius:42px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#d9efff);color:#1599e5;font-size:96px;box-shadow:0 20px 35px rgba(0,0,0,.2);transform:rotate(-5deg)}
.telegram-logo-svg{display:block;width:64%;height:64%;color:currentColor;flex:0 0 auto}
.telegram-popup-btn .telegram-logo-svg{width:24px;height:24px;color:#fff}
.telegram-popup-badge .telegram-logo-svg{width:68%;height:68%}
.telegram-popup-title-art{position:relative;z-index:2;color:#fff;font-size:31px;line-height:1.05;font-weight:900;text-shadow:0 4px 12px rgba(0,0,0,.3)}
.telegram-popup-title-art strong{display:block;font-size:48px;letter-spacing:-1px}
.telegram-popup-title-art span{display:block;color:#77e6ff;font-size:36px;margin-top:2px}
.telegram-popup-arrow{position:absolute;z-index:2;right:30px;bottom:22px;background:#26b7f3;color:#fff;border-radius:999px;padding:9px 18px;font-weight:900;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.telegram-popup-body{padding:28px 34px 34px;background:#111;text-align:center;color:#fff}
.telegram-popup-body h2{margin:0 0 20px;font-size:29px;line-height:1.2}
.telegram-popup-body h2 span{color:#28b4f0}
.telegram-popup-body p{margin:0 0 26px;font-size:25px;line-height:1.35;font-weight:800}
.telegram-popup-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:18px 20px;border-radius:16px;background:linear-gradient(135deg,#28b7f3,#1c9fe2);color:#fff;font-size:20px;font-weight:900;box-shadow:0 10px 30px rgba(34,174,239,.28)}
.telegram-popup-btn:hover{filter:brightness(1.05)}
@keyframes telegramPopupIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:600px){
  .telegram-popup{padding:12px}
  .telegram-popup-card{border-radius:24px;max-height:calc(100vh - 24px)}
  .telegram-popup-close{right:12px;top:12px;width:44px;height:44px;font-size:31px}
  .telegram-popup-art{min-height:230px;padding:28px 22px 24px;gap:14px}
  .telegram-popup-badge{width:112px;height:112px;flex-basis:112px;border-radius:28px;font-size:62px}
  .telegram-popup-btn .telegram-logo-svg{width:20px;height:20px}
  .telegram-popup-title-art{font-size:22px}
  .telegram-popup-title-art strong{font-size:35px}
  .telegram-popup-title-art span{font-size:27px}
  .telegram-popup-arrow{right:20px;bottom:16px;font-size:12px;padding:8px 13px}
  .telegram-popup-body{padding:24px 18px 20px}
  .telegram-popup-body h2{font-size:23px;margin-bottom:14px}
  .telegram-popup-body p{font-size:20px;margin-bottom:20px}
  .telegram-popup-btn{font-size:17px;padding:15px 12px;border-radius:14px}
}

/* Premium motion + polished UI */
:root{--ease-premium:cubic-bezier(.22,1,.36,1)}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.topbar{transition:box-shadow .35s var(--ease-premium),background .35s var(--ease-premium)}
.brand,nav a,.btn,.menu-btn,.channel-slide,.channel-arrow,.switch-channel,.channel-btn,.subject,.book-card,.telegram-popup-card,.telegram-popup-btn,.telegram-popup-close{transition:transform .35s var(--ease-premium),box-shadow .35s var(--ease-premium),background-color .35s ease,border-color .35s ease,opacity .35s ease,filter .35s ease}
.brand:hover{transform:translateY(-1px)}
.btn:hover,.channel-btn:hover,.switch-channel:hover{transform:translateY(-2px)}
.channel-slide{position:relative;overflow:hidden;box-shadow:0 14px 40px rgba(10,25,55,.08),inset 0 1px 0 rgba(255,255,255,.9)}
.channel-slide:after{content:"";position:absolute;inset:-80% auto auto -20%;width:35%;height:240%;transform:rotate(20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);pointer-events:none;opacity:0}
.channel-slide.active:after{animation:premiumShine 1.2s var(--ease-premium) forwards}
.channel-icon{box-shadow:0 10px 24px rgba(10,25,55,.14);transform:translateZ(0)}
.channel-slide:hover .channel-icon{transform:scale(1.04) rotate(-2deg)}
.channel-arrow:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 8px 20px rgba(10,25,55,.10)}
.switch-channel{box-shadow:0 8px 22px rgba(255,23,36,.18)}
.switch-channel:hover{box-shadow:0 12px 28px rgba(255,23,36,.25)}
/* Compact premium Telegram popup */
.telegram-popup{padding:14px}
.telegram-popup-backdrop{background:rgba(3,10,24,.72);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);animation:fadeIn .35s ease}
.telegram-popup-card{width:min(620px,100%);border:1px solid rgba(66,190,255,.45);border-radius:28px;background:#0d1118;box-shadow:0 35px 100px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04);animation:popupPremiumIn .55s var(--ease-premium)}
.telegram-popup-card:before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(135deg,rgba(255,255,255,.10),transparent 30%,transparent 70%,rgba(30,170,255,.08));z-index:3}
.telegram-popup-close{width:44px;height:44px;right:14px;top:14px;background:rgba(18,29,43,.72);border-color:rgba(255,255,255,.22);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.telegram-popup-close:hover{transform:rotate(90deg) scale(1.05);background:rgba(35,48,65,.92)}
.telegram-popup-art{min-height:260px;background:radial-gradient(circle at 18% 65%,rgba(0,165,255,.42),transparent 34%),radial-gradient(circle at 82% 25%,rgba(82,122,255,.30),transparent 32%),linear-gradient(135deg,#06172f,#087bd8 55%,#063c89);animation:artPulse 5s ease-in-out infinite alternate}
.telegram-popup-badge{box-shadow:0 20px 45px rgba(0,0,0,.24),0 0 30px rgba(42,184,255,.16)}
.telegram-popup-btn{position:relative;overflow:hidden;box-shadow:0 12px 32px rgba(34,174,239,.32)}
.telegram-popup-btn:after{content:"";position:absolute;top:-80%;left:-30%;width:25%;height:260%;transform:rotate(20deg);background:rgba(255,255,255,.25);animation:buttonShine 3.8s ease-in-out infinite}
@keyframes popupPremiumIn{from{opacity:0;transform:translateY(28px) scale(.94)}60%{opacity:1;transform:translateY(-3px) scale(1.01)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes premiumShine{from{left:-30%;opacity:0}20%{opacity:1}to{left:120%;opacity:0}}
@keyframes buttonShine{0%,55%{left:-30%;opacity:0}65%{opacity:1}100%{left:125%;opacity:0}}
@keyframes artPulse{from{filter:saturate(1)}to{filter:saturate(1.08) brightness(1.03)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}


/* ===== UVstudyX reference-matched single channel carousel ===== */
.community-section{
  padding:64px clamp(20px,7vw,100px) 76px;
  background-color:#f7f9fd;
  background-image:linear-gradient(rgba(22,135,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(22,135,255,.045) 1px,transparent 1px);
  background-size:64px 64px;
}
.community-heading{max-width:1200px;margin:0 auto 36px;padding:0 10px}
.community-heading .eyebrow{font-family:Georgia,"Times New Roman",serif;font-size:clamp(17px,2vw,26px);letter-spacing:3px;margin:0 0 16px;color:#1687ff}
.community-heading h2{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:clamp(36px,5.2vw,68px);line-height:1.08;letter-spacing:-1.4px;margin:0 0 20px;color:#101827}
.community-heading>p:last-child{font-family:Georgia,"Times New Roman",serif;font-size:clamp(18px,2.5vw,28px);line-height:1.55;color:#66758f;max-width:900px;margin:0}
.community-card{position:relative;max-width:1200px;margin:auto;padding:42px 48px 34px 58px;background:rgba(255,255,255,.97);border:2px solid #e5edf8;border-radius:34px;box-shadow:0 18px 55px rgba(26,62,110,.08);overflow:hidden}
.community-accent{position:absolute;left:0;top:0;bottom:0;width:12px;border-radius:0 16px 16px 0;background:#078dcc}
.channel-slider{margin:0;min-height:245px;display:flex;align-items:center}
.channel-slide{width:100%;min-height:245px;display:flex;align-items:flex-start;gap:28px;padding:12px 8px 22px 0;background:transparent;border:0;border-radius:0;box-shadow:none;animation:channelIn .24s ease}
.channel-slide[hidden]{display:none}
.channel-icon{width:144px;height:144px;flex:0 0 144px;border-radius:34px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:42px;margin-top:4px;box-shadow:0 14px 28px rgba(10,25,55,.12)}
.channel-icon span{display:block;line-height:1}
.telegram-icon{background:#078dcc}.telegram-icon span{font-size:65px;transform:rotate(-25deg)}
.whatsapp-icon{background:#20c76a}.youtube-icon{background:#ff1738}
.channel-content{flex:1;min-width:0}
.channel-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px}
.channel-copy h3,.channel-title-row h3{font-family:Inter,system-ui,sans-serif;font-weight:850;letter-spacing:-1.2px;margin:0;color:#1b263b;font-size:clamp(25px,3.2vw,42px);line-height:1.18}
.channel-handle{flex:0 0 auto;background:#f0f4f9;color:#64748b;padding:8px 16px;border-radius:12px;font-size:clamp(12px,1.4vw,18px);font-weight:800;letter-spacing:1.3px;white-space:nowrap}
.channel-badge{display:inline-flex;align-items:center;background:#d9effa;color:#fff;border-radius:999px;padding:7px 18px;font-size:15px;font-weight:900;letter-spacing:2px;margin-bottom:8px}
.whatsapp-slide .channel-badge{background:#d8f8e6;color:#159b52}
.youtube-slide .channel-badge{background:#ffe0e5;color:#e51d38}
.channel-content>p{font-family:Inter,system-ui,sans-serif;color:#64748b;font-size:clamp(18px,2.4vw,29px);line-height:1.5;margin:0;max-width:800px}
.channel-footer{border-top:2px solid #edf2f8;padding-top:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.slider-arrows{display:flex;gap:28px}
.channel-arrow{width:54px;height:54px;border:0;background:transparent;border-radius:50%;font-size:43px;line-height:1;color:#91a2ba;cursor:pointer}
.channel-arrow:hover{background:#f2f7fc;color:#253e60}
.channel-btn{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-width:330px;padding:20px 32px;border-radius:999px;color:#fff;font-weight:900;font-size:clamp(20px,2.4vw,30px);box-shadow:0 12px 22px rgba(10,25,55,.12);transition:filter .2s,transform .2s}
.channel-btn span{font-size:1.35em;line-height:.7}
.telegram-btn{background:#078dcc}.whatsapp-btn{background:#20c76a}.youtube-btn{background:#ff1738}
.channel-btn:hover{filter:brightness(.96);transform:translateY(-2px)}
.community-card:has(.whatsapp-slide:not([hidden])) .community-accent{background:#20c76a}
.community-card:has(.youtube-slide:not([hidden])) .community-accent{background:#ff1738}
@media(max-width:760px){
 .community-section{padding:38px 16px 50px}
 .community-heading{padding:0 5px;margin-bottom:22px}
 .community-heading .eyebrow{font-size:15px;letter-spacing:1.8px;margin-bottom:10px}
 .community-heading h2{font-size:clamp(34px,8vw,46px);letter-spacing:-.8px;margin-bottom:12px}
 .community-heading>p:last-child{font-size:18px;line-height:1.5}
 .community-card{padding:25px 18px 20px 25px;border-radius:25px}
 .community-accent{width:7px}
 .channel-slider,.channel-slide{min-height:230px}
 .channel-slide{gap:16px;padding:5px 0 22px;align-items:flex-start}
 .channel-icon{width:76px;height:76px;flex-basis:76px;border-radius:20px;font-size:25px;margin-top:5px}
 .telegram-icon span{font-size:39px}
 .channel-title-row{align-items:flex-start;flex-direction:column-reverse;gap:9px;margin-bottom:12px}
 .channel-title-row h3{font-size:clamp(22px,5.4vw,29px);letter-spacing:-.5px}
 .channel-handle{font-size:11px;padding:5px 9px;border-radius:8px;letter-spacing:.7px}
 .channel-badge{font-size:11px;letter-spacing:1.3px;padding:5px 12px;margin-bottom:8px}
 .channel-content>p{font-size:15px;line-height:1.55}
 .channel-footer{padding-top:17px;gap:10px}
 .slider-arrows{gap:8px}
 .channel-arrow{width:42px;height:42px;font-size:34px;border:1px solid #e1e8f1}
 .channel-btn{min-width:0;max-width:70%;padding:14px 17px;gap:8px;font-size:15px;white-space:nowrap}
}
@media(max-width:390px){
 .community-card{padding-right:13px;padding-left:20px}
 .channel-slide{gap:12px}
 .channel-icon{width:62px;height:62px;flex-basis:62px;border-radius:16px}
 .telegram-icon span{font-size:32px}
 .channel-title-row h3{font-size:21px}
 .channel-content>p{font-size:14px}
 .channel-btn{font-size:13px;padding:13px 12px}
}


/* Final compact reference sizing: one promotional card, not an oversized panel */
.community-section{padding:34px clamp(18px,5vw,72px) 42px;background-size:64px 64px}
.community-heading{max-width:1050px;margin-bottom:24px;padding:0 6px}
.community-heading .eyebrow{font-size:clamp(16px,1.8vw,22px);letter-spacing:2.2px;margin-bottom:10px}
.community-heading h2{font-size:clamp(34px,4.2vw,54px);line-height:1.08;letter-spacing:-1px;margin-bottom:12px}
.community-heading>p:last-child{font-size:clamp(17px,1.8vw,23px);line-height:1.45;max-width:800px}
.community-card{max-width:1050px;padding:28px 38px 26px 48px;border-width:2px;border-radius:30px}
.community-accent{width:8px}
.channel-slider{min-height:220px}
.channel-slide{min-height:220px;gap:28px;padding:8px 4px 18px 0;align-items:flex-start}
.channel-icon{width:124px;height:124px;flex-basis:124px;border-radius:30px;margin-top:6px;font-size:38px}
.telegram-icon span{font-size:0;transform:none}
.telegram-icon svg{width:58px;height:58px;color:#a8dcf4}
.channel-title-row{gap:14px;margin-bottom:14px;align-items:center}
.channel-copy h3,.channel-title-row h3{font-family:Inter,system-ui,sans-serif;font-size:clamp(25px,2.7vw,36px);line-height:1.16;letter-spacing:-.8px;font-weight:850}
.channel-handle{padding:8px 14px;border-radius:10px;font-size:clamp(12px,1.2vw,16px);letter-spacing:1px}
.channel-badge{padding:6px 16px;font-size:13px;letter-spacing:1.8px;margin-bottom:8px}
.channel-content>p{font-size:clamp(17px,1.8vw,23px);line-height:1.42;max-width:700px}
.channel-footer{padding-top:20px;gap:18px}
.slider-arrows{gap:18px}
.channel-arrow{width:48px;height:48px;border:0;font-size:40px}
.channel-btn{min-width:280px;padding:17px 28px;gap:14px;font-family:Inter,system-ui,sans-serif;font-size:clamp(20px,2vw,26px);font-weight:850}
@media(max-width:760px){
 .community-section{padding:26px 16px 34px}
 .community-heading{margin-bottom:18px;padding:0 4px}
 .community-heading .eyebrow{font-size:14px;letter-spacing:1.5px;margin-bottom:8px}
 .community-heading h2{font-size:clamp(29px,7.2vw,38px);line-height:1.12;margin-bottom:9px}
 .community-heading>p:last-child{font-size:16px;line-height:1.45}
 .community-card{padding:22px 18px 18px 24px;border-radius:24px}
 .community-accent{width:6px}
 .channel-slider,.channel-slide{min-height:0}
 .channel-slide{gap:15px;padding:5px 0 22px;align-items:flex-start}
 .channel-icon{width:76px;height:76px;flex-basis:76px;border-radius:19px;margin-top:4px}
 .telegram-icon svg{width:39px;height:39px}
 .channel-title-row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:8px;margin-bottom:10px}
 .channel-title-row h3{font-size:clamp(20px,5vw,27px);letter-spacing:-.45px;flex:1 1 150px}
 .channel-handle{font-size:10px;padding:5px 8px;letter-spacing:.4px}
 .channel-badge{font-size:10px;letter-spacing:1.1px;padding:5px 10px;margin-bottom:7px}
 .channel-content>p{font-size:14px;line-height:1.45}
 .channel-footer{padding-top:15px;gap:8px}
 .slider-arrows{gap:7px}
 .channel-arrow{width:40px;height:40px;font-size:32px;border:1px solid #e1e8f1}
 .channel-btn{min-width:0;max-width:none;padding:13px 16px;gap:7px;font-size:14px;white-space:nowrap;border-radius:999px}
}
@media(max-width:390px){
 .community-card{padding-right:12px;padding-left:19px}
 .channel-slide{gap:11px}
 .channel-icon{width:62px;height:62px;flex-basis:62px;border-radius:15px}
 .telegram-icon svg{width:33px;height:33px}
 .channel-title-row h3{font-size:19px}
 .channel-content>p{font-size:13px}
 .channel-btn{font-size:12px;padding:12px 11px}
}


/* Compact reference-matched community carousel: final overrides */
.community-card{max-width:1050px;padding:28px 34px 24px 42px;border-radius:30px}
.channel-slider{min-height:0;display:block}
.channel-slide{min-height:0;gap:24px;padding:4px 2px 24px 0;align-items:flex-start}
.channel-icon{width:112px;height:112px;flex-basis:112px;border-radius:28px;margin-top:4px}
.channel-title-row{gap:14px;margin-bottom:12px;align-items:center}
.channel-title-row h3{font-size:clamp(24px,2.6vw,34px);line-height:1.15}
.channel-content>p{font-size:clamp(17px,1.65vw,21px);line-height:1.4;max-width:680px}
.channel-footer{padding-top:18px;gap:14px}
.channel-arrow{width:48px;height:48px;font-size:38px;border:1px solid #e1e8f1}
.channel-btn{min-width:240px;padding:15px 24px;font-size:clamp(18px,1.8vw,23px);gap:12px}
.whatsapp-icon svg{width:54%;height:54%;display:block;color:#fff}
.youtube-icon span{font-size:0;position:relative;width:44px;height:31px;border:3px solid #fff;border-radius:9px;display:grid;place-items:center}
.youtube-icon span:after{content:"";width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:11px solid #fff;margin-left:3px}
@media(max-width:760px){
 .community-section{padding:26px 18px 34px;background-size:64px 64px}
 .community-heading{margin-bottom:20px;padding:0 4px}
 .community-heading .eyebrow{font-size:15px;letter-spacing:1.7px;margin-bottom:8px}
 .community-heading h2{font-size:clamp(29px,5.8vw,38px);line-height:1.1;letter-spacing:-.7px;margin-bottom:9px}
 .community-heading>p:last-child{font-size:16px;line-height:1.4}
 .community-card{padding:20px 18px 17px 24px;border-radius:25px}
 .community-accent{width:6px}
 .channel-slide{gap:14px;padding:3px 0 18px;align-items:flex-start}
 .channel-icon{width:72px;height:72px;flex-basis:72px;border-radius:18px;margin-top:3px;font-size:23px}
 .telegram-icon svg{width:36px;height:36px}
 .channel-content{min-width:0}
 .channel-title-row{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:7px;margin-bottom:9px}
 .channel-title-row h3{font-size:clamp(19px,3.8vw,25px);line-height:1.12;letter-spacing:-.45px;flex:1 1 180px}
 .channel-handle{font-size:10px;padding:5px 8px;letter-spacing:.45px;border-radius:8px}
 .channel-badge{font-size:10px;letter-spacing:1.1px;padding:5px 10px;margin-bottom:7px}
 .channel-content>p{font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .channel-footer{padding-top:14px;gap:10px}
 .channel-arrow{width:40px;height:40px;font-size:31px;border:1px solid #e1e8f1}
 .channel-btn{min-width:0;max-width:62%;padding:12px 15px;gap:7px;font-size:14px;white-space:nowrap}
 .whatsapp-icon svg{width:53%;height:53%}
}
@media(max-width:390px){
 .community-card{padding:17px 12px 14px 20px}
 .channel-slide{gap:10px}
 .channel-icon{width:60px;height:60px;flex-basis:60px;border-radius:15px}
 .channel-title-row h3{font-size:18px;flex-basis:145px}
 .channel-content>p{font-size:13px}
 .channel-btn{font-size:12px;padding:11px 10px;max-width:65%}
}


/* ===== PREMIUM DOWNLOAD TUTORIAL + BOOK CARD REFRESH ===== */
.download-tutorial{position:relative;width:100%;max-width:980px;margin:28px auto 0;padding:20px 22px;display:flex;align-items:center;gap:18px;text-align:left;border:1px solid rgba(40,170,255,.5);border-radius:22px;background:radial-gradient(circle at 12% 50%,rgba(31,174,255,.28),transparent 30%),linear-gradient(112deg,#061c3b 0%,#064a82 52%,#087fe0 100%);box-shadow:0 18px 40px rgba(7,71,133,.22),inset 0 1px 0 rgba(255,255,255,.18);color:#fff;cursor:pointer;font:inherit;overflow:hidden;isolation:isolate;transition:transform .22s ease,box-shadow .22s ease}
.download-tutorial:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.22;background-image:linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px);background-size:26px 26px;mask-image:linear-gradient(90deg,#000,transparent 90%)}
.download-tutorial:hover{transform:translateY(-3px);box-shadow:0 24px 48px rgba(7,71,133,.28),inset 0 1px 0 rgba(255,255,255,.2)}
.download-tutorial-icon{width:72px;height:72px;min-width:72px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#2aaaff,#0874ff);color:#fff;border:1px solid rgba(255,255,255,.45);box-shadow:0 10px 26px rgba(0,139,255,.35),inset 0 1px 0 rgba(255,255,255,.45)}
.download-tutorial-icon svg{width:34px;height:34px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.15))}
.download-tutorial-text{flex:1;min-width:0;display:block}.download-tutorial-text .tutorial-kicker,.tutorial-kicker{display:block;font-size:10px;line-height:1.3;font-weight:900;letter-spacing:1.8px;color:#8ce3ff;margin-bottom:5px}.download-tutorial-text strong{display:block;font-size:clamp(17px,2vw,22px);line-height:1.25;color:#fff;font-weight:850}.download-tutorial-text>span:last-child{display:block;color:#d6eaff;font-size:13px;line-height:1.55;margin-top:5px}
.tutorial-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;padding:14px 18px;border-radius:14px;background:linear-gradient(135deg,#29d5ff,#0b9cff);color:#fff;font-size:13px;font-weight:900;box-shadow:0 10px 24px rgba(0,174,255,.25);border:1px solid rgba(255,255,255,.35)}.tutorial-btn svg{width:18px;height:18px}.tutorial-btn b{font-size:24px;line-height:15px;margin-left:2px}.download-tutorial:hover .tutorial-btn{filter:brightness(1.08)}
/* Required tutorial gate */
body.tutorial-open{overflow:hidden}.tutorial-modal{position:fixed;inset:0;z-index:11000;display:none;align-items:center;justify-content:center;padding:18px}.tutorial-modal.show{display:flex}.tutorial-modal-backdrop{position:absolute;inset:0;background:rgba(3,13,31,.78);backdrop-filter:blur(9px)}.tutorial-modal-card{position:relative;z-index:1;width:min(760px,100%);max-height:94vh;overflow:auto;padding:24px;border:1px solid rgba(130,194,255,.42);border-radius:25px;background:linear-gradient(145deg,#fff,#f4f9ff);box-shadow:0 30px 90px rgba(0,0,0,.35)}.tutorial-modal-close{position:absolute;right:14px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:#e9f1fb;color:#23415f;font-size:27px;line-height:1;cursor:pointer}.tutorial-modal-heading{display:flex;align-items:center;gap:14px;padding-right:40px;margin-bottom:17px}.tutorial-modal-heading h2{font-size:clamp(21px,4vw,28px);line-height:1.2;margin:0;color:#10213b}.tutorial-modal-heading p{font-size:13px;color:#65758b;margin:5px 0 0}.tutorial-modal-heading .tutorial-kicker{color:#1387ee}.tutorial-modal-play{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(135deg,#1687ff,#05b8ed);color:#fff;box-shadow:0 8px 20px rgba(22,135,255,.25)}.tutorial-modal-play svg{width:27px;height:27px}.tutorial-video-wrap{aspect-ratio:16/9;background:#06152a;border-radius:17px;overflow:hidden;box-shadow:0 10px 25px rgba(7,21,45,.16)}.tutorial-video-wrap iframe{width:100%;height:100%;border:0;display:block}.tutorial-modal-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:17px}.tutorial-note{display:flex;align-items:center;gap:8px;color:#5b6e84;font-size:12px;font-weight:750}.tutorial-note svg{width:20px;height:20px;color:#16a36a;flex:0 0 20px}.tutorial-continue{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:13px;padding:13px 17px;background:linear-gradient(135deg,#087cff,#08a8ef);color:#fff;font:inherit;font-size:13px;font-weight:900;cursor:pointer;box-shadow:0 9px 20px rgba(22,135,255,.24)}.tutorial-continue span{font-size:20px;line-height:12px}
/* Rich book cards */
.book-card{position:relative;border:1px solid #dce8f7;border-radius:22px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 10px 30px rgba(18,57,103,.075);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}.book-card:hover{transform:translateY(-6px);border-color:#a8d4ff;box-shadow:0 22px 45px rgba(18,92,160,.14)}.cover-wrap{overflow:hidden;background:linear-gradient(135deg,#eaf4ff,#f6f9fd)}.book-cover{transition:transform .35s ease;object-fit:contain}.book-card:hover .book-cover{transform:scale(1.035)}.book-cover-shine{position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.24),transparent 34%,transparent 70%,rgba(20,120,255,.04))}.book-info{display:flex;flex-direction:column;flex:1;padding:17px}.book-info h3{font-size:17px;line-height:1.42;color:#111f35;margin:2px 0 15px}.book-meta span{background:#edf5ff;color:#37628c;border:1px solid #e0edfb;border-radius:9px}.card-actions{margin-top:auto;grid-template-columns:minmax(0,1fr) 88px;gap:9px}.book-download{display:flex;gap:8px;align-items:center;justify-content:center;padding:12px 12px;border-radius:13px;background:linear-gradient(135deg,#167aff,#04aaf0);color:#fff;font-size:13px;font-weight:900;box-shadow:0 8px 17px rgba(22,135,255,.19);transition:transform .18s ease,box-shadow .18s ease}.book-download svg,.share-btn svg{width:18px;height:18px;flex:0 0 18px}.book-download:hover{filter:none;transform:translateY(-1px);box-shadow:0 12px 23px rgba(22,135,255,.27)}.share-btn{width:88px;gap:6px;padding:10px 9px;border:1px solid #d9eaff;border-radius:13px;background:#edf6ff;color:#1672d2;font-size:12px;font-weight:900;transition:background .18s ease,transform .18s ease}.share-btn:hover{background:#dceeff;transform:translateY(-1px)}
@media(max-width:680px){.download-tutorial{padding:15px;gap:12px;border-radius:18px;flex-wrap:wrap}.download-tutorial-icon{width:54px;height:54px;min-width:54px;border-radius:16px}.download-tutorial-icon svg{width:26px;height:26px}.download-tutorial-text{flex:1}.download-tutorial-text .tutorial-kicker{font-size:9px}.download-tutorial-text strong{font-size:16px}.download-tutorial-text>span:last-child{font-size:12px}.tutorial-btn{width:100%;margin:0;padding:12px 14px}.tutorial-modal-card{padding:17px;border-radius:20px}.tutorial-modal-heading{gap:10px}.tutorial-modal-play{width:45px;height:45px;flex-basis:45px;border-radius:14px}.tutorial-modal-actions{align-items:stretch;flex-direction:column}.tutorial-continue{width:100%}.tutorial-note{justify-content:center}.card-actions{grid-template-columns:minmax(0,1fr) 68px;gap:6px}.book-download{font-size:11px;padding:10px 5px;gap:5px}.book-download svg,.share-btn svg{width:16px;height:16px;flex-basis:16px}.share-btn{width:68px;font-size:10px;padding:8px 4px;gap:4px}.book-info h3{font-size:13.5px}.book-info{padding:10px}}
@media(max-width:360px){.card-actions{grid-template-columns:minmax(0,1fr) 58px}.share-btn{width:58px;font-size:9px}.book-download{font-size:10px}.download-tutorial-text>span:last-child{font-size:11px}}


/* Admin book uploader improvements */
.admin-list-heading{font-size:16px;font-weight:800;margin:22px 0 8px;padding-top:16px;border-top:1px solid var(--line);color:var(--ink,#172033)}
.image-upload-label{display:block;font-size:13px;font-weight:800;color:#344054;margin:12px 0 4px}
.image-upload-row{display:flex;align-items:stretch;gap:8px;margin:0 0 3px}
.book-form .image-upload-row input#bookImage{flex:1;min-width:0;margin:7px 0}
.image-pick-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;background:#eef6ff;border-color:#cfe3ff;color:#1268c4;font-weight:800;padding:10px 12px}
.image-pick-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.image-pick-btn:disabled{opacity:.65;cursor:wait}
.image-upload-status{min-height:18px;font-size:12px;color:#16734a;margin:2px 0 8px}
.book-image-preview{margin:8px 0 12px;padding:8px;border:1px dashed #cfd9e6;border-radius:12px;background:#f8fbff;width:max-content;max-width:100%}
.book-image-preview img{display:block;max-width:110px;max-height:140px;object-fit:contain;border-radius:7px}
@media(max-width:520px){.image-upload-row{flex-direction:column}.image-pick-btn{width:100%;min-height:44px}.admin-list-heading{margin-top:18px}}

/* Multi-select class/exam picker in Add Book form */
.class-multi-select{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin:7px 0 12px;padding:10px;border:1px solid #d8e0ea;border-radius:12px;background:#f8fbff}
.class-multi-select label{display:flex;align-items:center;gap:7px;padding:10px;border:1px solid #e1e8f0;border-radius:9px;background:#fff;font-size:14px;font-weight:700;cursor:pointer}
.class-multi-select input{width:17px;height:17px;margin:0;accent-color:var(--blue);flex:0 0 auto}

/* Visitor multi-select filters */
.visitor-filter-panel{max-width:1200px;margin:18px auto 20px;padding:18px;background:rgba(255,255,255,.94);border:1px solid #dbe5f0;border-radius:20px;box-shadow:0 8px 24px rgba(7,21,45,.07)}.visitor-filter-panel h3{margin:0 0 5px;color:#07152d;font-size:20px}.visitor-filter-help{margin:0 0 15px;color:#667085;font-size:13px}.visitor-filter-group{margin:12px 0}.visitor-filter-group>strong{display:block;margin-bottom:8px;color:#344054}.visitor-filter-options{display:flex;flex-wrap:wrap;gap:8px}.visitor-filter-options label{display:flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid #dce5ef;border-radius:11px;background:#fff;color:#344054;font-size:13px;font-weight:700;cursor:pointer}.visitor-filter-options input{width:17px;height:17px;margin:0;accent-color:#167dff}.apply-visitor-filters,.reset-filter-large{display:block;width:100%;min-height:48px;margin-top:12px;border-radius:13px;font-weight:900;font-size:15px;cursor:pointer}.apply-visitor-filters{border:0;background:linear-gradient(135deg,#1687ff,#0964d5);color:#fff;box-shadow:0 8px 18px rgba(22,135,255,.2)}.reset-filter-large{min-height:54px;background:#fff;border:2px solid #c8d7e8;color:#145ca8;font-size:16px}.apply-visitor-filters:hover,.reset-filter-large:hover{filter:brightness(.97);transform:translateY(-1px)}@media(max-width:680px){.visitor-filter-panel{margin:14px 0;padding:14px;border-radius:16px}.visitor-filter-options{gap:7px}.visitor-filter-options label{padding:8px 10px;font-size:12px}.reset-filter-large{font-size:15px}}

/* Compact visitor filter trigger; show the full selector only on demand */
.library-filter-actions{display:flex;justify-content:flex-end;max-width:1200px;margin:8px auto 12px}
.open-visitor-filters{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:0;border-radius:14px;background:linear-gradient(135deg,#1687ff,#0964d5);color:#fff;font-size:16px;font-weight:900;box-shadow:0 7px 18px rgba(22,135,255,.22);cursor:pointer}
.visitor-filter-backdrop[hidden]{display:none!important}.visitor-filter-backdrop{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(7,18,36,.58);backdrop-filter:blur(4px);overflow-y:auto}
.visitor-filter-panel{width:min(100%,620px);max-height:88dvh;overflow-y:auto;margin:auto;padding:20px;background:#fff;border:1px solid #dbe5f0;border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.visitor-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.visitor-filter-heading h3{margin:0 0 5px}.visitor-filter-close{flex:0 0 40px;width:40px;height:40px;border:1px solid #dce5ef;border-radius:50%;background:#f8fafc;color:#344054;font-size:28px;line-height:1;cursor:pointer}
body.visitor-filter-open{overflow:hidden}
@media(max-width:680px){.library-filter-actions{margin:8px 0 12px}.open-visitor-filters{min-height:46px;padding:0 20px;font-size:15px}.visitor-filter-backdrop{padding:12px}.visitor-filter-panel{padding:16px;border-radius:18px;max-height:88dvh}.visitor-filter-panel h3{font-size:18px}}

/* Product-style book detail view */
.book-card{cursor:pointer}.view-details-hint{font-size:12px;color:#1672d2;font-weight:800;margin-top:auto;padding-top:4px}.book-detail-backdrop[hidden]{display:none!important}.book-detail-backdrop{position:fixed;inset:0;z-index:9998;background:rgba(5,15,31,.72);backdrop-filter:blur(7px);display:flex;align-items:flex-start;justify-content:center;padding:24px;overflow:auto}.book-detail-modal{position:relative;width:min(1100px,100%);margin:auto;background:#fff;border-radius:24px;box-shadow:0 30px 90px rgba(0,0,0,.3);overflow:hidden}.book-detail-close{position:absolute;z-index:3;right:14px;top:12px;width:42px;height:42px;border:1px solid #dce5ef;border-radius:50%;background:#fff;color:#18253a;font-size:30px;line-height:1;cursor:pointer}.book-product-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:32px;padding:34px}.book-product-image{display:flex;align-items:center;justify-content:center;min-height:340px;padding:20px;background:linear-gradient(145deg,#f0f6ff,#fbfdff);border:1px solid #e1eaf5;border-radius:20px}.book-product-image img{width:100%;max-height:460px;object-fit:contain;filter:drop-shadow(0 12px 15px rgba(14,39,73,.16))}.book-product-info{padding:14px 20px 14px 0;align-self:center}.product-subject{display:inline-block;padding:7px 11px;border-radius:9px;background:#eaf4ff;color:#1768b5;font-weight:800;font-size:13px}.book-product-info h2{font-size:clamp(24px,3vw,36px);line-height:1.25;color:#10213a;margin:17px 0 12px}.product-meta{color:#53647a;font-weight:700;line-height:1.6}.product-description{margin:22px 0;color:#5e6b7d;line-height:1.8}.product-availability{color:#14804a;font-weight:800;margin:18px 0}.product-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.product-get-book,.product-share{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:13px;font-weight:900;text-decoration:none;cursor:pointer}.product-get-book{background:linear-gradient(135deg,#1687ff,#0862d4);color:#fff;box-shadow:0 8px 18px #1687ff35}.product-share{border:1px solid #d7e6f8;background:#edf6ff;color:#1768b5;font-size:15px}.related-books{border-top:1px solid #e6edf5;padding:24px 30px 32px}.related-books h3{font-size:21px;color:#12213a;margin:0 0 16px}.related-book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.related-book{display:flex;flex-direction:column;gap:9px;text-align:left;border:1px solid #e0e9f4;border-radius:13px;padding:10px;background:#fff;color:#172b45;font-weight:800;cursor:pointer;min-width:0}.related-book img{width:100%;height:145px;object-fit:contain;background:#f4f8fc;border-radius:8px}.related-book span{font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-sticky-actions{display:none}body.book-detail-open{overflow:hidden}
@media(max-width:680px){.book-detail-backdrop{padding:0;align-items:stretch}.book-detail-modal{width:100%;min-height:100%;border-radius:0;overflow:visible}.book-detail-close{position:fixed;right:13px;top:12px;box-shadow:0 2px 12px #0002}.book-product-layout{grid-template-columns:minmax(0,1fr);gap:18px;padding:64px 18px 22px}.book-product-image{min-height:0;max-height:360px;padding:15px}.book-product-image img{height:310px;max-height:310px}.book-product-info{padding:0}.book-product-info h2{font-size:25px;margin:12px 0}.product-description{margin:14px 0}.product-actions{display:none}.related-books{padding:20px 16px 100px}.related-books h3{font-size:19px}.related-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.related-book img{height:150px}.product-sticky-actions{position:fixed;z-index:10000;bottom:0;left:0;right:0;display:grid;grid-template-columns:.9fr .75fr 1.15fr;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #dfe8f2;box-shadow:0 -8px 25px #102b4a12}.product-sticky-actions a,.product-sticky-actions button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 8px;border:1px solid #d6e5f6;border-radius:12px;background:#edf6ff;color:#1768b5;font-size:12px;font-weight:900;text-decoration:none;cursor:pointer}.product-sticky-actions .product-primary{background:linear-gradient(135deg,#1687ff,#0862d4);border:0;color:#fff;font-size:14px}.view-details-hint{font-size:11px}}
/* v15: Full-page book details, two icon actions, and class-prioritized recommendations */
.book-detail-backdrop{padding:0;align-items:stretch;justify-content:stretch;background:#fff;backdrop-filter:none;overflow-y:auto}
.book-detail-modal{position:relative;width:100%;min-height:100%;margin:0;border-radius:0;box-shadow:none;overflow:visible;background:#fff}
.book-detail-close{position:fixed;right:16px;top:14px;box-shadow:0 2px 12px #102b4a18}
.book-product-layout{max-width:1200px;margin:0 auto;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:34px;padding:56px 28px 32px}
.product-get-book svg,.product-share svg,.product-sticky-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.product-actions{display:flex}.product-get-book,.product-share{gap:9px}
.related-books{max-width:1200px;margin:0 auto;width:100%;padding:26px 28px 42px}
.related-book-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.product-sticky-actions{display:none}
@media(max-width:680px){.book-product-layout{grid-template-columns:minmax(0,1fr);gap:18px;padding:64px 18px 26px}.book-product-image{min-height:0;max-height:360px;padding:15px}.book-product-image img{height:310px;max-height:310px}.book-product-info{padding:0}.product-actions{display:flex;gap:10px;margin-top:20px}.product-get-book,.product-share{flex:1;min-height:48px;padding:0 12px;font-size:14px}.related-books{padding:22px 16px 110px}.related-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.related-book img{height:150px}.product-sticky-actions{position:fixed;z-index:10000;bottom:0;left:0;right:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid #dfe8f2;box-shadow:0 -8px 25px #102b4a12}.product-sticky-actions a,.product-sticky-actions button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 10px;border:1px solid #d6e5f6;border-radius:12px;background:#edf6ff;color:#1768b5;font-size:14px;font-weight:900;text-decoration:none;cursor:pointer}.product-sticky-actions button{font-family:inherit}.book-detail-close{top:12px;right:12px}}

/* Restore compact Download and Share actions on every book card */
.book-card-actions{display:grid;grid-template-columns:1.15fr .85fr;gap:9px;margin-top:14px;position:relative;z-index:2}
.book-card-actions a,.book-card-actions button{min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 8px;border-radius:11px;border:1px solid #d5e3f1;font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer;line-height:1.2}
.book-card-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.book-card-download{background:var(--blue,#1677ed);color:#fff!important;border-color:transparent!important}
.book-card-share{background:#edf6ff;color:#1765a7}
.book-card-actions a:hover,.book-card-actions button:hover{filter:brightness(.96)}
@media(max-width:380px){.book-card-actions{gap:6px}.book-card-actions a,.book-card-actions button{font-size:12px;padding:9px 5px;gap:4px}}

/* Admin book details field; content is shown only on the individual book page. */
#bookDetails{width:100%;min-height:140px;resize:vertical;padding:14px 16px;border:1px solid #d8e2ee;border-radius:14px;font:inherit;line-height:1.55;color:#172b45;background:#fff;box-sizing:border-box} .details-word-count{font-size:12px;color:#6b7a8d;text-align:right;margin-top:-7px;margin-bottom:12px}.details-word-count.recommended{color:#14804a;font-weight:800}

/* v18: compact book cards and highlighted product-page actions */
.book-info{padding:12px 13px 13px!important}
.book-info h3{margin:2px 0 8px!important;line-height:1.32!important;-webkit-line-clamp:2!important;min-height:0!important}
.book-meta{margin-bottom:6px!important}
.book-card-actions{margin-top:auto!important;padding-top:8px!important;gap:7px!important}
.book-card-actions a,.book-card-actions button{min-height:42px!important;padding:8px 6px!important}
.book-card-download{background:linear-gradient(135deg,#1687ff,#075fd1)!important;color:#fff!important;box-shadow:0 5px 13px rgba(22,119,237,.22)}
.book-card-share{background:#eaf4ff!important;color:#145fa9!important;border:1px solid #b8d8fa!important}
.product-sticky-actions a,.product-sticky-actions button{min-height:52px!important;font-size:14px!important;gap:8px!important;box-shadow:0 4px 12px rgba(16,80,145,.12)}
.product-sticky-actions a{background:linear-gradient(135deg,#1687ff,#075fd1)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 7px 18px rgba(22,119,237,.28)!important}
.product-sticky-actions button{background:#eaf4ff!important;color:#145fa9!important;border:1px solid #b8d8fa!important}
@media(max-width:680px){.book-info{padding:10px 10px 11px!important}.book-info h3{font-size:13px!important;line-height:1.3!important;-webkit-line-clamp:2!important}.book-card-actions a,.book-card-actions button{min-height:40px!important;font-size:11px!important}.product-sticky-actions{grid-template-columns:1fr 1fr!important;gap:9px!important}}

/* UVstudyX crown identity refresh — light neon blue/violet theme */
:root{--bg:#f7f9ff;--ink:#111a31;--muted:#64718a;--navy:#14234a;--blue:#087ff5;--card:#fff;--line:#e1e8f5;--shadow:0 18px 48px rgba(26,65,135,.11);--uv-cyan:#08c9f5;--uv-violet:#8a35ff}
body{background-color:#f7f9ff;background-image:radial-gradient(ellipse at 12% 5%,rgba(0,180,255,.07),transparent 35%),radial-gradient(ellipse at 88% 18%,rgba(142,53,255,.06),transparent 32%),linear-gradient(rgba(83,130,198,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(83,130,198,.045) 1px,transparent 1px);background-size:auto,auto,64px 64px,64px 64px}
.topbar{background:rgba(255,255,255,.96);border-bottom:1px solid #dce7f8;box-shadow:0 5px 22px rgba(25,72,145,.045)}
.brand img{object-fit:cover;border:2px solid #36baff;box-shadow:0 0 0 3px rgba(125,62,255,.12),0 5px 16px rgba(0,125,255,.16)}
.brand strong{background:linear-gradient(100deg,#087ff5,#792cff);-webkit-background-clip:text;background-clip:text;color:transparent}
nav a:hover{color:#7a35f5}.nav-join{background:linear-gradient(110deg,#087ff5,#7435f5)!important;box-shadow:0 7px 18px rgba(63,100,235,.2)}
.hero{min-height:510px;grid-template-columns:minmax(0,1fr);text-align:center;padding:76px clamp(22px,7vw,100px) 82px;background:radial-gradient(ellipse at 50% 0%,rgba(0,194,255,.12),transparent 48%),radial-gradient(ellipse at 80% 55%,rgba(139,53,255,.07),transparent 42%),linear-gradient(180deg,#fff,#f5f8ff)}
.hero-copy{width:min(900px,100%);margin:0 auto}.hero h1{margin-left:auto;margin-right:auto}.lead{margin-left:auto;margin-right:auto}.actions,.trust-row{justify-content:center}
.eyebrow{color:#087fe9}.hero h1 span{background:linear-gradient(100deg,#078cf5 5%,#11bde9 48%,#8439f4 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.btn,.channel-btn,.apply-visitor-filters,.add-book-btn,.open-visitor-filters{transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}.btn:hover,.channel-btn:hover{transform:translateY(-2px);filter:saturate(1.12)}
.primary,.product-get-book,.book-card-download,.product-sticky-actions a{background:linear-gradient(110deg,#087ff5 0%,#08bce9 48%,#7838f4 100%)!important;color:#fff!important;box-shadow:0 9px 22px rgba(38,119,237,.22)!important}
.secondary,.product-share,.book-card-share{border-color:#cbdcf7!important;background:linear-gradient(120deg,#fff,#f0f6ff)!important;color:#2655a2!important}
.periodic-table-btn{gap:9px;border:1px solid #b8d6ff!important;box-shadow:0 8px 20px rgba(57,111,220,.10)}
.trust-row div{border-color:#dce7f8;box-shadow:0 5px 15px rgba(31,76,145,.045)}
.community-section{background:linear-gradient(180deg,#f7f9ff,#f1f6ff)}
.community-card,.about-box,.card,.book-card{border-color:#e0e8f6}
.telegram-btn,.whatsapp-btn,.youtube-btn{background:linear-gradient(110deg,#087ff5,#7435f5)!important}
.dark-section{background:linear-gradient(135deg,#f4f8ff,#edf5ff)!important;color:#14213b!important}
.dark-section .eyebrow{color:#087fe9}.dark-section .section-head h2{color:#14213b}.dark-section .section-head p:not(.eyebrow){color:#64718a}
.dark-section .subject{background:#fff;border:1px solid #dce7f8;color:#172541;box-shadow:0 8px 24px rgba(30,75,145,.07)}
.dark-section .subject small{color:#687892}.dark-section .subject:hover{border-color:#79baff;box-shadow:0 12px 28px rgba(34,116,225,.13)}
.cta{background:linear-gradient(110deg,#eaf5ff,#f5f0ff 100%);border-color:#d7e5ff;box-shadow:0 12px 35px rgba(48,100,180,.07)}
.about-box{background:rgba(255,255,255,.94);box-shadow:0 14px 38px rgba(35,78,145,.08)}.about-box img{border:2px solid #42bfff;box-shadow:0 0 0 5px rgba(126,63,255,.08)}
footer{background:#fff;color:#66738b;border-top:1px solid #e1e9f6}footer strong{background:linear-gradient(100deg,#087ff5,#8439f4);-webkit-background-clip:text;background-clip:text;color:transparent}
/* Keep the Telegram welcome dialog consistent with the site's light appearance. */
.telegram-popup-backdrop{background:rgba(24,43,82,.42)!important}.telegram-popup-card{background:#fff!important;border:1px solid #cfe4ff!important;box-shadow:0 30px 90px rgba(31,72,145,.22)!important}.telegram-popup-body{background:#fff!important;color:#172541!important}.telegram-popup-body p{color:#4d5e79}.telegram-popup-body h2{color:#172541}.telegram-popup-art{background:radial-gradient(circle at 18% 65%,rgba(0,165,255,.22),transparent 34%),radial-gradient(circle at 82% 25%,rgba(130,67,255,.18),transparent 32%),linear-gradient(135deg,#eaf7ff,#e9eaff 55%,#f4edff)!important}.telegram-popup-title-art{color:#172541!important;text-shadow:none!important}.telegram-popup-title-art span{color:#087fe9!important}.telegram-popup-close{background:#fff!important;color:#243653!important;border-color:#d5e4f7!important}
@media(max-width:900px){.hero{grid-template-columns:1fr;min-height:0;padding-top:58px}.hero-copy{width:100%}}
