/*
Theme Name: ModDroid Ultra
Theme URI: https://example.com/moddroid-ultra
Author: ModDroid Ultra Team
Description: ModDroid Ultra v1.2 - قالب ووردبريس متكامل لتنزيل تطبيقات وألعاب أندرويد. APK Extractor للمشرفين فقط (4 مصادر: Google Play, APKPure, Aptoide, APKMirror). 4 ثيمات (moddroid/modyolo/liteapks/reborn) قابلة للتبديل من الواجهة. 250+ ميزة. RTL كامل. PWA. Dark Mode. SEO Schema.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moddroid-ultra
Tags: rtl, arabic, apps, games, apk, downloader, dark-mode, pwa, seo, bootstrap, swiper, material-design, multi-theme
*/

/* ==========================================================================
   ModDroid Ultra v1.0 - Master Stylesheet
   Combines ALL 250+ features from original ModDroid template
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES (Dynamic - 40+ variables from root.php)
   These are dynamically overridden by moddroid_ultra_dynamic_css() in functions.php
   ========================================================================== */
:root {
  /* Brand colors (from original ModDroid theme) */
  --putih: #ffffff;
  --color_button: #01A001;
  --color_button_hover: #028802;
  --color_link: #01A001;
  --color_link_hover: #028802;
  --color_link_footers: #01A001;
  --color_nav: #01A001;
  --color_nav_bg: #E7F4E7;
  --color_rgb_nav: #F0F2F5;
  --color_text: #212529;
  --color_texts: #495057;
  --color_heading: #212529;
  --color_background: #FFFFFF;
  --color_background_body: #FFFFFF;
  --color_background_hd: #FFFFFF;
  --color_background_ft: #1F1F1F;
  --color_background_ft_alt: #2A2A2A;
  --color_rgb_background: #FFFFFF;
  --color_border: #DEE2E6;
  --color_border1: rgb(222, 226, 230);
  --color_border2: rgb(222, 226, 230);
  --color_border3: rgb(222, 226, 230);
  --color_logo_header: #212529;
  --color_header_link: #495057;
  --color_header_link_hover: #01A001;
  --color_rgb: #F0F2F5;
  --color_rgb1: rgb(240, 242, 245);
  --color_rgb2: rgb(240, 242, 245);
  --color_rgb3: rgb(240, 242, 245);
  --color_rgb_texts: rgb(73, 80, 87);
  --color_rate: #FFB400;
  --color_svg: #6C757D;
  --fonts: 'Cairo', 'Tajawal', 'Noto Sans Arabic', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font_body_rtl: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;
  --font_body_custom_fonts_rtl: '';
  --editor-img-width: 350px;
  --editor-img-height: 194px;
  --accent: #007aff;
  --cate-title-color: #1d1d1f;
  --heading-color: #1d1d1f;
  --meta-bg: #efeff4;
  --app_alternatives_icon: url('assets/img/app-alternatives.svg');
  --star_icon: url('assets/img/google-play-icon.png');
  --review_icon: url('assets/img/google-play-icon.png');
  --download_icon: url('assets/img/download.svg');

  /* Material 3 design tokens */
  --md-primary: var(--color_button);
  --md-on-primary: #FFFFFF;
  --md-primary-container: var(--color_nav_bg);
  --md-on-primary-container: #0A3501;
  --md-secondary: #625B71;
  --md-secondary-container: #E8DEF8;
  --md-tertiary: #7D5260;
  --md-error: #B3261E;
  --md-success: #2E7D32;
  --md-warning: #ED6C02;
  --md-info: #0288D1;
  --md-surface: #FFFFFF;
  --md-surface-container: #F7F8FA;
  --md-surface-container-high: #F0F2F5;
  --md-surface-container-highest: #E8ECEF;
  --md-on-surface: #1D1B20;
  --md-on-surface-variant: #49454F;
  --md-outline: #79747E;
  --md-outline-variant: #CAC4D0;

  /* Brand gradients */
  --brand-gradient-start: var(--color_button);
  --brand-gradient-end: #4CAF50;
  --accent-orange: #FE8403;
  --accent-red: #F15A29;
  --discord-color: #5046AF;

  /* Layout */
  --header-height: 64px;
  --max-width: 1280px;

  /* Motion */
  --motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1.2);
  --motion-duration-short: 150ms;
  --motion-duration-medium: 250ms;
  --motion-duration-long: 400ms;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Border radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Elevation */
  --elev-1: 0 1px 2px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.08);
  --elev-2: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.08);
  --elev-3: 0 4px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --elev-4: 0 6px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --elev-5: 0 8px 24px rgba(0,0,0,0.12);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --color_button: #4CAF50;
  --color_button_hover: #66BB6A;
  --color_link: #66BB6A;
  --color_link_hover: #81C784;
  --color_nav: #4CAF50;
  --color_nav_bg: #1B2E1B;
  --color_rgb_nav: #2B2930;
  --color_text: #E6E0E9;
  --color_texts: #CAC4D0;
  --color_heading: #E6E0E9;
  --color_background: #141218;
  --color_background_body: #141218;
  --color_background_hd: #1D1B20;
  --color_background_ft: #0F0D13;
  --color_background_ft_alt: #1D1B20;
  --color_rgb_background: #141218;
  --color_border: #49454F;
  --color_border1: rgb(73, 69, 79);
  --color_border2: rgb(73, 69, 79);
  --color_border3: rgb(73, 69, 79);
  --color_logo_header: #E6E0E9;
  --color_header_link: #CAC4D0;
  --color_rgb: #2B2930;
  --color_rgb1: rgb(43, 41, 48);
  --color_rgb2: rgb(43, 41, 48);
  --color_rgb3: rgb(43, 41, 48);
  --color_rgb_texts: rgb(202, 196, 208);
  --color_rate: #FFB400;
  --color_svg: #938F99;
  --md-surface: #141218;
  --md-surface-container: #211F26;
  --md-surface-container-high: #2B2930;
  --md-surface-container-highest: #36343B;
  --md-on-surface: #E6E0E9;
  --md-on-surface-variant: #CAC4D0;
  --md-outline: #938F99;
  --md-outline-variant: #49454F;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; margin: 0 !important; }

body {
  margin: 0;
  font-family: var(--fonts);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color_texts);
  background: var(--color_background_body);
  transition: background-color var(--motion-duration-medium) var(--motion-easing-standard),
              color var(--motion-duration-medium) var(--motion-easing-standard);
  overflow-x: hidden;
}

html[dir="rtl"] body { text-align: right; direction: rtl; }

img { max-width: 100%; height: auto; display: block; }
iframe { display: block; max-width: 100%; margin: 0 auto; }
* { outline: none !important; }

a {
  color: var(--color_link);
  text-decoration: none;
  transition: all 0.3s ease 0s;
}
a:hover { color: var(--color_link_hover); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color_heading);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

button { cursor: pointer; transition: all 0.3s ease 0s; }

/* Selection */
::selection { background: rgba(0, 123, 255, 0.3); color: inherit; }

/* ==========================================================================
   3. LAYOUT (Bootstrap grid + containers)
   ========================================================================== */
.container, .container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: 12px;
}
.container { max-width: 1280px; }

@media (min-width: 1200px) {
  .container { max-width: 1280px; }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -12px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-inline: 12px;
}

.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Display utilities */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
@media (min-width: 576px) { .d-sm-none { display: none !important; } .d-sm-block { display: block !important; } .d-sm-flex { display: flex !important; } }
@media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-block { display: block !important; } .d-md-flex { display: flex !important; } }
@media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-block { display: block !important; } .d-lg-flex { display: flex !important; } }

/* Flex utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

/* Spacing */
.m-0 { margin: 0 !important; } .m-1 { margin: 0.25rem !important; } .m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; } .m-4 { margin: 1.5rem !important; } .m-5 { margin: 3rem !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 0.25rem !important; } .mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 0.25rem !important; } .mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .mb-5 { margin-bottom: 3rem !important; }
.mb-14 { margin-bottom: 14px !important; }
.p-0 { padding: 0 !important; } .p-1 { padding: 0.25rem !important; } .p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; } .p-4 { padding: 1.5rem !important; } .p-5 { padding: 3rem !important; }
.px-2 { padding-inline: 0.5rem !important; } .px-3 { padding-inline: 1rem !important; } .px-4 { padding-inline: 1.5rem !important; }
.py-1 { padding-block: 0.25rem !important; } .py-2 { padding-block: 0.5rem !important; }
.py-3 { padding-block: 1rem !important; } .py-4 { padding-block: 1.5rem !important; }

