/*
Theme Name: PaidAppStore
Theme URI: https://dappstore.com
Author: Your Name
Description: A premium app store WordPress theme inspired by PaidAppStore - featuring trending apps, games, categories, and MOD APK listings.
Version: 1.0.0
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  (overridden by JS for themes)
   ============================================= */
:root {
  --primary: #FF6A00;
  --primary-light: #FF8C38;
  --primary-bg: #FFF4EC;
  --dark: #1A1A1A;
  --dark2: #2D2D2D;
  --gray: #666666;
  --gray-light: #999999;
  --border: #EBEBEB;
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
  --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;
  --transition: 0.2s ease;
}

/* =============================================
   DARK MODE VARIABLES
   ============================================= */
body.dark-mode {
  --dark: #F0F0F0;
  --dark2: #CCCCCC;
  --gray: #AAAAAA;
  --gray-light: #777777;
  --border: #2E2E2E;
  --bg: #1A1A1A;
  --white: #121212;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --card-shadow-hover: 0 8px 28px rgba(0,0,0,0.6);
}

body.dark-mode { background: #121212; color: #F0F0F0; }
body.dark-mode .site-header { background: #1A1A1A; border-color: #2E2E2E; }
body.dark-mode .bottom-nav { background: #1A1A1A; border-color: #2E2E2E; }
body.dark-mode .hero-search { background: #1E1E1E; border-color: #333; }
body.dark-mode .hero-cat-card { background: #1E1E1E; border-color: #2E2E2E; }
body.dark-mode .faq-card { background: #1E1E1E; }
body.dark-mode .site-footer { background: #1A1A1A; border-color: #2E2E2E; }
body.dark-mode .announcement-banner { background: #1E1E1E; border-color: #333; }
body.dark-mode .category-row { background: #1E1E1E; border-color: #2E2E2E; }
body.dark-mode .archive-app-card { background: #1E1E1E; border-color: #2E2E2E; }
body.dark-mode .app-detail-item { background: #1E1E1E; }
body.dark-mode .slide-menu-panel { background: #1A1A1A; }
body.dark-mode .header-search-dropdown { background: #1A1A1A; border-color: #2E2E2E; }
body.dark-mode .header-search-dropdown form { background: #222; border-color: #333; }
body.dark-mode input { color: #F0F0F0; }

/* Pre-paint dark mode (avoids white flash) */
html.dark-mode-pre body { background: #121212 !important; }
html.dark-mode-pre .site-header { background: #1A1A1A !important; }

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Fluid base: 13px at 320px → 15px at 480px+ */
  font-size: clamp(13px, 3.2vw, 15px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;     /* inherits from fluid html font-size */
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bottom-nav-height);
}

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
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  height: 62px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;   /* logo | all-right-items */
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

/* All right-side items: dots + toggle + search in one flex row */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;   /* push everything to far right */
  flex-shrink: 0;
  min-width: 0;
}

/* Dots sit directly left of toggle, no extra spacing */
.theme-color-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
  padding: 3px 0;
}

.logo-android-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}
.site-logo:hover .logo-android-img { transform: rotate(-8deg) scale(1.1); }

.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: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
  padding: 0;
  flex-shrink: 0;
  position: relative;
  opacity: 0.55;
}

.theme-dot:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

/* Active — just bigger + full opacity, no rings */
.theme-dot.active {
  transform: scale(1.6);
  opacity: 1;
}

/* =============================================
   DARK MODE TOGGLE  (pill + knob design)
   ============================================= */
.dark-mode-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #D1D5DB;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.22s;
}
body.dark-mode .dark-mode-toggle { background: #4F46E5; }

.dm-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-knob svg { width: 10px; height: 10px; }

.icon-sun  { display: block; color: #F59E0B; }
.icon-moon { display: none;  color: #818CF8; }

body.dark-mode .dm-knob { transform: translateX(18px); }
body.dark-mode .icon-sun  { display: none; }
body.dark-mode .icon-moon { display: block; }

.header-actions-placeholder { display: none; }

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--dark);
  cursor: pointer;
  padding: 4px;
}
.btn-icon:hover { background: rgba(0,0,0,0.06); }
.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;
}

.announcement-banner .icon { color: var(--primary); flex-shrink: 0; }
.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: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--gray);
  font-size: 16px;
  transition: var(--transition);
}
.announcement-banner .close-btn:hover { background: var(--border); }

/* =============================================
   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 16px rgba(0,0,0,0.06);
  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); }

/* Category Quick Links */
.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);
  transition: all var(--transition);
  box-shadow: var(--card-shadow);
  cursor: pointer;
}
.hero-cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.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: 16px;
  padding: 0 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 800;
  color: var(--dark);
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: clamp(16px, 4vw, 22px);
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title.no-bar::before { display: none; }

.section-icon { font-size: clamp(14px, 3.5vw, 18px); }

.see-all-link {
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: var(--transition);
}
.see-all-link:hover { opacity: 0.75; }
.see-all-link svg { width: clamp(13px, 3.5vw, 17px); height: clamp(13px, 3.5vw, 17px); }

/* =============================================
   SECTION WRAPPER
   ============================================= */
.section-wrapper { padding: 24px 0; background: var(--white); }
.section-wrapper.bg-gray { background: var(--bg); }

/* =============================================
   TRENDING SECTION
   ============================================= */
.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 4px 12px rgba(0,0,0,0.12);
  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 16px;
  position: relative;
}

.featured-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.featured-slider::-webkit-scrollbar { display: none; }

.featured-card {
  flex-shrink: 0;
  width: calc(100vw - 48px);
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  box-shadow: var(--card-shadow-hover);
  background: var(--dark);
  min-height: 200px;
}

.featured-card-img {
  width: 100%;
  height: clamp(180px, 48vw, 280px);
  object-fit: cover;
  opacity: 0.65;
}

.featured-card-img-placeholder {
  width: 100%;
  height: clamp(180px, 48vw, 280px);
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 12vw, 70px);
}

.featured-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.featured-card-app {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.featured-app-icon {
  width: clamp(42px, 11vw, 58px);
  height: clamp(42px, 11vw, 58px);
  border-radius: clamp(10px, 2.8vw, 14px);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 5.5vw, 28px);
}
.featured-app-icon img { width: 100%; height: 100%; object-fit: cover; }

.featured-app-info { flex: 1; }
.featured-app-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.featured-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.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: white; }
.badge-premium { background: var(--primary); color: white; }
.badge-category { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); }
.badge-downloads { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.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;   /* portrait — matches screenshot */
  background: #1a1a2e;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  display: block;
  width: 100%;
}
.game-card:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }

.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);
}

