/* ==========================================================================
   BEST YONO STORE - ULTRA-PREMIUM WHITE LUXURY THEME (100% MOBILE FRIENDLY)
   Clean Light Mode, Glassmorphism, Gold & Emerald Accents, Responsive UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* THEME 1: Premium White (Default) */
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-glass: #e2e8f0;

  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  
  --accent-green: #10b981;
  --accent-green-bright: #059669;
  --accent-green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --btn-download-gradient: linear-gradient(135deg, #00c853 0%, #009624 100%);
  --btn-download-hover: linear-gradient(135deg, #00e676 0%, #00c853 100%);

  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-red: #ef4444;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Elevation Shadows */
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow-gold: 0 8px 24px rgba(245, 158, 11, 0.35);
  --shadow-glow-green: 0 8px 24px rgba(0, 200, 83, 0.4);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* THEME 2: Midnight Gold */
[data-theme="midnight-gold"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: #171717;
  --bg-card-hover: #1f1f1f;
  --bg-glass: rgba(23, 23, 23, 0.85);
  --border-glass: #333333;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #ffffff;
  --accent-gold: #fbbf24;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* THEME 3: Deep Ocean Blue */
[data-theme="ocean-blue"] {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #27364b;
  --bg-glass: rgba(30, 41, 59, 0.85);
  --border-glass: #334155;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #ffffff;
  --accent-gold: #38bdf8;
  --accent-gold-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  --shadow-glow-gold: 0 8px 24px rgba(2, 132, 199, 0.4);
}

/* THEME 4: Emerald Dark */
[data-theme="emerald-dark"] {
  --bg-primary: #022c22;
  --bg-secondary: #064e3b;
  --bg-card: #065f46;
  --bg-card-hover: #047857;
  --bg-glass: rgba(6, 95, 70, 0.85);
  --border-glass: #059669;
  --text-main: #ecfdf5;
  --text-muted: #a7f3d0;
  --text-dark: #ffffff;
  --accent-gold: #10b981;
  --accent-gold-gradient: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  --shadow-glow-gold: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* THEME 5: Royal Purple */
[data-theme="royal-purple"] {
  --bg-primary: #2e1065;
  --bg-secondary: #3b0764;
  --bg-card: #4c1d95;
  --bg-card-hover: #5b21b6;
  --bg-glass: rgba(76, 29, 149, 0.85);
  --border-glass: #6d28d9;
  --text-main: #f5f3ff;
  --text-muted: #c4b5fd;
  --text-dark: #ffffff;
  --accent-gold: #d946ef;
  --accent-gold-gradient: linear-gradient(135deg, #e879f9 0%, #d946ef 50%, #c026d3 100%);
  --shadow-glow-gold: 0 8px 24px rgba(217, 70, 239, 0.4);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding-bottom: 20px;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: #1d4ed8;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

/* Container (Mobile Size Only for frontend) */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Admin Container (Wide Desktop layout) */
.admin-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Navigation Management */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding-top: 80px;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Main Header Telegram Button */
.header-actions {
  display: flex;
  align-items: center;
}

.header-tg-btn {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 4px 16px 4px 6px;
  border-radius: var(--radius-full);
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  color: var(--text-main);
}

.tg-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.tg-btn-text {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.header-tg-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.3);
}

.header-tg-btn:hover .tg-icon-wrapper {
  animation: pulseGlow 1.5s infinite;
}

@media (max-width: 480px) {
  .tg-btn-text {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
  }
  .header-tg-btn {
    padding: 4px 10px 4px 4px;
    gap: 4px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }
  .tg-icon-wrapper {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }
  .brand-text h1 {
    font-size: 1rem;
  }
  .brand-logo-img {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .app-card {
    padding: 10px 8px;
    gap: 8px;
  }
  .app-logo-wrapper {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 12px;
  }
  .app-title {
    font-size: 0.95rem;
  }
  .download-action-cell {
    min-width: 70px;
  }
  .btn-get-app {
    padding: 6px 10px;
    font-size: 0.72rem;
    min-width: 70px;
  }
  .app-meta-badges {
    gap: 3px;
  }
  .meta-pill {
    padding: 2px 5px;
    font-size: 0.64rem;
  }
  .app-sub-info {
    font-size: 0.7rem;
    gap: 5px;
  }
}

/* Main Header */
.main-header {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.brand-text p {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 800;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text p {
    font-size: 0.6rem;
  }
  .brand-logo-img {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

/* DYNAMIC BANNER CAROUSEL SLIDER STYLES (MOBILE FRIENDLY) */
.banner-carousel-section {
  margin: 16px 0 20px 0;
  position: relative;
}

.banner-slider-container {
  width: 100%;
  aspect-ratio: 24 / 9;
  max-height: 220px;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  background: #0f172a;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.banner-slides-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

@media (min-width: 768px) {
  .banner-slide {
    padding: 24px;
  }
}

.banner-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.banner-slide:hover .banner-bg-img {
  transform: scale(1.04);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 600px;
}

.banner-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .banner-title {
    font-size: 1.7rem;
  }
}

.banner-subtitle {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-cta-btn {
  background: var(--accent-gold-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Slider Controls */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 10;
  box-shadow: var(--shadow-md);
  opacity: 0.85;
  transition: var(--transition-fast);
}

.slider-arrow-btn.prev {
  left: 8px;
}

.slider-arrow-btn.next {
  right: 8px;
}

.slider-indicators {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* Controls & Filter Bar */
.filter-section {
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 16px 20px 16px 48px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.search-box input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.search-box input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), var(--shadow-md);
}

.search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.category-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
  height: 3px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.cat-btn:hover, .cat-btn.active {
  background: var(--accent-gold-gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 800;
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

/* App List Cards Container */
.apps-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.apps-header-bar h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.apps-count-pill {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* WHITE PREMIUM MOBILE APP CARD ITEM */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Rank Ribbon Badge */
.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: #64748b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: 12px;
}

.rank-badge.rank-1 {
  background: var(--accent-gold-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #ffffff;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}

/* App Logo Styling */
.app-logo-wrapper {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 1.5px solid var(--border-glass);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* App Info */
.app-details-col {
  flex: 1;
  min-width: 0;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  min-width: 0;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-badge {
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.tag-badge.hot {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
}

.tag-badge.new {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #6ee7b7;
}

.app-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.meta-pill.bonus {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.meta-pill.deposit {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.app-sub-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rating-star {
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
}

/* Download Action Button */
.download-action-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-get-app {
  background: var(--btn-download-gradient);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.4);
  letter-spacing: 0.5px;
  min-width: 96px;
  text-align: center;
  transition: var(--transition-normal);
}

.btn-get-app:hover {
  background: var(--btn-download-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.5);
}

.btn-get-app .btn-icon {
  font-size: 1rem;
}

/* PAGE 2: APP DETAIL VIEW STYLES */
.detail-page-container {
  padding-top: 10px;
}

.back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.btn-back-home {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.btn-back-home:hover {
  background: var(--bg-card-hover);
  color: var(--accent-gold);
}

.breadcrumbs {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumbs span {
  color: var(--text-main);
  font-weight: 700;
}

/* App Detail Hero Header Card */
.app-detail-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-main-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .hero-main-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.hero-app-logo {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 2px solid var(--border-glass);
}

.hero-app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-info-col {
  flex: 1;
}

.hero-app-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.hero-app-dev {
  font-size: 0.82rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.security-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Quick Stats Bar */
.app-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
  text-align: center;
}

@media (max-width: 500px) {
  .app-quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.stat-item .stat-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Download APK Call to Action Box */
.detail-download-box {
  background: var(--bg-card);
  border: 2px solid var(--accent-green);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow-green);
  position: relative;
}

.btn-primary-download {
  background: var(--btn-download-gradient);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1.08rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0, 200, 83, 0.4);
  transition: var(--transition-normal);
  width: 100%;
  max-width: 360px;
}

.btn-primary-download:hover {
  background: var(--btn-download-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 230, 118, 0.5);
}

.download-timer-msg {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 700;
  min-height: 20px;
}

.direct-link-fallback {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Screenshot Gallery Section */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshots-gallery-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.screenshot-thumb {
  width: 150px;
  height: 260px;
  min-width: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  transition: var(--transition-normal);
  background: var(--bg-secondary);
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-thumb:hover {
  transform: scale(1.03);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* App Description Section */
.app-description-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  line-height: 1.6;
}

.app-description-box h3, .app-description-box h4 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  margin: 12px 0 6px 0;
}

.app-description-box ul, .app-description-box ol {
  padding-left: 18px;
  margin: 8px 0;
  color: var(--text-muted);
}

/* ADVANCED BACKEND ADMIN PANEL STYLES */
.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.admin-header-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-card-info h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-card-info p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Admin Toolbar */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-admin-action {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.btn-admin-action:hover {
  background: #f8fafc;
  border-color: var(--accent-gold);
}

.btn-admin-primary {
  background: var(--accent-gold-gradient);
  color: #ffffff;
  font-weight: 800;
  border: none;
}

.btn-admin-primary:hover {
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-1px);
}

/* Admin App Table */
.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.table-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.action-btns-cell {
  display: flex;
  gap: 6px;
}

.btn-sm-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 0.8rem;
}

.btn-sm-icon:hover {
  background: #e2e8f0;
}

.btn-sm-icon.delete {
  color: #ef4444;
}

.btn-sm-icon.delete:hover {
  background: #fee2e2;
}

/* Form & Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-gold);
  background: var(--bg-secondary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Footer & SEO Text */
.site-footer {
  margin-top: 40px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-glass);
  padding: 30px 0 20px 0;
}

.footer-seo-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-seo-content h4 {
  color: var(--text-main);
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1.5px solid var(--accent-green);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInRight 0.3s forwards;
}

/* Keyframes */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

/* ==========================================================================
   ANALYTICS DASHBOARD STYLES
   ========================================================================== */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-glass);
  padding-bottom: 12px;
  overflow-x: auto;
}
.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.admin-tab-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-main);
}
.admin-tab-btn.active {
  background: var(--text-main);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.analytics-container {
  display: none;
  animation: slideInRight 0.3s forwards;
}
.analytics-container.active {
  display: block;
}
.app-manager-container {
  display: block;
  animation: slideInRight 0.3s forwards;
}
.app-manager-container.hidden {
  display: none;
}

.chart-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}
.chart-actions select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: #f8fafc;
  outline: none;
}

