/*
Theme Name: KamalAPK
Theme URI: https://kamalapk.com
Author: kamalapk.com
Author URI: https://kamalapk.com
Description: Premium APK & Apps download theme for WordPress. App post type with version, size, MOD info, screenshots, download page with countdown, star ratings, and complete built-in SEO (meta tags, Open Graph, SoftwareApplication + FAQ + Breadcrumb schema). Fast, responsive, dark mode.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kamalapk
Tags: blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
  --accent: #6d5dfc;
  --accent2: #00c6ff;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  --bg: #f4f6fb;
  --bg2: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --text2: #475569;
  --muted: #94a3b8;
  --line: #e6e9f2;
  --header: rgba(255,255,255,.85);
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -8px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 50px -20px rgba(15,23,42,.25);
  --glow: 0 10px 30px -10px rgba(109,93,252,.55);
  --r: 16px;
  --r-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Sora', 'Inter', -apple-system, sans-serif;
  --container: 1240px;
  --star: #f59e0b;
  --green: #10b981;
}
body.dark {
  --bg: #0b0f1a;
  --bg2: #0f1524;
  --card: #141b2d;
  --text: #f1f5f9;
  --text2: #b6c0d3;
  --muted: #7c8aa5;
  --line: #222b40;
  --header: rgba(11,15,26,.8);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,.7);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--accent2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.2rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }
button { font-family: inherit; }
.ic { vertical-align: -3px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--accent); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 0; color: #fff; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, opacity .2s; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: var(--glow); }
.btn-primary:hover { opacity: .95; }
.btn-ghost { background: var(--bg); color: var(--text) !important; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .8rem; border-radius: 9px; box-shadow: none; }
.btn-block { width: 100%; justify-content: center; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; line-height: 1.4; }
.badge-mod { background: rgba(16,185,129,.12); color: var(--green); }
.badge-editor { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; box-shadow: var(--glow); }
.badge-verified { background: rgba(16,185,129,.12); color: var(--green); display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; font-size: .78rem; }
.badge-new { background: rgba(0,198,255,.14); color: var(--accent2); }

/* =========================================================
   Header
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 500; background: var(--header); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.custom-logo { max-height: 42px; width: auto; }
.site-title { font-family: var(--font-head); font-size: 1.45rem; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.site-title a { color: var(--text); }
.site-title a span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--glow); }
.main-navigation { flex: 1; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 10px 14px; color: var(--text2); font-weight: 500; font-size: .92rem; border-radius: 10px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current_page_item > a { color: var(--text); background: var(--bg); }
.main-navigation ul ul { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; flex-direction: column; z-index: 100; }
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul { display: flex; }
.header-search { position: relative; width: 300px; }
.header-search input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font-size: .92rem; font-family: inherit; transition: border .2s, box-shadow .2s; }
.header-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109,93,252,.18); }
.header-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--grad); color: #fff; cursor: pointer; font-size: .8rem; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--text2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; }
.mobile-search { display: none; padding: 10px 0 14px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; text-align: center; background: radial-gradient(1200px 500px at 50% -10%, rgba(109,93,252,.22), transparent 60%), radial-gradient(800px 400px at 90% 20%, rgba(0,198,255,.15), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent); pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text2); font-size: 1.1rem; max-width: 620px; margin: 0 auto 30px; }
.hero-search { max-width: 640px; margin: 0 auto; position: relative; }
.hero-search input { width: 100%; padding: 18px 150px 18px 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1.05rem; box-shadow: var(--shadow-lg); font-family: inherit; }
.hero-search input:focus { outline: 0; border-color: var(--accent); }
.hero-search .ic { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hero-search button { position: absolute; right: 8px; top: 8px; bottom: 8px; }
.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.hero-tags { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-tags a { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text2); }
.hero-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   Sections & grids
   ========================================================= */
