/* ═══════════ Crapplet site header (shared by every page) ═══════════ */
.chdr{--p:#a365fe;--p-d:#7c3aed;--p-dd:#4c1d95;--ink:#0f172a;--mute:#64748b;--line:#ece4fb;
  position:sticky!important;top:0;z-index:48;width:100%;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:none!important;border:0!important;-webkit-font-smoothing:antialiased}
.chdr::after{display:none!important}
.chdr *,.chdr *::before,.chdr *::after{box-sizing:border-box}
.chdr a{text-decoration:none;color:inherit}
.chdr button{font-family:inherit}
.chdr .ms{font-family:"Material Symbols Outlined";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;-webkit-font-feature-settings:"liga";font-feature-settings:"liga";font-size:18px;font-variation-settings:"FILL" 0,"wght" 500}
.chdr-wrap{max-width:1280px;margin:0 auto;padding:0 24px}

/* ── top strip ── */
.chdr-top{background:linear-gradient(90deg,#2a0f57,#3b1580 50%,#2a0f57);color:#fff;font-size:13px;font-weight:600;overflow:hidden;max-height:44px;transition:max-height .3s ease,opacity .3s}
.chdr-top .chdr-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:40px}
.chdr-offer{display:flex;align-items:center;gap:10px;min-width:0}
.chdr-pill{flex-shrink:0;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);font-size:10.5px;font-weight:800;letter-spacing:.1em}
.chdr-offer-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chdr-offer-text b{color:#e9d5ff;font-weight:800;letter-spacing:.04em}
.chdr-offer:hover .chdr-offer-text{text-decoration:underline;text-underline-offset:3px}
.chdr-top-links{display:flex;align-items:center;gap:22px;flex-shrink:0}
.chdr-top-links a,.chdr-top-links span{display:inline-flex;align-items:center;gap:6px;opacity:.9;transition:opacity .2s}
.chdr-top-links a:hover{opacity:1}
.chdr-dot{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25)}
.chdr-scrolled .chdr-top{max-height:0;opacity:0}

