/* ==========================================================================
   Codesoft - Android Modded Apps & Games Play Store Theme Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Google Play Modern & Dark Cyber */
  --primary: #01875f;
  --primary-hover: #00704e;
  --primary-light: rgba(1, 135, 95, 0.12);
  --primary-glow: rgba(1, 135, 95, 0.35);
  --accent-blue: #0284c7;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;

  /* Mod Badges */
  --mod-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --mod-pill-bg: rgba(16, 185, 129, 0.15);
  --mod-pill-text: #10b981;
  --mod-pill-border: rgba(16, 185, 129, 0.3);

  /* Light Theme (Default / Toggleable) */
  --bg-body: #f6f8fb;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 25px rgba(1, 135, 95, 0.2);

  /* Layout & Sizing */
  --container-max: 1320px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --header-height: 70px;
  --bottom-nav-height: 64px;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg-body: #0b0f17;
  --bg-card: #131b26;
  --bg-card-hover: #192433;
  --bg-surface: #101722;
  --bg-subtle: #1a2332;
  --bg-glass: rgba(16, 23, 34, 0.88);
  --border-color: #1f2d40;
  --border-subtle: #172230;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 30px rgba(1, 135, 95, 0.35);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Site Brand (Neon Lightning Box + Typography) */
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(132, 204, 22, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-brand:hover .brand-icon-box {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 24px rgba(132, 204, 22, 0.7);
}

.brand-icon-box svg {
  width: 22px;
  height: 22px;
  color: #0f172a;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Space Grotesk', var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-pill-link {
  background: #a3e635;
  color: #0f172a !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(163, 230, 53, 0.45);
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

.nav-pill-link:hover {
  background: #bef264;
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(163, 230, 53, 0.65);
}

.nav-text-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  padding: 8px 14px;
  transition: color 0.2s ease;
}

.nav-text-link:hover,
li.active .nav-text-link {
  color: var(--text-main) !important;
}

.nav-btn-import {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.08);
  color: #38bdf8 !important;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.nav-btn-import:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.nav-btn-import svg {
  width: 16px;
  height: 16px;
}

/* Header Right Group */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 440px;
  justify-content: flex-end;
}

.header-search {
  width: 100%;
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg.search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 27, 34, 0.85);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(22, 27, 34, 0.98);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.action-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--text-dim);
  color: var(--primary);
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

.action-btn .badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  height: 18px;
  min-width: 18px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   Live Search Dropdown
   ========================================================================== */
.live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 450px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
  padding: 10px;
}

.live-search-results.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.search-item:hover {
  background: var(--bg-subtle);
}

.search-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-subtle);
}

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

.search-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-item-mod {
  font-size: 0.72rem;
  background: var(--mod-pill-bg);
  color: var(--mod-pill-text);
  border: 1px solid var(--mod-pill-border);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.search-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-muted);
  gap: 10px;
}

/* ==========================================================================
   Main Layout & Grid System
   ========================================================================== */
.site-main {
  flex: 1;
  padding: 28px 0 50px;
}

.layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.layout-wrapper.no-sidebar {
  grid-template-columns: 1fr;
}

.content-area {
  min-width: 0;
}

/* ==========================================================================
   Ultra-Premium Hero Slider Showcase & Ticker Marquee
   ========================================================================== */
.showcase-slider-wrapper {
  margin-bottom: 36px;
  position: relative;
}

.showcase-card-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.showcase-slides-track {
  position: relative;
  min-height: 440px;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.showcase-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.showcase-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(13, 17, 23, 0.97) 0%, rgba(13, 17, 23, 0.88) 45%, rgba(13, 17, 23, 0.45) 100%),
    linear-gradient(180deg, transparent 50%, rgba(13, 17, 23, 0.95) 100%);
}

