/*
Theme Name: APPSTORE v7
Theme URI: https://website4sell.com
Author: AlgorithmDevZ
Description: A premium app store WordPress theme – white edition. No dark mode, improved professional layout.
Version: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paidappstore
Tags: custom-menu, featured-images, full-width-template, rtl-language-support, sticky-post, translation-ready
*/

/* =============================================
   CSS VARIABLES — white theme only
   ============================================= */
:root {
  --primary: #FF6A00;
  --primary-light: #FF8C38;
  --primary-bg: #FFF4EC;
  --primary-shadow: rgba(255,106,0,.22);
  --primary-shadow-sm: rgba(255,106,0,.12);
  --primary-shadow-md: rgba(255,106,0,.30);
  --dark: #1A1A1A;
  --dark2: #2D2D2D;
  --gray: #666666;
  --gray-light: #999999;
  --border: #E8E8E8;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --card-shadow: 0 1px 6px rgba(0,0,0,0.07);
  --card-shadow-hover: 0 4px 18px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 64px;
  --bottom-nav-height: 64px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(13px, 3.2vw, 15px); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; }

/* =============================================
   SITE HEADER — solid white, no blur
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
  height: 62px;
  max-width: 100%;
  overflow-x: clip;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.site-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; min-width: 0; overflow: hidden; }
.header-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-shrink: 0; }
.theme-color-picker { display: flex; align-items: center; gap: 4px; padding: 3px 0; }
.logo-android-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =============================================
   THEME COLOUR PICKER DOTS
   ============================================= */
.theme-dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0; flex-shrink: 0; opacity: 0.5; }
.theme-dot:hover { opacity: 0.9; }
.theme-dot.active { opacity: 1; }


.btn-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--dark); cursor: pointer; padding: 4px; }
.btn-icon:hover { background: rgba(0,0,0,0.05); }
.btn-icon svg { width: 18px; height: 18px; }

/* =============================================
   ANNOUNCEMENT BANNER
   ============================================= */
