*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#f5f7fb;
  color:#101828;
}
a{text-decoration:none;color:inherit}
.container{width:min(1150px,94%);margin:auto}
.topbar{
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
  position:sticky;
  top:0;
  z-index:99;
}
.nav{
  min-height:68px;
  display:flex;
  align-items:center;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:20px;
  white-space:nowrap;
}
.brand-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#16a34a;
  color:white;
  font-weight:900;
}
.search{
  flex:1;
  display:flex;
  background:#f1f5f9;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e2e8f0;
}
.search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:14px;
}
.search button{
  border:0;
  background:#16a34a;
  color:#fff;
  padding:0 20px;
  font-weight:700;
}
.menu-btn{
  display:none;
  border:0;
  background:#111827;
  color:#fff;
  border-radius:10px;
  padding:10px 13px;
}
.mobile-menu{
  display:none;
  border-top:1px solid #e5e7eb;
}
.mobile-menu a{
  display:block;
  padding:14px 3%;
}
.hero{
  margin:24px 0;
  padding:36px;
  border-radius:24px;
  background:linear-gradient(135deg,#16a34a,#0f766e);
  color:white;
}
.hero h1{margin:0 0 10px;font-size:34px}
.hero p{margin:0;font-size:17px;opacity:.95}
.section{margin:28px 0}
.section h1,.section h2{margin:0 0 18px}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chips a{
  background:#fff;
  border:1px solid #e5e7eb;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
}
.grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.apk-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  overflow:hidden;
  transition:.2s;
}
.apk-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}
.apk-link{
  display:flex;
  gap:13px;
  padding:14px;
}
.apk-icon{
  width:70px;
  height:70px;
  border-radius:16px;
  object-fit:cover;
  background:#eef2ff;
  flex:0 0 auto;
}
.apk-info h3{
  font-size:16px;
  line-height:1.25;
  margin:2px 0 8px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.apk-info p,.apk-info span{
  color:#667085;
  font-size:13px;
}
.detail-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  padding:24px;
  margin:26px 0;
}
.detail-head{
  display:flex;
  gap:18px;
  align-items:center;
}
.detail-head img{
  width:110px;
  height:110px;
  border-radius:24px;
  object-fit:cover;
}
.detail-head h1{margin:0 0 8px;font-size:30px}
.badge{
  display:inline-block;
  background:#dcfce7;
  color:#166534;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.specs{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin:24px 0;
}
.specs div{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  padding:14px;
  border-radius:16px;
}
.specs b,.specs span{display:block}
.specs span{margin-top:5px;color:#667085}
.content{
  line-height:1.7;
  color:#344054;
}
.download-btn{
  width:100%;
  border:0;
  background:#16a34a;
  color:#fff;
  padding:17px;
  border-radius:16px;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}
.footer{
  margin-top:40px;
  padding:25px 0;
  color:#667085;
  text-align:center;
}
.table-wrap{overflow:auto;background:#fff;border-radius:16px;border:1px solid #e5e7eb}
table{width:100%;border-collapse:collapse}
th,td{padding:13px;border-bottom:1px solid #e5e7eb;text-align:left}
th{background:#f8fafc}
.admin-layout{display:flex;min-height:100vh}
.sidebar{
  width:240px;
  background:#111827;
  color:#fff;
  padding:22px;
  position:fixed;
  top:0;
  bottom:0;
}
.sidebar h2{margin-top:0}
.sidebar a{
  display:block;
  color:#d1d5db;
  padding:12px;
  border-radius:12px;
}
.sidebar a:hover{background:#1f2937;color:#fff}
.admin-main{margin-left:240px;padding:24px;width:calc(100% - 240px)}
.card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:20px;
  margin-bottom:18px;
}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-group{display:flex;flex-direction:column;gap:7px}
.form-group input,.form-group select,.form-group textarea{
  padding:13px;
  border:1px solid #d0d5dd;
  border-radius:12px;
  width:100%;
}
.form-group textarea{min-height:150px}
.btn{
  display:inline-block;
  border:0;
  background:#16a34a;
  color:#fff;
  padding:11px 15px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}
.btn.red{background:#dc2626}
.btn.dark{background:#111827}
.login-box{
  width:min(420px,92%);
  margin:80px auto;
  background:#fff;
  border:1px solid #e5e7eb;
  padding:25px;
  border-radius:22px;
}
.alert{padding:12px;border-radius:12px;margin:12px 0}
.alert.error{background:#fee2e2;color:#991b1b}
.alert.success{background:#dcfce7;color:#166534}

@media(max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .specs{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  .nav{flex-wrap:wrap;padding:12px 0}
  .search{order:3;width:100%;flex-basis:100%}
  .menu-btn{display:block;margin-left:auto}
  .mobile-menu.show{display:block}
  .hero{padding:24px}
  .hero h1{font-size:26px}
  .grid{grid-template-columns:1fr}
  .apk-link{align-items:center}
  .detail-head{align-items:flex-start}
  .detail-head h1{font-size:24px}
  .sidebar{position:static;width:100%}
  .admin-layout{display:block}
  .admin-main{margin-left:0;width:100%}
  .form-grid{grid-template-columns:1fr}
}


/* === FINAL V2 OVERRIDES === */

/* APK grid: selalu 3 per baris sesuai permintaan */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
}

.apk-card{
  border-radius:14px;
}

.apk-link{
  padding:10px;
  gap:9px;
  align-items:center;
}

.apk-icon{
  width:54px;
  height:54px;
  border-radius:13px;
}

.apk-info h3{
  font-size:14px;
  margin:0 0 5px;
}

.apk-info p,.apk-info span{
  font-size:11px;
}

/* Kategori horizontal memanjang, bukan numpuk */
.chips{
  display:flex;
  flex-wrap:nowrap !important;
  overflow-x:auto;
  gap:10px;
  padding:4px 0 10px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.chips::-webkit-scrollbar{
  display:none;
}

.chips a{
  flex:0 0 auto;
  white-space:nowrap;
}

/* Language switch */
.lang-switch{
  display:flex;
  gap:5px;
  background:#f1f5f9;
  padding:4px;
  border-radius:999px;
}

.lang-switch a{
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#475467;
}

.lang-switch a.active{
  background:#16a34a;
  color:#fff;
}

/* Footer menu */
.footer{
  text-align:left;
  background:#0f172a;
  color:#cbd5e1;
  margin-top:45px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:24px;
  padding:30px 0;
}

.footer h3,.footer h4{
  color:#fff;
  margin-top:0;
}

.footer a{
  display:block;
  color:#cbd5e1;
  margin:9px 0;
  font-size:14px;
}

.footer a:hover{
  color:#fff;
}

/* Admin reorder */
.reorder-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  touch-action:none;
}

.reorder-item{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:12px;
  user-select:none;
  touch-action:none;
}

.reorder-item.dragging{
  opacity:.65;
  border-color:#16a34a;
  box-shadow:0 12px 22px rgba(15,23,42,.12);
}

.drag-handle{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  background:#f1f5f9;
  border-radius:12px;
  font-size:22px;
  cursor:grab;
  touch-action:none;
}

.reorder-item img{
  width:52px;
  height:52px;
  border-radius:13px;
  object-fit:cover;
}

.reorder-item b{
  display:block;
}

.reorder-item small{
  color:#667085;
}

/* Mobile tetap 3 kolom, tapi super compact */
@media(max-width:650px){
  .grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  .apk-link{
    flex-direction:column;
    text-align:center;
    padding:8px 5px;
    min-height:132px;
  }

  .apk-icon{
    width:48px;
    height:48px;
    border-radius:12px;
  }

  .apk-info h3{
    font-size:11.5px;
    line-height:1.2;
    -webkit-line-clamp:2;
  }

  .apk-info p{
    font-size:10px;
  }

  .apk-info span{
    display:none;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }

  .lang-switch{
    order:2;
    margin-left:auto;
  }

  .nav{
    gap:8px;
  }
}

@media(max-width:360px){
  .apk-icon{
    width:42px;
    height:42px;
  }

  .apk-info h3{
    font-size:10.5px;
  }
}


/* === SECURITY + SEO V3 === */
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  margin:18px 0 -8px;
  font-size:13px;
  color:#667085;
}
.breadcrumb a{
  color:#166534;
  font-weight:700;
}
.report-box{
  margin-top:22px;
  padding:18px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:18px;
}
.report-box h2{
  margin-top:0;
}
.report-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.report-box input,.report-box select,.report-box textarea{
  width:100%;
  border:1px solid #d0d5dd;
  border-radius:12px;
  padding:12px;
  background:#fff;
}
.report-box textarea{
  min-height:110px;
}
.related-grid{
  margin-top:12px;
}
@media(max-width:650px){
  .report-grid{
    grid-template-columns:1fr;
  }
}


/* === PAGINATION V4 === */
.pagination{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:28px 0 8px;
}

.pagination a,
.pagination span{
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e5e7eb;
  display:grid;
  place-items:center;
  font-weight:800;
  color:#344054;
}

.pagination a.active{
  background:#16a34a;
  color:#fff;
  border-color:#16a34a;
}

.pagination a:hover{
  border-color:#16a34a;
}


/* === ADMIN BEAUTY V5 === */
.admin-body{
  background:#eef2f7;
  color:#0f172a;
}

.admin-layout{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:280px;
  background:linear-gradient(180deg,#0f172a,#111827);
  color:#fff;
  padding:18px;
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  z-index:1000;
  box-shadow:12px 0 35px rgba(15,23,42,.2);
  overflow-y:auto;
}

.sidebar-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 8px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:14px;
}

.sidebar-logo,.login-logo{
  width:44px;
  height:44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#22c55e,#14b8a6);
  color:white;
  font-weight:900;
  font-size:22px;
  box-shadow:0 10px 22px rgba(34,197,94,.25);
}

.sidebar-brand b{
  display:block;
  font-size:16px;
}

.sidebar-brand small{
  display:block;
  color:#94a3b8;
  margin-top:3px;
  max-width:175px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.sidebar a{
  display:flex;
  align-items:center;
  gap:10px;
  color:#d1d5db;
  padding:12px 13px;
  border-radius:14px;
  font-weight:700;
  transition:.18s ease;
}

.sidebar a:hover{
  background:rgba(255,255,255,.09);
  color:#fff;
  transform:translateX(3px);
}

.sidebar a.logout-link{
  margin-top:10px;
  background:rgba(220,38,38,.15);
  color:#fecaca;
}

.admin-main{
  margin-left:280px;
  padding:22px;
  width:calc(100% - 280px);
}

.admin-topbar{
  min-height:70px;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(12px);
  border:1px solid rgba(226,232,240,.85);
  border-radius:22px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  margin-bottom:22px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  position:sticky;
  top:12px;
  z-index:50;
}

.admin-topbar b{
  display:block;
  font-size:17px;
}

.admin-topbar small{
  display:block;
  color:#64748b;
  margin-top:3px;
}

.admin-menu-btn{
  display:none;
  width:44px;
  height:44px;
  border:0;
  border-radius:14px;
  background:#0f172a;
  color:#fff;
  font-size:20px;
}

.admin-page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin:6px 0 20px;
}

.admin-page-head h1{
  margin:0;
  font-size:30px;
  letter-spacing:-.04em;
}

.admin-page-head p{
  margin:7px 0 0;
  color:#64748b;
}

.admin-stat-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.admin-stat-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:0 12px 25px rgba(15,23,42,.05);
}

.admin-stat-card span{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  background:#f0fdf4;
  border-radius:16px;
  font-size:23px;
}

.admin-stat-card.warning span{
  background:#fff7ed;
}

.admin-stat-card small{
  display:block;
  color:#64748b;
  font-weight:700;
}

.admin-stat-card b{
  display:block;
  font-size:27px;
  margin-top:4px;
}

.admin-two-col{
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:16px;
}

.card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:20px;
  margin-bottom:18px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.card h2{
  margin-top:0;
  letter-spacing:-.025em;
}

.admin-mini-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.admin-mini-list a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:13px;
  color:#0f172a;
  background:#f8fafc;
}

.admin-mini-list a:hover{
  border-color:#22c55e;
  background:#f0fdf4;
}

.admin-mini-list b{
  display:block;
}

.admin-mini-list small{
  color:#64748b;
}

.admin-action-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.table-wrap{
  overflow:auto;
  background:#fff;
  border-radius:22px;
  border:1px solid #e5e7eb;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

table{
  min-width:850px;
}

th{
  background:#f8fafc;
  color:#475569;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

th,td{
  padding:14px;
  vertical-align:middle;
}

tr:hover td{
  background:#fbfdff;
}

.form-grid{
  gap:16px;
}

.form-group label{
  color:#334155;
  font-weight:800;
  font-size:13px;
}

.form-group input,
.form-group select,
.form-group textarea{
  border:1px solid #dbe3ef;
  background:#fff;
  transition:.16s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:0;
  border-color:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}

.btn{
  border:0;
  background:linear-gradient(135deg,#16a34a,#10b981);
  color:#fff;
  padding:11px 16px;
  border-radius:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 9px 16px rgba(22,163,74,.18);
}

.btn:hover{
  filter:brightness(.98);
  transform:translateY(-1px);
}

.btn.red{
  background:linear-gradient(135deg,#dc2626,#ef4444);
  box-shadow:0 9px 16px rgba(220,38,38,.16);
}

.btn.dark{
  background:linear-gradient(135deg,#0f172a,#334155);
  box-shadow:0 9px 16px rgba(15,23,42,.16);
}

.alert{
  border-radius:15px;
  font-weight:700;
}

.admin-login-body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left,rgba(34,197,94,.25),transparent 35%),
    radial-gradient(circle at bottom right,rgba(20,184,166,.18),transparent 35%),
    #0f172a;
  display:grid;
  place-items:center;
}

.admin-login-card{
  margin:0;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 25px 70px rgba(0,0,0,.3);
}

.admin-login-card h1{
  margin-bottom:8px;
}

.admin-login-card p{
  margin-top:0;
  color:#64748b;
}

.admin-login-card .login-logo{
  margin-bottom:12px;
}

.admin-login-btn{
  width:100%;
  padding:14px;
}

.admin-overlay{
  display:none;
}

.reorder-item{
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

@media(max-width:1100px){
  .admin-stat-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .admin-two-col{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .admin-main{
    margin-left:0;
    width:100%;
    padding:12px;
  }

  .sidebar{
    transform:translateX(-105%);
    transition:.22s ease;
    width:min(86vw,310px);
  }

  .sidebar.open{
    transform:translateX(0);
  }

  .admin-overlay.show{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    z-index:900;
  }

  .admin-menu-btn{
    display:grid;
    place-items:center;
    flex:0 0 auto;
  }

  .admin-topbar{
    top:8px;
    border-radius:18px;
    padding:12px;
  }

  .admin-topbar small{
    display:none;
  }

  .admin-page-head{
    align-items:stretch;
    flex-direction:column;
  }

  .admin-page-head h1{
    font-size:25px;
  }

  .admin-stat-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .admin-stat-card{
    padding:14px;
    border-radius:18px;
    flex-direction:column;
    align-items:flex-start;
  }

  .admin-stat-card span{
    width:40px;
    height:40px;
    font-size:19px;
  }

  .admin-stat-card b{
    font-size:23px;
  }

  .card{
    border-radius:18px;
    padding:16px;
  }

  table{
    min-width:760px;
  }

  .btn{
    padding:10px 13px;
  }
}

@media(max-width:420px){
  .admin-stat-grid{
    grid-template-columns:1fr;
  }
}


/* === SITE ICON + FAVICON V6 === */
.brand-img{
  width:38px;
  height:38px;
  border-radius:12px;
  object-fit:cover;
  flex:0 0 auto;
  background:#f1f5f9;
}

.admin-image-preview{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:10px;
}

.admin-image-preview img{
  width:58px;
  height:58px;
  border-radius:15px;
  object-fit:cover;
  background:#fff;
  border:1px solid #e5e7eb;
}

.admin-image-preview small{
  color:#64748b;
  word-break:break-all;
}

.muted-note{
  color:#64748b;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
}


/* === V7 BULK ACTION + STATS + ANIMATION === */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes softPulse{
  0%,100%{box-shadow:0 12px 25px rgba(15,23,42,.05)}
  50%{box-shadow:0 18px 35px rgba(34,197,94,.13)}
}

@keyframes shineMove{
  from{transform:translateX(-120%)}
  to{transform:translateX(120%)}
}

.admin-main > *,
.card,
.table-wrap,
.admin-stat-card,
.detail-box,
.apk-card{
  animation:fadeUp .36s ease both;
}

.admin-stat-card:nth-child(2){animation-delay:.04s}
.admin-stat-card:nth-child(3){animation-delay:.08s}
.admin-stat-card:nth-child(4){animation-delay:.12s}
.admin-stat-card:nth-child(5){animation-delay:.16s}

.admin-stat-card.glow{
  position:relative;
  overflow:hidden;
  animation:fadeUp .36s ease both, softPulse 3.8s ease-in-out infinite;
}

.admin-stat-card.glow::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  transform:translateX(-120%);
  animation:shineMove 4.5s ease-in-out infinite;
}

.download-stat-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.bulk-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
}

.bulk-toolbar b,
.bulk-toolbar small{
  display:block;
}

.bulk-toolbar small{
  color:#64748b;
  margin-top:3px;
}

.bulk-toolbar select{
  border:1px solid #dbe3ef;
  background:#fff;
  border-radius:13px;
  padding:11px 13px;
  min-width:190px;
}

.admin-filter-card{
  position:relative;
  overflow:hidden;
}

.admin-filter-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
  font-weight:900;
}

.pill.ok{
  background:#dcfce7;
  color:#166534;
}

.pill.warn{
  background:#fef3c7;
  color:#92400e;
}

.source-bars{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.source-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.source-row > div:first-child{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.source-row span{
  color:#64748b;
  font-size:13px;
}

.source-progress{
  height:12px;
  background:#eef2f7;
  border-radius:999px;
  overflow:hidden;
}

.source-progress i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#16a34a,#14b8a6);
  border-radius:999px;
}

.activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.activity-item{
  border:1px solid #e5e7eb;
  background:#f8fafc;
  border-radius:16px;
  padding:12px;
}

.activity-item b,
.activity-item span,
.activity-item small{
  display:block;
}

.activity-item span{
  color:#64748b;
  font-size:12px;
  margin-top:3px;
}

.activity-item small{
  color:#334155;
  margin-top:6px;
}

.muted-text{
  color:#64748b;
}

.admin-pagination{
  margin-bottom:24px;
}

.apk-card,
.btn,
.admin-mini-list a,
.reorder-item,
.chips a{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.apk-card:hover,
.admin-mini-list a:hover,
.reorder-item:hover{
  transform:translateY(-3px);
}

.btn:active{
  transform:scale(.98);
}

@media(max-width:980px){
  .admin-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .download-stat-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:650px){
  .bulk-toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .bulk-toolbar select,
  .bulk-toolbar button{
    width:100%;
  }

  .admin-filter-grid{
    grid-template-columns:1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}


/* === V8 FRONTEND ANIMATION + BETTER REORDER === */
@keyframes heroFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

@keyframes cardPop{
  from{opacity:0;transform:translateY(16px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@keyframes chipSlide{
  from{opacity:0;transform:translateX(12px)}
  to{opacity:1;transform:translateX(0)}
}

@keyframes shimmerSoft{
  from{transform:translateX(-140%)}
  to{transform:translateX(140%)}
}

.hero{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-60px;
  background:
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.28),transparent 25%),
    radial-gradient(circle at 80% 30%,rgba(255,255,255,.16),transparent 30%);
  z-index:-1;
  animation:heroFloat 5s ease-in-out infinite;
}

.hero::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:38%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  transform:translateX(-140%);
  animation:shimmerSoft 5.5s ease-in-out infinite;
}

.section h1,
.section h2{
  animation:fadeUp .35s ease both;
}

.chips a{
  animation:chipSlide .35s ease both;
}

.chips a:nth-child(2){animation-delay:.03s}
.chips a:nth-child(3){animation-delay:.06s}
.chips a:nth-child(4){animation-delay:.09s}
.chips a:nth-child(5){animation-delay:.12s}
.chips a:nth-child(6){animation-delay:.15s}

.grid .apk-card{
  animation:cardPop .38s ease both;
}

.grid .apk-card:nth-child(2){animation-delay:.03s}
.grid .apk-card:nth-child(3){animation-delay:.06s}
.grid .apk-card:nth-child(4){animation-delay:.09s}
.grid .apk-card:nth-child(5){animation-delay:.12s}
.grid .apk-card:nth-child(6){animation-delay:.15s}
.grid .apk-card:nth-child(7){animation-delay:.18s}
.grid .apk-card:nth-child(8){animation-delay:.21s}
.grid .apk-card:nth-child(9){animation-delay:.24s}

.apk-card{
  will-change:transform;
}

.apk-card:active{
  transform:scale(.97);
}

/* Reorder mobile fix */
.reorder-help{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.reorder-help b,
.reorder-help span{
  display:block;
}

.reorder-help span{
  color:#64748b;
  margin-top:4px;
}

.reorder-list{
  touch-action:auto !important;
}

.reorder-item{
  touch-action:auto !important;
  cursor:grab;
}

.reorder-item:active{
  cursor:grabbing;
}

.drag-handle{
  cursor:grab;
  touch-action:none;
}

.reorder-info{
  flex:1;
  min-width:0;
}

.reorder-info b{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.reorder-actions{
  display:flex;
  gap:7px;
  margin-left:auto;
}

.move-btn{
  width:40px;
  height:40px;
  border:0;
  border-radius:13px;
  background:#0f172a;
  color:#fff;
  font-size:18px;
  font-weight:900;
  box-shadow:0 8px 15px rgba(15,23,42,.14);
}

.move-btn:active{
  transform:scale(.94);
}

.reorder-item.moved{
  animation:reorderMoved .45s ease;
}

@keyframes reorderMoved{
  0%{background:#dcfce7;transform:scale(.985)}
  100%{background:#fff;transform:scale(1)}
}

@media(max-width:650px){
  .reorder-item{
    gap:9px;
    padding:10px;
  }

  .drag-handle{
    display:none;
  }

  .reorder-item img{
    width:46px;
    height:46px;
  }

  .move-btn{
    width:38px;
    height:38px;
  }

  .reorder-help{
    align-items:stretch;
    flex-direction:column;
  }

  .reorder-help .btn{
    width:100%;
  }
}


/* === V9 TRENDING + DARK MODE + CATEGORY EXIT === */
.nav-trending{
  white-space:nowrap;
  font-weight:900;
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
  padding:10px 12px;
  border-radius:999px;
}

.theme-toggle{
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:#0f172a;
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:18px;
  box-shadow:0 8px 16px rgba(15,23,42,.14);
}

.category-exit-bar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:18px;
  margin-bottom:18px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.category-exit-bar h1{
  margin:0;
}

.category-exit-bar p{
  margin:6px 0 0;
  color:#64748b;
}

.trending-hero{
  background:linear-gradient(135deg,#f97316,#16a34a);
}

/* Dark mode */
html[data-theme="dark"] body{
  background:#0b1220;
  color:#e5e7eb;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .apk-card,
html[data-theme="dark"] .chips a,
html[data-theme="dark"] .detail-box,
html[data-theme="dark"] .card,
html[data-theme="dark"] .category-exit-bar,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .search,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span{
  background:#111827;
  border-color:#243244;
  color:#e5e7eb;
}

html[data-theme="dark"] .search input{
  color:#e5e7eb;
}

html[data-theme="dark"] .search input::placeholder{
  color:#94a3b8;
}

html[data-theme="dark"] .apk-info p,
html[data-theme="dark"] .apk-info span,
html[data-theme="dark"] .category-exit-bar p,
html[data-theme="dark"] .specs span,
html[data-theme="dark"] .content,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .muted-text{
  color:#94a3b8;
}

html[data-theme="dark"] .specs div,
html[data-theme="dark"] .report-box,
html[data-theme="dark"] .activity-item,
html[data-theme="dark"] .admin-mini-list a,
html[data-theme="dark"] .source-progress{
  background:#0f172a;
  border-color:#243244;
}

html[data-theme="dark"] .footer{
  background:#050816;
}

html[data-theme="dark"] .nav-trending{
  background:#431407;
  color:#fed7aa;
  border-color:#7c2d12;
}

html[data-theme="dark"] .theme-toggle{
  background:#f8fafc;
  color:#0f172a;
}

html[data-theme="dark"] .hero{
  box-shadow:0 18px 35px rgba(0,0,0,.25);
}

html[data-theme="dark"] .brand-img{
  background:#0f172a;
}

@media(max-width:650px){
  .nav-trending{
    display:none;
  }

  .theme-toggle{
    width:39px;
    height:39px;
    order:2;
  }

  .category-exit-bar{
    flex-direction:column;
  }

  .category-exit-bar .btn{
    width:100%;
    text-align:center;
  }
}


/* === V10 DOWNLOAD TOP + CATEGORY ORDER === */
.top-download-form{
  margin:18px 0 8px;
}

.detail-box .top-download-form .download-btn{
  box-shadow:0 14px 24px rgba(22,163,74,.22);
}

.category-reorder-list{
  margin-bottom:24px;
}

.category-reorder-item{
  align-items:center;
}

.category-order-badge{
  min-width:48px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#f0fdf4;
  color:#166534;
  font-weight:900;
  border:1px solid #bbf7d0;
}

.category-crud-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:8px;
}

html[data-theme="dark"] .category-order-badge{
  background:#052e16;
  color:#bbf7d0;
  border-color:#166534;
}

@media(max-width:760px){
  .category-reorder-item{
    flex-wrap:wrap;
  }

  .category-crud-actions{
    width:100%;
    margin-left:0;
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .category-crud-actions .btn{
    text-align:center;
  }

  .category-order-badge{
    min-width:42px;
  }

  .top-download-form{
    margin:16px 0 10px;
  }
}
.error-page{
  min-height:55vh;
  display:grid;
  place-items:center;
  padding:35px 0;
}

.error-card{
  width:min(620px,100%);
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:28px;
  padding:32px;
  text-align:center;
  box-shadow:0 18px 40px rgba(15,23,42,.08);
  animation:fadeUp .35s ease both;
}

.error-number{
  font-size:96px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.08em;
  color:#16a34a;
  opacity:.9;
}

.error-card h1{
  margin:12px 0 8px;
  font-size:32px;
}

.error-card p{
  color:#64748b;
  line-height:1.7;
  margin:0 auto 22px;
  max-width:480px;
}

.error-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

html[data-theme="dark"] .error-card{
  background:#111827;
  border-color:#243244;
}

html[data-theme="dark"] .error-card p{
  color:#94a3b8;
}

@media(max-width:650px){
  .error-card{
    padding:26px 18px;
    border-radius:22px;
  }

  .error-number{
    font-size:78px;
  }

  .error-card h1{
    font-size:25px;
  }

  .error-actions{
    flex-direction:column;
  }

  .error-actions .btn{
    width:100%;
  }
}
.site-notice-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(8px);
  display:grid;
  place-items:center;
  padding:18px;
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
}

.site-notice-overlay.show{
  opacity:1;
  pointer-events:auto;
}

.site-notice-card{
  width:min(460px,100%);
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:28px;
  padding:26px;
  text-align:center;
  position:relative;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
  transform:translateY(18px) scale(.96);
  transition:.25s ease;
}

.site-notice-overlay.show .site-notice-card{
  transform:translateY(0) scale(1);
}

.site-notice-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#f1f5f9;
  color:#0f172a;
  font-size:24px;
  cursor:pointer;
}

.site-notice-icon{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  border-radius:24px;
  background:#dcfce7;
  font-size:34px;
}

.site-notice-card h2{
  margin:0 0 10px;
  font-size:25px;
}

.site-notice-card p{
  color:#64748b;
  line-height:1.7;
  margin:0 0 20px;
}

.site-notice-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

html[data-theme="dark"] .site-notice-card{
  background:#111827;
  border-color:#243244;
  color:#e5e7eb;
}

html[data-theme="dark"] .site-notice-card p{
  color:#94a3b8;
}

html[data-theme="dark"] .site-notice-close{
  background:#0f172a;
  color:#e5e7eb;
}

@media(max-width:650px){
  .site-notice-card{
    border-radius:24px;
    padding:24px 18px;
  }

  .site-notice-actions{
    flex-direction:column;
  }

  .site-notice-actions .btn{
    width:100%;
  }
}


/* === V11 FIX PACK === */
.download-link{
  display:block;
  text-align:center;
}
.empty-state{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:22px;
  color:#64748b;
}
html[data-theme="dark"] .empty-state{
  background:#111827;
  border-color:#243244;
  color:#94a3b8;
}

/* === APKMODJOY-STYLE DETAIL + WAIT DOWNLOAD V6 === */
.apkmod-page{
  background:#fff;
  border-radius:22px;
  padding:24px;
  margin:22px 0;
  border:1px solid #e5e7eb;
}
.apkmod-app-head{
  display:flex;
  align-items:center;
  gap:22px;
  margin-bottom:16px;
}
.apkmod-icon{
  width:118px;
  height:118px;
  object-fit:cover;
  border-radius:26px;
  box-shadow:0 10px 25px rgba(15,23,42,.10);
  flex:0 0 auto;
}
.apkmod-title-wrap h1{
  margin:0 0 8px;
  font-size:38px;
  line-height:1.05;
  letter-spacing:-.03em;
}
.apkmod-category{
  display:inline-block;
  color:#16b7aa;
  font-size:22px;
  font-weight:700;
  margin-bottom:8px;
}
.apkmod-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  max-width:540px;
  margin:12px 0 24px;
}
.apkmod-stats div{
  text-align:center;
  padding:8px 14px;
  border-right:2px solid #111827;
}
.apkmod-stats div:last-child{border-right:0}
.apkmod-stats b{
  display:block;
  font-size:22px;
}
.apkmod-stats span{
  color:#667085;
  font-size:12px;
}
.safe-box{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:14px 0 18px;
  color:#111827;
}
.safe-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#44bf5c;
  color:#44bf5c;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  box-shadow:0 0 0 6px rgba(68,191,92,.14);
}
.safe-box b{
  font-size:26px;
  line-height:1.15;
}
.safe-box p{
  margin:6px 0 0;
  color:#2276bd;
  font-size:18px;
}
.apkmod-download-main,
.apkmod-download-final{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  border:0;
  border-radius:10px;
  padding:19px;
  min-height:64px;
  background:#f75bc3;
  color:#fff;
  font-size:26px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(247,91,195,.24);
  transition:.2s;
}
.apkmod-download-main:hover,
.apkmod-download-final:hover{
  filter:brightness(.96);
  transform:translateY(-1px);
}
.install-toggle{
  margin:14px 0 0;
  width:100%;
  border:0;
  background:#2bb40f;
  color:#fff;
  min-height:58px;
  border-radius:10px;
  padding:14px;
  font-size:22px;
  font-weight:800;
  cursor:pointer;
}
.install-guide{
  display:none;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-radius:16px;
  padding:18px;
  margin-top:12px;
  line-height:1.7;
  color:#14532d;
}
.install-guide.show{display:block}
.install-guide h2{margin-top:0}
.install-guide code{
  background:#dcfce7;
  padding:3px 6px;
  border-radius:6px;
}
.apkmod-info-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px 52px;
  margin:26px 0;
  max-width:820px;
}
.apkmod-info-grid b,
.apkmod-info-grid span{
  display:block;
}
.apkmod-info-grid b{
  font-size:22px;
  color:#111827;
  margin-bottom:8px;
}
.apkmod-info-grid span{
  font-size:20px;
  color:#686f7a;
}
.apkmod-description{
  font-size:20px;
  line-height:1.75;
  color:#20242a;
  margin:26px 0;
}
.apkmod-description h2{font-size:28px}
.download-wait-box{
  text-align:center;
  padding:34px 0 24px;
  margin:28px 0;
}
.wait-circle{
  width:110px;
  height:110px;
  border-radius:50%;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  border:10px solid #eef0f3;
  border-left-color:#39a9e8;
  color:#333;
  font-size:34px;
  font-weight:900;
}
.wait-circle.ready{
  border-color:#22c55e;
  color:#15803d;
}
@keyframes waitSpin{to{transform:rotate(360deg)}}
.wait-circle span{transform:rotate(0deg)}
.download-wait-box h2{
  color:#319bd5;
  font-size:26px;
  margin:0 0 8px;
}
.download-wait-box p{
  color:#667085;
  margin:0 0 22px;
}
.apkmod-download-final{
  max-width:100%;
  margin:auto;
  text-decoration:none;
}
.apkmod-download-final.disabled{
  opacity:.52;
  pointer-events:auto;
  cursor:not-allowed;
  filter:grayscale(.1);
}

@media(max-width:650px){
  .apkmod-page{
    padding:18px 0;
    border:0;
    border-radius:0;
    margin:0;
  }
  .apkmod-app-head{
    gap:18px;
    padding:0 0 6px;
  }
  .apkmod-icon{
    width:96px;
    height:96px;
    border-radius:22px;
  }
  .apkmod-title-wrap h1{
    font-size:32px;
  }
  .apkmod-category{
    font-size:20px;
  }
  .apkmod-stats{
    max-width:100%;
    margin:6px 0 18px;
  }
  .apkmod-stats b{font-size:20px}
  .safe-box b{font-size:22px}
  .safe-box p{font-size:17px}
  .apkmod-download-main,
  .apkmod-download-final{
    font-size:24px;
    border-radius:8px;
  }
  .install-toggle{
    font-size:19px;
    border-radius:8px;
  }
  .apkmod-info-grid{
    grid-template-columns:repeat(2,1fr);
    gap:24px 22px;
  }
  .apkmod-info-grid b{font-size:20px}
  .apkmod-info-grid span{font-size:18px}
  .apkmod-description{
    font-size:20px;
    line-height:1.72;
  }
  .download-wait-box h2{font-size:22px}
}

/* === APK Detail V7: optional image, second-download ads, refined light/dark colors === */
body{
  background:var(--apknusa-light-bg, #f8fafc);
  color:var(--apknusa-light-text, #111827);
}
.apkmod-page,
.download-wait-box,
.apk-card,
.card,
.detail-box,
.report-box{
  background:var(--apknusa-light-card, #ffffff);
  color:var(--apknusa-light-text, #111827);
}
.apkmod-title-wrap h1,
.apkmod-stats b,
.safe-box,
.apkmod-info-grid b,
.apkmod-description{
  color:var(--apknusa-light-text, #111827);
}
.apkmod-stats span,
.apkmod-info-grid span,
.download-wait-box p{
  color:var(--apknusa-light-muted, #667085);
}
.apkmod-download-main,
.apkmod-download-final{
  background:var(--apknusa-download, #f75bc3);
  box-shadow:0 8px 18px color-mix(in srgb, var(--apknusa-download, #f75bc3) 32%, transparent);
}
.install-toggle{
  background:var(--apknusa-install, #2bb40f);
}
.download-extra-image{
  display:block;
  width:100%;
  max-width:920px;
  height:auto;
  margin:18px auto 22px;
  border-radius:12px;
  object-fit:contain;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}
.ads-after-second-download{
  margin:18px auto 0;
  max-width:920px;
  text-align:center;
  overflow:hidden;
}
.admin-image-preview.wide-preview img{
  width:100%;
  max-width:360px;
  height:auto;
  max-height:180px;
  object-fit:contain;
  border-radius:12px;
}
.color-setting-grid input[type="color"]{
  width:100%;
  min-height:44px;
  padding:3px;
}
html[data-theme="dark"] body{
  background:var(--apknusa-dark-bg, #0b1220);
  color:var(--apknusa-dark-text, #e5e7eb);
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .apkmod-page,
html[data-theme="dark"] .download-wait-box,
html[data-theme="dark"] .apk-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .detail-box,
html[data-theme="dark"] .report-box,
html[data-theme="dark"] .apkmod-info-grid div,
html[data-theme="dark"] .install-guide{
  background:var(--apknusa-dark-card, #111827);
  color:var(--apknusa-dark-text, #e5e7eb);
  border-color:rgba(148,163,184,.24);
}
html[data-theme="dark"] .apkmod-title-wrap h1,
html[data-theme="dark"] .apkmod-stats b,
html[data-theme="dark"] .safe-box,
html[data-theme="dark"] .safe-box b,
html[data-theme="dark"] .apkmod-info-grid b,
html[data-theme="dark"] .apkmod-description,
html[data-theme="dark"] .install-guide h2,
html[data-theme="dark"] .install-guide li,
html[data-theme="dark"] .download-wait-box h2{
  color:var(--apknusa-dark-text, #e5e7eb);
}
html[data-theme="dark"] .apkmod-stats span,
html[data-theme="dark"] .apkmod-info-grid span,
html[data-theme="dark"] .download-wait-box p,
html[data-theme="dark"] .safe-box p,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .content,
html[data-theme="dark"] .muted-text{
  color:var(--apknusa-dark-muted, #94a3b8);
}
html[data-theme="dark"] .apkmod-stats div{
  border-right-color:rgba(226,232,240,.35);
}
html[data-theme="dark"] .download-extra-image{
  border-color:rgba(148,163,184,.26);
  box-shadow:0 10px 26px rgba(0,0,0,.26);
}
@media(max-width:650px){
  .download-extra-image{
    border-radius:8px;
    margin:16px auto 20px;
  }
  .ads-after-second-download{
    margin-top:16px;
  }
}


/* === V8 CACHE-BUST + DETAIL FORCE OVERRIDES === */
.apkmod-page button,
.apkmod-page a.apkmod-download-final{
  -webkit-appearance:none;
  appearance:none;
}
.apkmod-download-main,
.apkmod-download-final{
  background:var(--apknusa-download, #f75bc3) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:10px !important;
  min-height:64px !important;
  font-size:26px !important;
  font-weight:800 !important;
  text-align:center !important;
}
.install-toggle{
  background:var(--apknusa-install, #2bb40f) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:10px !important;
  min-height:58px !important;
  font-size:22px !important;
  font-weight:800 !important;
}
html[data-theme="dark"] .search,
html[data-theme="dark"] .lang-switch{
  background:#0f172a;
  border-color:rgba(148,163,184,.24);
}
html[data-theme="dark"] .search input{
  color:var(--apknusa-dark-text, #e5e7eb);
}
html[data-theme="dark"] .search input::placeholder{
  color:var(--apknusa-dark-muted, #94a3b8);
}
@media(max-width:650px){
  .apkmod-download-main,
  .apkmod-download-final{font-size:24px !important;}
  .install-toggle{font-size:19px !important;}
}


/* === V10 APKMODJOY-LIKE SECURITY SIZE FIX === */
.safe-box{
  align-items:center !important;
  gap:12px !important;
  margin:12px 0 16px !important;
}
.safe-icon{
  width:34px !important;
  height:34px !important;
  font-size:22px !important;
  font-weight:900 !important;
  line-height:1 !important;
  color:#fff !important;
  background:#44bf5c !important;
  box-shadow:none !important;
}
.safe-box b{
  display:block !important;
  font-size:22px !important;
  line-height:1.18 !important;
  font-weight:800 !important;
  letter-spacing:-.02em !important;
}
.safe-box p{
  margin:5px 0 0 !important;
  color:#2276bd !important;
  font-size:18px !important;
  line-height:1.25 !important;
  font-weight:500 !important;
}
@media(max-width:650px){
  .safe-box{
    gap:10px !important;
    margin:10px 0 14px !important;
  }
  .safe-icon{
    width:30px !important;
    height:30px !important;
    font-size:19px !important;
  }
  .safe-box b{
    font-size:19px !important;
    line-height:1.15 !important;
  }
  .safe-box p{
    font-size:16px !important;
    line-height:1.25 !important;
  }
}
@media(max-width:380px){
  .safe-box b{font-size:18px !important;}
  .safe-box p{font-size:15px !important;}
}


/* === V11: posisi foto opsional di bawah deskripsi, tepat sebelum loading download === */
.download-image-before-wait{
  margin:22px auto 18px;
}
.download-image-before-wait .download-extra-image{
  margin:0 auto;
}
@media(max-width:650px){
  .download-image-before-wait{
    margin:18px auto 16px;
  }
}

/* === V12 DOWNLOAD COUNTDOWN FIX ===
   Loading dibuat 5 detik. Progress biru berjalan memutar dulu,
   lalu berubah hijau saat link download sudah siap. */
.wait-circle{
  --progress:0deg;
  border:0 !important;
  background:conic-gradient(#39a9e8 var(--progress), #eef0f3 0deg) !important;
  position:relative;
  transition:background .25s linear, color .2s ease;
}
.wait-circle::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  background:var(--apknusa-light-card, #fff);
  z-index:0;
}
.wait-circle span{
  position:relative;
  z-index:1;
}
.wait-circle.running{
  color:#333 !important;
}
.wait-circle.ready{
  background:conic-gradient(#22c55e 360deg, #22c55e 0deg) !important;
  color:#15803d !important;
}
html[data-theme="dark"] .wait-circle::before{
  background:var(--apknusa-dark-card, #111827);
}


/* v17 official DMCA protection badge */
.dmca-validation-badge {
  margin-top: 14px;
}
.dmca-validation-badge a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}
.dmca-validation-badge img {
  max-width: 120px;
  height: auto;
  display: block;
  opacity: .82;
  filter: grayscale(100%);
}
.dmca-validation-badge img:hover {
  opacity: 1;
}

/* === V22 HOME APP-DOWNLOAD STYLE + SEO ADMIN === */
.home-hero-v22{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  gap:24px;
  align-items:stretch;
  margin:28px 0 26px;
  padding:30px;
  border-radius:34px;
  background:linear-gradient(135deg,#0f172a 0%,#13294b 48%,#17a34a 120%);
  color:#fff;
  overflow:hidden;
  position:relative;
  box-shadow:0 22px 55px rgba(15,23,42,.18);
}
.home-hero-v22::after{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width:360px;
  height:360px;
  border-radius:50%;
  background:rgba(34,197,94,.22);
  filter:blur(10px);
}
.home-hero-content,.home-hero-panel{position:relative;z-index:1;}
.home-kicker{
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#bbf7d0;
  font-weight:800;
  font-size:13px;
  margin-bottom:14px;
}
.home-hero-v22 h1{
  margin:0;
  font-size:clamp(34px,5vw,58px);
  line-height:1.03;
  letter-spacing:-.05em;
  max-width:760px;
}
.home-hero-v22 p{
  color:rgba(255,255,255,.82);
  font-size:18px;
  line-height:1.62;
  max-width:760px;
  margin:18px 0 22px;
}
.home-search-big{
  display:flex;
  max-width:720px;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  padding:6px;
  box-shadow:0 16px 34px rgba(0,0,0,.18);
}
.home-search-big input{
  flex:1;
  border:0;
  outline:0;
  padding:16px 18px;
  font-size:16px;
  color:#0f172a;
  min-width:0;
}
.home-search-big button{
  border:0;
  padding:0 24px;
  min-width:116px;
  border-radius:16px;
  background:#16a34a;
  color:#fff;
  font-weight:900;
  font-size:16px;
}
.home-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.home-hero-actions .btn{box-shadow:none;}
.hero-phone-card{
  height:100%;
  min-height:260px;
  border-radius:30px;
  padding:22px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.hero-phone-top{display:flex;gap:7px;margin-bottom:auto;}
.hero-phone-top span{width:11px;height:11px;border-radius:999px;background:rgba(255,255,255,.42);}
.hero-phone-card b{font-size:24px;line-height:1.12;}
.hero-phone-card p{font-size:14px;margin:10px 0 18px;line-height:1.45;color:rgba(255,255,255,.76);}
.hero-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.hero-mini-stats div{border-radius:16px;background:rgba(255,255,255,.12);padding:12px;text-align:center;}
.hero-mini-stats b{display:block;font-size:20px;}
.hero-mini-stats span{font-size:12px;color:rgba(255,255,255,.7);}
.section-head-v22{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  margin-bottom:16px;
}
.section-head-v22 h2{margin:0;font-size:27px;letter-spacing:-.03em;}
.section-head-v22 p{margin:6px 0 0;color:#64748b;}
.section-head-v22 a{font-weight:800;color:#16a34a;text-decoration:none;}
.home-category-chips a{font-weight:800;}
.home-category-chips small{
  display:inline-flex;
  margin-left:6px;
  background:#e5fbe9;
  color:#15803d;
  border-radius:999px;
  padding:2px 7px;
  font-size:12px;
}
.app-grid-v22{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));}
.app-card-v22 .apk-link{align-items:center;}
.app-card-v22 .apk-info h3{line-height:1.2;}
.app-card-v22 .apk-info em{
  display:inline-flex;
  margin-top:7px;
  padding:4px 8px;
  border-radius:999px;
  background:#dcfce7;
  color:#15803d;
  font-style:normal;
  font-weight:800;
  font-size:12px;
}
.home-seo-block{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.seo-card-v22{
  border-radius:26px;
  padding:24px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.seo-card-v22.alt{background:linear-gradient(135deg,#ecfdf5,#eff6ff);}
.seo-card-v22 h2{margin:0 0 10px;font-size:24px;letter-spacing:-.03em;}
.seo-card-v22 p{margin:0;color:#64748b;line-height:1.7;}
.admin-sep{border:0;border-top:1px solid #e5e7eb;margin:24px 0;}
.apk-admin-form h2{margin:0 0 14px;font-size:20px;}
.admin-file-current{
  margin-top:10px;
  padding:10px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  display:grid;
  gap:7px;
  font-size:13px;
}
.admin-file-current a{word-break:break-all;}
.check-row{display:inline-flex;align-items:center;gap:8px;font-weight:800;}
.seo-tool-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.seo-tool-card{
  padding:18px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e5e7eb;
}
.seo-tool-card h3{margin:0 0 8px;}
.seo-tool-card p{margin:0 0 12px;color:#64748b;line-height:1.5;}
html[data-theme="dark"] .section-head-v22 p,
html[data-theme="dark"] .seo-card-v22 p{color:var(--apknusa-dark-muted,#94a3b8);}
html[data-theme="dark"] .seo-card-v22,
html[data-theme="dark"] .seo-card-v22.alt{
  background:var(--apknusa-dark-card,#111827);
  color:var(--apknusa-dark-text,#e5e7eb);
  border-color:rgba(148,163,184,.24);
}
html[data-theme="dark"] .home-category-chips small,
html[data-theme="dark"] .app-card-v22 .apk-info em{background:#064e3b;color:#bbf7d0;}
@media(max-width:760px){
  .home-hero-v22{grid-template-columns:1fr;padding:22px;border-radius:26px;margin-top:18px;}
  .home-hero-panel{display:none;}
  .home-search-big{display:grid;grid-template-columns:1fr;gap:6px;border-radius:18px;}
  .home-search-big button{min-height:52px;}
  .home-seo-block{grid-template-columns:1fr;}
  .section-head-v22{align-items:flex-start;flex-direction:column;}
}

/* V24 - Page transition loader */
.apknusa-page-loader{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(248,250,252,.96);
  backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
}
.apknusa-page-loader.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.apknusa-loader-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:22px 24px;
  border-radius:28px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(226,232,240,.88);
  box-shadow:0 24px 70px rgba(15,23,42,.12);
}
.apknusa-loader-ring{
  width:112px;
  height:112px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:conic-gradient(#16a34a 0deg, #0ea5e9 135deg, #e5e7eb 135deg, #e5e7eb 360deg);
  animation:apknusaLoaderSpin .85s linear infinite;
}
.apknusa-loader-ring::after{
  content:"";
  position:absolute;
  inset:9px;
  border-radius:50%;
  background:var(--apknusa-light-card,#fff);
  box-shadow:inset 0 0 0 1px rgba(226,232,240,.7);
}
.apknusa-loader-logo,
.apknusa-loader-fallback{
  position:relative;
  z-index:1;
  width:66px;
  height:66px;
  object-fit:contain;
  border-radius:18px;
  animation:apknusaLoaderReverse .85s linear infinite;
}
.apknusa-loader-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:38px;
  color:#16a34a;
  background:#ecfdf5;
}
.apknusa-loader-text{
  font-size:18px;
  line-height:1;
  font-weight:900;
  letter-spacing:.01em;
  color:var(--apknusa-light-text,#111827);
}
@keyframes apknusaLoaderSpin{to{transform:rotate(360deg);}}
@keyframes apknusaLoaderReverse{to{transform:rotate(-360deg);}}
html[data-theme="dark"] .apknusa-page-loader{
  background:rgba(11,18,32,.96);
}
html[data-theme="dark"] .apknusa-loader-card{
  background:rgba(17,24,39,.78);
  border-color:rgba(148,163,184,.22);
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}
html[data-theme="dark"] .apknusa-loader-ring::after{
  background:var(--apknusa-dark-card,#111827);
  box-shadow:inset 0 0 0 1px rgba(148,163,184,.22);
}
html[data-theme="dark"] .apknusa-loader-text{
  color:var(--apknusa-dark-text,#e5e7eb);
}
@media(max-width:520px){
  .apknusa-loader-ring{width:96px;height:96px;}
  .apknusa-loader-logo,.apknusa-loader-fallback{width:56px;height:56px;border-radius:16px;}
  .apknusa-loader-text{font-size:16px;}
}

/* === V27 ADMIN, FOOTER, SOCIAL, LANGUAGE CLEANUP === */
html{scroll-behavior:smooth;}
.home-share-bubble{
  position:fixed;
  right:18px;
  bottom:96px;
  z-index:160;
  width:54px;
  height:54px;
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#16a34a,#0ea5e9);
  color:#fff;
  font-size:25px;
  font-weight:900;
  box-shadow:0 18px 36px rgba(15,23,42,.22);
  cursor:pointer;
}
.social-bubble-stack{
  position:fixed;
  bottom:92px;
  z-index:155;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.social-bubble-left{left:18px;}
.social-bubble-right{right:18px;}
.social-bubble{
  width:50px;
  height:50px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  font-size:20px;
  box-shadow:0 16px 28px rgba(15,23,42,.20);
  border:1px solid rgba(255,255,255,.28);
}
.social-whatsapp{background:#22c55e;}
.social-telegram{background:#229ed9;}
.social-facebook{background:#1877f2;}
.social-tiktok{background:#111827;}
.social-email{background:#f97316;}
html[data-theme="dark"] .home-share-bubble,
html[data-theme="dark"] .social-bubble{box-shadow:0 16px 32px rgba(0,0,0,.45);}

.dmca-validation-badge textarea{width:100%;}
.dmca-validation-badge .dmca-badge{display:inline-flex !important;}
.dmca-validation-badge img{max-width:130px !important;height:auto !important;}

.admin-body{
  background:#eef4ff !important;
  color:#0f172a;
}
.sidebar{
  background:linear-gradient(180deg,#08111f,#111827) !important;
  border-right:1px solid rgba(148,163,184,.18);
  box-shadow:16px 0 46px rgba(15,23,42,.16);
}
.sidebar-brand{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:12px;
  margin-bottom:18px;
}
.sidebar-nav a{
  display:flex !important;
  align-items:center;
  gap:10px;
  margin:5px 0;
  border:1px solid transparent;
}
.sidebar-nav a.active,
.sidebar-nav a:hover{
  background:rgba(34,197,94,.13) !important;
  color:#fff !important;
  border-color:rgba(34,197,94,.22);
}
.admin-main{
  min-height:100vh;
  background:radial-gradient(circle at top right,rgba(34,197,94,.13),transparent 36%),#f4f7fb;
}
.admin-topbar{
  border:1px solid #e5e7eb;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  border-radius:22px;
  padding:14px 16px;
  box-shadow:0 14px 30px rgba(15,23,42,.06);
}
.admin-page-head{
  margin:20px 0 16px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(135deg,#ffffff,#ecfdf5);
  border:1px solid #e5e7eb;
  box-shadow:0 18px 42px rgba(15,23,42,.06);
}
.card{
  border-radius:24px !important;
  border:1px solid #e2e8f0 !important;
  box-shadow:0 16px 40px rgba(15,23,42,.06);
}
.card h2,.card h3{letter-spacing:-.02em;}
.form-group small,.muted-note{color:#64748b;line-height:1.55;}
.form-group input,.form-group select,.form-group textarea{
  background:#fff;
  border-color:#dbe3ef !important;
  outline:none;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  border-color:#16a34a !important;
  box-shadow:0 0 0 4px rgba(22,163,74,.12);
}
.admin-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}
.admin-tabs a{
  display:inline-flex;
  padding:10px 13px;
  border-radius:999px;
  background:#fff;
  border:1px solid #e2e8f0;
  color:#0f172a;
  font-weight:800;
}
.admin-tabs a.active{background:#16a34a;color:#fff;border-color:#16a34a;}
.settings-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.page-manager-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.page-manager-item{
  padding:14px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e5e7eb;
}
.page-manager-item b{display:block;margin-bottom:4px;}
.page-manager-item small{color:#64748b;display:block;margin-bottom:10px;}
.code-textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;min-height:160px;}
@media(max-width:760px){
  .home-share-bubble{width:50px;height:50px;right:14px;bottom:86px;}
  .social-bubble-stack{bottom:82px;}
  .social-bubble-left{left:14px;}
  .social-bubble-right{right:14px;}
  .social-bubble{width:46px;height:46px;}
  .settings-grid-3{grid-template-columns:1fr;}
}

/* === V28 SOCIAL BUBBLE COLLAPSE + EDITABLE ICONS === */
.home-share-bubble .bubble-icon-img,
.social-bubble .bubble-icon-img{
  width:26px;
  height:26px;
  object-fit:contain;
  display:block;
}
.home-share-bubble span,
.social-bubble span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.social-bubble-widget{
  position:fixed;
  bottom:92px;
  z-index:155;
  display:flex;
  flex-direction:column-reverse;
  align-items:center;
  gap:10px;
}
.social-bubble-widget.social-bubble-left{left:18px;}
.social-bubble-widget.social-bubble-right{right:18px;}
.social-bubble-items{
  display:flex;
  flex-direction:column;
  gap:10px;
  opacity:0;
  pointer-events:none;
  transform:translateY(14px) scale(.96);
  transition:opacity .2s ease, transform .2s ease;
}
.social-bubble-widget.open .social-bubble-items{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.social-bubble-main{
  border:0;
  cursor:pointer;
  background:linear-gradient(135deg,#16a34a,#0ea5e9);
}
.social-bubble-main::after{
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:inherit;
  border:1px solid rgba(14,165,233,.22);
  pointer-events:none;
}
.social-instagram{background:linear-gradient(135deg,#f97316,#db2777,#7c3aed);}
.social-bubble{
  position:relative;
  text-decoration:none;
  user-select:none;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.social-bubble:hover{transform:translateY(-2px) scale(1.03);}
.social-bubble:active{transform:scale(.96);}
@media(max-width:520px){
  .social-bubble-widget{bottom:82px;}
  .social-bubble-widget.social-bubble-left{left:14px;}
  .social-bubble-widget.social-bubble-right{right:14px;}
  .home-share-bubble .bubble-icon-img,
  .social-bubble .bubble-icon-img{width:24px;height:24px;}
}

/* === V29 APKRIZON MODERN HOMEPAGE === */
:root{
  --rz-purple:#6C5CE7;
  --rz-violet:#7C3AED;
  --rz-cyan:#00B4D8;
  --rz-navy:#0B1028;
  --rz-dark:#1E1E2F;
  --rz-soft:#F5F7FA;
  --rz-line:#E8ECF5;
}
body{background:var(--apknusa-light-bg,#f5f7fa);}
.topbar{background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(226,232,240,.8);}
.nav{min-height:78px;gap:18px;}
.brand{font-size:22px;letter-spacing:-.03em;}
.brand-img{width:42px;height:42px;object-fit:contain;border-radius:12px;}
.brand-icon{background:linear-gradient(135deg,var(--rz-purple),var(--rz-cyan));box-shadow:0 12px 28px rgba(108,92,231,.22);}
.desktop-nav{display:flex;align-items:center;gap:22px;margin-left:14px;}
.desktop-nav a{font-size:14px;font-weight:800;color:#121827;opacity:.86;position:relative;padding:29px 0;}
.desktop-nav a:hover{color:var(--rz-purple);opacity:1;}
.desktop-nav a:first-child::after{content:"";position:absolute;left:0;right:0;bottom:18px;height:3px;background:linear-gradient(90deg,var(--rz-purple),var(--rz-cyan));border-radius:99px;}
.search{border-radius:16px;background:#f3f6fb;border:1px solid #e7ebf2;max-width:340px;}
.search button{background:linear-gradient(135deg,var(--rz-purple),var(--rz-violet));}
.theme-toggle,.menu-btn{border-radius:15px;background:#11172d;box-shadow:0 10px 22px rgba(15,23,42,.12);}
.lang-switch{background:#f0f3fa;border-radius:999px;padding:5px;}
.lang-switch a.active{background:#15ad62;box-shadow:0 8px 22px rgba(21,173,98,.18);}
.nav-trending{display:none!important;}

.rizon-hero{
  margin:20px 0 30px;
  padding:58px 48px;
  border-radius:0;
  color:white;
  background:
    radial-gradient(circle at 70% 48%, rgba(124,58,237,.48) 0, transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(0,180,216,.26) 0, transparent 26%),
    linear-gradient(135deg,#0b1028 0%,#111445 48%,#321179 100%);
  display:grid;
  grid-template-columns:minmax(0,1fr) 430px;
  gap:34px;
  align-items:center;
  position:relative;
  overflow:hidden;
  box-shadow:0 28px 72px rgba(11,16,40,.22);
}
.rizon-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(0deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(90deg,#000,transparent 70%);}
.rizon-hero-content,.rizon-hero-visual{position:relative;z-index:1;}
.rizon-kicker{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);color:#d9d5ff;font-weight:900;font-size:13px;margin-bottom:18px;}
.rizon-hero h1{margin:0;max-width:650px;font-size:clamp(38px,5.4vw,64px);line-height:1.02;letter-spacing:-.06em;font-weight:950;}
.rizon-hero h1::first-line{color:#fff;}
.rizon-hero h1 strong,.rizon-gradient-text{background:linear-gradient(90deg,#fff,#9BD7FF 55%,#A78BFA);-webkit-background-clip:text;color:transparent;}
.rizon-hero p{max-width:680px;margin:18px 0 24px;color:rgba(255,255,255,.82);font-size:18px;line-height:1.65;}
.rizon-search{width:min(100%,600px);display:flex;background:#fff;padding:7px;border-radius:18px;box-shadow:0 22px 48px rgba(0,0,0,.28);}
.rizon-search input{flex:1;border:0;outline:0;padding:16px 18px;border-radius:14px;color:#111827;font-size:16px;min-width:0;}
.rizon-search button{width:62px;border:0;border-radius:14px;background:linear-gradient(135deg,#6C5CE7,#7C3AED);color:#fff;font-size:28px;font-weight:900;line-height:1;}
.rizon-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.rizon-tags span{padding:9px 16px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.13);font-weight:800;font-size:13px;color:#f8fbff;}
.rizon-hero-visual{min-height:380px;display:grid;place-items:center;}
.rizon-phone{width:210px;height:330px;border-radius:38px;background:linear-gradient(160deg,#172040,#0b1028);border:10px solid rgba(255,255,255,.10);box-shadow:0 35px 90px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.07);display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(8deg);position:relative;}
.rizon-phone-speaker{position:absolute;top:18px;width:58px;height:7px;border-radius:99px;background:rgba(255,255,255,.20);}
.rizon-phone img{width:96px;height:auto;filter:drop-shadow(0 14px 25px rgba(108,92,231,.35));}
.rizon-phone b{margin-top:14px;font-size:22px;letter-spacing:-.04em;color:white;}
.rizon-glow-orbit{position:absolute;width:380px;height:250px;border:2px solid rgba(108,92,231,.35);border-radius:50%;transform:rotate(-22deg);box-shadow:0 0 55px rgba(0,180,216,.22);}
.float-app{position:absolute;width:72px;height:72px;border-radius:24px;display:grid;place-items:center;color:#fff;font-size:32px;background:linear-gradient(135deg,#6C5CE7,#00B4D8);box-shadow:0 22px 45px rgba(0,0,0,.28);}
.float-app.one{left:35px;top:70px;}
.float-app.two{right:25px;top:170px;background:linear-gradient(135deg,#00B4D8,#2f80ff);}
.float-app.three{left:48px;bottom:78px;background:linear-gradient(135deg,#00b894,#00B4D8);}
.float-app.four{right:70px;top:55px;background:linear-gradient(135deg,#ec4899,#7C3AED);}

.rizon-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 18px;}
.rizon-section-head h2{margin:0;font-size:28px;line-height:1.15;letter-spacing:-.04em;color:#101828;}
.rizon-section-head p{margin:7px 0 0;color:#667085;line-height:1.5;}
.rizon-section-head a{font-weight:900;color:var(--rz-purple);font-size:14px;}
.rizon-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:14px;}
.rizon-cat-card{min-height:130px;padding:18px 12px;border:1px solid var(--rz-line);border-radius:18px;background:#fff;display:grid;place-items:center;text-align:center;box-shadow:0 10px 28px rgba(15,23,42,.04);transition:.2s ease;}
.rizon-cat-card:hover{transform:translateY(-4px);box-shadow:0 22px 42px rgba(15,23,42,.10);border-color:rgba(108,92,231,.35);}
.rizon-cat-card span{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#6C5CE7,#00B4D8);color:#fff;font-weight:900;margin-bottom:9px;box-shadow:0 14px 28px rgba(108,92,231,.20);}
.rizon-cat-card:nth-child(2n) span{background:linear-gradient(135deg,#43D33F,#15B87A);}
.rizon-cat-card:nth-child(3n) span{background:linear-gradient(135deg,#F5679A,#FFB44C);}
.rizon-cat-card:nth-child(4n) span{background:linear-gradient(135deg,#2D8CFF,#6C5CE7);}
.rizon-cat-card b{font-size:14px;line-height:1.25;}
.rizon-cat-card small{font-weight:900;color:#667085;}

.rizon-popular-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px;}
.rizon-latest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;}
.rizon-apk-card{border:1px solid var(--rz-line);box-shadow:0 10px 28px rgba(15,23,42,.04);overflow:visible;background:#fff;}
.rizon-apk-card:hover{transform:translateY(-4px);box-shadow:0 24px 50px rgba(15,23,42,.10);border-color:rgba(108,92,231,.28);}
.rizon-apk-link{position:relative;}
.rizon-apk-info h3{font-weight:900;letter-spacing:-.03em;color:#111827;}
.rizon-meta-line{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px;color:#64748b;font-size:12px;}
.rizon-meta-line span:not(:last-child)::after{content:"";}
.rizon-download-dot{margin-left:auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:1px solid #eef2ff;color:var(--rz-purple);font-weight:950;font-size:20px;align-self:center;background:#fff;box-shadow:0 10px 20px rgba(108,92,231,.08);}
.rizon-popular .rizon-apk-link{display:grid;gap:12px;text-align:left;padding:18px;}
.rizon-popular .apk-icon{width:78px;height:78px;border-radius:19px;}
.rizon-popular .rizon-download-dot{width:auto;height:auto;display:inline-flex;padding:9px 18px;border-radius:999px;background:linear-gradient(135deg,var(--rz-purple),var(--rz-violet));color:#fff;font-size:13px;justify-content:center;margin:8px 0 0;box-shadow:0 12px 24px rgba(108,92,231,.22);}
.rizon-popular .rizon-download-dot::after{content:"Download";font-size:13px;margin-left:0;}
.rizon-popular .rizon-download-dot{font-size:0;}
.rizon-card-topline small{display:inline-flex;margin-top:2px;padding:4px 8px;border-radius:999px;background:#eef2ff;color:var(--rz-purple);font-weight:900;font-size:11px;}
.rizon-list .rizon-apk-link{align-items:center;padding:14px;}
.rizon-list .apk-icon{width:72px;height:72px;border-radius:18px;}
.rizon-list .rizon-apk-info p{margin:4px 0 0;}
.rizon-list .rizon-card-topline{min-width:0;}
.rizon-list .rizon-card-topline h3{margin-bottom:4px;}
.rizon-list .rizon-apk-info{min-width:0;}
.rizon-apk-card .apk-info em{background:#eef2ff;color:var(--rz-purple);}

.rizon-trust-banner{margin:36px 0 28px;padding:34px 42px;border-radius:26px;background:linear-gradient(135deg,#6C5CE7,#2D8CFF);color:#fff;display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;overflow:hidden;box-shadow:0 25px 60px rgba(108,92,231,.24);}
.trust-shield{width:86px;height:86px;border-radius:24px;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:44px;font-weight:900;border:1px solid rgba(255,255,255,.18);}
.rizon-trust-banner h2{margin:0 0 8px;font-size:28px;letter-spacing:-.04em;}
.rizon-trust-banner p{margin:0 0 14px;max-width:720px;color:rgba(255,255,255,.85);line-height:1.6;}
.rizon-trust-banner a{display:inline-flex;padding:12px 18px;background:#fff;color:var(--rz-purple);font-weight:900;border-radius:14px;}
.trust-android{font-size:110px;opacity:.85;filter:drop-shadow(0 22px 35px rgba(0,0,0,.2));}
.rizon-feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 0 34px;}
.rizon-feature-row div{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:20px;background:transparent;}
.rizon-feature-row span{width:42px;height:42px;border-radius:14px;background:#efeaff;color:var(--rz-purple);display:grid;place-items:center;font-weight:900;flex:0 0 auto;}
.rizon-feature-row b{display:block;margin:0 0 5px;}
.rizon-feature-row p{margin:0;color:#64748b;line-height:1.45;font-size:14px;}

html[data-theme="dark"] body{background:#080d1f;color:#e9efff;}
html[data-theme="dark"] .topbar{background:rgba(8,13,31,.88);border-color:rgba(148,163,184,.18);}
html[data-theme="dark"] .desktop-nav a{color:#e9efff;}
html[data-theme="dark"] .search{background:#11182e;border-color:rgba(148,163,184,.20);}
html[data-theme="dark"] .search input{color:#e9efff;}
html[data-theme="dark"] .lang-switch{background:#11182e;}
html[data-theme="dark"] .rizon-section-head h2,html[data-theme="dark"] .rizon-apk-info h3{color:#e9efff;}
html[data-theme="dark"] .rizon-section-head p,html[data-theme="dark"] .rizon-feature-row p{color:#9aa8c7;}
html[data-theme="dark"] .rizon-cat-card,html[data-theme="dark"] .rizon-apk-card{background:#0f172d;border-color:rgba(148,163,184,.18);box-shadow:none;}
html[data-theme="dark"] .rizon-download-dot{background:#11182e;border-color:rgba(148,163,184,.18);}
html[data-theme="dark"] .rizon-meta-line{color:#9aa8c7;}
html[data-theme="dark"] .rizon-card-topline small,html[data-theme="dark"] .rizon-apk-card .apk-info em{background:rgba(108,92,231,.18);color:#c4b5fd;}

@media(max-width:1020px){
  .desktop-nav{display:none;}
  .search{max-width:none;}
  .rizon-hero{grid-template-columns:1fr;padding:42px 28px;}
  .rizon-hero-visual{min-height:280px;}
  .rizon-phone{width:170px;height:270px;}
  .float-app{width:58px;height:58px;font-size:26px;border-radius:20px;}
}
@media(max-width:760px){
  .nav{min-height:74px;gap:12px;align-items:center;flex-wrap:wrap;}
  .brand{font-size:22px;}
  .search{order:10;flex:1 0 100%;max-width:none;border-radius:18px;}
  .search input{padding:15px 18px;font-size:15px;}
  .search button{padding:0 22px;}
  .menu-btn{display:block;order:3;width:58px;height:58px;font-size:24px;border-radius:17px;}
  .theme-toggle{order:4;width:58px;height:58px;border-radius:17px;}
  .lang-switch{order:5;margin-left:auto;}
  .rizon-hero{margin:20px calc(50% - 50vw) 28px;padding:36px 24px 30px;border-radius:0;grid-template-columns:1fr;}
  .rizon-hero h1{font-size:38px;}
  .rizon-hero p{font-size:15px;line-height:1.65;}
  .rizon-search{border-radius:17px;}
  .rizon-search button{width:58px;}
  .rizon-hero-visual{display:none;}
  .rizon-category-grid{grid-template-columns:repeat(3,1fr);gap:10px;}
  .rizon-cat-card{min-height:110px;border-radius:16px;padding:14px 8px;}
  .rizon-cat-card span{width:42px;height:42px;border-radius:13px;}
  .rizon-popular-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .rizon-popular .rizon-apk-link{padding:14px;}
  .rizon-popular .apk-icon{width:66px;height:66px;}
  .rizon-latest-grid{grid-template-columns:1fr;gap:12px;}
  .rizon-trust-banner{grid-template-columns:1fr;text-align:left;padding:28px 24px;}
  .trust-android{display:none;}
  .rizon-feature-row{grid-template-columns:1fr;gap:4px;}
  .rizon-section-head{align-items:flex-start;}
}
@media(max-width:420px){
  .rizon-category-grid{grid-template-columns:repeat(2,1fr);}
  .rizon-popular-grid{grid-template-columns:1fr 1fr;}
  .rizon-popular .rizon-apk-link{gap:9px;}
  .rizon-popular .rizon-download-dot{padding:8px 14px;}
}

/* === V30 APKRIZON RESPONSIVE HOME FIX ===
   Tujuan: mobile terasa seperti konsep desktop modern, tetap responsif.
   - Kategori & populer menjadi carousel geser samping.
   - APK terbaru menjadi 3 kolom.
   - Header mobile dipadatkan agar tidak terasa seperti blank/bug.
*/
.rizon-category-grid,
.rizon-popular-grid{
  display:flex;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 18px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.rizon-category-grid::-webkit-scrollbar,
.rizon-popular-grid::-webkit-scrollbar{height:7px;}
.rizon-category-grid::-webkit-scrollbar-thumb,
.rizon-popular-grid::-webkit-scrollbar-thumb{background:rgba(108,92,231,.28);border-radius:99px;}
.rizon-cat-card{
  flex:0 0 152px;
  scroll-snap-align:start;
}
.rizon-popular-grid .rizon-apk-card{
  flex:0 0 168px;
  scroll-snap-align:start;
}
.rizon-popular-grid .rizon-apk-card:last-child,
.rizon-category-grid .rizon-cat-card:last-child{margin-right:4px;}

/* APK terbaru 3 per baris */
.rizon-latest-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.rizon-latest-grid .rizon-list .rizon-apk-link{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 42px;
  gap:12px;
  align-items:center;
  min-height:104px;
}
.rizon-latest-grid .rizon-list .rizon-apk-info h3{
  font-size:15px;
  line-height:1.25;
  -webkit-line-clamp:2;
}
.rizon-latest-grid .rizon-list .rizon-meta-line{
  gap:6px;
}

/* Desktop besar: hero tidak terlalu melebar liar */
@media(min-width:1200px){
  .container{width:min(1180px,94%);} 
  .rizon-hero{border-radius:18px;}
}

@media(max-width:1020px){
  .rizon-latest-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .rizon-latest-grid .rizon-list .rizon-apk-link{
    grid-template-columns:62px minmax(0,1fr) 38px;
    padding:12px;
  }
  .rizon-latest-grid .rizon-list .apk-icon{width:62px;height:62px;border-radius:16px;}
}

@media(max-width:760px){
  body{background:#f6f8fc;}
  .topbar{position:sticky;top:0;}
  .container{width:min(100% - 24px, 1150px);}
  .nav{
    min-height:64px;
    gap:8px;
    padding:10px 0 12px;
    align-items:center;
    flex-wrap:wrap;
  }
  .brand{font-size:20px;gap:8px;min-width:0;}
  .brand-img{width:36px;height:36px;border-radius:10px;}
  .menu-btn,.theme-toggle{
    width:48px;
    height:48px;
    border-radius:14px;
    font-size:22px;
    display:grid;
    place-items:center;
    padding:0;
  }
  .menu-btn{order:3;margin-left:auto;}
  .theme-toggle{order:4;}
  .lang-switch{
    order:5;
    padding:4px;
    margin-left:0;
  }
  .lang-switch a{padding:8px 12px;font-size:13px;}
  .search{
    order:10;
    flex:1 0 100%;
    max-width:none;
    height:52px;
    border-radius:16px;
  }
  .search input{padding:0 16px;font-size:15px;}
  .search button{padding:0 20px;min-width:84px;}
  .mobile-menu{max-height:calc(100vh - 126px);overflow:auto;}

  /* Hero mobile tetap terlihat premium, bukan kosong. */
  .rizon-hero{
    margin:16px calc(50% - 50vw) 22px;
    padding:34px 24px 26px;
    border-radius:0;
    grid-template-columns:1fr;
    gap:24px;
  }
  .rizon-kicker{font-size:12px;margin-bottom:14px;}
  .rizon-hero h1{font-size:34px;line-height:1.08;letter-spacing:-.055em;}
  .rizon-hero p{font-size:15px;line-height:1.62;margin:15px 0 18px;}
  .rizon-search{width:100%;border-radius:18px;padding:6px;}
  .rizon-search input{padding:14px 14px;font-size:15px;}
  .rizon-search button{width:56px;border-radius:14px;font-size:25px;}
  .rizon-tags{gap:8px;margin-top:14px;}
  .rizon-tags span{padding:8px 13px;font-size:12px;}
  .rizon-hero-visual{
    display:grid;
    min-height:245px;
    margin-top:-8px;
  }
  .rizon-glow-orbit{width:250px;height:160px;}
  .rizon-phone{width:136px;height:216px;border-radius:26px;border-width:7px;transform:rotate(7deg);}
  .rizon-phone img{width:62px;}
  .rizon-phone b{font-size:15px;margin-top:8px;}
  .rizon-phone-speaker{top:12px;width:40px;height:5px;}
  .float-app{width:42px;height:42px;border-radius:14px;font-size:20px;}
  .float-app.one{left:13%;top:38px;}
  .float-app.two{right:10%;top:112px;}
  .float-app.three{left:16%;bottom:38px;}
  .float-app.four{right:18%;top:28px;}

  .section{margin:22px 0;}
  .rizon-section-head{margin-bottom:12px;align-items:flex-end;}
  .rizon-section-head h2{font-size:23px;}
  .rizon-section-head p{font-size:13px;}
  .rizon-section-head a{font-size:12px;white-space:nowrap;}

  /* Kategori: carousel geser samping */
  .rizon-category-grid{
    display:flex;
    gap:10px;
    margin:0 -12px;
    padding:2px 12px 16px;
  }
  .rizon-cat-card{
    flex:0 0 104px;
    min-height:102px;
    padding:12px 8px;
    border-radius:16px;
  }
  .rizon-cat-card span{width:38px;height:38px;border-radius:12px;margin-bottom:8px;}
  .rizon-cat-card b{font-size:12px;}
  .rizon-cat-card small{font-size:11px;}

  /* Populer/unggulan: carousel geser samping */
  .rizon-popular-grid{
    display:flex;
    gap:12px;
    margin:0 -12px;
    padding:2px 12px 18px;
  }
  .rizon-popular-grid .rizon-apk-card{flex:0 0 138px;}
  .rizon-popular .rizon-apk-link{padding:12px;gap:9px;}
  .rizon-popular .apk-icon{width:62px;height:62px;border-radius:16px;}
  .rizon-popular .rizon-apk-info h3{font-size:13px;line-height:1.25;}
  .rizon-popular .rizon-apk-info p{font-size:11px;}
  .rizon-popular .rizon-meta-line{font-size:10.5px;gap:5px;}
  .rizon-popular .rizon-download-dot{padding:8px 11px;font-size:0;border-radius:999px;width:100%;}
  .rizon-popular .rizon-download-dot::after{font-size:12px;}

  /* APK terbaru: 3 kolom di mobile */
  .rizon-latest-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
  }
  .rizon-latest-grid .rizon-list .rizon-apk-link{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:7px;
    min-height:172px;
    padding:9px;
  }
  .rizon-latest-grid .rizon-list .apk-icon{
    width:54px;
    height:54px;
    border-radius:14px;
  }
  .rizon-latest-grid .rizon-list .rizon-apk-info{width:100%;}
  .rizon-latest-grid .rizon-list .rizon-card-topline h3{
    font-size:12px;
    line-height:1.2;
    margin:0 0 4px;
    -webkit-line-clamp:2;
  }
  .rizon-latest-grid .rizon-list .rizon-apk-info p{
    font-size:10.5px;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
  }
  .rizon-latest-grid .rizon-list .rizon-meta-line{
    font-size:10px;
    gap:4px;
    margin-top:5px;
  }
  .rizon-latest-grid .rizon-list .rizon-download-dot{
    position:absolute;
    right:8px;
    bottom:8px;
    width:30px;
    height:30px;
    font-size:16px;
    margin:0;
  }
  .rizon-latest-grid .rizon-list .apk-info em{display:none;}

  .rizon-trust-banner{grid-template-columns:1fr;text-align:left;padding:24px 20px;border-radius:22px;}
  .trust-shield{width:62px;height:62px;border-radius:18px;font-size:32px;}
  .trust-android{display:none;}
  .rizon-feature-row{grid-template-columns:1fr;gap:4px;}
}

@media(max-width:390px){
  .container{width:min(100% - 20px, 1150px);}
  .brand{font-size:18px;}
  .brand-img{width:34px;height:34px;}
  .menu-btn,.theme-toggle{width:46px;height:46px;}
  .lang-switch a{padding:7px 10px;font-size:12px;}
  .rizon-hero h1{font-size:31px;}
  .rizon-latest-grid{gap:8px;}
  .rizon-latest-grid .rizon-list .rizon-apk-link{min-height:168px;padding:8px;}
  .rizon-latest-grid .rizon-list .apk-icon{width:50px;height:50px;border-radius:13px;}
  .rizon-latest-grid .rizon-list .rizon-card-topline h3{font-size:11.5px;}
}

@media(max-width:340px){
  /* Layar terlalu sempit dipaksa 2 kolom agar tidak rusak. */
  .rizon-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

html[data-theme="dark"] .rizon-category-grid::-webkit-scrollbar-thumb,
html[data-theme="dark"] .rizon-popular-grid::-webkit-scrollbar-thumb{background:rgba(196,181,253,.35);}


/* === V31 BUG FIXES ===
   - Tombol download di APK Terbaru sekarang berupa tombol teks, bukan ikon panah kecil.
   - Pagination ?page terlalu besar sudah dicegah dari sisi index.php.
   - Header link APK Terbaru diarahkan ke /#latest-apks agar berfungsi dari halaman mana pun.
*/
.rizon-download-dot{
  width:auto;
  min-width:92px;
  height:38px;
  padding:0 16px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  background:linear-gradient(135deg,var(--rz-purple),var(--rz-violet));
  border:0;
  color:#fff;
  font-size:12px;
  font-weight:950;
  line-height:1;
  text-transform:none;
  box-shadow:0 12px 24px rgba(108,92,231,.22);
}
.rizon-download-dot::before{content:"↓";font-size:15px;line-height:1;}
.rizon-download-dot::after{content:none!important;}
.rizon-download-text{display:inline-block;white-space:nowrap;}
.rizon-popular .rizon-download-dot{
  width:100%;
  min-width:0;
  margin:8px 0 0;
  padding:10px 14px;
  font-size:12px;
}
.rizon-popular .rizon-download-dot::before{font-size:14px;}
.rizon-latest-grid .rizon-list .rizon-apk-link{
  grid-template-columns:72px minmax(0,1fr) auto;
}
.rizon-latest-grid .rizon-list .rizon-download-dot{
  justify-self:end;
  align-self:center;
}
html[data-theme="dark"] .rizon-download-dot{
  background:linear-gradient(135deg,#7c3aed,#2563eb);
  color:#fff;
  box-shadow:none;
}

@media(max-width:1020px){
  .rizon-latest-grid .rizon-list .rizon-apk-link{
    grid-template-columns:62px minmax(0,1fr);
  }
  .rizon-latest-grid .rizon-list .rizon-download-dot{
    grid-column:1 / -1;
    justify-self:stretch;
    width:100%;
    height:36px;
  }
}

@media(max-width:760px){
  .rizon-latest-grid .rizon-list .rizon-apk-link{
    min-height:188px;
    padding:9px;
  }
  .rizon-latest-grid .rizon-list .rizon-download-dot{
    position:static;
    width:100%;
    min-width:0;
    height:31px;
    padding:0 6px;
    margin-top:auto;
    font-size:10px;
    border-radius:10px;
  }
  .rizon-latest-grid .rizon-list .rizon-download-dot::before{font-size:12px;}
  .rizon-latest-grid .rizon-list .rizon-meta-line{
    margin-bottom:2px;
  }
}

@media(max-width:390px){
  .rizon-latest-grid .rizon-list .rizon-apk-link{min-height:184px;}
  .rizon-latest-grid .rizon-list .rizon-download-dot{font-size:9.5px;height:30px;}
}

/* === V32 STABILITY BUGFIXES ===
   - Stop horizontal sideways shifting on mobile/public/admin.
   - Make admin panel truly mobile-safe.
   - Keep the ApkRizon hero inside viewport.
   - Keep 3-column latest APK cards usable with text Download button.
*/
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
body{touch-action:pan-y;}
img,svg,video,iframe{max-width:100%;}
*,*::before,*::after{min-width:0;}

/* Public layout: no full-bleed element may create sideways scroll. */
.topbar,.container,.footer,.rizon-hero,.rizon-trust-banner,.rizon-feature-row,.section{
  max-width:100%;
}
.rizon-hero{
  width:100%;
  margin-left:0!important;
  margin-right:0!important;
}

/* Reduce accidental anchor/sticky overlap. */
#latest-apks{scroll-margin-top:150px;}

@media(max-width:760px){
  .container{width:calc(100% - 24px)!important;max-width:100%!important;}
  .topbar{overflow:hidden;}
  .nav{max-width:100%;}
  .brand{max-width:calc(100% - 190px);}
  .brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .rizon-hero{
    width:100%!important;
    margin:14px 0 22px!important;
    border-radius:24px!important;
    padding:28px 20px 24px!important;
    overflow:hidden;
  }
  .rizon-hero h1{font-size:30px!important;line-height:1.1!important;letter-spacing:-.045em!important;}
  .rizon-hero p{font-size:14px!important;line-height:1.58!important;}
  .rizon-search{max-width:100%;}
  .rizon-tags{max-width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:none;}
  .rizon-tags::-webkit-scrollbar{display:none;}
  .rizon-tags span{flex:0 0 auto;}

  /* Latest APK 3-column stays inside the screen. */
  .rizon-latest-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
  .rizon-latest-grid .rizon-list .rizon-apk-link{min-height:190px!important;padding:8px!important;border-radius:16px!important;}
  .rizon-latest-grid .rizon-list .apk-icon{width:50px!important;height:50px!important;}
  .rizon-latest-grid .rizon-list .rizon-card-topline h3{font-size:11.5px!important;line-height:1.18!important;}
  .rizon-latest-grid .rizon-list .rizon-apk-info p,
  .rizon-latest-grid .rizon-list .rizon-meta-line{font-size:9.8px!important;}
  .rizon-latest-grid .rizon-list .rizon-download-dot{
    width:100%!important;
    min-width:0!important;
    height:30px!important;
    padding:0 4px!important;
    font-size:9.5px!important;
    border-radius:10px!important;
  }
  .rizon-latest-grid .rizon-list .rizon-download-dot::before{font-size:11px!important;}
}
@media(max-width:340px){
  .rizon-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* Admin layout hard fix. The previous admin CSS could still create a 2-column wide canvas on mobile. */
.admin-body{
  width:100%;
  max-width:100vw;
  overflow-x:hidden!important;
}
.admin-layout{
  width:100%;
  max-width:100vw;
  overflow-x:hidden!important;
}
.admin-main{
  max-width:calc(100vw - 280px);
  overflow-x:hidden;
}
.admin-main .card,
.admin-page-head,
.admin-topbar,
.admin-filter-card,
.bulk-toolbar{
  max-width:100%;
}
.card, .admin-page-head, .admin-topbar{word-break:normal;overflow-wrap:anywhere;}
.table-wrap{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
.table-wrap table{white-space:nowrap;}
.form-grid,.admin-filter-grid,.settings-grid-3,.page-manager-list{max-width:100%;}

@media(max-width:760px){
  .admin-layout{display:block!important;min-height:100vh!important;}
  .admin-main{
    margin-left:0!important;
    width:100%!important;
    max-width:100vw!important;
    padding:10px!important;
    overflow-x:hidden!important;
    background:#f4f7fb!important;
  }
  .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(88vw,310px)!important;
    max-width:calc(100vw - 18px)!important;
    transform:translate3d(-110%,0,0)!important;
    transition:transform .22s ease!important;
    z-index:1000!important;
  }
  .sidebar.open{transform:translate3d(0,0,0)!important;}
  .admin-overlay.show{display:block!important;position:fixed!important;inset:0!important;z-index:900!important;background:rgba(15,23,42,.48)!important;}
  .admin-topbar{position:sticky!important;top:8px!important;width:100%!important;border-radius:16px!important;padding:10px!important;margin-bottom:14px!important;}
  .admin-menu-btn{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;}
  .admin-page-head{padding:14px!important;border-radius:18px!important;margin:12px 0 14px!important;}
  .admin-page-head h1{font-size:24px!important;}
  .card{padding:14px!important;border-radius:18px!important;}
  .form-grid,.admin-filter-grid,.settings-grid-3{grid-template-columns:1fr!important;}
  .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .admin-two-col{grid-template-columns:1fr!important;}
  .bulk-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .bulk-toolbar select,.bulk-toolbar button{width:100%!important;}
  .table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;}
  .table-wrap table{min-width:760px!important;}
  .btn{max-width:100%;white-space:normal;text-align:center;}
}
