/*
Theme Name: apksucess
Theme URI: https://apksucess.com.pk/
Author: apksucess
Author URI: https://apksucess.com.pk/
Description: apksucess — premium dark app directory theme. Natural-size hero slider banners (2-up on desktop), full-width landscape featured app cards, updated/new app lists, categories, blog cards, app detail pages with info table, direct download button and FAQs. Live AJAX search, AdSense-ready.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apksucess
Tags: dark, app-directory, blog, responsive, adsense-ready
*/

/* =Base
-------------------------------------------------------------- */
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;background:#0a0f1e;color:#dbe4f3;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:15px;line-height:1.6;}
body.apks-locked{overflow:hidden;}
a{color:#4ade80;text-decoration:none;}
a:hover{color:#86efac;}
img{max-width:100%;height:auto;}
h1,h2,h3,h4{line-height:1.25;}

/* =Topbar (reference: dark navy, burger left, centered logo, search right)
-------------------------------------------------------------- */
.apks-topbar{background:#0a0f1e;border-bottom:1px solid rgba(148,163,184,.12);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:10px 14px;position:sticky;top:0;z-index:60;}
/* Detail (single post) pages: logo-only header, centered. */
/* Detail (single post) topbar: burger + logo only, no search — logo stays visually centered. */
.apks-topbar.apks-nosearch{grid-template-columns:1fr auto 1fr;}
.apks-topbar.apks-nosearch .apks-burger{justify-self:start;}
.apks-topbar.apks-nosearch .apks-logo{grid-column:2;justify-self:center;}
.apks-burger{background:none;border:0;cursor:pointer;display:flex;flex-direction:column;gap:5px;padding:10px 8px;}
.apks-burger span{display:block;width:22px;height:2.5px;border-radius:2px;background:#fff;}
.apks-logo{justify-self:center;text-align:center;line-height:1.05;}
.apks-flogo{justify-self:start;text-align:left;display:inline-block;text-decoration:none;margin-bottom:8px;}
.apks-l1{font-size:27px;font-weight:800;letter-spacing:-1px;}
.apks-l1 .apks-p{background:linear-gradient(135deg,#f472b6,#ec4899 60%,#d946ef);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;}
.apks-l1 .apks-b{background:linear-gradient(135deg,#60a5fa,#3b82f6 60%,#2563eb);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;}
.apks-l2{font-size:11.5px;font-weight:700;letter-spacing:.2px;margin-top:2px;}
.apks-l2 .apks-o{color:#f97316;}
.apks-l2 .apks-w{color:#cbd5e1;}
.apks-l2 .apks-gr{color:#22c55e;}
.apks-sicon{width:26px;height:26px;display:inline-flex;padding:2px;background:none;border:0;cursor:pointer;}
.apks-sicon svg{width:100%;height:100%;}
/* v5.2: desktop inline nav removed — drawer is the only navigation (reference). */

/* =Hamburger drawer (premium slide-in)
-------------------------------------------------------------- */
.apks-overlay{position:fixed;inset:0;background:rgba(2,6,16,.62);opacity:0;pointer-events:none;transition:opacity .3s ease;z-index:90;}
.apks-overlay.show{opacity:1;pointer-events:auto;}
.apks-drawer{position:fixed;top:0;left:0;bottom:0;width:284px;max-width:84vw;background:linear-gradient(180deg,#0e1628,#0a1120);z-index:95;transform:translateX(-106%);transition:transform .3s cubic-bezier(.2,.7,.25,1);box-shadow:24px 0 60px rgba(0,0,0,.55);padding:18px;display:flex;flex-direction:column;}
.apks-drawer.open{transform:none;}
.apks-dtop{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.apks-dlogo{line-height:1.05;}
.apks-dlogo .apks-l1{font-size:22px;}
.apks-dlogo .apks-l2{font-size:10.5px;}
.apks-dclose{background:rgba(148,163,184,.12);border:0;border-radius:50%;width:34px;height:34px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:7px;}
.apks-dclose svg{width:100%;height:100%;}
.apks-dclose:hover{background:rgba(148,163,184,.25);}
.apks-dnav{margin-top:10px;overflow-y:auto;}
.apks-dnav ul{list-style:none;margin:0;padding:0;}
.apks-dnav li{opacity:0;transform:translateX(-16px);transition:opacity .3s ease,transform .3s ease;border-bottom:1px solid rgba(148,163,184,.09);}
.apks-drawer.open .apks-dnav li{opacity:1;transform:none;}
.apks-drawer.open .apks-dnav li:nth-child(1){transition-delay:.07s;}
.apks-drawer.open .apks-dnav li:nth-child(2){transition-delay:.12s;}
.apks-drawer.open .apks-dnav li:nth-child(3){transition-delay:.17s;}
.apks-drawer.open .apks-dnav li:nth-child(4){transition-delay:.22s;}
.apks-drawer.open .apks-dnav li:nth-child(5){transition-delay:.27s;}
.apks-drawer.open .apks-dnav li:nth-child(6){transition-delay:.32s;}
.apks-drawer.open .apks-dnav li:nth-child(7){transition-delay:.37s;}
.apks-drawer.open .apks-dnav li:nth-child(8){transition-delay:.42s;}
.apks-dnav a{display:block;color:#dbe4f3;font-size:15px;font-weight:600;padding:13px 6px;}
.apks-dnav a:hover,.apks-dnav .current-menu-item a{color:#4ade80;}
.apks-dfoot{margin-top:auto;padding-top:14px;font-size:11.5px;color:#5b6b87;}

/* =Hero slider (reference: light banner, arrows, dots below)
-------------------------------------------------------------- */
.apks-slider{position:relative;margin:14px 14px 0;border-radius:24px;}
.apks-slide{display:none;align-items:center;gap:18px;background:linear-gradient(135deg,#eef1f7,#d4dae7);border-radius:24px;padding:30px 58px 30px 24px;box-shadow:0 14px 34px rgba(0,0,0,.4);}
.apks-slide.active{display:flex;}
.apks-stext h2{margin:0;color:#111827;font-size:clamp(24px,6.4vw,40px);font-weight:800;letter-spacing:-1px;line-height:1.1;}
.apks-stext h2 a{color:#111827;}
.apks-ssub{color:#6b7280;font-size:13px;font-weight:600;margin-top:8px;}
.apks-getbtn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:800;font-size:14px;letter-spacing:1.5px;padding:11px 30px;border-radius:999px;margin-top:14px;box-shadow:0 8px 20px rgba(34,197,94,.4);}
.apks-getbtn:hover{color:#fff;filter:brightness(1.06);}
.apks-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.55);border:0;color:#4b5563;font-size:22px;font-weight:700;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;box-shadow:0 4px 12px rgba(0,0,0,.18);}
.apks-arrow.prev{left:10px;}
.apks-arrow.next{right:10px;}
.apks-arrow:hover{background:rgba(255,255,255,.85);}
.apks-dots{display:flex;gap:7px;justify-content:center;padding:12px 0 2px;}
.apks-dots button{width:9px;height:9px;border-radius:50%;background:#3a4763;border:0;cursor:pointer;padding:0;}
.apks-dots button.on{background:#3b82f6;width:22px;border-radius:6px;}
@media(min-width:900px){
  .apks-slider{max-width:1044px;margin-left:auto;margin-right:auto;}
  /* v5.2: 2 banners per view on desktop (reference) — JS toggles .active per page */
  #apks-slider{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:stretch;}
  /* v5.2: desktop topbar polish — breathing room, logo stays centered */
  .apks-topbar{padding:12px 28px;}
}

/* =App icon box (white rounded)
-------------------------------------------------------------- */
.apks-logo-box{width:56px;height:56px;border-radius:16px;background:#fff;padding:8px;flex-shrink:0;position:relative;box-shadow:0 5px 16px rgba(0,0,0,.35),inset 0 0 0 1px rgba(0,0,0,.06);}
.apks-logo-box svg,.apks-logo-box img{width:100%;height:100%;display:block;object-fit:contain;border-radius:8px;}
.apks-logo-box.big{width:64px;height:64px;border-radius:18px;padding:9px;}
.apks-logo-box.sm{width:52px;height:52px;border-radius:15px;padding:7px;}

/* =Sections
-------------------------------------------------------------- */
.apks-sec{padding:4px 14px;max-width:1080px;margin:0 auto;}
.apks-sechead{display:flex;align-items:center;justify-content:space-between;padding:22px 0 14px;}
.apks-sectitle{display:flex;align-items:center;gap:12px;color:#fff;font-size:20px;font-weight:800;letter-spacing:-.2px;margin:0;}
.apks-sic{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#22c55e,#16a34a);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(34,197,94,.4);flex-shrink:0;}
.apks-sic svg{width:20px;height:20px;display:block;}
.apks-viewall{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:700;font-size:12.5px;padding:9px 20px;border-radius:999px;box-shadow:0 4px 14px rgba(34,197,94,.35);white-space:nowrap;}
.apks-viewall:hover{color:#fff;}

/* =Featured cards — full-width landscape, NEVER 2-col on mobile
-------------------------------------------------------------- */
.apks-fgrid{display:grid;grid-template-columns:1fr;gap:14px;}
@media(min-width:900px){.apks-fgrid{grid-template-columns:repeat(2,1fr);}}
.apks-fcard{background:linear-gradient(180deg,#1e2c4e,#17233d);border:1px solid rgba(148,163,184,.13);border-radius:20px;padding:18px;box-shadow:0 12px 30px rgba(0,0,0,.35);}
.apks-frow{display:flex;gap:14px;align-items:center;}
.apks-iwrap{position:relative;flex-shrink:0;}
.apks-gdot{position:absolute;right:-3px;bottom:-3px;width:15px;height:15px;border-radius:50%;background:#22c55e;border:2.5px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.4);}
.apks-fcard h3{color:#fff;font-size:18px;font-weight:800;letter-spacing:-.2px;margin:0;}
.apks-fcard h3 a{color:#fff;}
.apks-stars{color:#fbbf24;font-size:14px;margin-top:5px;font-weight:700;}
.apks-excerpt{color:#93a0bb;font-size:14px;margin:12px 0;line-height:1.55;}
.apks-fdiv{border-top:1px dashed rgba(148,163,184,.35);margin:0 0 13px;}
.apks-frowbot{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.apks-meta{display:flex;align-items:center;gap:16px;color:#8b98b3;font-size:13.5px;font-weight:600;}
.apks-mitem{display:inline-flex;align-items:center;gap:6px;}
.apks-mitem svg{width:16px;height:16px;}
.apks-dlpill{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:700;font-size:14px;padding:10px 26px;border-radius:999px;box-shadow:0 6px 16px rgba(34,197,94,.4);white-space:nowrap;}
.apks-dlpill:hover{color:#fff;filter:brightness(1.06);}

/* =App list rows (Updated / New / archive)
-------------------------------------------------------------- */
/* v5.2: rows live in .apks-lgrid — stacked on mobile, 2-col grid on desktop (reference) */
.apks-lgrid{display:grid;grid-template-columns:1fr;gap:12px;}
@media(min-width:900px){.apks-lgrid{grid-template-columns:1fr 1fr;gap:14px;}}
/* Related apps on detail pages: clear gap between stacked cards (mobile + desktop). */
.apks-relgrid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px;}
.apks-lrow{display:flex;gap:14px;align-items:center;background:linear-gradient(180deg,#1a2542,#141d33);border:1px solid rgba(148,163,184,.12);border-radius:18px;padding:14px 16px;margin:0;}
.apks-iwrap2{position:relative;flex-shrink:0;}
.apks-cbadge{position:absolute;left:-6px;top:-6px;width:22px;height:22px;border-radius:50%;background:#0a0f1e;border:1.5px solid #22c55e;color:#22c55e;font-size:12px;display:flex;align-items:center;justify-content:center;font-weight:800;}
.apks-prolabel{position:absolute;right:-8px;bottom:-4px;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;font-size:9px;font-weight:800;letter-spacing:.6px;padding:3px 7px;border-radius:6px;box-shadow:0 3px 8px rgba(0,0,0,.4);}
.apks-lmid{flex:1;min-width:0;}
.apks-ltitle{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.apks-ltitle h3{margin:0;font-size:15.5px;font-weight:700;}
.apks-ltitle h3 a{color:#fff;}
.apks-upd{background:#7c3aed;color:#fff;font-size:9.5px;font-weight:800;letter-spacing:.8px;padding:4px 9px;border-radius:6px;}
.apks-lmeta{color:#7c8aa5;font-size:12.5px;margin-top:5px;}
/* v4.0: Visit button on list rows */
.apks-visit{flex-shrink:0;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:700;font-size:13px;padding:9px 20px;border-radius:999px;white-space:nowrap;box-shadow:0 4px 12px rgba(34,197,94,.35);}
.apks-visit:hover{color:#fff;filter:brightness(1.06);}
.apks-lfeat{display:flex;align-items:center;gap:7px;margin-top:7px;font-size:12.5px;}
.apks-lfeat .v{color:#4ade80;font-weight:700;}
.apks-fdot{width:4px;height:4px;border-radius:50%;background:#4b5a76;}
.apks-lfeat .f{color:#4ade80;font-weight:600;}

/* =Blog cards
-------------------------------------------------------------- */
.apks-bgrid{display:grid;grid-template-columns:1fr;gap:14px;}
@media(min-width:900px){.apks-bgrid{grid-template-columns:repeat(2,1fr);}}
.apks-bcard{background:linear-gradient(180deg,#1a2542,#141d33);border:1px solid rgba(148,163,184,.12);border-radius:20px;overflow:hidden;}
.apks-btop{padding:20px;min-height:120px;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;}
.apks-btop.g1{background:linear-gradient(135deg,#7c3aed,#4c1d95);}
.apks-btop.g2{background:linear-gradient(135deg,#0ea5e9,#1e3a8a);}
.apks-btop.g3{background:linear-gradient(135deg,#22c55e,#14532d);}
.apks-btop.g4{background:linear-gradient(135deg,#f59e0b,#92400e);}
.apks-bcat{background:rgba(0,0,0,.35);color:#fff;font-size:11px;font-weight:700;padding:5px 12px;border-radius:999px;align-self:flex-start;letter-spacing:.5px;}
.apks-btop h3{margin:0;font-size:17px;font-weight:800;color:#fff;}
.apks-btop h3 a{color:#fff;}
.apks-bbot{padding:16px 18px 18px;}
.apks-datepill{display:inline-block;background:rgba(34,197,94,.14);color:#4ade80;font-size:10.5px;font-weight:800;letter-spacing:1px;padding:5px 12px;border-radius:999px;}
.apks-bbot h4{margin:10px 0 6px;font-size:15.5px;}
.apks-bbot h4 a{color:#fff;}
.apks-bbot p{color:#8b98b3;font-size:13.5px;margin:0;}

/* =Category pills
-------------------------------------------------------------- */
.apks-cats{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;}
.apks-cats li a{display:inline-block;background:#16203a;border:1px solid rgba(148,163,184,.16);color:#c6d2e6;font-size:13px;font-weight:600;padding:9px 18px;border-radius:999px;}
.apks-cats li a:hover{border-color:#22c55e;color:#4ade80;}

/* =Ad slot placeholder
-------------------------------------------------------------- */
/* =v3.0: Ad slots (Customizer > apksucess Ads). Rendered only when ad code is set. */
.apks-adwrap{margin:18px 14px;max-width:1052px;text-align:center;overflow:hidden;}
.apks-adwrap img{max-width:100%;height:auto;}
@media(min-width:1080px){.apks-adwrap{margin-left:auto;margin-right:auto;}}

/* =App detail (single)
-------------------------------------------------------------- */
.apks-crumb{padding:16px 14px 0;max-width:1080px;margin:0 auto;color:#5b6b87;font-size:12.5px;}
.apks-crumb a{color:#8b98b3;}
.apks-dhead{display:flex;gap:16px;align-items:center;padding:14px;max-width:1080px;margin:0 auto;}
.apks-dhead h1{color:#fff;font-size:22px;font-weight:800;margin:0;letter-spacing:-.3px;}
/* v3.0: blue verified tick overlapping the app logo's bottom-right corner */
.apks-diwrap{position:relative;flex-shrink:0;}
.apks-vrf-corner{position:absolute;right:-4px;bottom:-4px;width:26px;height:26px;display:block;border-radius:50%;border:2px solid #0a1120;background:#3b82f6;box-shadow:0 3px 10px rgba(0,0,0,.5);}
.apks-vrf-corner svg{width:100%;height:100%;display:block;}
.apks-dhead .dev{color:#7c8aa5;font-size:13px;margin-top:6px;}
.apks-bigdl{display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:800;font-size:17px;padding:16px;border-radius:18px;margin:8px 14px;box-shadow:0 10px 26px rgba(34,197,94,.4);max-width:1052px;}
.apks-bigdl small{display:block;font-size:11.5px;font-weight:600;opacity:.9;}
.apks-bigdl:hover{color:#fff;filter:brightness(1.06);}
.apks-bigdl svg{width:22px;height:22px;flex-shrink:0;}
@media(min-width:1080px){.apks-bigdl{margin-left:auto;margin-right:auto;}}
.apks-dsec h2[id]{scroll-margin-top:84px;}
/* apksucess 1.0: single download button — direct link, no timer */
.apks-dlsec{padding:18px 14px 8px;max-width:1080px;margin:0 auto;text-align:center;scroll-margin-top:84px;}
.apks-bigdl3{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:min(320px,84vw);overflow:hidden;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:800;font-size:19px;padding:17px 48px;border-radius:999px;text-decoration:none;box-shadow:0 10px 28px rgba(34,197,94,.45);cursor:pointer;}
.apks-bigdl3:hover{color:#fff;filter:brightness(1.07);}
.apks-bigdl3 .apks-dlcontent{position:relative;z-index:1;display:inline-flex;align-items:center;gap:10px;}
.apks-bigdl3 .apks-dlcontent svg{width:22px;height:22px;flex-shrink:0;}
.apks-infot{margin:16px 14px;max-width:1052px;background:#141d33;border:1px solid rgba(148,163,184,.12);border-radius:16px;overflow:hidden;}
@media(min-width:1080px){.apks-infot{margin-left:auto;margin-right:auto;}}
.apks-infot table{width:100%;border-collapse:collapse;font-size:13.5px;}
.apks-infot td{padding:11px 16px;border-bottom:1px solid rgba(148,163,184,.09);}
.apks-infot tr:last-child td{border-bottom:0;}
.apks-infot td:first-child{color:#7c8aa5;font-weight:600;width:38%;}
.apks-infot td:last-child{color:#e6ecf7;font-weight:600;}
.apks-dsec{padding:6px 14px 10px;max-width:1080px;margin:0 auto;}
.apks-dsec h2{color:#fff;font-size:18px;font-weight:800;margin:22px 0 10px;}
.apks-dsec p,.apks-dsec li{color:#a9b6cf;font-size:14.5px;}
.apks-dsec ul{list-style:none;padding:0;margin:0;}
.apks-dsec ul li{padding:9px 0 9px 30px;position:relative;border-bottom:1px solid rgba(148,163,184,.09);}
.apks-dsec ul li:before{content:'✓';position:absolute;left:2px;color:#22c55e;font-weight:800;}
.apks-faq{background:#141d33;border:1px solid rgba(148,163,184,.12);border-radius:14px;margin-bottom:10px;overflow:hidden;}
.apks-faq .q{padding:13px 16px;color:#fff;font-weight:700;font-size:14.5px;cursor:pointer;}
.apks-faq .a{padding:0 16px 14px;color:#93a0bb;font-size:13.5px;}

/* =Archive / page head + pagination
-------------------------------------------------------------- */
.apks-pagehead{padding:26px 14px 6px;max-width:1080px;margin:0 auto;}
.apks-pagehead h1{color:#fff;font-size:24px;font-weight:800;letter-spacing:-.3px;margin:0 0 6px;}
.apks-pagehead p{color:#7c8aa5;font-size:13px;margin:0;}
.apks-pagination{display:flex;gap:8px;justify-content:center;padding:22px 14px;flex-wrap:wrap;}
.apks-pagination .page-numbers{min-width:36px;height:36px;padding:0 10px;border-radius:10px;border:1px solid #2e3c5c;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#9fb0c9;}
.apks-pagination .page-numbers.current{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border-color:transparent;}
.apks-pagetext{padding:6px 14px 26px;max-width:1080px;margin:0 auto;color:#a9b6cf;font-size:14.5px;}
.apks-pagetext h2{color:#fff;}

/* =Footer
-------------------------------------------------------------- */
.apks-footer{background:#060b16;padding:30px 14px 16px;margin-top:26px;}
.apks-footgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:1080px;margin:0 auto;}
@media(min-width:900px){.apks-footgrid{grid-template-columns:repeat(4,1fr);}}
.apks-footer h4{color:#fff;font-size:11px;letter-spacing:1.8px;margin:0 0 11px;text-transform:uppercase;}
.apks-footer ul{list-style:none;margin:0;padding:0;}
.apks-footer li{font-size:12.5px;color:#5b6b87;margin-bottom:8px;}
.apks-footer a{color:#5b6b87;}
.apks-footer a:hover{color:#4ade80;}
.apks-fbot{max-width:1080px;margin:20px auto 0;padding-top:13px;border-top:1px solid #141d33;font-size:11.5px;color:#475569;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}
.apks-404{text-align:center;padding:70px 20px;color:#7c8aa5;}
.apks-404 h1{color:#fff;font-size:52px;margin:0 0 10px;}

/* =v5.0: Hero slide banner image — real <img> at natural aspect ratio, no cropping
-------------------------------------------------------------- */
.apks-slide.has-banner{position:relative;padding:0;overflow:hidden;background:#0e1628;}
.apks-slide.has-banner.active{display:block;}
.apks-bannerimg{width:100%;height:auto;display:block;}
.apks-banoverlay{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:16px;padding:44px 20px 18px;background:linear-gradient(to top,rgba(6,10,22,.88) 0%,rgba(6,10,22,.4) 55%,transparent 100%);}
.apks-banoverlay .apks-getbtn{margin-top:0;flex-shrink:0;}

/* =v2.1: Shortcode buttons
-------------------------------------------------------------- */
/* [apksucess_download] standalone pill — same look as theme Download pills */
a.apks-dl:not(.apks-dlpill):not(.apks-bigdl){display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:700;font-size:14px;padding:12px 28px;border-radius:999px;box-shadow:0 6px 16px rgba(34,197,94,.4);text-decoration:none;}
a.apks-dl:not(.apks-dlpill):not(.apks-bigdl):hover{color:#fff;filter:brightness(1.06);}
a.apks-dl:not(.apks-dlpill):not(.apks-bigdl) svg{width:18px;height:18px;flex-shrink:0;}
/* [apksucess_button] outlined secondary pill — direct link, no timer */
.apks-btn-outline{display:inline-flex;align-items:center;gap:8px;background:rgba(34,197,94,.06);border:1.5px solid #22c55e;color:#4ade80;font-weight:700;font-size:14px;padding:11px 26px;border-radius:999px;text-decoration:none;}
.apks-btn-outline:hover{background:rgba(34,197,94,.14);color:#4ade80;}

/* =v2.1: Blog card thumbnails
-------------------------------------------------------------- */
.apks-bthumb{display:block;aspect-ratio:16/9;overflow:hidden;}
.apks-bthumb img{width:100%;height:100%;object-fit:cover;display:block;}
.apks-bmark{display:inline-flex;width:34px;height:34px;margin-bottom:2px;}
.apks-bmark svg{width:100%;height:100%;}

/* =v3.0: Live search overlay
-------------------------------------------------------------- */
.apks-searchov{position:fixed;inset:0;z-index:9998;background:rgba(4,8,18,.82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s;display:flex;justify-content:center;align-items:flex-start;padding:90px 18px 18px;}
.apks-searchov.open{opacity:1;visibility:visible;}
.apks-searchbox{position:relative;width:100%;max-width:560px;transform:translateY(-14px);transition:transform .25s ease;}
.apks-searchov.open .apks-searchbox{transform:none;}
.apks-searchx{position:absolute;top:-46px;right:0;width:36px;height:36px;border-radius:50%;border:0;background:rgba(148,163,184,.14);cursor:pointer;padding:9px;line-height:1;}
.apks-searchx:hover{background:rgba(148,163,184,.28);}
.apks-searchx svg{width:100%;height:100%;}
.apks-searchfield{display:flex;align-items:center;gap:12px;background:#141d33;border:2px solid #2b3a5c;border-radius:18px;padding:14px 18px;transition:border-color .2s,box-shadow .2s;}
.apks-searchfield:focus-within{border-color:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18);}
.apks-searchfield>svg{width:22px;height:22px;flex-shrink:0;}
.apks-searchfield input{flex:1;background:none;border:0;outline:0;color:#fff;font-size:17px;font-family:inherit;min-width:0;}
.apks-searchfield input::placeholder{color:#5b6b87;}
.apks-searchfield input::-webkit-search-cancel-button{display:none;}
.apks-searchres{margin-top:12px;background:#101828;border:1px solid #1e2a47;border-radius:18px;overflow:hidden;max-height:50vh;overflow-y:auto;}
.apks-srow{display:flex;align-items:center;gap:12px;padding:11px 14px;text-decoration:none;border-bottom:1px solid #1a2440;transition:background .15s;}
.apks-srow:last-child{border-bottom:0;}
.apks-srow:hover{background:#16203a;}
.apks-srowth{width:44px;height:44px;border-radius:12px;background:#fff;padding:5px;flex-shrink:0;overflow:hidden;}
.apks-srowth img{width:100%;height:100%;object-fit:contain;display:block;}
.apks-srownone{background:linear-gradient(135deg,#1c2745,#0e1628);}
.apks-srowtx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.apks-srowt{color:#fff;font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.apks-srowc{color:#7c8aa5;font-size:12px;font-weight:600;}
.apks-srowgo{color:#4ade80;font-size:22px;font-weight:700;flex-shrink:0;}
.apks-snone{padding:26px 18px;text-align:center;color:#7c8aa5;font-size:14px;}
.apks-sloading{display:flex;gap:8px;justify-content:center;padding:26px;}
.apks-sloading span{width:9px;height:9px;border-radius:50%;background:#22c55e;animation:apksBounce 1s infinite ease-in-out;}
.apks-sloading span:nth-child(2){animation-delay:.15s;}
.apks-sloading span:nth-child(3){animation-delay:.3s;}
@keyframes apksBounce{0%,100%{transform:translateY(0);opacity:.5;}50%{transform:translateY(-7px);opacity:1;}}

/* Owner request: hide the RTOC plugin's Table of Contents ("Contents") box. The theme has no TOC of its own. Remove this rule to show it again. */
/* Owner request: hide ALL output of the RTOC ("Rich Table of Contents") plugin (inline box + floating button). The theme has no TOC of its own. Remove this rule to show them again. */
[class*="rtoc"],[id*="rtoc"]{display:none!important;}