/* Strong gradient from bottom — like screenshot */
.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.92) 0%,
    rgba(0,0,0,0.7) 45%,
    transparent 100%
  );
}

/* Game title — white bold, wraps to 2 lines max */
.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;
}

/* Version · Mod info row */
.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, #FF8C38);
  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%;
}

/* Category badge — white pill bottom left */
.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, 0.9vw, 5px) clamp(8px, 2.2vw, 12px);
  border-radius: 20px;
  letter-spacing: 0.1px;
}

/* =============================================
   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: 7px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}
.app-card:hover { transform: translateY(-2px); }

.app-icon {
  width: clamp(56px, 15vw, 76px);
  height: clamp(56px, 15vw, 76px);
  border-radius: clamp(12px, 3.5vw, 18px);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  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: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.category-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.5vw, 14px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(10px, 2.8vw, 16px);
  cursor: pointer;
  transition: all var(--transition);
}
.category-row:hover { border-color: var(--primary); box-shadow: var(--card-shadow); }

.category-row-icon {
  width: clamp(36px, 10vw, 48px);
  height: clamp(36px, 10vw, 48px);
  border-radius: clamp(8px, 2.5vw, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: clamp(16px, 4.5vw, 22px);
}

.category-row-info { flex: 1; min-width: 0; }
.category-row-name {
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-row-count { font-size: clamp(10px, 2.4vw, 12px); color: var(--gray); margin-top: 1px; }

.category-row-arrow { color: var(--gray-light); flex-shrink: 0; }
.category-row-arrow svg { width: 14px; height: 14px; }

/* =============================================
   TELEGRAM CTA BANNER
   ============================================= */
.telegram-banner {
  margin: 0 16px;
  background: linear-gradient(135deg, #E3F2FD 0%, #EDE7F6 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #BBDEFB;
}

.telegram-icon-wrap {
  width: 52px;
  height: 52px;
  background: #2196F3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.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: var(--dark); margin-bottom: 3px; }
.telegram-desc { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.telegram-meta { font-size: 11px; color: var(--gray); display: flex; align-items: center; gap: 4px; }

.telegram-arrow {
  width: 40px;
  height: 40px;
  background: #2196F3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.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: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.update-tab.active { background: var(--primary); color: white; }
.update-tab:not(.active) { color: var(--gray); border-color: var(--border); }
.update-tab:not(.active):hover { border-color: var(--primary); color: var(--primary); }

.updates-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.updates-scroll::-webkit-scrollbar { display: none; }

.update-card {
  flex-shrink: 0;
  width: clamp(110px, 30vw, 145px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--transition);
}
.update-card:hover { transform: translateY(-2px); }

.update-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(30px, 9vw, 46px);
}
.update-thumb img { width: 100%; height: 100%; object-fit: cover; }

.update-name {
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.update-cat { font-size: clamp(10px, 2.4vw, 12px); color: var(--gray); }

/* =============================================
   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.92) 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;
  transition: var(--transition);
}
.aotd-download-btn:hover { background: var(--primary-light); }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
  padding: 32px 16px;
  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: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.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: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 24px 16px 20px;
}

.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;
  transition: color var(--transition);
  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 NAVIGATION
   ============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--white);
  border-top: 1.5px solid var(--border);
  height: var(--bottom-nav-height);
  display: flex;
  align-items: stretch;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: color var(--transition);
  color: var(--gray-light);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 0;
}
.nav-item.active { color: var(--primary); }
.nav-item:hover:not(.active) { color: var(--dark); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { font-family: var(--font-body); }

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

/* =============================================
   LOADING PLACEHOLDER
   ============================================= */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* =============================================
   FLOATING DOTS ANIMATION (hero decoration)
   ============================================= */
@keyframes floatDot {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-10px); opacity: 1; }
}
.float-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(61,220,132,0.5);
  border-radius: 50%;
  animation: floatDot 3s ease-in-out infinite;
  pointer-events: none;
}

/* =============================================
   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; }
  .theme-dot { width: 13px; height: 13px; }
  .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%; transform: translateX(-50%); 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); }
}

/* Prevent any child from blowing the header width */
.site-header, .header-inner {
  max-width: 100%;
  overflow-x: clip;
}

/* =============================================
   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; }