/* Text utilities */
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-body { color: var(--color_text) !important; }
.text-muted { color: var(--color_texts) !important; }
.text-primary { color: var(--color_link) !important; }
.text-white { color: #fff !important; }
.text-success { color: var(--md-success) !important; }
.text-warning { color: var(--md-warning) !important; }
.text-danger { color: var(--md-error) !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-break { word-wrap: break-word; word-break: break-word; }
.text-uppercase { text-transform: uppercase !important; }
.font-weight-bold, .fw-bold { font-weight: 700 !important; }
.font-weight-semibold, .fw-semibold { font-weight: 600 !important; }
.font-weight-normal, .fw-normal { font-weight: 400 !important; }
.font-size-body { font-size: 0.9375rem !important; }
.small, small { font-size: 87.5%; }
.h1 { font-size: 2.5rem; } .h2 { font-size: 2rem; } .h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; } .h5 { font-size: 1.25rem; } .h6 { font-size: 1rem; }

/* Backgrounds */
.bg-primary { background-color: var(--color_button) !important; }
.bg-secondary { background-color: var(--accent-orange) !important; }
.bg-success { background-color: var(--md-success) !important; }
.bg-warning { background-color: var(--md-warning) !important; }
.bg-danger { background-color: var(--md-error) !important; }
.bg-info { background-color: var(--md-info) !important; }
.bg-light { background-color: #F0F2F5 !important; }
.bg-dark { background-color: var(--color_background_ft) !important; }
.bg-white { background-color: #fff !important; }
.bg-transparent { background-color: transparent !important; }
.bg-cover {
  background-color: #CFD4DB;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Borders */
.border { border: 1px solid var(--color_border) !important; }
.border-top { border-top: 1px solid var(--color_border) !important; }
.border-bottom { border-bottom: 1px solid var(--color_border) !important; }
.border-0 { border: 0 !important; }
.border-secondary { border-color: var(--color_border) !important; }
.rounded { border-radius: 0.375rem !important; }
.rounded-sm { border-radius: 0.25rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-0 { border-radius: 0 !important; }

/* Shadow */
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important; }

/* Other */
.w-100 { width: 100% !important; } .w-75 { width: 75% !important; }
.w-50 { width: 50% !important; } .w-25 { width: 25% !important; } .w-auto { width: auto !important; }
.h-100 { height: 100% !important; } .mw-100 { max-width: 100% !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.top-0 { top: 0 !important; } .bottom-0 { bottom: 0 !important; }
.start-0 { inset-inline-start: 0 !important; } .end-0 { inset-inline-end: 0 !important; }
.overflow-hidden { overflow: hidden !important; } .overflow-auto { overflow: auto !important; }

/* SVG sizes */
.svg-4 { width: 1.5rem; height: 1.5rem; }
.svg-5 { width: 1.25rem; height: 1.25rem; }
.svg-6 { width: 1rem; height: 1rem; fill: var(--color_svg); }

/* Utilities from original */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex { display: flex; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.flex-coloum { display: flex; flex-direction: column; }
.flex-end { display: flex; justify-content: flex-end; }
.flex-round { display: flex; justify-content: space-around; align-items: center; }
.media-line { display: flex; align-items: center; }
.radius1 { border-radius: 4px; } .radius6 { border-radius: 6px; }
.margin-half { margin: 0.5rem; } .padding-hor { padding-inline: 0.5rem; }
.margin1rem { margin: 1rem; } .padding1 { padding: 1rem; } .padding1rem { padding: 1rem; }
.margin-top { margin-top: 1rem; } .margin-left-half { margin-inline-start: 0.5rem; }
.margin-right-half { margin-inline-end: 0.5rem; }
.color-gray { color: #6c757d; } .color-orange { color: var(--accent-orange); }
.back-gray { background: #f8f9fa; } .text-gray { color: #6c757d; }
.black-back { background: #212529; color: #fff; }
.border-orange { border-color: var(--accent-orange); } .border-gray { border-color: #dee2e6; }
.pointer { cursor: pointer; } .hidden { display: none; } .whites { color: white; }

/* ==========================================================================
   4. SITE STRUCTURE
   ========================================================================== */
.site { padding-top: var(--header-height); min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1 0 auto; }
.content-area { width: 100%; }
.widget-area { width: 100%; }

@media (min-width: 992px) {
  .has-sidebar .content-area { width: 66.666667%; float: inline-start; }
  .has-sidebar .widget-area { width: 33.333333%; float: inline-end; padding-inline-start: 24px; }
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color_background_hd);
  border-bottom: 1px solid var(--color_border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color_logo_header);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--color_link); }
.site-logo img { max-height: 45px; width: auto; }
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color_button), var(--brand-gradient-end));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.25rem;
}

/* Navigation */
.site-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav .menu { display: flex; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color_header_link);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  display: block;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease 0s;
}
.site-nav .menu > li:hover > a { color: inherit; background: #F2F2F2; }
.site-nav .menu > li.current-menu-item > a,
.site-nav .menu > li.current-category-ancestor > a,
.site-nav .menu > li.current-post-ancestor > a {
  color: var(--color_link);
  background-color: transparent;
  border-bottom-color: var(--color_border);
}

.site-nav .sub-menu {
  white-space: nowrap;
  background-color: var(--color_background);
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  display: none;
  padding: 0.5rem 0;
  position: absolute;
  z-index: 12;
  top: 100%;
  inset-inline-start: 0;
  min-width: 15rem;
}
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu > li > a {
  color: inherit;
  display: block;
  padding: 0.5rem 1rem;
}
.site-nav .sub-menu > li:hover > a { color: var(--color_link); }
.site-nav .sub-menu > li > .sub-menu {
  top: 0;
  inset-inline-start: 100%;
}

/* Link-list & Language dropdowns */
header .menu .link-list, header .menu .link-language-list {
  display: block;
  position: absolute;
  background: var(--color_background);
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  padding: 0.5rem 0;
  z-index: 12;
  inset-inline-end: 0;
  top: 100%;
  min-width: 15rem;
  display: none;
}
header .menu li:hover > .link-list,
header .menu li:hover > .link-language-list { display: block; }
header .menu .link-list img { width: 24px; height: 24px; }

/* Search Box */
.search-wrapper { flex: 1; max-width: 600px; position: relative; }
.search-box {
  display: flex;
  align-items: center;
  background: var(--md-surface-container-high);
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 4px 8px 4px 16px;
  transition: all 0.15s var(--motion-easing-standard);
}
.search-box:focus-within {
  background: var(--color_background);
  border-color: var(--color_button);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color_button) 20%, transparent);
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--color_text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 8px 12px;
}
.search-box input::placeholder { color: var(--color_texts); }
.search-btn {
  background: var(--color_button);
  color: #fff;
  border: none;
  border-radius: 9999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.search-btn:hover { background: var(--color_button_hover); }

/* AJAX search suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 16px;
  box-shadow: var(--elev-4);
  max-height: 480px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}
.search-suggestions.active { display: block; animation: fadeInUp 0.15s; }
.search-section-title {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color_texts);
  text-transform: uppercase;
  background: var(--md-surface-container);
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--md-surface-container-high);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.search-suggestion-item:hover, .search-suggestion-item.highlighted {
  background: var(--md-surface-container-high);
}
.search-suggestion-item img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.search-suggestion-info { flex: 1; min-width: 0; }
.search-suggestion-info h4 { font-size: 0.9rem; margin: 0 0 2px; }
.search-suggestion-info p { font-size: 0.75rem; color: var(--color_texts); margin: 0; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  background: transparent;
  border: none;
  color: var(--color_text);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  text-decoration: none;
}
.icon-btn:hover { background: var(--md-surface-container-high); color: var(--color_link); }
.icon-btn .badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  background: var(--md-error);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* User header menu (from custom.php) */
.user-header-avatar, .user-header-noavatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
}
.user-header-noavatar { width: 40px; height: 40px; background: var(--md-surface-container-high); }
.king-points {
  display: inline-block;
  background: var(--color_link);
  color: #fff;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}
.user-header-menu {
  position: absolute;
  display: block;
  inset-inline-end: 10px;
  visibility: hidden;
  opacity: 0;
  list-style: none;
  background-color: var(--color_background);
  width: 220px;
  top: 50px;
  text-align: center;
  margin: 0;
  z-index: 4;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transform: scale(0.8);
  transition: all 250ms cubic-bezier(0.24, 0.22, 0.015, 1.56);
  border-radius: 6px;
  padding: 8px 0;
}
.user-header-menu:before {
  content: " ";
  background: none repeat scroll 0 0 transparent;
  border: 12px solid transparent;
  border-bottom-color: var(--color_background);
  bottom: auto;
  height: 0;
  position: absolute;
  inset-inline-end: 8px;
  top: -22px;
  width: 0;
}
.user-header-menu.show { visibility: visible; opacity: 1; transform: scale(1); }
.user-header-menu li { padding: 6px 12px; }
.user-header-menu li:hover { background: var(--md-surface-container); }

/* Top banner (from moddroid.css) */
.banner-wrapper {
  background-color: #fe6103;
  color: #fff;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.3;
}
.banner-wrapper > * { position: relative; z-index: 1; }
.banner-wrapper a.download-link {
  background-color: #6b30ff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Mobile menu toggle */
.mobile-menu-toggle { display: none; }

@media (max-width: 991px) {
  .site-nav { display: none; }
  .mobile-menu-toggle { display: grid; }
  .header-inner { gap: 8px; }
}

@media (max-width: 768px) {
  .site-logo span:not(.logo-icon) { display: none; }
  .header-inner .link-list,
  .header-inner .link-language-list { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  inset-inline-start: 0;
  bottom: 0;
  width: 280px;
  background: var(--color_background);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.25s var(--motion-easing-emphasized);
  overflow-y: auto;
  padding: 16px;
  box-shadow: var(--elev-4);
}
html[dir="rtl"] .mobile-nav { transform: translateX(100%); inset-inline-start: auto; inset-inline-end: 0; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { margin-bottom: 8px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--color_text);
  font-weight: 600;
}
.mobile-nav a:hover { background: var(--md-surface-container-high); color: var(--color_link); }

.site-overlay {
  background: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 998;
  top: 0;
  inset-inline-start: 0;
  display: none;
}
.site-overlay.active { display: block; }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease 0s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

.btn-primary, .btn-primary:not(:disabled):not(.disabled):active:focus {
  color: #fff;
  background-color: var(--color_button);
  border-color: var(--color_button);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active {
  color: #fff;
  background-color: var(--color_button_hover);
  border-color: var(--color_button_hover);
}

.btn-secondary {
  color: #fff;
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}
.btn-secondary:hover { background-color: #E07400; border-color: #E07400; }

.btn-success { color: #fff; background-color: var(--md-success); border-color: var(--md-success); }
.btn-warning { color: #212529; background-color: var(--md-warning); border-color: var(--md-warning); }
.btn-danger { color: #fff; background-color: var(--md-error); border-color: var(--md-error); }
.btn-info { color: #fff; background-color: var(--md-info); border-color: var(--md-info); }

.btn-outline-primary {
  color: var(--color_button);
  background-color: transparent;
  border-color: var(--color_button);
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--color_button);
  border-color: var(--color_button);
}

.btn-light { color: #212529; background-color: #F0F2F5; border-color: #F0F2F5; }
.btn-light:hover { background-color: #E0E2E5; }
.btn-light.active { color: #fff; background-color: var(--color_button); border-color: var(--color_button); }

.btn-dark { color: #fff; background-color: var(--color_background_ft); border-color: var(--color_background_ft); }
.btn-link { color: var(--color_link); background: transparent; border: none; padding: 0.5rem; }
.btn-link:hover { color: var(--color_link_hover); text-decoration: underline; }
.btn-discord { background-color: var(--discord-color); color: #fff; border-color: var(--discord-color); }
.btn-discord:hover { background-color: #3F38A0; color: #fff; }

.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.8125rem; border-radius: 0.25rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.0625rem; border-radius: 0.5rem; }
.btn-block { display: block; width: 100%; }

/* Material 3 FAB */
.btn-fab {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  padding: 0;
  background: var(--color_button);
  color: #fff;
  box-shadow: var(--elev-3);
}

/* ==========================================================================
   7. APP CARDS (4 styles)
   ========================================================================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
@media (min-width: 768px) {
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
}

/* 7.1 - Card style (default mdr) */
.app-card {
  background: var(--color_background);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s var(--motion-easing-emphasized);
  position: relative;
  border: 1px solid var(--color_border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-3);
  border-color: var(--color_button);
}
.app-card-link { display: block; color: inherit; }
.app-card-link:hover { color: inherit; }

.app-card-banner {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color_nav_bg), #E0E0E0);
  overflow: hidden;
}
.app-card-banner img { width: 100%; height: 100%; object-fit: cover; }

.app-card-icon {
  position: absolute;
  bottom: -24px;
  inset-inline-start: 16px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color_background);
  border: 2px solid var(--color_background);
  box-shadow: var(--elev-2);
  overflow: hidden;
}
.app-card-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-card-body { padding: 32px 16px 16px; }
.app-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color_heading);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card-link:hover .app-card-title { color: var(--color_link); }
.app-card-developer { font-size: 0.75rem; color: var(--color_texts); margin: 0 0 8px; }
.app-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color_texts);
}
.app-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color_rate);
  font-weight: 600;
}
.app-card-version {
  background: var(--color_nav_bg);
  color: var(--color_button);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.7rem;
}
.app-card-mod-badge {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: linear-gradient(135deg, var(--color_button), var(--brand-gradient-end));
  color: white;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: var(--elev-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 7.2 - box-app style (sidebar) */
.box-app {
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s ease;
  height: 100%;
}
.box-app:hover { box-shadow: var(--elev-2); border-color: var(--color_button); }
.box-app .title { font-weight: 700; color: var(--color_link); margin: 0 0 4px; }
.box-app img.app-icon { width: 64px; height: 64px; border-radius: 12px; }
.box-app dt.ic-app { float: inline-start; margin-inline-end: 12px; }
.box-app dl.item dd.title { font-size: 0.875rem; }
.box-app dl.item dd.info-app span { color: var(--color_texts); font-size: 0.75rem; }

/* 7.3 - app-container style (3-column grid) */
.app-container {
  display: grid;
  grid-template-columns: 64px 1fr 72px;
  gap: 12px;
  align-items: center;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s;
}
.app-container:hover { box-shadow: var(--elev-2); border-color: var(--color_button); }
.app-container:hover .app-get .get-button { background: var(--color_button); color: #fff; }
.app-logo img { width: 64px; height: 64px; border-radius: 12px; }
.app-title {
  font-weight: 700;
  color: var(--color_heading);
  font-size: 0.95rem;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-get { text-align: center; }
.get-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color_nav_bg);
  color: var(--color_button);
  text-decoration: none;
  transition: all 0.2s;
}
.get-button:hover { background: var(--color_button); color: #fff; }

/* 7.4 - review_app_box style */
.review_app_box {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 16px;
  padding: 16px;
  align-items: center;
}
.review_app_box .icon {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
}
.review_app_box .icon img { width: 100%; height: 100%; object-fit: cover; }
.review_app_box .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color_button);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}
.review_app_box .other a.alternatives:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--app_alternatives_icon) center/contain no-repeat;
  margin-inline-end: 4px;
  vertical-align: middle;
}

/* 7.5 - style_c (featured) */
.style_c_wrapper {
  background: #f1f5f7;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}
.style_c_logo img { width: 122px; height: 122px; border-radius: 16px; }
.style_c_header { overflow: hidden; }
.style_c_header h3 { font-size: 24px; margin: 0 0 8px; }
.style_c_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #39d266;
  color: #fff;
  padding: 0 24px;
  height: 38px;
  border-radius: 19px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}
.style_c_button:hover { background: #2eb455; color: #fff; }
.style_c_price { font-size: 14px; color: var(--color_texts); }
.style_c_price strong { font-size: 18px; color: var(--color_text); }

/* 7.6 - List item */
.app-list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--color_background);
  border-radius: 12px;
  border: 1px solid var(--color_border);
  transition: all 0.2s;
}
.app-list-item:hover { box-shadow: var(--elev-1); }
.app-list-item img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }

/* Line clamp helpers */
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   8. SINGLE APP PAGE
   ========================================================================== */
.app-hero {
  background: linear-gradient(135deg, var(--color_nav_bg), #F0F8F0);
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color_border);
}
.app-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--app-hero-bg, none) center/cover no-repeat;
  filter: blur(40px) saturate(180%);
  opacity: 0.4;
}
.app-hero-content {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: center;
}
.app-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: var(--color_background);
  box-shadow: var(--elev-4);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color_border);
}
.app-icon-large img { width: 100%; height: 100%; object-fit: cover; }
.app-info { flex: 1; min-width: 0; }
.app-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 8px; color: var(--color_heading); }
.app-developer { color: var(--color_texts); margin: 0 0 12px; }

.app-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.app-stat { display: flex; flex-direction: column; gap: 2px; }
.app-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--color_heading); }
.app-stat-label { font-size: 0.75rem; color: var(--color_texts); }
.app-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* detail_banner (custom.2.css) */
.detail_banner {
  position: relative;
  background: var(--color_background);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: var(--elev-2);
  margin-bottom: 24px;
}
.detail_banner .icon { width: 120px; height: 120px; border-radius: 24px; overflow: hidden; flex-shrink: 0; }
.detail_banner h1 { font-size: 1.6rem; margin: 0 0 8px; }

