/*!
 * PK DOMAIN skin for the WHMCS "twenty-one" client area
 * -----------------------------------------------------
 * Loaded automatically by includes/head.tpl (WHMCS picks up css/custom.css).
 * 1. Brand tokens (light + dark)
 * 2. Main-site header / footer (scoped to .pkd, copied from pk-domain.com style.css)
 * 3. WHMCS client area restyle
 * 4. Dark mode for WHMCS pages
 */

/* ============ 1. Brand tokens ============ */
:root{
  --pk-navy:#0a1f3d;--pk-navy2:#12305c;--pk-acc:#12b76a;--pk-acc-d:#0e9a59;--pk-link:#0a7d45;
  --pk-gold:#f5a524;--pk-ink:#1b2433;--pk-mut:#5b6678;--pk-line:#e3e8ef;--pk-bg:#f4f7fb;--pk-card:#fff;
  --pk-field:#fff;--pk-alt:#f8fafc;--pk-r:0px;--pk-head:#0a1f3d;--pk-head2:#12305c;
  --pk-font:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
}
:root[data-theme="dark"]{
  --pk-navy:#060e1e;--pk-navy2:#0d2547;--pk-link:#3fd18c;
  --pk-ink:#e7ecf5;--pk-mut:#9fb0c9;--pk-line:#1e2c44;--pk-bg:#0b1526;--pk-card:#101b30;
  --pk-field:#0b1526;--pk-alt:#0d1a2e;--pk-head:#ffffff;--pk-head2:#9cc2ff;
  color-scheme:dark;
}

