/* APKVault CSS Stylesheet - Premium Dark/Light UI System */

/* Root Custom Properties (Light Theme Default) */
:root {
  --primary-color: #FF0000;
  --primary-rgb: 255, 0, 0;
  --secondary-color: #FF6B35;
  --secondary-rgb: 255, 107, 53;
  --accent-color: #00ABC5;
  --accent-rgb: 0, 171, 197;
  
  /* Theme-specific (Light Default) */
  --bg-color: #F8FAFC;
  --bg-rgb: 248, 250, 252;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-rgb: 0, 0, 0;
  --border-color: rgba(15, 23, 42, 0.08);
  --text-color: #0F172A;
  --muted-color: #64748B;
  
  --nav-bg: rgba(248, 250, 252, 0.8);
  --glow-opacity: 0.05;
  --box-shadow-glow: 0 10px 30px rgba(255, 0, 0, 0.15);
  --glass-blur: 16px;
  
  /* Shared values */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-speed: 0.3s;
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
}

/* Dark Theme overrides */
[data-theme="dark"] {
  --bg-color: #0D1117;
  --bg-rgb: 13, 17, 23;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-rgb: 255, 255, 255;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-color: #FFFFFF;
  --muted-color: #9CA3AF;
  
  --nav-bg: rgba(13, 17, 23, 0.75);
  --glow-opacity: 0.15;
  --box-shadow-glow: 0 10px 30px rgba(255, 0, 0, 0.3);
  --accent-color: #00E5FF;
  --accent-rgb: 0, 229, 255;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed);
}

button, input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Premium Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  pointer-events: none;
  opacity: 0;
}
.custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-dot {
    display: none;
  }
}

/* Premium Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  width: 90%;
  max-width: 420px;
  text-align: center;
}

.preloader-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.logo-icon-glow {
  position: absolute;
  top: 10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, transparent 70%);
  filter: blur(10px);
  animation: pulse-glow 2s infinite ease-in-out;
}

.preloader-logo-svg {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  animation: logo-spin 3s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite;
}

.preloader-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-status-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.preloader-status {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-color);
}

.preloader-percentage {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-color);
}

.preloader-progress-track {
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  border-radius: 20px;
  transition: width 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes logo-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* Canvas Background positioning */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Glassmorphism Common Style */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--transition-speed),
              border-color var(--transition-speed);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF3333 0%, #FF0000 100%);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FF4D4D 0%, #E60000 100%);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-glow);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn-glow:hover::after {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(var(--card-rgb), 0.08);
  border-color: rgba(var(--card-rgb), 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FF0000;
  color: #FF0000;
  background: transparent;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: #FF0000;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  animation: pulse-glow-dot 2.5s infinite;
}

@keyframes pulse-glow-dot {
  0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
  100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Glass Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-speed), background var(--transition-speed);
  padding: 20px 0;
}

.navbar-shrink {
  padding: 12px 0;
  background: var(--bg-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-color);
}
.logo-svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted-color);
}
.nav-link:hover {
  color: var(--text-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Nav Live Search Suggestions Box */
.nav-search-wrapper {
  position: relative;
}

.nav-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--card-rgb), 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  width: 200px;
  transition: width 0.3s ease, border-color 0.3s ease;
}

.nav-search-box:focus-within {
  width: 280px;
  border-color: var(--primary-color);
}

.nav-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-color);
  font-size: 0.875rem;
  width: 100%;
}
.nav-search-box input::placeholder {
  color: var(--muted-color);
}
.search-icon {
  width: 16px;
  height: 16px;
  color: var(--muted-color);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  min-width: 280px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  padding: 8px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: var(--card-bg);
}

.suggest-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}
.suggest-icon svg {
  width: 16px;
  height: 16px;
}

.suggest-info {
  display: flex;
  flex-direction: column;
}

.suggest-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.suggest-meta {
  font-size: 0.75rem;
  color: var(--muted-color);
}

.search-suggestions .no-suggest {
  padding: 12px;
  font-size: 0.875rem;
  color: var(--muted-color);
  text-align: center;
}