/* button_box */
.button_box { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button_box .down_btn {
  background: linear-gradient(135deg, var(--color_button), var(--brand-gradient-end));
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.button_box .down_btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--elev-3); }
.button_box .gp_text_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 176px;
  height: 55px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
}

/* App Tabs */
.app-tabs, .tab-nav {
  border-bottom: 1px solid var(--color_border);
  display: flex;
  margin: 24px 0;
  overflow-x: auto;
  gap: 8px;
}
.app-tab, .tab-nav a {
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--color_texts);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  display: block;
}
.app-tab:hover, .tab-nav a:hover { color: var(--color_text); background: var(--md-surface-container); }
.app-tab.active, .tab-nav a.active {
  color: var(--color_button);
  border-bottom-color: var(--color_button);
}
.app-tab-content { display: none; animation: fadeInUp 0.25s; }
.app-tab-content.active { display: block; }

/* Screenshots */
.screenshots-slider, #gallery-screenshots1 {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
#gallery-screenshots1 img { height: 200px !important; width: auto !important; max-width: 100% !important; max-height: 200px !important; }
.beauty-scroll::-webkit-scrollbar { height: 8px; }
.beauty-scroll::-webkit-scrollbar-track { background: var(--md-surface-container); border-radius: 8px; }
.beauty-scroll::-webkit-scrollbar-thumb { background: var(--color_button); border-radius: 8px; }