.showcase-body {
  position: relative;
  z-index: 3;
  padding: 40px 44px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.showcase-left-content {
  flex: 1;
  max-width: 680px;
}

/* Badges Row */
.showcase-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-cat-neon {
  background: #a3e635;
  color: #0f172a;
  font-family: 'Space Grotesk', var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(163, 230, 53, 0.5);
}

.badge-version-cyan {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #38bdf8;
  font-family: 'Space Grotesk', var(--font-heading), sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Title */
.showcase-title {
  font-family: 'Space Grotesk', var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.showcase-title a:hover {
  color: #a3e635;
}

/* Metadata Row */
.showcase-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 18px;
}

.showcase-meta-row .meta-developer {
  color: #e2e8f0;
  font-weight: 700;
}

.showcase-meta-row .meta-dot {
  color: #64748b;
}

.showcase-meta-row .meta-rating {
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.showcase-meta-row .meta-rating svg {
  width: 16px;
  height: 16px;
}

/* Mod Highlights Badges */
.showcase-mod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.mod-pill-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mod-pill-item svg {
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

/* Dual Action CTA Buttons */
.showcase-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-pakua-neon {
  background: #a3e635;
  color: #0f172a;
  font-family: 'Space Grotesk', var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.3px;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(163, 230, 53, 0.5);
  transition: all 0.25s ease;
}

.btn-pakua-neon:hover {
  background: #bef264;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(163, 230, 53, 0.75);
}

.btn-pakua-neon svg {
  width: 20px;
  height: 20px;
}

.btn-maelezo-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-maelezo-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-maelezo-glass svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-maelezo-glass:hover svg {
  transform: translateX(3px);
}

/* Right Floating Glass Card (Security Badge) */
.showcase-floating-card {
  width: 290px;
  background: rgba(18, 24, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.floating-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.floating-app-thumb {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.floating-app-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.floating-app-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.floating-security-badge {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
}

.floating-security-badge svg {
  width: 18px;
  height: 18px;
  color: #22c55e;
  flex-shrink: 0;
}

/* Bottom Toolbar (Progress Bar & Arrow Controls) */
.showcase-bottom-toolbar {
  position: relative;
  z-index: 4;
  padding: 16px 36px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.showcase-indicators-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.showcase-progress-bar {
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #a3e635;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.8);
  transition: width 0.3s ease;
}

.showcase-pills-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.indicator-dash {
  width: 24px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.indicator-dash.active {
  width: 38px;
  background: #a3e635;
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.6);
}

.showcase-slide-counter {
  font-family: 'Space Grotesk', var(--font-heading), monospace;
  font-weight: 800;
  font-size: 0.92rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.showcase-slide-counter #current-slide-num {
  color: #ffffff;
  font-weight: 900;
}

.showcase-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #a3e635;
}

.showcase-arrow-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Trending Ticker Marquee Bar
   ========================================================================== */
.trending-ticker-bar {
  overflow: hidden;
  border-radius: 12px;
  background: #0b0f14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  margin-top: 14px;
  position: relative;
}

.trending-ticker-bar::before,
.trending-ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.trending-ticker-bar::before {
  left: 0;
  background: linear-gradient(90deg, #0b0f14 0%, transparent 100%);
}

.trending-ticker-bar::after {
  right: 0;
  background: linear-gradient(-90deg, #0b0f14 0%, transparent 100%);
}

.ticker-marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: tickerMarqueeScroll 35s linear infinite;
  white-space: nowrap;
}

.ticker-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes tickerMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.ticker-item:hover {
  color: #a3e635;
}

.ticker-fire {
  font-size: 0.95rem;
}

.ticker-title {
  color: #e2e8f0;
}

.ticker-star {
  color: #f59e0b;
  font-size: 0.82rem;
  font-weight: 800;
}

.ticker-dot {
  color: #475569;
  margin-left: 8px;
}

/* Responsive Rules for Showcase Slider */
@media (max-width: 992px) {
  .showcase-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
  }

  .showcase-floating-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .showcase-title {
    font-size: 1.85rem;
  }

  .showcase-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-pakua-neon,
  .btn-maelezo-glass {
    justify-content: center;
  }

  .showcase-bottom-toolbar {
    padding: 12px 18px;
  }
}

.slider-dot.active {
  width: 24px;
  background: var(--primary);
}

/* ==========================================================================
   Section Headers (Play Store Styled)
   ========================================================================== */
.app-section {
  margin-bottom: 38px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  transition: all 0.2s ease;
}

.section-view-all:hover {
  background: var(--primary);
  color: #ffffff;
}

.section-view-all svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Play Store App Card Grid (Standard & 3-Column Mobile Layout)
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.app-card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect ratio */
  border-radius: 22%;
  overflow: hidden;
  background: var(--bg-subtle);
  margin-bottom: 10px;
}

.app-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22%;
  transition: transform 0.3s ease;
}

.app-card:hover .app-card-thumb {
  transform: scale(1.04);
}

.app-card-badge-mod {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--mod-gradient);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

.app-card-badge-version {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  z-index: 2;
}

.app-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.25rem;
}

.app-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 4px;
}

.app-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--accent-gold);
  font-weight: 700;
}

.app-card-size {
  background: var(--bg-subtle);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
}

.app-card-mod-feature {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mod-pill-text);
  background: var(--mod-pill-bg);
  border: 1px solid var(--mod-pill-border);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ==========================================================================
   Horizontal Scrollable / List Block for "Updated Apps"
   ========================================================================== */
.updated-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.updated-app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.updated-app-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.updated-app-thumb {
  width: 50px;
  height: 50px;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-subtle);
}

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