/* Theme Toggle button styling */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  transition: border-color var(--transition-speed);
}
.theme-toggle:hover {
  border-color: rgba(var(--card-rgb), 0.3);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.sun-icon {
  display: none;
}
[data-theme="light"] .sun-icon {
  display: block;
}
[data-theme="light"] .moon-icon {
  display: none;
}

/* Hamburger menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 20px;
}
.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Sections Structure */
section {
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-header.center {
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-color);
  max-width: 600px;
  margin-top: 12px;
  text-align: center;
}

/* Scroll Reveal animation hooks */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Hero Section Styles */
.hero-section {
  position: relative;
  padding-top: 180px;
  padding-bottom: 100px;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(108, 77, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}
[data-theme="dark"] .hero-section {
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(108, 77, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 77, 246, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 4rem;
  font-weight: 850;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--muted-color);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-card {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-color);
  width: 100%;
  margin-top: 4px;
  font-weight: 500;
}

/* Spotlight Redesigned Interactive Phone Mockup in Hero */
.hero-spotlight {
  position: relative;
  display: flex;
  justify-content: center;
}

.spotlight-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), var(--glow-opacity)) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.logo-showcase-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 400px;
  margin: 30px auto 0 auto; /* push a bit lower, middle se thoda niche */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Orbit line background decoration */
.logo-showcase-container::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.4;
  animation: orbit-rotate 40s linear infinite;
  pointer-events: none;
}

@keyframes orbit-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.floating-logo-item {
  position: absolute;
  z-index: 10;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-glass-frame {
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 12px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 20px rgba(var(--primary-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.showcase-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

/* Absolute positions */
.logo-top {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: float-slow 4s ease-in-out infinite;
}

.logo-left {
  bottom: 15%;
  left: 10%;
  animation: float-medium 5s ease-in-out infinite;
}

.logo-right {
  bottom: 15%;
  right: 10%;
  animation: float-fast 4.5s ease-in-out infinite;
}

/* Hover effects */
.floating-logo-item:hover .logo-glass-frame {
  transform: scale(1.08) translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.18),
              0 0 30px rgba(0, 229, 255, 0.15);
}

/* Bobbing float keyframes at different offsets/speeds */
@keyframes float-slow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -12px); }
}

@keyframes float-medium {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -15px); }
}

@keyframes float-fast {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -12px); }
}



/* Trending Apps Carousel Section */
.trending-carousel-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scrollbar-width: none; /* Hide default scrollbar Firefox */
  cursor: grab;
}
.trending-carousel-wrapper:active {
  cursor: grabbing;
}
.trending-carousel-wrapper::-webkit-scrollbar {
  display: none; /* Hide default scrollbar Chrome/Safari */
}

/* Drag scroll helper cursor */
.drag-scroll {
  user-select: none;
}

.carousel-nav {
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.carousel-btn:hover {
  border-color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.1);
}
.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.trending-card {
  flex-shrink: 0;
  width: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;
}

.trending-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 12px 35px rgba(108, 77, 246, 0.1);
}

.trend-icon-container {
  position: relative;
  display: inline-block;
  margin: 0 auto 12px;
}

.trend-icon-img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.trend-icon-img:hover {
  transform: scale(1.05);
}

.card-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 32px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.trend-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-color);
  margin-top: 4px;
  cursor: pointer;
}

.trend-stars {
  margin: 6px 0;
  letter-spacing: 2px;
}

.trend-secure-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-color);
  margin: 6px 0 16px;
}

.trend-cta {
  width: 100%;
}

/* Category Filters & Catalog Search Header */
.catalog-header {
  margin-bottom: 32px;
}

.catalog-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  width: 320px;
  transition: width 0.3s, border-color 0.3s;
}

.catalog-search-box:focus-within {
  width: 380px;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(108,77,246,0.1);
}

.catalog-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-color);
  font-size: 0.95rem;
  width: 100%;
}
.catalog-search-box input::placeholder {
  color: var(--muted-color);
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 40px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--card-bg);
  color: var(--muted-color);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.category-tab.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-tab:hover:not(.active) {
  background: rgba(var(--card-rgb), 0.08);
  border-color: rgba(var(--card-rgb), 0.2);
  color: var(--text-color);
}

/* App Grid & Premium Cards */
.apps-grid-wrapper {
  position: relative;
  min-height: 400px;
}

.apps-grid {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.app-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  background: transparent;
}

.app-list-item:last-child {
  border-bottom: none;
}

.app-list-item:hover {
  background-color: rgba(var(--primary-rgb), 0.02);
}

.app-list-left {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  flex-grow: 1;
}

.app-list-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.app-list-left:hover .app-list-icon {
  transform: scale(1.05);
}

.app-list-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-list-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text-color);
}

.app-list-bonus {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b57d0;
}
[data-theme="dark"] .app-list-bonus {
  color: #3b82f6;
}

.app-list-withdrawal {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-color);
}