.site-content { padding: 40px 0 60px; }
.section { margin-bottom: 52px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.section-title { font-size: 1.45rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-title .ic { color: var(--accent); }
.section-more { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; color: var(--text2); }
.section-more:hover { color: var(--accent); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.app-grid-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* App card */
.app-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(109,93,252,.35); }
.app-card-link { display: flex; gap: 14px; padding: 16px; color: inherit; }
.app-card-icon { position: relative; flex-shrink: 0; width: 80px; height: 80px; }
.app-card-icon .app-icon { width: 80px; height: 80px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.app-card-body { min-width: 0; flex: 1; }
.app-card-title { font-size: 1.02rem; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-family: var(--font); font-weight: 700; }
.app-card-meta { display: flex; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.app-card-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text2); margin-top: 6px; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg); margin-top: auto; }
.app-cat { font-size: .78rem; font-weight: 600; color: var(--text2); background: var(--card); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.app-cat:hover { color: var(--accent); border-color: var(--accent); }
.app-card-list .app-card-link { align-items: center; }

/* Stars */
.stars { display: inline-flex; gap: 2px; }
.stars .s { width: 14px; height: 14px; display: inline-block; background: var(--line); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.stars .s.full { background: var(--star); }
.stars .s.half { background: linear-gradient(90deg, var(--star) 50%, var(--line) 50%); }
.stars-sm .s { width: 12px; height: 12px; }
.rating-num { font-weight: 700; }
.rating-count { color: var(--muted); font-size: .85em; margin-left: 4px; }

/* Featured slider */
.featured-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.featured-track::-webkit-scrollbar { display: none; }
.featured-item { flex: 0 0 340px; scroll-snap-align: start; position: relative; border-radius: var(--r); overflow: hidden; padding: 22px; color: #fff; background: var(--grad); min-height: 170px; display: flex; gap: 16px; align-items: center; box-shadow: var(--glow); transition: transform .2s; }
.featured-item:nth-child(2n) { background: linear-gradient(135deg, #f43f5e, #f97316); box-shadow: 0 10px 30px -10px rgba(244,63,94,.5); }
.featured-item:nth-child(3n) { background: linear-gradient(135deg, #0ea5e9, #10b981); box-shadow: 0 10px 30px -10px rgba(14,165,233,.5); }
.featured-item:nth-child(4n) { background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 10px 30px -10px rgba(139,92,246,.5); }
.featured-item:hover { transform: translateY(-3px); }
.featured-item::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.12); }
.featured-item .app-icon { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.3); flex-shrink: 0; }
.featured-item h3 { color: #fff; font-size: 1.15rem; margin: 6px 0 4px; }
.featured-item h3 a { color: #fff; }
.featured-item .f-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 700; }
.featured-item .f-meta { font-size: .82rem; opacity: .9; }
.featured-item .btn { margin-top: 10px; background: #fff; color: var(--text) !important; box-shadow: none; }
.featured-item .btn:hover { color: var(--accent) !important; }

/* Categories grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; color: var(--text); transition: .2s; }
.cat-item:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-lg); }
.cat-item .cat-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 10px; }
.cat-item strong { font-size: .92rem; }
.cat-item span { font-size: .75rem; color: var(--muted); }

/* Trending list */
.trend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; counter-reset: trend; }
.trend-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: var(--text); transition: .2s; }
.trend-item:hover { border-color: var(--accent); transform: translateX(2px); }
.trend-item::before { counter-increment: trend; content: counter(trend); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--muted); width: 28px; text-align: center; }
.trend-item .app-icon { width: 52px; height: 52px; border-radius: 14px; }
.trend-item strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-item span { font-size: .78rem; color: var(--muted); }
.trend-item .t-dl { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { overflow: hidden; transition: .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card-body { padding: 16px; }
.post-card h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.post-card h3 a { color: var(--text); }
.post-card p { font-size: .88rem; color: var(--text2); margin: 0 0 8px; }
.post-meta { font-size: .8rem; color: var(--muted); }

/* =========================================================
   Layout with sidebar
   ========================================================= */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
.with-sidebar > main, .site-main { min-width: 0; }
.widget-area .widget { padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.widget li:last-child { border: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }
.widget-apps li { padding: 8px 0; }
.widget-apps a { display: flex; gap: 12px; align-items: center; }
.widget-apps .app-icon { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; }
.widget-apps strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-apps .wa-meta { font-size: .75rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.widget-apps .wa-body { min-width: 0; }
.widget_search form, .search-form { display: flex; gap: 6px; }
.widget_search input, .search-form input[type=search] { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-family: inherit; }
.widget select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.widget_tag_cloud a { display: inline-block; font-size: .8rem !important; background: var(--bg); padding: 4px 10px; border-radius: 999px; margin: 0 4px 6px 0; border: 1px solid var(--line); }
.sticky-sb { position: sticky; top: 90px; }
.ad-slot { margin: 20px 0; text-align: center; }

/* Breadcrumbs */
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--text2); }
.breadcrumbs a:hover { color: var(--accent); }

/* Archive header */
.page-header { margin-bottom: 26px; }
.page-title { font-size: 1.9rem; }
.archive-description { color: var(--text2); max-width: 760px; }
.archive-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.archive-tools a { font-size: .82rem; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text2); font-weight: 500; }
.archive-tools a.active, .archive-tools a:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* Pagination */
.pagination { margin: 30px 0 0; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .9rem; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* =========================================================
   Single App
   ========================================================= */
.app-hero { padding: 26px; display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; margin-bottom: 22px; position: relative; overflow: hidden; }
.app-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 0% 0%, rgba(109,93,252,.14), transparent 70%); pointer-events: none; }
.app-hero > * { position: relative; }
.app-hero .app-icon { width: 140px; height: 140px; border-radius: 32px; box-shadow: var(--shadow-lg); }
.app-hero h1 { font-size: 1.9rem; margin: 0 0 6px; }
.app-hero .app-dev { font-size: .92rem; color: var(--text2); margin-bottom: 8px; }
.app-hero .app-dev a { font-weight: 600; }
.app-hero .app-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.app-hero .app-rating-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.app-hero-cta { display: flex; flex-direction: column; gap: 10px; min-width: 210px; }
.app-hero-cta small { color: var(--muted); font-size: .78rem; text-align: center; }
.app-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 22px; }
.app-quick div { padding: 14px; text-align: center; }
.app-quick .ic { color: var(--accent); margin-bottom: 4px; }
.app-quick strong { display: block; font-size: .95rem; }
.app-quick span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.app-section { padding: 24px; margin-bottom: 22px; }
.app-section h2 { font-size: 1.25rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.app-section h2 .ic { color: var(--accent); }
.screens { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.screens a { flex: 0 0 auto; scroll-snap-align: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.screens img { height: 380px; width: auto; object-fit: cover; transition: transform .3s; }
.screens a:hover img { transform: scale(1.03); }
.app-info-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.app-info-table th, .app-info-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.app-info-table th { color: var(--muted); font-weight: 500; width: 38%; }
.app-info-table tr:last-child th, .app-info-table tr:last-child td { border: 0; }
.entry-content { font-size: 1.02rem; line-height: 1.8; }
.entry-content > *:not(:last-child) { margin-bottom: 1.3em; }
.entry-content h2 { font-size: 1.4rem; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.15rem; margin-top: 1.2em; }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content blockquote { border-left: 4px solid var(--accent); background: var(--bg); padding: 14px 20px; border-radius: 0 12px 12px 0; margin: 0 0 1.3em; font-style: italic; }
.entry-content pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 12px; overflow-x: auto; }
.entry-content code { font-family: Menlo, Consolas, monospace; font-size: .9em; }
.entry-content ul li, .entry-content ol li { margin-bottom: .4em; }
.whats-new ul { list-style: none; padding: 0; margin: 0; }
.whats-new li { padding: 6px 0 6px 26px; position: relative; }
.whats-new li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: rgba(16,185,129,.15); }
.whats-new li::after { content: "✓"; position: absolute; left: 3px; top: 5px; color: var(--green); font-size: .75rem; font-weight: 700; }
.install-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.install-steps li { display: flex; gap: 14px; align-items: flex-start; }
.install-steps li::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border: 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text2); margin: 0 0 12px; font-size: .95rem; }
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rate-box { text-align: center; padding: 26px; }
.rate-box .stars-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; margin: 10px 0; }
.rate-box .stars-input button { background: none; border: 0; cursor: pointer; padding: 0; width: 36px; height: 36px; color: var(--line); transition: .15s; }
.rate-box .stars-input button svg { width: 34px; height: 34px; }
.rate-box .stars-input button:hover, .rate-box .stars-input button:hover ~ button { color: var(--star); transform: scale(1.1); }
.rate-box .rate-msg { font-size: .85rem; color: var(--text2); min-height: 1.4em; }
.rate-box .rate-summary { font-size: 2.4rem; font-family: var(--font-head); font-weight: 800; }
.telegram-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--r); background: linear-gradient(135deg, #229ED9, #0f6fa8); color: #fff; margin-bottom: 22px; }
.telegram-banner strong { display: block; font-size: 1.05rem; }
.telegram-banner span { font-size: .85rem; opacity: .9; }
.telegram-banner .btn { background: #fff; color: #0f6fa8 !important; box-shadow: none; }
.share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; }
.sh { padding: 8px 14px; border-radius: 9px; color: #fff !important; font-size: .82rem; font-weight: 600; }
.sh-fb { background: #1877f2; } .sh-x { background: #111; } .sh-wa { background: #25d366; } .sh-tg { background: #229ED9; }
.tags-links a { display: inline-block; background: var(--bg); border: 1px solid var(--line); color: var(--text2); padding: 4px 12px; font-size: .8rem; border-radius: 999px; margin: 0 6px 6px 0; }
.tags-links a:hover { color: var(--accent); border-color: var(--accent); }
.app-updated { font-size: .82rem; color: var(--muted); }

/* Download page */
.dl-page { max-width: 720px; margin: 0 auto; text-align: center; }
.dl-page .card { padding: 40px 30px; }
.dl-page .app-icon { width: 110px; height: 110px; border-radius: 28px; margin: 0 auto 16px; box-shadow: var(--shadow-lg); }
.dl-page h1 { font-size: 1.6rem; }
.dl-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.dl-count { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; background: conic-gradient(var(--accent) var(--p, 0%), var(--line) 0); position: relative; }
.dl-count::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--card); }
.dl-count span { position: relative; }
.dl-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.dl-actions .btn-lg { min-width: 280px; justify-content: center; }
.dl-actions .btn[disabled] { opacity: .5; pointer-events: none; transform: none; }
.dl-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.dl-safe { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: .85rem; font-weight: 600; margin-top: 10px; }

/* =========================================================
   Blog single / comments
   ========================================================= */
.entry-header { margin-bottom: 20px; }
.entry-title { font-size: 2rem; }
.entry-meta { display: flex; gap: 14px; align-items: center; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.entry-meta img { border-radius: 50%; }
.post-thumbnail-single { border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }
.toc { padding: 16px 20px; margin-bottom: 24px; font-size: .92rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.post-list .post-card { display: grid; grid-template-columns: 260px 1fr; margin-bottom: 18px; }
.post-list .post-thumb { aspect-ratio: auto; height: 100%; min-height: 170px; }
.comments-area { padding: 24px; margin-top: 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 36px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 10px; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata { font-size: .78rem; color: var(--muted); }
.comment-content { clear: both; padding-top: 8px; font-size: .95rem; }
.reply a { font-size: .8rem; font-weight: 600; }
.comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-family: inherit; font-size: .95rem; }
.comment-form .submit, input[type=submit] { background: var(--grad); color: #fff; border: 0; padding: 12px 24px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.post-nav a { padding: 14px 16px; color: var(--text); font-size: .9rem; font-weight: 600; }
.post-nav a span { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--bg2); border-top: 1px solid var(--line); margin-top: 40px; color: var(--text2); font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 50px 0 30px; }
.footer-about p { font-size: .88rem; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: .7rem; font-weight: 700; }
.footer-social a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.site-footer .widget-title { border: 0; padding: 0; color: var(--text); }
.site-footer .widget li { border: 0; padding: 4px 0; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-disclaimer { font-size: .75rem; color: var(--muted); padding-bottom: 20px; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; border: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 400; box-shadow: var(--glow); display: flex; align-items: center; justify-content: center; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-height: 90vh; max-width: 92vw; border-radius: 12px; }
.lb-close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 2rem; background: none; border: 0; cursor: pointer; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header-search { width: 220px; }
  .main-navigation a { padding: 8px 10px; font-size: .88rem; }
}
@media (max-width: 1024px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sticky-sb { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .app-hero { grid-template-columns: 110px 1fr; }
  .app-hero .app-icon { width: 110px; height: 110px; border-radius: 26px; }
  .app-hero-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .app-hero-cta small { display: none; }
  .app-hero-cta .btn-block { width: auto; flex: 1; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
  .container { padding: 0 14px; }
  .site-content { padding: 20px 0 40px; }
  .section { margin-bottom: 30px; }
  .section-head { margin-bottom: 12px; }
  .section-title { font-size: 1.05rem; gap: 6px; }
  .section-title .ic { width: 18px; height: 18px; }
  .section-more { font-size: .8rem; }
  .btn { padding: 10px 16px; font-size: .88rem; border-radius: 10px; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
  .btn-sm { padding: 7px 12px; font-size: .78rem; }

  /* Header */
  .header-inner { height: 58px; gap: 10px; }
  .site-title { font-size: 1.2rem; }
  .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
  .custom-logo { max-height: 34px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
  .header-actions { gap: 6px; }
  .menu-toggle { display: flex; }
  .header-search { display: none; }
  .mobile-search.open { display: block; }
  .mobile-search .search-form input { padding: 10px 12px; font-size: .9rem; }
  .main-navigation { position: fixed; top: 58px; left: 0; right: 0; bottom: 0; background: var(--bg2); padding: 10px 14px 30px; display: none; overflow-y: auto; z-index: 499; border-top: 1px solid var(--line); }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; }
  .main-navigation li { border-bottom: 1px solid var(--line); }
  .main-navigation a { padding: 13px 8px; font-size: .95rem; border-radius: 0; }
  .main-navigation a:hover, .main-navigation .current-menu-item > a { background: none; color: var(--accent); }
  .main-navigation ul ul { position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; background: none; }
  .main-navigation ul ul li { border: 0; }
  .main-navigation ul ul a { padding: 9px 8px; font-size: .88rem; color: var(--text2); }
  .main-navigation li.open > ul { display: flex; }
  .main-navigation .menu-item-has-children > a::after { content: "›"; float: right; transform: rotate(90deg); color: var(--muted); }

  /* Hero */
  .hero { padding: 34px 0 28px; }
  .hero h1 { font-size: 1.65rem; margin-bottom: 8px; }
  .hero p { font-size: .9rem; margin-bottom: 18px; }
  .hero-search input { padding: 13px 84px 13px 40px; font-size: .9rem; border-radius: 12px; }
  .hero-search .ic { left: 13px; width: 18px; height: 18px; }
  .hero-search button { right: 6px; top: 6px; bottom: 6px; padding: 0 12px; font-size: .82rem; border-radius: 9px; }
  .hero-tags { margin-top: 12px; gap: 6px; }
  .hero-tags a { font-size: .72rem; padding: 4px 10px; }
  .hero-stats { gap: 18px; margin-top: 20px; }
  .hero-stats strong { font-size: 1.1rem; }
  .hero-stats span { font-size: .72rem; }

  /* Featured */
  .featured-track { gap: 10px; margin: 0 -14px; padding: 0 14px 6px; }
  .featured-item { flex-basis: 250px; padding: 14px; min-height: 0; gap: 12px; border-radius: 14px; }
  .featured-item .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  .featured-item h3 { font-size: .95rem; margin: 3px 0 2px; }
  .featured-item .f-label { font-size: .6rem; }
  .featured-item .f-meta { font-size: .72rem; }
  .featured-item .btn { margin-top: 6px; padding: 5px 10px; font-size: .72rem; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-item { padding: 12px 4px; border-radius: 12px; }
  .cat-item .cat-icon { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 11px; margin-bottom: 6px; }
  .cat-item strong { font-size: .72rem; line-height: 1.2; }
  .cat-item span { font-size: .62rem; }

  /* App cards: compact 2-col */
  .app-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-card { border-radius: 12px; }
  .app-card:hover { transform: none; }
  .app-card-link { flex-direction: column; align-items: center; text-align: center; padding: 12px 8px 6px; gap: 8px; }
  .app-card-icon, .app-card-icon .app-icon { width: 60px; height: 60px; }
  .app-card-icon .app-icon { border-radius: 15px; }
  .badge-editor { width: 18px; height: 18px; font-size: .6rem; top: -4px; right: -4px; }
  .app-card-title { white-space: normal; font-size: .82rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
  .app-card-meta { justify-content: center; font-size: .68rem; gap: 6px; margin-bottom: 4px; }
  .app-card-body .badge-mod { font-size: .58rem; padding: 2px 7px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
  .app-card-rating { justify-content: center; font-size: .7rem; margin-top: 4px; }
  .app-card-foot { padding: 6px 8px 8px; border-top: 0; background: none; }
  .app-card-foot .app-cat { display: none; }
  .app-card-foot .btn { width: 100%; justify-content: center; padding: 7px 8px; font-size: .74rem; }

  /* Trending */
  .trend-list { grid-template-columns: 1fr; gap: 8px; }
  .trend-item { padding: 8px 10px; gap: 10px; border-radius: 12px; }
  .trend-item::before { font-size: 1rem; width: 20px; }
  .trend-item .app-icon { width: 44px; height: 44px; border-radius: 12px; }
  .trend-item strong { font-size: .85rem; }
  .trend-item span { font-size: .7rem; }
  .trend-item .t-dl { font-size: .72rem; }

  /* Blog */
  .post-grid { grid-template-columns: 1fr; gap: 12px; }
  .post-card-body { padding: 12px; }
  .post-card h3 { font-size: .95rem; }
  .post-card p { font-size: .82rem; }
  .post-list .post-card { grid-template-columns: 1fr; }
  .post-list .post-thumb { min-height: 0; aspect-ratio: 16/9; }

  /* Single app */
  .breadcrumbs { font-size: .72rem; margin-bottom: 12px; white-space: nowrap; overflow-x: auto; }
  .breadcrumbs ol { flex-wrap: nowrap; }
  .app-hero { grid-template-columns: 84px 1fr; gap: 12px; padding: 14px; text-align: left; border-radius: 14px; margin-bottom: 12px; }
  .app-hero .app-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0; }
  .app-hero h1 { font-size: 1.15rem; margin-bottom: 4px; line-height: 1.25; }
  .app-hero .app-dev { font-size: .78rem; margin-bottom: 6px; }
  .app-hero .app-badges { gap: 5px; margin-bottom: 6px; }
  .app-hero .badge { font-size: .62rem; padding: 2px 7px; }
  .app-hero .badge-verified { padding: 3px 8px; font-size: .66rem; }
  .app-hero .app-rating-line { font-size: .78rem; }
  .app-hero-cta { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
  .app-hero-cta .btn-lg { padding: 12px 14px; font-size: .92rem; }
  .app-hero-cta .btn-ghost { width: auto; white-space: nowrap; }
  .app-quick { display: flex; overflow-x: auto; gap: 8px; margin: 0 -14px 12px; padding: 0 14px 4px; scrollbar-width: none; }
  .app-quick::-webkit-scrollbar { display: none; }
  .app-quick div { flex: 0 0 auto; min-width: 96px; }
  .app-quick div { padding: 10px 6px; border-radius: 12px; }
  .app-quick .ic { width: 16px; height: 16px; margin-bottom: 2px; }
  .app-quick strong { font-size: .82rem; }
  .app-quick span { font-size: .62rem; }
  .app-section { padding: 14px; margin-bottom: 12px; border-radius: 14px; }
  .app-section h2 { font-size: 1.05rem; margin-bottom: 10px; }
  .screens { gap: 8px; margin: 0 -14px; padding: 0 14px 6px; }
  .screens img { height: 240px; }
  .entry-content { font-size: .95rem; line-height: 1.7; }
  .entry-content h2 { font-size: 1.15rem; }
  .entry-content h3 { font-size: 1.02rem; }
  .app-info-table { font-size: .82rem; }
  .app-info-table th, .app-info-table td { padding: 8px 6px; }
  .install-steps li::before { width: 26px; height: 26px; font-size: .78rem; border-radius: 8px; }
  .install-steps li span { font-size: .88rem; }
  .faq summary { font-size: .9rem; padding: 10px 0; }
  .faq details p { font-size: .85rem; }
  .telegram-banner { flex-direction: column; text-align: center; padding: 14px; gap: 10px; margin-bottom: 12px; }
  .telegram-banner strong { font-size: .95rem; }
  .telegram-banner span { font-size: .78rem; }
  .rate-box { padding: 18px 14px; }
  .rate-box .rate-summary { font-size: 1.8rem; }
  .rate-box .stars-input button, .rate-box .stars-input button svg { width: 30px; height: 30px; }
  .share-buttons { gap: 6px; }
  .sh { padding: 7px 10px; font-size: .74rem; }
  .app-hero[style] { grid-template-columns: 56px 1fr !important; padding: 12px !important; }
  .app-hero[style] .app-icon { width: 56px; height: 56px; border-radius: 14px; }
  .app-hero[style] .btn { grid-column: 1 / -1; justify-content: center; }
  .related-apps .app-grid { grid-template-columns: 1fr 1fr; }

  /* Download page */
  .dl-page .card { padding: 26px 16px; }
  .dl-page .app-icon { width: 84px; height: 84px; border-radius: 20px; }
  .dl-page h1 { font-size: 1.25rem; }
  .dl-meta { gap: 10px; font-size: .78rem; margin-bottom: 16px; }
  .dl-count { width: 90px; height: 90px; font-size: 1.9rem; }
  .dl-actions .btn-lg { min-width: 0; width: 100%; }
  .dl-note { font-size: .78rem; }

  /* Archive */
  .page-title { font-size: 1.4rem; }
  .archive-tools { gap: 6px; margin-bottom: 14px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .archive-tools a { font-size: .74rem; padding: 6px 11px; white-space: nowrap; }
  .pagination .page-numbers { min-width: 34px; height: 34px; font-size: .82rem; }

  /* Widgets */
  .widget-area .widget { padding: 14px; margin-bottom: 12px; }
  .widget-title { font-size: .92rem; }
  .widget-apps .app-icon { width: 42px; height: 42px; border-radius: 11px; }
  .widget-apps strong { font-size: .84rem; }
  .comments-area { padding: 14px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 0 14px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { font-size: .82rem; }
  .site-footer .widget-title { font-size: .88rem; margin-bottom: 8px; }
  .site-footer .widget li { font-size: .82rem; padding: 3px 0; }
  .footer-disclaimer { font-size: .68rem; padding-bottom: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; font-size: .74rem; padding: 14px 0; gap: 6px; }
  .footer-menu ul { justify-content: center; gap: 12px; }
  .back-to-top { width: 38px; height: 38px; right: 12px; bottom: 12px; border-radius: 10px; }
  .post-nav { grid-template-columns: 1fr; gap: 8px; }
  .post-nav a { padding: 10px 12px; font-size: .82rem; }
  .entry-title { font-size: 1.35rem; }
  .entry-meta { font-size: .76rem; gap: 8px; }
  .toc { padding: 12px 14px; font-size: .85rem; }
}
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { gap: 12px; }
}
@media print { .site-header, .site-footer, .widget-area, .share-buttons, .back-to-top { display: none !important; } }
