/* ===== KATTU APK THEME CSS ===== */
@charset "utf-8";

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #1bbc9b;
  --accent-dark: #159a80;
  --bg: #1a1f2e;
  --bg2: #222837;
  --bg3: #2a3045;
  --card: #222837;
  --card-hover: #2a3045;
  --text: #e8eaf0;
  --text-muted: #9ba3b5;
  --border: #2d3550;
  --star: #f5a623;
  --header-h: 60px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body { font-family: 'Open Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrapper-page { display: flex; flex-direction: column; min-height: 100vh; }
.wrapper-inside { flex: 1; }

/* HEADER */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--bg); border-bottom: 2px solid var(--accent);
  height: var(--header-h);
}
#header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
#header .logo a { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: #fff; }
#header .logo .logo-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
#header nav { display: flex; align-items: center; gap: 4px; }
#header nav a { padding: 6px 12px; border-radius: 6px; color: var(--text-muted); font-size: 13px; font-weight: 600; transition: all .2s; position: relative; }
#header nav a:hover, #header nav a.current-menu-item { color: #fff; }
.hamburger { display: none; background: none; color: var(--text); font-size: 20px; padding: 6px; border: none; cursor: pointer; }

/* MOBILE MENU */
#menu-mobile { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 998; padding: 20px; overflow-y: auto; }
#menu-mobile.open { display: block; }
#menu-mobile ul li a { display: block; padding: 12px 16px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--border); }

/* SUBHEADER / HERO */
#subheader {
  margin-top: var(--header-h);
  min-height: 340px;
  background: linear-gradient(135deg, #0f1420 0%, #1a2a3a 40%, #0d2010 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  border-bottom: 2px solid var(--accent);
}
#subheader .imgbg { position: absolute; inset: 0; }
#subheader .imgbg img { width: 100%; height: 100%; object-fit: cover; opacity: .15; }
#subheader .subcontainer { position: relative; z-index: 2; text-align: center; width: 100%; padding: 40px 16px; }
#subheader h1 { font-size: clamp(20px, 4vw, 38px); font-weight: 700; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
#subheader p { color: rgba(255,255,255,.7); font-size: 14px; max-width: 600px; margin: 0 auto 22px; }