.app-list-cta {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, #FF3333 0%, #FF0000 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.app-list-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FF4D4D 0%, #E60000 100%);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}

.skeleton-list-item {
  height: 112px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}
.skeleton-list-item:last-child {
  border-bottom: none;
}
.skeleton-list-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--card-rgb), 0.03), transparent);
  transform: translateX(-100%);
  animation: loading-pulse 1.5s infinite;
}

/* Skeleton Loading Effects */
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  height: 260px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--card-rgb), 0.03), transparent);
  transform: translateX(-100%);
  animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
  100% { transform: translateX(100%); }
}

/* Zero state for apps grid */
.zero-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.zero-icon {
  width: 48px;
  height: 48px;
  color: var(--muted-color);
  margin-bottom: 16px;
}
.zero-state h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.zero-state p {
  color: var(--muted-color);
  max-width: 480px;
  margin-bottom: 24px;
}

/* Why Choose Us Cards */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.choose-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.choose-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
}

.choose-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.choose-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.choose-icon-wrapper.p-primary {
  background: rgba(108, 77, 246, 0.1);
  color: var(--primary-color);
}
.choose-icon-wrapper.p-accent {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-color);
}
.choose-icon-wrapper.p-secondary {
  background: rgba(255, 107, 53, 0.1);
  color: var(--secondary-color);
}
.choose-icon-wrapper.p-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #A855F7;
}

.choose-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.choose-card p {
  font-size: 0.95rem;
  color: var(--muted-color);
}

/* Download timeline guide styles */
.timeline-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 28px;
  width: 2px;
  height: calc(100% - 24px);
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color), var(--secondary-color));
  z-index: 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.timeline-node {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 3px solid var(--primary-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(108, 77, 246, 0.2);
}

.timeline-step:nth-child(even) .timeline-node {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.timeline-step:nth-child(3) .timeline-node {
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.timeline-content {
  padding: 32px;
  flex-grow: 1;
}

.timeline-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--muted-color);
}

/* User Reviews Section */
.testimonials-carousel-outer {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  padding: 10px 4px 30px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}
.testimonials-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex-shrink: 0;
  width: 360px;
  padding: 32px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.review-avatar-wrapper {
  position: relative;
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  object-fit: cover;
}

.review-meta {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
}

.review-sub-title {
  font-size: 0.8rem;
  color: var(--muted-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge-icon {
  color: var(--accent-color);
  width: 14px;
  height: 14px;
}

.review-rating {
  color: var(--secondary-color);
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.review-card p {
  font-size: 0.95rem;
  color: var(--muted-color);
}

/* Blog Magazine Grid Section */
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-img-wrapper {
  width: 100%;
  height: 240px;
  position: relative;
}

.blog-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
}

.p-gradient-1 { background: linear-gradient(135deg, #6C4DF6, #0D1117); }
.p-gradient-2 { background: linear-gradient(135deg, #FF6B35, #0D1117); }
.p-gradient-3 { background: linear-gradient(135deg, #00E5FF, #0D1117); }

.blog-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted-color);
  margin-bottom: 16px;
}

.blog-meta .divider {
  color: var(--border-color);
}

.blog-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--muted-color);
  margin-bottom: 24px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: auto;
}
.read-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.blog-read-more:hover .read-icon {
  transform: translateX(4px);
}

/* Secondary smaller blog posts block */
.blog-subgrid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-subgrid .blog-card {
  flex-direction: row;
}

.blog-subgrid .blog-img-wrapper {
  width: 180px;
  height: auto;
  min-height: 140px;
  flex-shrink: 0;
}

.blog-subgrid .blog-body {
  padding: 20px;
}

.blog-subgrid .blog-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.blog-subgrid .blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-subgrid .blog-card {
    flex-direction: column;
  }
  .blog-subgrid .blog-img-wrapper {
    width: 100%;
    height: 160px;
  }
}

/* Accordion FAQ Accordions Section */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  transition: background-color 0.2s;
}

.faq-trigger:hover {
  background-color: rgba(var(--card-rgb), 0.02);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--muted-color);
  transition: transform 0.3s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
  padding: 0 24px 24px 24px;
  color: var(--muted-color);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

/* Trust Stats Scroll-counter Grid */
.stats-banner {
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.banner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%);
  z-index: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-count-large {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-plus-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: -10px;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large CTA section styles */
.cta-card {
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
  z-index: 0;
}

.cta-inner-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 3rem;
  font-weight: 850;
  margin-bottom: 20px;
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--muted-color);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* App Detail Slide-in Drawer */
.detail-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.detail-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 640px;
  height: 100vh;
  background-color: var(--bg-color);
  border-left: 1px solid var(--border-color);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
  z-index: 10;
}
.drawer-close-btn:hover {
  background-color: rgba(var(--card-rgb), 0.05);
  border-color: rgba(var(--card-rgb), 0.2);
}
.drawer-close-btn svg {
  width: 18px;
  height: 18px;
}

.drawer-scroll-container {
  overflow-y: auto;
  height: 100%;
  padding-right: 8px;
}

.drawer-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 32px;
}

.drawer-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-lg);
  background: rgba(var(--card-rgb), 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.drawer-icon-wrapper svg {
  width: 44px;
  height: 44px;
}

.drawer-title-meta {
  display: flex;
  flex-direction: column;
}

.drawer-app-name {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
}

.drawer-sub-badges {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.drawer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.drawer-badge.category {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.drawer-badge.verified {
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(0, 229, 255, 0.25);
}
.drawer-badge.verified svg {
  width: 12px;
  height: 12px;
}

.drawer-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 32px;
}

.metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px dashed var(--border-color);
}
.metric-box:last-child {
  border-right: none;
}

.metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-color);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--muted-color);
  margin-top: 4px;
}

