/* E-book reader */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.reader-wrap{max-width:980px;margin-inline:auto}
.reader-back{display:inline-block;margin-bottom:1rem;color:var(--lime);font-weight:600;text-decoration:none}
.reader-back:hover{text-decoration:underline}
.reader{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.reader-bar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:center;justify-content:space-between;padding:.85rem 1rem;margin-bottom:1rem;border-radius:14px;background:rgba(7,11,13,.92);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.08)}
.reader-bar h1{font-family:'Plus Jakarta Sans',sans-serif;font-weight:700;font-size:clamp(1.05rem,2.4vw,1.35rem);margin:0;color:#fff}
.reader-tools{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.reader-toc{background:#0f1619;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:.45rem .6rem;font:inherit;font-size:.9rem;max-width:62vw}
.reader-count{font-size:.9rem;color:rgba(255,255,255,.7);white-space:nowrap}
.reader-count b{color:#fff}
.reader-pages{display:flex;flex-direction:column;gap:14px}
.rpage{margin:0;background:#fff;border-radius:6px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.35);scroll-margin-top:84px}
.rpage img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none}
.reader-note{margin-top:1.25rem;font-size:.85rem;color:rgba(255,255,255,.6);text-align:center}
@media print{
  body.pm-site *{visibility:hidden!important}
  body.pm-site::after{visibility:visible!important;content:"Printing is not available for Pipmaster e-books.";display:block;padding:2rem;font:16px sans-serif;color:#000}
}

/* Client portal dashboard (light, Deriv-style) */
.dash{--d-bg:#f5f7f6;--d-card:#f1f4f3;--d-line:#e3e9e7;--d-ink:#0f1715;--d-mut:#5d6b67;display:grid;grid-template-columns:280px minmax(0,1fr);background:#fff;color:var(--d-ink);border-radius:22px;overflow:hidden;box-shadow:0 30px 70px -35px rgba(0,0,0,.8);min-height:760px}
.dash .ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.dash a{text-decoration:none;color:inherit}
.dash h2{color:var(--d-ink);font-weight:700}
.dash-side{border-right:1px solid var(--d-line);padding:1.6rem 1.2rem;display:flex;flex-direction:column;gap:1.1rem}
.dash-title{margin:0;font-family:var(--display);font-weight:800;font-size:1.35rem;color:var(--teal-deep);letter-spacing:-.01em}
.dash-ask{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;white-space:nowrap;overflow:hidden;border:1px solid var(--d-line);border-radius:10px;color:var(--d-mut);font-size:.95rem}
.dash-ask:hover{border-color:var(--teal)}
.dash-ask .ico{width:18px;height:18px;color:var(--d-ink)}
.dash-nav{display:grid;gap:.15rem}
.dash-nav a{display:flex;align-items:center;gap:1rem;padding:.8rem .9rem;border-radius:10px;font-size:1.02rem;color:#2b3633}
.dash-nav a:hover{background:var(--d-bg)}
.dash-nav a.is-on{color:var(--teal-deep);font-weight:600}
.dash-nav a.is-on .ico{stroke:var(--teal-deep);fill:rgba(0,163,131,.15)}
.dash-team{display:flex;justify-content:center;align-items:center;gap:.5rem;padding:.9rem;border-radius:999px;font-weight:700;color:#0d3b33!important;background:linear-gradient(90deg,#e6f6ef,#f0eefc 55%,#fdf6e3)}
.dash-team .ico{width:18px;height:18px}
.dash-help{position:relative;background:var(--d-bg);border-radius:16px;padding:1.2rem 1.2rem 1.3rem;margin-top:auto}
.dash-help p{margin:0;color:var(--d-mut);font-size:.92rem}
.dash-help .dash-help-t{color:var(--d-ink);font-weight:700;font-size:1.05rem;margin-bottom:.25rem}
.dash-help-num{display:inline-flex;align-items:center;gap:.5rem;margin-top:.8rem;padding:.55rem .9rem;border-radius:999px;background:#fff;border:1px solid var(--d-line);font-weight:600}
.dash-help-num .ico{width:16px;height:16px;color:var(--teal-deep)}
.dash-x{position:absolute;top:.6rem;right:.6rem;width:30px;height:30px;border:0;background:transparent;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:inherit}
.dash-x .ico{width:16px;height:16px}
.dash-x:hover{background:rgba(0,0,0,.06)}
.dash-me{display:flex;align-items:center;gap:.8rem;padding-top:.4rem}
.dash-av{width:44px;height:44px;border-radius:50%;background:var(--d-card);display:grid;place-items:center;font-weight:700;color:#3a4744;flex:none}
.dash-me-t{display:grid;min-width:0;flex:1}
.dash-me-t b{font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-me-t small{color:var(--d-mut);font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-me .ico{width:18px;height:18px;color:var(--d-mut)}
.dash-main{padding:clamp(1.2rem,3vw,2.2rem);min-width:0;display:grid;gap:1.4rem;align-content:start}
.dash-hero{position:relative;display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;flex-wrap:wrap;background:radial-gradient(70% 120% at 100% 0%,rgba(0,163,131,.22),transparent 60%),#121a1c;color:#fff;border-radius:26px;padding:clamp(1.4rem,3.5vw,2.2rem);padding-top:3.4rem;box-shadow:0 22px 40px -22px rgba(0,0,0,.6)}
.dash-eye{position:absolute;top:1.1rem;right:1.1rem;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer}
.dash-hero-t p{margin:0}
.dash-hero-l{display:flex;align-items:center;gap:.3rem;color:rgba(255,255,255,.75);font-size:.98rem}
.dash-hero-l .ico{width:16px;height:16px}
.dash-hero-v{margin:.35rem 0!important;font-size:1.05rem;color:rgba(255,255,255,.85)}
.dash-num{display:inline-block;font-family:var(--display);font-weight:800;font-size:clamp(2rem,4.6vw,2.6rem);color:#fff;margin-right:.35rem;letter-spacing:-.02em}
.dash-hero.is-hidden .dash-num{filter:blur(9px)}
.dash-hero-s{color:rgba(255,255,255,.6);font-size:.88rem}
.dash-hero-a{display:flex;gap:1.6rem}
.dash-circle{display:grid;justify-items:center;gap:.5rem;font-size:.92rem;color:#fff!important}
.dash-circle .ico{width:66px;height:66px;padding:20px;border-radius:50%;border:2px solid rgba(255,255,255,.85);stroke-width:2;box-sizing:border-box}
.dash-circle-fill .ico{background:var(--teal);border-color:var(--teal);color:#03140f}
.dash-circle:hover .ico{transform:translateY(-2px);transition:transform .15s}
.dash-h{display:flex;justify-content:space-between;align-items:center;margin-top:.6rem}
.dash-h h2,.dash-h2{font-size:1.45rem;margin:0}
.dash-h2{margin-top:.6rem}
.dash-arrows{display:flex;gap:.4rem}
.dash-arrows button{width:42px;height:42px;border-radius:12px;border:0;background:var(--d-bg);color:var(--d-ink);display:grid;place-items:center;cursor:pointer}
.dash-arrows button:hover{background:var(--d-line)}
.dash-arrows .ico{width:18px;height:18px}
.dash-cards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:.2rem}
.dash-cards::-webkit-scrollbar{display:none}
.dash-card{scroll-snap-align:start;display:grid;gap:.25rem;align-content:start;padding:1.3rem 1.3rem 1.5rem;border-radius:18px;background:var(--d-card);transition:background .15s,transform .15s}
.dash-card:hover{background:#e8eeec;transform:translateY(-2px)}
.dash-tile{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;color:#fff;margin-bottom:1rem;box-shadow:0 8px 16px -8px rgba(0,0,0,.45);transform:rotate(-4deg)}
.dash-tile .ico{width:28px;height:28px;stroke-width:2}
.t-courses{background:linear-gradient(135deg,#00a383,#007564)}
.t-signals{background:linear-gradient(135deg,#f0b93a,#d48a10)}
.t-account{background:linear-gradient(135deg,#1f2a2e,#3a4a50)}
.t-ebooks{background:linear-gradient(135deg,#86d95a,#3fa34a)}
.t-mentorship{background:linear-gradient(135deg,#2c7be5,#1a4fa0)}
.dash-card-n{font-size:1.15rem;font-weight:500}
.dash-card-v{font-size:1.25rem;font-weight:600;font-family:var(--display)}
.dash-card-s{font-size:.82rem;color:var(--d-mut)}
.dash-card.is-active .dash-card-v{color:var(--teal-deep)}
.dash-promo{position:relative;border-radius:20px;overflow:hidden;background:linear-gradient(100deg,#0d1f1b 0%,#0f2d26 45%,#123d33 100%);color:#fff;min-height:150px}
.dash-promo .dash-x{color:#fff;background:rgba(255,255,255,.12);top:1rem;right:1rem}
.dash-slide{display:none;padding:2rem clamp(1.3rem,4vw,2.6rem);gap:.4rem;color:#fff!important}
.dash-slide.is-on{display:grid}
.dash-slide b{font-family:var(--display);font-size:1.35rem}
.dash-slide span{color:rgba(255,255,255,.82);max-width:46ch}
.dash-slide em{font-style:normal;color:var(--lime);font-weight:600;font-size:.92rem;margin-top:.3rem}
.dash-dots{display:flex;justify-content:center;gap:.45rem;margin-top:-.6rem}
.dash-dots button{width:8px;height:8px;border-radius:999px;border:0;background:#c9d3d0;cursor:pointer;padding:0;transition:width .2s}
.dash-dots button.is-on{width:62px;background:#9aa8a4}
.dash-explore{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem;text-align:center}
.dash-explore a{display:grid;justify-items:center;gap:.6rem;font-size:.95rem}
.dash-round{position:relative;width:84px;height:84px;border-radius:50%;background:#fff;box-shadow:0 6px 18px -6px rgba(0,0,0,.25);display:grid;place-items:center;color:var(--teal-deep);transition:transform .15s}
.dash-explore a:hover .dash-round{transform:translateY(-3px)}
.dash-round .ico{width:30px;height:30px}
.dash-round i{position:absolute;top:-8px;right:-6px;font-style:normal;font-size:.7rem;font-weight:700;background:var(--teal);color:#03140f;padding:.15rem .5rem;border-radius:999px}
/* Section views inside the dashboard */
.dash-panel .pcard{background:#fff;border:1px solid var(--d-line);color:var(--d-ink)}
.dash-panel .pcard h2{font-size:1.6rem}
.dash-panel .muted,.dash-panel .lock p{color:var(--d-mut)}
.dash-panel .lock{border-color:#c9d3d0;background:var(--d-bg)}
.dash-panel .lock .lock-title,.dash-panel .lock .lock-price{color:var(--d-ink)}
.dash-panel .plist li{background:var(--d-bg);border-color:var(--d-line)}
.dash-panel .plist a:not(.btn),.dash-panel .plinks a{color:var(--teal-deep)}
.dash-panel .btn-ghost{color:var(--d-ink);border-color:#c9d3d0;background:#fff}
.dash-panel .pnote{color:var(--d-ink)}
.dash-panel .report{background:var(--d-bg);border:1px solid var(--d-line);border-radius:12px;padding:.8rem 1rem}
.dash-panel .plinks{list-style:none;padding:0;margin:0;display:grid;gap:.6rem}
.dash .reader-back{color:var(--teal-deep)}
.dash .reader-note{color:var(--d-mut)}
.dash .lock{border:1px dashed #c9d3d0;background:var(--d-bg)}
.dash .lock p{color:var(--d-mut)}
.dash .lock .lock-title,.dash .lock .lock-price{color:var(--d-ink)}
@media (max-width:1000px){
  .dash{grid-template-columns:minmax(0,1fr);min-height:0}
  .dash-side{min-width:0;border-right:0;border-bottom:1px solid var(--d-line);padding:1rem;gap:.8rem}
  .dash-nav{display:flex;overflow-x:auto;gap:.4rem;scrollbar-width:none}
  .dash-nav a{flex:none;padding:.55rem .9rem;border:1px solid var(--d-line);border-radius:999px;font-size:.92rem;gap:.5rem}
  .dash-nav a .ico{width:18px;height:18px}
  .dash-nav a.is-on{background:#e6f6ef;border-color:var(--teal)}
  .dash-team,.dash-help,.dash-me{display:none}
  .dash-explore{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:1.4rem}
}
@media (max-width:560px){
  .dash{border-radius:16px}
  .dash-hero{flex-direction:column;align-items:flex-start}
  .dash-hero-a{gap:1.2rem}
  .dash-circle .ico{width:56px;height:56px;padding:16px}
  .dash-round{width:68px;height:68px}
  .dash-cards{grid-auto-columns:78%}
}

/* Full-width app layout: the portal fills the page edge to edge, like a dashboard */
.pm-page:has(.dash){padding:0}
.pm-page:has(.dash)>.wrap{max-width:none;padding:0}
.dash{border-radius:0;box-shadow:none;min-height:0}
.dash-ask span{overflow:hidden;text-overflow:ellipsis}
@media (min-width:1001px){
  .dash{grid-template-columns:320px minmax(0,1fr);min-height:calc(100vh - 110px)}
  .dash-side{padding:2.2rem 1.8rem}
  .dash-main{padding:2.4rem clamp(2rem,4vw,4rem) 3.5rem;max-width:1320px;width:100%}
}
@media (min-width:1500px){
  .dash-cards{grid-auto-columns:minmax(0,1fr)}
}