.screenshot {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--elev-2);
  scroll-snap-align: start;
  background: var(--md-surface-container-high);
}
.screenshot img { width: 100%; height: 100%; object-fit: cover; }

/* Swiper slide game_info overlay */
.swiper-slide .game_info {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
}
.game_hot--btn {
  background: var(--color_button);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Accordion */
.accordion .card {
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion .card-header {
  padding: 12px 20px;
  background: var(--md-surface-container);
  border-bottom: 1px solid var(--color_border);
}
.accordion .toggler {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--color_text);
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: start;
  font-size: 1rem;
}
.accordion .toggler:after {
  content: '−';
  font-size: 1.5rem;
  font-weight: 700;
  margin-inline-start: auto;
  transition: all 0.3s ease 0s;
  color: var(--color_button);
}
.accordion .toggler.collapsed:after { content: '+'; }
.accordion .accordion-content, .accordion .card-body { padding: 20px; }

/* FAQ Schema */
.schema-faq-section { margin: 16px 0; }
.schema-faq-question {
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--color_border);
}
.schema-faq-answer { padding: 12px 0; color: var(--color_texts); }

/* Download progress */
.download-loading { position: relative; padding: 24px; text-align: center; }
.download-progress {
  width: 100%;
  height: 24px;
  background: var(--md-surface-container-high);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-status {
  height: 100%;
  background: linear-gradient(90deg, var(--color_button), var(--brand-gradient-end));
  border-radius: 12px;
  animation: progress-status 5s ease-in-out infinite;
}
@keyframes progress-status {
  0% { width: 0; }
  100% { width: 100%; }
}
.download-loading .download-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color_button);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  animation: show 0.5s ease;
}
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
.download-desc { margin-top: 16px; color: var(--color_texts); }
.download-desc p > a { color: var(--accent-orange); }

/* Hot game sidebar */
.detail-container {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
}
@media (max-width: 991px) { .detail-container { grid-template-columns: 1fr; } }

.pc-detail-hot-game {
  background: var(--color_background);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color_border);
}
.hot-game { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color_border); }
.hot-game:last-child { border-bottom: none; }
.hot-name-icon { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.hot-game-tag {
  display: inline-block;
  background: var(--color_button);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 1050;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  display: none;
}
.modal.show { display: block; }
.modal-backdrop {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-backdrop.show { opacity: 0.5; }
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
  z-index: 1055;
}
.modal-content {
  position: relative;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 16px;
  box-shadow: var(--elev-5);
  outline: 0;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color_border);
  background: var(--md-surface-container);
  border-radius: 16px 16px 0 0;
}
.modal-title { margin: 0; font-weight: 700; }
.modal-body { padding: 24px; position: relative; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--color_border);
  gap: 8px;
}
.modal-close, .btn-close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
  padding: 8px;
}
.modal-close:hover, .btn-close:hover { opacity: 0.75; }

/* Modal mask (custom modals) */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 10;
  display: none;
}
.modal-mask.show { display: block; }
.modal-item {
  position: relative;
  z-index: 100;
  background: var(--color_background);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  margin: 80px auto;
  box-shadow: var(--elev-5);
}

/* Reminder dialog (allow ads) */
.reminder_dialog { display: none; }
.reminder_dialog.show { display: block; }
.reminder_dialog--wrapper {
  position: fixed;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 608px;
  max-width: calc(100% - 32px);
  background: var(--color_background);
  border-radius: 16px;
  z-index: 9999;
  overflow: hidden;
}
html[dir="rtl"] .reminder_dialog--wrapper { transform: translate(50%, -50%); }
.reminder_dialog--header { background: var(--accent-orange); color: #fff; padding: 16px 24px; font-weight: 700; }
.allow_ads--button {
  background: var(--color_button);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin: 16px;
}

/* Guide dialog (PC/Mobile) */
.guide_dialog-pc, .guide_dialog-mobile { display: none; }
.guide_dialog-pc.show, .guide_dialog-mobile.show { display: block; }
.guide_dialog-pc {
  position: fixed;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 874px;
  max-width: calc(100% - 32px);
  background: var(--color_background);
  border-radius: 16px;
  z-index: 9999;
  padding: 24px;
}
html[dir="rtl"] .guide_dialog-pc { transform: translate(50%, -50%); }
.guide_dialog-mobile {
  position: fixed;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 302px;
  max-width: calc(100% - 32px);
  background: var(--color_background);
  border-radius: 16px;
  z-index: 9999;
  padding: 24px;
}
html[dir="rtl"] .guide_dialog-mobile { transform: translate(50%, -50%); }
.guide_dialog-pc--tab-list { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--color_border); }
.guide_dialog-pc--tab-list a { padding: 8px 16px; color: var(--color_texts); text-decoration: none; font-weight: 600; }
.guide_dialog-pc--tab-list a.active { color: var(--color_button); border-bottom: 2px solid var(--color_button); }

/* Donate */
.fixed-donate-us {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 45px;
  height: 45px;
  background: #FC5E8A;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--elev-3);
}
.fixed-donate-us:hover { background: #E04E78; color: #fff; }
.fixed-donate-us-modal {
  position: fixed;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: calc(100% - 32px);
  background: var(--color_background);
  border-radius: 16px;
  z-index: 9999;
  padding: 24px;
  display: none;
}
html[dir="rtl"] .fixed-donate-us-modal { transform: translate(50%, -50%); }
.fixed-donate-us-modal.show { display: block; }
.donate-item-custom { margin-top: 16px; }
.donate-item-custom input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color_border);
  border-radius: 8px;
}

#donate-popup {
  position: fixed;
  bottom: 80px;
  inset-inline-end: 24px;
  background: var(--color_background);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--elev-3);
  z-index: 100;
  display: none;
  max-width: 280px;
}
#donate-popup.show { display: block; }
#donate-popup::after {
  content: '';
  position: absolute;
  bottom: -10px;
  inset-inline-end: 16px;
  border: 10px solid transparent;
  border-top-color: var(--color_background);
}

#donate-prompt-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
#donate-prompt-wrapper.show { display: flex; }
.donate-prompt {
  background: var(--color_background);
  border-radius: 16px;
  padding: 24px;
  width: 60%;
  max-width: 500px;
  position: relative;
}

/* Download donate banner */
.download-donate-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 28px;
}
@media (max-width: 991px) {
  .download-donate-content { grid-template-columns: 1fr 1fr; }
}
.download-donate-content-item {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background-color: var(--color_background);
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
  overflow: hidden;
}
.download-donate-content-item .title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  background: var(--accent-orange);
  color: white;
  font-size: 18px;
  font-weight: 700;
}
.download-donate-content-item .amount {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--accent-orange);
}
.download-donate-content-item .button {
  background-color: var(--accent-orange);
  color: #fff;
  border-radius: 40px;
  margin: 0 20px 10px 20px;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
}