/* ── main bar ── */
.chdr-main{background:linear-gradient(180deg,#f6f0ff 0%,#fbf8ff 100%);border-bottom:1px solid var(--line);transition:box-shadow .3s}
.chdr-scrolled .chdr-main{box-shadow:0 10px 30px rgba(76,29,149,.08)}
.chdr-row1{display:flex;align-items:center;gap:24px;height:76px}
.chdr-logo{display:flex;align-items:center;flex-shrink:0}
.chdr-logo img{height:44px;width:auto;display:block;transition:transform .3s}
.chdr-logo:hover img{transform:scale(1.04)}

.chdr-search{position:relative;flex:1;max-width:520px;margin:0 auto}
.chdr-search-box{display:flex;align-items:center;gap:10px;height:48px;padding:0 10px 0 16px;border-radius:14px;background:#fff;border:1px solid #e6dcf8;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:border-color .2s,box-shadow .2s}
.chdr-search-box:focus-within{border-color:var(--p);box-shadow:0 0 0 4px rgba(163,101,254,.15)}
.chdr-search-box .ms{color:var(--mute);font-size:21px}
.chdr-search input{flex:1;min-width:0;height:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent;font:500 15px/1 inherit;color:var(--ink);padding:0!important}
.chdr-search input::placeholder{color:#94a3b8}
.chdr-kbd{flex-shrink:0;padding:4px 7px;border-radius:7px;border:1px solid #e2e8f0;background:#f8fafc;font-size:11px;font-weight:600;color:var(--mute)}
.chdr-results{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #ede9fe;border-radius:16px;box-shadow:0 20px 50px rgba(76,29,149,.16);padding:8px;display:none;max-height:360px;overflow:auto;z-index:5}
.chdr-results.open{display:block}
.chdr-res{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;cursor:pointer}
.chdr-res .ms{width:34px;height:34px;border-radius:10px;background:#f3e8ff;color:var(--p-d);display:grid;place-items:center;font-size:19px}
.chdr-res b{display:block;font-size:14px;font-weight:700;color:var(--ink)}
.chdr-res small{display:block;font-size:12.5px;color:var(--mute);margin-top:1px}
.chdr-res.active,.chdr-res:hover{background:#faf5ff}
.chdr-empty{padding:14px;font-size:14px;color:var(--mute);text-align:center}

.chdr-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}
.chdr .cur-toggle{height:44px;padding:4px;background:#fff;border:1px solid #e6dcf8;border-radius:12px;font-size:13px}
.chdr .cur-toggle .cur-btn{padding:0 14px;border-radius:9px;color:#334155;font-weight:700}
.chdr .cur-toggle .cur-btn.is-active{background:var(--p);color:#fff;box-shadow:0 4px 12px rgba(163,101,254,.35)}
.chdr-support{display:inline-flex;align-items:center;gap:7px;font-size:15px;font-weight:700;color:var(--ink)!important;transition:color .2s}
.chdr-support .ms{font-size:21px}
.chdr-support:hover{color:var(--p-d)!important}
.chdr-cta{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 22px;border-radius:12px;background:linear-gradient(135deg,#a365fe,#7c3aed);color:#fff!important;font-size:15px;font-weight:800;box-shadow:0 8px 22px rgba(124,58,237,.3);transition:transform .2s,box-shadow .2s}
.chdr-cta:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(124,58,237,.4)}
.chdr-cta .ms{font-size:19px;transition:transform .2s}
.chdr-cta:hover .ms{transform:translateX(3px)}

/* hamburger (keeps the existing drawer script working) */
.chdr #menu-toggle{display:none;position:relative;width:44px;height:44px;border-radius:12px;border:1px solid #e6dcf8;background:#fff;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;padding:0}
.chdr #menu-toggle .bar{display:block;height:2px;border-radius:2px;background:#1e293b;transition:all .35s cubic-bezier(.22,1,.36,1)}
.chdr #menu-toggle .bar-top,.chdr #menu-toggle .bar-bot{width:20px}
.chdr #menu-toggle .bar-mid{width:14px;transform-origin:right center}
.chdr #menu-toggle.open .bar-top{transform:translateY(7px) rotate(45deg)}
.chdr #menu-toggle.open .bar-mid{width:0;opacity:0}
.chdr #menu-toggle.open .bar-bot{transform:translateY(-7px) rotate(-45deg)}

/* ── nav row ── */
.chdr-row2{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;height:58px;border-top:1px solid var(--line)}
.chdr-badge{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:700;color:#334155;white-space:nowrap}
.chdr-badge .ms{color:var(--p-d);font-size:19px}
.chdr-nav{display:flex;align-items:center;gap:6px}
.chdr-item{position:static}
.chdr-link{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 15px;border-radius:999px;border:0;background:transparent;font-size:15px;font-weight:700;color:#1e293b!important;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s}
.chdr-link .ms{font-size:19px}
.chdr-link .chev{font-size:18px;transition:transform .25s}
.chdr-link:hover,.chdr-item.open>.chdr-link{background:#f1e8ff;color:var(--p-d)!important}
.chdr-link.is-current{background:#ede1ff;color:var(--p-d)!important}
.chdr-item.open>.chdr-link .chev{transform:rotate(180deg)}

/* mega menu */
.chdr-mega{position:absolute;top:calc(100% - 4px);max-width:calc(100vw - 32px);left:50%;display:flex;width:max-content;background:#fff;border-radius:20px;box-shadow:0 30px 70px rgba(46,16,101,.22),0 0 0 1px rgba(124,58,237,.08);overflow:hidden;opacity:0;visibility:hidden;transform:translate(-50%,8px);transition:opacity .2s,transform .25s,visibility .2s;z-index:10}
.chdr-mega::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
.chdr-item.open .chdr-mega{opacity:1;visibility:visible;transform:translate(-50%,0)}
.chdr-feature{position:relative;width:290px;padding:30px 28px;color:#fff;overflow:hidden;background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.18) 0,transparent 40%),linear-gradient(150deg,#8b5cf6 0%,#6d28d9 60%,#4c1d95 100%);display:flex;flex-direction:column}
.chdr-feature::after{content:"";position:absolute;right:-60px;bottom:-60px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.07)}
.chdr-ficon{width:52px;height:52px;border-radius:14px;background:rgba(255,255,255,.18);display:grid;place-items:center;margin-bottom:22px}
.chdr-ficon .ms{font-size:28px;color:#fff}
.chdr-feature h4{margin:0 0 8px;font-size:21px;font-weight:800;line-height:1.25;color:#fff}
.chdr-feature p{margin:0 0 16px;font-size:14px;line-height:1.5;color:rgba(255,255,255,.85)}
.chdr-feature p b{color:#fff;letter-spacing:.05em}
.chdr-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.chdr-chips span{padding:5px 11px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px;font-weight:600}
.chdr-explore{margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:800;color:#fff!important;position:relative;z-index:1}
.chdr-explore .ms{transition:transform .2s}
.chdr-explore:hover .ms{transform:translateX(4px)}
.chdr-list{padding:14px;display:grid;grid-template-columns:repeat(var(--cols,1),minmax(300px,1fr));gap:2px;align-content:start}
.chdr-li{display:flex;align-items:flex-start;gap:14px;padding:14px;border-radius:14px;transition:background .2s}
.chdr-li:hover{background:#faf5ff}
.chdr-li.is-current{background:#f5edff}
.chdr-li-icon{flex-shrink:0;width:46px;height:46px;border-radius:13px;background:#f3e8ff;display:grid;place-items:center;transition:background .2s}
.chdr-li-icon .ms{font-size:23px;color:var(--p-d)}
.chdr-li:hover .chdr-li-icon{background:var(--p)}
.chdr-li:hover .chdr-li-icon .ms{color:#fff}
.chdr-li b{display:flex;align-items:center;gap:8px;font-size:15.5px;font-weight:700;color:var(--ink)}
.chdr-li small{display:block;margin-top:3px;font-size:13.5px;line-height:1.4;color:var(--mute)}
.chdr-tag{padding:2px 8px;border-radius:6px;background:#dcfce7;color:#15803d;font-size:10.5px;font-weight:800;letter-spacing:.04em}

/* ── responsive ── */
@media (max-width:1279px){.chdr-badge--right{display:none}}
@media (max-width:1100px){.chdr-badge--left{display:none}.chdr-row2{justify-content:center}.chdr-support span:last-child{display:none}}
@media (max-width:1023px){
  .chdr-row2,.chdr-top-links,.chdr-support,.chdr-cta,.chdr-kbd{display:none}
  .chdr #menu-toggle{display:flex}
  .chdr-row1{height:68px;gap:14px}
  .chdr-actions{gap:10px}
}
@media (max-width:767px){
  .chdr-wrap{padding:0 16px}
  .chdr-search{display:none}
  .chdr-actions{margin-left:auto}
  .chdr-logo img{height:38px}
  .chdr .cur-toggle{height:40px;font-size:12px}
  .chdr .cur-toggle .cur-btn{padding:0 10px}
  .chdr-top{font-size:12px}
}
@media (max-width:380px){.chdr .cur-toggle .cur-btn{padding:0 8px}}

/* fallback mobile panel (pages without the slide-out drawer) */
.chdr-mpanel{display:none;border-top:1px solid var(--line);background:#fff;padding:8px 16px 16px}
.chdr-mpanel.open{display:block}
.chdr-mpanel a{display:block;padding:11px 4px;font-weight:600;color:#1e293b;border-bottom:1px solid #f1f5f9}
@media (min-width:1024px){.chdr-mpanel{display:none!important}}
.chdr.scrolled{box-shadow:none!important}