.drawer-download-cta-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.drawer-section {
  margin-bottom: 40px;
}

.drawer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
}

/* Device screen mockups wrapper */
.screenshot-gallery-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 20px;
  scrollbar-width: none;
  cursor: grab;
}
.screenshot-gallery-container::-webkit-scrollbar {
  display: none;
}

.phone-mockup-wrapper {
  flex-shrink: 0;
  width: 220px;
  height: 440px;
  background: #000;
  border: 10px solid #1e293b;
  border-radius: 36px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styled Screens inside Device Frames */
.mockup-inner-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 16px;
  text-align: center;
}

.mockup-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(108,77,246,0.3);
  margin-bottom: 10px;
}
.mockup-icon svg {
  width: 24px;
  height: 24px;
}

.mockup-text-primary {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.mockup-text-secondary {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
}

.mockup-screen-view {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-list-item {
  width: 100%;
  height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.mockup-dot-lead {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
  margin-right: 8px;
}
.mockup-line-filler {
  width: 60%;
  height: 4px;
  background-color: rgba(255,255,255,0.15);
  border-radius: 20px;
}

.mockup-btn-simulate {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6C4DF6, #00E5FF);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
}

/* Tabs UI in Drawer */
.drawer-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.drawer-tabs-nav::-webkit-scrollbar {
  display: none;
}

.drawer-tab {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-color);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.drawer-tab.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.drawer-tabs-content {
  position: relative;
}

.drawer-tab-pane {
  display: none;
}

.drawer-tab-pane.active {
  display: block;
  animation: fadeInPane 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-tab-pane p {
  color: var(--muted-color);
  font-size: 0.975rem;
  margin-bottom: 24px;
}

.drawer-install-guide {
  margin-top: 32px;
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}
.guide-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.install-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.install-steps-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.925rem;
  color: var(--muted-color);
}

.install-steps-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 750;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.features-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 0 6px var(--primary-color);
}

.requirements-box {
  padding: 24px;
}

.req-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 0.95rem;
}
.req-row:last-child {
  border-bottom: none;
}
.req-lbl {
  color: var(--muted-color);
}
.req-val {
  font-weight: 600;
  color: var(--text-color);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.changelog-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.925rem;
  color: var(--muted-color);
}

.changelog-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 1.25rem;
  top: -2px;
}

.inline-faq {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: rgba(var(--card-rgb), 0.01);
  margin-top: 12px;
}
.inline-faq h5 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.inline-faq p {
  font-size: 0.85rem;
  color: var(--muted-color);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .detail-drawer {
    width: 100vw;
    padding: 24px;
  }
  .drawer-close-btn {
    top: 20px;
    right: 20px;
  }
}

/* Download Simulation Portal Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.download-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 520px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  z-index: 3001;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
  padding: 40px;
}

.download-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s;
}
.modal-close-btn:hover {
  background-color: rgba(var(--card-rgb), 0.05);
  border-color: rgba(var(--card-rgb), 0.2);
}
.modal-close-btn svg {
  width: 14px;
  height: 14px;
}

.modal-title-wrap {
  margin-bottom: 24px;
}
.modal-title-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.modal-title-wrap p {
  font-size: 0.875rem;
  color: var(--muted-color);
}

.download-sim-app-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 28px;
}

.sim-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}
.sim-badge-icon svg {
  width: 24px;
  height: 24px;
}

.sim-badge-meta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
}
.sim-badge-meta p {
  font-size: 0.8rem;
  color: var(--muted-color);
}

/* Dynamic Antivirus check list styling */
.security-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted-color);
  transition: color 0.3s;
}