/* Stars rating */
.Stars {
  --percent: calc(var(--rating) / 10 * 100%);
  display: inline-block;
  font-size: 1.1rem;
  opacity: .85;
  cursor: pointer;
}
.Stars::before {
  content: "★★★★★";
  letter-spacing: 0;
  background: linear-gradient(90deg, var(--color_rate) var(--percent), #ccc var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.star-off, .star-on { display: inline-block; width: 16px; height: 16px; }
.star-on { background: var(--color_rate); }

/* Notice download */
.notice_download ul, #entry-content.entry-content ul {
  background: var(--md-surface-container);
  padding: 16px 24px;
  border-radius: 12px;
  margin: 16px 0;
}
.notice_download li { margin-bottom: 8px; }

/* Detail HTML */
.detail-html h1, .detail-html h2, .detail-html h3 { margin-top: 24px; }
.detail-html img { max-width: 100%; height: auto; border-radius: 8px; }

/* App info table */
.app-info-table, .table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--color_text);
  background: var(--color_background);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color_border);
}
.app-info-table th, .app-info-table td,
.table th, .table td { padding: 0.625rem; border-top: 1px solid var(--color_border); vertical-align: top; }
.app-info-table thead th, .table thead th {
  border-bottom: 2px solid var(--color_border);
  font-weight: 700;
  background: var(--md-surface-container);
}
.table-striped tbody tr:nth-of-type(odd) { background: var(--md-surface-container); }
.table-hover tbody tr:hover { background: var(--md-surface-container-high); }

/* ==========================================================================
   9. SIDEBAR & WIDGETS
   ========================================================================== */
.widget {
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color_button);
}

.cat-list, .widget ul { list-style: none; padding: 0; margin: 0; }
.cat-list li { margin-bottom: 4px; }
.cat-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--color_text);
  transition: all 0.15s;
}
.cat-list a:hover { background: var(--md-surface-container-high); color: var(--color_link); }
.cat-list img, .cat-list .material-symbols-rounded { width: 32px; height: 32px; }

/* Cloud tags */
.cloud-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-tags a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--md-surface-container);
  color: var(--color_text);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.15s;
}
.cloud-tags a:hover { background: var(--color_button); color: #fff; }

/* Tags links */
.tags-links a {
  display: inline-block;
  padding: 2px 8px;
  background: var(--md-surface-container);
  color: var(--color_link);
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  margin-inline-end: 4px;
}

/* King post format badge */
.king-post-format a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   10. ARCHIVE PAGE
   ========================================================================== */
.archive-header { margin-bottom: 24px; }
.archive-header h1 { margin: 0 0 8px; }

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--md-surface-container);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--color_border);
}

/* Subcategories grid */
.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--color_text);
  transition: all 0.2s;
}
.subcat-card:hover { box-shadow: var(--elev-1); border-color: var(--color_button); color: var(--color_link); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}
.page-numbers, .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--color_rgb_nav);
  color: var(--color_text);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.page-numbers:hover, .page-link:hover {
  color: var(--color_button);
  background-color: var(--color_nav_bg);
  border-color: var(--color_nav_bg);
}
.page-numbers.current, .page-item.active .page-link {
  background: var(--color_button);
  color: #fff;
  border-color: var(--color_button);
}
.page-numbers.dots { background: transparent; }

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}
.breadcrumb-item { display: flex; align-items: center; color: var(--color_texts); }
.breadcrumb-item a { color: var(--color_link); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--color_link_hover); text-decoration: underline; }
.breadcrumb-item.active { color: var(--color_text); }
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  padding: 0 8px;
  color: var(--color_texts);
}
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { content: '/'; }

/* 404 page */
.content-404 h1.title-404 { font-size: 5rem; }
.content-404 strong { font-size: 2rem; }
.content-404 p { font-size: 0.75rem; }
.content-404 .btn-404 a {
  color: #212529;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.3rem 1rem;
  border: 0.2rem solid var(--color_button);
  border-radius: 0.8rem;
  vertical-align: middle;
  text-decoration: none;
}
.content-404 .btn-404 a:hover { color: var(--color_button); }

/* ==========================================================================
   11. APK EXTRACTOR (FRONTEND MODAL)
   ========================================================================== */
.play_menu {
  clear: both;
  width: auto;
  max-width: 100%;
  padding: 15px 10px;
  border: 1px solid var(--color_border);
  background: var(--color_background);
  margin: 10px 0;
  border-radius: 12px;
}
.play_result { display: block; clear: both; width: auto; max-width: 100%; padding: 0; }
.play_list {
  width: 200px !important;
  display: block;
  float: inline-start;
  cursor: pointer;
  height: 250px;
  margin: 8px;
  padding: 7px;
  border: 3px solid var(--color_background);
  background: var(--color_background);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.play_list:hover { border-color: var(--color_button); }
.play_chosed { border: 3px solid var(--color_button) !important; }
img.play_thumb { max-width: 100% !important; width: 200px !important; border-radius: 8px; }
.play_detail { margin: 0; padding: 0; }
.play_rating { font-size: 11px; color: var(--color_texts); }
.play_detail h4 {
  margin: 0;
  text-align: start;
  font-size: 12px;
  font-weight: 700;
  width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color_heading);
}
.play_overlay {
  z-index: 100;
  display: none;
  position: fixed;
  width: 100% !important;
  opacity: 0.6;
  top: 0;
  margin: 0;
  min-height: 250px;
  height: 100%;
  background-color: #000;
  inset-inline-start: 0;
}
.play_pop {
  display: none;
  position: fixed;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--color_border);
  z-index: 9995;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  background: var(--color_background);
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
html[dir="rtl"] .play_pop { transform: translate(50%, -50%); }
.play_pop.show { opacity: 1; visibility: visible; display: block; }
.play_pop_head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color_border);
  background: var(--color_background);
  border-radius: 20px 20px 0 0;
}
.play_pop_head h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--color_heading); display: flex; align-items: center; gap: 8px; }
.play_pop_head .close-btn {
  background: transparent;
  border: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color_texts);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  line-height: 1;
}
.play_pop_head .close-btn:hover { background: var(--md-surface-container-high); color: var(--color_text); }
.play_pop_body { padding: 24px; }