.announcement-banner { background: #FFF3E8; border-bottom: 1px solid #FFD4A8; padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--dark2); position: relative; }
.fp-announce.announcement-banner { background: var(--primary); border-bottom: none; color: #fff; }
.announcement-banner .icon { color: var(--primary); flex-shrink: 0; }
.fp-announce.announcement-banner .icon { color: #fff; }
.announcement-banner .cta-link { color: var(--primary); font-weight: 700; text-decoration: underline; }
.announcement-banner .cta-btn { background: #1A73E8; color: white; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.announcement-banner .close-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; border: none; cursor: pointer; color: var(--gray); font-size: 16px; padding: 0; }
.announcement-banner .close-btn:hover { background: var(--border); }
.fp-announce.announcement-banner .close-btn { color: rgba(255,255,255,.85); }
.fp-announce.announcement-banner .close-btn:hover { background: rgba(255,255,255,.2); }

/* =============================================
   CONTAINER
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section { background: var(--white); padding: clamp(20px,5vw,32px) clamp(14px,4vw,20px) clamp(18px,4.5vw,28px); }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-bg); border: 1.5px solid #FFD0A8; color: var(--primary); font-size: clamp(9px,2.2vw,11px); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: clamp(4px,1.2vw,6px) clamp(10px,3vw,14px); border-radius: 30px; margin-bottom: 12px; }
.hero-title { font-size: clamp(22px,6.5vw,40px); font-weight: 900; color: var(--dark); margin-bottom: 10px; line-height: 1.15; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: clamp(12px,3.2vw,15px); color: var(--gray); margin-bottom: 20px; line-height: 1.6; max-width: 480px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--border); border-radius: 50px; padding: clamp(10px,2.5vw,14px) clamp(14px,4vw,20px); box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; max-width: 560px; }
.hero-search svg { color: var(--gray-light); flex-shrink: 0; width: clamp(16px,4vw,20px); height: clamp(16px,4vw,20px); }
.hero-search input { border: none; outline: none; font-family: var(--font-body); font-size: clamp(13px,3.2vw,15px); color: var(--dark); background: transparent; flex: 1; }
.hero-search input::placeholder { color: var(--gray-light); }
.hero-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
.hero-cat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: clamp(14px,3.5vw,20px) clamp(8px,2vw,12px) clamp(12px,3vw,16px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(6px,1.8vw,10px); box-shadow: var(--card-shadow); cursor: pointer; }
.hero-cat-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow-hover); }
.hero-cat-icon { width: clamp(40px,11vw,56px); height: clamp(40px,11vw,56px); border-radius: clamp(10px,2.8vw,16px); display: flex; align-items: center; justify-content: center; }
.hero-cat-icon svg { width: clamp(20px,5.5vw,28px); height: clamp(20px,5.5vw,28px); color: white; }
.hero-cat-icon.games { background: #7C3AED; }
.hero-cat-icon.apps  { background: #2563EB; }
.hero-cat-icon.tv    { background: var(--primary); }
.hero-cat-label { font-size: clamp(11px,2.8vw,14px); font-weight: 700; color: var(--dark); font-family: var(--font-display); }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 0 18px; gap: 8px; }
.section-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: clamp(16px,4vw,20px); font-weight: 800; color: var(--dark); line-height: 1; margin: 0; letter-spacing: -0.2px; }
.section-title::before { content: ''; display: block; width: 3px; height: 20px; background: var(--primary); border-radius: 3px; flex-shrink: 0; }
.section-title.no-bar::before { display: none; }
.section-icon { font-size: clamp(14px,3.5vw,17px); line-height: 1; }
.section-header > div { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.section-header h2.section-title { margin-top: 0 !important; }
.see-all-link { font-size: clamp(11px,2.8vw,13px); font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; flex-shrink: 0; align-self: center; }
.see-all-link:hover { opacity: 0.75; }
.see-all-link svg { width: clamp(12px,3.2vw,15px); height: clamp(12px,3.2vw,15px); }

/* =============================================
   SECTION WRAPPER
   ============================================= */
.section-wrapper { padding: 26px 0; background: #ffffff; position: relative; }
.section-wrapper.bg-gray { background: var(--bg); }

/* =============================================
   TRENDING
   ============================================= */
.trending-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; -ms-overflow-style: none; }
.trending-scroll::-webkit-scrollbar { display: none; }
.trending-card { flex-shrink: 0; width: clamp(80px,22vw,110px); display: flex; flex-direction: column; align-items: center; gap: clamp(6px,1.5vw,10px); text-align: center; }
.trending-thumb { width: clamp(60px,16vw,78px); height: clamp(60px,16vw,78px); border-radius: clamp(12px,3.5vw,18px); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.09); flex-shrink: 0; }
.trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trending-thumb .placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: clamp(22px,6vw,32px); font-weight: 900; color: white; }
.trending-name { font-size: clamp(10px,2.5vw,12px); font-weight: 600; color: var(--dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =============================================
   FEATURED SLIDER
   ============================================= */
.featured-slider-wrap { padding: 0; position: relative; }
.featured-slider { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.featured-slider::-webkit-scrollbar { display: none; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,0.50); color: #fff; cursor: flex; display: flex; align-items: center; justify-content: center; opacity: 0.85; padding: 0; cursor: pointer; }
.slider-btn:hover { background: var(--primary); opacity: 1; }
.slider-btn--prev { left: 10px; }
.slider-btn--next { right: 10px; }
.slider-btn.slider-btn--hidden { opacity: 0; pointer-events: none; }
.featured-card { flex-shrink: 0; width: 100vw; max-width: 100%; border-radius: 0; overflow: hidden; position: relative; scroll-snap-align: start; background: #1a1a2e; }
.featured-card-img { width: 100%; height: clamp(220px,58vw,320px); object-fit: cover; display: block; }
.featured-card-img-placeholder { width: 100%; height: clamp(220px,58vw,320px); background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); display: flex; align-items: center; justify-content: center; font-size: clamp(48px,14vw,80px); }
.featured-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 14px 14px; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, transparent 100%); }
.featured-card-app { display: flex; align-items: center; gap: 12px; }
.featured-app-icon { width: clamp(46px,12vw,62px); height: clamp(46px,12vw,62px); border-radius: clamp(10px,2.8vw,14px); overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.22); background: #2a2a3e; display: flex; align-items: center; justify-content: center; font-size: clamp(22px,6vw,30px); }
.featured-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.featured-app-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.featured-app-name { font-family: var(--font-display); font-size: clamp(15px,4.2vw,20px); font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.featured-app-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-version  { background: rgba(255,255,255,0.18); color: #fff; }
.badge-premium  { background: var(--primary); color: #fff; }
.badge-category { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); }
.badge-downloads{ background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.9); }
.slider-dots { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 10px 0 4px; }
.slider-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; flex-shrink: 0; }
.slider-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

/* =============================================
   POPULAR GAMES GRID (2 cols)
   ============================================= */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px,2.5vw,12px); padding: 0 clamp(12px,3.5vw,18px); }
.game-card { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3/4; background: #1a1a2e; box-shadow: 0 2px 10px rgba(0,0,0,0.14); cursor: pointer; display: block; width: 100%; }
.game-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.game-card-img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.game-card-img-placeholder { width: 100%; height: 100%; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(36px,10vw,52px); }
.game-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: clamp(28px,8vw,40px) clamp(10px,2.8vw,14px) clamp(10px,2.8vw,14px); background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.65) 45%, transparent 100%); }
.game-card-name { font-family: var(--font-display); font-size: clamp(13px,3.5vw,16px); font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: clamp(4px,1.2vw,6px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin-bottom: clamp(6px,1.8vw,9px); }
.game-card-version { font-size: clamp(10px,2.6vw,12px); color: var(--primary-light); font-weight: 700; }
.game-card-dot { font-size: clamp(10px,2.6vw,12px); color: rgba(255,255,255,0.5); }
.game-card-mod { font-size: clamp(10px,2.6vw,12px); color: rgba(255,255,255,0.75); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.game-card-cat-badge { display: inline-block; background: rgba(255,255,255,0.92); color: #111; font-size: clamp(10px,2.4vw,12px); font-weight: 700; padding: clamp(3px,.9vw,5px) clamp(8px,2.2vw,12px); border-radius: 20px; }

/* =============================================
   POPULAR APPS GRID (3 cols)
   ============================================= */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px; }
.app-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer; padding: 12px 6px; border-radius: 16px; background: #fff; border: 1.5px solid transparent; transition: border-color .18s, box-shadow .18s; }
.app-card:hover { border-color: var(--border); box-shadow: 0 3px 14px rgba(0,0,0,0.08); }
.app-icon { width: clamp(58px,15vw,78px); height: clamp(58px,15vw,78px); border-radius: clamp(14px,3.5vw,20px); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.11); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(24px,7vw,34px); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-name { font-size: clamp(10px,2.8vw,13px); font-weight: 700; color: var(--dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-tag { font-size: clamp(10px,2.4vw,12px); color: var(--primary); font-weight: 600; }

/* =============================================
   BROWSE CATEGORIES
   ============================================= */
.categories-grid { display: grid; grid-template-columns: calc(50% - 5px) calc(50% - 5px); gap: 10px; padding: 0 16px; overflow: hidden; box-sizing: border-box; }
.category-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; padding: 14px 10px 14px 14px; cursor: pointer; text-decoration: none; min-width: 0; overflow: hidden; box-sizing: border-box; height: 76px; max-height: 76px; flex-shrink: 0; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.category-row:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.category-row-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.category-row-icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.category-row-info { flex: 1; min-width: 0; overflow: hidden; }
.category-row-name { font-size: 12px; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.category-row-count { font-size: 11px; color: var(--gray); margin-top: 2px; }
.category-row-arrow { color: #bbb; flex-shrink: 0; }
.category-row-arrow svg { width: 14px; height: 14px; }

/* =============================================
   TELEGRAM BANNER
   ============================================= */
.telegram-banner { margin: 0 18px; background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #0277BD 100%); border-radius: 22px; padding: 22px 18px; display: flex; align-items: center; gap: 16px; text-decoration: none; box-shadow: 0 6px 24px rgba(13,71,161,0.28); }
.telegram-banner:hover { opacity: .93; }
.telegram-icon-wrap { width: 52px; height: 52px; background: rgba(255,255,255,0.18); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,0.22); }
.telegram-icon-wrap svg { width: 28px; height: 28px; color: white; fill: white; }
.telegram-info { flex: 1; }
.telegram-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.telegram-desc  { font-size: 12px; color: rgba(255,255,255,0.80); margin-bottom: 4px; }
.telegram-meta  { font-size: 11px; color: rgba(255,255,255,0.70); display: flex; align-items: center; gap: 4px; }
.telegram-arrow { width: 38px; height: 38px; background: rgba(255,255,255,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,0.22); }
.telegram-arrow svg { width: 18px; height: 18px; color: white; }

/* =============================================
   LATEST UPDATES
   ============================================= */
.updates-tabs { display: flex; align-items: center; gap: 8px; padding: 0 16px 14px; }
.update-tab { padding: 8px 22px; border-radius: 22px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; background: none; }
.update-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.update-tab:not(.active) { color: var(--gray); border-color: var(--border); background: var(--white); }
.update-tab:not(.active):hover { border-color: var(--primary); color: var(--primary); }
.updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 14px; }
@media (min-width: 540px) { .updates-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 800px) { .updates-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.upd-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; min-width: 0; width: 100%; overflow: hidden; }
.upd-icon { width: 68px !important; height: 68px !important; min-width: 68px !important; min-height: 68px !important; max-width: 68px !important; max-height: 68px !important; flex-shrink: 0; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.09); }
.upd-icon img { width: 68px !important; height: 68px !important; object-fit: cover; display: block; }
.upd-name { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--dark); line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; max-width: 100%; display: block; }
.upd-cat { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }

/* =============================================
   APP OF THE DAY
   ============================================= */
.aotd-card { margin: 0 clamp(12px,3.5vw,18px); border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); position: relative; box-shadow: var(--card-shadow-hover); cursor: pointer; min-height: clamp(220px,60vw,320px); }
.aotd-badge { position: absolute; top: 14px; left: 14px; background: var(--primary); color: white; font-size: clamp(10px,2.5vw,13px); font-weight: 800; padding: 5px 12px; border-radius: 20px; display: flex; align-items: center; gap: 4px; z-index: 2; }
.aotd-bg { width: 100%; height: clamp(220px,60vw,320px); object-fit: cover; opacity: 0.55; }
.aotd-bg-placeholder { width: 100%; height: clamp(220px,60vw,320px); background: linear-gradient(135deg, #0D1117, #1A1A2E, #16213E); display: flex; align-items: center; justify-content: center; font-size: clamp(56px,18vw,96px); }
.aotd-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: clamp(14px,4vw,24px); background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, transparent 100%); }
.aotd-subtitle { font-size: clamp(10px,2.4vw,12px); color: rgba(255,255,255,0.6); margin-bottom: 6px; letter-spacing: 0.5px; }
.aotd-description { font-size: clamp(11px,2.8vw,13px); color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aotd-info { display: flex; align-items: center; justify-content: space-between; }
.aotd-app-row { display: flex; align-items: center; gap: 10px; }
.aotd-app-icon { width: clamp(36px,10vw,50px); height: clamp(36px,10vw,50px); border-radius: clamp(8px,2.5vw,12px); overflow: hidden; background: var(--dark2); display: flex; align-items: center; justify-content: center; font-size: clamp(18px,5vw,24px); }
.aotd-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.aotd-app-name { font-family: var(--font-display); font-size: clamp(13px,3.5vw,16px); font-weight: 800; color: white; }
.aotd-app-cat { font-size: clamp(10px,2.4vw,12px); color: rgba(255,255,255,0.6); margin-top: 2px; }
.aotd-download-btn { background: var(--primary); color: white; padding: clamp(6px,1.8vw,10px) clamp(12px,3.5vw,20px); border-radius: 20px; font-size: clamp(11px,2.8vw,13px); font-weight: 700; }
.aotd-download-btn:hover { background: var(--primary-light); }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section { padding: 36px 18px; background: var(--bg); }
.faq-eyebrow { font-size: clamp(9px,2.2vw,11px); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.faq-main-title { font-family: var(--font-display); font-size: clamp(18px,5vw,26px); font-weight: 900; color: var(--dark); margin-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 1px 8px rgba(0,0,0,.06); display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--border); }
.faq-icon-wrap { width: 44px; height: 44px; background: var(--primary-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-icon-wrap svg { width: 22px; height: 22px; color: var(--primary); }
.faq-content { flex: 1; }
.faq-question { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.faq-answer { font-size: 13px; color: var(--gray); line-height: 1.6; }
.faq-answer a { color: var(--primary); font-weight: 600; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: #fafafa; border-top: 1.5px solid var(--border); padding: 28px 18px; padding-bottom: calc(24px + var(--bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px)); }
.footer-top { margin-bottom: 16px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 8px; }
.footer-favicon { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.footer-brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 900; color: var(--dark); }
.footer-tagline { font-size: 12px; color: var(--gray); margin-top: 4px; }
.footer-divider { height: 1px; background: var(--border); margin-bottom: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 20px; }
.footer-nav a { font-size: 13px; color: var(--gray); font-weight: 500; padding: 3px 12px 3px 0; position: relative; }
.footer-nav a:not(:last-child)::after { content: '·'; position: absolute; right: 4px; color: var(--border); }
.footer-nav a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 11px; color: var(--gray-light); }
.footer-disclaimer { font-size: 11px; color: var(--gray-light); }

/* =============================================
   BOTTOM NAV — solid white, no blur, GPU layer
   ============================================= */
.bottom-nav {
  position: fixed !important;
  bottom: 0; left: 0; right: 0;
  z-index: 9999 !important;
  background: #ffffff;
  border-top: 1.5px solid var(--border);
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: flex-start;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
@supports (padding-bottom: constant(safe-area-inset-bottom)) {
  .bottom-nav { height: calc(var(--bottom-nav-height, 64px) + constant(safe-area-inset-bottom)) !important; padding-bottom: constant(safe-area-inset-bottom) !important; }
  body { padding-bottom: calc(var(--bottom-nav-height, 64px) + constant(safe-area-inset-bottom)) !important; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav { height: calc(var(--bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px)) !important; padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
  body { padding-bottom: calc(var(--bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px)) !important; }
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--gray-light); text-decoration: none; font-size: 10px; font-weight: 600; height: var(--bottom-nav-height); padding: 6px 4px 4px; min-width: 0; -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation; transition: color .15s; }
.nav-item.active { color: var(--primary); }
.nav-item:active { opacity: 0.7; }
.nav-item:hover:not(.active) { color: var(--dark); }
.nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav-item span { font-family: var(--font-body); white-space: nowrap; }

/* =============================================
   AD SLOTS
   ============================================= */
.pas-ad-slot { width: 100%; overflow: visible; text-align: center; display: block; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; position: relative; clear: both; z-index: 1; min-height: 50px; box-sizing: border-box; }
.pas-ad-slot:not(:empty)::before { content: 'Advertisement'; display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gray); opacity: 0.55; margin-bottom: 6px; width: 100%; text-align: center; line-height: 1; }
.pas-ad-slot ins.adsbygoogle { display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; height: auto !important; margin: 0 auto !important; }
.pas-ad-slot iframe, .pas-ad-slot > * { max-width: 100% !important; }
.dlp-ad { width: 100%; text-align: center; overflow: visible; }
.dlp-ad ins.adsbygoogle { display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; height: auto !important; margin: 0 auto !important; }
.pas-ad-slot:empty { display: none !important; }
.pas-ad-wrap-section { padding: 0; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 1; clear: both; width: 100%; overflow: visible; }
.pas-ad-wrap-inline { padding: 0; width: 100%; overflow: visible; }
.al-list .pas-ad-slot, .tc-apps-grid .pas-ad-slot { grid-column: 1/-1; border-left: none; border-right: none; margin: 4px 0; }
@media (max-width: 767px) {
  .pas-ad-slot { padding: 8px 0; min-height: 50px; width: 100%; max-width: 100%; overflow: visible; }
  .pas-ad-slot ins.adsbygoogle { min-width: 0 !important; width: 100% !important; height: auto !important; }
  .pas-ad-slot iframe { max-width: 100% !important; }
  .dlp-ad ins.adsbygoogle { min-width: 0 !important; width: 100% !important; height: auto !important; }
}

/* =============================================
   DIVIDER
   ============================================= */
.section-divider { height: 8px; background: var(--bg); }

/* =============================================
   SCROLL-BAR STUB (JS expects this id)
   ============================================= */
#pas-scroll-bar { display: none !important; }

/* =============================================
   REVEAL CLASSES — always visible, no delay
   ============================================= */
.pas-reveal { opacity: 1 !important; }
.pas-delay-1, .pas-delay-2, .pas-delay-3,
.pas-delay-4, .pas-delay-5, .pas-delay-6 { transition-delay: 0s !important; }

/* =============================================
   RESPONSIVE — DESKTOP
   ============================================= */
@media (min-width: 768px) {
  .site-header { height: 68px; }
  .header-inner { padding: 0 20px; gap: 12px; }
  .logo-android-img { width: 40px; height: 40px; }
  .logo-text { font-size: 20px; }
  .hero-categories { grid-template-columns: repeat(3, 140px); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .apps-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav { max-width: 768px; left: 50%; margin-left: -384px; right: auto; width: 768px; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); }
  .featured-card { max-width: 600px; }
}
@media (min-width: 1024px) {
  .hero-section { padding: 40px 0; }
  .apps-grid { grid-template-columns: repeat(6, 1fr); }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================
   WORDPRESS STANDARD CLASSES
   ============================================= */
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.alignnone { margin: 0 0 16px; }
.alignleft  { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { clear: both; display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--gray); padding: 6px 0; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { margin: 24px 0 12px; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }

/* =============================================
   APP COMMENTS & REPORT SYSTEM
   ============================================= */
.pas-community-wrap { max-width: 820px; margin: 32px auto 0; padding: 0 16px 40px; }
.pas-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pas-section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin: 0; color: var(--dark); }
.pas-comment-count { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 8px; min-width: 22px; }
.pas-avg-rating { display: flex; align-items: center; gap: 6px; }
.pas-avg-num { font-size: 13px; font-weight: 600; color: var(--dark); }
.pas-stars-display { display: flex; gap: 2px; }
.pas-star { width: 16px; height: 16px; fill: var(--border); stroke: var(--border); stroke-width: 1.5; }
.pas-star.filled { fill: #f59e0b; stroke: #f59e0b; }
.pas-star.half   { fill: #fcd34d; stroke: #fcd34d; }
.pas-comment-form-wrap { margin-bottom: 24px; }
.pas-comment-form { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.pas-form-row { margin-bottom: 12px; }
.pas-field-input, .pas-field-textarea { width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 9px; padding: 10px 13px; font-size: 14px; color: var(--dark); font-family: inherit; outline: none; box-sizing: border-box; }
.pas-field-input:focus, .pas-field-textarea:focus { border-color: var(--primary); }
.pas-field-textarea { resize: vertical; min-height: 80px; }
.pas-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pas-rating-label { font-size: 13px; color: var(--gray); font-weight: 500; }
.pas-star-picker { display: flex; align-items: center; gap: 3px; }
.pas-star-btn { background: none; border: none; padding: 0; cursor: pointer; width: 26px; height: 26px; color: var(--border); }
.pas-star-btn svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.pas-star-btn.active, .pas-star-btn:hover { color: #f59e0b; }
.pas-star-clear { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--gray); padding: 0 4px; line-height: 1; opacity: .5; }
.pas-star-clear:hover { opacity: 1; }
.pas-char-count { font-size: 11px; color: var(--gray); text-align: right; margin-top: 3px; }
.pas-form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pas-form-note { font-size: 11.5px; color: var(--gray); }
.pas-submit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; background: var(--primary); color: #fff; border: none; border-radius: 9px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.pas-submit-btn:hover { opacity: .88; }
.pas-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.pas-form-status { margin-top: 8px; font-size: 13px; min-height: 18px; font-weight: 500; }
.pas-status-ok    { color: #16a34a; }
.pas-status-error { color: #dc2626; }
.pas-no-comments { text-align: center; padding: 36px 20px; color: var(--gray); }
.pas-no-comments p { margin: 10px 0 0; font-size: 14px; }
.pas-comments-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.pas-comment-item { display: flex; gap: 12px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.pas-comment-item.pas-comment-new { border-color: var(--primary); }
.pas-comment-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pas-comment-body { flex: 1; min-width: 0; }
.pas-comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.pas-comment-author { font-weight: 600; font-size: 13.5px; color: var(--dark); }
.pas-comment-time   { font-size: 11.5px; color: var(--gray); margin-left: auto; }
.pas-comment-rating { display: flex; gap: 2px; }
.pas-mini-star { width: 13px; height: 13px; fill: var(--border); stroke: var(--border); stroke-width: 2; }
.pas-mini-star.filled { fill: #f59e0b; stroke: #f59e0b; }
.pas-comment-text { font-size: 13.5px; line-height: 1.6; color: var(--dark); word-break: break-word; }
.pas-report-wrap { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 8px; }
.pas-report-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; font-size: 12.5px; color: var(--gray); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.pas-report-toggle:hover { border-color: #dc2626; color: #dc2626; }
.pas-report-form { margin-top: 14px; }
.pas-report-inner { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; max-width: 480px; }
.pas-report-inner h4 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.pas-field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.pas-report-cancel { background: var(--border); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-size: 13px; font-family: inherit; cursor: pointer; color: var(--dark); }
.pas-submit-report { background: #dc2626; }
.pas-submit-report:hover { background: #b91c1c; opacity: 1; }
@media (max-width: 600px) {
  .pas-community-wrap { padding: 0 12px 32px; }
  .pas-comment-form { padding: 14px; }
  .pas-form-foot { flex-direction: column; align-items: flex-end; }
}

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* Contain layout so each section paints independently */
.section-wrapper { contain: layout style; }
.faq-section     { contain: layout style; }

/* GPU-accelerate the sticky header and bottom nav */
.site-header  { will-change: transform; }
.bottom-nav   { will-change: transform; }
.sa-sticky    { will-change: transform; }

/* Prevent layout shift from images loading */
.trending-thumb    { aspect-ratio: 1; }
.app-icon          { aspect-ratio: 1; }
.game-card-img     { object-fit: cover; }
.featured-card-img { object-fit: cover; }

/* Prevent huge unstyled SVG flash globally */
svg { max-width: 100%; height: auto; }
.fp-search-icon svg { width: 20px !important; height: 20px !important; display: block; }
.fp-search-btn  svg { width: 18px !important; height: 18px !important; display: block; }
.btn-icon svg       { width: 18px !important; height: 18px !important; display: block; }
.nav-item svg       { width: 22px !important; height: 22px !important; display: block; }

/* Font smoothing */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