.check-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.check-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spinner-rot 0.8s linear infinite;
}

.check-done-icon {
  display: none;
  width: 12px;
  height: 12px;
  color: #fff;
}

/* Checklist states triggers */
.check-item.pending .check-spinner {
  display: block;
}
.check-item.pending .check-indicator {
  border-color: var(--primary-color);
}

.check-item.completed {
  color: var(--text-color);
}
.check-item.completed .check-done-icon {
  display: block;
}
.check-item.completed .check-spinner {
  display: none;
}
.check-item.completed .check-indicator {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

@keyframes spinner-rot {
  100% { transform: rotate(360deg); }
}

/* Sim modal Progress Bar */
.simulation-progress-wrapper {
  margin-bottom: 32px;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-color);
  margin-bottom: 8px;
}

.sim-progress-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.sim-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: 20px;
  transition: width 0.1s linear;
}

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

.secure-cert-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
}
.cert-icon {
  width: 16px;
  height: 16px;
}

/* Legal Disclaimer */
.disclaimer-section {
  background-color: rgba(var(--bg-rgb), 0.5);
  border-top: 1px solid var(--border-color);
}

.disclaimer-content {
  padding: 40px;
  text-align: center;
}
.disclaimer-content h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-color);
}
.disclaimer-content p {
  font-size: 0.825rem;
  color: var(--muted-color);
  max-width: 900px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

/* Sticky Mobile Download CTA */
.sticky-mobile-cta {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

.sticky-mobile-cta.visible {
  bottom: 0;
}

.mobile-cta-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
}
.mobile-cta-info p {
  font-size: 0.75rem;
  color: var(--muted-color);
}

#mobile-sticky-btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* Floating Widgets Channels (Telegram / WhatsApp) */
.floating-channels {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.channel-widget {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.channel-widget:hover {
  transform: translateY(-4px) scale(1.05);
}

.channel-widget.telegram {
  background-color: #0088cc;
}
.channel-widget.telegram:hover {
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.channel-widget.whatsapp {
  background-color: #25d366;
}
.channel-widget.whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.channel-widget svg {
  width: 24px;
  height: 24px;
}

.widget-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.channel-widget:hover .widget-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, border-color 0.3s, bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* Shift widgets up when sticky mobile download bar is visible */
.sticky-mobile-cta.visible ~ .floating-channels {
  bottom: 100px;
}
.sticky-mobile-cta.visible ~ .back-to-top {
  bottom: 100px;
}

/* Main Footer Styling */
.footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-color);
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-link-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--text-color);
}

.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-col a {
  font-size: 0.9rem;
  color: var(--muted-color);
}
.footer-link-col a:hover {
  color: var(--text-color);
}

/* Responsive Breakpoints Rules */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 3.25rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-spotlight {
    margin-top: 20px;
  }
  .navbar-shrink .nav-search-box {
    width: 150px;
  }
  .navbar-shrink .nav-search-box:focus-within {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .nav-menu {
    display: none; /* Hide default nav items - triggers menu */
  }
  .nav-search-wrapper {
    display: none; /* Hide top search bar, search logic moved inside mobile menu overlay if built */
  }
  .mobile-menu-btn {
    display: flex;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Mobile menu panel styling (triggered in js) */
  .navbar.mobile-menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 24px;
    gap: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  .navbar.mobile-menu-open .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
  }
  .navbar.mobile-menu-open .nav-link:last-child {
    border-bottom: none;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-cta {
    display: none; /* Hide desktop nav cta on small devices */
  }
  
  .timeline-line {
    left: 20px;
  }
  .timeline-step {
    gap: 20px;
  }
  .timeline-node {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
  .timeline-content {
    padding: 20px;
  }
  .floating-channels {
    bottom: 40px;
    left: 20px;
  }
  .back-to-top {
    bottom: 40px;
    right: 20px;
  }
  
  /* Shift widgets up when sticky mobile download bar is visible */
  .sticky-mobile-cta.visible ~ .floating-channels {
    bottom: 120px;
  }
  .sticky-mobile-cta.visible ~ .back-to-top {
    bottom: 120px;
  }
  
  .detail-drawer {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .stat-card {
    justify-content: center;
  }
}