#apkPullerResults {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
}
@media (max-width: 576px) { #apkPullerResults { grid-template-columns: repeat(2, 1fr); } }

.play_notif { padding: 12px; margin: 8px 0; border-radius: 8px; }
.play_warning { background: #FFF3E0; color: var(--md-warning); border: 1px solid var(--md-warning); }
.play_error { background: #FDE7E7; color: var(--md-error); border: 1px solid var(--md-error); }
.play_success { background: var(--color_nav_bg); color: var(--color_button); border: 1px solid var(--color_button); }

.play_menus li, .play_submenus li { display: inline-block; padding: 4px 12px; }
.play_more { clear: both; display: block; padding: 12px; text-align: center; }
.play_fixed { position: fixed; top: 80px; inset-inline-end: 24px; z-index: 100; }
.play_fixed_bottom { position: fixed; bottom: 80px; inset-inline-end: 24px; z-index: 100; }
.play_posted { border: 3px solid var(--color_button) !important; opacity: 0.7; }

.blink { animation: blinker 6s linear infinite; color: #1c87c9; font-size: 30px; font-weight: bold; }
.blink-one { animation: blinker-one 5s linear infinite; }
@keyframes blinker { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes blinker-one { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

input.abe { width: 100%; padding: 8px 12px; border-radius: 15px; border: 1px solid var(--color_border); }
input.button-primary.abe { width: 100%; border-radius: 15px; background: #46AFFF; color: #fff; padding: 8px 16px; border: none; cursor: pointer; }

/* Source selector */
.source-radio-group { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.source-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 2px solid var(--color_border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  background: var(--color_background);
  color: var(--color_text);
}
.source-radio input { display: none; }
.source-radio:hover { border-color: var(--color_button); }
.source-radio.active { background: var(--color_button); color: #fff; border-color: var(--color_button); }
.source-tab-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.source-tab-badge.google_play { background: #E6F4EA; color: #137333; }
.source-tab-badge.apkpure { background: #E8F0FE; color: #1A73E8; }
.source-tab-badge.aptoide { background: #FCE8E6; color: #D93025; }
.source-tab-badge.apkmirror { background: #FEF7E0; color: #B06000; }
.source-radio.active .source-tab-badge { background: rgba(255,255,255,0.2); color: #fff; }

/* Floating APK Puller Button */
.apk-puller-trigger-floating {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color_button), var(--brand-gradient-end));
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(1,160,1,0.4), 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  display: grid !important;
  place-items: center;
  z-index: 997;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse-green 2.5s infinite;
}
.apk-puller-trigger-floating:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 12px 32px rgba(1,160,1,0.5); }
.apk-puller-trigger-floating .material-symbols-rounded { font-size: 28px; }
@keyframes pulse-green {
  0% { box-shadow: 0 8px 24px rgba(1,160,1,0.4), 0 0 0 0 rgba(1,160,1,0.7); }
  70% { box-shadow: 0 8px 24px rgba(1,160,1,0.4), 0 0 0 16px rgba(1,160,1,0); }
  100% { box-shadow: 0 8px 24px rgba(1,160,1,0.4), 0 0 0 0 rgba(1,160,1,0); }
}

/* App success preview */
.app-success-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color_nav_bg);
  border-radius: 12px;
  margin-top: 16px;
  border: 2px solid var(--color_button);
}
.app-success-preview img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; }
.app-success-preview-info { flex: 1; min-width: 0; }
.app-success-preview-info h4 { margin: 0 0 4px; font-size: 1rem; }
.app-success-preview-info p { margin: 0; font-size: 0.75rem; color: var(--color_texts); }

/* Adjust back-to-top position */
.has-floating-button .back-to-top { bottom: 100px !important; }

/* ==========================================================================
   12. RATE-MY-POST (Star rating system)
   ========================================================================== */
.rmp-widgets-container.rmp-wp-plugin.rmp-main-container {
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.rmp-icon { display: inline-block; font-size: 1.5rem; cursor: pointer; }
.rmp-icon--full-highlight { color: var(--color_rate); }
.rmp-icon--half-highlight {
  background: linear-gradient(90deg, var(--color_rate) 50%, #ccc 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rmp-icon--hovered { color: var(--color_button); }
.rmp-results-widget__visual-rating { display: flex; gap: 2px; }
.rmp-results-widget__avg-rating { font-size: 24px; font-weight: 700; color: var(--color_rate); }
.rmp-results-widget__vote-count { font-size: 0.875rem; color: var(--color_texts); }
.rmp-feedback-widget { margin-top: 16px; }
.rmp-feedback-widget__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color_border);
  border-radius: 8px;
  background: var(--md-surface-container);
  color: var(--color_text);
}
.rmp-social-widget { display: flex; gap: 12px; margin-top: 16px; }
.rmp-social-widget .rmp-icon--social {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--md-surface-container);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--color_texts);
  transition: filter 0.2s;
}
.rmp-social-widget .rmp-icon--social:hover { filter: contrast(1.5); }

.dlpro-averagerating { font-size: 38px; font-weight: 700; color: var(--color_rate); }
.dlpro-postratings-results { font-size: 10px; color: var(--color_texts); }
.dlpro-votecount { font-size: 13px; color: var(--color_texts); }
#left-rating { border-inline-start: 4px solid var(--color_button); padding-inline-start: 12px; }

/* ==========================================================================
   13. SWIPER/SLIDER (custom slider animation)
   ========================================================================== */
@keyframes slider {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-100%); }
  50%, 70% { transform: translateX(-200%); }
  75%, 95% { transform: translateX(-300%); }
  100% { transform: translateX(-400%); }
}
@keyframes sliderrtl {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(100%); }
  50%, 70% { transform: translateX(200%); }
  75%, 95% { transform: translateX(300%); }
  100% { transform: translateX(400%); }
}
.slide-item { margin-inline-end: 8px; position: relative; animation: slider 35s infinite; }
html[dir="rtl"] .slide-item { animation: sliderrtl 35s infinite; }

.wrapper-slide { min-height: 286px; position: relative; overflow: hidden; }
.list-slide { display: flex; transition: transform 0.5s; }
.vid.poster { height: 186px; max-height: 176px; }

.list-screen, .screen { display: flex; gap: 12px; overflow-x: auto; }
#screen img { height: 200px; width: auto; border-radius: 8px; }

/* Swiper container */
.swiper-container { margin-inline: auto; position: relative; overflow: hidden; list-style: none; padding: 0; z-index: 1; }
.swiper-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; display: flex; transition-property: transform; box-sizing: content-box; }
.swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper-pagination { position: absolute; text-align: center; transition: 300ms opacity; transform: translate3d(0,0,0); z-index: 10; }
.swiper-pagination-bullet { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #000; opacity: 0.2; margin: 0 4px; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--color_button); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color_background_ft);
  color: rgba(255,255,255,0.9);
  padding: 48px 0 24px;
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.8em;
}
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3, .site-footer h4, .site-footer h5 { color: #fff; }
.site-footer .menu { list-style: none; padding: 0; margin: 0; }
.site-footer .menu li { padding: 2px 0; }
.site-footer .menu li a { display: inline-block; }
.site-footer .menu li a:hover { color: var(--color_button); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 { font-size: 1rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; }

/* Footer socials */
.site-footer .socials { display: flex; gap: 8px; margin-top: 12px; }
.site-footer .socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.site-footer .socials a:hover { background: var(--color_button); color: #fff; }

/* Social share (list-shares) */
.list-shares { display: flex; gap: 8px; margin: 16px 0; }
.list-shares a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}
.list-shares a:hover { transform: translateY(-2px); }
.list-shares a.facebook { background: #455FA1; }
.list-shares a.twitter { background: #58ABF4; }
.list-shares a.pinterest { background: #CC1D1E; }
.list-shares a.linkedin { background: #007BB5; }
.list-shares a.email { background: #1980BE; }

/* Copyright */
.copyright { font-size: 14px; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.copyright a { color: rgba(255,255,255,0.7); }

/* DMCA badge */
.dmca-sample {
  font-size: 8px;
  color: rgba(254,254,254,0.6);
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
}
.dmca-sample:before { content: "DMCA"; padding: 5px 10px; background-color: #2a2a2a; }
.dmca-sample:after { content: "Protected"; padding: 5px 10px; background-color: rgba(0,0,0,0.1); }

/* Scroll to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color_button);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--elev-3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 100;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--color_button_hover); transform: translateY(-4px); }

/* ==========================================================================
   15. ADS (placeholders)
   ========================================================================== */
.ads-here {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  min-height: 150px;
  padding: 15px;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 3px;
  color: #989b9f;
  font-size: 75%;
  background: var(--md-surface-container);
  margin: 12px 0;
}
.ads-here:after {
  content: "";
  display: block;
  width: 50px;
  height: 10px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 0 0 0 8px;
  position: absolute;
  top: 0;
  inset-inline-end: 0;
}
.ads-here .ads-img {
  width: 45%;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-style: normal;
  background-color: rgba(0,0,0,0.05);
}
.ads-here .ads-img:before { content: "Sample ad"; }
.ads-here .ads-content { width: 55%; padding: 20px 0 0 20px; }
.ads-here .ads-content:before, .ads-here .ads-content:after {
  content: "";
  display: block;
  width: 100%;
  padding-top: 4%;
  background-color: rgba(0,0,0,0.05);
}
.ads-here .ads-content:after { width: 70%; margin-top: 12px; }
.ads-here.feed .ads-img { width: 100%; min-height: 90px; margin-bottom: 15px; }
.ads-here.feed .ads-content { padding: 0; width: 60%; }

.adsbygoogle, .adsbygoogle ins, .adsbygoogle iframe { width: 100% !important; }
.ads-banner { margin-inline-start: -8px; }

/* ==========================================================================
   16. VERSION HISTORY (from versi.css)
   ========================================================================== */
.version_history { margin-bottom: 10px; }
.version_history .big_title {
  padding: 12px;
  border-bottom: 1px solid var(--color_border);
}
.version_history .big_title h2 { display: inline; font-size: 1.125rem; }
.version_history .big_title a { float: inline-end; color: var(--color_link); }

.version_history .list {
  background: var(--color_rgb2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-radius: 6px;
  margin-bottom: 8px;
  position: relative;
  user-select: none;
}
.version_history .list .package_info {
  padding: 12px 90px 12px 76px;
  min-height: 72px;
  cursor: pointer;
  position: relative;
}
.version_history .list .icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
}
.version_history .list .icon img { width: 100%; height: 100%; object-fit: cover; }
.version_history .list .text {
  font-size: 12px;
  line-height: 18px;
  color: var(--color_rgb_texts);
}
.version_history .list .title {
  font-size: 16px;
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.version_history .list .title .version { font-weight: 700; }
.version_history .list .title .name { display: none; }
@media (min-width: 720px) {
  .version_history .list .title .name { display: inline; }
  .version_history .list .package_info { padding-inline-end: 160px; }
}

.version_history .list span.apk,
.version_history .list span.obb,
.version_history .list span.xapk,
.version_history .list span.mod {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--color_border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.version_history .list span.apk { background: #E3F2FD; color: #1565C0; }
.version_history .list span.obb { background: #FFF3E0; color: #E65100; }
.version_history .list span.xapk { background: #F3E5F5; color: #6A1B9A; }
.version_history .list span.mod { background: var(--color_nav_bg); color: var(--color_button); }

.version_history .list .v_h_button {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.version_history .list .v_h_button a,
.version_history .list .v_h_button button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color_border);
  background: var(--color_background);
  color: var(--color_link);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.version_history .list .v_h_button a:hover,
.version_history .list .v_h_button button:hover { background: var(--color_button); color: #fff; }

.version_history .list .v_h_button .info:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--color_button);
  -webkit-mask: var(--download_icon) center/contain no-repeat;
  mask: var(--download_icon) center/contain no-repeat;
}
.version_history .list .v_h_button .down:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--color_button), var(--brand-gradient-end));
  -webkit-mask: var(--download_icon) center/contain no-repeat;
  mask: var(--download_icon) center/contain no-repeat;
}

.version_history .list .info_box { display: none; padding: 16px; border-top: 1px solid var(--color_border); }
.version_history .list .info_box.show { display: block; }
.version_history .list .info_box .whats_new { margin-top: 8px; }
.version_history .list .info_box .table { width: 100%; }
.version_history .list .info_box.info-download {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: linear-gradient(to top, var(--color_background) 60%, transparent);
  padding: 16px;
}

.version_history .more-apk { text-align: center; padding: 8px; }
.version_history .more-apk span, .version_history .more-apk span:after, .version_history .more-apk span:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color_texts);
  margin: 0 2px;
}

@media (max-width: 720px) { .version_history .list .v_h_button .down { display: none; } }
@media (max-width: 565px) { .version_history .list .info_box.info-download { display: block; } }

/* ==========================================================================
   17. FORM CONTROLS
   ========================================================================== */
.form-control, .form-select, .custom-select, input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color_text);
  background-color: var(--md-surface-container-high);
  border: 1px solid var(--md-surface-container-high);
  border-radius: 0.375rem;
  transition: all 0.3s ease 0s;
}
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
  background-color: var(--color_background);
  border-color: var(--color_border);
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.1);
  outline: none;
}
.form-control::placeholder { color: #898989; }

.input-group { display: flex; align-items: stretch; }
.input-group .form-control { flex: 1; }
.input-group-append { display: flex; }

/* ==========================================================================
   18. SPINNER & PROGRESS
   ========================================================================== */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--md-surface-container-high);
  border-top-color: var(--color_button);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }
.spinner.is-active { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1.2s infinite linear; }

.progress { display: flex; height: 1rem; overflow: hidden; font-size: 0.75rem; background-color: var(--md-surface-container-high); border-radius: 9999px; }
.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--color_button);
  transition: width 0.6s ease;
}
.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}
.progress-bar-animated { animation: progress-bar-stripes 1s linear infinite; }
@keyframes progress-bar-stripes { from { background-position: 1rem 0; } to { background-position: 0 0; } }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--md-surface-container) 0%, var(--md-surface-container-high) 50%, var(--md-surface-container) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ==========================================================================
   19. ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
.fade-in { animation: fadeInUp 0.25s var(--motion-easing-standard); }
.fade-out-animated { animation: fadeOut 0.5s; }

/* ==========================================================================
   20. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  background: var(--color_background);
  color: var(--color_text);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--elev-3);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: slideIn 0.25s var(--motion-easing-emphasized);
  border-inline-start: 4px solid var(--color_button);
}
.toast.success { border-inline-start-color: var(--md-success); }
.toast.error { border-inline-start-color: var(--md-error); }
.toast.warning { border-inline-start-color: var(--md-warning); }

/* ==========================================================================
   21. BADGES & LABELS
   ========================================================================== */
.badge, .label {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.6em;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}
.badge-primary, .badge-mod { background: var(--color_button); color: #fff; }
.badge-secondary { background: var(--accent-orange); color: #fff; }
.badge-success { background: var(--md-success); color: #fff; }
.badge-warning { background: var(--md-warning); color: #212529; }
.badge-danger { background: var(--md-error); color: #fff; }
.badge-info { background: var(--md-info); color: #fff; }
.badge-light { background: var(--md-surface-container-high); color: var(--color_text); }
.badge-dark { background: var(--color_background_ft); color: #fff; }
.badge-new { background: #C8E6C9; color: #1B5E20; }
.badge-hot { background: #FFCDD2; color: #B71C1C; }

/* Source badges */
.source-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color_nav_bg);
  color: var(--color_button);
}
.source-badge.source-google_play { background: #E6F4EA; color: #137333; }
.source-badge.source-apkpure { background: #E8F0FE; color: #1A73E8; }
.source-badge.source-aptoide { background: #FCE8E6; color: #D93025; }
.source-badge.source-apkmirror { background: #FEF7E0; color: #B06000; }
.source-badge.source-manual { background: var(--md-surface-container-high); color: var(--color_texts); }

/* ==========================================================================
   22. FIXED ICONS (social sidebar)
   ========================================================================== */
.fixed-icons {
  position: fixed;
  top: 160px;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0.25rem 0.25rem 1rem #aaa;
  z-index: 100;
  background: var(--color_background);
  border-radius: 0 12px 12px 0;
}
.fixed-icons a {
  padding: 7px;
  display: block;
  text-align: center;
  color: var(--color_link);
  border-bottom: 1px solid var(--color_border);
}
.fixed-icons a:last-child { border-bottom: none; }
.fixed-icons a:hover { background: var(--color_nav_bg); color: var(--color_button); }

@media (max-width: 767px) {
  .fixed-icons {
    top: auto;
    bottom: 0;
    flex-direction: row;
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
  .fixed-icons a { width: 25%; border-bottom: none; border-inline-end: 1px solid var(--color_border); }
  .fixed-icons a:last-child { border-inline-end: none; }
}

/* ==========================================================================
   23. UTILITIES
   ========================================================================== */
.section { padding: 32px 0; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title a { font-size: 0.875rem; font-weight: 600; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.hidden { display: none !important; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--color_button);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { inset-inline-start: 0; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 16px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--color_text);
  text-align: center;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
  border-color: var(--color_button);
  color: var(--color_link);
}

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--color_border), transparent); margin: 24px 0; border: none; }

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, var(--color_nav_bg), #F0F8F0);
  padding: 48px 0;
  text-align: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color_border);
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.alert-success { background: var(--color_nav_bg); color: var(--color_button); border-color: var(--color_button); }
.alert-danger { background: #FDE7E7; color: var(--md-error); border-color: var(--md-error); }
.alert-info { background: var(--md-surface-container); color: var(--color_texts); border-color: var(--color_border); }
.alert-warning { background: #FFF3E0; color: var(--md-warning); border-color: var(--md-warning); }

/* ==========================================================================
   24. RTL SPECIFIC
   ========================================================================== */
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-inline-end: 0.5rem; }
html[dir="rtl"] .play_list { float: inline-end; }
html[dir="rtl"] .app-card-mod-badge { inset-inline-end: 8px; inset-inline-start: auto; }
html[dir="rtl"] .back-to-top { inset-inline-end: 24px; inset-inline-start: auto; }
html[dir="rtl"] .fixed-icons { border-radius: 12px 0 0 12px; inset-inline-start: auto; inset-inline-end: 0; }
html[dir="rtl"] .box-app dt.ic-app { float: inline-end; margin-inline-end: 0; margin-inline-start: 12px; }
html[dir="rtl"] .download-donate-content-item .amount > span { margin-inline-start: 10px; margin-inline-end: 0; }

/* ==========================================================================
   25. DARK MODE
   ========================================================================== */
[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] body { background: var(--color_background_body); color: var(--color_text); }
[data-theme="dark"] .site-header { background: var(--color_background_hd); border-bottom-color: var(--color_border); box-shadow: 0 1px 8px rgba(0,0,0,0.3); }
[data-theme="dark"] .app-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.5); border-color: var(--color_button); }
[data-theme="dark"] .apk-puller-overlay { background: rgba(0,0,0,0.7); }

[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--md-surface-container); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--md-outline); border-radius: 5px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--color_button); }

[data-theme="dark"] .table, [data-theme="dark"] .app-info-table { background: var(--color_background); color: var(--color_text); }
[data-theme="dark"] .table thead th, [data-theme="dark"] .app-info-table thead th { background: var(--md-surface-container-high); border-bottom-color: var(--color_border); }
[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) { background: var(--md-surface-container); }
[data-theme="dark"] .table th, [data-theme="dark"] .table td, [data-theme="dark"] .app-info-table th, [data-theme="dark"] .app-info-table td { border-top-color: var(--color_border); }

[data-theme="dark"] .form-control, [data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: var(--md-surface-container-high);
  border-color: var(--color_border);
  color: var(--color_text);
}
[data-theme="dark"] .form-control:focus, [data-theme="dark"] input:focus, [data-theme="dark"] textarea:focus, [data-theme="dark"] select:focus {
  background: var(--color_background);
  border-color: var(--color_button);
}

[data-theme="dark"] code { background: var(--md-surface-container-high); color: var(--color_link); padding: 2px 6px; border-radius: 4px; font-family: monospace; }
[data-theme="dark"] .alert-success { background: rgba(76,175,80,0.15); color: #81C784; border-color: rgba(76,175,80,0.4); }
[data-theme="dark"] .alert-danger { background: rgba(244,67,54,0.15); color: #EF9A9A; border-color: rgba(244,67,54,0.4); }
[data-theme="dark"] .alert-info { background: var(--md-surface-container); color: var(--color_texts); }
[data-theme="dark"] .alert-warning { background: rgba(255,152,0,0.15); color: #FFCC80; border-color: rgba(255,152,0,0.4); }

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.theme-auto { color-scheme: dark; }
}

/* ==========================================================================
   26. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  :root { --header-height: 56px; }
  h1, .h1 { font-size: 1.625rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.375rem; }
  h4, .h4 { font-size: 1.25rem; }
  h5, .h5 { font-size: 1.125rem; }

  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .app-card-banner { aspect-ratio: 4/3; }
  .app-card-icon { width: 48px; height: 48px; bottom: -20px; }
  .app-card-body { padding: 28px 12px 12px; }
  .app-card-title { font-size: 0.85rem; }
  .app-card-developer { font-size: 0.7rem; }

  .app-hero-content { flex-direction: column; text-align: center; gap: 16px; }
  .app-icon-large { width: 96px; height: 96px; }
  .app-stats { justify-content: center; }

  .screenshot { width: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .has-sidebar .content-area, .has-sidebar .widget-area { width: 100%; float: none; }

  .detail_banner { flex-direction: column; text-align: center; }
  .review_app_box { grid-template-columns: 1fr; text-align: center; }
  .style_c_wrapper { grid-template-columns: 1fr; text-align: center; }
  .style_c_logo { display: flex; justify-content: center; }

  .download-donate-content { grid-template-columns: 1fr 1fr; }
  .fixed-icons { top: auto; bottom: 0; flex-direction: row; width: 100%; }
  .fixed-icons a { width: 25%; }

  .detail-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 24px 0; }
  .icon-btn { width: 44px; height: 44px; }
  .btn { padding: 0.5rem 1rem; font-size: 0.875rem; }
  .back-to-top { width: 40px; height: 40px; bottom: 16px; inset-inline-end: 16px; }
  .toast { min-width: 240px; max-width: calc(100vw - 32px); }
  .app-icon-large { width: 80px; height: 80px; }
  .app-title { font-size: 1.5rem; }
  .app-actions .btn { flex: 1; min-width: 0; }
  .apk-puller-trigger-floating { width: 56px; height: 56px; bottom: 16px; inset-inline-end: 16px; }
  .download-donate-content { grid-template-columns: 1fr; }
}

/* Touch devices */
@media (hover: none) {
  .app-card:hover { transform: none; box-shadow: var(--elev-2); }
  .btn:hover { transform: none; }
  .icon-btn:hover { background: transparent; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Material Symbols icon font */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ==========================================================================
   27. THEME-SPECIFIC (4 themes)
   ========================================================================== */

/* Theme: modyolo (pink/red) */
body.theme-modyolo {
  --color_button: #EB144C;
  --color_button_hover: #C10D3E;
  --color_link: #EB144C;
  --color_link_hover: #C10D3E;
  --color_nav: #EB144C;
  --color_nav_bg: #FCE4EC;
  --brand-gradient-start: #EB144C;
  --brand-gradient-end: #F06292;
}

/* Theme: liteapks (light green) */
body.theme-liteapks {
  --color_button: #7bbf3a;
  --color_button_hover: #6BA82E;
  --color_link: #7bbf3a;
  --color_link_hover: #6BA82E;
  --color_nav: #7bbf3a;
  --color_nav_bg: #F1F8E9;
  --brand-gradient-start: #7bbf3a;
  --brand-gradient-end: #9CCC65;
}
body.theme-liteapks .site { padding-top: 52px; }

/* Theme: reborn (advanced - dark toolbar) */
body.theme-reborn { font-size: 97%; line-height: 1.8em; }
body.theme-reborn .toolbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--color_background_hd);
  border-bottom: 1px solid var(--color_border);
  padding: 8px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}
body.theme-reborn .sel-dark-toggle,
body.theme-reborn .sel-lang {
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--md-surface-container);
  border: 1px solid var(--color_border);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--color_text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.theme-reborn .i__sun, body.theme-reborn .i__moon { display: inline-block; }
body.theme-reborn.darktheme .i__sun { display: none; }
body.theme-reborn:not(.darktheme) .i__moon { display: none; }
body.theme-reborn .fotIn { display: grid; grid-template-columns: 35% 21.66% 21.66% 21.66%; gap: 16px; }
@media (max-width: 640px) { body.theme-reborn .fotIn { grid-template-columns: 1fr; } }
body.theme-reborn footer .LinkList ul:not(.sL) li::before { content: '\2014'; margin-inline-end: 8px; opacity: 0.5; }
body.theme-reborn footer .sL li:not(:first-child)::before { content: '/'; margin-inline: 4px; opacity: 0.5; }
body.theme-reborn .toTopF {
  position: fixed;
  bottom: 16px;
  inset-inline-end: 16px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color_button);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 100;
  border: none;
}
body.theme-reborn .abtU { position: relative; }
body.theme-reborn .abtT .tl { font-weight: 700; margin-bottom: 8px; }
body.theme-reborn .cdtIn { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }

/* App container baru (reborn enhanced) */
.app-container-baru {
  display: grid;
  grid-template-columns: 64px 1fr 72px;
  gap: 12px;
  align-items: center;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  padding: 12px;
  scroll-snap-align: start;
}

/* ==========================================================================
   28. THEME SWITCHER (NEW in Ultra - Frontend Theme Switcher)
   ========================================================================== */
.theme-switcher-wrapper { position: relative; }

.theme-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 12px;
  box-shadow: var(--elev-4);
  min-width: 220px;
  z-index: 1000;
  padding: 8px;
  animation: fadeInUp 0.2s var(--motion-easing-standard);
}

.theme-switcher-title {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color_texts);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color_text);
  transition: background 0.15s;
  text-align: start;
}

.theme-option:hover { background: var(--md-surface-container-high); }
.theme-option.active { background: var(--color_nav_bg); color: var(--color_button); }

.theme-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--color_background);
  box-shadow: 0 0 0 1px var(--color_border);
}

.theme-option .check-icon {
  margin-inline-start: auto;
  color: var(--color_button);
  font-size: 18px;
}

.theme-switcher-divider {
  height: 1px;
  background: var(--color_border);
  margin: 8px 0;
}

/* Ultra Badge */
.ultra-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--color_button), var(--brand-gradient-end));
  color: #fff;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Features Showcase Page */
.features-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
}