/* ============ 2. Main-site header / footer ============ */
/* WHMCS sets html,body{height:100%}, which stops the sticky header after one screen */
html,body{height:auto;min-height:100%}
.pkd,.pkd *,.pkd *::before,.pkd *::after{box-sizing:border-box}
.pkd{font-family:var(--pk-font);line-height:1.6;color:var(--pk-ink);text-align:left}
.pkd ul,.pkd ol{list-style:none;margin:0;padding:0}
.pkd h4,.pkd p{margin:0}
.pkd h4{font-size:1em;font-weight:700;line-height:1.6;font-family:inherit}
.pkd .sub input,.pkd .sub .btn{font-size:.83rem;line-height:1.2}
.pkd a,.pkd a:hover,.pkd a:focus{color:inherit;text-decoration:none}
.pkd svg{display:block;overflow:visible}
.pkd button{font-family:inherit;line-height:inherit;text-transform:none}
.pkd button:focus{outline:0}
.pkd :focus-visible{outline:3px solid var(--pk-gold);outline-offset:2px}
.pkd small{font-weight:inherit}
.pkd .btn{vertical-align:baseline;user-select:auto;transition:filter .15s}
.pkd .btn:focus{box-shadow:none}
.pkd a.btn{text-align:left}
.pkd .btn.b{text-align:center}
.pkd .wrap.nav{flex-wrap:nowrap;margin-bottom:0}
.pkd.site .wrap,.pkd.topbar .wrap{position:static}
.pkd.site{font-size:1rem}
footer.pkd{line-height:1.6}
footer.pkd .copy{align-items:center}
/* WHMCS language / currency switcher inside the footer bottom bar */
footer.pkd .pkd-locale{display:inline-flex;align-items:center;gap:8px;background:#0d2445;border:1px solid #24406e;color:#dbe6f5;font-size:.82rem;font-weight:600;padding:5px 12px;cursor:pointer;border-radius:0}
footer.pkd .pkd-locale:hover{background:#12305c;color:#fff}
footer.pkd .pkd-locale .iti-flag{display:inline-block;flex:none}
footer.pkd .copy>span:first-child{margin-right:auto}
footer.pkd #subMsg{color:#cbd8ec;font-size:.85rem}
@media(max-width:700px){footer.pkd .copy>span:first-child{margin-right:0;width:100%}}
@media(max-width:1000px){body.menu-open .pkd.stack{display:none}}

/* --- scoped copy of pk-domain.com assets/css/style.css (header, footer, sticky buttons) --- */
.pkd .i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pkd .wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.pkd .btn{display:inline-block;background:var(--pk-acc);color:#fff;font-weight:400;font-size:inherit;line-height:inherit;font-family:inherit;padding:11px 22px;border:0;border-radius:0;cursor:pointer}
.pkd .btn:hover{filter:brightness(.93)}
.pkd .btn.o{background:none;border:1.5px solid var(--pk-navy);color:var(--pk-navy)}
.pkd .btn.b{display:block;text-align:center}
:root[data-theme="dark"] .pkd .btn.o{border-color:#3d6aa8;color:#fff}
.pkd.notice{background:var(--pk-gold);color:#3b2600;font-size:.9rem;text-align:center;padding:8px 40px}
.pkd.notice a{text-decoration:underline;font-weight:600}
.pkd.notice{position:relative}
.pkd #noticeClose{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:0;color:#3b2600;font-size:1.3rem;line-height:1;cursor:pointer;padding:2px 8px}
.pkd.notice.hide{display:none}
.pkd.topbar{background:var(--pk-navy);color:#cbd8ec;font-size:.85rem}
.pkd.topbar .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding-top:8px;padding-bottom:8px}
.pkd.topbar ul{display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.pkd.topbar a:hover{color:#fff}
.pkd.topbar li.wsearch{list-style:none}
.pkd .wtop{display:flex;align-items:stretch;gap:0}
.pkd .wtop input{width:190px;max-width:40vw;border:1px solid #24406e;background:#0d2445;color:#fff;padding:6px 10px;border-radius:0;font-size:.82rem}
.pkd .wtop input::placeholder{color:#8ca2c4}
.pkd .wtop button{display:flex;align-items:center;gap:5px;background:var(--pk-acc);color:#04202f;border:0;padding:6px 12px;font-weight:700;font-size:.8rem;cursor:pointer;white-space:nowrap}
.pkd .wtop button .i{width:14px;height:14px}
:root[data-theme="dark"] .pkd .wtop input{background:#081527;border-color:#1c3358}
@media(max-width:640px){.pkd .wtop input{width:120px}}
.pkd.site{background:var(--pk-card);border-bottom:1px solid var(--pk-line);position:sticky;top:0;z-index:50}
.pkd .nav{display:flex;align-items:center;justify-content:space-between;height:70px;gap:10px}
.pkd .logo{display:flex;align-items:center;gap:10px;color:var(--pk-navy);line-height:1.1}
:root[data-theme="dark"] .pkd .logo{color:#fff}
.pkd .logoicon{width:42px;height:42px;flex:none}
.pkd .logo strong{font-size:1.15rem;display:block}
.pkd .logo small{color:var(--pk-mut);font-size:.66rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.pkd .navr{display:flex;align-items:center;gap:6px}
.pkd .menu{display:flex;align-items:center}
.pkd .menu>li>a,.pkd .menu>li>button{display:flex;align-items:center;gap:5px;background:none;border:0;font-family:inherit;font-weight:800;font-size:1.04rem;letter-spacing:.01em;padding:24px 13px;cursor:pointer;color:var(--pk-ink)}
.pkd .menu>li>a:hover,.pkd .menu>li>button:hover,.pkd .menu>li.open>button{color:var(--pk-acc)}
.pkd .menu>li>button .caret{width:11px;height:11px;transition:transform .18s}
.pkd .menu>li.open>button .caret{transform:rotate(180deg)}
.pkd .mega{display:none;position:absolute;left:0;right:0;top:100%;background:var(--pk-card);border-top:1px solid var(--pk-line);box-shadow:0 18px 30px rgba(10,31,61,.14);max-height:82vh;overflow-y:auto}
.pkd .menu>li.open .mega{display:block}
.pkd .mega .wrap{display:grid;grid-template-columns:repeat(3,1fr) 1.2fr;gap:0;padding-top:16px;padding-bottom:18px}
.pkd .mega .wrap>div{padding:0 22px;display:flex;flex-direction:column;align-items:stretch}
.pkd .mega .wrap>div:first-child{padding-left:0}
.pkd .mega .wrap>div:not(:first-child){border-left:1px solid var(--pk-line)}
.pkd .mega h4{color:var(--pk-navy);font-size:.86rem;margin-bottom:7px;padding-bottom:6px;border-bottom:1px dashed var(--pk-line);text-transform:uppercase;letter-spacing:.03em}
:root[data-theme="dark"] .pkd .mega h4{color:#fff;border-bottom-color:#1c3358}
.pkd .mega a{display:block;padding:4px 8px;border-radius:0;font-size:.88rem}
.pkd .mega a:not(.btn):hover{background:var(--pk-bg)}
.pkd .mega a small{display:block;color:var(--pk-mut);font-size:.76rem;margin-left:0}
.pkd .mega a em{float:right;font-style:normal;color:var(--pk-acc);font-weight:700;font-size:.8rem}
.pkd .mega a.inl{display:flex;align-items:center;gap:0}
.pkd .mega a.inl small{display:inline;margin-left:6px;color:var(--pk-mut);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pkd .mega a .i{width:16px;height:16px;vertical-align:-3px;margin-right:6px;color:var(--pk-acc);flex:none}
.pkd .mega .btn:hover{background:var(--pk-acc);color:#fff;filter:brightness(.93)}
.pkd .mega-card{display:flex;gap:10px;align-items:flex-start;background:var(--pk-bg);border:1px solid var(--pk-line);border-radius:var(--pk-r);padding:9px 11px;margin-bottom:7px;text-decoration:none;transition:border-color .15s}
.pkd .mega-card:hover{border-color:var(--pk-acc)}
.pkd .mega-card svg{width:20px;height:20px;flex:0 0 auto;color:var(--pk-acc);margin-top:2px}
.pkd .mega-card b{display:block;color:var(--pk-navy);font-size:.85rem}
.pkd .mega-card span{display:block;color:var(--pk-mut);font-size:.76rem;margin-top:1px}
:root[data-theme="dark"] .pkd .mega-card b{color:#fff}
:root[data-theme="dark"] .pkd .mega-card{background:#0d2445;border-color:#1c3358}
.pkd .promo{background:linear-gradient(135deg,var(--pk-navy),var(--pk-navy2));color:#fff;border-radius:var(--pk-r);padding:16px}
.pkd .promo h4{color:#fff;border-bottom-color:rgba(255,255,255,.25)}
.pkd .promo p{color:#c6d4ea;font-size:.83rem;margin-bottom:10px}
.pkd .promo .btn{padding:7px 14px;font-size:.85rem}
.pkd .promo.compact{padding:11px 13px}
.pkd .promo.compact svg{width:24px;height:24px}
.pkd .promo.compact h4{font-size:.86rem;margin-bottom:4px;padding-bottom:4px}
.pkd .promo.compact p{font-size:.78rem;margin-bottom:8px}
.pkd .promo.compact .btn{padding:5px 12px;font-size:.8rem}
.pkd .themebtn{background:none;border:1.5px solid var(--pk-line);border-radius:0;width:38px;height:38px;display:grid;place-items:center;cursor:pointer;color:var(--pk-ink);flex:none}
.pkd .themebtn .sun{display:none}
:root[data-theme="dark"] .pkd .themebtn .moon{display:none}
:root[data-theme="dark"] .pkd .themebtn .sun{display:block}
.pkd .burger{display:none;background:none;border:1.5px solid var(--pk-line);border-radius:0;padding:7px 12px;font-size:1.1rem;cursor:pointer;color:var(--pk-ink)}
footer.pkd{background:#071730;color:#a9bad4;padding:52px 0 0;font-size:.92rem}
.pkd .fg{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:32px;padding-bottom:34px}
footer.pkd h4{color:#fff;margin-bottom:12px}
footer.pkd li{margin-bottom:7px}
footer.pkd a:hover{color:#fff}
.pkd .soc{display:flex;gap:10px;margin-top:12px}
.pkd .soc a{width:36px;height:36px;border-radius:0;background:#12305c;display:grid;place-items:center;color:#fff}
.pkd .playbadge{display:inline-flex;align-items:center;gap:9px;margin-top:14px;padding:8px 14px;background:#000;border:1px solid rgba(255,255,255,.25);border-radius:0;color:#fff}
.pkd .playbadge .i{width:22px;height:22px;fill:#fff;stroke:none;flex:none}
.pkd .playbadge span{display:flex;flex-direction:column;line-height:1.15}
.pkd .playbadge small{font-size:.62rem;color:#c6d4ea;letter-spacing:.03em}
.pkd .playbadge strong{font-size:.95rem;font-weight:700}
.pkd .sub{display:flex;gap:6px;margin:8px 0 14px}
.pkd .sub input{flex:1;min-width:0;padding:10px 12px;border-radius:0;border:0}
.pkd .pay{display:flex;flex-wrap:wrap;gap:6px}
.pkd .pay span{background:#fff;color:var(--pk-navy);font-weight:700;font-size:.72rem;padding:4px 9px;border-radius:0}
.pkd .copy{border-top:1px solid #16294a;padding:16px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.pkd .copy .pay{margin-right:76px}
@media(max-width:860px){.pkd .copy .pay{margin-right:0}}
.pkd .fg ul a{display:inline-flex;align-items:center;gap:7px}
.pkd .fg ul a svg{width:14px;height:14px;flex:none;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.pkd.stack{position:fixed;right:14px;bottom:14px;z-index:70;display:flex;flex-direction:column;gap:10px}
.pkd.stack a{width:50px;height:50px;border-radius:4px;display:grid;place-items:center;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.3);position:relative}
.pkd.stack a.wa{background:#25d366}
.pkd.stack a.ph{background:linear-gradient(155deg,#1f2937,#0b1220)}
.pkd.stack a.tk{background:linear-gradient(155deg,#0f766e,#0b4a44);color:#fff}
.pkd.stack a .i{width:22px;height:22px}
.pkd.stack a .tip{position:absolute;right:60px;top:50%;transform:translateY(-50%);background:#111;color:#fff;font-size:.78rem;font-weight:600;padding:5px 10px;border-radius:0;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.pkd.stack a:hover .tip{opacity:1}
.pkd.stack a.top{background:linear-gradient(155deg,#334155,#0f1b2e);opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .2s,transform .2s,filter .15s}
.pkd.stack a.top.show{opacity:1;pointer-events:auto;transform:translateY(0)}
.pkd.stack a.top:hover{filter:brightness(1.15)}
@media(max-width:560px){.pkd.stack{right:10px;bottom:10px;gap:8px}.pkd.stack a{width:44px;height:44px}.pkd.stack a .tip{display:none}}
.pkd.mbar{display:none}
@media(max-width:700px){body{padding-bottom:60px}.pkd.stack{bottom:66px}.pkd.mbar{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;left:0;right:0;bottom:0;z-index:65;background:var(--pk-navy);box-shadow:0 -6px 18px rgba(0,0,0,.3)}.pkd.mbar a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;color:#fff;font-size:.7rem;font-weight:600;border-right:1px solid rgba(255,255,255,.12)}.pkd.mbar a:last-child{border-right:0}.pkd.mbar .i{width:18px;height:18px}}
@media(max-width:560px){.pkd.stack{right:8px;bottom:60px;gap:8px}.pkd.stack a{width:40px;height:40px}}
@media(max-width:1000px){.pkd .fg{grid-template-columns:repeat(2,minmax(0,1fr))}.pkd .burger{display:block}.pkd .menu{display:none;position:absolute;left:0;right:0;top:70px;background:var(--pk-card);border-bottom:1px solid var(--pk-line);flex-direction:column;align-items:stretch;padding:6px 20px 14px;max-height:78vh;overflow:auto}.pkd .menu.show{display:flex}.pkd .menu>li>a,.pkd .menu>li>button{padding:12px 4px;width:100%;text-align:left}.pkd .mega{position:static;box-shadow:none;border:0}.pkd .mega .wrap{grid-template-columns:1fr;padding:0 0 8px 10px;gap:8px}.pkd .mega .wrap>div{padding:0;border-left:0}.pkd .promo{margin-bottom:8px}}
@media(max-width:700px){.pkd .fg{grid-template-columns:minmax(0,1fr)}.pkd.topbar .wrap{justify-content:center}}
@media(min-width:1001px) and (hover:hover){.pkd .menu>li:hover .mega{display:block}.pkd .menu>li:hover>button{color:var(--pk-acc)}.pkd .menu>li:hover>button .caret{transform:rotate(180deg)}}
.pkd .ping-ring,.pkd .ping-dot{transform-box:fill-box;transform-origin:50% 50%}
.pkd .ping-ring{animation:logoPingRing 2.4s cubic-bezier(.4,0,.2,1) infinite}
.pkd .ping-ring.d2{animation-delay:1.2s}
.pkd .ping-dot{animation:logoPingDot 2.4s ease-in-out infinite}
@keyframes logoPingRing{0%{transform:scale(.6);opacity:1}70%{transform:scale(2.8);opacity:0}100%{transform:scale(2.8);opacity:0}}
@keyframes logoPingDot{0%,55%{transform:scale(1)}68%{transform:scale(1.3)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.pkd .ping-ring,.pkd .ping-dot{animation:none}}
@media(max-width:760px){footer.pkd li{margin-bottom:0}footer.pkd li a{display:inline-flex;align-items:center;min-height:40px}}
footer.pkd .fsub-h{margin:20px 0 4px}
footer.pkd .fsub-p{font-size:.82rem;color:#a9bad4;margin-bottom:6px}
footer.pkd .fg>div:first-child .sub{max-width:340px}
@media(max-width:1000px){.pkd .menu{max-height:calc(100vh - 70px);max-height:calc(100dvh - 70px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.pkd .menu .mega{max-height:none;overflow:visible}}
body{overflow-x:clip}
footer.pkd .wrap.copy{padding-left:20px;padding-right:20px}
@media(max-width:700px){body{padding-bottom:0}footer.pkd{padding-bottom:60px}footer.pkd .wrap.copy{padding-right:64px;justify-content:flex-start}}
@media(max-width:560px){footer.pkd .wrap.copy{padding-right:56px}}

/* classes that replace the old inline styles */
.pkd-i15{width:15px;height:15px;vertical-align:-3px;margin-right:4px}.pkd-mt10{margin-top:10px}.pkd-col8{display:flex;flex-direction:column;gap:8px}.pkd-white{color:#fff}.pkd-muted{color:#a9bad4}.pkd-mt12{margin-top:12px}.pkd-hp{position:absolute;left:-5000px;width:1px;height:1px;opacity:0}.pkd-mb10{margin-bottom:10px}.pkd-abs{position:absolute}

.mega h4.mega-sub { margin-top: 14px; }

/* the dropdown stays open while the pointer travels to it, and a menu passed on the way does not open */
@media (min-width: 1001px) and (hover: hover) {
  .pkd .menu > li > .mega { display: block; visibility: hidden; opacity: 0; transition: visibility 0s linear .3s, opacity .1s linear .3s; }
  .pkd .menu > li:hover > .mega, .pkd .menu > li.open > .mega { visibility: visible; opacity: 1; transition-delay: .15s; z-index: 2; }
  .pkd .menu > li > button { position: relative; }
  .pkd .menu > li > button::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
}