/* SEARCH BOX */
#searchBox { position: relative; max-width: 540px; margin: 0 auto 20px; }
#searchBox form { display: flex; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
#searchBox input[type=text] { flex: 1; border: none; outline: none; padding: 12px 20px; font-size: 15px; color: #333; background: transparent; font-family: inherit; }
#searchBox button { background: var(--accent); color: #fff; border: none; padding: 12px 20px; cursor: pointer; font-size: 16px; transition: .2s; }
#searchBox button:hover { background: var(--accent-dark); }
#searchBox ul { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); max-height: 360px; overflow-y: auto; z-index: 200; display: none; }
#searchBox ul.show { display: block; }
#searchBox ul li a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: #333; transition: .2s; border-bottom: 1px solid #f0f0f0; }
#searchBox ul li a:hover { background: #f8f8f8; }
#searchBox ul li a img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* SOCIAL ICONS */
.subheader-social { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.subheader-social a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; transition: .2s; }
.subheader-social a:hover { transform: scale(1.1); }
.subheader-social a.facebook { background: #3b5998; }
.subheader-social a.twitter { background: #1da1f2; }
.subheader-social a.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.subheader-social a.youtube { background: #ff0000; }
.subheader-social a.telegram { background: #0088cc; }

/* MAIN */
#main-site { padding: 20px 0 40px; }
.main-wrap { display: flex; gap: 24px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* SECTIONS */
.sections { display: flex; flex-direction: column; gap: 28px; }
.section { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.section-header h2 { font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.section-header h2 i { color: var(--accent); }
.section a.more { color: var(--accent); font-size: 12px; font-weight: 600; padding: 4px 12px; border: 1px solid var(--accent); border-radius: 20px; transition: .2s; }
.section a.more:hover { background: var(--accent); color: #fff; }

/* BAV1 GRID */
.bav1-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--border); }
.bav1-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.bav.bav1 { background: var(--card); }
.bav.bav1 a { display: flex; flex-direction: column; align-items: center; padding: 16px 10px 12px; transition: .2s; position: relative; text-align: center; }
.bav.bav1 a:hover { background: var(--card-hover); }
.bav.bav1 .bloque-imagen { position: relative; margin-bottom: 10px; }
.bav.bav1 .bloque-imagen img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.badge { position: absolute; top: -4px; right: -4px; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px; text-transform: uppercase; }
.badge.new { background: #e74c3c; color: #fff; }
.badge.updated { background: #f39c12; color: #fff; }
.badge.mod { background: #9b59b6; color: #fff; }
.bav.bav1 .title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bav.bav1 .version { font-size: 10px; color: var(--accent); margin-bottom: 2px; }
.bav.bav1 .developer { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }

/* BAV2 CAROUSEL */
.carousel-wrap { position: relative; }
.carousel-inner { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 12px 20px; scrollbar-width: none; }
.carousel-inner::-webkit-scrollbar { display: none; }
.bav.bav2 { flex: 0 0 300px; background: var(--bg3); border-radius: var(--radius); overflow: hidden; transition: .2s; border: 1px solid var(--border); cursor: pointer; }
.bav.bav2:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,188,155,.2); }
.bav.bav2 > a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.bav.bav2 .bloque-imagen img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.bav.bav2 .bap-c .title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.bav.bav2 .bap-c .version { font-size: 11px; color: var(--accent); margin-bottom: 1px; }
.bav.bav2 .bap-c .developer { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: var(--accent); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: .2s; box-shadow: 0 4px 12px rgba(0,0,0,.4); border: none; cursor: pointer; }
.carousel-btn:hover { background: var(--accent-dark); }
.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }

/* STARS */
.stars-wrap { display: inline-flex; align-items: center; gap: 4px; }
.stars { color: var(--star); font-size: 11px; letter-spacing: 1px; }
.stars-count { font-size: 10px; color: var(--text-muted); }

/* APP SINGLE PAGE */
.app-header-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.app-icon-big { width: 100px; height: 100px; border-radius: 22px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.5); flex-shrink: 0; }
.app-header-info h1 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.app-header-info .dev-name { color: var(--accent); font-size: 13px; margin-bottom: 6px; }
.meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.meta-badge { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.meta-badge i { color: var(--accent); }
.cat-tag { background: var(--bg3); color: var(--accent); font-size: 11px; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border); transition: .2s; display: inline-block; }
.cat-tag:hover { background: var(--accent); color: #fff; }
.download-btn-big { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 28px; border-radius: 30px; transition: .2s; box-shadow: 0 6px 20px rgba(27,188,155,.4); margin-top: 12px; }
.download-btn-big:hover { background: var(--accent-dark); transform: translateY(-2px); }
.app-section-title { font-size: 15px; font-weight: 700; color: #fff; margin: 20px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.app-description { color: var(--text-muted); line-height: 1.8; font-size: 13px; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table td { padding: 10px 14px; font-size: 13px; }
.info-table td:first-child { color: var(--text-muted); width: 140px; }
.info-table td:last-child { color: #fff; font-weight: 600; }

/* DOWNLOAD PAGE */
.bx-download { background: var(--card); border-radius: var(--radius); padding: 30px; text-align: center; margin: 20px auto; max-width: 600px; box-shadow: var(--shadow); }
.bxt { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.countdown-circle { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 32px; font-weight: 700; color: var(--accent); }
.dl-link-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; transition: .2s; margin-bottom: 10px; }
.dl-link-item:hover { border-color: var(--accent); }
.dl-link-btn { background: var(--accent); color: #fff; padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; transition: .2s; display: inline-flex; align-items: center; gap: 5px; }
.dl-link-btn:hover { background: var(--accent-dark); }
.dl-link-btn:disabled, .dl-link-btn.disabled { opacity: .5; pointer-events: none; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: #fff; }

/* SIDEBAR WIDGETS */
.widget { background: var(--card); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow); }
.widget-title { font-size: 14px; font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--border); color: #fff; background: var(--bg3); }
.widget-content { padding: 12px; }
.widget-app-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; transition: .2s; cursor: pointer; }
.widget-app-item:hover { background: var(--bg3); }
.widget-app-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.widget-app-item .info .name { font-size: 12px; font-weight: 700; color: var(--text); }
.widget-app-item .info .ver { font-size: 10px; color: var(--text-muted); }

/* CATEGORY LIST WIDGET */
.widget-cat-item { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; transition: .2s; }
.widget-cat-item:last-child { border-bottom: none; }
.widget-cat-item:hover { color: var(--accent); }
.widget-cat-item i { color: var(--accent); width: 16px; }
.widget-cat-count { margin-left: auto; background: var(--bg3); padding: 2px 8px; border-radius: 10px; font-size: 10px; }

/* PAGINATION */
.pagination-wrap { display: flex; justify-content: center; padding: 20px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 600; transition: .2s; }
.pagination a { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.pagination a:hover, .pagination .current { background: var(--accent); color: #fff; border: 1px solid var(--accent); }

/* FOOTER */
#footer { background: var(--bg2); border-top: 1px solid var(--border); }
#footer .container { padding: 30px 16px 0; }
#footer ul { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
#footer ul a { color: var(--text-muted); font-size: 13px; transition: .2s; }
#footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; flex-wrap: wrap; gap: 10px; }
.footer-bottom .copy { color: var(--text-muted); font-size: 12px; }
.footer-bottom .logo { font-size: 18px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
.footer-bottom .logo span { color: var(--accent); }

/* APP GRID ON ARCHIVE */
.apps-archive-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border); }

/* TOAST */
.kattu-toast { position: fixed; bottom: 24px; right: 24px; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); z-index: 9999; transform: translateY(100px); opacity: 0; transition: .3s; }
.kattu-toast.show { transform: translateY(0); opacity: 1; }

/* APP BOX (single post meta box area) */
.app-spe { padding: 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* WP ADMIN BAR FIX */
.admin-bar #header { top: 32px; }
.admin-bar #menu-mobile { top: calc(var(--header-h) + 32px); }

/* RESPONSIVE */
@media(max-width: 900px) {
  .bav1-grid.cols-6, .apps-archive-grid { grid-template-columns: repeat(4, 1fr); }
  .sidebar { display: none; }
  .main-wrap { flex-direction: column; }
}
@media(max-width: 640px) {
  #header nav { display: none; }
  .hamburger { display: flex; }
  .bav1-grid.cols-6, .bav1-grid.cols-4, .apps-archive-grid { grid-template-columns: repeat(3, 1fr); }
  .app-header-row { flex-direction: column; align-items: center; text-align: center; }
  .meta-row { justify-content: center; }
}
@media(max-width: 420px) {
  .bav1-grid.cols-6, .apps-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== APP SINGLE PAGE — NEW LAYOUT ===== */

/* Top card */
.app-card-top {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.app-top-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* Icon column */
.app-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: 170px;
}
.app-icon-big {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.app-icon-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  font-weight: 900;
  color: #fff;
}

/* Download button (under icon) */
.btn-download-apk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  width: 100%;
  transition: .2s;
  text-align: center;
  box-shadow: 0 4px 14px rgba(27,188,155,.45);
}
.btn-download-apk:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,188,155,.55);
}

/* Large download button at bottom */
.btn-download-apk-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 30px;
  transition: .2s;
  box-shadow: 0 6px 20px rgba(27,188,155,.4);
}
.btn-download-apk-large:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(27,188,155,.5);
}

/* Rating box under download button */
.app-rating-box {
  width: 100%;
  text-align: center;
}
.rating-stars-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 15px;
  margin-bottom: 2px;
}
.rating-stars-display .rating-avg {
  font-size: 13px;
  font-weight: 700;
  color: var(--star);
  margin-left: 4px;
}
.rating-votes {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.rate-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}
.rate-row .rate-star {
  font-size: 18px;
  color: #555;
  cursor: pointer;
  transition: .15s;
}
.rate-feedback {
  font-size: 10px;
  color: var(--text-muted);
  min-height: 14px;
  margin-bottom: 6px;
}
.report-link {
  font-size: 11px;
  color: var(--text-muted);
  transition: .2s;
}
.report-link:hover { color: #e74c3c; }

/* Info right column */
.app-info-wrap { flex: 1; min-width: 0; }
.app-breadcrumb-inline {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.app-breadcrumb-inline a { color: var(--text-muted); }
.app-breadcrumb-inline a:hover { color: var(--accent); }

.app-title-main {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.app-version-badge {
  display: inline-block;
  background: var(--bg3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  margin-bottom: 6px;
}
.cat-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-right: 4px;
  transition: .2s;
}
.cat-pill:hover { background: var(--accent-dark); }
.cat-pill.badge-new      { background: #e74c3c; }
.cat-pill.badge-updated  { background: #f39c12; }
.cat-pill.badge-mod      { background: #9b59b6; }

.app-short-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 10px 0 14px;
}

/* Info grid */
.app-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.info-cell {
  background: var(--bg3);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.info-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.info-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.gplay-link { display: inline-block; }
.gplay-link img { border-radius: 4px; }

/* Social share */
.social-share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border: 1px solid var(--border);
  background: var(--bg3);
  transition: .2s;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-fb:hover { background: #3b5998; border-color: #3b5998; }
.share-tw:hover { background: #1da1f2; border-color: #1da1f2; }
.share-pi:hover { background: #e60023; border-color: #e60023; }
.share-tg:hover { background: #0088cc; border-color: #0088cc; }
.share-wa:hover { background: #25d366; border-color: #25d366; }

/* Description and info cards */
.app-desc-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-section-title i { color: var(--accent); }

/* Download box */
.bx-download {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent);
}
.countdown-wrap { margin: 16px 0; }
.countdown-circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  transition: .3s;
}
.dl-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: .2s;
}
.dl-link-item:hover { border-color: var(--accent); }
.dl-link-btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dl-link-btn:hover { background: var(--accent-dark); }
.dl-link-btn.disabled { opacity: .45; pointer-events: none; }

/* Responsive */
@media (max-width: 680px) {
  .app-top-inner    { flex-direction: column; align-items: center; }
  .app-icon-wrap    { width: 100%; }
  .app-info-grid    { grid-template-columns: repeat(2,1fr); }
  .social-share-row { justify-content: center; }
  .app-title-main   { text-align: center; }
  .app-version-badge, .cat-pill { margin-bottom: 4px; }
}
@media (max-width: 420px) {
  .app-info-grid { grid-template-columns: 1fr 1fr; }
  .share-btn span { display: none; }
}

/* ===== LAYOUT FIXES — force side by side on all screens ===== */
.app-top-inner {
  display: flex !important;
  flex-direction: row !important;
  gap: 28px;
  align-items: flex-start;
}
.app-icon-wrap {
  min-width: 170px !important;
  max-width: 170px !important;
  width: 170px !important;
  flex-shrink: 0 !important;
}
.app-info-wrap {
  flex: 1 !important;
  min-width: 0;
}

/* Fix sidebar default WP widgets */
.widget-content .widget,
.sidebar .widget {
  margin-bottom: 20px;
}
.sidebar .widget-title {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #fff;
  background: var(--bg3);
}
.sidebar ul li {
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sidebar ul li a { color: var(--text-muted); transition:.2s; }
.sidebar ul li a:hover { color: var(--accent); }
.sidebar .search-form {
  padding: 12px;
  display: flex;
  gap: 6px;
}
.sidebar .search-form input[type=search] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}
.sidebar .search-form button,
.sidebar .search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

/* Mobile: stack below 600px ONLY */
@media (max-width: 600px) {
  .app-top-inner {
    flex-direction: column !important;
    align-items: center !important;
  }
  .app-icon-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    align-items: center;
  }
  .app-icon-big,
  .app-icon-placeholder { width: 120px !important; height: 120px !important; }
  .btn-download-apk { max-width: 220px; }
  .app-info-wrap { text-align: center; }
  .app-info-grid { grid-template-columns: 1fr 1fr; }
  .social-share-row { justify-content: center; }
}

/* Stars always visible and clickable */
.rate-row .rate-star {
  font-size: 22px !important;
  color: #555 !important;
  cursor: pointer !important;
  transition: color .15s !important;
  -webkit-user-select: none;
  user-select: none;
}
.rate-row .rate-star:hover,
.rate-row .rate-star.active { color: var(--star) !important; }