.updated-app-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.updated-app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.updated-app-time {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Sidebar Widgets (Popular, App Categories, Game Categories)
   ========================================================================== */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.widget-title svg {
  color: var(--primary);
  width: 22px;
  height: 22px;
}

/* Popular Apps Widget (Ranked List #1, #2, #3) */
.popular-apps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popular-app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  position: relative;
}

.popular-app-item:hover {
  background: var(--bg-subtle);
}

.rank-badge {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--text-dim);
  flex-shrink: 0;
}

.rank-1 { color: #f59e0b; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #d97706; }

.popular-app-thumb {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-subtle);
}

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

.popular-app-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Categories Grid Widgets (with Scrollbar) */
.categories-scroll-grid {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Custom Aesthetic Scrollbar */
.categories-scroll-grid::-webkit-scrollbar {
  width: 5px;
}

.categories-scroll-grid::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 10px;
}

.categories-scroll-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.categories-scroll-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.category-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-badge-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.category-badge-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.category-badge-name {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.category-badge-count {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
}

/* ==========================================================================
   Single App Page (Google Play Store Details Style)
   ========================================================================== */
.single-app-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.single-app-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.single-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 22%;
  object-fit: cover;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--bg-card);
}

.single-app-header-info {
  flex: 1;
  min-width: 0;
}

.single-app-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--text-main);
}

.single-app-dev {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  display: inline-block;
}

.single-app-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.app-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.single-app-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.btn-download-hero {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s ease;
  text-align: center;
  justify-content: center;
}

.btn-download-hero:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(1, 135, 95, 0.45);
}

.btn-bookmark {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bookmark:hover,
.btn-bookmark.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Mod Highlights Box */
.mod-highlights-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(1, 135, 95, 0.03) 100%);
  border: 1px solid var(--mod-pill-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  position: relative;
}

.mod-highlights-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mod-pill-text);
  margin-bottom: 10px;
}

.mod-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mod-highlights-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
}

.mod-highlights-list li::before {
  content: "✓";
  color: var(--mod-pill-text);
  font-weight: 900;
}

/* Screenshots Gallery */
.screenshots-gallery-section {
  margin-bottom: 28px;
}

.screenshots-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.screenshot-thumb-item {
  flex: 0 0 auto;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.screenshot-thumb-item:hover {
  transform: scale(1.02);
}

.screenshot-thumb-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* App Technical Specifications Table */
.specs-table-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

/* Download Box & Countdown Timer */
.download-section-box {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-glow);
  text-align: center;
  position: relative;
}

.download-countdown-wrap {
  margin: 18px 0;
}

.timer-circle {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.download-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.dl-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dl-link-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.dl-link-btn.primary-dl {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.dl-link-btn.primary-dl:hover {
  background: var(--primary-hover);
}

/* Post Article Content Body */
.app-content-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  font-size: 0.96rem;
  line-height: 1.7;
}

.app-content-body h2, .app-content-body h3 {
  font-family: var(--font-heading);
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.app-content-body p {
  margin-bottom: 16px;
}

.app-content-body ul, .app-content-body ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 45px 0 30px;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

/* ==========================================================================
   Pagination Styling
   ========================================================================== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN: 3 COLUMNS ON MOBILE PHONES
   ========================================================================== */
@media (max-width: 1200px) {
  .apps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 992px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
  }
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .updated-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .site-header {
    height: 60px;
  }
  .slide-item {
    height: 220px;
  }
  .slide-app-btn {
    display: none;
  }
  .slide-app-title {
    font-size: 1.1rem;
  }
  .slide-app-icon {
    width: 54px;
    height: 54px;
  }
  .single-app-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .single-app-stats {
    justify-content: center;
  }
  .single-app-actions {
    width: 100%;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: var(--bottom-nav-height);
  }
}

/* EXACT REQUIREMENT: 3 COLUMNS ON MOBILE VIEWPORT */
@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .app-card {
    padding: 6px !important;
    border-radius: var(--radius-sm);
  }

  .app-card-title {
    font-size: 0.76rem !important;
    height: 2rem !important;
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
  }

  .app-card-meta {
    font-size: 0.65rem !important;
  }

  .app-card-badge-mod {
    font-size: 0.55rem !important;
    padding: 1px 4px !important;
    top: 4px;
    left: 4px;
  }

  .app-card-badge-version {
    font-size: 0.55rem !important;
    padding: 1px 4px !important;
    bottom: 4px;
    right: 4px;
  }

  .app-card-mod-feature {
    display: none; /* Keep mobile card clean & compact */
  }

  .updated-apps-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .section-title {
    font-size: 1.12rem;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 380px) {
  .apps-grid {
    gap: 6px !important;
  }
  .app-card {
    padding: 5px !important;
  }
  .app-card-title {
    font-size: 0.72rem !important;
  }
}