.features-showcase h1 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 2rem;
}

.features-showcase .subtitle {
  text-align: center;
  color: var(--color_texts);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.feature-card {
  background: var(--color_background);
  border: 1px solid var(--color_border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-3);
  border-color: var(--color_button);
}

.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color_nav_bg);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-card .feature-icon .material-symbols-rounded {
  font-size: 32px;
  color: var(--color_button);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--color_heading);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color_texts);
  margin: 0;
  line-height: 1.6;
}

.feature-card .feature-count {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: var(--color_button);
  color: #fff;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Theme Preview Cards */
.theme-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.theme-preview {
  border: 2px solid var(--color_border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--color_background);
}

.theme-preview:hover {
  transform: scale(1.03);
  box-shadow: var(--elev-3);
}

.theme-preview.active {
  border-color: var(--color_button);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color_button) 20%, transparent);
}

.theme-preview-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.theme-preview-body {
  padding: 16px;
  text-align: center;
}

.theme-preview-body h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.theme-preview-body p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color_texts);
}

/* Demo Section */
.demo-section {
  background: var(--md-surface-container);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.demo-section h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 32px 0;
  background: var(--color_background);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--color_border);
}

.stat-item {
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color_button);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--color_texts);
  margin-top: 4px;
}

/* Mobile adjustments for theme switcher */
@media (max-width: 768px) {
  .theme-switcher-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    inset-inline: 0;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    animation: slideInUp 0.3s var(--motion-easing-emphasized);
  }
  @keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* Hide theme switcher on very small screens, show in mobile menu */
@media (max-width: 480px) {
  .theme-switcher-wrapper .icon-btn { width: 36px; height: 36px; }
}
