
/* v1.0.1 performance/modal hotfix */
[hidden] { display: none !important; }
html.modal-open, html.modal-open body { overflow: hidden; }
#detailAppIconImg { width: 100%; height: 100%; object-fit: cover; }
:root {
  --ink: #eefcf3;
  --muted: #8aa497;
  --green: #34e878;
  --green-dark: #14ba56;
  --navy: #07140f;
  --panel: #0c1d16;
  --panel-2: #10271d;
  --line: rgba(133, 255, 178, 0.13);
  --accent: #34e878;
  --accent-dark: #14ba56;
  --accent-bright: #3ff07f;
  --accent-lime: #5df03d;
  --accent-border: #62ef5e;
  --accent-deep: #0d8a3f;
  --accent-soft: #9fe8bb;
  --accent-rgb: 52, 232, 120;
  --accent-lime-rgb: 93, 240, 61;
  --accent-dark-rgb: 20, 186, 86;
  --accent-ink: #06110b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #06101c;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.site-shell { min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 74% 12%, rgba(var(--accent-rgb), .11), transparent 24rem), linear-gradient(180deg, #0a263a 0, #071a2b 54%, #050e19 100%); }
.container { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }

.ticker { min-height: 42px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #04100b 0%, #071a12 50%, #04100b 100%); position: relative; }
.ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,16,11,.9) 0, transparent 8%, transparent 92%, rgba(4,16,11,.9) 100%); }
.ticker-inner { width: min(1100px, 100%); min-height: 42px; margin: auto; display: flex; align-items: stretch; overflow: hidden; }
.ticker-label { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 14px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-dark) 100%); font-size: 11px; font-weight: 900; letter-spacing: .14em; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: 0 0 18px rgba(var(--accent-rgb), .35); }
.ticker-label i { font-size: 13px; animation: ticker-buzz 2.4s ease-in-out infinite; }
@keyframes ticker-buzz { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(0); } }
.ticker-track { flex: 1; display: flex; align-items: center; overflow: hidden; white-space: nowrap; color: #cfe8d8; font-size: 12.5px; }
.ticker-track span { display: inline-block; min-width: 100%; padding-left: 100%; animation: ticker 8s linear infinite; }
.ticker-track span::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); margin-right: 14px; font-size: 10px; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* PWA install banner */
.pwa-install-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 16px; background: linear-gradient(135deg, rgba(var(--accent-dark-rgb), .16), rgba(7, 20, 15, .6)); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); animation: pwa-slide-in .45s ease; }
@keyframes pwa-slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.pwa-install-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--accent-ink); font-size: 20px; box-shadow: 0 4px 14px rgba(var(--accent-rgb), .4); }
.pwa-install-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pwa-install-text strong { font-size: 13.5px; color: #fff; }
.pwa-install-text small { font-size: 11.5px; color: var(--muted); }
.pwa-install-btn { flex: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); color: var(--accent-ink); font-size: 12px; font-weight: 900; letter-spacing: .06em; cursor: pointer; box-shadow: 0 4px 14px rgba(var(--accent-rgb), .35); }
.pwa-install-btn:active { transform: scale(.96); }
.pwa-install-close { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--muted); cursor: pointer; font-size: 12px; }
.pwa-install-close:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(6, 15, 26, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(var(--accent-lime-rgb), .12); }
.site-header-inner { width: min(1100px, calc(100% - 32px)); height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { position: relative; width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 15px; background: #10261a; color: var(--accent); font-size: 24px; font-weight: 900; box-shadow: 0 0 24px rgba(var(--accent-rgb), .13); }
.brand-logo img, .app-icon img { object-fit: cover; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 22px; letter-spacing: -.03em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.share-button { height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: #0e2118; font-size: 11px; font-weight: 800; letter-spacing: .08em; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.share-button span { color: var(--accent); margin-right: 5px; }
.share-button:hover { box-shadow: 0 0 20px rgba(var(--accent-rgb), .2); }
.share-button:active { transform: scale(.94); }
.share-button.shared { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 20px rgba(var(--accent-rgb), .25); }

.hero { position: relative; aspect-ratio: 16 / 7.8; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), .24); border-radius: 28px; background: #0c2333; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.hero > img { object-fit: cover; object-position: center; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.quick-button { min-height: 82px; padding: 16px 22px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); text-align: left; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.quick-button:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .35); background: var(--panel-2); }
.quick-button > span:first-child { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: rgba(var(--accent-rgb), .11); font-size: 23px; }
.quick-button > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.quick-button strong { font-size: 14px; letter-spacing: .05em; }
.quick-button small { color: var(--muted); font-size: 11px; }
.community-button > span:first-child { color: #55b8ff; background: rgba(65, 163, 255, .11); }

.catalog-section { padding-block: 38px 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2, .top-modal h2 { margin: 7px 0 0; font-size: 29px; letter-spacing: -.035em; }
.app-count { color: var(--muted); font-size: 12px; }
.search-box { height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: #0a1913; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .06); }
.search-box > svg { width: 20px; color: #769084; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #688075; }
.search-box button { width: 28px; height: 28px; padding: 5px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.category-list { margin: 16px 0 25px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-list button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: #0b1c14; color: #a0b6a9; font-size: 12px; cursor: pointer; }
.category-list button i { font-size: 11px; }
.category-list button.active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.catalog-title-row { margin: 28px 0 20px; display: grid; grid-template-columns: 52px auto minmax(40px, 1fr); align-items: center; gap: 14px; }
.catalog-title-row > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-dark) 60%, var(--accent-deep) 100%); font-size: 23px; color: var(--accent-ink); box-shadow: 0 6px 20px rgba(var(--accent-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.catalog-title-row > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 48%, transparent 62%); animation: title-shine 3.2s ease-in-out infinite; }
@keyframes title-shine { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
.catalog-title-row > span i { color: var(--accent-ink); filter: drop-shadow(0 1px 1px rgba(255,255,255,.3)); animation: rocket-float 2.6s ease-in-out infinite; }
@keyframes rocket-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-3px) rotate(-2deg); } }
.catalog-title-row h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: .02em; background: linear-gradient(180deg, #ffffff 30%, var(--accent-soft) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 2px 18px rgba(var(--accent-rgb), .15); }
.catalog-title-row > i { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), .15) 70%, transparent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .25); }
.app-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.app-card { position: relative; min-width: 0; min-height: 270px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), .75); border-radius: 21px; background: radial-gradient(circle at 50% 16%, rgba(var(--accent-rgb), .16), transparent 45%), linear-gradient(180deg, #102b37, #071521); box-shadow: 0 10px 0 #06111c, 0 14px 32px rgba(0, 0, 0, .28); text-align: center; transition: transform .2s, border-color .2s, box-shadow .2s; content-visibility: auto; contain-intrinsic-size: auto 270px; }
.app-card:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(var(--accent-lime-rgb), .85); box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 24px rgba(var(--accent-lime-rgb), .18); }
.app-card-main { width: 100%; flex: 1; min-width: 0; padding: 32px 10px 12px; display: flex; flex-direction: column; align-items: center; border: 0; background: transparent; text-align: center; cursor: pointer; }
.app-icon { position: relative; width: 90px; height: 90px; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--accent-border); border-radius: 22px; background: #183426; color: var(--accent); font-size: 27px; font-weight: 900; box-shadow: inset 0 0 0 3px rgba(6, 18, 28, .78), 0 0 22px rgba(var(--accent-rgb), .13); }
.app-card .label { position: absolute; z-index: 2; top: 10px; left: 10px; }
.label {
  position: relative;
  overflow: hidden;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 6px;
  padding: 5px 10px 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #ecf9ff;
  background: linear-gradient(135deg, rgba(39,160,236,.96), rgba(30,101,211,.96));
  box-shadow: 0 7px 20px rgba(16, 108, 200, .22), inset 0 1px rgba(255,255,255,.16);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .055em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  animation: badge-pulse 2s ease-in-out infinite;
}
.label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: badge-shine 2.6s ease-in-out infinite;
}
.label i {
  animation: badge-icon-wiggle 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@keyframes badge-shine {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}
@keyframes badge-icon-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-18deg) scale(1.15); }
  50% { transform: rotate(14deg); }
  75% { transform: rotate(-8deg); }
}
.label i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 8px;
}
.label-populer {
  color: #fff9e9;
  border-color: rgba(255, 201, 109, .38);
  background: linear-gradient(135deg, #ffad32, #f26b21 72%);
  box-shadow: 0 7px 20px rgba(242, 107, 33, .24), inset 0 1px rgba(255,255,255,.18);
}
.label-gacor {
  color: #fff0f4;
  border-color: rgba(255, 119, 153, .4);
  background: linear-gradient(135deg, #ff5d87, #c92e62 72%);
  box-shadow: 0 7px 20px rgba(201, 46, 98, .25), inset 0 1px rgba(255,255,255,.18);
}
.app-card-main > strong { width: 100%; margin-top: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; }
.app-card-main > small { width: 100%; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8ea1b5; font-size: 12px; }
.app-card-download { position: relative; overflow: hidden; width: calc(100% - 22px); min-height: 46px; margin: 0 11px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); color: var(--accent-ink); font-size: 12px; font-weight: 900; letter-spacing: .02em; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.app-card-download:hover { background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .45); }
.app-card-download:active { transform: scale(.97); }
.app-card-download::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%); transform: translateX(-120%); animation: download-shine 3s ease-in-out infinite; }
@keyframes download-shine { 0% { transform: translateX(-120%); } 50%, 100% { transform: translateX(120%); } }

/* Back to top */
.back-to-top { position: fixed; right: 18px; bottom: 22px; z-index: 45; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(var(--accent-lime-rgb), .4); border-radius: 50%; background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); color: var(--accent-ink); font-size: 18px; cursor: pointer; box-shadow: 0 8px 24px rgba(var(--accent-dark-rgb), .45); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:active { transform: scale(.92); }

/* Notification prompt */
.loading-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.loading-grid span { height: 270px; border-radius: 21px; background: linear-gradient(90deg, #0b2130 25%, #103345 50%, #0b2130 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { padding: 64px 20px; display: flex; flex-direction: column; align-items: center; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); text-align: center; }
.empty-state > span { color: var(--accent); font-size: 45px; }
.empty-state strong { margin-top: 8px; color: var(--ink); }
.empty-state p { margin: 8px 0 0; font-size: 12px; }

.stats { margin-bottom: 78px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats article { position: relative; overflow: hidden; min-height: 150px; padding: 22px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #2b4861; border-bottom: 5px solid var(--accent-bright); border-radius: 22px; background: linear-gradient(180deg, #122c41 0%, #0d2334 100%); text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.stats article::before { content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-lime-rgb), .14), transparent 70%); }
.stats article:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.stat-icon { width: 46px; height: 46px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--accent-lime-rgb), .22), rgba(var(--accent-lime-rgb), .06)); border: 1px solid rgba(var(--accent-lime-rgb), .3); color: var(--accent-lime); font-size: 19px; }
.stats strong { color: var(--accent-lime); font-size: 32px; }
.stats small { margin-top: 13px; color: #b5c2d4; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
footer { border-top: 1px solid rgba(var(--accent-lime-rgb), .18); background: linear-gradient(180deg, #050f1a 0%, #030a12 100%); position: relative; overflow: hidden; }
footer::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-lime-rgb), .5), transparent); }
.footer-inner { min-height: 150px; padding-block: 36px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { max-width: 460px; }
.footer-brand strong { display: inline-flex; align-items: center; gap: 10px; color: #eefcf3; font-size: 20px; letter-spacing: .04em; }
.footer-brand strong i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); color: var(--accent-ink); font-size: 15px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.footer-community { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(var(--accent-lime-rgb), .1); border: 1px solid rgba(var(--accent-lime-rgb), .3); color: var(--accent-lime); font-size: 12px; font-weight: 800; }
.footer-community:hover { background: rgba(var(--accent-lime-rgb), .2); }
.footer-inner > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: #70877b; font-size: 11px; }
.vihost-badge { border-top:1px solid var(--line); background:#04090f; }
.vihost-badge-inner { padding:16px 0 20px; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:12.5px; text-align:center; }
.vihost-badge-inner a { padding:10px 20px; border-radius:999px; background:linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); color:var(--accent-ink); font-weight:900; font-size:12px; letter-spacing:.04em; box-shadow:0 4px 14px rgba(var(--accent-rgb), .35); }

.footer-made { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-lime); font-weight: 700; }
.footer-made i { font-size: 10px; }
.footer-inner a:hover { color: var(--accent); }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; padding: 20px; display: grid; place-items: center; overflow-y: auto; background: rgba(1, 8, 4, .82); animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.detail-modal, .top-modal { position: relative; width: min(470px, 100%); border: 1px solid rgba(var(--accent-rgb), .18); border-radius: 24px; background: linear-gradient(145deg, #10271c, #08150f); box-shadow: 0 32px 100px rgba(0, 0, 0, .55); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(12px) scale(.985); opacity: .5; } }
.detail-modal { padding: 27px; }
.modal-close, .top-modal-head > button { width: 35px; height: 35px; padding: 8px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .035); color: #8ba296; cursor: pointer; }
.modal-close { position: absolute; z-index: 2; top: 18px; right: 18px; }
.detail-head { padding-right: 34px; display: flex; align-items: center; gap: 18px; }
.detail-icon { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 21px; }
.detail-head h2 { margin: 4px 0 4px; font-size: 24px; letter-spacing: -.035em; }
.detail-head p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-stats { margin: 24px 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 15px; background: rgba(3, 12, 8, .32); }
.detail-stats span { padding: 15px 7px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.detail-stats span + span { border-left: 1px solid var(--line); }
.detail-stats strong { font-size: 13px; }
.detail-stats small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-actions button, .detail-actions a { height: 41px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .03); color: #b9ccc1; font-size: 11px; cursor: pointer; }
.download-button { height: 52px; margin-top: 15px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); color: var(--accent-ink); font-size: 13px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 12px 28px rgba(var(--accent-rgb), .18); }
.vpn-link { margin-top: 13px; display: block; color: #79a98d; font-size: 10px; text-align: center; text-decoration: underline; }
.rotation-note { margin: 10px 0 0; color: #5f786b; font-size: 9px; text-align: center; }
.top-modal { width: min(630px, 100%); max-height: min(840px, calc(100dvh - 32px)); overflow-y: auto; border-color: rgba(var(--accent-rgb), .52); border-radius: 27px; background: linear-gradient(180deg, #0e2a3d 0%, #0a2030 100%); }
.top-modal-head { position: sticky; z-index: 4; top: 0; padding: 20px 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(var(--accent-lime-rgb), .15); background: rgba(14, 42, 61, .92); backdrop-filter: blur(10px); }
.top-modal-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; letter-spacing: .02em; background: linear-gradient(180deg, #fff 30%, var(--accent-soft) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.top-modal-head h2 i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #ffd45a, #f59e0b); color: #3a2703; font-size: 19px; -webkit-text-fill-color: #3a2703; box-shadow: 0 6px 18px rgba(245, 158, 11, .4); animation: trophy-glow 2.4s ease-in-out infinite; }
@keyframes trophy-glow { 0%, 100% { box-shadow: 0 6px 18px rgba(245, 158, 11, .4); transform: scale(1); } 50% { box-shadow: 0 6px 26px rgba(245, 158, 11, .65); transform: scale(1.06); } }
.top-modal-head > button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.top-modal-head > button:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.top-winner { position: relative; overflow: hidden; margin: 26px 28px 18px; padding: 34px 20px 28px; display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(245, 182, 35, .55); border-radius: 25px; background: radial-gradient(circle at 50% 0%, rgba(245, 182, 35, .16), transparent 60%), linear-gradient(180deg, #173640, #122b35); text-align: center; }
.top-winner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 215, 90, .12) 50%, transparent 60%); animation: winner-shine 3.4s ease-in-out infinite; }
@keyframes winner-shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.top-winner .app-icon { width: 124px; height: 124px; border: 3px solid #f5b623; border-radius: 30px; box-shadow: 0 0 34px rgba(245, 182, 35, .45); animation: winner-float 3s ease-in-out infinite; }
@keyframes winner-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.top-winner h3 { margin: 18px 0 14px; font-size: 25px; font-weight: 800; }
.top-winner > span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: 999px; background: linear-gradient(135deg, #ffd45a, #f59e0b); color: #3a2703; font-size: 12px; font-weight: 950; letter-spacing: .08em; box-shadow: 0 6px 20px rgba(245, 158, 11, .45); animation: badge-pulse 2s ease-in-out infinite; }
.top-winner > button { position: relative; overflow: hidden; min-height: 52px; margin-top: 18px; padding: 0 28px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: var(--accent-ink); font-size: 14px; font-weight: 950; box-shadow: 0 10px 28px rgba(var(--accent-rgb), .3); cursor: pointer; transition: transform .15s; }
.top-winner > button:hover { transform: scale(1.04); }
.top-winner > button:active { transform: scale(.97); }
.top-list { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 11px; }
.top-list > button { width: 100%; min-height: 88px; padding: 11px 16px; display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) 72px; gap: 12px; align-items: center; border: 1px solid transparent; border-radius: 20px; background: linear-gradient(180deg, #0a2334, #071e2e); text-align: left; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.top-list > button:hover { transform: translateX(4px); border-color: rgba(var(--accent-lime-rgb), .3); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.top-list .rank { width: 40px; height: 40px; margin: auto; display: grid; place-items: center; border-radius: 13px; font-size: 15px; font-weight: 950; }
.top-list > button:nth-child(1) .rank { background: linear-gradient(135deg, #e8e8e8, #9aa3ad); color: #2b3138; box-shadow: 0 4px 14px rgba(180, 190, 200, .3); }
.top-list > button:nth-child(2) .rank { background: linear-gradient(135deg, #f0b35e, #b0701f); color: #3a2703; box-shadow: 0 4px 14px rgba(240, 179, 94, .3); }
.top-list > button:nth-child(n+3) .rank { background: rgba(var(--accent-lime-rgb), .1); border: 1px solid rgba(var(--accent-lime-rgb), .25); color: var(--accent-lime); }
.top-list .app-icon { width: 64px; height: 64px; border: 0; border-radius: 16px; font-size: 19px; }
.top-list button > span:nth-child(3) { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.top-list button > span:nth-child(3) strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.top-list small { display: inline-flex; align-items: center; gap: 5px; color: #8297aa; font-size: 11px; }
.top-list small::before { content: "\f019"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; color: var(--accent-lime); }
.top-list b { min-height: 42px; display: grid; place-items: center; border-radius: 999px; background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark)); color: var(--accent-ink); font-size: 12px; font-weight: 950; letter-spacing: .06em; box-shadow: 0 4px 14px rgba(var(--accent-dark-rgb), .35); transition: transform .15s; }
.top-list > button:hover b { transform: scale(1.06); }

@media (max-width: 720px) {
  .container, .site-header-inner { width: min(100% - 22px, 1100px); }
  .site-header-inner { height: 74px; }
  .brand-logo { width: 44px; height: 44px; border-radius: 13px; }
  .brand strong { font-size: 19px; }
  .brand small { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .share-button { padding: 0 11px; font-size: 9px; }
  .hero { aspect-ratio: 16 / 9; border-radius: 21px; }
  .quick-actions { gap: 9px; }
  .quick-button { min-height: 72px; padding: 12px; gap: 10px; border-radius: 15px; }
  .quick-button > span:first-child { width: 40px; height: 40px; font-size: 19px; }
  .quick-button strong { font-size: 11px; }
  .quick-button small { font-size: 9px; }
  .catalog-section { padding-top: 34px; }
  .section-heading h2 { font-size: 25px; }
  .app-grid, .loading-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .app-card { min-height: 202px; border-radius: 16px; }
  .app-card-main { padding: 25px 5px 6px; }
  .app-card .app-icon { width: 62px; height: 62px; border-radius: 16px; }
  .app-card-main > strong { margin-top: 9px; font-size: 12px; }
  .app-card-main > small { margin-top: 4px; font-size: 9px; }
  .app-card-download { min-height: 35px; margin: 0 7px 8px; width: calc(100% - 14px); font-size: 9px; }
  .app-card .label { top: 7px; left: 7px; }
  .loading-grid span { height: 202px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats article { min-height: 128px; padding: 12px 6px; border-radius: 18px; }
  .stats strong { font-size: 27px; }
  .stats small { font-size: 9px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-inner > div:last-child { width: 100%; align-items: center; text-align: center; }
  .top-modal { border-radius: 23px; }
  .top-modal-head { padding: 16px 18px; }
  .top-modal-head h2 { font-size: 18px; }
  .top-winner { margin: 18px 18px 14px; padding: 25px 14px; }
  .top-winner .app-icon { width: 102px; height: 102px; }
  .top-winner h3 { font-size: 21px; }
  .top-list { padding: 0 18px 18px; }
  .top-list > button { min-height: 76px; padding: 9px 11px; grid-template-columns: 34px 54px minmax(0, 1fr) 58px; gap: 9px; border-radius: 16px; }
  .top-list .app-icon { width: 54px; height: 54px; border-radius: 13px; }
}

@media (max-width: 430px) {
  .catalog-title-row { grid-template-columns: 44px auto minmax(24px, 1fr); gap: 10px; }
  .catalog-title-row > span { width: 44px; height: 44px; border-radius: 12px; }
  .catalog-title-row h2 { font-size: 21px; }
  .detail-modal { padding: 22px 17px; }
  .detail-head { gap: 13px; }
  .detail-icon { width: 74px; height: 74px; }
  .detail-head h2 { font-size: 20px; }
}

/* Admin */
.admin-loading, .admin-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 50% 0, rgba(42, 222, 108, .12), transparent 26rem), #07120d; }
.admin-loading { align-content: center; color: var(--muted); font-size: 12px; }
.admin-loading span { width: 36px; height: 36px; margin: auto; border: 3px solid rgba(var(--accent-rgb), .14); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-card { width: min(410px, calc(100% - 30px)); padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #10251b, #09160f); box-shadow: 0 35px 100px rgba(0,0,0,.45); text-align: center; }
.login-mark { width: 58px; height: 58px; margin: 0 auto 25px; display: grid; place-items: center; border-radius: 17px; background: var(--accent); color: var(--accent-ink); font-size: 26px; font-weight: 950; box-shadow: 0 0 35px rgba(var(--accent-rgb),.2); }
.admin-eyebrow { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.login-card h1 { margin: 8px 0; font-size: 31px; letter-spacing: -.045em; }
.login-card > p { margin: 0 auto 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-card form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-card form > label { color: #a7bcb0; font-size: 10px; font-weight: 700; }
.login-card input { width: 100%; height: 49px; margin-top: 7px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #06100b; color: var(--ink); }
.login-card input:focus { border-color: var(--accent); }
.login-card form > button { height: 49px; border: 0; border-radius: 12px; background: var(--accent); color: #06110a; font-size: 11px; font-weight: 900; letter-spacing: .05em; cursor: pointer; }
.login-card > a { margin-top: 20px; display: inline-block; color: #789083; font-size: 10px; }
.admin-error { padding: 11px 13px; border: 1px solid rgba(255, 92, 109, .25); border-radius: 10px; background: rgba(255, 77, 96, .08); color: #ff9aa6; font-size: 11px; line-height: 1.5; }

.admin-shell { min-height: 100vh; background: #08140e; }
.admin-header { position: sticky; z-index: 20; top: 0; height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(7, 18, 13, .94); backdrop-filter: blur(14px); }
.admin-brand { display: flex; align-items: center; gap: 11px; }
.admin-brand > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: #06110a; font-weight: 950; }
.admin-brand div { display: flex; flex-direction: column; }
.admin-brand strong { font-size: 14px; }
.admin-brand small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.admin-header > div { display: flex; align-items: center; gap: 9px; }
.admin-header > div a, .admin-header > div button { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #99aea2; font-size: 10px; cursor: pointer; }
.admin-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.admin-nav { padding: 25px 14px; border-right: 1px solid var(--line); background: #07110c; }
.admin-nav button { width: 100%; height: 45px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: transparent; color: #7e9689; font-size: 12px; text-align: left; cursor: pointer; }
.admin-nav button.active { background: rgba(var(--accent-rgb),.1); color: var(--accent); font-weight: 700; }
.admin-content { position: relative; width: min(1050px, 100%); padding: 42px clamp(20px, 4vw, 55px) 80px; }
.admin-notice { position: fixed; z-index: 70; top: 86px; right: 24px; padding: 13px 16px; border: 1px solid rgba(var(--accent-rgb),.25); border-radius: 11px; background: #10281b; color: #7df2a8; font-size: 11px; box-shadow: 0 15px 40px rgba(0,0,0,.3); }
.admin-error.dismissible { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.admin-error.dismissible button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-title-row h1 { margin: 7px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.admin-title-row p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-primary { min-height: 42px; padding: 0 17px; border: 0 !important; border-radius: 10px; background: var(--accent) !important; color: #06110a !important; font-size: 10px; font-weight: 900; letter-spacing: .04em; cursor: pointer; }
.admin-primary:disabled { opacity: .55; cursor: wait; }
.admin-search { height: 46px; margin-bottom: 14px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: #0a1912; color: #72897d; }
.admin-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.admin-app-list { display: flex; flex-direction: column; gap: 8px; }
.admin-app-row { min-width: 0; padding: 12px 14px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 100px auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #0b1c14; }
.admin-app-icon { position: relative; width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #173425; color: var(--accent); font-weight: 900; }
.admin-app-icon img { object-fit: cover; }
.admin-top-rank { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 16px; font-weight: 950; background: rgba(var(--accent-lime-rgb), .1); border: 1px solid rgba(var(--accent-lime-rgb), .3); color: var(--accent-lime); }
.admin-top-rank.rank-1 { background: linear-gradient(135deg, #ffd45a, #f59e0b); border-color: transparent; color: #3a2703; box-shadow: 0 4px 14px rgba(245, 158, 11, .4); }
.admin-top-rank.rank-2 { background: linear-gradient(135deg, #e8e8e8, #9aa3ad); border-color: transparent; color: #2b3138; }
.admin-top-rank.rank-3 { background: linear-gradient(135deg, #f0b35e, #b0701f); border-color: transparent; color: #3a2703; }
/* Statistik */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #10271c, #0b1a13); }
.stat-card > span { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .25); color: var(--accent); font-size: 18px; }
.stat-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-card strong { font-size: 20px; color: #fff; }
.stat-card small { font-size: 10.5px; color: var(--muted); }
.chart-wrap { position: relative; height: 260px; }
.stat-top-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.stat-top-row:last-child { border-bottom: 0; }
.stat-top-row strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.stat-top-row > span:last-child { font-size: 11.5px; color: var(--muted); }
/* Link check */
.lc-progress { position: relative; height: 34px; margin-bottom: 16px; border-radius: 12px; background: #0b1a13; border: 1px solid var(--line); overflow: hidden; }
.lc-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-dark), var(--accent-bright)); transition: width .3s; }
.lc-progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.lc-links { display: flex; flex-direction: column; gap: 3px; }
/* Statistik per aplikasi */
.stat-app-picker select { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #0b1a13; color: #eafff2; font-size: 13px; font-weight: 600; }
.admin-app-info { min-width: 0; display: flex; flex-direction: column; }
.admin-app-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.admin-app-info span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-app-info small { width: fit-content; margin-top: 6px; padding: 3px 6px; border-radius: 5px; background: rgba(var(--accent-rgb),.08); color: #62d88d; font-size: 8px; }
.admin-count { display: flex; flex-direction: column; text-align: right; }
.admin-count strong { font-size: 12px; }
.admin-count span { color: var(--muted); font-size: 8px; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-row-actions button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); color: #9db2a6; font-size: 9px; cursor: pointer; }
.admin-row-actions .danger { color: #ff8492; }

.settings-form { display: flex; flex-direction: column; gap: 14px; }
.settings-form > .admin-title-row { margin-bottom: 12px; }
.settings-card { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #0b1c14; }
.settings-card h2 { margin: 0 0 19px; font-size: 16px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; color: #9fb3a7; font-size: 9px; font-weight: 700; letter-spacing: .015em; }
.admin-field input, .admin-field select, .admin-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #07130d; color: var(--ink); font-size: 11px; }
.admin-field input, .admin-field select { height: 43px; padding: 0 12px; }
.admin-field textarea { padding: 11px 12px; resize: vertical; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: rgba(var(--accent-rgb),.6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.055); }
.media-input { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.media-input > label { height: 43px; padding: 0 13px; display: grid; place-items: center; border: 1px solid rgba(var(--accent-rgb),.25); border-radius: 10px; background: rgba(var(--accent-rgb),.08); color: var(--accent); font-size: 9px; font-weight: 900; cursor: pointer; }
.media-input > label input { display: none; }
.admin-modal-backdrop { position: fixed; z-index: 60; inset: 0; padding: 18px; display: grid; place-items: center; overflow-y: auto; background: rgba(1,7,4,.86); backdrop-filter: blur(8px); }
.app-editor { width: min(760px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(64,226,120,.2); border-radius: 22px; background: #0b1b13; box-shadow: 0 35px 100px rgba(0,0,0,.6); }
.editor-head { padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.editor-head h2 { margin: 6px 0 0; font-size: 22px; }
.editor-head > button { width: 34px; height: 34px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.editor-body { padding: 22px 24px; overflow-y: auto; }
.rotation-box { margin: 6px 0 17px; padding: 17px; border: 1px solid rgba(var(--accent-rgb),.2); border-radius: 14px; background: rgba(var(--accent-rgb),.045); }
.rotation-box h3 { margin: 5px 0; font-size: 15px; }
.rotation-box > div:first-child p { margin: 0 0 15px; color: var(--muted); font-size: 9px; }
.rotation-box .admin-field { margin-bottom: 0; }
.form-grid.compact { margin-top: 4px; }
.switch-row { display: flex; gap: 20px; margin-top: 2px; }
.switch-row label { display: flex; align-items: center; gap: 8px; color: #a1b5aa; font-size: 10px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row label > span { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #263b30; transition: background .2s; }
.switch-row label > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #71877b; transition: transform .2s, background .2s; }
.switch-row input:checked + span { background: rgba(var(--accent-rgb),.25); }
.switch-row input:checked + span::after { transform: translateX(15px); background: var(--accent); }
.editor-footer { padding: 15px 24px; display: flex; justify-content: end; gap: 8px; border-top: 1px solid var(--line); background: #08160f; }
.editor-footer > button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #8ea398; font-size: 10px; font-weight: 800; cursor: pointer; }

@media (max-width: 760px) {
  .admin-header { height: 62px; padding: 0 12px; }
  .admin-header > div a { display: none; }
  /* Navigasi jadi bar horizontal yang bisa di-scroll, nempel di bawah header */
  .admin-layout { display: block; min-height: calc(100vh - 62px); }
  .admin-nav { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(7, 17, 12, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { flex: none; }
  .admin-nav button { width: auto; height: 42px; padding: 0 15px; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .admin-nav button span { display: inline; font-size: 11px; }
  .admin-nav button.active { border-color: rgba(var(--accent-rgb), .5); }
  .admin-content { padding: 22px 14px 70px; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
  .admin-title-row h1 { font-size: 23px; }
  .admin-primary { min-height: 44px; padding: 0 18px; font-size: 11px; }
  .admin-app-row { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .admin-app-icon { width: 45px; height: 45px; }
  .admin-count { display: none; }
  .admin-row-actions { flex-direction: row; flex-wrap: wrap; }
  .admin-row-actions button { min-height: 38px; padding: 0 14px; font-size: 11px; }
  .form-grid.two { grid-template-columns: 1fr; gap: 0; }
  .settings-card { padding: 18px; }
  .app-editor { max-height: calc(100vh - 20px); }
  .editor-head, .editor-body, .editor-footer { padding-inline: 16px; }
  /* Kartu statistik: 2 kolom rapi */
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 13px 12px; gap: 10px; }
  .stat-card > span { width: 38px; height: 38px; font-size: 16px; border-radius: 11px; }
  .stat-card strong { font-size: 17px; }
  .stat-card small { font-size: 9.5px; }
  .chart-wrap { height: 210px; }
  .admin-top-rank { width: 34px; height: 34px; font-size: 14px; }
  .switch-row { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* PHP native compatibility */
.brand-logo img,.app-icon img,.admin-app-icon img{width:100%;height:100%;display:block;object-fit:cover}
.hero img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.site-header .brand{min-width:0}
.site-header .brand>span:last-child{min-width:0}
.app-card[hidden]{display:none!important}
.category-list button{white-space:nowrap}
.stats.stats-3{grid-template-columns:repeat(3,1fr)}
.flash{position:fixed;z-index:90;top:82px;right:20px;padding:12px 15px;border:1px solid rgba(var(--accent-rgb),.25);border-radius:11px;background:#10281b;color:#7df2a8;font-size:11px;box-shadow:0 15px 40px rgba(0,0,0,.3)}
.admin-empty{padding:35px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}
@media(max-width:720px){.stats.stats-3{grid-template-columns:repeat(2,1fr)}}

@media (max-width: 720px) {
  .modal-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .app-card { box-shadow: 0 7px 0 #06111c, 0 9px 20px rgba(0,0,0,.20); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .detail-modal, .top-modal { animation: none !important; }
}

/* =========================================================
   v1.0.2 detail modal + click-through + incremental catalog
   ========================================================= */

.modal-backdrop {
  overscroll-behavior: contain;
  touch-action: manipulation;
}

/* Font Awesome icon fixes for elements that previously used emoji. */
.quick-button > span:first-child i,
.catalog-title-row > span i {
  width: auto;
  height: auto;
  background: none;
  font-size: 1em;
}
.catalog-title-row > span i { color: var(--accent-ink); }
.catalog-title-row > i { height: 3px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .62), transparent); }
.top-modal-head h2 i { margin-right: 0; }
.top-winner > span i { margin-right: 5px; }
.top-winner > button i { margin-right: 7px; }

/* Cards are now inserted batch-by-batch. */
.app-grid:empty { min-height: 0; }
.app-card-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.app-card-download i { font-size: .92em; }

.load-more-area {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}
.load-more-area > small {
  color: #728b7e;
  font-size: 11px;
}
#loadMoreButton {
  min-width: 190px;
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(var(--accent-rgb), .26);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(32, 86, 58, .74), rgba(16, 50, 34, .88));
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 28px rgba(0,0,0,.14);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
#loadMoreButton:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), .52);
  background: linear-gradient(180deg, rgba(38, 104, 68, .82), rgba(18, 59, 39, .94));
}
#loadMoreButton:active { transform: translateY(1px); }
#loadMoreButton i { color: var(--accent); }

.empty-state > i {
  color: var(--accent);
  font-size: 38px;
}

/* Detail modal v2 */
.detail-modal-v2 {
  width: min(510px, 100%);
  max-height: calc(100dvh - 30px);
  padding: 25px;
  overflow: auto;
  isolation: isolate;
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% -5%, rgba(var(--accent-rgb), .16), transparent 30%),
    linear-gradient(155deg, #102a1e 0%, #0a1d15 52%, #07140f 100%);
  box-shadow: 0 34px 110px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.035);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), .28) transparent;
}
.detail-modal-v2::-webkit-scrollbar { width: 5px; }
.detail-modal-v2::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), .28); border-radius: 999px; }
.detail-glow {
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  top: -120px;
  left: -70px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .09);
  filter: blur(8px);
  pointer-events: none;
}
.detail-modal-v2 .modal-close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-color: rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  color: #9cb1a5;
  font-size: 17px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.detail-modal-v2 .modal-close:hover {
  background: rgba(255,255,255,.085);
  color: #fff;
  transform: rotate(4deg);
}

.detail-head-v2 {
  padding: 4px 50px 19px 0;
  display: flex;
  align-items: center;
  gap: 17px;
}
.detail-icon-v2 {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border: 2px solid rgba(var(--accent-rgb), .88);
  border-radius: 24px;
  background: #0b2117;
  box-shadow: inset 0 0 0 3px rgba(4,14,9,.72), 0 12px 32px rgba(var(--accent-rgb), .12);
}
.detail-identity { min-width: 0; flex: 1; }
.detail-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.detail-badges .label { margin: 0; }
.detail-category {
  max-width: 155px;
  min-height: 28px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--accent-dark-rgb), .18), rgba(255,255,255,.035));
  color: #a9c8b5;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-category i { color: var(--accent-bright); font-size: 8px; }
.detail-category span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.detail-identity h2 {
  margin: 8px 0 5px;
  overflow-wrap: anywhere;
  color: #f0fff5;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.detail-identity p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #819b8d;
  font-size: 11px;
}
.detail-identity p i { color: var(--accent-bright); font-size: 10px; }

.detail-stats-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
}
.detail-stats-v2 > div {
  min-width: 0;
  min-height: 76px;
  padding: 11px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(var(--accent-rgb), .10);
  border-radius: 15px;
  background: rgba(3, 14, 9, .34);
}
.detail-stats-v2 > div > i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), .09);
  color: var(--accent-bright);
  font-size: 11px;
}
.detail-stats-v2 span { min-width: 0; display: flex; flex-direction: column; }
.detail-stats-v2 strong {
  overflow: hidden;
  color: #effff4;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-stats-v2 small { margin-top: 3px; color: #6f897b; font-size: 8px; }

.detail-actions-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.detail-actions-v2 button,
.detail-actions-v2 a {
  min-height: 44px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: #b6cbbf;
  font-size: 11px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.detail-actions-v2 button:hover,
.detail-actions-v2 a:hover { border-color: rgba(var(--accent-rgb), .25); background: rgba(var(--accent-rgb),.055); }
.detail-actions-v2 i { color: var(--accent-bright); font-size: 13px; }
.detail-actions-v2 a i.fa-telegram { color: #55b8ff; }

.download-button-v2 {
  min-height: 68px;
  margin-top: 12px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 39px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 58%, var(--accent-dark) 100%);
  color: var(--accent-ink);
  box-shadow: 0 16px 34px rgba(var(--accent-rgb), .18), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.download-button-v2:hover { transform: translateY(-1px); box-shadow: 0 19px 40px rgba(var(--accent-rgb), .24); }
.download-button-v2 .download-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(3, 34, 14, .11);
  font-size: 15px;
}
.download-button-v2 > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.download-button-v2 strong { font-size: 12px; letter-spacing: .055em; }
.download-button-v2 small { margin-top: 4px; color: rgba(5, 27, 13, .66); font-size: 8px; font-weight: 700; }
.download-button-v2 > i:last-child { font-size: 12px; }

.vpn-link-v2 {
  min-height: 43px;
  margin-top: 10px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(98, 182, 255, .13);
  border-radius: 12px;
  background: rgba(66, 147, 255, .045);
  color: #83a99a;
  font-size: 9px;
}
.vpn-link-v2 i:first-child { color: #58a9ff; }
.vpn-link-v2 i:last-child { color: #617e70; font-size: 8px; }

.detail-safe-note {
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,.045);
  color: #526d5f;
  font-size: 8px;
  text-align: center;
}
.detail-safe-note i { color: #416854; }

@media (max-width: 720px) {
  .load-more-area { margin-top: 21px; }
  #loadMoreButton { min-width: 175px; min-height: 45px; }

  .detail-modal-v2 {
    width: min(100%, 480px);
    max-height: calc(100dvh - 24px);
    padding: 20px 17px 17px;
    border-radius: 24px;
  }
  .detail-modal-v2 .modal-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
  .detail-head-v2 { padding: 2px 43px 16px 0; gap: 13px; }
  .detail-icon-v2 { width: 76px; height: 76px; flex-basis: 76px; border-radius: 19px; }
  .detail-identity h2 { margin-top: 6px; font-size: 21px; }
  .detail-category { max-width: 105px; }
  .detail-stats-v2 { gap: 6px; }
  .detail-stats-v2 > div {
    min-height: 68px;
    padding: 9px 5px;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  .detail-stats-v2 > div > i { width: 24px; height: 24px; flex-basis: 24px; font-size: 9px; }
  .detail-stats-v2 span { align-items: center; }
  .detail-stats-v2 strong { font-size: 11px; }
  .detail-actions-v2 button, .detail-actions-v2 a { min-height: 42px; }
  .download-button-v2 { min-height: 64px; padding-inline: 13px; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; }
  .download-button-v2 .download-icon { width: 36px; height: 36px; }
  .download-button-v2 strong { font-size: 11px; }
  .download-button-v2 small { font-size: 7.5px; }
}

@media (max-width: 380px) {
  .detail-head-v2 { align-items: flex-start; }
  .detail-icon-v2 { width: 68px; height: 68px; flex-basis: 68px; }
  .detail-identity h2 { font-size: 19px; }
  .detail-stats-v2 > div > i { display: none; }
}


/* === v1.0.3 Banner Ads === */
.ad-banner-slot {
  position: relative;
  margin-top: 18px;
  margin-bottom: 18px;
}
.ad-image-slot > a,
.ad-image-slot > div {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .10);
  border-radius: 18px;
  background: rgba(6, 20, 13, .78);
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.ad-image-slot > a {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ad-image-slot > a:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), .25);
  box-shadow: 0 16px 38px rgba(0,0,0,.21);
}
.ad-image-slot img {
  width: 100%;
  max-height: 240px;
  display: block;
  object-fit: cover;
  background: #08150e;
}
.ad-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(2, 10, 6, .72);
  color: rgba(229, 246, 235, .72);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  backdrop-filter: blur(5px);
}
.ad-slot-middle { margin-top: 9px; }
.ad-slot-bottom { margin-top: 20px; }

.ad-settings-head { margin-bottom: 15px; }
.ad-settings-head h2 { margin-bottom: 5px; }
.ad-settings-head p {
  margin: 0;
  color: #789184;
  font-size: 11px;
  line-height: 1.55;
}
.ad-admin-slot {
  margin-top: 13px;
  padding: 15px;
  border: 1px solid rgba(var(--accent-rgb), .09);
  border-radius: 15px;
  background: rgba(4, 17, 11, .34);
}
.ad-admin-slot + .ad-admin-slot { margin-top: 10px; }
.ad-admin-slot-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ad-admin-slot-title > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ad-admin-slot-title strong { color: #e8fff0; font-size: 13px; }
.ad-admin-slot-title small { color: #728a7d; font-size: 9px; line-height: 1.45; }
.admin-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #98ad9f;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.admin-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.admin-toggle span {
  position: relative;
  width: 38px;
  height: 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  transition: .18s ease;
}
.admin-toggle span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6f8579;
  transition: .18s ease;
}
.admin-toggle input:checked + span {
  border-color: rgba(62, 235, 124, .28);
  background: rgba(48, 222, 109, .15);
}
.admin-toggle input:checked + span::after {
  left: 19px;
  background: #42ea7f;
  box-shadow: 0 0 12px rgba(66,234,127,.28);
}

@media (max-width: 720px) {
  .ad-banner-slot { margin-top: 13px; margin-bottom: 13px; }
  .ad-image-slot > a, .ad-image-slot > div { border-radius: 14px; }
  .ad-image-slot img { max-height: 165px; }
  .ad-admin-slot { padding: 13px; }
  .ad-admin-slot-title { align-items: flex-start; }
}


/* === v1.0.4 Adsterra code mode + premium badges === */
.ad-code-slot > .ad-code-render {
  min-height: 70px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid rgba(var(--accent-rgb), .10);
  border-radius: 18px;
  background: rgba(6, 20, 13, .60);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.ad-code-render > * { max-width: 100%; }
.ad-code-render iframe { max-width: 100%; border: 0; }
.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ad-badge i { font-size: 7px; color: var(--accent-bright); }
.ad-admin-slot { transition: border-color .18s ease, background .18s ease; }
.ad-admin-slot:focus-within { border-color: rgba(77,235,135,.22); background: rgba(6, 24, 15, .44); }
.ad-type-field select { font-weight: 800; }
.ad-mode-panel[hidden] { display: none !important; }
.ad-code-textarea {
  min-height: 180px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  tab-size: 2;
}
.ad-code-help {
  margin-top: -4px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(255, 190, 80, .12);
  border-radius: 11px;
  background: rgba(255, 174, 52, .045);
  color: #9ca99f;
  font-size: 10px;
  line-height: 1.55;
}
.ad-code-help i { margin-top: 2px; color: #e6b550; }
.admin-nav button i { width: 18px; color: #6c8b79; text-align: center; }
.admin-nav button.active i { color: var(--accent); }

@media (max-width: 720px) {
  .label { min-height: 23px; padding: 4px 7px 4px 5px; gap: 4px; font-size: 7px; }
  .label i { width: 14px; height: 14px; font-size: 6px; }
  .app-card .label { top: 7px; left: 7px; }
  .ad-code-slot > .ad-code-render { min-height: 58px; padding: 8px; border-radius: 14px; }
}
